onMouseMove = function () { // beginFill (0x0000FF, 50); if (_ymouse<200) { clear(); lineStyle(1, 0xFF0000, 100); moveTo(275, 200); lineTo(_xmouse, _ymouse); // lineTo (100, 300); // lineTo (200, 200); // endFill(); } }; onMouseDown = function () { var d = getNextHighestDepth(); trace(d); createEmptyMovieClip("line"+d, d); var n = this["line"+d]; with (n) { lineStyle(1, 0xFF0000, 100); moveTo(275, 200); lineTo(_xmouse, _ymouse); } n.onEnterFrame = function() { if (this._alpha>0) { this._alpha--; this._y += (200-this._y)/4; } else { delete this.onEnterFrame; } }; };