Copy link to clipboard
Copied
Hello,
I have been unable to get a function of mine to fire off on loading into a specific frame. This is what I tried:
var _this = this;
_this.addEventListener("load", myFunction.bind(this));
_this.stop();
Can anyone help me out, I think I am missing something super simple.
So... just put the code on that frame.
Copy link to clipboard
Copied
There is no such concept as "loading into a frame" in Animate. What exactly are you trying to do?
Copy link to clipboard
Copied
Maybe I worded that incorrectly. I am looking to be able to run a function automatically once a specific frame is visible, or visited.
Copy link to clipboard
Copied
So... just put the code on that frame.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now