Making sure in js that swf was loaded
November 22, 2005 12:00 AM
Hi I've got the following problem:I'm calling flash method from lectora js each time page loads (onShow event). The problem is: sometimes (usually when putting Lectora HTML output on the webserver) when I'm calling this function on swf object (TCallLabel) I'm receiving JS error indicating that said object (i.e. swfanim491 ) doesn't yet exist in DOM hierarchy. I tried attaching this js call to onShow event attached to this swf object - I thought, that such action wouldn't be run before the parent object was fully loaded - unfortunately that is not the case.Could anybody give me a hint how to control the order of js objects loading or getting sure that some event that has to be run on start won't be ran before the object was loaded.(to give you some background: I've got swf mp3 player and I want to mute it if js variable isMuted was set to '1' value in previous pages).thanks a LOT!
Discussions have been disabled for this post