Compatible html tag to show flash on html?
-
17-01-2021 - |
Question
There are various ways to show flash(swf file) on html, for example, object
or embed
tags.
I want to support IE6-9, FireFox3-, Chrome, Safari, and as many other browsers as possible.
(especially IE6-9)
But I also want to use simple tag as possible.
What is the best way to write html tag to show flash(swf file)?
Solution
I'd recommend SWFObject - it creates simple and easy to maintain code:
http://code.google.com/p/swfobject/
There's even a generator to automatically create the embed code:
http://www.bobbyvandersluis.com/swfobject/generator/index.html
OTHER TIPS
SWFObject supports all browsers. in fact, if you build flex using Flash Builder 4 then it automatically uses swfObject to embed your swf into the html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow