Publishing and Exporting > Customizing HTML publishing templates
Customizing HTML publishing templates
If you're familiar with HTML, you can modify HTML template variables to create an image map, a text report, or a URL report, or to insert your own values for some of the most common Flash OBJECT
and EMBED
parameters (for Internet Explorer and Netscape Communicator/Navigator, respectively).
Flash templates can include any HTML content for your application, or even code for special interpreters such as Cold Fusion, ASP, and the like.
To modify an HTML publishing template:
1 | Using an HTML editor, open the Flash HTML template you want to change, located in the Macromedia Flash 5/HTML folder. |
2 | Edit the template as needed. To use the default values, leave the variables empty. |
For information on variables supported in Flash, see the following table. | |
For information on creating an image map or a text or URL report, or to insert your own values for OBJECT and EMBED parameters, see the sections for those topics, following this procedure. |
|
3 | When you have finished editing the variables, save the template in the Macromedia Flash 5/HTML folder. |
Flash saves the modified template with the Flash movie's file name and the template extension. For example, saving a template named Standard.asp for publishing a Flash movie named MyMovie.swf produces a template named MyMovie.asp. | |
4 | To apply the template settings to your Flash movie, choose File > Publish Settings, select the HTML panel, and select the template you modified. |
Flash changes only the template variables in the template selected in the Publish Settings dialog box. | |
5 | Choose your remaining publishing settings, and click OK. For more information, see Publishing Flash movies. |
![]() |
The following tables lists the template variables that Flash recognizes. For a definition of all the tags these variables work with, see Editing Flash HTML settings.
Parameter | Template Variable |
---|---|
Template title |
$TT |
Template description start |
$DS |
Template description finish |
$DF |
Width |
$WI |
Height |
$HE |
Movie |
$MO |
HTML alignment |
$HA |
Looping |
$LO |
Parameters for |
$PO |
Parameters for |
$PE |
Play |
$PL |
Quality |
$QU |
Scale |
$SC |
Salign |
$SA |
Wmode |
$WM |
Devicefont |
$DE |
Bgcolor |
$BG |
Movie text (area to write movie text) |
$MT |
Movie URL (location of movie URLs) |
$MU |
Image width (unspecified image type) |
$IW |
Image height (unspecified image type) |
$IH |
Image file name (unspecified image type) |
$IS |
Image map name |
$IU |
Image map tag location |
$IM |
QuickTime width |
$QW |
QuickTime height |
$QH |
QuickTime file name |
$QN |
GIF width |
$GW |
GIF height |
$GH |
GIF file name |
$GS |
JPEG width |
$JW |
JPEG height |
$JH |
JPEG file name |
$JN |
PNG width |
$PW |
PNG height |
$PH |
PNG file name |
$PN |
Generator variables OBJECT tag |
$GV |
Generator variables EMBED tag |
$GE |