I have implemented an iframe into my flex application. The iframe contains a google map and various JavaScript functions which i am successfully able to call from my flex app.
like so
ExternalInterface.call("top.frames[0].addMarker", i, latitude, longitude, timestamp, user, state, datestring);
But now i want to pass data in the other direction.
I have found the following article http://webdevwonders.com/communication-between-flex-and-javascript/
which shows usage of addcallback
ExternalInterface.addCallback( "iAmCalledFromJavascript", iAmCalledFromJavascript);
do i need to add the same top.frames[0]. or something different?
Thanks
Vince