Using Macromedia’s Flash / JavaScript Integration kit we can call JavaScript functions from Flash, and ActionScript functions from JavaScript.They’ve 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.
Do this by adding a public method in your Flex application to a list of callable methods. In your Flex application, you add a local Flex function to the list by using the addCallback() method of the ExternalInterface API. This method registers an ActionScript method as callable from the JavaScript or VBScript in the wrapper.You can get the sample from here. Enjoy!

January 25th, 2008
Ntt.cc 








Posted in
Tags: 
RSS Feed
Email Feed