# Button madness

**URL:** https://forum.kirupa.com/t/button-madness/113285
**Category:** Uncategorized
**Created:** [June 16, 2004, 4:45pm UTC](https://forum.kirupa.com/t/button-madness/113285 "2004-06-16T16:45:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Saskia](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Saskia](https://forum.kirupa.com/u/Saskia)
#### Post date: [June 16, 2004, 4:45pm UTC](https://forum.kirupa.com/t/button-madness/113285/1 "2004-06-16T16:45:12Z")

</div>

[COLOR=Magenta][SIZE=1][FONT=Verdana]Hello everyone,

I’m stuck with a small problem. I’m trying to figure out a way to make a button. But I also need an active state, you know…to see wich button you’ve click on. Normally I would make an movieclip, with 4 frames…an normal state, an over state, a down state and an active state. I put over the movieclip an invisible button and, throw in a few variables and the whole thing does it’s job.

But, I’ve been thinking…I’m not really experienced in Flash so,…  
Can’t I just make a button en put in another frame, before the ‘hit’ so when I’ve pushed the button It goes to that one… or doesn’t it work that way???

Does someone have an easy method to make buttons with an ‘active’ state, so you can see wich button you’ve clicked on??

Thx for the help![/FONT][/SIZE][/COLOR]

---

<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: [June 16, 2004, 6:12pm UTC](https://forum.kirupa.com/t/button-madness/113285/2 "2004-06-16T18:12:56Z")

</div>

What you require is indeed do-able, but it’s more complicated than just inserting another frame. 😉  
I have constructed an example for you, which uses an array to keep track of all the buttons that needs the “highlight” function.

I hope it helps 🙂

---

<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: [June 16, 2004, 6:29pm UTC](https://forum.kirupa.com/t/button-madness/113285/3 "2004-06-16T18:29:38Z")

</div>

[COLOR=Magenta][SIZE=1][FONT=Verdana]Hello ScriptFlipper,

This is really great, It 'll help me a lot. Thank you!

Greetz[/FONT][/SIZE][/COLOR]

---

<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: [June 16, 2004, 6:37pm UTC](https://forum.kirupa.com/t/button-madness/113285/4 "2004-06-16T18:37:26Z")

</div>

You’re welcome! 🙂

[SIZE=1](hey guys, I got a heart from her :pleased: ) ;)[/SIZE]
