PDA

View Full Version : Changing button states!?


p0c
09-24-2007, 09:41 AM
I was just wondering how you would change a button state when clicked on therefore displaying the hit or down state of my button. So the user knows what button was previously clicked on.

Hope that makes sense
thanks

magjac
09-24-2007, 12:38 PM
This is what I would do:

1. I would make my button as a movieClip.
2. Frame 1 in movieClip contains up state graphics and frame 2 downstate graphics.
3. Write a script that told it to go to for example frame 2 when clicked.

Make any sense?

atomic
09-24-2007, 12:39 PM
And should it return to the up state when another button is pressed?

http://www.actionscripts.org/showMovie.php?id=564

p0c
09-25-2007, 08:14 AM
Yeah preferably. Do you know if this technique will work in CS3?

Also I dont know if there is such a code that simply displays a different state. I've seen code like ...

myButton.displayState=down;

but this didn't work, any ideas?

p0c
09-27-2007, 09:52 AM
Anybody, no, dust. Anybody, no, dust. :)