Reputation: 107
In my Animate CC file I can handle the loading of external js files, but am struggling to understand how you access the functions in those external files from the timeline? For example, if my external script has:
function videoPlay() {
alert("Hello! I am some code!");
}
How would I call that function from a keyframe on the timeline?
this.videoPlay(); or _root.videoPlay(); does not work
Upvotes: 0
Views: 1198
Reputation: 107
videoPlay(); is the correct way to call the method. I had an issue elsewhere in the code where I did not implicitly call this. on a variable.
Upvotes: 0