Archive for the 'ExternalInterface' Category

11
Apr

Getting JavaScript variables into your Flex applications using the ExternalInterface API

The following example shows an easy way to get JavaScript variables into your Flex applications without having to write a single line of JavaScript or edit your HTML template using the Flash Player ExternalInterface API.

Full code after the jump.

Continue reading ‘Getting JavaScript variables into your Flex applications using the ExternalInterface API’

11
Mar

Returning values from JavaScript in your Flex applications using the ExternalInterface API

In a previous example, “Calling JavaScript functions from your Flex applications using the ExternalInterface API”, we saw how we could call JavaScript functions from our Flex application.

The following example shows us how we can return a value from a JavaScript function call and use the data in our Flex application.

Full code after the jump.

Continue reading ‘Returning values from JavaScript in your Flex applications using the ExternalInterface API’

11
Mar

Calling ActionScript functions from your HTML templates using the ExternalInterface API

In a previous example, “Calling JavaScript functions from your Flex applications using the ExternalInterface API”, we saw how you could call JavaScript methods from our Flex applications using the static ExternalInterface.call() method.

The following example shows you how you can call ActionScript methods in our Flex applications from JavaScript using the static ExternalInterface.addCallback() method and a bit of JavaScript.

Full code after the jump.

Continue reading ‘Calling ActionScript functions from your HTML templates using the ExternalInterface API’

10
Mar

Checking to see if the ExternalInterface API is available in Flex

The following example shows how you can check to see whether your Flex application is in a container that supports the ExternalInterface API.

Full code after the jump.

Continue reading ‘Checking to see if the ExternalInterface API is available in Flex’

09
Mar

Calling JavaScript functions from your Flex applications using the ExternalInterface API

The following example shows how you can call a JavaScript function from your Flex applications using the ExternalInterface class and the static ExternalInterface.call() method.

Full code after the jump.

Continue reading ‘Calling JavaScript functions from your Flex applications using the ExternalInterface API’




December 2008
M T W T F S S
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031  

Badge Farm

  • Firefox 2
  • Powered by Redoable 1.2
  • Feeds burnt by Feedburner
  • Feed