6 Replies Latest reply on Feb 3, 2014 7:52 AM by Potts

    create an action that will control all symbols on the stage

    Potts Level 1

      I have a bunch of icons on my stage that when clicked, rotate 45 degrees. when you click on another icon, the previously clicked icon resets to 0 degrees.

      I have it done manually, but it's a pain in the *** to write out, and it looks cluttered.


      element = sym.$("button1");

      element.css("transform", "rotate(0deg)");


      element = sym.$("button2");

      element.css("transform", "rotate(0deg)");



      all the way through button10.


      I know there has to be a more economical way of doing this, but i'm unsure of how to do it.