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

on Load event

New Here ,
Oct 15, 2017 Oct 15, 2017

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!

1.1K
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

Community Expert , Oct 16, 2017 Oct 16, 2017

in frame 1:

if(!this.alreadyExecuted){

this.alreadyExecuted=true;

//code to show your popup

}

Translate
Community Expert ,
Oct 15, 2017 Oct 15, 2017

just put your code in frame 1.

does the timeline ever re-enter frame 1?

html5/canvas or actionscript?

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
New Here ,
Oct 15, 2017 Oct 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..

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
Community Expert ,
Oct 16, 2017 Oct 16, 2017

in frame 1:

if(!this.alreadyExecuted){

this.alreadyExecuted=true;

//code to show your popup

}

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
New Here ,
Oct 17, 2017 Oct 17, 2017

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

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
Community Expert ,
Oct 17, 2017 Oct 17, 2017
LATEST

you're welcome.

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