# Repeat a frame function

**URL:** <https://forum.kirupa.com/t/repeat-a-frame-function/286402>\
**Category:** Uncategorized\
**Created:** [April 15, 2009, 2:51am UTC](https://forum.kirupa.com/t/repeat-a-frame-function/286402 "2009-04-15T02:51:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guitarzen](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@guitarzen](https://forum.kirupa.com/u/guitarzen)\
**Post date:** [April 15, 2009, 2:51am UTC](https://forum.kirupa.com/t/repeat-a-frame-function/286402/1 "2009-04-15T02:51:12Z")

</div>

let say I want to create a Movie with different actions in each frame. then I want to continually call that one frame action from a button release. How would I go about this?  
Action on frame 1 is:  
\_root.MM.\_x += 5;

Button on stage to trigger this action over and over would be?. I’ve tried gotoandPlay but it only works once  
on (release) {  
\_root.movie. ?  
}
