1 Reply Latest reply on Nov 12, 2007 9:15 AM by crazyjoemilan

    Keep a button set to Hover once clicked


      I was wondering if there was a quick way to set a button to it's hover state once clicked?

      I know how to do this by having it be a movie clip and changing its time line position onRollOver. onRollOut and onRelease. I am just trying to do this quick using a button so didn't want to deal with all that. Thanks!
        • 1. Re: Keep a button set to Hover once clicked
          it takes a bit of Actionscript - but yes, its possible. --and instead of using a button, use a movieClip - and assign the actions on the main timeline.

          I'll use _xscale in my example, but you can do the same thing, and just put your "rollOver effect" on frame 2, and use gotoAndStop();.

          mc.onRollOver = function() {
          mc._xscale = 110;
          mc._yscale = 110;
          mc.onRollOut = function() {
          if (testV == true) {
          mc._xscale = 100;
          mc._yscale = 100;
          mc.onRelease = function() {
          if (testV == false || testV == undefined) {
          testV = true;
          } else if (testV == true) {
          testV = false;