1 Reply Latest reply on Mar 19, 2015 2:19 AM by Zoze

    use mouse click trigger option more than once?

    fredas93661436

      Hi, is there some way to use the "mouse click" trigger option more than once in the project? I am trying to build a menu button animate where the users click the (menu grid icon) once, and it transforms into the (x icon) and stays there until they click it again ONCE to change it back to the (menu grid icon). Other trigger actions aren't ideal, and I find that if I used the "double mouse click", the response gets a bit messy as clicking once would replay the whole sequence again. Thanks!

        • 1. Re: use mouse click trigger option more than once?
          Zoze Level 1

          At CreationComplete make a var as:

           

          button = -1;

           

          At click event of the button write:

           

          if (button == -1){

           

          sym.getSymbol("nmnmnmn").play("xicon");   // if you have a trigger in timeline to make this action that you want

           

          button++;

          }

           

          else {

          sym.getSymbol("nmnmnmn").play("returnedicon");

          button = -1;

          }

           

           

          Somehow like the above you'll have to do it.

           

          Or else you can use boolean , TRUE/FALSE