embed - Question about embedding Flash: swfObject vs < Object > -


i noticed flash cs5 ide publishes lean html code (see below) appears utilise < object > tag. seems work - although have nagging feeling should using swfobject .. how swfobject different < object > tag? i've tested code on browsers (ie6 included) no problems.

is time ditch swfobject? or there features i'm overlooking?

if swfobject "standard" why doesn't latest flash ide utilise it?

<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> 

swfobject isn't "standard" put it. it's third party javascript library allows progressively enhance website flash. swfobject not created adobe, whether ide supports @ discretion.

you may want use swfobject in place of object tag if plan on supporting multiple incompatible versions of flash different swfs or if want website able gracefully degrade in functionality. if place object tag in html you're committing exposing flash content, , if user doesn't have correct version of flash they'll bumpkis aside link "get flash." on other hand, depending on goals in use of flash, static or animated image may suffice in place of flash content. swfobject allows accomplish goals.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -