Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

create an action that will control all symbols on the stage

$
0
0

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.


Viewing all articles
Browse latest Browse all 9897

Trending Articles