
Код AS1/AS2:
import mx.transitions.Tween;
import mx.transitions.easing.*;
hunter_mc.onMouseUp = function () {
hunterMovieX = new Tween(this, '_x', None.easeNone, this._x, _xmouse, 0.5, true);
hunterMovieY = new Tween(this, '_y', None.easeNone, this._y, _ymouse, 0.5, true);
hunterMovieX.onMotionFinished = endMotion;
};
function endMotion () {
hunterAlphaOff = new Tween(hunter_mc, '_alpha', None.easeNone, hunter_mc._alpha, 0, 0.5, true);
delete hunter_mc.onMouseUp ;
}
где hunter_mc - данный объект