
Код:
on (press) {
this.startDrag(true, 0, 0, -500, 500);
this.onMouseMove = function() {
Procent = Math.abs(this._x*100/_parent.Picture._width);
trace(Procent+"<<< "+this._x);
_parent.Picture._xscale = Procent;
_parent.Picture._yscale = Procent;
this._parent.Width = _parent.Picture._width;
this._parent.Height = _parent.Picture._height;
_parent.ScaleButtons();
};
}
on (release, releaseOutside) {
this.stopDrag();
delete this.onMouseMove;
}