I have a swf file that is not controlled by me. The swf expects a javascript call to set some variables after initialization.
The swf is embedded using the swfobject and I'm trying to call the as function right after the embed. This appears to be too soon because I get an error. Everything else should be fine since calling the as function manually via firebug does not produce the error.
So the question is how do I call the function when the embed is complete? Too bad that you don't have access to te SWF. I don't now how you could check with JavaScript how you can ensure that the SWF is loaded and initialized. Something like that should be done using Flash Vars. Maybe the SWF does a JavaScript call, when it is initialized?
以上就是Calling As function from js problem的详细内容,更多请关注web前端其它相关文章!