# RollOver / RollOut?

**URL:** <https://forum.kirupa.com/t/rollover-rollout/150129>\
**Category:** flash\
**Created:** [June 4, 2005, 2:13am UTC](https://forum.kirupa.com/t/rollover-rollout/150129 "2005-06-04T02:13:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tay](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@Tay](https://forum.kirupa.com/u/Tay)\
**Post date:** [June 4, 2005, 2:13am UTC](https://forum.kirupa.com/t/rollover-rollout/150129/1 "2005-06-04T02:13:57Z")

</div>

hi folks  
I’m a newbie and I had a question for the gurus that be:  
I have a button that I made and I want to have something happen (basically jump to a fram and start playing) when I run my mouse over it, then reverse that when the mouse goes off it (go back to the start position and stop there.) I figured out that the code for the mouseover the button is

```auto
on (rollOut) {gotoAndPlay(1);
}

```

I assumed the code for the movie to back to frame one is

```auto
on (rollOut) {gotoAndStop(1);
}

```

Yet, nothing happens. Can someone spot my error? I’ve attached the file for viewing. (don’t laugh!)

thanks in advance

Tay
