Link to home
Start Free TrialLog in
Avatar of bisonfur37
bisonfur37

asked on

Button Clicked to remain on "Down State"

I would like a button to remain as its Down State when clicked by the user. I would like the frame to remain the same otherwise (with the button in its down state and all other objects as they were). This is for the case taht I have a menu of options, all buttons, and I want the user to be able to select any or all options, with the Down State signifying that they have selected that option.

Also, I would like to have the user be able to "deselect" the button, or click on the static bown state of the button and return it to its normal functioning (Off, Over, Down). Please inform of the correct action script or basic command to do this.
SOLUTION
Avatar of SandyCooke
SandyCooke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bisonfur37
bisonfur37

ASKER

This seems like a good idea, but I cannot get the movie to react to anything. Namely, when I follow your instructions, the movie clip is static, and does not change (react to mouse over or click down). Please inform how to make the movie clip act as required.
onClipEvent (load) {
      //
      isSelected = false;
      //
      this.onRollOver = function() {
            if (isSelected == false) {
                  gotoandStop(2);
            }
      };
      //
      this.onRollOut = function() {
            if (isSelected == false) {
                  gotoandStop(1);
            }
      };
      //
      this.onPress = function() {
            if (isSelected == false) {
                  gotoandStop(3);
            } else {
                  gotoandStop(1);
            }
            //
            isSelected = !isSelected;
      };
}
Avatar of rascalpants
you might also do a search for a component that does that same thing...  I am sure someone out there has used the same technique and developed something to share...

try the Extensions area of the MM web site...

rp
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial