Hi,

I've trying to get Javascript->Flash communication working. I am a
Flash newbie, so I don't really know what I'm doing. I have managed to
get Javascript -> Flash calls working at:

http://yetagain.net/sandbox/flashtest/
(With Actionscript source at http://yetagain.net/sandbox/flashtest/Tuto.as
)

*However* if you examine the code, you will see that this
communication happens after a delay of 1 second. If I try to make the
call as soon as the Swiff object is instantiated, then I get an
__flash__argumentsToXML is not defined error.

Therefore I need some sort of 'onLoad' event from the Swiff object.
Examining previous posts, it looks like I need a callback function
from Flash -> Javascript to tell Javascript that it is ready to start
receiving calls. As you can see from the code  I have set this up
using the 'callBacks' parameter passed to the constructor of the Swiff
object, and I call this function "onLoad". I then call "onLoad" from
the Actionscript using ExternalInterface.call.

*However* this callback function is never called. I'm unsure if this
is an issue with my Actionscript or my Javascript. In any case, I am
stuck.

Does anyone have any ideas?

Michal.


Reply via email to