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.