Posts Tagged ‘JavaScript’

How to communicate between Flex and JavaScript?

For communication between Flex and JavaScript we need the ExternalInterface class.

Method Defined By
addCallback(functionName:String, closure:Function):void
[static] Registers an ActionScript method as callable from the container.
ExternalInterface
call(functionName:String, … arguments):*
[static] Calls a function exposed by the SWF container, passing zero or more arguments.
ExternalInterface

Click here for more details.