
About HTML publishing templates
481
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.
■
HTML
object
and
embed
tags that follow the tag requirements of Microsoft Internet
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
object
HTML tag; Netscape uses the
embed
tag. For
more information, see
“Using object and embed tags” on page 488
.
NO
TE
Use a backslash and dollar sign (\ $) combination if you need to use a dollar sign for
another purpose in the document.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...