?Currently, the only known way to do this is to "poll" (that is, loop with a
short interval `setTimeout()` call) to check for when the SWF's
`PercentLoaded()` call returns 100. For instance, something like this:
function checkSWF() {
if (myflashobj.PercentLoaded() < 100) {
setTimeout(checkSWF,50);
}
else {
// swf is loaded!
}
}
checkSWF();
--------------------------------------------------
From: "Raf M." <[email protected]>
Sent: Sunday, October 03, 2010 9:19 AM
To: "SWFObject" <[email protected]>
Subject: [SWFObject] Call JS when swf is completely loaded
Hi all,
I include swf files of about 4 MB on some of my pages. I want to have
a javascript function called when this swffile is completely loaded.
Is there a way with SWFObject to do this?
Thanks,
Raf
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.