How to hold on 'onRelease' state, when on current page?

Hello all :slight_smile:

I am new and am having a problem with my actionscript.
I have a button that animates when you rollover and animates when you roll off.
Let’s say it is my home button.
But I don’t know how or what code to have so that my home button stays paused or stopped at the end of my rollover animation when the movie clip page associated with the button is currently displayed. And then if I click on another button like the ‘About Us’ button to make the ‘about us’ page load, to have my home button stop being highlighted when the home page is not displayed anymore.

hopefully someone can help, it would be very much appreciated.

so far this is my button code:

home_mc.onRollOver = function () {
home_mc.gotoAndPlay ("_on");
}
home_mc.onRollOut = function () {
home_mc.gotoAndPlay ("_over");
}