Wich button

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

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


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.

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

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:


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

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. :slight_smile: