View Full Version : swfobject or Adobe's Code

05-12-2008, 04: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?

05-12-2008, 04: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

05-12-2008, 04: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?

05-12-2008, 04: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!

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