Your Ad Here

Advertisements

Your Ad Here

Thursday, March 27, 2008

How to add SWF files to blog posts?

StumbleUpon

Adding Shockwave files is easy.

First off, adding Video and Imagine files are easy. If you are a Blogger User you can easly use the "add video" or "add Imagine" function in Blog Posting. Videos you want to appear on your website you can easily upload them to video sharing sites such as the popular YouTube. Youtube will then provide you with a Embed code that you use to place into your blog post. However Adding shockwave files isn't as straight forward. The good news is that its easy to do, simply all you have to do is add a small code to your blog. First step is to upload your shockwave file to a image sharing site or a host of your choice. Second step is to place the fallowing code (see below) where ever you want your flash file to appear.

Important Note: Replace the file_url with the Url of your Flash file. You will also have to edit the "width" and "height" values in the above code to match the values according to the size of your flash file.


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=6,0,29,0" width="405" height="400">
<param name="movie" value="file_url">
<param name="quality" value="high">
<embed src="file_url" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="405" height="400"></embed></object>


blog comments powered by Disqus