|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting buttons to hold a state
I have created a floorplan in Flash and have placed buttons over the floorplan so that individual rooms can be selected to load the data for the room. Is there any way to define a button state and have the state remain active until another button os selected?
For this application, I would like the floor plan to reflect what room people are viewing, so they can easily see where they are and know where to go next. The over, down & hit states have a semi-transparent fill, and I would like for the button to keep that fill until another button is selected, rather than going back to the up state (completely transparent). Hope this makes sense. :/ |
|
#2
|
|||
|
|||
|
create a variable (global or non-global) at root level and use an action on the buttons to set and retrieve that variable as a state indicator.
i would say you would be better using movie clips as buttons (if using mx) since you have better control and functionality. the best way to do it would be to build a class to incorporate all the functions you need, that can call itself to see if its active and listen for other buttons - look at the help in flash for quite a good breakdown on how. if time is of the essence tho i woul go with the quick and dirty method, cos it works nearly as well. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Getting buttons to hold a state |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|