Saturday, November 28, 2009

Adobe Flash File Types

Clearly, the most common use for Flash is to create interactive animations for the web. Sifting through all the different file types involved can be a little confusing. At a minimum, you need to understand three types: source (.fla) files, exported (.swf) files, and or Hypertext Markup Language (HTML-.htm or .htm1) files.


One of the two main file types in Flash is the source Flash movie that you save while working it uses the file extension .fla (often pronounced “fla”). You can open and edit any .fla file, provided that you own Flash. This is your source file. With the .fla file, you can always restore the other file types-but nothing can restore a .fla file (except, maybe, doing all the work over again).

When sharing files with others who need to edit the source file, you share the .fla file. Anyone who has Flash Cs3 (for either Mac or Windows) can open and edit the .fla file you create. However, you can’t put .fla files into a web page for people to view- they’re just files that contain your source content.


When you’re finished editing a source file and ready to distribute your creation, you simply export a .swf (pronounced “swif”) Flash player file. A .swf file can be viewed by any one who has an Internet browser and the Flash player plug-in. The audience can’t edit the .swf-they can only watch it.

The process for creating a new .swf file is simple. You open a .fla file, select file, Export Movie, and then specify the name and file location for the .swf file in the Export Movie dialog box. Although more details are involved, the important point to understand is that exporting involves creating a new file (the .swf file), but the .fla file remains untouched. It’s similar to using save As or Save a Copy As in some other software programs. Whatever you do, you should always keep a copy of your .fla file. You can always create more .swf files from it-or make edits and then create more .swf files.


If you have any experience creating HTML, the basic process of putting .swf files in web page should be simple. It you have no HTML experience, it won’t hurt to learn a little HTML, but you really don’t have to. Remember that when you “visit” a web page, you’re not really “going” anywhere. Rather, your browser software downloads a text file (with either an .htm or .html file extension). This HTML file contains not only the words you see on the web page, but additional instructions as well, including the font style and size.

In addition, the HTML file contains details about any of the pictures that are supposed to be seen on the web page-details such as the image file’s name and from where it should download so that you can see it. Putting a Flash player ( .swf) file in a web page is almost as easy as putting a picture in a web page. A few other details (in addition to the filename of the .swf) can be included, such as the background color, whether you want the movie to loop, and other interesting settings that are unique to Flash.

To make this process even easier, Flash includes a feature called publish (discussed in Hour 19, “Linking a Movie to the web”, and Hour 24, “Publishing a Creation”), which walks you through the steps of creating both the .swf file and the .html file. Every detail available can be specified in the Publish settings dialog box (see Figure 1.20). you can specify parameters for each file format that you intend to distribute by using the tabs that appear (only the tabs for the file types you specify appear).


Post a Comment

Related Posts with Thumbnails