myB.onPress = function(){ dv() } function dv(){мувик.onEnterframe = function() { if( this._x > 0) { this._x -= 0.001; }else{ delete this.onEnterFrame; } } }