Using object and embed tags – Adobe Flash Professional CS3 User Manual
Page 447
FLASH CS3
User Guide
441
See also
“Publishing overview” on page 419
“HTML publishing templates” on page 436
Using object and embed tags
To display a SWF file in a web browser, an HTML document must use the
object
and
embed
tags with the proper
parameters.
Note: You can generate an HTML document using the correct object and embed tags using the Publish settings dialog
box, and selecting the HTML option. For more information, see “Specify settings that create HTML documents with
embedded Flash content” on page 423.
For
object
, four settings (
height
,
width
,
classid
, and
codebase
) are attributes that appear in the
object
tag; all
others are parameters that appear in separate, named
param
tags, as shown in the following example:
For the
embed
tag, all settings (such as
height
,
width
,
quality
, and
loop
) are attributes that appear between the
angle brackets of the opening
embed
tag, as shown in the following example:
To use both tags, position the
embed
tag before the closing
object
tag, as shown in the following example:
Note: If you use the
object
and
embed
tags, use identical values for each attribute or parameter to ensure consistent
playback across browsers. The
swflash.cab#version=9,0,0,0
parameter is optional; only omit this parameter if you
don’t want to check for the version number.