Skip to main content
charlesn79540358
Inspiring
October 24, 2017
Question

Custom Button outside of Adobe animate

  • October 24, 2017
  • 0 replies
  • 137 views

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)?

    This topic has been closed for replies.