SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 4th, 2003, 02:51 PM
Static Hysteria Static Hysteria is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 11 Static Hysteria User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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. :/

Reply With Quote
  #2  
Old September 5th, 2003, 04:27 AM
mushie mushie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 58 mushie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Getting buttons to hold a state


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway