Handling Events Inline
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="myLabel" text="The Button will change my text" /> <mx:Button id="myButton" label="Change it!" click="myLabel.text = 'Some new text'" /> </mx:Application>