Copy link to clipboard
Copied
So I created this custom button on the HTML file that Adobe animate creates. I have it so that when the user clicks the button hotbtn_2 of the symbols changes orange on the diagram. My question if I have two symbols on the diagram can I change both of them on the same click.
<button onclick="changebackground(hotbutton)"></button>
function changebackground(hotbutton){
var x = hotbutton;
exportRoot.hotbtn_2.shape_1.graphics.f("#FF9900").s().p("AhSBTQgjgiAAgxQAAgvAjgjQAigjAwABQAwgBAjAjQAjAjgBAvQABAxgjAiQgjAjgwAAQgwAAgigjg");
}
Is there a way I can do document.getelementby(id)?
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now