15 jan 2008

Embed SWF into WordPress

(NOTE: since this blog is not running on Wordpress anymore I can no longer show you a working version. But in 2008 it worked, promise)

Simple things like embedding a Flash SWF into the blog seem evident, but apparently WP doesn't like the EMBED/OBJECT tags very much. And there are other reasons not to use the embed/object tags anyway (like the 'click first to activate this control'-feature in Internet Explorer).

That's why my first reaction was to use the excellent javascript solution SWFObject. I was tempted to write a plugin of my own (a temptation i have to fight all too often) but there are already lots of great plugins available for WP which help you embed all kind of media files -both sound and video. To keep everything simple and fast i selected one which used the swfobject javascript solution. (maybe if my needs get bigger i will move up to another plugin)

All you need to type is a line in the code view like:

[kml_flashembed movie="xx.swf" height="200" width="300" /]

There are a few more options available (like the Flash Player express install feature) - in general it's a simple and fast way to link to (hosted) flash swf files.

Want the plugin or more info? Follow this link to the Kimili Flash Embed for Wordpress website