# Problem with keeping active state of a button

**URL:** <https://forum.kirupa.com/t/problem-with-keeping-active-state-of-a-button/200155>\
**Category:** Uncategorized\
**Created:** [September 9, 2006, 4:34am UTC](https://forum.kirupa.com/t/problem-with-keeping-active-state-of-a-button/200155 "2006-09-09T04:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronnie482](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@ronnie482](https://forum.kirupa.com/u/ronnie482)\
**Post date:** [September 9, 2006, 4:34am UTC](https://forum.kirupa.com/t/problem-with-keeping-active-state-of-a-button/200155/1 "2006-09-09T04:34:20Z")

</div>

I dunno why but I can’t keep “Active” state of buttons. Im using the following code. each button keeps its “active” if I dont move my mouse until the whole outro is played.

([http://onlinewebhelp.org/layout/](http://onlinewebhelp.org/layout/))

```auto

on (rollOver)
{
    if (_root.currentPage != "contact")
    {
        gotoAndPlay(2);
    } // end if
}
on (releaseOutside, rollOut)
{
    if (_root.currentPage != "contact")
    {
        gotoAndPlay(11);
    } // end if
}
on (release)
{
    if (_root.currentPage != "contact")
    {
       _parent["b" + _root.currentPage].play();
       _root.nextPage = "contact";
       _root.play();
        
    } // end if
}

```

please help im desperate to do this.
