Code:spindle.gotoAndStop(1); paper1.onPress = moveMe; paper2.onPress = moveMe; paper3.onPress = moveMe; function moveMe() { if (this.orgX == undefined) { this.orgX = this._x; this.orgY = this._y; } this.startDrag(); this.swapDepths(this._parent.getNextHighestDepth()); this.onMouseUp = dropMe; } function dropMe() { stopDrag(); if (eval(this._droptarget)._name == "spindle") { spindle.gotoAndStop(spindle._currentframe + 1); this.removeMovieClip(); } else { this._x = this.orgX; this._y = this.orgY; } }




Reply With Quote