Skip to content
March 21, 2011 / Danii Oliver

SWFObject Explained

SWFObject is being called the most powerful tool in your arsenal for deploying Flash content to the web and devices.

SWFObject was created by… and can be downloaded from …. Go ahead and get it then we’ll talk more about it.

SEO, Alternate Content, Light weight JS which is just better for loading

in your html file that deploys your swf content

When: Should be used from here on out. Forget about using the Flash generated html. No sweat if your lazy just use the swfObject UI.

The important parts to have.
this code
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("digitus/AdaptvDigitus.swf", "myContent", "500", "400", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

And your alternate content div

Thats all. No sweat and really simply.
Note there are two ways to deploy swfObject static and Dynamic. There really is no sense in using the static version as it defeats the powerful purpose of swfObject which is to allow for cross browser compatibly and the use of alternative content. The static version does provide alt content but it doesn’t work gracefully cross browser.

Happy Coding


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: