Skip to main content
Known Participant
January 25, 2018
Answered

jQuery in Animate

  • January 25, 2018
  • 3 replies
  • 4124 views

After looking for a while I can't find a simple info whether or not, and how, to connect Animate with jQuery.

My (beginners) idea was that I have to put some code in the first frame to connect with jquery-3.2.1.js. And than to have the option to use jQuery scripts insides Animate.

Certainly there are some useful functions that are not part of the normal Animate tools as tweens, or not part yet of code fragments.

But it seems to be more complex. The HTML has to be scripted (?) and perhaps the whole is not as great as I tought?

So my question is –  how to use jQuery insides Animate and which are the most useful functions?

    This topic has been closed for replies.
    Correct answer kglad

    add a component to your library or manually add a script tag to your html.

    3 replies

    Legend
    January 25, 2018

    thomasb74905373  wrote

    Certainly there are some useful functions that are not part of the normal Animate tools as tweens, or not part yet of code fragments.

    Animate has a very good tween library already built in.

    What, exactly, do you think you need jQuery for? jQuery's primary purpose is manipulating the browser DOM, but Animate doesn't use the browser DOM, except for components. It would be useless for accessing Animate's object hierarchy.

    Known Participant
    January 25, 2018

    Hi ClayUUd,

    since JS ist the language of Adobe Animate now, I simply want to get the maximum of options to solve future problems.

    As for games, special menus (f.e. as mouse sensitive spinning image-circles), complex animations including all kind of media, etc., etc...

    The code fragements still seem to be quite few and the code free functions are limited.

    F.e. there is no way to manipulate sounds etc.(as before in Flash).

    I don’t know what jQuery all can do, but as a „old flasher“ I remember to have  had a lot of challenges to face  ;-)

    Thomas

    Legend
    January 25, 2018

    thomasb74905373  wrote

    Hi ClayUUd,

    The code fragements still seem to be quite few and the code free functions are limited.

    F.e. there is no way to manipulate sounds etc.(as before in Flash).

    False: https://createjs.com/soundjs

    Maybe, just maybe, you should learn how to use the CreateJS API before you run off and bloat your pages with yet another JS library.

    Joseph Labrecque
    Community Expert
    Community Expert
    January 25, 2018

    Additionally, you can now include external js files from the Actions panel.

    Known Participant
    January 25, 2018

    Thank you!

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    January 25, 2018

    add a component to your library or manually add a script tag to your html.