Yeah, either way should work.  But, instead of return(p);, try 
return p;

-TH

--- In [email protected], "drome.dario" <[EMAIL PROTECTED]> 
wrote:
>
> Mmmm... I will test your suggestion but... the documentation 
states 
> that ExternalInterface.call returns (synchronously) the value 
> returned by the javascript function and, moreover, it works in 
that 
> way when FireFox is the browser. I doesn't under MSIE....weird.
> 
> Anyway, thanks for your suggestion: I'll post back the results.
> 
> --- In [email protected], "Tim Hoff" <TimHoff@> wrote:
> >
> > 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" <drome.dario@> 
> > 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 --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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/
 



Reply via email to