Código:
And everything works fine but I could not find a way to just leave the last line that detects the event*function some(evt:MouseEvent):void{ var trapezoid:Shape = new Shape(); trapezoid.graphics.lineStyle(2, 0xFFD700, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 10); trapezoid.graphics.lineTo(evt.stageX, evt.stageY); this.addChild(trapezoid);} stage.addEventListener(MouseEvent.MOUSE_MOVE, some);
Would appreciate your help since I'm something new in AS3*
Thanks in advance