Copy link to clipboard
Copied
Hi there
I'm researching how to do cool things with Animate CC and CreateJS, but I've faced a problem: in my stage content all layers have names like "instance_1", "instance_2" and so on. What should I do to have a normally named content? (see attached screenshot)
So when you say "normal" instance names, you actually mean user-assigned names. You should have said that in the first place.
Well, you can't assign instance names to graphic symbols. You can only assign instance names to buttons and movieclip symbols. So you'll have to change any graphic symbol you want to script to a movieclip.
Copy link to clipboard
Copied
This is normal, it is not a problem. You can't assign your own names to graphic symbol instances. Stop worrying about things that don't matter.
Copy link to clipboard
Copied
But what if I want to use them? And by the way, I have an example of published code with normal variables naming (see attached)
As you can see, at this screenshot we have variables named exactly the same way as names of classes. But I don't know what should I do to get the save result.
Copy link to clipboard
Copied
So when you say "normal" instance names, you actually mean user-assigned names. You should have said that in the first place.
Well, you can't assign instance names to graphic symbols. You can only assign instance names to buttons and movieclip symbols. So you'll have to change any graphic symbol you want to script to a movieclip.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now