View Full Version : Changing button states!?
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
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?
Anybody, no, dust. Anybody, no, dust. :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.