Jan 04, 2021
Up untill recently i always used Webobjects to add jQuery and GSAP because i use that for most of my work. Now Articulate included the latest version of GSAP in Storyline i notice i work without the Webobjects and use GSAP directly on elements in Storyline. One big disadvantage still though. By using a generic_functions.js script i added a lot of functionality to Storyline that aint available default. Eg. i can change color, shape, position of any shape and image with functions i predefined. Without the use of the Webobjects that add the external js file to the html-file i donot have global access to these functions and have to add the functions time after time on any trigger. That i donot like. I want to be able to call my setup functions at any time in a Storyline.
In the Gif below you can see what i mean. The card on the left has all code on it...quite some...the png on the left only calls the same function...but that fails due to scope.
The disadvantage of Webobjects is that if you change anything in your generic_functions.js you have to update your Webobject, change the unique number for the Webobject in your code...and publish again. Quite cumbersome.. so how to solve that...
And from now on i have access to all my generic functions on any publish without any changes needed. Only when Articulate updates Storyline i have to change this again. And you need to remember that when you exchange projects with others, they dont have your updated files, so they need it too then.
As you can see here now my call to the functions work.
And by reusing code in functions it can be much simpler in the end.