Using object and embed tags

To display a Flash SWF file in a web browser, an HTML document must use the object and embed tags with the proper parameters.

For object, four settings (height, width, classid, and codebase) are attributes that appear within the object tag; all others are parameters that appear in separate, named param tags. For example:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100"
height="100" codebase="http://active.macromedia.com/flash7/cabs/
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 embed tag, all settings (such as height, width, quality, and loop) are attributes that appear between the angle brackets of the opening embed tag. For example:

<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 together, position the embed tag just before the closing object tag, as follows:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100"
height="100" codebase="http://active.macromedia.com/flash7/cabs/
swflash.cab#version=6,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>

Note: If you use both the object and the embed tags, use identical values for each attribute or parameter to ensure consistent playback across browsers. The parameter swflash.cab#version=6,0,0,0 is optional, and you can omit it if you don't want to check for version number.