I use this function in Flex:
public function callWrapper(f:String, p:String):void {
var m:String = ExternalInterface.call(f, p);
trace(m);
}
and then I call that function like this:
callWrapper("flashPutTitle", title);
--- 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 --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/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/