1 Reply Latest reply on Sep 18, 2009 4:01 AM by Ron Colmen

    BUTTON function

    Ron Colmen Level 2

      I have a button to increase the scale of few items. It's suppose to increase the size with every single click.

       

      PROBLEM: When I click the button continuously having the mouse unmoved and over, it wont increase the size. But if I rool out of the button between every click, then I works.

       

      I NEED TO MAKE THE BUTTON FUNCTION WITH EVERY CLICK.

       

      CURRENT CODE:

      on (press) {
      if(this._root.gmb_mc.rotate_mc3a._width <= 50){
      this._root.gmb_mc.rotate_mc3a._xscale += 7;
      this._root.gmb_mc.rotate_mc3a._yscale += 7;
        }

          }

        • 1. Re: BUTTON function
          Ned Murphy Adobe Community Professional & MVP

          That code should work fine, although you are probably overdoing it with the "this._root" targeting.  If you crerate a new file with just that button (with the code attached to it) and that mc/mc combo you should see it working as ordered.  There may be something else in your implementation that is interfering with the mouse interactions.