Skip to main content
charlesn79540358
Inspiring
October 23, 2017
Answered

How to Retrieve Symbol ID

  • October 23, 2017
  • 2 replies
  • 414 views

Hello,

How do you retrieve the symbol ids that were created in adobe animate?

Thank you,

    This topic has been closed for replies.
    Correct answer Colin Holgate

    Assuming you're talking about HMTL5 Canvas...

    The manifest is part of the properties of lib. Each manifest entry has a src and an id. From the main timeline you can get the id of the first entry in manifest like this:

    alert(lib.properties.manifest[0].id);

    You could work through manifest as an array to get all of the ids that were created.

    2 replies

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    October 24, 2017

    Assuming you're talking about HMTL5 Canvas...

    The manifest is part of the properties of lib. Each manifest entry has a src and an id. From the main timeline you can get the id of the first entry in manifest like this:

    alert(lib.properties.manifest[0].id);

    You could work through manifest as an array to get all of the ids that were created.

    charlesn79540358
    Inspiring
    October 24, 2017

    Yes, I'm talking about HTML5 Canvas. Would you put that in the javascript file that adobe animate creates for you or the html5 file?

    Colin Holgate
    Inspiring
    October 24, 2017

    The code I gave would go into the timeline of your FLA. It does then get published and included in the .js file, but if you put it there yourself manually, it would get overwritten next time you publish.

    Legend
    October 23, 2017

    Please be more specific. There is no such concept as an "ID" in Animate.