Specifications

323ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
The following example shows a simple <embed> tag with the optional quality attribute:
<embed src="moviename.swf" width="100" height="100" quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shoc
kwaveFlash">
</embed>
To use both tags together, position the <embed> tag just before the closing </object> tag, as the following
example shows:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100"
codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,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=Shoc
kwaveFlash">
</embed>
</object>
When you define parameters for the <object> tag, also add them as tag properties to the <embed> tag so that the
SWF file appears the same on the page regardless of the clients browser.
If you are editing the HTML wrapper templates for the SDK, you will need to replace the tokens such as
${height} and ${width} in the <object> and <embed> tags with absolute values before deploying the wrapper.
For more information, see About the HTML templates” on page 312.
Not all properties are supported by both the <object> and the <embed> tags. For example, the id property is used
only by the
<object> tag, just as the name property is used only by the <embed> tag.
In some cases, the
<object> and <embed> tag properties duplicate properties that you can set on the
<mx:Application> tag in the Flex application source code. For example, you can set the height and width
properties of the SWF file on the
<object> and <embed> tags or you can set them on the <mx:Application> tag.