2 Replies Latest reply on Oct 7, 2009 12:39 PM by archenil

    Calling javascript from Flex

    archenil

      Hi,

       

      I have to implement an alternative for navigateToURL using a javascript call,

      ExternalInterface.call("jsFunction");

       

      and the javascript function definition in index.template.html is:

      <script language="JavaScript" type="text/javascript">

      function jsFunction()
      {

      alert("Here");
      window.open('link.html','mywindow');
      alert("There");
      }
      </script>

       

      I can see "Here" alert but for some reason a new window wouldn't open whatsoever. Can someone shed some light on this?

       

      Thanks in advance,