Skip to main content
Known Participant
Jan 25, 2018 12:56 PM UTC
Answered

jQuery in Animate

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 is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect answer
    Community Expert
    Jan 25, 2018 2:17 PM UTC

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

    10 replies

    Legend
    Jan 25, 2018 4:16 PM UTC

    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.

    Translate
    Known Participant
    Jan 25, 2018 4:32 PM UTC

    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

    Translate
    Legend
    Jan 25, 2018 4:48 PM UTC

    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.

    Translate
    Joseph Labrecque
    Community Expert
    Community Expert
    Jan 25, 2018 2:52 PM UTC

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

    Translate
    Known Participant
    Jan 25, 2018 3:46 PM UTC

    Thank you!

    Translate
    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    Jan 25, 2018 2:17 PM UTC

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

    Translate