This is the FlexAUT.mxml code for the flex sample before adding automation and recording capabilities. You can copy this code from this page or download the source file here.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="340" height="242" backgroundGradientColors="[#ffffff, #ffffff]" initialize="onInit();"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var comboContent:ArrayCollection; private function onInit():void { comboContent = new ArrayCollection(['Value 1', 'Value 2', 'Value 3']); } /* Functions triggered on UI component events*/ private function onTestFlexComboChange():void { this.TestFlexLabel.text = "Combo value changed to '" + this.TestFlexCombo.selectedLabel + "'"; } private function onTestFlexButtonClick():void { this.TestFlexLabel.text = "Button clicked"; } private function onTestFlexInputChange():void { this.TestFlexLabel.text = "Text input value set to '" + this.TestFlexInput.text + "'"; } ]]> </mx:Script> <mx:Canvas x="10" y="10" width="317" height="115" backgroundColor="#efefef"> <!-- UI components --> <mx:ComboBox id="TestFlexCombo" change="onTestFlexComboChange()" dataProvider="{comboContent}" x="10" y="10" width="165" fillColors="[#AFD0C9, #478478]" fillAlphas="[1.0, 1.0]" color="#3A3027"></mx:ComboBox> <mx:Button id="TestFlexButton" click="onTestFlexButtonClick()" label="Button" x="183" y="10" width="124" fillColors="[#AFD0C9, #478478]" fillAlphas="[1.0, 1.0]" color="#3A3027"/> <mx:TextInput id="TestFlexInput" change="onTestFlexInputChange()" x="10" y="61" width="297" backgroundColor="#AFD0C9" color="#3A3027"/> <!-- UI components IDs --> <mx:Label x="10" y="35" text="TestFlexCombo" width="165" color="#0080ff" textAlign="center" enabled="false"/> <mx:Label x="10" y="87" text="TestFlexInput" width="297" color="#0080ff" textAlign="center" enabled="false"/> <mx:Label x="183" y="35" text="TestFlexButton" width="124" color="#0080ff" textAlign="center" enabled="false"/> </mx:Canvas> <mx:Canvas x="10" y="133" width="316" height="48" backgroundColor="#efefef"> <!-- UI components --> <mx:Label id="TestFlexLabel" x="10" y="10" width="296" height="21" text="" enabled="true" fontWeight="bold" color="#468175" textAlign="center"/> <!-- UI components IDs --> <mx:Label x="5" y="23" text="TestFlexLabel" width="306" color="#0080ff" textAlign="center" enabled="false"/> </mx:Canvas> </mx:Application>