Editing Flash Html Settings - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Editing Flash HTML settings

You need an HTML document to play a Flash SWF file in a web browser and specify browser
settings. If you are experienced with HTML, you can change or enter HTML parameters in an
HTML editor or create custom HTML files to control a Flash SWF file.
You can also have Flash create the HTML document automatically when you publish a SWF file;
see
"Publishing Flash documents" on page
templates included in Flash, see
Using object and embed tags
To display a Flash SWF file in a web browser, an HTML document must use the
tags with the proper parameters.
embed
For
, four settings (
object
within the
object
shown in the following example:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100"
height="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=7,0,0,0">
<param name="movie" value="moviename.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
</object>
For the
tag, all settings (such as
embed
appear between the angle brackets of the opening
<embed src="moviename.swf" width="100" height="100" play="true"
loop="true" quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/
index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
To use both tags, position the
example:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100"
height="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=7,0,0,0">
<param name="movie" value="moviename.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed src="moviename.swf" width="100" height="100" play="true"
loop="true" quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/
index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
334
Chapter 15: Publishing
"Customizing HTML publishing templates" on page
,
height
width
tag; all others are parameters that appear in separate, named
height
tag before the closing
embed
311. For information on customizing HTML
,
, and
classid
codebase
,
,
width
quality
tag, as shown in the following example:
embed
object
object
) are attributes that appear
param
, and
) are attributes that
loop
tag, as shown in the following
330.
and
tags, as

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents