this.onPress = function(){ this.startDrag(); } this.onRelease = function(){ this.stopDrag(); } this.onReleaseOutside = function(){ this.stopDrag(); }
this.onEnterFrame = function() { saX = _root._xmouse-this._x; saY = _root._ymouse-this._y; if(saX > 2){ _x += 2; _xscale = -100; }else if(saX < -2) { _x -= 2; _xscale = 100; } if(saY > 2){ _y += 2; }else if(saY < -2){ _y -= 2; } };