[flexcoders] Re: Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread Michael VanDaniker
You want to look at the event's currentTarget instead of target. From the documentation for MouseEvent: target = The InteractiveObject instance under the pointing device. The target is not always the object in the display list that registered the event listener. Use the currentTarget property to

[flexcoders] Re: Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread timgerr
Thanks, for the info, I never new about the currentTarget. timgerr --- In flexcoders@yahoogroups.com, Michael VanDaniker [EMAIL PROTECTED] wrote: You want to look at the event's currentTarget instead of target. From the documentation for MouseEvent: target = The InteractiveObject