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

Why is there is no scripting reference in Adobe Animate for using javascript in Animates code-editor?

Explorer ,
Nov 03, 2018 Nov 03, 2018

I wonder why there is no scripting reference in Adobe Animate on how to use javascript in Animate. Maybe I am not looking in the right place. I know there is a good online documentation on createJS but to use that in Animate is for a designer/animator that now and then likes to ad some code not clear at all. A mousedrag functionality like this slider example shouldn't be that difficult to work properly but it is though. Even more to make it responsive in a hierarchy. Animate is generating javascript but I cant find anywhere a reference or information how to deal with this generated script within the code-editor of Animate.

1.6K
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
Adobe Employee ,
Nov 05, 2018 Nov 05, 2018

Have a look at this forum post and let us know if it answered your question.

Resources to start coding JavaScript in Animate CC

Javascript in Animate CC

Thanks,

Preran

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
Explorer ,
Nov 06, 2018 Nov 06, 2018

Thank you but I looked at all these links already.

There is an information gap about how to create javascript in the code editor that takes the generated code into account.

Example; There could be some explanation about why you should always use "this."; or how to deal with functions, methods and objects in the code editor when using different keyframes and instance names in different layers. Or how to how to deal with the hierarchy and local and global transformation.

I don't need to know how the code is generated in detail but only how to deal with it 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
Community Expert ,
Nov 06, 2018 Nov 06, 2018

There is no official API yet.

But maybe this cheatsheet can help you:

Re: Keep button state

Regards,

JC

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
Explorer ,
Nov 06, 2018 Nov 06, 2018

That cheatsheet is a good start!

Thanks a lot!

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
Community Expert ,
Nov 06, 2018 Nov 06, 2018

You're welcome!

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
Explorer ,
Nov 06, 2018 Nov 06, 2018

This creatJS library is integrated since about 2012.  I have no idea why javascript code isn't supported a bit more since it looks like the only good direction for HTML5 and vector graphics. Remember Adobe Edge? I lost clients because of that. Flash the same. I use the software for more than 25 years so I depend on it.

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 ,
Nov 07, 2018 Nov 07, 2018

JavaScript code is supported 100% in HTML5 Canvas documents. How do you get more than that?

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
Explorer ,
Nov 07, 2018 Nov 07, 2018
LATEST

I am not saying that javascript isn't supported. To use the code in Animate, dealing with the generated output of Animate, isn't supported besides a few code snippets. That's what my initial question was. I think we are in a loop...

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
Community Expert ,
Nov 05, 2018 Nov 05, 2018

There are code snippets that can help you if that's what you're looking for?

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