While developing a site for a client a need emerged for us to be able to embed Flash files in the content.
To do so you could paste some HTML in the content editor and hope for it not to be parsed away. And to keep it the HTML or XHTML valid while doing so, and to support alternative content might be a bit tricky.
I thought that I would fix this problem using the Shortcode API, and also to make a plugin out of it while I was at it.
The result is Easy Flash Embed!
Embed Flash easily and standard compliant with SWFObject using only a [swf] shortcode!
In the text editor simply write something like:
[swf src="http://www.example.com/my-flash-file.swf" width=300 height=100]
You can even add some alternative content by writing something between the brackets:
[swf src="http://www.example.com/my-flash-file.swf" width=300 height=100]You must have Flash to view this file[/swf]