Publishing > 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 ColdFusion, ASP, and the like.

 
To modify an HTML publishing template:

1

Using an HTML editor, open the Flash HTML template you want to change. These templates can be found in the following locations.

For Windows operating systems:

Windows 2000 or XP: C:\Documents and Settings\user\Application Data\Macromedia\Flash MX\Configuration\HTML

Windows 98 or ME: C:\Windows\Application Data\Macromedia\Flash MX\Configuration\HTML

Windows NT: Windows directory\profiles\user\Application Data\Macromedia\Flash MX\Configuration\HTML

For Macintosh operating systems:

Macintosh OS X: Hard Drive/Users/Library/Application Support/Macromedia/FlashMX/Configuration/HTML

Macintosh System 9.x, single user: Hard Drive/System folder/Application Support/Macromedia Flash MX/Configuration/HTML

Macintosh System 9.x, multiple users: Hard Drive/Users/user/Documents/Macromedia/FlashMX/Configuration/HTML

2

Edit the template as needed.

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 same folder you retrieved it from.

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 documents.

The following table 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

Flash (SWF) movie title

$T1

Width

$WI

Height

$HE

Movie

$MO

HTML alignment

$HA

Looping

$LO

Parameters for OBJECT

$PO

Parameters for EMBED

$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

$GN

JPEG width

$JW

JPEG height

$JH

JPEG file name

$JN

PNG width

$PW

PNG height

$PH

PNG file name

$PN