assuming the .swf file and your index.html or any html file that should contain the .swf file is located in the same directory you can add this code to after <body> tag
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
<param name="movie" value="yourflash.swf" />
<param name="quality" value="high" />
<embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
</object>
-
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
- <param name="movie" value="yourflash.swf" />
- <param name="quality" value="high" />
- <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
- </object>
with this you can add your .swf file to the script your running... assuming that your swf file is name as yourflash.swf then having the same directory as the script running it the the flash should run or can be added immediately...
you can also place the swf file inside a <div> tag
example:
<div id="flashContainer">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
<param name="movie" value="yourflash.swf" />
<param name="quality" value="high" />
<embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
</object>
</div>
- <div id="flashContainer">
-
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="100">
- <param name="movie" value="yourflash.swf" />
- <param name="quality" value="high" />
- <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
- </object>
-
- </div>
-
Hope i somehow answered your question.... goodluck in your webdeveloping
Moderator Remark: Use [code][/code] to encapsulate code snippets