MXML binding
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> [Bindable] public var labelText:String = "Label before event"; </mx:Script> <mx:Button id="myButton" label="Change Label!" click="labelText='my label has changed';" /> <mx:Label id="myLabel" text="{labelText}" /> </mx:Application>