How to Embed Flash SWF in IE8
Internet Explorer 8 supports embedded Adobe Flash files, which have the SWF extension. You must use the object tag to embed an SWF in an HTML page for IE8. You can set the movie to play automatically or prompt your user to play the file. You can use the SWF file as an opening page for your website so that users can click a section of the site from the Flash movie.
Instructions
-
-
1
Right-click the HTML file for your Web page. Click "Open With," then click your preferred HTML editor.
-
2
Add the object tag in the location of the code where you want the movie to display. The following code is an example of the object tag:
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="500" HEIGHT="500" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
</OBJECT>
-
-
3
Insert the embed tag to define the SWF file you want to include in the HTML page. Place the following code within the object tags created in Step 2:
<EMBED SRC="myfile.swf" WIDTH="500" HEIGHT="500" PLAY="true" LOOP="true" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
Replace "myfile.swf" with your own SWF file. The Flash movie inserted is 500 pixels wide by 500 pixels in height. The quality is set to "high" and the movie automatically plays when the user opens the file in IE8.
-
1