Skip to main content
Participant
October 15, 2017
Answered

on Load event

  • October 15, 2017
  • 1 reply
  • 1200 views

hi everybody

i have a PopUp that i what to show the user when he\she enter the stage for the first time.
i what to do it with code so the pop up won't be in my way all the time..

how can i do it by code?

i couldn't find anythig about onLoad, and couldn't understand what to change in ENTER_FRAME (is it even relevant?)

plase help!

thanks!

    This topic has been closed for replies.
    Correct answer kglad

    in frame 1:

    if(!this.alreadyExecuted){

    this.alreadyExecuted=true;

    //code to show your popup

    }

    1 reply

    kglad
    Community Expert
    Community Expert
    October 15, 2017

    just put your code in frame 1.

    does the timeline ever re-enter frame 1?

    html5/canvas or actionscript?

    Participant
    October 15, 2017

    All of my code is in frame 1.. even when i jump to other frames its still need to be in frame 1. otherwise its not working

    Im using html5/canvas..

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    October 16, 2017

    in frame 1:

    if(!this.alreadyExecuted){

    this.alreadyExecuted=true;

    //code to show your popup

    }