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.