Hi,

The ExternalInterface.call() will return the value from javascript.
So your flex code might look like this,

*var returnObj:Object = ExternalInterface.call(**
BrowserScriptsJS.GET_BROWSER_**INFO);*

where *returnObj *is the object that is returned from javascript functon.

Hope this will help you.

Regards,
Pravin Uttarwar

2009/3/28 SJF <sjf...@gmail.com>

>   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.
>  
>

Reply via email to