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.
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.
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.
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’
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.