Saturday, September 25, 2010

Embed A SWF File Without Using SWFObject

Flash Video

This method can be used to load SWF files into your blog or other SWF files located on the web. The SWF file and all assets of course must be on a web server.

We call the Macromedia flash plugin to play the SWF file instead of the SWFObject JavaScript. Here the OBJECT and EMBED tags are meant for different browsers for the video's smooth operation.

<object id="whatever" 
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
width="400" height="300" 
codebase="http://download.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=9,0,115,0">  
<param name="src" value="http://www.site.com/example.swf"/>  
<param name="bgcolor" value="#FFFFFF"/>  
<param name="quality" value="best"/>  
<embed name="whatever" src="http://www.site.com/example.swf" 
width="400" height="300" bgcolor="#FFFFFF" 
quality="best" 
pluginspage="http://www.adobe.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>  
</object>

You can also include the video parameters like loop, quality, bgcolor, etc. for the SWFObject embedding as well.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...