STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #136114 |
Natural Selection in Black and White |
Peppered Moths |
Life cycle of the peppered moth |
Follow the peppered moth from birth to death -all in one year. |
Pollution and peppered moths |
Find out how the peppered moth surprised naturalists in England. |
Dr. Kettlewell tests natural selection |
Scientists must verify their ideas. Learn how Dr. Ketterwell put natural selection to the test. |
A bird's eye view of natural selection |
See how camouflage protects moths through the eyes of a predator. |
Peppered Moths |
Peppered moth life cycle |
Peppered moths are common insects living in England, Europe and the North America. They are small moths, only 1 ½ to 2 ½ inches across. Their light wings are "peppered" with small dark spots. |
Predators of the peppered moth include flycatchers, nuthatches, and the European robin. Like most moths, peppered moths avoids predators that hunt in daylight by flying at night and resting during the day. Any animal setting still is harder to see than a moving one. |
Peppered moths have extra camouflage to help hide them. The trees they live in have light colored bark and are covered with small fungi called lichens. The pattern on peppered moths wings look very similar to lichens. |
Peppered moth eggs hatch during mid summer. Larvae (caterpillars) feed on the leaves of birch, willow, and oak trees. The larvae look much like a small branch. Having a body that looks like a stick helps the larvae hide from predators. The larvae can even adjust their color from brown to green to best match the branches they are feeding on. |
Cold weather is difficult for insects. To avoid death, peppered moth larvae change into pupae (cocoons) for the winter. In April and May the pupae open to reveal a new adult moth. These adults will lay eggs and die by the end of summer. No peppered moth lives for more than one year. |
While the typical peppered moth is light, some have dark, almost black bodies. These moths are given the name carbonaria. Others have many more dark spots than the average peppered moth and are called insularia. In the past, these darker moths were very rare. But that changed around 150 years ago. To find out why, click on IMPACT OF POLLUTION. |
sdfgg dgdg dg gdfs |
This simulation allows you to watch natural selection in action. A population of moths will be released in a forest. At the beginning, the population is 50 percent light moths and 50 percent dark. During the simulation, graphs at the bottom will record any changes in the population. The only factor different between the two types of moths is the color of the wings. |
Your role in the simulation is that of a predator. Guide the bird with the mouse to the moths. Click on the moth with the mouse to eat the moth. Every time you eat a moth, you will hear the crunch of his exoskeleton. If you miss the moth, you will hear the bird call. Eat as many moths as possible in the minute you have. |
Choose a forest for your experiment |
Dark Forest |
Light Forest |
RS Edleston was an English naturalist who studied insects in the 1800's. In 1848 he recorded an unusual discovery in his journal. "Today I caught an almost totally black form of Biston betularia (peppered moth) near the centre of Manchester." This is the first recorded sighting of a dark peppered moth. |
What was rare in 1848 became common over the next fifty years. By 1900, the peppered moth populations in areas around English cities were as much as 98% dark moths. Scientists became curious why this was happening. |
During that time, England was experiencing what is known as the Industrial Revolution. Factories were being built, and they ran by burning coal for fuel. The result was a dark smoke that covered the surrounding countryside. Trees that had been light and covered by lichens now were dark and bare. This clearly was having some impact on the moths. Scientists begin to try to find out why. |
Some thought the adults were changing their colors the same way the larvae could match the color of the twigs. Others thought the chemicals in the smoke darkened the moths. |
Finally it was found that the color was genetic. Moths passed their color to the next generation. Eggs from light moths developed into light moths and dark moth eggs turned to dark adults. The dark color was caused by a mutation in the DNA of a single moth, and the mutated gene had been passed to all its offspring. |
This explained why the moths were dark, but not why the dark moths were taking over. Did the dark moths have an advantage in the dark forests? If so, the change in the moths was a result of natural selection. |
Natural selection was proposed by Charles Darwin to explain how new species evolve. All types of living things have small differences between the individuals in the species. If one of those differences allows the individual to live longer, they will have more offspring. As that trait is passed on, the species starts to look more like the successful individual. Over time, the species changes. |
In 1896, J. W. Tutt suggested that the peppered moths were an example of natural selection. He recognized that the camouflage of the light moth no longer worked in the dark forest. Dark moths live longer in a dark forest, so they had more time to breed. |
All living things respond to natural selection. Over 100 other species of moth were observed to darken over time in polluted forests. Scientists call this effect industrial melanism. Natural selection is still at work in the peppered moth. In the last 50 years, most industrial countries have significantly reduced their pollution. As predicted by the theory, the number of dark moths are dropping as the forests become cleaner. |
Natural selection in peppered moths has been extensively studied. To find out how, go to KETTLEWELL'S EXPERIMENTS |
Science requires that theories be tested to see if they are supported by evidence. During the 1950's, Henry Bernard Davis Kettlewell ran a series of experiments and field studies to find out if natural selection had actually caused the rise of the dark peppered moth. |
Dr. Kettlewell was an entomologist, a scientist who studies insects. In 1952, he was named a research fellow at Oxford, one of England's premiere universities. He spent the rest of his life studying peppered moths and other moths known to turn dark through industrial melanism. |
Scientists test theories by making predictions based on the theory. They then test the prediction to see if what they observe matches their expectations. |
Dr. Kettlewell felt that if natural selection caused the change in the moth population, the following must be true: |
Heavily polluted forests will have mostly dark peppered moths Clean forests will have mostly light peppered moths Dark moths resting on dark trees are more likely than light moths to be eaten by birds. The reverse should be true on light trees. Dark moths released into polluted forests would live longer than light moths, but die sooner in clean forests. |
Amateur entomologists across England helped Dr. Kettlewell map the population of light and dark peppered moths. Their work showed clearly that high populations of dark moths were found near the industrial cities producing pollution. In the countryside not darkened by factory soot, the dark moths were rare. |
Dr. Kettlewell compared this information with studies on the moth done in the past. It was clear that the dark moths were almost completely absent before the Industrial Revolution. Now they were found only where the forests were polluted. |
To directly study bird predation on the moths, Dr. Kettlewell placed light and dark moths on the trunks of trees where he could observe them. He recorded the times a bird found the moth. |
He found that on dark tree trunks, birds were twice as likely to eat a light moth as a dark moth. The same birds would find the dark moth twice as often if the bark on the tree was light. This supported the idea that dark moths had a survival advantage in a dark forest. |
Dr. Kettlewell also tested the idea that dark moths live longer in dark forests. He collected groups of light and dark moths. All captured moths were marked so that they could be identified if recaptured. After marking them, both groups were released into the wild. |
Two days later, moth traps were used to recapture the moths. In clean forests, twice as many light moths lived to be recaptured as the dark moths. Only half as many light moths were recaptured in polluted forests. He had experimentally shown that if the moth's color matched the environment, it had a better chance of survival. |
In 1959, Dr. Kettlewell published an article in Scientific American summarizing his studies of the peppered moth. His years of work made an excellent case for natural selection. Every prediction he made had withstood the test. |
In a dark forest, the dark peppered moths were shown to have a survival advantage over light moths. Birds were twice as likely to eat a light moth as a dark moth. Rare before factories were built in England, their increase in numbers was shown to be related to pollution. Natural selection was the best explanation for the change in the moth population over time. |
Watch natural selection in action by going to BIRDSEYE VIEW |
cancel quit |
Copyright © Craig Tevis 2003 craig@techapps.net |
Photographs by: Wyre Forest Study Group St. Helens Wildlife Recording Group Used with permission |
60:00 |
100% |
75% |
50% |
25% |
0% |
Light Moth population: |
percent |
00 |
Dark Moth population: |
00 |
100% |
75% |
50% |
25% |
0% |
00 |
Change in your Forest |
Your forest started with 50% light moths and 50% dark moths. Now there are XX% light moths and xx%dark moths. Since you could see light moths easier, you ate more light moths than dark moths. |
60:00 |
00 |
Change in your Forest |
Your forest started with 50% light moths and 50% dark moths. Now there are XX% light moths and xx%dark moths. Since you could see light moths easier, you ate more light moths than dark moths. |
ActionScript [AS1/AS2]
Frame 1function goto(thisScene) { switch (thisScene) { case "birdseye" : gotoAndPlay (153); return; case "darkForest" : gotoAndPlay (1044); return; case "lightForest" : gotoAndPlay (1039); return; case "cycle" : gotoAndPlay (11); return; case "industry" : gotoAndPlay (243); return; case "kettlewell" : gotoAndPlay (471); return; case "quit" : gotoAndPlay (753); return; default : gotoAndPlay (1); } } fscommand ("fullscreen", true);Frame 10stop();Frame 11leaving = false;Frame 30stop();Frame 40if (leaving) { gotoAndPlay (142); leaving = false; }Frame 50stop();Frame 60if (leaving) { gotoAndPlay (142); leaving = false; }Frame 70stop();Frame 80if (leaving) { gotoAndPlay (142); leaving = false; }Frame 90stop();Frame 100if (leaving) { gotoAndPlay (142); leaving = false; }Frame 110stop();Frame 120if (leaving) { gotoAndPlay (142); leaving = false; }Frame 130stop();Frame 152goto(sceneName);Frame 153leaving = false;Frame 172stop();Frame 182if (leaving) { gotoAndPlay (232); leaving = false; }Frame 192stop();Frame 202if (leaving) { gotoAndPlay (232); leaving = false; }Frame 212stop();Frame 222if (leaving) { gotoAndPlay (232); leaving = false; }Frame 242goto(sceneName);Frame 243leaving = false;Frame 262stop();Frame 272if (leaving) { gotoAndPlay (460); leaving = false; }Frame 282stop();Frame 292if (leaving) { gotoAndPlay (460); leaving = false; }Frame 302stop();Frame 312if (leaving) { gotoAndPlay (460); leaving = false; }Frame 322stop();Frame 332if (leaving) { gotoAndPlay (460); leaving = false; }Frame 342stop();Frame 352if (leaving) { gotoAndPlay (460); leaving = false; }Frame 362stop();Frame 372if (leaving) { gotoAndPlay (460); leaving = false; }Frame 382stop();Frame 392if (leaving) { gotoAndPlay (460); leaving = false; }Frame 402stop();Frame 412if (leaving) { gotoAndPlay (460); leaving = false; }Frame 422stop();Frame 432if (leaving) { gotoAndPlay (460); leaving = false; }Frame 442stop();Frame 470goto(sceneName);Frame 471leaving = false;Frame 490stop();Frame 500if (leaving) { gotoAndPlay (742); leaving = false; }Frame 510stop();Frame 520if (leaving) { gotoAndPlay (742); leaving = false; }Frame 530stop();Frame 540if (leaving) { gotoAndPlay (742); leaving = false; }Frame 550stop();Frame 560if (leaving) { gotoAndPlay (742); leaving = false; }Frame 570stop();Frame 580if (leaving) { gotoAndPlay (742); leaving = false; }Frame 590stop();Frame 600if (leaving) { gotoAndPlay (742); leaving = false; }Frame 610stop();Frame 620if (leaving) { gotoAndPlay (742); leaving = false; }Frame 630stop();Frame 640if (leaving) { gotoAndPlay (742); leaving = false; }Frame 650stop();Frame 660if (leaving) { gotoAndPlay (742); leaving = false; }Frame 670stop();Frame 680if (leaving) { gotoAndPlay (742); leaving = false; }Frame 690stop();Frame 700if (leaving) { gotoAndPlay (742); leaving = false; }Frame 710stop();Frame 720if (leaving) { gotoAndPlay (742); leaving = false; }Frame 730stop();Frame 752goto(sceneName);Frame 753leaving = false;Frame 812fscommand ("quit");Frame 822if (leaving) { gotoAndPlay (753); leaving = false; }Frame 832stop();Frame 842if (leaving) { gotoAndPlay (753); leaving = false; }Frame 852stop();Frame 862if (leaving) { gotoAndPlay (753); leaving = false; }Frame 872stop();Frame 882if (leaving) { gotoAndPlay (753); leaving = false; }Frame 892stop();Frame 902if (leaving) { gotoAndPlay (753); leaving = false; }Frame 912stop();Frame 922if (leaving) { gotoAndPlay (753); leaving = false; }Frame 932stop();Frame 942if (leaving) { gotoAndPlay (753); leaving = false; }Frame 952stop();Frame 962if (leaving) { gotoAndPlay (753); leaving = false; }Frame 972stop();Frame 982if (leaving) { gotoAndPlay (753); leaving = false; }Frame 992stop();Frame 1002if (leaving) { gotoAndPlay (753); leaving = false; }Frame 1012stop();Frame 1034goto(sceneName);Frame 1043stop();Frame 1048stop();Symbol 22 Buttonon (rollOver) { cycleText.stopMe = true; industryText.stopMe = false; kettlewellText.stopMe = false; birdseyeText.stopMe = false; if (cycleText._currentframe < 10) { cycleText.gotoAndPlay(cycleText._currentframe + 1); } if (cycleText._currentframe > 25) { cycleText.gotoAndPlay(25); } } on (rollOut) { cycleText.stopMe = false; if (cycleText._currentframe < 10) { cycleText.gotoAndPlay(30 - Math.floor(cycleText._currentframe / 2)); } if ((cycleText._currentframe > 10) && (cycleText._currentframe < 26)) { cycleText.gotoAndPlay(26); } } on (release) { gotoAndPlay (11); }Symbol 28 Buttonon (rollOver) { cycleText.stopMe = false; industryText.stopMe = false; kettlewellText.stopMe = true; birdseyeText.stopMe = false; if (kettlewellText._currentframe < 10) { kettlewellText.gotoAndPlay(kettlewellText._currentframe + 1); } if (kettlewellText._currentframe > 25) { kettlewellText.gotoAndPlay(25); } } on (rollOut) { if (kettlewellText._currentframe < 10) { kettlewellText.gotoAndPlay(30 - Math.floor(kettlewellText._currentframe / 2)); } if ((kettlewellText._currentframe > 10) && (kettlewellText._currentframe < 26)) { kettlewellText.gotoAndPlay(26); } } on (release) { gotoAndPlay (471); }Symbol 34 Buttonon (rollOver) { cycleText.stopMe = false; industryText.stopMe = true; kettlewellText.stopMe = false; birdseyeText.stopMe = false; if (industryText._currentframe < 10) { industryText.gotoAndPlay(industryText._currentframe + 1); } if (industryText._currentframe > 25) { industryText.gotoAndPlay(25); } } on (rollOut) { industryText.stopMe = false; if (industryText._currentframe < 10) { industryText.gotoAndPlay(30 - Math.floor(industryText._currentframe / 2)); } if ((industryText._currentframe > 10) && (industryText._currentframe < 26)) { industryText.gotoAndPlay(26); } } on (release) { gotoAndPlay (243); }Symbol 40 Buttonon (rollOver) { cycleText.stopMe = false; industryText.stopMe = false; kettlewellText.stopMe = false; birdseyeText.stopMe = true; if (birdseyeText._currentframe < 10) { birdseyeText.gotoAndPlay(birdseyeText._currentframe + 1); } if (birdseyeText._currentframe > 25) { birdseyeText.gotoAndPlay(25); } } on (rollOut) { if (birdseyeText._currentframe < 10) { birdseyeText.gotoAndPlay(30 - Math.floor(birdseyeText._currentframe / 2)); } if ((birdseyeText._currentframe > 10) && (birdseyeText._currentframe < 26)) { birdseyeText.gotoAndPlay(26); } } on (release) { gotoAndPlay (153); }Symbol 43 MovieClip Frame 1stop();Symbol 43 MovieClip Frame 25if (stopMe) { stop(); }Symbol 46 MovieClip Frame 1stop();Symbol 46 MovieClip Frame 25if (stopMe) { stop(); }Symbol 49 MovieClip Frame 1stop();Symbol 49 MovieClip Frame 25if (stopMe) { stop(); }Symbol 52 MovieClip Frame 1stop();Symbol 52 MovieClip Frame 25if (stopMe) { stop(); }Symbol 57 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; }Symbol 58 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; }Symbol 59 Buttonon (rollOver) { buttonText = "BIRDS EYE VIEW"; } on (rollOut) { buttonText = ""; } on (release) { _parent.gotoAndPlay(30); _parent.sceneName = "birdseye"; }Symbol 62 Buttonon (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }Symbol 64 Buttonon (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }Symbol 65 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }Symbol 66 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }Symbol 67 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }Symbol 76 Buttonon (release) { play(); }Symbol 95 Buttonon (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }Symbol 96 Buttonon (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }Symbol 97 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "cycle"; }Symbol 98 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "industry"; }Symbol 99 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "kettlewell"; }Symbol 100 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "cycle"; leaving = true; play(); }Symbol 101 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }Symbol 102 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }Symbol 109 MovieClip Frame 15stop();Symbol 110 Buttonon (release) { gotoAndPlay (1044); }Symbol 114 MovieClip Frame 15stop();Symbol 115 Buttonon (release) { gotoAndPlay (1039); }Symbol 118 Buttonon (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }Symbol 119 Buttonon (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }Symbol 120 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "cycle"; }Symbol 121 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "kettlewell"; }Symbol 122 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "birdseye"; }Symbol 123 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "cycle"; leaving = true; play(); }Symbol 124 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }Symbol 125 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }Symbol 136 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (243); sceneName = "cycle"; }Symbol 139 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (471); sceneName = "cycle"; }Symbol 140 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (742); sceneName = "industry"; }Symbol 141 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (742); sceneName = "birdseye"; }Symbol 142 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }Symbol 143 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }Symbol 161 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (753); sceneName = "cycle"; }Symbol 162 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (753); sceneName = "industry"; }Symbol 163 Buttonon (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "cycle"; leaving = true; play(); }Symbol 164 Buttonon (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "industry"; leaving = true; play(); }Symbol 165 Buttonon (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "birdseye"; leaving = true; play(); }Symbol 166 Buttonon (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "kettlewell"; leaving = true; play(); }Symbol 168 Buttonon (release) { stop(); }Symbol 188 MovieClip Frame 1stop();Instance of Symbol 180 MovieClip "wing" in Symbol 188 MovieClip Frame 1onClipEvent (load) { _parent.mothMovie = this; }Symbol 188 MovieClip Frame 2stop();Instance of Symbol 187 MovieClip "wing" in Symbol 188 MovieClip Frame 2onClipEvent (load) { _parent.mothMovie = this; }Instance of Symbol 203 MovieClip "startBar" in Symbol 204 MovieClip Frame 1onClipEvent (load) { if (this._name == "startBar") { this._yscale = this._yscale * 0.5; _root.game.darkGraph.startBar._yscale = _root.game.darkGraph.startBar._yscale * 0.5; myDate = new Date(); startTime = myDate.getTime(); barTime = 25; thisBar = 1; pCentText.selectable = false; _root.game.darkGraph.pCentText.selectable = false; } } onClipEvent (enterFrame) { if ((this._name == "startBar") && (_root.game.running)) { myDate = new Date(); myTime = Math.round((myDate.getTime() - startTime) / 100); if (myTime < 600) { if ((myTime % 10) == 0) { _root.game.time = (myTime / 10) + ".0"; } else { _root.game.time = myTime / 10; } if ((barTime * thisBar) < myTime) { this.duplicateMovieClip("bar" + thisBar, 5 + thisBar); eval ("_parent.bar" + thisBar)._yscale = eval ("_parent.bar" + thisBar)._yscale * (_root.game.lPCent / 50); eval ("_parent.bar" + thisBar)._x = eval ("_parent.bar" + thisBar)._x + (10 * thisBar); _root.game.darkGraph.startBar.duplicateMovieClip("bar" + thisBar, 5 + thisBar); eval ("_root.game.darkGraph.bar" + thisBar)._yscale = eval ("_root.game.darkGraph.bar" + thisBar)._yscale * (_root.game.dPCent / 50); eval ("_root.game.darkGraph.bar" + thisBar)._x = eval ("_root.game.darkGraph.bar" + thisBar)._x + (10 * thisBar); thisBar++; } } else { _root.game.time = "60.0"; _root.game.running = false; _root.game.gotoAndStop(10); } } } onClipEvent (keyDown) { if (this._name == "startBar") { if (_root.game.running) { _root.game.running = false; myDate = new Date(); stopTime = myDate.getTime(); } else if (myTime < 600) { _root.game.running = true; myDate = new Date(); pauseTime = myDate.getTime() - stopTime; startTime = startTime + pauseTime; } } }Symbol 216 Buttonon (release) { _root.goto("birdseye"); }Instance of Symbol 203 MovieClip "startBar" in Symbol 223 MovieClip Frame 1onClipEvent (load) { if (this._name == "startBar") { this._yscale = this._yscale * 0.5; _root.game.darkGraph.startBar._yscale = _root.game.darkGraph.startBar._yscale * 0.5; myDate = new Date(); startTime = myDate.getTime(); barTime = 25; thisBar = 1; pCentText.selectable = false; _root.game.darkGraph.pCentText.selectable = false; } } onClipEvent (enterFrame) { if ((this._name == "startBar") && (_root.game.running)) { myDate = new Date(); myTime = Math.round((myDate.getTime() - startTime) / 100); if (myTime < 600) { if ((myTime % 10) == 0) { _root.game.time = (myTime / 10) + ".0"; } else { _root.game.time = myTime / 10; } if ((barTime * thisBar) < myTime) { this.duplicateMovieClip("bar" + thisBar, 5 + thisBar); eval ("_parent.bar" + thisBar)._yscale = eval ("_parent.bar" + thisBar)._yscale * (_root.game.lPCent / 50); eval ("_parent.bar" + thisBar)._x = eval ("_parent.bar" + thisBar)._x + (10 * thisBar); _root.game.darkGraph.startBar.duplicateMovieClip("bar" + thisBar, 5 + thisBar); eval ("_root.game.darkGraph.bar" + thisBar)._yscale = eval ("_root.game.darkGraph.bar" + thisBar)._yscale * (_root.game.dPCent / 50); eval ("_root.game.darkGraph.bar" + thisBar)._x = eval ("_root.game.darkGraph.bar" + thisBar)._x + (10 * thisBar); thisBar++; } } else { _root.game.time = "60.0"; _root.game.running = false; _root.game.gotoAndStop(10); } } } onClipEvent (keyDown) { if (this._name == "startBar") { if (_root.game.running) { _root.game.running = false; myDate = new Date(); stopTime = myDate.getTime(); } else if (myTime < 600) { _root.game.running = true; myDate = new Date(); pauseTime = myDate.getTime() - stopTime; startTime = startTime + pauseTime; } } }Symbol 230 MovieClip Frame 1function updatePop() { if (running) { totalPop = lPop + dPop; lPCent = Math.round((100 * lPop) / totalPop); dPCent = 100 - lPCent; simStart = true; timeText.selectable = false; } } stop(); running = true; mothDepth = 10; mothArray = new Array(); birthRate = 1.0001; deathRate = 0.95; lPop = 500; dPop = 500; totalPop = 1000; lPCent = 50; dPCent = 50;Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 39 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { this.swapDepths(120); this._alpha = 60; }Instance of Symbol 204 MovieClip in Symbol 230 MovieClip Frame 1onClipEvent (load) { this.swapDepths(100); }Instance of Symbol 209 MovieClip "darkGraph" in Symbol 230 MovieClip Frame 1onClipEvent (load) { this.swapDepths(101); }Instance of Symbol 215 MovieClip "bird" in Symbol 230 MovieClip Frame 1onClipEvent (load) { this.swapDepths(90); this._x = _parent._xmouse; this._y = _parent._ymouse; lastX = this._x; birdSound = new Array(); birdSound[0] = "bird0"; birdSound[1] = "bird1"; birdSound[2] = "bird4"; birdSound[3] = "bird4"; birdSound[4] = "bird4"; birdCall = new Sound([this]); birdCall.onSoundComplete = function () { _parent.bird.callPlaying = false; }; birdCall.attachSound(birdSound[random(5)]); callPlaying = false; crunchSound0 = new Sound([this]); crunchSound0.attachSound("crunch0"); crunchSound1 = new Sound([this]); crunchSound1.attachSound("crunch1"); crunchSound2 = new Sound([this]); crunchSound2.attachSound("crunch2"); crunchArray = new Array(crunchSound0, crunchSound1, crunchSound2); } onClipEvent (enterFrame) { if (_parent.running) { this._visible = true; Mouse.hide(); this._x = _parent._xmouse; this._y = _parent._ymouse; birdAngle = this._x - lastX; if (Math.abs(birdAngle) < 45) { this._rotation = birdAngle; } lastX = this._x; } else { this._visible = false; Mouse.show(); } } onClipEvent (mouseDown) { if (_parent.running) { hitMoth = false; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].hitTest(_parent._xmouse, _parent._ymouse, true)) { hitMoth = true; } i++; } if (hitMoth) { crunchArray[random(3)].start(); } else if (!callPlaying) { birdCall.attachSound(birdSound[random(4)]); birdCall.start(); callPlaying = true; } } }Symbol 230 MovieClip Frame 10stop();Instance of Symbol 223 MovieClip in Symbol 230 MovieClip Frame 10onClipEvent (load) { this.swapDepths(100); }Instance of Symbol 225 MovieClip in Symbol 230 MovieClip Frame 10onClipEvent (load) { this.swapDepths(80); }Instance of Symbol 229 MovieClip in Symbol 230 MovieClip Frame 10onClipEvent (load) { this.swapDepths(110); feedback = ((("Your forest started with 50% light moths and 50% dark moths. Now there are " + _parent.lPCent) + "% light moths and ") + _parent.dPCent) + "% dark moths."; if (_parent.dPCent < _parent.lPCent) { feedback = feedback + " Since you could see dark moths easier, you ate more dark moths than light moths."; } else { feedback = feedback + " Usually players end with fewer dark moths. Since they can see dark moths easier, they eat more dark moths than light moths."; } }Symbol 241 MovieClip Frame 1function updatePop() { if (running) { totalPop = lPop + dPop; lPCent = Math.round((100 * lPop) / totalPop); dPCent = 100 - lPCent; simStart = true; timeText.selectable = false; } } stop(); running = true; mothDepth = 10; mothArray = new Array(); birthRate = 1.0001; deathRate = 0.95; lPop = 500; dPop = 500; totalPop = 1000; lPCent = 50; dPCent = 50;Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 188 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { function fly() { if (flyIn) { dX = (random(Stage.width - 100) + 50) - this._x; dY = (random(Stage.height - 100) + 50) - this._y; flyIn = false; } else { switch (random(4)) { case 0 : dX = -100; dY = random(Stage.height); break; case 1 : dX = Stage.width + 100; dY = random(Stage.height); break; case 2 : dX = random(Stage.width); dY = -100; break; default : dX = random(Stage.width); dY = Stage.height + 100; } } testSpeed = flySpeed; flyTime = Math.sqrt((dX * dX) + (dY * dY)) / flySpeed; dX = dX / flyTime; dY = dY / flyTime; restTime = rest; if (dY < 0) { this._rotation = ((-Math.atan(dX / dY)) * 180) / Math.PI; } else { this._rotation = 180 - ((Math.atan(dX / dY) * 180) / Math.PI); } this.swapDepths(myDepth + 20); if (Math.ceil(flyTime / 2) > 3) { scaleSteps = Math.round(flyTime / 2) - 3; } else { scaleSteps = 0; } scaleUp = scaleSteps; } function newMoth() { if (random(100) < _parent.dPCent) { isDark = true; } else { isDark = false; } dCount = 0; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].isDark) { dCount++; } i++; } if (((dCount < 4) && (dPCent > 5)) && (!simStart)) { isDark = true; } if (((dCount >= (_parent.mothArray.length - 4)) && (lPCent > 5)) && (!simStart)) { isDark = false; } if (isDark) { gotoAndStop (1); } else { gotoAndStop (2); } fly(); } isDark = false; flyIn = true; flySpeed = 10; flyTime = 0; scaleUp = 0; startXscale = this._xscale; startYscale = this._yscale; rest = 200 + random(300); dX = 0; dY = 0; this.swapDepths(_parent.mothDepth); myDepth = _parent.mothDepth; _parent.mothArray.push(this); _parent.mothDepth++; newMoth(); } onClipEvent (enterFrame) { if (_parent.running) { if (random(100) < _parent.dPCent) { if (_parent.dPCent < 95) { _parent.dPop = _parent.dPop * _parent.birthRate; } } else if (_parent.lPCent < 95) { _parent.lPop = _parent.lPop * _parent.birthRate; } _parent.updatePop(); } if (flyTime > 1) { wing.play(); if (scaleUp > 0) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; } if (flyTime < scaleSteps) { this._xscale = this._xscale - 0.5; this._yscale = this._yscale - 0.5; } scaleUp--; this._x = this._x + ((dX + random(11)) - 5); this._y = this._y + dY; flyTime--; } else { wing.gotoAndStop(1); if (_parent.simStart) { _parent.simStart = false; } if (restTime == rest) { if ((((this._x > (Stage.width + 10)) || (this._x < -10)) || (this._y > (Stage.height + 10))) || (this._y < -10)) { newMoth(); flyIn = true; } this._xscale = startXscale; this._yscale = startYscale; this.swapDepths(myDepth); i = 0; while (i < _parent.mothArray.length) { if (this.hitTest(_parent.mothArray[i])) { if ((_parent.mothArray[i].getDepth() > this.getDepth()) && (_parent.mothArray[i].flyTime < 1)) { this.swapDepths(_parent.mothArray[i]); this.myDepth = this.getDepth(); _parent.mothArray[i].myDepth = _parent.mothArray[i].getDepth(); } } i++; } } restTime--; } if (restTime < 1) { fly(); } if ((this._x > (Stage.width + 500)) || (this._x < -500)) { this._x = -50; } if ((this._y > (Stage.height + 500)) || (this._y < -500)) { this._y = -50; } } onClipEvent (mouseDown) { if (_parent.running) { if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) { if (isDark) { _parent.dPop = _parent.dPop * _parent.deathRate; } else { _parent.lPop = _parent.lPop * _parent.deathRate; } _parent.updatePop(); switch (random(4)) { case 0 : this._x = -50; this._y = random(Stage.height); break; case 1 : this._x = Stage.width + 50; this._y = random(Stage.height); break; case 2 : this._x = random(Stage.width); this._y = -50; break; default : this._x = random(Stage.width); this._y = Stage.height + 50; } newMoth(); } } }Instance of Symbol 39 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { this.swapDepths(120); this._alpha = 60; }Instance of Symbol 223 MovieClip in Symbol 241 MovieClip Frame 1onClipEvent (load) { this.swapDepths(100); }Instance of Symbol 235 MovieClip "darkGraph" in Symbol 241 MovieClip Frame 1onClipEvent (load) { this.swapDepths(101); }Instance of Symbol 215 MovieClip "bird" in Symbol 241 MovieClip Frame 1onClipEvent (load) { this.swapDepths(90); this._x = _parent._xmouse; this._y = _parent._ymouse; lastX = this._x; birdSound = new Array(); birdSound[0] = "bird0"; birdSound[1] = "bird1"; birdSound[2] = "bird4"; birdSound[3] = "bird4"; birdSound[4] = "bird4"; birdCall = new Sound([this]); birdCall.onSoundComplete = function () { _parent.bird.callPlaying = false; }; birdCall.attachSound(birdSound[random(5)]); callPlaying = false; crunchSound0 = new Sound([this]); crunchSound0.attachSound("crunch0"); crunchSound1 = new Sound([this]); crunchSound1.attachSound("crunch1"); crunchSound2 = new Sound([this]); crunchSound2.attachSound("crunch2"); crunchArray = new Array(crunchSound0, crunchSound1, crunchSound2); } onClipEvent (enterFrame) { if (_parent.running) { this._visible = true; Mouse.hide(); this._x = _parent._xmouse; this._y = _parent._ymouse; birdAngle = this._x - lastX; if (Math.abs(birdAngle) < 45) { this._rotation = birdAngle; } lastX = this._x; } else { this._visible = false; Mouse.show(); } } onClipEvent (mouseDown) { if (_parent.running) { hitMoth = false; i = 0; while (i < _parent.mothArray.length) { if (_parent.mothArray[i].hitTest(_parent._xmouse, _parent._ymouse, true)) { hitMoth = true; } i++; } if (hitMoth) { crunchArray[random(3)].start(); } else if (!callPlaying) { birdCall.attachSound(birdSound[random(4)]); birdCall.start(); callPlaying = true; } } }Symbol 241 MovieClip Frame 10stop();Instance of Symbol 209 MovieClip "darkGraph" in Symbol 241 MovieClip Frame 10onClipEvent (load) { this.swapDepths(101); }Instance of Symbol 225 MovieClip in Symbol 241 MovieClip Frame 10onClipEvent (load) { this.swapDepths(80); }Instance of Symbol 240 MovieClip in Symbol 241 MovieClip Frame 10onClipEvent (load) { this.swapDepths(110); feedback = ((("Your forest started with 50% light moths and 50% dark moths. Now there are " + _parent.lPCent) + "% light moths and ") + _parent.dPCent) + "% dark moths."; if (_parent.dPCent > _parent.lPCent) { feedback = feedback + " Since you could see light moths easier, you ate more light moths than dark moths."; } else { feedback = feedback + " Usually players end with fewer light moths. Since they can see light moths easier, they eat more light moths than dark moths."; } }
Library Items
Symbol 1 Sound [crunch0] | ||
Symbol 2 Sound [CRUNCH2] | ||
Symbol 3 Sound [Crunch1] | ||
Symbol 4 Sound [bird0] | ||
Symbol 5 Sound [bird4] | ||
Symbol 6 Sound [bird1] | ||
Symbol 7 Font | Used by:8 42 45 48 51 54 68 77 78 81 85 89 92 93 103 104 105 108 113 116 126 127 128 129 130 131 132 133 134 135 137 144 145 148 149 150 151 152 153 154 155 156 157 158 159 160 167 169 170 228 239 | |
Symbol 8 Text | Uses:7 | Used by:Timeline |
Symbol 9 Graphic | Used by:Timeline | |
Symbol 10 Font | Used by:11 41 44 47 50 53 55 | |
Symbol 11 Text | Uses:10 | Used by:Timeline |
Symbol 12 Graphic | Used by:Timeline | |
Symbol 13 Graphic | Used by:Timeline | |
Symbol 14 Graphic | Used by:Timeline | |
Symbol 15 Graphic | Used by:Timeline | |
Symbol 16 Graphic | Used by:Timeline | |
Symbol 17 Graphic | Used by:21 22 97 100 120 123 136 139 161 163 Timeline | |
Symbol 18 ShapeTweening | Used by:21 22 97 100 120 123 136 139 161 163 Timeline | |
Symbol 19 ShapeTweening | Used by:21 | |
Symbol 20 Graphic | Used by:21 | |
Symbol 21 MovieClip | Uses:17 18 19 20 | Used by:22 97 100 120 123 136 139 161 163 |
Symbol 22 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 23 Graphic | Used by:27 28 58 66 99 102 121 124 166 Timeline | |
Symbol 24 ShapeTweening | Used by:27 28 58 66 99 102 121 124 166 Timeline | |
Symbol 25 ShapeTweening | Used by:27 | |
Symbol 26 Graphic | Used by:27 | |
Symbol 27 MovieClip | Uses:23 24 25 26 | Used by:28 58 66 99 102 121 124 166 |
Symbol 28 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 29 Graphic | Used by:33 34 57 65 98 101 140 142 162 164 Timeline | |
Symbol 30 ShapeTweening | Used by:33 34 57 65 98 101 140 142 162 164 Timeline | |
Symbol 31 ShapeTweening | Used by:33 | |
Symbol 32 Graphic | Used by:33 | |
Symbol 33 MovieClip | Uses:29 30 31 32 | Used by:34 57 65 98 101 140 142 162 164 |
Symbol 34 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 35 Graphic | Used by:39 40 59 67 122 125 141 143 165 216 Timeline | |
Symbol 36 ShapeTweening | Used by:39 40 59 67 122 125 141 143 165 216 Timeline | |
Symbol 37 ShapeTweening | Used by:39 | |
Symbol 38 Graphic | Used by:39 | |
Symbol 39 MovieClip | Uses:35 36 37 38 | Used by:40 59 67 122 125 141 143 165 216 230 241 |
Symbol 40 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 41 Text | Uses:10 | Used by:43 |
Symbol 42 Text | Uses:7 | Used by:43 |
Symbol 43 MovieClip | Uses:41 42 | Used by:Timeline |
Symbol 44 Text | Uses:10 | Used by:46 117 |
Symbol 45 Text | Uses:7 | Used by:46 |
Symbol 46 MovieClip | Uses:44 45 | Used by:Timeline |
Symbol 47 Text | Uses:10 | Used by:49 138 |
Symbol 48 Text | Uses:7 | Used by:49 |
Symbol 49 MovieClip | Uses:47 48 | Used by:Timeline |
Symbol 50 Text | Uses:10 | Used by:52 94 |
Symbol 51 Text | Uses:7 | Used by:52 |
Symbol 52 MovieClip | Uses:50 51 | Used by:Timeline |
Symbol 53 Text | Uses:10 | Used by:Timeline |
Symbol 54 EditableText | Uses:7 | Used by:Timeline |
Symbol 55 Text | Uses:10 | Used by:56 |
Symbol 56 MovieClip | Uses:55 | Used by:Timeline |
Symbol 57 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 58 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 59 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 60 Graphic | Used by:Timeline | |
Symbol 61 Graphic | Used by:62 95 118 | |
Symbol 62 Button | Uses:61 | Used by:Timeline |
Symbol 63 Graphic | Used by:64 96 119 | |
Symbol 64 Button | Uses:63 | Used by:Timeline |
Symbol 65 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 66 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 67 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 68 Text | Uses:7 | Used by:Timeline |
Symbol 69 Bitmap | Used by:70 | |
Symbol 70 Graphic | Uses:69 | Used by:Timeline |
Symbol 71 Graphic | Used by:76 | |
Symbol 72 ShapeTweening | Used by:75 76 168 | |
Symbol 73 ShapeTweening | Used by:75 | |
Symbol 74 Graphic | Used by:75 | |
Symbol 75 MovieClip | Uses:72 73 74 | Used by:76 168 |
Symbol 76 Button | Uses:71 72 75 | Used by:Timeline |
Symbol 77 Text | Uses:7 | Used by:Timeline |
Symbol 78 Text | Uses:7 | Used by:Timeline |
Symbol 79 Bitmap | Used by:80 | |
Symbol 80 Graphic | Uses:79 | Used by:Timeline |
Symbol 81 Text | Uses:7 | Used by:Timeline |
Symbol 82 Bitmap | Used by:84 | |
Symbol 83 Bitmap | Used by:84 | |
Symbol 84 Graphic | Uses:82 83 | Used by:Timeline |
Symbol 85 Text | Uses:7 | Used by:Timeline |
Symbol 86 Bitmap | Used by:87 | |
Symbol 87 Graphic | Uses:86 | Used by:Timeline |
Symbol 88 Font | Used by:89 134 135 157 159 | |
Symbol 89 Text | Uses:7 88 | Used by:Timeline |
Symbol 90 Bitmap | Used by:91 | |
Symbol 91 Graphic | Uses:90 | Used by:Timeline |
Symbol 92 Text | Uses:7 | Used by:Timeline |
Symbol 93 EditableText | Uses:7 | Used by:Timeline |
Symbol 94 MovieClip | Uses:50 | Used by:Timeline |
Symbol 95 Button | Uses:61 | Used by:Timeline |
Symbol 96 Button | Uses:63 | Used by:Timeline |
Symbol 97 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 98 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 99 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 100 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 101 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 102 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 103 Text | Uses:7 | Used by:Timeline |
Symbol 104 Text | Uses:7 | Used by:Timeline |
Symbol 105 Text | Uses:7 | Used by:Timeline |
Symbol 106 Graphic | Used by:107 110 | |
Symbol 107 MovieClip | Uses:106 | Used by:110 |
Symbol 108 Text | Uses:7 | Used by:109 110 |
Symbol 109 MovieClip | Uses:108 | Used by:110 |
Symbol 110 Button | Uses:107 109 108 106 | Used by:Timeline |
Symbol 111 Graphic | Used by:112 115 | |
Symbol 112 MovieClip | Uses:111 | Used by:115 |
Symbol 113 Text | Uses:7 | Used by:114 115 |
Symbol 114 MovieClip | Uses:113 | Used by:115 |
Symbol 115 Button | Uses:112 114 113 111 | Used by:Timeline |
Symbol 116 EditableText | Uses:7 | Used by:Timeline |
Symbol 117 MovieClip | Uses:44 | Used by:Timeline |
Symbol 118 Button | Uses:61 | Used by:Timeline |
Symbol 119 Button | Uses:63 | Used by:Timeline |
Symbol 120 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 121 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 122 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 123 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 124 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 125 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 126 Text | Uses:7 | Used by:Timeline |
Symbol 127 Text | Uses:7 | Used by:Timeline |
Symbol 128 Text | Uses:7 | Used by:Timeline |
Symbol 129 Text | Uses:7 | Used by:Timeline |
Symbol 130 Text | Uses:7 | Used by:Timeline |
Symbol 131 Text | Uses:7 | Used by:Timeline |
Symbol 132 Text | Uses:7 | Used by:Timeline |
Symbol 133 Text | Uses:7 | Used by:Timeline |
Symbol 134 Text | Uses:7 88 | Used by:Timeline |
Symbol 135 Text | Uses:7 88 | Used by:Timeline |
Symbol 136 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 137 EditableText | Uses:7 | Used by:Timeline |
Symbol 138 MovieClip | Uses:47 | Used by:Timeline |
Symbol 139 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 140 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 141 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 142 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 143 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 144 Text | Uses:7 | Used by:Timeline |
Symbol 145 Text | Uses:7 | Used by:Timeline |
Symbol 146 Bitmap | Used by:147 | |
Symbol 147 Graphic | Uses:146 | Used by:Timeline |
Symbol 148 Text | Uses:7 | Used by:Timeline |
Symbol 149 Text | Uses:7 | Used by:Timeline |
Symbol 150 Text | Uses:7 | Used by:Timeline |
Symbol 151 Text | Uses:7 | Used by:Timeline |
Symbol 152 Text | Uses:7 | Used by:Timeline |
Symbol 153 Text | Uses:7 | Used by:Timeline |
Symbol 154 Text | Uses:7 | Used by:Timeline |
Symbol 155 Text | Uses:7 | Used by:Timeline |
Symbol 156 Text | Uses:7 | Used by:Timeline |
Symbol 157 Text | Uses:7 88 | Used by:Timeline |
Symbol 158 Text | Uses:7 | Used by:Timeline |
Symbol 159 Text | Uses:7 88 | Used by:Timeline |
Symbol 160 EditableText | Uses:7 | Used by:Timeline |
Symbol 161 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 162 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 163 Button | Uses:17 18 21 | Used by:Timeline |
Symbol 164 Button | Uses:29 30 33 | Used by:Timeline |
Symbol 165 Button | Uses:35 36 39 | Used by:Timeline |
Symbol 166 Button | Uses:23 24 27 | Used by:Timeline |
Symbol 167 Text | Uses:7 | Used by:Timeline |
Symbol 168 Button | Uses:72 75 | Used by:Timeline |
Symbol 169 Text | Uses:7 | Used by:Timeline |
Symbol 170 Text | Uses:7 | Used by:Timeline |
Symbol 171 Graphic | Used by:Timeline | |
Symbol 172 Bitmap | Used by:173 | |
Symbol 173 Graphic | Uses:172 | Used by:230 |
Symbol 174 Bitmap | Used by:175 | |
Symbol 175 Graphic | Uses:174 | Used by:180 |
Symbol 176 Bitmap | Used by:177 | |
Symbol 177 Graphic | Uses:176 | Used by:180 |
Symbol 178 Bitmap | Used by:179 | |
Symbol 179 Graphic | Uses:178 | Used by:180 |
Symbol 180 MovieClip | Uses:175 177 179 | Used by:188 |
Symbol 181 Bitmap | Used by:182 | |
Symbol 182 Graphic | Uses:181 | Used by:187 |
Symbol 183 Bitmap | Used by:184 | |
Symbol 184 Graphic | Uses:183 | Used by:187 |
Symbol 185 Bitmap | Used by:186 | |
Symbol 186 Graphic | Uses:185 | Used by:187 |
Symbol 187 MovieClip | Uses:182 184 186 | Used by:188 |
Symbol 188 MovieClip | Uses:180 187 | Used by:230 241 |
Symbol 189 Font | Used by:190 194 195 196 197 198 199 200 201 206 208 217 218 219 220 221 222 227 233 234 238 | |
Symbol 190 EditableText | Uses:189 | Used by:230 |
Symbol 191 Graphic | Used by:204 223 | |
Symbol 192 Graphic | Used by:204 223 | |
Symbol 193 Graphic | Used by:204 223 | |
Symbol 194 Text | Uses:189 | Used by:204 209 |
Symbol 195 Text | Uses:189 | Used by:204 209 |
Symbol 196 Text | Uses:189 | Used by:204 209 |
Symbol 197 Text | Uses:189 | Used by:204 209 |
Symbol 198 Text | Uses:189 | Used by:204 209 |
Symbol 199 Text | Uses:189 | Used by:204 223 |
Symbol 200 Text | Uses:189 | Used by:204 209 223 235 |
Symbol 201 EditableText | Uses:189 | Used by:204 |
Symbol 202 Graphic | Used by:203 | |
Symbol 203 MovieClip | Uses:202 | Used by:204 209 223 235 |
Symbol 204 MovieClip | Uses:191 192 193 194 195 196 197 198 199 200 201 203 | Used by:230 |
Symbol 205 Graphic | Used by:209 235 | |
Symbol 206 Text | Uses:189 | Used by:209 235 |
Symbol 207 Graphic | Used by:209 235 | |
Symbol 208 EditableText | Uses:189 | Used by:209 |
Symbol 209 MovieClip | Uses:205 206 200 207 194 195 196 197 198 208 203 | Used by:230 241 |
Symbol 210 ShapeTweening | Used by:215 | |
Symbol 211 ShapeTweening | Used by:215 | |
Symbol 212 ShapeTweening | Used by:215 | |
Symbol 213 ShapeTweening | Used by:215 | |
Symbol 214 Graphic | Used by:215 | |
Symbol 215 MovieClip | Uses:210 211 212 213 214 | Used by:230 241 |
Symbol 216 Button | Uses:39 35 36 | Used by:230 236 |
Symbol 217 Text | Uses:189 | Used by:223 235 |
Symbol 218 Text | Uses:189 | Used by:223 235 |
Symbol 219 Text | Uses:189 | Used by:223 235 |
Symbol 220 Text | Uses:189 | Used by:223 235 |
Symbol 221 Text | Uses:189 | Used by:223 235 |
Symbol 222 EditableText | Uses:189 | Used by:223 |
Symbol 223 MovieClip | Uses:191 192 193 217 218 219 220 221 199 200 222 203 | Used by:230 241 |
Symbol 224 Graphic | Used by:225 | |
Symbol 225 MovieClip | Uses:224 | Used by:230 241 |
Symbol 226 Graphic | Used by:229 | |
Symbol 227 Text | Uses:189 | Used by:229 |
Symbol 228 EditableText | Uses:7 | Used by:229 |
Symbol 229 MovieClip | Uses:226 227 228 | Used by:230 |
Symbol 230 MovieClip | Uses:173 39 188 190 204 209 215 216 223 225 229 | Used by:Timeline |
Symbol 231 Bitmap | Used by:232 | |
Symbol 232 Graphic | Uses:231 | Used by:241 |
Symbol 233 EditableText | Uses:189 | Used by:241 |
Symbol 234 EditableText | Uses:189 | Used by:235 |
Symbol 235 MovieClip | Uses:205 206 200 207 217 218 219 220 221 234 203 | Used by:241 |
Symbol 236 MovieClip | Uses:216 | Used by:241 |
Symbol 237 Graphic | Used by:240 | |
Symbol 238 Text | Uses:189 | Used by:240 |
Symbol 239 EditableText | Uses:7 | Used by:240 |
Symbol 240 MovieClip | Uses:237 238 239 | Used by:241 |
Symbol 241 MovieClip | Uses:232 39 188 233 223 235 215 236 209 225 240 | Used by:Timeline |
Instance Names
"cycleText" | Frame 1 | Symbol 43 MovieClip |
"cycleText" | Frame 1 | Symbol 43 MovieClip |
"industryText" | Frame 1 | Symbol 46 MovieClip |
"kettlewellText" | Frame 1 | Symbol 49 MovieClip |
"birdseyeText" | Frame 1 | Symbol 52 MovieClip |
"birdseyeText" | Frame 11 | Symbol 56 MovieClip |
"birdseyeText" | Frame 20 | Symbol 56 MovieClip |
"birdseyeText" | Frame 153 | Symbol 94 MovieClip |
"birdseyeText" | Frame 162 | Symbol 94 MovieClip |
"birdseyeText" | Frame 243 | Symbol 117 MovieClip |
"birdseyeText" | Frame 253 | Symbol 117 MovieClip |
"birdseyeText" | Frame 460 | Symbol 117 MovieClip |
"birdseyeText" | Frame 471 | Symbol 138 MovieClip |
"birdseyeText" | Frame 481 | Symbol 138 MovieClip |
"game" | Frame 1039 | Symbol 230 MovieClip |
"game" | Frame 1044 | Symbol 241 MovieClip |
"wing" | Symbol 188 MovieClip Frame 1 | Symbol 180 MovieClip |
"wing" | Symbol 188 MovieClip Frame 2 | Symbol 187 MovieClip |
"pCentText" | Symbol 204 MovieClip Frame 1 | Symbol 201 EditableText |
"startBar" | Symbol 204 MovieClip Frame 1 | Symbol 203 MovieClip |
"pCentText" | Symbol 209 MovieClip Frame 1 | Symbol 208 EditableText |
"startBar" | Symbol 209 MovieClip Frame 1 | Symbol 203 MovieClip |
"pCentText" | Symbol 223 MovieClip Frame 1 | Symbol 222 EditableText |
"startBar" | Symbol 223 MovieClip Frame 1 | Symbol 203 MovieClip |
"timeText" | Symbol 230 MovieClip Frame 1 | Symbol 190 EditableText |
"darkGraph" | Symbol 230 MovieClip Frame 1 | Symbol 209 MovieClip |
"bird" | Symbol 230 MovieClip Frame 1 | Symbol 215 MovieClip |
"pCentText" | Symbol 235 MovieClip Frame 1 | Symbol 234 EditableText |
"startBar" | Symbol 235 MovieClip Frame 1 | Symbol 203 MovieClip |
"timeText" | Symbol 241 MovieClip Frame 1 | Symbol 233 EditableText |
"darkGraph" | Symbol 241 MovieClip Frame 1 | Symbol 235 MovieClip |
"bird" | Symbol 241 MovieClip Frame 1 | Symbol 215 MovieClip |
"darkGraph" | Symbol 241 MovieClip Frame 10 | Symbol 209 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "crunch0" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "CRUNCH2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "Crunch1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "bird0" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "bird4" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "bird1" |
Labels
"outFrame" | Frame 142 |
"outFrame4" | Frame 232 |
"outFrame3" | Frame 460 |
"outFrame2" | Frame 742 |
"outFrameEnd" | Frame 1024 |
Dynamic Text Variables
buttonText | Symbol 54 EditableText | "" |
buttonText | Symbol 93 EditableText | "" |
buttonText | Symbol 116 EditableText | "" |
buttonText | Symbol 137 EditableText | "" |
buttonText | Symbol 160 EditableText | "" |
time | Symbol 190 EditableText | "60:00" |
_parent.lPCent | Symbol 201 EditableText | "00" |
_parent.dPCent | Symbol 208 EditableText | "00" |
_parent.lPCent | Symbol 222 EditableText | "00" |
feedback | Symbol 228 EditableText | "Your forest started with 50% light moths and 50% dark moths. Now there are XX% light moths and xx%dark moths. Since you could see light moths easier, you ate more light moths than dark moths." |
time | Symbol 233 EditableText | "60:00" |
_parent.dPCent | Symbol 234 EditableText | "00" |
feedback | Symbol 239 EditableText | "Your forest started with 50% light moths and 50% dark moths. Now there are XX% light moths and xx%dark moths. Since you could see light moths easier, you ate more light moths than dark moths." |
|