2 methods to interact with Javascript function from Flex (or ActionScript 3)
I will give 2 methods to call alert function from ActionScript 3 or Flex (the same way you can call any other Javascript function):
First method:
ExternalInterface.call("alert", "Hello World");
Second method:
ExternalInterface.call("function(){alert('Hello World');}");
