function movePic(obj:MovieClip, speed:Number) { obj._x += speed; updateAfterEvent(); } setInterval(movePic, 1000, my_mc, 5);