Specifications

317ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
document.write("<embed name='MyApp' src='MyApp.swf'
pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shoc
kwaveFlash' height='100%' width='100%'/>");
document.write("</object>");
Adding the Mark of the Web (MOTW) to your wrapper is optional. However, if you do not add the MOTW to
your wrapper, your application might not open in the expected security zone within Internet Explorer. The
following example MOTW forces Internet Explorer to open the page in the Internet zone:
<!-- saved from url=(0014)about:internet -->
In general, add a MOTW when you are previewing pages locally before publishing them on a server. For more
information about the MOTW, see http://msdn.microsoft.com/workshop/author/dhtml/overview/motw.asp.
To support browsers that do not have scripting enabled, you can add a <noscript> block to the wrapper. The tags
in this block of code usually mirrors the output of the
document.write() methods in the embedded JavaScript
file. The following example adds the
<noscript> block:
<!-- index.html -->
<!-- saved from url=(0014)about:internet -->
<html>
<body>
<script src="mysource.js"></script>
<noscript>
<object id='MyApp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com
/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'
height='100%' width='100%'>
<param name='src' value='MyApp.swf'/>
<embed name='MultipleButtons' pluginspage='http://
www.macromedia.com/shockwave/download/index.cgi
?P1_Prod_Version=ShockwaveFlash' src='MyApp.swf' height='100%'
width='100%'/>
</object>
</noscript>
</body>
</html>
About the HTML page
The wrapper’s HTML page includes the following:
<script> block The script block embeds the JavaScript file. This JavaScript file defines the <object> and <embed>
tags that embed the SWF file in the HTML page. This block is for users who have enabled JavaScript in their
browser.