Recipe 2.6. Exporting Single-Frame ImagesProblemYou want to use Flash to export a single frame in a popular image format, such as GIF, JPEG, or PNG. SolutionSelect the frame for which you want to export the contents and then choose to export as image. Alternatively, change the publish settings to export the format you want and publish. DiscussionAlthough you may typically think of Flash as being a tool strictly for exporting SWF content, you can also use it to export a variety of other formats, including single-frame formats such as JPEG, PNG, GIF, BMP, AI, EPS, and more. This trick can be convenient for many possible reasons. For example, you may want to export a still image of a frame or frames from your Flash movie to use for presentation or packaging purposes. And even for advanced Flash developers, the feature can be quite useful, such as to export icons that represent components that they are developing. There are several ways you can export single-frame content from Flash. These ways can sometimes be used interchangeably, but in other cases you will want to opt for one method over another. One way is to export the content through the File menu by choosing File The export image technique in Flash is most useful in the following scenarios:
To export an image with the export image technique, first move the playhead to the frame for which you want to export the artwork. Then choose File The publish settings technique offers advantages if you are going to export more than one format or if you are likely to export the image or
images more than once. In that case, it is worth changing the Publish Settings options to export the specified format or formats, so that you can export the file or files by pressing keys on the keyboard (Shift-F12) rather than having to navigate menus, specify files and locations, and choose from options each time. You can open the publish settings by navigating to File By default, the files that export when you use the publish settings will be exported to the same directory as the .fla file and with names that correspond to the name (exp 3pod.com) of the FLA. For example, if the FLA is named circle.fla, the exported PNG would be named circle.png. You can modify the names and locations to which the files are exported from the Formats tab. After you've configured the publish settings and you are ready to publish (export) the files, all you need to do is to make sure the correct frame is selected in the timeline and then press Shift-F12 and the files will be exported.
Take note, however, that when you publish the image or images using the publish settings technique, Flash exports the first frame of the main timeline by default. Remember that you can export only images corresponding to frames of the main timeline using the publish settings technique. However, you can tell Flash to export a frame other than the first frame. The technique varies depending on the image format. For PNG and GIF images, you add a frame label of #Static to the frame for which you want to export the image: select the frame in the timeline, open the Property inspector, and enter the value #Static in the Frame Label field. Then, when you publish, Flash exports the image so that it corresponds to the #Static frame. If you have selected more than one single-frame image format to export, all will correspond to that same frame. For JPEG content, however, the #Static frame label will have no effect. Instead, you must select the correct frame in the main timeline before publishing. |
![]() |
![]() |
![]() |
![]() |
Tripod >> 3pod Tips & Learning and manuals for educations