When I put the function at the root level of the .js file that Adobe animate publishes I can get the function to fire. What I need it to do is work in here: (lib.sephorappclient = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); //GSAP code starts here var tl = new TimelineLite({repeat:20}); root =this; tl.timeScale(1); //this. is required to get mc scope var allItems = [this.frame_mc, this.splash_mc, this.header_mc, this.white_mc]; tl.from(allItems, 1, { y: "1200", ease: Quint.easeOut }) tl.to(this.splash_mc, 2, { x: "-200", ease: Quint.easeOut, }) tl.from(this.counter, .5, { alpha: 0, ease: Back.easeOut }, "-=1") function pauseTS(){ //tl.pause(); alert("pause"); } function playTS(){ //tl.play(); alert("play"); } //GSAP code ends here }
... View more