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

Loading Javascript into Adobe Animate

Guest
May 29, 2019 May 29, 2019

Hi everybody,

Is it possible to load .js files into an Animate project? I'm interested in loading confetti.js into the timeline or project somehow, but not sure if that's doable:

https://www.cssscript.com/demo/confetti-falling-animation/

Is there a regular way to load JS API into Animate at all?

4.5K
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

Community Expert , May 29, 2019 May 29, 2019

Hi.

Yeah, there is.

To add third-party scripts:

- Select Window > Actions.

- In the Actions panel, select Include within the Global hierarchy.

- Click the + button to add a script from an externally hosted URL or add a file by browsing to a local library.

actions-include.png

Create HTML5 Canvas documents in Animate CC

Regards,

JC

Translate
Community Expert ,
May 29, 2019 May 29, 2019

Hi.

Yeah, there is.

To add third-party scripts:

- Select Window > Actions.

- In the Actions panel, select Include within the Global hierarchy.

- Click the + button to add a script from an externally hosted URL or add a file by browsing to a local library.

actions-include.png

Create HTML5 Canvas documents in Animate CC

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
Guest
May 29, 2019 May 29, 2019

Awesome, Joao, thank you. Are there any basic tutorial sites out there that deal with scripting in Animate that you know of at all? I've done searching multiple times and haven't come up with anything that's not "Flash".

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 ,
May 29, 2019 May 29, 2019

The comment #3 from this thread has some tips for beginners:

Re: Keep button state

I also have a GitHub repo with some working samples in case you need some references:

GitHub - joao-cesar/adobe

I hope these help.

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
Guest
May 29, 2019 May 29, 2019

Awesome, man. thanks so much!

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 ,
May 29, 2019 May 29, 2019

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
Community Beginner ,
May 04, 2021 May 04, 2021

When I add 'https://code.createjs.com/1.0.0/createjs.min.js' to the Includes in Animate, other parts of my project stop working.  Why is this happening?

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 ,
May 04, 2021 May 04, 2021

Why are you trying to manually include a library that it already includes automatically?

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 Beginner ,
May 04, 2021 May 04, 2021

Oh! Thanks, I did not know that.

Do you know if I can perspective skew with 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 ,
May 04, 2021 May 04, 2021
LATEST

That question is not on topic.

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 ,
Jul 30, 2020 Jul 30, 2020

Thanks. But yes I did that. Now what do I do. I want to load in .js files from my folders and then manipulate and apply them in different ways within 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