Flash export issues

Consider the following factors when designing your InDesign document for Flash playback.

Document setup issues

How InDesign pages are converted
When you export to SWF or XFL, InDesign spreads become separate clips in a timeline, like slides in a slideshow. Each spread is mapped to a new keyframe. In Flash Player, you advance through the spreads of the exported document by pressing arrow keys or clicking interactive buttons.
Determine whether you want your InDesign document to include facing pages. In some instances, it’s better to create the document without facing pages (deselect the Facing Pages option in the New Document dialog box). Although you can deselect the Spreads option during export to SWF to map each page to a keyframe rather than the whole spread, deselecting Facing Pages simplifies matters.

Page size
When you create a document, you can choose a specific resolution, such as 800 x 600, from the Page Size menu in the New Document dialog box. During export, you can also adjust the scale or resolution of the exported SWF or XFL file.

Interactivity features

Buttons, page transitions, and hyperlinks are included in exported SWF files. With exported XFL files, use Flash Pro to add animation and other effects.

Buttons
For buttons in an exported SWF file, the Next Page and Previous Page actions are especially useful controls for playback in Flash Player. However, some actions that work in interactive PDF files have no effect in Flash Player. These actions include Close, Exit, Go To Next/Previous View, Movie, Open File, Sound, and View Zoom.
You can add navigation buttons that are preformatted with Go To Next Page and Go To Previous Page actions. Choose Sample Buttons from the Buttons panel menu. See Add a button from the Sample Buttons panel.

Although button actions are not included in an exported XFL file, you can add buttons to your layout in InDesign and use Flash Pro to make them dynamic.

Page Transitions
All page transitions work well in Flash Player. In addition to page transitions that appear when you turn the page, you can add include an interactive page curl during export that lets you drag corners of pages to turn them.

Hyperlinks
Create links to websites or to other pages in the document. Hyperlinks are broken in XFL files.

Movies and sound clips
Movies and sound clips are not included in an exported SWF or XFL file, but their posters are included. You can add media posters to your layout in InDesign, export the document to XFL, and use Flash Pro to make them dynamic.

Conversion issues

Color
SWF and XFL files use RGB color. When a document is exported to SWF or XFL, InDesign converts all color spaces (such as CMYK and LAB) to sRGB. InDesign converts spot colors to equivalent RGB process colors.

To avoid unwanted color changes in artwork with text with transparency, choose Edit > Transparency Blend Space > Document RGB. To avoid unwanted color changes in images with transparency, avoid using a lossy compression during export.

Text
When exporting to SWF or XFL, you can determine whether text is output as Flash text, vector paths, or rasterized text. Text exported as Flash text remains fully editable when the XFL file is opened in Adobe Flash CS4 Professional and can be searched in web browsers when saved as SWF files.

Images
When you export images to SWF, you can change image compression, JPEG quality, and curve quality settings during export.

When you export images to XFL, images are exported as PNG files without compression. An image placed multiple times in your InDesign document is saved as a single image asset with a shared location when exported as an XFL file. Note that a large number of vector images in the InDesign document may cause performance problems in the exported file.

To reduce file size, place repeating images on master pages, and avoid copying and pasting images. If the same image is placed multiple times in the document and not transformed or cropped, only one copy of the file is exported in the XFL file. Images that are copied and pasted are treated as separate objects.

By default, a placed Illustrator file is treated as a single image in the XFL file, whereas an Illustrator file that’s copied and pasted generates many individual objects. For best results, place the Illustrator image as a PDF file instead of copying and pasting from Illustrator. Copying and pasting results in multiple editable paths.

You can change preference options to make sure that Illustrator objects are pasted as one object instead of a collection of small vectors. In Illustrator File Handling & Clipboard preferences, select PDF and deselect AICB (No Transparency Support). In InDesign Clipboard Handling preferences, select both Prefer PDF When Pasting and Copy PDF To Clipboard.

Resolution
InDesign automatically converts high-resolution print assets to low-resolution web assets upon export to SWF or XFL.

Transparency
Before exporting to SWF, make sure that transparent objects do not overlap any interactive element, such as a button or hyperlink. If an object with transparency overlaps an interactive element, the interactivity may be lost during export. You may want to flatten transparency before exporting to XFL.

In some instances, choosing a lossy compression reduces the quality of images with transparency. When exporting, choose Lossless (Do Nothing) to improve the quality.