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

How to Retrieve Symbol ID

Explorer ,
Oct 23, 2017 Oct 23, 2017

Copy link to clipboard

Copied

Hello,

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

Thank you,

Views

252

Translate

Translate

Report

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.

Votes

Translate

Translate
LEGEND ,
Oct 23, 2017 Oct 23, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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