Hi,
The example here shows how to get your return value from JS into Flash.
http://www.adobe.com/devnet/flash/articles/external_interface_05.html
The addCallback is used for JS talking to Flash so you can go the
other way -
http://www.adobe.com/devnet/flash/articles/external_interface_06.html
HTH
Glen
SJF wrote:
I have an ExternalInterface call in my application that looks like this:
------------------------------------------------------------------------------------------------
ExternalInterface.call(BrowserScriptsJS.GET_BROWSER_INFO);
------------------------------------------------------------------------------------------------
The variable GET_BROWSER_INFO looks like this:
------------------------------------------------------------------------------------------------
*public* *static* *var* GET_BROWSER_INFO:XML =
<script><![CDATA[
*function*()
{
*var* nav = navigator;
*return* nav;
}
]]></script>;
------------------------------------------------------------------------------------------------------------------------------
So how do I get a response from the Javascript?
Do you have to create a proxy function in an example like this, the proxy
function being where you make the ExternalInterface.call and then another
function using ExternalInterface.addcallback for the return?
Also, and the above may answer this question, when you use ExternalInterface
to communicate with Javascript, must you always use call *and* addcallback,
i.e.: the request, then the response?
Thanks.
**
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders