# Wich button

**URL:** <https://forum.kirupa.com/t/wich-button/17801>\
**Category:** Uncategorized\
**Created:** [April 9, 2003, 12:07pm UTC](https://forum.kirupa.com/t/wich-button/17801 "2003-04-09T12:07:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![batmitra](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@batmitra](https://forum.kirupa.com/u/batmitra)\
**Post date:** [April 9, 2003, 12:07pm UTC](https://forum.kirupa.com/t/wich-button/17801/1 "2003-04-09T12:07:49Z")

</div>

hi everyone

can someone please help me out on this?  
i have several buttons and what i want to do is ,when the user cliks on a button that button becomes bigger or with another image to show in wich option is the user in i’ve tryied to search tutorials for this but i could’nt find

thanks

---

<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:** [April 17, 2003, 4:07pm UTC](https://forum.kirupa.com/t/wich-button/17801/2 "2003-04-17T16:07:25Z")

</div>

To make a button become bigger convert the button to a movieclip then put the following code on the movieclip:

```auto

on (press) {
	_width=200;
	_height=200;
}

```

Experience with the above.  
I don’t understand this: with another image to show in wich option is the user in.

---

<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:** [April 18, 2003, 1:34pm UTC](https://forum.kirupa.com/t/wich-button/17801/3 "2003-04-18T13:34:43Z")

</div>

hi thanks for the reply  
what i meant was that i want the user to know in wich option he his like on some aplications when we click the button and it became disabled while others are still enabled

---

<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:** [April 19, 2003, 4:33am UTC](https://forum.kirupa.com/t/wich-button/17801/4 "2003-04-19T04:33:51Z")

</div>

I haven’t discovered how to do what you have explained. Maybe someone else could help you. To disable a button do what is below.

Put the following code on each button:

```auto

on (release) {
// disabling a button. GreenButton = instance name.
GreenButton.enabled = false;
}

```

---

<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:** [April 19, 2003, 6:00am UTC](https://forum.kirupa.com/t/wich-button/17801/5 "2003-04-19T06:00:13Z")

</div>

a few ideas,  
#1 you could just have several different frames and when a user clicks for different page or content, it could go to that specific frame, and you could have a disabled button there or a different looking image or whatnot. that’s the easiest way really.

#2 if you are loading movie clips in or external swfs or something you could set it up like this:

lets say it’s for the “about us” page

you have the button “aboutButt” on the main timeline  
then on the frame you set variables, like  
enabledB = yes;  
aboutButton = instancename;  
and then, when you load in “aboutMC” you can set enabledB = no;

and then on “aboutButt” you can have an if statement…

if (enabledB = no) {  
aboutButton.enabled = false;  
}  
else {  
aboutButton.enabled = true;  
}

i guess. i mean. that makes sense to me. i never tried it though. 🙂
