# RollOver/RollOut Button Effects

**URL:** <https://forum.kirupa.com/t/rollover-rollout-button-effects/184761>\
**Category:** flash\
**Created:** [April 7, 2006, 3:13pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-effects/184761 "2006-04-07T15:13:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csr500](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@csr500](https://forum.kirupa.com/u/csr500)\
**Post date:** [April 7, 2006, 3:13pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-effects/184761/1 "2006-04-07T15:13:46Z")

</div>

Hello everyone

I am having some problems with one of the tutorials on this website.

[http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

I have had a nose at the tutorial and I was hoping I could modify the buttons.

I have placed five seperate buttons onto the stage and would like each one to go to a different place.

I have removed the [kirupa.com](http://kirupa.com) line and replaced it will code saying onreleasegotoandstop (5) on the assumption it will go to frame number 5, but I am not sure if this will simply go to frame five in the button movie or in the main scene movie.

However when I published the movie I was told that the action I wrote in could only be applied to buttons and I believe the button is a movie clip and not a button.

I would post up my Flash File but I have not worked out yet how to upload stuff to the website yet.

Thanking everyone in advance for their help.

P.S. this is my first post and I am not that proficient at Flash so if this is a very simple problem then I apologise.

Ta

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 7, 2006, 3:17pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-effects/184761/2 "2006-04-07T15:17:00Z")

</div>

```auto
thebutton.onRelease = function(){
   gotoAndPlay(5)
}

```

---

<div class="post-metadata">

**Author:** ![csr500](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@csr500](https://forum.kirupa.com/u/csr500)\
**Post date:** [April 7, 2006, 3:21pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-effects/184761/3 "2006-04-07T15:21:19Z")

</div>

> [@Defective](#):
>
> ActionScript Code:  
> [FONT=Courier New][LEFT]thebutton.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]\</p\>  
> \<p\> [COLOR=#0000ff]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR]\</p\>  
> \<p\>[COLOR=#000000]}[/COLOR]  
> [/LEFT]  
> [/FONT]

Ta for the quick response however I am probably being very stupid, do I replace the current [www.kirupa.com](http://www.kirupa.com) line with the code you have given me or do I place it on the scene into which I have placed the button?
