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
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