Quantcast
Viewing all articles
Browse latest Browse all 9897

call function in external .js from stage.onCompletion

I have my edge composition, and some functions in sim.js

 

within the stage.onCompletion event, I have:

 

$("<script type='text/javascript' src='sim.js'></script>").appendTo("#Stage");

 

how can I call functions, e.g. "testMe()" that are in sim.js from within the stage.onCompletion event?

 

$("testMe()"); was my first thought, but no. what am I missing?


Viewing all articles
Browse latest Browse all 9897

Trending Articles