Reference Flashhttp://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00000484.html
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.
Note: To create a publish profile for the publish settings that you'll specify, see Using publish profiles.
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.
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.
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).
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.
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.
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.
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.
SALIGN
parameter of the
object
and
embed
tags.
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 |
|
Windows |
5.0, 5.5, and 6.0 |
7.0 and later |
|