# Button

**URL:** <https://forum.kirupa.com/t/button/149269>\
**Category:** Uncategorized\
**Created:** [May 27, 2005, 11:11am UTC](https://forum.kirupa.com/t/button/149269 "2005-05-27T11:11:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geedogg](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@geedogg](https://forum.kirupa.com/u/geedogg)\
**Post date:** [May 27, 2005, 11:11am UTC](https://forum.kirupa.com/t/button/149269/1 "2005-05-27T11:11:34Z")

</div>

Hi, i have a little scripting problem and here it is 😃

I have a movieclip. 10 frames. When you roll over(mouse enters and then exits fast) i want it to play the whole movie. And thats easy. i use :

on (rollOver) {  
play()  
}

But if the mouse enters, and does not exit, i want the movie to stop at frame 5, and then when the mouse does exit, i want it to start playng again.

Anyone know how?
