...

View Full Version : swfobject or Adobe's Code



tomyknoker
05-12-2008, 05:02 AM
I was wondering what people use when embedding Flash into web pages? Are there benefits to both swfobject & Adobe's js file? Or is swfobject far superior?

_Aerospace_Eng_
05-12-2008, 05:50 AM
I think swfobject is far superior. With Adobe's code you have to change your flash code in three places. The noscript part, then twice in the javascript call. With swfobject its one line and 3 things you need to fill it such as flashvars, attributes, or params. Note SWFobject is up to version 2.0 now. Version 1.5 is still better than Adobe's code in my opinion. With version 2.0 you can choose to use static or dynamic publishing. Static would be to have the flash code in the document already but would not get rid of the "Click to Activate" thing. Dynamic does the opposite. I currently use version 1.5 only because I haven't had time to update to version 2.0

tomyknoker
05-12-2008, 05:54 AM
So is Dynamic harder to use I don't see the point in having 2 options? Or does dynamic need to pull the code from a db or soemthing?

_Aerospace_Eng_
05-12-2008, 05:59 AM
No it helps to read the documentation.

Static is where the code is in the html meaning all of the object tags, all of the parameter elements are there as well.

Dynamic creates the flash on the fly using javascript.

The static option is there for people who want to have valid flash object code while at the same time detecting the users flash version.

Read the documentation!
http://code.google.com/p/swfobject/wiki/documentation

tomyknoker
05-12-2008, 06:00 AM
Oh yea it's right there oops!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum