Flex Recording Using External Interface

Document created by Chris Sommerstad Employee on Jul 20, 2017
Version 1Show Document
  • View in full screen mode

This topic describes how to add automation capabilities to a simple Adobe Flex application using ExternalInterface and then how to add recording capabilities for the SOASTA browser recorder extension.

Note: Refer to Adobe Flex documentation for the ExternalInterface class.

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.

The Adobe Flex component has four controls (a ComboBox, a Button, a TextInput, and a Label). Changing the ComboBox value, clicking on the Button or setting the text of the TextInput will change the text of the Label control. Each control ID is displayed in a gray label below it: TestFlexCombo, TestFlexButton, TestFlexInput, and TestFlexLabel.

The Flex code

This is the FlexAUT.mxml code for the flex sample before adding automation and recording capabilities.