Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Custom Button outside of Adobe animate

Participant ,
Oct 24, 2017 Oct 24, 2017

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

125
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation