Skip to main content
May 29, 2019
Answered

Loading Javascript into Adobe Animate

  • May 29, 2019
  • 2 replies
  • 4989 views

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?

    This topic has been closed for replies.
    Correct answer JoãoCésar17023019

    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

    2 replies

    Participant
    July 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.

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    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

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

    JoãoCésar17023019
    Community Expert
    Community Expert
    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