LinkButton click handler
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> private function clickHandler():void { myLabel.text="The button has been clicked !"; } private function linkHandler():void { myLabel.text = "The LinkButton has been clicked !"; } </mx:Script> <mx:Panel title="Handling User Event" width="284" height="179"> <mx:Label id="myLabel" text="test" /> <mx:HBox> <mx:Button id="myButton" label="Click Me" click="clickHandler()" /> <mx:LinkButton label="My Link 1" click="linkHandler()" /> </mx:HBox> </mx:Panel> </mx:Application>