# Advanced Rollovers. Simple Q

**URL:** https://forum.kirupa.com/t/advanced-rollovers-simple-q/48229
**Category:** Uncategorized
**Created:** [April 11, 2004, 3:17pm UTC](https://forum.kirupa.com/t/advanced-rollovers-simple-q/48229 "2004-04-11T15:17:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Liquideye](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@Liquideye](https://forum.kirupa.com/u/Liquideye)
#### Post date: [April 11, 2004, 3:17pm UTC](https://forum.kirupa.com/t/advanced-rollovers-simple-q/48229/1 "2004-04-11T15:17:27Z")

</div>

I have a button and movie clip. In my previous buttons i have used:

[SIZE=1][COLOR=Red]effect.onEnterFrame = function() {  
(success) ? effect.nextFrame() : effect.prevFrame();  
};  
button.onRollOver = function() {  
success = true;  
};  
button.onRollOut = function() {  
success = false;  
};  
button.onRelease = function() {  
success = false;  
};[/COLOR][/SIZE]

Which works great, but i want my animation (movie clip) to continue playing until end of the clip (with a stop action on last frame), not rewind on rollout.

Ive been fooling around with this code, to make it continue playing on rollout

[SIZE=1][COLOR=Red]button.onRollOut = function() {  
success = true;[/COLOR][/SIZE]

however, when i do this, i try and use the button again, the animation doesnt play becuase its on “stop”.

Any ideas?
