
Код:
mc.onPress = function(){
this.onMouseMove = function(){
trace(this._x+' '+ this._y);
}
this.startDrag();
}
mc.onRelease = function(){
delete this.onMouseMove;
this.stopDrag();
}
//////////
mc1.onPress = function(){
this.x = this._xmouse;
this.y = this._ymouse;
this.onMouseMove = function(){
this._x = _root._xmouse - this.x
this._y = _root._ymouse - this.y
trace(this._x+' '+ this._y);
}
}
mc1.onRelease = function(){
delete this.onMouseMove;
}
при МаусМуве не всегда целые координты, при Драге всегда!