Adding Flex Validations

This topic describes how to add validation capabilities to a simple Adobe Flex application.
Note: You can download an archive of this test application including the compiled object and its code, or access and download the individual source files as they occur in Find Out How below.
  1. First, add another function to the action script file that allows us to get the text of the Flex label component.



  1. Next, add the ExternalInterface callback to make it available in JavaScript.



  1. This allows us to use the verifyFlexReturnValue validation to verify that the label changes each time that we do one of the actions that we're testing.