[flexcoders] Getting the label of a clicked button

2008-09-05 Thread Cordova Aaron
When a button is clicked is there a way to determine the label of the button? I have tried something like this but its a no-go so far. public function sendToken(e:MouseEvent) { var clickedButtonLabel:String = e.SelectedItem.label? } mx:Button x=143 y=26 label=A width=35 fillAlphas=[1.0, 1.0,

Re: [flexcoders] Getting the label of a clicked button

2008-09-05 Thread Igor Costa
Cordova Here's a attempt mx:Button/ mx:Script private function GetAronLabel(e:Event):String { if(e.currentTarget is Button){ return e.currentTarget.Label; } } /mx:Script Regards Igor Costa www.igorcosta.org On