# Button onRollOut

**URL:** <https://forum.kirupa.com/t/button-onrollout/42875>\
**Category:** Uncategorized\
**Created:** [February 14, 2004, 1:19am UTC](https://forum.kirupa.com/t/button-onrollout/42875 "2004-02-14T01:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tke](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tke](https://forum.kirupa.com/u/tke)\
**Post date:** [February 14, 2004, 1:19am UTC](https://forum.kirupa.com/t/button-onrollout/42875/1 "2004-02-14T01:19:02Z")

</div>

[FONT=arial]hi,[/FONT]

I started a few days ago with flash and even though i think its going ok…🙂  
i also stumbled on some troubles also…  
i’m having buttons who start to play a movie on the over state,  
when i roll out, the button go’s to the original state,  
this is where i didn’t find the solution …yet …! :the movie should just continue playing…and stay on the last framestate of the movie…  
like i said , i keep on trying , but maybe someone could give me a hint?  
When i was reading about it , i get even more confused, cause the reply with such button actions/questions are often answered with: “u should better use movie clips who act like buttons??”  
as u can see , i still have a long way to go…, could use a hint…

thx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2004, 3:38am UTC](https://forum.kirupa.com/t/button-onrollout/42875/2 "2004-02-14T03:38:17Z")

</div>

best thing is to give us a snippet of your code …show us what your trying by the code …

but i would have it like this

```auto

myBtn.onRelease=function(){
_root.animationMc.gotoAndPlay("2");
};
//then on the last frame of the animation on a layer called "actions" i would write 
gotoAndStop("1");

```

cheers
