Targeting function after publish.
Hi, this is a very specific issue. I am using Greensock to add HTML5 animations to Storyline (eLearning tool) it will allow you to add web objects to a slide. I have figured out how to communicate between my hand coded GSAP animations and Storyline just fine by targeting the iframe that the web object lives in. Occasionally we use Adobe Animate with GSAP and that is where it breaks. Adobe animate changes the scope of the GSAP code putting it in a closed function:
I can fire this function:
function controlAnimate(){
alert();
//tl.pause();
}
Anything in this function, which is where the GSAP code lives, is not accessible.
Animate wraps it all in this closed function:
(function (cjs, an) {...
GSAP code is in here.
I have tried everything to access the GSAP code with no luck. I know this is a scoping issue I am just not sure how to get around the function with closure.
above function firing the alert from Storyline in the animate html. Anything inside (function(... does not work.
https://360.articulate.com/review/content/0112d7f3-c73e-475a-adb6-15f30ed9f4bf/review
Successful control of hand coded GSAP animation from Storyline:
https://360.articulate.com/review/content/5e2693d1-be09-44d8-84ee-eca0dfee96e5/review
This is a bit more of an adobe animate question I guess throwing it out there just in case anyone has a clue. DANKE!