# F8: Loops

**URL:** https://forum.kirupa.com/t/f8-loops/211450
**Category:** flash
**Created:** [January 1, 2007, 4:46pm UTC](https://forum.kirupa.com/t/f8-loops/211450 "2007-01-01T16:46:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Newbie123](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Newbie123](https://forum.kirupa.com/u/Newbie123)
#### Post date: [January 1, 2007, 4:46pm UTC](https://forum.kirupa.com/t/f8-loops/211450/1 "2007-01-01T16:46:43Z")

</div>

I have many functions like this:

```auto
 
button.onRelease = function() {
if (_global.movieposition == "start") {
movie1_mc.gotoAndPlay ("end")
}

```

It seems to be that the function is playing only once. How do I get a function like this to check it over and over again? I know its something to do with while loops or for loops? Can someone tell me how I would write this code to apply it into my function described above?

Thank u
