1 Reply Latest reply on Jun 12, 2006 2:07 AM by prdv

    Return value from ExternalInterface.call method

    prdv Level 1
      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?