Hello all, I am getting this error when I add an event listener like this to a lable and then calling the event.target.id. Here is the error:
#1069: Property id not found on mx.core.UITextField and there is no default value Here is the code: import mx.controls.Label; private function WTF():void { var lbl:Label = new Label(); lbl.text = 'Testing measdfasdfas'; lbl.addEventListener(MouseEvent.CLICK,DOME); lbl.id = 'KKSKS'; addChild(lbl); } private function DOME(evt:MouseEvent):void { trace(evt.target.id); } I get the error when the evt.target.id is called, I am not sure why this error is being called. Is there another way to get the label's id? Thanks, timgerr