Skip to main content

Posts

Showing posts from October, 2011

Flash, HTML pages, and SWFAddress

This is my solution for using Flash, SWFAddress , and HTML fall-back pages. It is more quick and dirty than “the right” solution, but it falls firmly into the “works for me” category. I use SWFObject (link) to detect and execute a Flash site and to fall back to a non-Flash site when the browser cannot handle Flash Typically, the code will look like the following: <script type="text/javascript" src="./js/swfobject.js"></script> <script type="text/javascript"> var flashvars = {}; var params = {}; params.menu = "false"; params.quality = "best"; params.allowfullscreen = "false"; params.wmode ="transparent"; var attributes = {}; attributes.align = "TL"; swfobject.embedSWF("website.swf", "nonflash_content", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes); </script> Extrem