this.width ? this.width : (mouseX < 0 ? 0 : mouseX)); toY = (mouseY > this.height ? this.height : (mouseY < 0 ? 0: mouseY)); line.graphics.lineTo(toX, toY); this.rawChildren.addChild(line); fromX = toX; fromY = toY; } } public function onMouseUp():void { removeEventListener(Event.ENTER_FRAME, drawLine); } ]]>