Reputation: 4731
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)?
Upvotes: 1
Views: 173
Reputation: 25490
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
Upvotes: 2
Reputation: 90863
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
Upvotes: 4