Log in

View Full Version : SWF Object



auntnini
11-04-2008, 09:40 PM
May I have comments on SWFObject, which I first found a couple of years ago at Geoff Stearns’ http://www.deconcept.com/?ver=9&jumpto , and now see at http://code.google.com/p/swfobject/wiki/documentation described as “Open source project by Geoff Stearns, Michael Williams, and Bobby van der Sluis, formerly known as SWFFix .”
It is featured at sites created by http://www.livebooks.com, such as http://www.emisaeki.com:

<script type="text/javascript">
function doInit() {
var so = new SWFObject("./sources/index_website_loaderLiveBooks_5_7_19.swf", "liveBooks", "971", "636", "7", "#FFFFFF", true);
// flash object parameters
so.addParam("wmode", "normal"); //normal or transparent
so.addParam("menu", "false");
// flash movie variables
so.addVariable("local", "http://emisaeki.com/");
so.addVariable("bgColor", "0xFFFFFF");
so.addVariable("refreshSwitcher", "0");
so.addVariable("splash_page_type", "3");
so.addVariable("splash_bar_type", "loaderLiveBooks");
so.addVariable("splash_bar_color1", "0xFF6600");
so.addVariable("splash_bar_color2", "0x999999");
so.addVariable("splash_text", "Photographed+by+Clifton+parker+%0D+retouched+by+Emi+Saeki");
so.addVariable("splash_text_color", "0x000000");
so.addVariable("splash_graphic_type", "2");
so.addVariable("splash_timer", "1");
so.addVariable("splash_graphic", "data/pages/splash/080508192947_1flower1.jpg");
so.addVariable("hide_url", "0");
so.addVariable("upload_email", "emirobinson@gmail.com");
so.addVariable("files_version", "_5_7_19");
// address bar variables
so.addVariable("pt", getQueryParamValue("pt"));
so.addVariable("pi", getQueryParamValue("pi"));
so.addVariable("mi", getQueryParamValue("mi"));
so.addVariable("at", getQueryParamValue("at"));
so.addVariable("a", getQueryParamValue("a"));
so.addVariable("p", getQueryParamValue("p"));
so.addVariable("s", getQueryParamValue("s"));
so.addVariable("pw", getQueryParamValue("pw"));
so.addVariable("cpi", getQueryParamValue("cpi"));
so.write("flashcontent");
}
</script>

Is this more Flash or JavaScript? Is it “AJAX” or server-side dependent XML involved? Does it currently do more than ordinary Flash Player? Does Dynamic Drive have any such scripts?

Medyman
11-05-2008, 01:10 PM
SWFObject is a way to embed your Flash files onto your HTML page. It's JavaScript -- no server-side anything involved. It was initially designed to get rid of the "click here to activate" issue in IE and Opera. If that's not of special concern to you, you can use regular <embed>/<object> codes.

The latest version of SWFObject is the here (http://code.google.com/p/swfobject/). And it's not just those two sites that use it. Adobe is now bundling it with CS4. Most Flash professionals use it.

auntnini
11-05-2008, 10:30 PM
Your input is appreciated. Thanks for the info.

I hear Flash CS4 will have some major changes.

Medyman
11-06-2008, 12:14 AM
I hear Flash CS4 will have some major changes.

Will have? It already released. It does!