Adobe Animate Scope issues with HTML5.
I am using Animate as a Quick HTML editor that displays data from remote feeds. I am having issues with the Scope. My Code below:
Also I am using a external JS library for all of my gets and posts. This example I am using. https://code.jquery.com/jquery-3.3.1.min.js
var tl = this
//Slide1 and Slide2 are Key Frames on the same timeline. Slide1 = Frame 1 and Slide2 = Frame 2
$.get( "https://give.benevolentenabler.com/api/custom/totals/1", function( data ) {
if(data.raised.length > 0){
tl.theTime.text = "$" + data.raised;
tl.stop(); <-----Does Nothing. Keeps Playing.
}
else{
//"Do Something Else Like"
tl.gotoandstop('Slide2'); <-----Does Nothing. Keeps Playing.
}
})
I know i have to me missing something super simple.
