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

Adobe Animate CC is publishing HTML5 with strange variables

New Here ,
Jan 29, 2018 Jan 29, 2018

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)

animateContent.js+%E2%80%94+inhabit-module-nba-lineup-picker+2018-01-29+19-10-58.png

230
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 , Jan 30, 2018 Jan 30, 2018

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.

Translate
LEGEND ,
Jan 29, 2018 Jan 29, 2018

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.

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
New Here ,
Jan 29, 2018 Jan 29, 2018

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)

animate_content.js — nba-stat-speedometer 2018-01-30 09-41-25.png

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.

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 ,
Jan 30, 2018 Jan 30, 2018
LATEST

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.

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