# Button problem

**URL:** https://forum.kirupa.com/t/button-problem/88351
**Category:** Uncategorized
**Created:** [April 28, 2005, 4:20pm UTC](https://forum.kirupa.com/t/button-problem/88351 "2005-04-28T16:20:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arrogance](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@arrogance](https://forum.kirupa.com/u/arrogance)
#### Post date: [April 28, 2005, 4:20pm UTC](https://forum.kirupa.com/t/button-problem/88351/1 "2005-04-28T16:20:15Z")

</div>

I were making a button in a movieclip, and in the movieclip i made different animations from the button.

On frame 1 it has the normal button

On frame 10 it gets a other colour

On frame 11 - 15 it has an animation

I also used a dummybutton on the stage, so i can put the following script:  
on (release) {  
gotoAndPlay(11);  
}  
on (rollOver) {  
gotoAndPlay(10);  
}  
on (rollOut) {  
gotoAndPlay(1);  
}

My problems is if u once click on the button, the button goes back to frame 1 to the normal button, because of:

on (rollOut) {  
gotoAndPlay(1);  
}

But i want that the animation ends till frame 15. Can someone help me? or give me a script for it?
