Export a composition from After Effects in a format that can be used in Flash, with many kinds of layers and keyframes intact and editable.
Requirements
To complete the tasks demonstrated in this tutorial, you need the following software and files:
Adobe Creative Suite 4 Production Premium
Sample files
lrvid4105_xp.zip (ZIP, 205MB)
Prerequisite knowledge
Intermediate knowledge of file formats in After Effects and Flash
Exporting an After Effects composition to Flash Professional using SWF, F4V/FLV, and XFL
Adobe® After Effects® CS4 provides three different ways to export content for use with Adobe Flash®: You can export your compositions as SWF files or Flash movies, video for the Flash player (F4V/FLV), and in the new XFL file format. In this tutorial, you will learn how to export After Effects compositions to SWF, F4V/FLV, and XFL file formats.
Creating a SWF file in After Effects
You can export an After Effects composition to a SWF file, which you can use in Flash. . To generate a SWF file:
- Open AfterEffects_RG.aep and select SWF Export from the Project panel. When you export the file, the text will be editable as vector art in Flash.
- Choose File > Export > Adobe Flash Player (SWF). The Save File As dialog box opens. Name the file, choose a file location, and click Save. The SWF Settings dialog box opens.

Figure 1: The SWF Settings dialog box
- In the SWF Settings dialog box, choose the JPEG Quality. Because you are going to export vector-based content, it doesn't matter which option you choose for this particular file.
Note: You can also choose whether to rasterize or ignore unsupported features. You can choose to export audio, and you have additional options, similar to the options provided when you export a SWF file from Flash.
- Click OK to close the SWF Settings dialog box. After Effects exports the composition as a SWF file.
Importing a SWF file into Flash
After you've exported an After Effects composition as a SWF file, you can import it into a movie clip in your Flash library. To import a SWF file:
- Choose File > Import > Import To Stage. Select the SWF file from the Import dialog box and click Import. Flash imports the files as a frame-by-frame animation. Note that each one of the letters in the text comes in as a separate graphic symbol.

Figure 2: Importing a text animation
- To edit one of the letters in your animation, select the symbol that represents that letter and make the necessary changes. Return to the After Effects movie clip you imported.
- To preview the animation, return to the Timeline. Drag the After Effects movie clip onto the stage. Test the movie by choosing Control > Test Movie.
Exporting a video (F4V or FLV) file from After Effects
Another option for exporting an After Effects composition for use in Flash, is to use is create a video (F4V or FLV file). To export a video from After Effects:
- Return to After Effects and select a composition to export.
- Add the file to the render queue by choosing Composition > Add To Render Queue.
- Choose Render (Export) Settings in the Render Queue panel at the bottom of the After Effects window. The Render Settings dialog box opens.

Figure 3: The Render Settings panel
- When the Render Settings dialog box opens, reduce the resolution to Half. Select
Draft for the Quality setting. Click OK.
- Click the field next to Output Module in the Render Queue panel. The Output Module Settings dialog box opens.

Figure 4: The Output Module Settings dialog box
- From the Format menu, select F4V or FLV. F4V uses the H.264 codec and FLV uses the Sorenson Spark or On2 VP6 codecs.
- To customize how your file is exported, click the Format Options button. Here you can manipulate audio or video settings or change the preset. For this tutorial, leave the default set to FV4 – Same As Source (Flash 9.2 Or Higher). Click OK to accept the Format Options settings. Click OK again to accept the Output Module settings.
- Use the default file name to export your file. Select the location on your hard disk to save the file. Click Save.
- To export the video, click the Render button in the upper-right corner of the Render Queue panel.
Using the Flash Player to play an FLV file
One of the ways you can use video in the Flash Player is to play the video using the FLV component. To play the video:
- Open Flash.
- To get the instance of the FLV playback on the Stage, choose Window > Components. The Components panel opens. Choose the FLV component from the instances listed in the Component panel. Close the Components panel.

Figure 5: The Components panel
Note: You can create your own custom video player using the different components in the video section.
- Choose the video on the Stage and move to the Properly Inspector panel. Click the Component Inspector panel button. The Component Inspector panel opens.

Figure 6: The Component Inspector Panel button
- In the Component Inspector panel, choose the F4V file that you created by clicking in the Source area. Click the Search button (it's shaped like a magnifying glass). The Content Path dialog box opens.

Figure 7: The Content Path dialog box
- Click Browse to locate the F4V file stored on your hard disk. Select the file and click OK to close the Content Path.
- To see the F4V playing in the Flash Player, choose Control > Test Movie.
Exporting an After Effects composition as an XFL file
The third way to get content from After Effects into Flash is by using the new XFL file format. This format is an archive format that contains information about placement of elements as well as the assets used in the file. To create an XFL file from After Effects:
- Open the composition that you want to export. Choose File > Export > Adobe Flash Professional (XFL). The Adobe Flash Professional (XFL) dialog box opens. This dialog box allows you to rasterize layers with unsupported features to the FLV or PNG file formats.

Figure 8: The Adobe Flash Professional (XFL) dialog box
- Leave the default set to FLV. Click the Format Options button. The FLV/F4V (H.264) dialog box opens. This dialog box allows you to change the preset setting among other options. Leave the default settings as is and click OK.
Note: If you choose the PNG sequence as your file format, you can click Format Options and a dialog box opens allowing you to change compression settings.
- Once you click OK, the Export As Adobe Flash Professional (XFL) dialog box opens allowing you to select a location on your hard disk to store your file. Choose a name for your file and click Save.
Opening the XFL file in Flash
Once the XFL file is created, you can open it in Flash. To open the XFL file:
- Open Flash. Choose File > Open and find the XFL file on your hard disk.
- Once you've opened the XFL file, you can save the file as an FLA file by choosing File > Save As. Type in the file name with the .fla extension. The FLA file includes the appropriate layer and timeline information and assets stored in the Library.
Where to go from here

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
About the authors
Todd Perkins is an Adobe Certified Instructor who spends much of his time teaching people how to use Adobe's web development software. Todd has several years of experience teaching people of all ages and backgrounds, and he is an expert at teaching complex concepts in a way anyone can understand. Todd is half of the dynamic duo at the All Things Adobe Podcast, and he has authored a vast array of video training titles. Todd also loves to teach in classrooms, consult businesses, train people online and play video games with his amazing wife, Jessica.