Write simple event handler code inline
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="event_txt.text += 'Application creationComplete'" initialize="event_txt.text += 'Application initialize'"> <mx:Panel title="Handling Events" creationComplete="event_txt.text += (' Panel creationComplete')" initialize="event_txt.text += ('Panel initialize')"> <mx:TextArea editable="false" height="200" width="200" id="event_txt" /> </mx:Panel> </mx:Application>