Loading Javascript into Adobe Animate

Guest
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

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?

Views

2.2K

Likes

Translate

Translate

Report

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

Adobe Community Professional , 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.Create HTML5 Canvas documents in Animate CC Regards,JC

Likes

Translate

Translate
Adobe Community Professional ,
May 29, 2019 May 29, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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".

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Awesome, man. thanks so much!

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

You're welcome!

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Oh! Thanks, I did not know that.

Do you know if I can perspective skew with it?

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

That question is not on topic.

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

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