# Simple button question

**URL:** https://forum.kirupa.com/t/simple-button-question/34488
**Category:** flash
**Created:** [November 3, 2003, 3:56am UTC](https://forum.kirupa.com/t/simple-button-question/34488 "2003-11-03T03:56:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mlkedave](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mlkedave](https://forum.kirupa.com/u/mlkedave)
#### Post date: [November 3, 2003, 3:56am UTC](https://forum.kirupa.com/t/simple-button-question/34488/1 "2003-11-03T03:56:39Z")

</div>

First off I am new here and am using Flash MX 2004 on a PC.  
The only question I have is when creating a button, by simple coverting to a “button” symbol, how do you have a OnRollOut affect. I want to be able to have a button effect when my mouse rolls over a button and then when it rolls off to have another effect. Can anyone simple tell me how to do this? Thanks.

Mike

---

<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: [November 3, 2003, 4:02am UTC](https://forum.kirupa.com/t/simple-button-question/34488/2 "2003-11-03T04:02:23Z")

</div>

i think this post belongs to the Flash MX 2004 section…

but anyway, if its anything like the Flash MX, then you should be able to add those effects by clicking your button… its takes you to the button mode [or whatever you call it]…

you can also use movieclips and put them inside your button to make the effect look better. 🙂

but im not sure if thats how it works with flash mx 2004…

---

<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: [November 3, 2003, 8:48pm UTC](https://forum.kirupa.com/t/simple-button-question/34488/3 "2003-11-03T20:48:55Z")

</div>

Forget it, sorry. You must have misunderstood me.

---

<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: [November 4, 2003, 2:54am UTC](https://forum.kirupa.com/t/simple-button-question/34488/4 "2003-11-04T02:54:38Z")

</div>

If you’re using a button symbol then you can double click on it to go inside it. Inside you should see 4 frames; up, over, down and hit.

To create a rollOver effect, just make a keyframe in the “over” state of your button and make the changes you want.

That’s how it works in MX, but I’m not sure about 2004.

---

<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: [November 4, 2003, 9:36am UTC](https://forum.kirupa.com/t/simple-button-question/34488/5 "2003-11-04T09:36:01Z")

</div>

You want a roll out affect, right, not rollover?

Well, you’ll notice that Flash MX has a

on(rollOut)

event handler. Make an invisible button (alpha = 0) and place it on top of a movie clip that has the rollout effect as part of its animation.  
then, code the button:

on(rollOut){  
\_root.myanimatedmovieclip.gotoAndPlay(the frame number or frame label of your roll out animation goes here);  
}

–EP
