вот код кнопки:

Код:
on (press) {
this._pW = _parent._x-_parent._width/2;
tW = _parent._x-this._x;
this.onMouseMove = function() {
if(_parent.Picture._width>30){
this._x=_parent._xmouse;
dtx = _parent.Ramka._width-_parent.Picture._width;
_parent.Picture._width = 2*this._x-dtx;
_parent.CreateRamka(0,0);
_parent.ScaleButtons();
tW = _parent._x - _parent._width/2;
dX = this._pW-tW;
Alpha = (Math.PI * _parent._rotation) / 180;
Gamma = (Math.PI/2 - _parent._rotation)*Math.PI/180;
trace (Math.sin(Alpha)+"<<<");
_parent._x += dX*Math.sin(Gamma);
_parent._y += dX*Math.sin(Alpha);
}
};
}
on (release, releaseOutside) {
this.onMouseMove = null;
}