Skip to main content
Known Participant
November 3, 2018
Question

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

  • November 3, 2018
  • 2 replies
  • 1874 views

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.

This topic has been closed for replies.

2 replies

Community Expert
November 5, 2018

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

Preran
Legend
November 5, 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

JaapnautaAuthor
Known Participant
November 6, 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.

JoãoCésar17023019
Community Expert
Community Expert
November 6, 2018

There is no official API yet.

But maybe this cheatsheet can help you:

Re: Keep button state

Regards,

JC