Skip to main content
Inspiring
February 20, 2018
Answered

Simple run function on load into frame

  • February 20, 2018
  • 1 reply
  • 471 views

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.

    This topic has been closed for replies.
    Correct answer ClayUUID

    So... just put the code on that frame.

    1 reply

    Legend
    February 20, 2018

    There is no such concept as "loading into a frame" in Animate. What exactly are you trying to do?

    Inspiring
    February 21, 2018

    Maybe I worded that incorrectly. I am looking to be able to run a function automatically once a specific frame is visible, or visited.

    ClayUUIDCorrect answer
    Legend
    February 21, 2018

    So... just put the code on that frame.