# Looping Button Problem

**URL:** https://forum.kirupa.com/t/looping-button-problem/235139
**Category:** flash
**Created:** [August 8, 2007, 7:32pm UTC](https://forum.kirupa.com/t/looping-button-problem/235139 "2007-08-08T19:32:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jswidorski](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jswidorski](https://forum.kirupa.com/u/jswidorski)
#### Post date: [August 8, 2007, 7:32pm UTC](https://forum.kirupa.com/t/looping-button-problem/235139/1 "2007-08-08T19:32:44Z")

</div>

I am trying to setup mouseOver actionscript code, but the menu just keeps looping until I move the mouse off…so it does as say, not as I want. I am not sure how to handle the looping. Any help would be appreciated.

To see the code in action go to [http://acuform.johnswidorski.com](http://acuform.johnswidorski.com/) and look at the Product and Processes menu options.

Thanks, John

```auto

btnProcesses.onRelease = function()
{
    _root.gotoAndPlay('Processes');
}

btnProcesses.onRollOver = function() {
    intProcessCount++;
    if(intProcessCount>3) {
        frameStop = true;
    }
    _root.gotoAndPlay('Processes');
};

```

Please move this thread if it should be moved…Really a newb question…
