Using Macromedia’s Flash/JavaScript Integration Kit, we can call JavaScript functions from Flash and ActionScript functions from JavaScript. They have taken it to the next level with a new Flex/JavaScript bridge. In another way, you can call Flex methods from your enclosing wrapper by using the ExternalInterface API.