Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Simple run function on load into frame

Explorer ,
Feb 20, 2018 Feb 20, 2018

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.

406
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 21, 2018 Feb 21, 2018

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

Translate
LEGEND ,
Feb 20, 2018 Feb 20, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 21, 2018 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 21, 2018 Feb 21, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines