[flexcoders] Get id of what called the event.

2008-04-28 Thread timgerr
How can I get from an event the id of a flex item, mx:Form mx:FormItem label=User Name required=true mx:TextInput name=User Name id=userName/ /mx:FormItem mx:FormItem label=Password required=true

Re: [flexcoders] Get id of what called the event.

2008-04-28 Thread Scott Melby
try event.currentTarget property... that will be the Button in this case. I usually do something like the following. private function handleClick(event:Event):void { //we know it was a button in this case var myButton:Button = Button(event.currentTarget); Alert.show(ID: +