How to reload/reset the scene?
This code is an attempt to restore the original setup scene however it would only remove all the scene and leave empty, it will not load the elements once again. what I'm missing here?
playLvlAgn.addEventListener (MouseEvent.CLICK, doLevelAgain);
function doLevelAgain(event: MouseEvent): void {}
stage.removeChildren ();
gotoAndPlay (1);
}
OK, I found the solution. all the removeChild
s should be inside the function of the button. I had also sent frame2 and stop just in case someone tried to reload the game even before he began to play.
playLvlAgn.addEventListener (MouseEvent.CLICK, doLevelAgain);
function doLevelAgain(event: MouseEvent): void {}
gotoAndStop (2);
for (var i: int = 0; i)< 3;="" i++)="">
If (balls.length > 0) {}
Prom = balls.pop ();
ball.parent.removeChild (ball);
trace("If--0c")
}
}
If (stage.contains (playLvlAgn)) {}
removeChild (playLvlAgn);
trace ("If - 1")
}
If (stage.contains (yesh8DoorA)) {}
removeChild (yesh8DoorA);
trace ("If - 2")
}
If (stage.contains (yesh8DoorB)) {}
removeChild (yesh8DoorB);
trace ("If - 3")
}
If (stage.contains (yesh8DoorC)) {}
removeChild (yesh8DoorC);
trace ("If - 4")
}
If (stage.contains (yesh8allBuckets1)) {}
removeChild (yesh8allBuckets1);
trace ("If - 5")
}
If (stage.contains (yesh8allBuckets2)) {}
removeChild (yesh8allBuckets2);
trace ("If - 6")
}
If (stage.contains (add8bigGrayBall6)) {}
removeChild (add8bigGrayBall6);
trace ("if - 7")
}
If (stage.contains (yesh8wall5)) {}
removeChild (yesh8wall5);
trace ("If - 8")
}
If (stage.contains (yesh8step)) {}
removeChild (yesh8step);
trace ("If - 9")
}
If (stage.contains (yesh8bomb26)) {}
removeChild (yesh8bomb26);
trace ("If - 10")
}
If (stage.contains (yesh8bomb27)) {}
removeChild (yesh8bomb27);
trace ("If - 10")
}
If (stage.contains (yesh8bomb28)) {}
removeChild (yesh8bomb28);
trace ("If - 10")
}
If (stage.contains (yesh8bomb2)) {}
removeChild (yesh8bomb2);
trace ("If - 11")
}
If (stage.contains (yesh8bomb3)) {}
removeChild (yesh8bomb3);
trace ("If - 12")
}
If (stage.contains (yesh8gBall21)) {}
removeChild (yesh8gBall21);
trace ("If - 13")
}
If (stage.contains (yesh8gBall24)) {}
removeChild (yesh8gBall24);
trace ("If - 14")
}
If (stage.contains (yesh8redHalfSwing)) {}
removeChild (yesh8redHalfSwing);
trace ("If - 15")
}
gotoAndPlay (1);
}
Tags: Adobe Animate
Similar Questions
-
Re: Satellite Pro L300 - how can I reset the BIOS password?
I put the password on the BIOS and electric start and I forgot the password.
How can I reset the password?I have a Toshiba Satellite Pro L300.
You must bring the laptop to an authorized service center to remove the password.
Which country are you? Check your local Toshiba Web site for a list of the ASP (service centres).
-
My iphone camera 6 + doesn't have an option to take direct pictures IE 3 small circles are missing. How can I reset the camera?
-
How can I reset the old my wife's phone so I can use it and she can not remember any password or ID
How can I reset the old my wife's phone so I can use it and she can not remember any password or ID
Here are instructions, but she will need to recover his password: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support
Help find the ID and the password: https://iforgot.apple.com/appleid#! & section = appleid
-
Some * changed my password to Icloud and lock my phone by finding my phone app
What should I do now, I can not activate my phone. My apple ID still works but not my Icloud how can I reset the password
-
I lost my password to enter the EOS remote app to control my D6 remotely.
How replace or reset the password for the app?
I tried to remove the application on my phone and re - install. That did not help.
Thank you
Hello Elsmain,
You can change the encryption settings, but you must navigate through the steps. You should not change anything until it's set the encryption settings. The steps to get there, start here:
1. turn the switch to
. -
Hello
The function of the program was to indicate the elapsed time. When the program has been run and the switch set to true, the indicator showed the elapsed time. And then move the button to false, the stop indicator to indicate the elapsed time. How can I reset the time elapsed to indicate the time elapsed since 0 when the button switch again without pressing the button "stop"? The program is attached. Thank you.
From your description, it seems that your code is way too complex. -What are you really trying to do?
-
How can I reset the default settings of the monitor for Vista
Somehow, I ended up setting my screen laptop like I have look on the side for one of the two users on the PC. The other user is fine. Any ideas on how I can reset the default to display monitor?
Try holding CTRL + ALT + UP arrow at the same time. You can also try the other arrows. I hope I could help
-
How can I reset the time and date on Windows Vista?
How can I reset the time and date on Windows Vista
http://www.ehow.com/how_2056384_change-date-time-Windows-Vista.html
http://www.Vistax64.com/tutorials/114989-date-time-change.html
Read the information in one of the links above.
See you soon.
Mick Murphy - Microsoft partner
-
How can I reset the administrator user accounts?
My Windows 7 PC is now standard user. How I can change standard user to administrator. The system won't let me change. How can I reset the administrator user accounts? Or, how you're going to help me change the setting?
If you have AN administrator account on your computer then the answer of Joel help at all.
You cannot change a user account Standard on an admin on another account Admin account (AFAIK)
Try this:
Boot from your Windows repair disk (you DID make a?) and use system restore to set Windows to a point before it happened.
-
R12.1.1 staging is complete! How to check if the scene is good
Hi Gurusl,
I finished the staging R12.1.1 for Hp unix B.11.31. I want to know how to check if the scene is good for installation or if it is corrupt. Is there a metalink note or the script from where we can check it out. your help will be very appreciated. Thanks in advance
Kind regardsHello
Please refer to (Note: 802195,1 - checksums MD5 for R12.1.1 Quick Install Media).
Kind regards
Hussein -
I don't remember the password for my TC. How can I reset the password?
Hi all! I was not using my TC for awhile and I've totally forgotten the password. I was wondering how to reset the password.
AirPort Utility 6.x - if you forgot your station base, airport Time Capsule or network password
-
Satellite x 200-how do to reset the Bios password
Hello
I bought a used Satellite x 200 to replace my old p100.
When I received it, I noticed that the bios is locked and the person I got it from is unable to tell me the password, arguing that she used the fingerprint only 4 long.Is there a way to reset the bios password and how much would it cost?
Concerning
Hello
The BIOS password can be removed only by an authorized service provider in the country where you live.
So, contact Toshiba service partners and asking for BIOS password reset. -
How can I reset the password of the user under Win XP
Hello
My son Steven defined only one user on computer account and he forgot the password.
How can I reset it?
Thank you
Hello
The Microsoft Knowledge base provides useful information on this topic:
Check this box:
[How to connect to your Windows XP-based computer if you forget your password or if your password expires | http://support.microsoft.com/kb/321305]
Hope this helps. Otherwise you will have to reinstall Windows XP
-
Satellite L - How do I reset the BIOS?
Hello
Does anyone know how to access the greyed zones in the BIOS, you have a newspaper as 'Master' or 'Controller' first? or something?
And nobody knows how to reset the BIOS, so I can remove the password and how to access the BIOS supervisor not only a user?
See you soon
Hello
I think the gray options BIOS means you are not logged in as supervisor. You must enter the supervisor password, and then you should be able to change these options.
And the BIOS reset is only possible from an authorized service. Ask a technician for this. They can help you!
Welcome them
Maybe you are looking for
-
Is satellite P870 - card WLAN 802.11n 5 GHz?
I just bought a 2870 B DSL modem router wireless that supports the 2.4 and 5.0 Ghz.I set up both a 2.4 and 5.0 wireless systems, the old Toshiba P870 of one month running W7 (64-bit) can see and connect to the 2.4 Ghz network but can not see the 5.0
-
CONF. Update seems to happen just in the middle of something and shuts down the computer! I know there are indications that it is about to take place, but do not always notice the prompt. Is there a noise like a beep or something that I can engage on
-
I have difficulties to obtain Service Pack 2 for x 64 Vista install. I tried to install SP2 previously but my computer has been damaged somewhere in the process and would not start windows. I used the Windows installation disk to repair Windows and s
-
resizing the window active to see bottom of page
I chose the wreck more than the monitor recommends, and have updated the drivers for the graphics card and monitor. I played with the "active title bar" without any solution to this problem, I can not hide my taskbar using the up/down arrows with my
-
HP Pro 3500 format microtour PC driver - graphics ((xp))
Hello guysI bought a HP 3500 M TBut because of my work and programs need to use XP Service Pak 3But I'm having a problem with the definition of the screen never before loading and experience you do I do to download a file driver - graphics for Window