Updated Flashpaper Embedder
After Ryan went through a fair amount of effort to help get me on MXNA, I thought it was only fair that I get some ColdFusion posting in. (Especially after last night's drunken geekery.)
A while back I posted about creating a CFC that would embed dynamically created Flashpaper created by <cfdocument>. However, it didn't create Webstandards compliant XHTML code. So, I updated it to do so using a variation on the Satay Method.
Now I know I'm outputting from a CFC, but frankly, I really don't like custom tags, so I do this sort of thing in CFC format.
Check out the updated code: Flashpaper Embedder.
Comments
I can't use a CFC because the tag is called once as a regular cfm page (which CFCs can't) and again as a custom tag.
Unfortunately my website runs PHP, not CF so there's no live demo. You can house it here if you think it's worthy enough. Ideas for improvements welcomed.
Thanks, it's not nitpicking, they are legitimate issues. 


If you set the overwrite arg to false it will also throw an error.
Using a cache directory for files is okay if your site doesn't have many Flashpaper files but what if it does? A load of files can quickly build up especially if each file is unique to every user. It would be nice if there was a way to embed Flashpaper but serve it from memory. Not sure how?
Posted by: Gary Fenton at January 14, 2006 6:52 AM