communicate between Flex and JavaScript or VBScript

Adobe-Flash-CS3-48x48 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!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Reddit
  • Technorati
  • StumbleUpon
  • Twitter
RSS Enjoy this Post? Subscribe to Ntt.cc

RSS Feed   RSS Feed     Email Feed  Email Feed Follow us Follow us
You can leave a response, or trackback from your own site.

One Response to “communicate between Flex and JavaScript or VBScript”

  1. [...] Flex applications can communicate with javascript and VBScript, carate a Microsoft Word object with the code like [...]

Leave a Reply