Jump to content
Search Community

Loading external .js files

FrogOnWheels test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

i would like to clean up my code a little and put blocks into external js files.
Timelines.js, Variables.js, Functions.js, scene01.js, scene02.js, etc.............


I'm in Edge Animate 'document.compositionReady' Window
Now if i put this code in to the completely empty Window and publish everything works just fine.
My Html Page is opening and on load the square div moves 500 pixels to the right.

yepnope({nope:['Javascript/greensock/TweenMax.js'], complete: init});
function init (){
var testSquare = sym.$("testSquare");
sym.tweenSquare = function(){
TweenMax.to(testSquare,2, {left:"+=500"});

I would like to put this code into an external Square.js file and call it.

Now I have a completely blank Edge Animate 'document.compositionReady' Window
and an external Square.js file with the above code in it.

This has been driving me nuts for the last 10hrs straight!

What do i put in the blank 'document.compositionReady' Window?
How to get the Square.js file to load and fire off the function ?


Link to comment
Share on other sites


In order to best serve all of users we need to focus on issues related to the GreenSock Animation Platform. Your questions seem very specific to Edge Animate.


You should try this question in the Edge Animate forums:



From what I can tell, there is a lot of activity over there and something like this should be resolved fairly quickly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...