User Guide

Customizing HTML publishing templates 333
Creating a text report
The
$MT template variable causes Flash to insert all the text from the current Flash SWF file as a
comment in the HTML code. This is useful for indexing the content of a SWF file and making it
visible to search engines.
Creating a URL report
The
$MU template variable makes Flash generate a list of the URLs referred to by actions in the
current SWF file and insert it at the current location as a comment. This lets link verification
tools see and verify the links in the SWF file.
Using shorthand template variables
The
$PO (for object tags) and $PE (for embed tags) template variables are useful shorthand
elements. Each variable causes Flash to insert into a template any nondefault values for some of
the most common Flash
object and embed parameters, including PLAY ($PL), QUALITY ($QU),
SCALE ($SC), SALIGN ($SA), WMODE ($WM), DEVICEFONT ($DE), and BGCOLOR ($BG). For an example
of these variables, see the sample template in the following section.
Sample template
The following Default.HTML template file in Flash includes many of the commonly used
template variables:
$TTFlash Only
$DS
Display Macromedia Flash Movie in HTML.
$DF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
$CS
<title>$TI</title>
</head>
<body bgcolor="$BG">
<!--url's used in the movie-->
$MU
<!--text used in the movie-->
$MT
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://
fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,0,0" width="$WI" height="$HE" id="$TI" align="$HA">
<param name="allowScriptAccess" value="sameDomain" />
$PO
<embed $PEwidth="$WI" height="$HE" name="$TI" align="$HA"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>