Copy link to clipboard
Copied
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!
in frame 1:
if(!this.alreadyExecuted){
this.alreadyExecuted=true;
//code to show your popup
}
Copy link to clipboard
Copied
just put your code in frame 1.
does the timeline ever re-enter frame 1?
html5/canvas or actionscript?
Copy link to clipboard
Copied
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..
Copy link to clipboard
Copied
in frame 1:
if(!this.alreadyExecuted){
this.alreadyExecuted=true;
//code to show your popup
}
Copy link to clipboard
Copied
thank you kglad! you help me to understend that my problem was diffrent..
if i put the code that i needed in a "click" event evrey thing works ok
but if its not in a click event nothing happen...
so I opened a new layer.. and put my popup code (without a function) and it worked perfectly
thank again
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now