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

How to Retrieve Symbol ID

Participant ,
Oct 23, 2017 Oct 23, 2017

Hello,

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

Thank you,

371
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

correct answers 1 Correct answer

LEGEND , Oct 23, 2017 Oct 23, 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.

Translate
LEGEND ,
Oct 23, 2017 Oct 23, 2017

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

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
LEGEND ,
Oct 23, 2017 Oct 23, 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.

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
Participant ,
Oct 24, 2017 Oct 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?

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
LEGEND ,
Oct 24, 2017 Oct 24, 2017
LATEST

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.

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