speed = 0.2; frame = 1; onEnterFrame = function() { my_mc.gotoAndStop(Math.round(frame)); frame+=speed; }