beautypg.com

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

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

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

$CS

$TI

$MU

$MT

codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0

" width="$WI" height="$HE" id="$TI" align="$HA">

$PO

type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"

/>

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.