Copy link to clipboard
Copied
Hello,
How do you retrieve the symbol ids that were created in adobe animate?
Thank you,
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.
Copy link to clipboard
Copied
Please be more specific. There is no such concept as an "ID" in Animate.
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.
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?
Copy link to clipboard
Copied
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.