Friday, January 27, 2006

Embedding Flash (swf) files in Blogger

This is the code I use to embed the swf files in Blogger. I enter this through the edit HTML tab in the Create Post window. Replace the brackets, {} with the <> when you use it. I had to switch to brackets in order to show the actual code here.

{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="420" height="420"}
{param name="movie" value="http://www.creativetony.com/swf/whackacat.swf"}
{param name=quality value=high}
{embed src="http://www.creativetony.com/swf/whackacat.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="420" height="420"}{/embed}{/object}"

I had to do a bit of tweaking on the original code I used to get it to play in both IE and Mozilla Firefox. If you are using Flash 8 there is an anti-aliasing process for the text not used in previous versions so a download of the Flash 8 player is required.

NOTE: THE MISSING END OBJECT TAG IS NOW INCLUDED. THANKS TO THOSE WHO POINTED IT OUT


Technorati Tags:
swf
Flash
Tutorial
embedding

12 comments:

garth bruner said...

You're the bomb. I've looked EVERYWHERE for this info!

Thanks so much for sharing!!!

Doll said...

Many thanks for the info!!!!!!!

Kim Carney said...

Thank you for that I was just thinking about that the other day

Queen Tut said...

Hello, thanks for the code. I will give it a try. I have an animation of mad lilly that I wanted to post.

atomicvelvetsigh said...

wow very timely! i have just finished a short course in Flash and i am about to give it a try online. thanks for this code!

Dan Turkette said...

:( I tried it, it did not work, said I was missing a closing tag.

Anonymous said...

you need to add a closing object tag
{/object}

Cesar said...

thakns for you information!!!
Mi english is very bad, i live in spain. please translate mi mensage:
¿donde almaceno el archivo?
te agradeceria mucho tu respuesta.
gracias

speci-man said...

You are my new hero.. thnx a lot man!!

Oh I almost forgot :
there's just an
{/object} missing in the end.

Janet Karam said...

Thanks so much for posting this info- I'm going to try now!

Chali! said...

Thank you, just what I needed :)

Nithya Subramanian said...

Thanks for your immense help :)
with ur help only i posted in my blog

http://nithyasubramanian.blogspot.com/2008/03/play-amazing-flash-mind-reader-game.html