PDA

View Full Version : preload flash in firefox


dancinkid6
12-05-2006, 03:33 AM
hello, i ran into a problem when preload flash in firefox

writeFlash("bg11", "bg.swf"); // a function i made to write flash
if(ie_flag=="yes")
fl = document.getElementById("bg11");
else
fl = document.bg11;

if(fl.PercentLoaded == 100)
{
showFlash();
}

this works fine for both IE and Firefox, however, when i put a div tag around the flash, this stopped working for firefox.

error msg is "fl.percentloaded is not a function"

very strange, does anyone know how to solve it?

thanks in advance

anonymous
12-05-2006, 03:40 AM
FF uses the embed tag...

And you should look into this workaround for the Eolas problem...

Works marvelously well...

http://blog.deconcept.com/swfobject/

dancinkid6
12-05-2006, 03:49 AM
so i would be able to call PercentLoaded directly with the SWFObject?? just wanna make sure cuz this would require quite a bit work from my current script

anonymous
12-05-2006, 03:55 AM
Sorry, don't understand what you're getting at!

What is supposed to be preloaded? The Flash movie, before you embed it?

dancinkid6
12-05-2006, 04:05 AM
yes, i am preloading this flash in a hidden div, and show it after it is fully loaded.

just tried the SWFObject thingy, it doesnt work