To communicate back to the Flex application you have to reference it
by its' id (myMXML) in the HTML page. Something like this:
function f(p)
{
alert(p);
document.myMXML.SetVariable(ret,p);
}
I haven't tested this, but that's the idea.
-TH
--- In [email protected], "drome.dario" <[EMAIL PROTECTED]>
wrote:
>
> Hi people,
> I can not achieve to get any return value from javascript other
than
> null.
> In th HTML container I have a functions like this:
>
> function f(p)
> {
> alert(p);
> return(p);
> }
>
> In my flex app I call the browser function in the following way:
>
> var ret:*;
> ret = ExternalInterface.call( "f", "Hello" );
> Alert.show( ret.toString() );
>
> I get an alert in the browser saying "Hello" and another Alert
from
> flex saying "null".
>
> What's wrong?... I think that I should get two alerts shown, no?
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/