12/1/2010 7:25:58 AM
Title:
Question about embedding Flash: swfObject vs < Object >
I noticed that the Flash CS5 IDE publishes a very lean html code (see below) which appears to utilise the < object > tag. This seems to work very well - although I have this nagging feeling that I should be using swfObject .. how is swfObject different to the < object > tag? I've tested the code on all the browsers (IE6 included) with no problems.
Is it time to ditch swfObject? Or are there features in swfObject I'm overlooking?
If swfObject is the "standard" why doesn't the latest Flash IDE utilise it?
Thanks!
<object id='mySWF' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'>
<param name='movie' value='index.swf'>
<param name='allowfullscreen' value='true'>
<param name='bgcolor' value='#919191'>
<!--[if !IE]>-->
<object type='application/x-shockwave-flash' data='index.swf' width='100%' height='100%'>
<param name='allowfullscreen' value='true'>
<param name='bgcolor' value='#919191'>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">Get Flash</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>