About HTML publishing templates
A Flash HTML template is a text file that contains both static HTML code and flexible
template code consisting of a special type of variables (which differ from ActionScript
variables). When you publish a Flash SWF file, Flash replaces these variables with the values
you selected in the HTML tab of the Publish Settings dialog box and produces an HTML
page with your SWF file embedded.
Flash includes various templates, suitable for most users' needs, that eliminate the need to
manually create an HTML page that displays the Flash SWF file. For example, the Flash Only
template is useful for quickly testing your files in a browser. It simply places the Flash SWF
file on the HTML page so that you can view it through a web browser with the Flash Player
installed.
You can easily use the same template, change the settings, and publish a new HTML page. If
you're proficient in HTML, you can also create custom templates using any HTML editor.
Creating a template is the same as creating a standard HTML page, except that you replace
specific values pertaining to a Flash SWF file with variables that begin with a dollar sign ($).
Flash HTML templates have the following special characteristics:
A one-line title that appears on the Template pop-up menu in the HTML tab of the
Publish Settings dialog box.
A longer description that appears when you click the Info button in the HTML tab of the
Publish Settings dialog box.
Template variables beginning with a dollar sign ($) that specify where parameter values
should be substituted when Flash generates the output file.
Use a backslash and dollar sign (\ $) combination if you need to use a dollar sign for
another purpose in the document.
HTML
and
object
Explorer and Netscape Communicator/Navigator, respectively. To display a SWF file
properly on an HTML page, you must follow these tag requirements. Internet Explorer
opens a Flash SWF file using the
more information, see
tags that follow the tag requirements of Microsoft Internet
embed
HTML tag; Netscape uses the
object
"Using object and embed tags" on page
embed
488.
About HTML publishing templates
tag. For
481
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?