Specifications

CHAPTER 16
316
The following example illustrates the minimum number of requests that the client browser makes when JavaScript
is enabled:
The following example shows the minimum requirements of the HTML page and JavaScript file to embed a Flex
application named MyApp:
<!-- index.html -->
<!-- saved from url=(0014)about:internet -->
<html>
<body>
<script src="mysource.js"></script>
</body>
</html>
<!-- mysource.js -->
document.write("<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%'>");
document.write("<param name='movie' value='MyApp.swf'/>");
Requested FileClient Browser
Step 1: GET /ex/index.html
Step 2: GET /ex/mysource.js
Step 3: GET /ex/MyApp.swf