AurieaHarvey About Contact Index Random
Trail: FlashSettings


Reference Flash

Specifying publish settings that create HTML documents with embedded Flash content

Playing Flash content in a web browser requires an HTML document that activates the SWF file and specifies browser settings. This document is generated automatically by the Publish command, from HTML parameters in a template document.

The template document can be any text file that contains the appropriate template variables--including a plain HTML file, one that includes code for special interpreters such as ColdFusion or Active Server Pages (ASP), or a template included with Flash (for more information, see About configuring a web server for Flash).

You can customize a built-in template (see Customizing HTML publishing templates) or manually enter HTML parameters for Flash using any HTML editor (see Editing Flash HTML settings).

HTML parameters determine where the Flash content appears in the window, the background color, the size of the SWF file, and so on, and set attributes for the object and  embed tags. You can change these and other settings in the HTML panel of the Publish Settings dialog box. Changing these settings overrides options you've set in the SWF file.

To publish HTML that displays your Flash SWF file:

  1. Do one of the following to open the Publish Settings dialog box:
    • Select File > Publish Settings.
    • In the Property inspector for the document (which is available when no object is selected), click the Settings button.
    • Note: To create a publish profile for the publish settings that you'll specify, see Using publish profiles.

  2. On the Formats tab, the HTML file type is selected by default. In the File text box for the HMTL file, either use the default filename, which matches the name of your document, or enter a unique name, including the .html extension.
  3. Click the HTML tab to show HTML settings and select an installed template to use from the Template pop-up menu. Then click the Info button to the right to show a description of the selected template. The default selection is Flash Only.
  4. If, in the previous step, you selected an HTML template other than Image Map or QuickTime, and on the Flash tab, you set the Version to Flash Player 4 or later, you can select Flash Version Detection.

    Note: Flash Version Detection configures your document to detect the version of Flash Player that the user has and sends the user to an alternate HTML page if the user does not have the targeted player. For more information on version detection, see Configuring publish settings for Flash Player detection.

  5. Select a Dimensions option to set the values of the width and height attributes in the object and  embed tags:

    Match Movie (the default) uses the size of the SWF file.

    Pixels enters the number of pixels for the width and height in the Width and Height field.

    Percent specifies the percentage of the browser window that the SWF file will occupy.

  6. Select Playback options to control the SWF file's playback and features, as described in the following list:

    Paused at Start pauses the SWF file until a user clicks a button or selects Play from the shortcut menu. By default, the option is deselected and the Flash content begins to play as soon as it is loaded (the PLAY parameter is set to true) .

    Loop repeats the Flash content when it reaches the last frame. Deselect this option to stop the Flash content when it reaches the last frame. (The LOOP parameter is on by default.)

    Display Menu shows a shortcut menu when users right-click (Windows) or Control-click (Macintosh) the SWF file. Deselect this option to show only About Flash in the shortcut menu. By default, this option is selected (the MENU parameter is set to true).

    Device Font (Windows only) substitutes anti-aliased (smooth-edged) system fonts for fonts not installed on the user's system. Using device fonts increases the legibility of type at small sizes and can decrease the SWF file's size. This option affects only SWF files that contain static text (text that you create when authoring a SWF file and that does not change when the Flash content appears) set to display with device fonts. For more information, see Using device fonts (static horizontal text only).

  7. Select Quality options to determine the trade-off between processing time and appearance, as described in the following list. This option sets the QUALITY parameter's value in the object and embed tags.

    Low favors playback speed over appearance and does not use anti-aliasing.

    Auto Low emphasizes speed at first but improves appearance whenever possible. Playback begins with anti-aliasing turned off. If Flash Player detects that the processor can handle it, anti-aliasing is turned on.

    Auto High emphasizes playback speed and appearance equally at first but sacrifices appearance for playback speed if necessary. Playback begins with anti-aliasing turned on. If the actual frame rate drops below the specified frame rate, anti-aliasing is turned off to improve playback speed. Use this setting to emulate the View > Antialias setting in Flash.

    Medium applies some anti-aliasing but does not smooth bitmaps. It produces a better quality than the Low setting but lower quality than the High setting.

    High (the default) favors appearance over playback speed and always uses anti-aliasing. If the SWF file does not contain animation, bitmaps are smoothed; if the SWF file has animation, bitmaps are not smoothed.

    Best provides the best display quality and does not consider playback speed. All output is anti-aliased and bitmaps are always smoothed.

  8. Select a Window Mode option, which controls the HTML wmode attribute in the object and embed tags. The window mode modifies the relationship of the Flash content bounding box or virtual window with content in the HTML page as described in the following list:

    Window does not embed any window-related attributes in the object and embed tags. The background of the Flash content is opaque and uses the HTML background color. The HTML cannot render above or below the Flash content. This is the default setting.

    Opaque Windowless sets the background of the Flash content to opaque, obscuring anything underneath the Flash content. Opaque Windowless lets HTML content appear above or on top of Flash content.

    Transparent Windowless sets the background of the Flash content to transparent. This allows the HTML content to appear above and below the Flash content.

    Note: In some instances, complex rendering in Transparent Windowless mode can result in slower animation when the HTML images are also complex.

    See the table following this procedure for browsers that support windowless modes.

  9. Select one of the following HTML Alignment options to position the Flash SWF window in the browser window:

    Default centers the Flash content in the browser window and crops edges if the browser window is smaller than the application.

    Left, Right, Top, or Bottom align SWF files along the corresponding edge of the browser window and crop the remaining three sides as needed.

  10. Select a Scale option to place the Flash content within specified boundaries, if you've changed the document's original width and height. The Scale option sets the SCALE parameter in the object and embed tags.

    Default (Show All) shows the entire document in the specified area without distortion while maintaining the original aspect ratio of the SWF files. Borders can appear on two sides of the application.

    No Border scales the document to fill the specified area and keeps the SWF file's original aspect ratio without distortion, cropping the SWF file if needed.

    Exact Fit displays the entire document in the specified area without preserving the original aspect ratio, which can cause distortion.

    No Scale prevents the document from scaling when the Flash Player window is resized.

  11. Select a Flash Alignment option to set how the Flash content is placed within the application window and how it is cropped, if necessary. This option sets the SALIGN parameter of the object and embed tags.
    • For Horizontal alignment, select Left, Center, or Right.
    • For Vertical alignment, select Top, Center, or Bottom.
  12. Select Show Warning Messages to show error messages if tag settings conflict--for example, if a template has code referring to an alternate image that has not been specified.
  13. To save the settings with the current file, click OK.

The following browsers support windowless modes:

Operating system Internet Explorer Netscape Other

Macintosh OS X 10.1.5 and 10.2

5.1 and IE 5.2

7.0 and later

  • Opera 6 or later
  • Mozilla 1.0 or later
  • AOL/Compuserve


5.0, 5.5, and 6.0

7.0 and later

  • Opera 6 and later
  • Mozilla 1.0 and later
  • AOL/Compuserve