STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/21908090?noj=FRM21908090-22DC" width="1" height="1"></div>

pepperMoths.swf

This is the info page for
Flash #136114

(Click the ID number above for more basic data on this flash file.)


Text
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 1
function 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 10
stop();
Frame 11
leaving = false;
Frame 30
stop();
Frame 40
if (leaving) { gotoAndPlay (142); leaving = false; }
Frame 50
stop();
Frame 60
if (leaving) { gotoAndPlay (142); leaving = false; }
Frame 70
stop();
Frame 80
if (leaving) { gotoAndPlay (142); leaving = false; }
Frame 90
stop();
Frame 100
if (leaving) { gotoAndPlay (142); leaving = false; }
Frame 110
stop();
Frame 120
if (leaving) { gotoAndPlay (142); leaving = false; }
Frame 130
stop();
Frame 152
goto(sceneName);
Frame 153
leaving = false;
Frame 172
stop();
Frame 182
if (leaving) { gotoAndPlay (232); leaving = false; }
Frame 192
stop();
Frame 202
if (leaving) { gotoAndPlay (232); leaving = false; }
Frame 212
stop();
Frame 222
if (leaving) { gotoAndPlay (232); leaving = false; }
Frame 242
goto(sceneName);
Frame 243
leaving = false;
Frame 262
stop();
Frame 272
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 282
stop();
Frame 292
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 302
stop();
Frame 312
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 322
stop();
Frame 332
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 342
stop();
Frame 352
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 362
stop();
Frame 372
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 382
stop();
Frame 392
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 402
stop();
Frame 412
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 422
stop();
Frame 432
if (leaving) { gotoAndPlay (460); leaving = false; }
Frame 442
stop();
Frame 470
goto(sceneName);
Frame 471
leaving = false;
Frame 490
stop();
Frame 500
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 510
stop();
Frame 520
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 530
stop();
Frame 540
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 550
stop();
Frame 560
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 570
stop();
Frame 580
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 590
stop();
Frame 600
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 610
stop();
Frame 620
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 630
stop();
Frame 640
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 650
stop();
Frame 660
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 670
stop();
Frame 680
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 690
stop();
Frame 700
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 710
stop();
Frame 720
if (leaving) { gotoAndPlay (742); leaving = false; }
Frame 730
stop();
Frame 752
goto(sceneName);
Frame 753
leaving = false;
Frame 812
fscommand ("quit");
Frame 822
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 832
stop();
Frame 842
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 852
stop();
Frame 862
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 872
stop();
Frame 882
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 892
stop();
Frame 902
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 912
stop();
Frame 922
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 932
stop();
Frame 942
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 952
stop();
Frame 962
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 972
stop();
Frame 982
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 992
stop();
Frame 1002
if (leaving) { gotoAndPlay (753); leaving = false; }
Frame 1012
stop();
Frame 1034
goto(sceneName);
Frame 1043
stop();
Frame 1048
stop();
Symbol 22 Button
on (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 Button
on (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 Button
on (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 Button
on (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 1
stop();
Symbol 43 MovieClip Frame 25
if (stopMe) { stop(); }
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 25
if (stopMe) { stop(); }
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 25
if (stopMe) { stop(); }
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 25
if (stopMe) { stop(); }
Symbol 57 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; }
Symbol 58 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; }
Symbol 59 Button
on (rollOver) { buttonText = "BIRDS EYE VIEW"; } on (rollOut) { buttonText = ""; } on (release) { _parent.gotoAndPlay(30); _parent.sceneName = "birdseye"; }
Symbol 62 Button
on (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }
Symbol 64 Button
on (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }
Symbol 65 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }
Symbol 66 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }
Symbol 67 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }
Symbol 76 Button
on (release) { play(); }
Symbol 95 Button
on (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }
Symbol 96 Button
on (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }
Symbol 97 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "cycle"; }
Symbol 98 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "industry"; }
Symbol 99 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (232); sceneName = "kettlewell"; }
Symbol 100 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "cycle"; leaving = true; play(); }
Symbol 101 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }
Symbol 102 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }
Symbol 109 MovieClip Frame 15
stop();
Symbol 110 Button
on (release) { gotoAndPlay (1044); }
Symbol 114 MovieClip Frame 15
stop();
Symbol 115 Button
on (release) { gotoAndPlay (1039); }
Symbol 118 Button
on (rollOver) { buttonText = "QUIT"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "quit"; leaving = true; play(); }
Symbol 119 Button
on (rollOver) { buttonText = "HOME"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "home"; leaving = true; play(); }
Symbol 120 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "cycle"; }
Symbol 121 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "kettlewell"; }
Symbol 122 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (460); sceneName = "birdseye"; }
Symbol 123 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "cycle"; leaving = true; play(); }
Symbol 124 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "kettlewell"; leaving = true; play(); }
Symbol 125 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }
Symbol 136 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (243); sceneName = "cycle"; }
Symbol 139 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (471); sceneName = "cycle"; }
Symbol 140 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (742); sceneName = "industry"; }
Symbol 141 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (742); sceneName = "birdseye"; }
Symbol 142 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "industry"; leaving = true; play(); }
Symbol 143 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { sceneName = "birdseye"; leaving = true; play(); }
Symbol 161 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (753); sceneName = "cycle"; }
Symbol 162 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (753); sceneName = "industry"; }
Symbol 163 Button
on (rollOver) { buttonText = "LIFE CYCLE"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "cycle"; leaving = true; play(); }
Symbol 164 Button
on (rollOver) { buttonText = "IMPACT OF POLLUTION"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "industry"; leaving = true; play(); }
Symbol 165 Button
on (rollOver) { buttonText = "BIRDS EYE\n VIEW"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "birdseye"; leaving = true; play(); }
Symbol 166 Button
on (rollOver) { buttonText = "KETTLEWELL'S EXPERIMENTS"; } on (rollOut) { buttonText = ""; } on (release) { gotoAndPlay (1024); sceneName = "kettlewell"; leaving = true; play(); }
Symbol 168 Button
on (release) { stop(); }
Symbol 188 MovieClip Frame 1
stop();
Instance of Symbol 180 MovieClip "wing" in Symbol 188 MovieClip Frame 1
onClipEvent (load) { _parent.mothMovie = this; }
Symbol 188 MovieClip Frame 2
stop();
Instance of Symbol 187 MovieClip "wing" in Symbol 188 MovieClip Frame 2
onClipEvent (load) { _parent.mothMovie = this; }
Instance of Symbol 203 MovieClip "startBar" in Symbol 204 MovieClip Frame 1
onClipEvent (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 Button
on (release) { _root.goto("birdseye"); }
Instance of Symbol 203 MovieClip "startBar" in Symbol 223 MovieClip Frame 1
onClipEvent (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 1
function 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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (load) { this.swapDepths(120); this._alpha = 60; }
Instance of Symbol 204 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (load) { this.swapDepths(100); }
Instance of Symbol 209 MovieClip "darkGraph" in Symbol 230 MovieClip Frame 1
onClipEvent (load) { this.swapDepths(101); }
Instance of Symbol 215 MovieClip "bird" in Symbol 230 MovieClip Frame 1
onClipEvent (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 10
stop();
Instance of Symbol 223 MovieClip in Symbol 230 MovieClip Frame 10
onClipEvent (load) { this.swapDepths(100); }
Instance of Symbol 225 MovieClip in Symbol 230 MovieClip Frame 10
onClipEvent (load) { this.swapDepths(80); }
Instance of Symbol 229 MovieClip in Symbol 230 MovieClip Frame 10
onClipEvent (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 1
function 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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (load) { this.swapDepths(120); this._alpha = 60; }
Instance of Symbol 223 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) { this.swapDepths(100); }
Instance of Symbol 235 MovieClip "darkGraph" in Symbol 241 MovieClip Frame 1
onClipEvent (load) { this.swapDepths(101); }
Instance of Symbol 215 MovieClip "bird" in Symbol 241 MovieClip Frame 1
onClipEvent (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 10
stop();
Instance of Symbol 209 MovieClip "darkGraph" in Symbol 241 MovieClip Frame 10
onClipEvent (load) { this.swapDepths(101); }
Instance of Symbol 225 MovieClip in Symbol 241 MovieClip Frame 10
onClipEvent (load) { this.swapDepths(80); }
Instance of Symbol 240 MovieClip in Symbol 241 MovieClip Frame 10
onClipEvent (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 FontUsed 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 TextUses:7Used by:Timeline
Symbol 9 GraphicUsed by:Timeline
Symbol 10 FontUsed by:11 41 44 47 50 53 55
Symbol 11 TextUses:10Used by:Timeline
Symbol 12 GraphicUsed by:Timeline
Symbol 13 GraphicUsed by:Timeline
Symbol 14 GraphicUsed by:Timeline
Symbol 15 GraphicUsed by:Timeline
Symbol 16 GraphicUsed by:Timeline
Symbol 17 GraphicUsed by:21 22 97 100 120 123 136 139 161 163  Timeline
Symbol 18 ShapeTweeningUsed by:21 22 97 100 120 123 136 139 161 163  Timeline
Symbol 19 ShapeTweeningUsed by:21
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:17 18 19 20Used by:22 97 100 120 123 136 139 161 163
Symbol 22 ButtonUses:17 18 21Used by:Timeline
Symbol 23 GraphicUsed by:27 28 58 66 99 102 121 124 166  Timeline
Symbol 24 ShapeTweeningUsed by:27 28 58 66 99 102 121 124 166  Timeline
Symbol 25 ShapeTweeningUsed by:27
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:23 24 25 26Used by:28 58 66 99 102 121 124 166
Symbol 28 ButtonUses:23 24 27Used by:Timeline
Symbol 29 GraphicUsed by:33 34 57 65 98 101 140 142 162 164  Timeline
Symbol 30 ShapeTweeningUsed by:33 34 57 65 98 101 140 142 162 164  Timeline
Symbol 31 ShapeTweeningUsed by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:29 30 31 32Used by:34 57 65 98 101 140 142 162 164
Symbol 34 ButtonUses:29 30 33Used by:Timeline
Symbol 35 GraphicUsed by:39 40 59 67 122 125 141 143 165 216  Timeline
Symbol 36 ShapeTweeningUsed by:39 40 59 67 122 125 141 143 165 216  Timeline
Symbol 37 ShapeTweeningUsed by:39
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:35 36 37 38Used by:40 59 67 122 125 141 143 165 216 230 241
Symbol 40 ButtonUses:35 36 39Used by:Timeline
Symbol 41 TextUses:10Used by:43
Symbol 42 TextUses:7Used by:43
Symbol 43 MovieClipUses:41 42Used by:Timeline
Symbol 44 TextUses:10Used by:46 117
Symbol 45 TextUses:7Used by:46
Symbol 46 MovieClipUses:44 45Used by:Timeline
Symbol 47 TextUses:10Used by:49 138
Symbol 48 TextUses:7Used by:49
Symbol 49 MovieClipUses:47 48Used by:Timeline
Symbol 50 TextUses:10Used by:52 94
Symbol 51 TextUses:7Used by:52
Symbol 52 MovieClipUses:50 51Used by:Timeline
Symbol 53 TextUses:10Used by:Timeline
Symbol 54 EditableTextUses:7Used by:Timeline
Symbol 55 TextUses:10Used by:56
Symbol 56 MovieClipUses:55Used by:Timeline
Symbol 57 ButtonUses:29 30 33Used by:Timeline
Symbol 58 ButtonUses:23 24 27Used by:Timeline
Symbol 59 ButtonUses:35 36 39Used by:Timeline
Symbol 60 GraphicUsed by:Timeline
Symbol 61 GraphicUsed by:62 95 118
Symbol 62 ButtonUses:61Used by:Timeline
Symbol 63 GraphicUsed by:64 96 119
Symbol 64 ButtonUses:63Used by:Timeline
Symbol 65 ButtonUses:29 30 33Used by:Timeline
Symbol 66 ButtonUses:23 24 27Used by:Timeline
Symbol 67 ButtonUses:35 36 39Used by:Timeline
Symbol 68 TextUses:7Used by:Timeline
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:Timeline
Symbol 71 GraphicUsed by:76
Symbol 72 ShapeTweeningUsed by:75 76 168
Symbol 73 ShapeTweeningUsed by:75
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:72 73 74Used by:76 168
Symbol 76 ButtonUses:71 72 75Used by:Timeline
Symbol 77 TextUses:7Used by:Timeline
Symbol 78 TextUses:7Used by:Timeline
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:Timeline
Symbol 81 TextUses:7Used by:Timeline
Symbol 82 BitmapUsed by:84
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:82 83Used by:Timeline
Symbol 85 TextUses:7Used by:Timeline
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:Timeline
Symbol 88 FontUsed by:89 134 135 157 159
Symbol 89 TextUses:7 88Used by:Timeline
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:Timeline
Symbol 92 TextUses:7Used by:Timeline
Symbol 93 EditableTextUses:7Used by:Timeline
Symbol 94 MovieClipUses:50Used by:Timeline
Symbol 95 ButtonUses:61Used by:Timeline
Symbol 96 ButtonUses:63Used by:Timeline
Symbol 97 ButtonUses:17 18 21Used by:Timeline
Symbol 98 ButtonUses:29 30 33Used by:Timeline
Symbol 99 ButtonUses:23 24 27Used by:Timeline
Symbol 100 ButtonUses:17 18 21Used by:Timeline
Symbol 101 ButtonUses:29 30 33Used by:Timeline
Symbol 102 ButtonUses:23 24 27Used by:Timeline
Symbol 103 TextUses:7Used by:Timeline
Symbol 104 TextUses:7Used by:Timeline
Symbol 105 TextUses:7Used by:Timeline
Symbol 106 GraphicUsed by:107 110
Symbol 107 MovieClipUses:106Used by:110
Symbol 108 TextUses:7Used by:109 110
Symbol 109 MovieClipUses:108Used by:110
Symbol 110 ButtonUses:107 109 108 106Used by:Timeline
Symbol 111 GraphicUsed by:112 115
Symbol 112 MovieClipUses:111Used by:115
Symbol 113 TextUses:7Used by:114 115
Symbol 114 MovieClipUses:113Used by:115
Symbol 115 ButtonUses:112 114 113 111Used by:Timeline
Symbol 116 EditableTextUses:7Used by:Timeline
Symbol 117 MovieClipUses:44Used by:Timeline
Symbol 118 ButtonUses:61Used by:Timeline
Symbol 119 ButtonUses:63Used by:Timeline
Symbol 120 ButtonUses:17 18 21Used by:Timeline
Symbol 121 ButtonUses:23 24 27Used by:Timeline
Symbol 122 ButtonUses:35 36 39Used by:Timeline
Symbol 123 ButtonUses:17 18 21Used by:Timeline
Symbol 124 ButtonUses:23 24 27Used by:Timeline
Symbol 125 ButtonUses:35 36 39Used by:Timeline
Symbol 126 TextUses:7Used by:Timeline
Symbol 127 TextUses:7Used by:Timeline
Symbol 128 TextUses:7Used by:Timeline
Symbol 129 TextUses:7Used by:Timeline
Symbol 130 TextUses:7Used by:Timeline
Symbol 131 TextUses:7Used by:Timeline
Symbol 132 TextUses:7Used by:Timeline
Symbol 133 TextUses:7Used by:Timeline
Symbol 134 TextUses:7 88Used by:Timeline
Symbol 135 TextUses:7 88Used by:Timeline
Symbol 136 ButtonUses:17 18 21Used by:Timeline
Symbol 137 EditableTextUses:7Used by:Timeline
Symbol 138 MovieClipUses:47Used by:Timeline
Symbol 139 ButtonUses:17 18 21Used by:Timeline
Symbol 140 ButtonUses:29 30 33Used by:Timeline
Symbol 141 ButtonUses:35 36 39Used by:Timeline
Symbol 142 ButtonUses:29 30 33Used by:Timeline
Symbol 143 ButtonUses:35 36 39Used by:Timeline
Symbol 144 TextUses:7Used by:Timeline
Symbol 145 TextUses:7Used by:Timeline
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:Timeline
Symbol 148 TextUses:7Used by:Timeline
Symbol 149 TextUses:7Used by:Timeline
Symbol 150 TextUses:7Used by:Timeline
Symbol 151 TextUses:7Used by:Timeline
Symbol 152 TextUses:7Used by:Timeline
Symbol 153 TextUses:7Used by:Timeline
Symbol 154 TextUses:7Used by:Timeline
Symbol 155 TextUses:7Used by:Timeline
Symbol 156 TextUses:7Used by:Timeline
Symbol 157 TextUses:7 88Used by:Timeline
Symbol 158 TextUses:7Used by:Timeline
Symbol 159 TextUses:7 88Used by:Timeline
Symbol 160 EditableTextUses:7Used by:Timeline
Symbol 161 ButtonUses:17 18 21Used by:Timeline
Symbol 162 ButtonUses:29 30 33Used by:Timeline
Symbol 163 ButtonUses:17 18 21Used by:Timeline
Symbol 164 ButtonUses:29 30 33Used by:Timeline
Symbol 165 ButtonUses:35 36 39Used by:Timeline
Symbol 166 ButtonUses:23 24 27Used by:Timeline
Symbol 167 TextUses:7Used by:Timeline
Symbol 168 ButtonUses:72 75Used by:Timeline
Symbol 169 TextUses:7Used by:Timeline
Symbol 170 TextUses:7Used by:Timeline
Symbol 171 GraphicUsed by:Timeline
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:230
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:180
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:180
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:180
Symbol 180 MovieClipUses:175 177 179Used by:188
Symbol 181 BitmapUsed by:182
Symbol 182 GraphicUses:181Used by:187
Symbol 183 BitmapUsed by:184
Symbol 184 GraphicUses:183Used by:187
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 MovieClipUses:182 184 186Used by:188
Symbol 188 MovieClipUses:180 187Used by:230 241
Symbol 189 FontUsed by:190 194 195 196 197 198 199 200 201 206 208 217 218 219 220 221 222 227 233 234 238
Symbol 190 EditableTextUses:189Used by:230
Symbol 191 GraphicUsed by:204 223
Symbol 192 GraphicUsed by:204 223
Symbol 193 GraphicUsed by:204 223
Symbol 194 TextUses:189Used by:204 209
Symbol 195 TextUses:189Used by:204 209
Symbol 196 TextUses:189Used by:204 209
Symbol 197 TextUses:189Used by:204 209
Symbol 198 TextUses:189Used by:204 209
Symbol 199 TextUses:189Used by:204 223
Symbol 200 TextUses:189Used by:204 209 223 235
Symbol 201 EditableTextUses:189Used by:204
Symbol 202 GraphicUsed by:203
Symbol 203 MovieClipUses:202Used by:204 209 223 235
Symbol 204 MovieClipUses:191 192 193 194 195 196 197 198 199 200 201 203Used by:230
Symbol 205 GraphicUsed by:209 235
Symbol 206 TextUses:189Used by:209 235
Symbol 207 GraphicUsed by:209 235
Symbol 208 EditableTextUses:189Used by:209
Symbol 209 MovieClipUses:205 206 200 207 194 195 196 197 198 208 203Used by:230 241
Symbol 210 ShapeTweeningUsed by:215
Symbol 211 ShapeTweeningUsed by:215
Symbol 212 ShapeTweeningUsed by:215
Symbol 213 ShapeTweeningUsed by:215
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClipUses:210 211 212 213 214Used by:230 241
Symbol 216 ButtonUses:39 35 36Used by:230 236
Symbol 217 TextUses:189Used by:223 235
Symbol 218 TextUses:189Used by:223 235
Symbol 219 TextUses:189Used by:223 235
Symbol 220 TextUses:189Used by:223 235
Symbol 221 TextUses:189Used by:223 235
Symbol 222 EditableTextUses:189Used by:223
Symbol 223 MovieClipUses:191 192 193 217 218 219 220 221 199 200 222 203Used by:230 241
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClipUses:224Used by:230 241
Symbol 226 GraphicUsed by:229
Symbol 227 TextUses:189Used by:229
Symbol 228 EditableTextUses:7Used by:229
Symbol 229 MovieClipUses:226 227 228Used by:230
Symbol 230 MovieClipUses:173 39 188 190 204 209 215 216 223 225 229Used by:Timeline
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:241
Symbol 233 EditableTextUses:189Used by:241
Symbol 234 EditableTextUses:189Used by:235
Symbol 235 MovieClipUses:205 206 200 207 217 218 219 220 221 234 203Used by:241
Symbol 236 MovieClipUses:216Used by:241
Symbol 237 GraphicUsed by:240
Symbol 238 TextUses:189Used by:240
Symbol 239 EditableTextUses:7Used by:240
Symbol 240 MovieClipUses:237 238 239Used by:241
Symbol 241 MovieClipUses:232 39 188 233 223 235 215 236 209 225 240Used by:Timeline

Instance Names

"cycleText"Frame 1Symbol 43 MovieClip
"cycleText"Frame 1Symbol 43 MovieClip
"industryText"Frame 1Symbol 46 MovieClip
"kettlewellText"Frame 1Symbol 49 MovieClip
"birdseyeText"Frame 1Symbol 52 MovieClip
"birdseyeText"Frame 11Symbol 56 MovieClip
"birdseyeText"Frame 20Symbol 56 MovieClip
"birdseyeText"Frame 153Symbol 94 MovieClip
"birdseyeText"Frame 162Symbol 94 MovieClip
"birdseyeText"Frame 243Symbol 117 MovieClip
"birdseyeText"Frame 253Symbol 117 MovieClip
"birdseyeText"Frame 460Symbol 117 MovieClip
"birdseyeText"Frame 471Symbol 138 MovieClip
"birdseyeText"Frame 481Symbol 138 MovieClip
"game"Frame 1039Symbol 230 MovieClip
"game"Frame 1044Symbol 241 MovieClip
"wing"Symbol 188 MovieClip Frame 1Symbol 180 MovieClip
"wing"Symbol 188 MovieClip Frame 2Symbol 187 MovieClip
"pCentText"Symbol 204 MovieClip Frame 1Symbol 201 EditableText
"startBar"Symbol 204 MovieClip Frame 1Symbol 203 MovieClip
"pCentText"Symbol 209 MovieClip Frame 1Symbol 208 EditableText
"startBar"Symbol 209 MovieClip Frame 1Symbol 203 MovieClip
"pCentText"Symbol 223 MovieClip Frame 1Symbol 222 EditableText
"startBar"Symbol 223 MovieClip Frame 1Symbol 203 MovieClip
"timeText"Symbol 230 MovieClip Frame 1Symbol 190 EditableText
"darkGraph"Symbol 230 MovieClip Frame 1Symbol 209 MovieClip
"bird"Symbol 230 MovieClip Frame 1Symbol 215 MovieClip
"pCentText"Symbol 235 MovieClip Frame 1Symbol 234 EditableText
"startBar"Symbol 235 MovieClip Frame 1Symbol 203 MovieClip
"timeText"Symbol 241 MovieClip Frame 1Symbol 233 EditableText
"darkGraph"Symbol 241 MovieClip Frame 1Symbol 235 MovieClip
"bird"Symbol 241 MovieClip Frame 1Symbol 215 MovieClip
"darkGraph"Symbol 241 MovieClip Frame 10Symbol 209 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "crunch0"
ExportAssets (56)Timeline Frame 1Symbol 2 as "CRUNCH2"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Crunch1"
ExportAssets (56)Timeline Frame 1Symbol 4 as "bird0"
ExportAssets (56)Timeline Frame 1Symbol 5 as "bird4"
ExportAssets (56)Timeline Frame 1Symbol 6 as "bird1"

Labels

"outFrame"Frame 142
"outFrame4"Frame 232
"outFrame3"Frame 460
"outFrame2"Frame 742
"outFrameEnd"Frame 1024

Dynamic Text Variables

buttonTextSymbol 54 EditableText""
buttonTextSymbol 93 EditableText""
buttonTextSymbol 116 EditableText""
buttonTextSymbol 137 EditableText""
buttonTextSymbol 160 EditableText""
timeSymbol 190 EditableText"60:00"
_parent.lPCentSymbol 201 EditableText"00"
_parent.dPCentSymbol 208 EditableText"00"
_parent.lPCentSymbol 222 EditableText"00"
feedbackSymbol 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."
timeSymbol 233 EditableText"60:00"
_parent.dPCentSymbol 234 EditableText"00"
feedbackSymbol 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."




http://swfchan.com/28/136114/info.shtml
Created: 9/2 -2019 07:19:03 Last modified: 9/2 -2019 07:19:03 Server time: 22/12 -2024 18:34:02