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" <[EMAIL PROTECTED]> 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 --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/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/

