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 Export Export Image. We'll call this first technique the export image technique. The second is to change the publish settings so that Flash will know to export the image types that you want, and then to use the publish feature to tell Flash to export the file or files. We'll call this second technique the publish settings technique. Let's take a look at each of these two techniques in more depth, including when and why you would want to use one over the other. 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 Export Export Image from the Flash application menu system. The Export Image dialog box appears, prompting you to choose the location, name (exp 3pod.com), and format to which you want to export the current frame. Clicking Save after selecting a location, name (exp 3pod.com), and format will either export the file or bring up the Export Options dialog box if the selected format requires that you choose values. The options vary depending on the format, but in each case the options with which you are presented are fairly straight-forward. They involve things such as dimensions, resolution, color depth, and so on. 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 Publish Settings. With the Format tab selected in the Publish Settings dialog box, check each checkbox next to the formats you want to export. For each selected format, a new tab allows you to adjust the settings for that particular format. For example, if you check the JPEG and PNG format options, a JPEG and PNG tab appears within the Publish Settings dialog box. You can then choose the various tabs to adjust the settings for the corresponding formats. Those settings determine how the files will export. 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