2 Replies Latest reply on Aug 7, 2006 2:06 PM by WebXperience

    freeze button in down state?

      I want to have several graphic elements that change with a mouse click, then stay there. I imagine this as buttons that get to the down state and freeze, but I can't imagine how to make it work.

      Thank you
        • 1. Re: freeze button in down state?
          Supermercado_Gato-eP5SVb Level 1
          I don't think there is any way to freeze on the down state of a button. A possible alternative would be to have the button set the _visible property of a movie click that contians the down state of the button. The moive clip starts off with the _visible property set to false. On the mouse click, the property is set to true so it's visible. A mouse click on another button could set it to false again so it's invisble.
          • 2. freeze button in down state?
            WebXperience Level 1
            instead of a button, you could use a MovieClip instance which contains two keyframes. One keyframe holds the up graphic and the second keyframe contains the down graphic. Using the instancename.onRelease and instancename.RollOut methods you could have the graphic toggle between frame 1 and 2 with instancename.gotoAndStop(2) and .gotoAndStop(1) respectively. Be sure to place a stop(); action in the action layer over each of the keyframes.