Using Binding Tag
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> [Bindable] private var myVar:String </mx:Script> <mx:Binding source="myInput.text" destination="myVar"/> <mx:TextInput id="myInput"/> <mx:Label text="{myVar}"/> </mx:Application>