http://www.actionscript.org/resources/articles/745/1/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page1.html

This tutorial should be pretty useful.

Glen Pike wrote:
I also forgot to add that you may need to set the "AllowScriptAccess" variable to "always" in your SWF embedding HTML code in order to make sure your Flash can talk to the browser...

http://www.google.co.uk/search?hl=en&q=allowScriptAccess&btnG=Search&meta=

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



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to