Using shorthand template variables, Embedding search metadata, Sample html template – Adobe Flash Professional CS3 User Manual

Page 446: Editing flash html settings, About the html document

Advertising
background image

FLASH CS3

User Guide

440

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

object

and

embed

param-

eters, including

PLAY

(

$PL

),

QUALITY

(

$QU

),

SCALE

(

$SC

),

SALIGN

(

$SA

),

WMODE

(

$WM

),

DEVICEFONT

(

$DE

), and

BGCOLOR

(

$BG

).

Embedding search metadata

The

$TL

(SWF file title) and

$DC

(description metadata) template variables let you include search metadata in the

HTML. This ability can make the SWF file more visible to search engines, and provide meaningful search results.
Use the

$MD

template variable to include the search metadata as an XML string.

Sample HTML template

The following Default.HTML template file in Flash includes many of the commonly used template variables:

$TTFlash Only

$DS

Display Adobe 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.adobe.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.adobe.com/go/getflashplayer"

/>

</object>

</body>

</html>

Editing Flash HTML settings

About the HTML document

You need an HTML document to play a SWF file in a web browser and specify browser settings. To control a SWF
file, change or enter HTML parameters in an HTML editor or create custom HTML files.

Flash can create the HTML document automatically when you publish a SWF file.

Advertising