Using ActionScript in MXML event handlers
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="My Application"> <mx:TextArea id="textarea1" /> <mx:Button label="Submit" click="textarea1.text='Hello World';" /> </mx:Panel> </mx:Application>