
Код AS1/AS2:
this.but_left.onPress = function() {
tmp = setInterval (walk,1);
};
walk = function(){
if(_root.event1._x < 50){
_root.event1._x += 3;
_root.event2._x += 3;
_root.event3._x += 3;
_root.event4._x += 3;
}else{
_root.event1._x -= 0;
_root.event2._x -= 0;
_root.event3._x -= 0;
_root.event4._x -= 0;
clearInterval(tmp)
}
}
Может так попробовать?