• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

How to Publish

Recall from Hour 19 that publishing is as easy as selecting File, Publish. In practice, however, you'll want to first save your files in a known folder and then step through all the publishing settings before finally publishing. The following task steps you through a scenario using Publish.

Try It Yourself: Set Up the Publish Settings and Then Publish a Movie

This task walks you through using the Publish Settings dialog box. Here are the steps to follow:

Either open a movie you've created in the past or create a simple animation. Make sure there's some visual change; for example, a movie clip might tween across the screen.

Select File, Save As and save this file in a new folder that contains no other files.

Select File, Publish Settings. The Publish Settings dialog box appears. Note that any changes you make in the Publish Settings dialog box will only be saved with this file. However, you can save your settings as a profile that becomes available to other files.

Select the Formats tab of the Publish Settings dialog box so you can specify which formats will be exported. For every format you select, an additional tab will appear (see Figure 24.1). The options in this dialog box will be covered in depth later this hour. For now, select Flash, and HTML. Notice that each file has the same name as your source file (with a different extension). You can override this setting, but leaving it is probably easiest—you can always rename files on your hard drive before you upload them. (Clicking Use Default Names restores any changes you make to the filenames.)

Figure 24.1. The Formats tab of the Publish Settings dialog box allows you to specify which file formats you plan to export.

Click the Flash tab and take a quick look at the Version option. Determining which setting to choose for this option is subjective. For this task, suppose you want your movie to work for users who have the Flash Player 6 plug-in or later. Change the Version drop-down list's setting to Flash Player 6. Also, for the sake of demonstration, select Optimize for Flash Player 6 r65. The completed Flash tab is shown in Figure 24.2.

Figure 24.2. You can ensure that your movie will work with older versions of the Flash Player by changing the Version setting in the Flash tab.

By the Way: Using User Interface Components

If you're using any of the user interface components (also known as V2 components), it's easiest to publish using Flash version 7 or greater. It turns out, you can also make these components work in Flash Player 6, but only revision 65 or later. In any event, you'll also have to select the option ActionScript version 2.0.

Click the HTML tab. Here you can make some adjustments to the HTML that Flash will create. From the Template drop-down list, select Flash Only. Next, select the Detect Flash Version check box. The Major version is fixed at 6 (to match what you set in the Flash tab). However, you can edit the next two fields to read 0 and 65, respectively. The HTML generated when you publish will have additional code to ensure visitors have at least the Flash Player 6,0,65. (In the next task, I'll show you how you can control what happens to those visitors who don't meet this requirement.)

Set the Dimensions option to Percent and then type 100 in both the Width and Height fields so the movie will entirely fill the browser window. You can come back later and make changes to any of these settings. For now, just make sure the check boxes Loop and Display Menu are unchecked. (Unchecking Display Menu prevents users from seeing the extended options when right-clicking your movie.)

When you've gone through both tabs (for the two formats you selected), click OK. The publish settings are saved. Save your Flash file now, too. Select File, Publish. It might not seem like anything happens, but a .swf and the corresponding .html file are exported into the folder where the source file resides. Go into that folder and double-click the HTML file that matches your movie's name.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint