« return to hot glue media

Embedding Flash in a WordPress Post

There’s a thread on the WordPress forum over at LinkedIn about embedding SWF files in WordPress. We’ve used Kimili Flash Embed quite successfully in the past on several occasions (for example, it’s what we used to embed the SimpleViewer galleries here), with the following code:

View Code

[kml_flashembed publishmethod="static" fversion="8.0.0" movie="http://URLOFSWFFILE.swf" width="800" bgcolor="000000" height="600" targetclass="flashmovie" fvars="xmlDataPath = http://URLOFXMLFILE.xml" ]

<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>

[/kml_flashembed]

That’s copied from the HTML tab – I don’t generally use the Visual Editor, so I can’t speak to the output of the Kimili button.

But once I thought about it for a while, I realized that I’ve embedded SWF files in other places as well, with nothing more than some basic embed codes in the HTML editor, like so:

banner

It’s a basic SWF slideshow with associated XML file, but it’s embedded with the help of no plugins at all using the following code:

View Code

<object type="application/x-shockwave-flash" data="http://hotgluemedia.com/blog/slideshow.swf?file=http://hotgluemedia.com/blog/slideshows/main/slideshow.xml" width="260" height="179"> <param name="movie" value="http://hotgluemedia.com/blog/slideshow.swf?file=http://hotgluemedia.com/blog/slideshows/main/slideshow.xml" /><img src="banner.gif" width="260" height="179" alt="banner" /></object>

The code must be pasted into the HTML editor (HTML tab, as opposed to the Visual tab). This blog is running WP3.0, so I don’t know if this will work on previous versions (although I may check that later if I have a moment.)

made this mess on June 29th, 2010 and filed it under WordPress

Comments are closed.