2 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
3 layout="horizontal">
4 <mx:Script>
5 <![CDATA[
6 [Bindable]
7 public var s:String="";
8 ]]>
9 </mx:Script>
10 <mx:TextInput id="myTextInput1"/>
11 <mx:Button label="Update my variable" click="s=myTextInput1.text"/>
12 <mx:Text id="myText" text="{s}"/>
13 </mx:Application>