0

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

Scott Johnson
  • 107
  • 3
  • 8

1 Answers1

0

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.

Scott Johnson
  • 107
  • 3
  • 8