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

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

audubon_migration_game_final.swf

This is the info page for
Flash #216606

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


Text
Welcome to
Mission: Migration!
A flock of birds needs to
complete its seasonal
migration.
You have been selected to
assist this flock on its
important journey.
Are you ready to help these
birds navigate the
challenges of their
migration?

Let's Play!

SPEED

AGILITY

STAMINA

Distinct due to its black
mask, the Common
Yellowthroat is found in
wetlands and in forests
that are near water.
Common Yellowthroats
eat mostly insects and
spiders, and must avoid
being eaten by
predators like hawks.

Common in forests,
woodlands, and city and
suburban parks, lawns,
and gardens, American
Robins eat both fruit and
invertebrates, like
earthworms. During the
winter, robins migrate to
avoid deep snow, and
hundreds of robins can
gather in large flocks and
communal roosts.

The symbol of the National
Audubon Society, the
Great Egret is an all-white
bird with a large wingspan.
It nests in colonies called
rookeries in trees on
islands or over water, and
eats mostly fish, but also
invertebrates, amphibians,
reptiles, other birds, and
small mammals.

The most common and
widespread hawk in North
America, the Red-tailed
Hawk is a bird of open
country, forest edges, and
parks. It is frequently seen
sitting on telephone poles,
where it watches for
small- to medium-size
mammals, birds, and
reptiles to catch and eat.

flap your wings by
clicking your mouse or
pressing the "f" key
when the meter is in
the green area.

It’s time to navigate your flock
on the first leg of the
migration.

The first area your flock
encounters is this farmland.
With lots of open space and
open water, farmland provides
habitat for many birds, but
also presents some hazards.

To get through this part of the
journey you will need to keep
your eyes open for potential
hazards.

So far so good! Your flock was
able to survive the first part of
the migration, but things are
sure to get tougher now.

The next leg of the journey is
this suburban neighborhood.
All these houses and yards
look similar, but each one can
be very different depending on
how people take care of them.

Be on the look out for hidden
hazards.

Now is the most difficult part
of the journey: making it
through this city.

Even though there are many
parks, and some sources of
fresh water, this city can be
deceivingly dangerous.

Get your flock through this
city, and you should be home
free!

0000000

DISTANCE

ENERGY

GLIDE!

test_mc

starter_mc

Migration can be very
difficult. Your flock
has run out of energy
and is forced to land
early to regain its
strength.
Find the right things
to re-energize your
flock!

Congratulations, you
made it!
Migration is very tiring.
time to land your
flock and refuel for
the next leg of your
journey.
Find the right things
to re-energize your
flock!

Using your mouse,
choose five landing
spots on the map.

if you need, use the
Left and Right arrow
keys to move your
flock.

Use the down arrow to
activate your bird vision
and magnify the objects
on the ground.

Poisoned
Rats

Pesticides
in Bushes

Poisoned
Worms

Dead
Fish

Pesticides
in Lakes

Pesticide
Sprayer

Mice, Voles,
and Bugs

Berry
Bushes

Worms

Lakes

Schoolyard
Garden

Dirty
Puddles

Lawn
Pesticides

Bird
Feeder

Bird
House

Bird
Bath

Clean
Puddles

Six-pack
Rings

Closed
Rooftop
Garden

Open
Rooftop
Garden

ALTITUDE

TIME

starter_mc2

+1000

points

+1000

points

END OF LEVEL 1

REMAINING ENERGY

100

99

99

POWER-UPS

HAZARDS

SCORE

222222

%

These power-ups really help your flock.
Get outside and look for more of these
in your community.

Power-ups really help your flock, but hazards
reduce energy and can hurt your flock. Get
outside and take care of your neighborhood to
make it healthier for birds.

Great job! You found just the right things to
help your flock.  Get outside and see if you
can find these same power-ups in your
backyard and community.

Birds depend on safe and healthy places to recharge
for their migration.  Encountering too many hazards
can drastically impact your flock.  Be on the lookout
for these hazards in your community, and do as much
as you can to make it safer for birds.

END OF LEVEL 2

100

99

99

222222

END OF LEVEL 3

100

99

99

222222

0000

Try one more time!

you didn't land all
your birds before
hitting the ground.

Congratulations, you have helped your flock finish its
migration and have sent the birds on their way to building a
nest and finding a mate.

Along the migration route you encountered many hazards and
power-ups that impacted your flock.
In real life, birds depend on you to keep your backyards,
schoolyards and neighborhoods clean, safe, and inviting.

Other bird species still need your help to navigate and
survive their migration.

.

e

m

o

h

r

u

y

d

n

a

f

i

l

w

t

s

b

c

p

g

k

Click here

Get to know your local birds.  Go outside to look at and listen for the
birds and keep track of what you see and hear in a journal.

Make sure your family and friends recycle plastic, glass, and paper.

Tell your family and friends about the impact pesticides have on birds.

Make sure your windows have screens, shades, or decals to reduce
reflection.

If you have a cat, keep it indoors.

Create a healthy and attractive space by planting native, bird-friendly
plants.

Build and put up birdhouses.

Put out a birdbath or other source of water for birds and keep it clean.

Put up birdfeeders and keep them filled and clean.

Turn off lights, computers, and other appliances at night.

Now that you know what birds need, go outside and see how many
hazards and power-ups are in your yard and neighborhood. Here are
some ideas for helping birds that are migrating through your area.
Check those that you promise to do!

Healthy Backyard Habitat Checklist

print

Get to know your local birds.  Go outside to look at and
listen for the birds and keep track of what you see and
hear in a journal.

ActionScript [AS1/AS2]

Frame 1
stop(); stopAllSounds(); start_score = 0; total_energy = 100; start_energy = 100; bird_selected = 3; landscape = "rural"; powerups_total = 0; hazards_total = 0; guys_part_1 = 3; guys_part_2 = 3; total_guys = guys_part_1 + guys_part_2; soundtrack_1 = new Sound(soundtrack_1_mc); soundtrack_2 = new Sound(soundtrack_2_mc); soundtrack_3 = new Sound(soundtrack_3_mc); soundtrack_3.attachSound("soundtrack_main"); soundtrack_3.setVolume(100); soundtrack_3.start(0, 5); title_mc.start_button.onPress = function () { if (bird_call_sound) { bird_call_sound.stop(); } bird_call_sound = new Sound(bird_call_sound_mc); rand_bird_call = Math.round(random(4) + 1); if (rand_bird_call == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (rand_bird_call == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (rand_bird_call == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (rand_bird_call == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("intro_screen"); }; var keyListener_test = new Object(); keyListener_test.onKeyDown = function () { key_pressed = Key.getAscii(); if (key_pressed == 81) { landscape = "rural"; _root.gotoAndStop("rural_title"); } if (key_pressed == 87) { landscape = "suburban"; _root.gotoAndStop("suburban_title"); } if (key_pressed == 69) { landscape = "urban"; _root.gotoAndStop("urban_title"); } if (key_pressed == 82) { landscape = "rural"; stopAllSounds(); _root.gotoAndStop("instructions_2A"); } if (key_pressed == 84) { landscape = "suburban"; stopAllSounds(); _root.gotoAndStop("instructions_2B"); } if (key_pressed == 89) { landscape = "urban"; stopAllSounds(); _root.gotoAndStop("instructions_2C"); } if (key_pressed == 85) { _root.gotoAndStop("start_page"); } if (key_pressed == 73) { _root.gotoAndStop("checklist"); } }; Key.addListener(keyListener_test);
Frame 10
stop(); naturalist_intro_mc.continue_button.onPress = function () { _root.gotoAndStop("bird_select"); };
Frame 20
function select_bird(passed_bird_number) { bird_select_mc.bird_tab_1.selected = false; bird_select_mc.bird_tab_2.selected = false; bird_select_mc.bird_tab_3.selected = false; bird_select_mc.bird_tab_4.selected = false; switch (passed_bird_number) { case 1 : bird_select_mc.bird_tab_1.selected = true; break; case 2 : bird_select_mc.bird_tab_2.selected = true; break; case 3 : bird_select_mc.bird_tab_3.selected = true; break; case 4 : bird_select_mc.bird_tab_4.selected = true; } } stop(); start_score = 0; total_energy = 100; start_energy = 100; powerups_total = 0; hazards_total = 0; guys_part_1 = 3; guys_part_2 = 3; total_guys = guys_part_1 + guys_part_2; bird_select_mc.bird_tab_1.selected = false; bird_select_mc.bird_tab_2.selected = false; bird_select_mc.bird_tab_3.selected = true; bird_select_mc.bird_tab_3.gotoAndStop(10); bird_select_mc.backing_tab_3.gotoAndStop(10); bird_select_mc.bird_tab_4.selected = false; bird_select_mc.bird_display_1._alpha = 0; bird_select_mc.bird_display_2._alpha = 0; bird_select_mc.bird_display_3._alpha = 100; bird_select_mc.bird_display_4._alpha = 0; bird_select_mc.bird_selected = 3; bird_select_mc.bird_select_button_1.onRollOver = function () { select_bird(1); }; bird_select_mc.bird_select_button_2.onRollOver = function () { select_bird(2); }; bird_select_mc.bird_select_button_3.onRollOver = function () { select_bird(3); }; bird_select_mc.bird_select_button_4.onRollOver = function () { select_bird(4); }; bird_select_mc.bird_select_button_1.onPress = function () { bird_selected = 1; }; bird_select_mc.bird_select_button_2.onPress = function () { bird_selected = 2; }; bird_select_mc.bird_select_button_3.onPress = function () { bird_selected = 3; }; bird_select_mc.bird_select_button_4.onPress = function () { bird_selected = 4; }; bird_select_mc.bird_tab_1.onEnterFrame = function () { if (this.selected == true) { if (this._currentframe < 10) { this.nextFrame(); bird_select_mc.backing_tab_1.nextFrame(); } } else if (this._currentframe > 1) { this.prevFrame(); bird_select_mc.backing_tab_1.prevFrame(); } }; bird_select_mc.bird_tab_2.onEnterFrame = function () { if (this.selected == true) { if (this._currentframe < 10) { this.nextFrame(); bird_select_mc.backing_tab_2.nextFrame(); } } else if (this._currentframe > 1) { this.prevFrame(); bird_select_mc.backing_tab_2.prevFrame(); } }; bird_select_mc.bird_tab_3.onEnterFrame = function () { if (this.selected == true) { if (this._currentframe < 10) { this.nextFrame(); bird_select_mc.backing_tab_3.nextFrame(); } } else if (this._currentframe > 1) { this.prevFrame(); bird_select_mc.backing_tab_3.prevFrame(); } }; bird_select_mc.bird_tab_4.onEnterFrame = function () { if (this.selected == true) { if (this._currentframe < 10) { this.nextFrame(); bird_select_mc.backing_tab_4.nextFrame(); } } else if (this._currentframe > 1) { this.prevFrame(); bird_select_mc.backing_tab_4.prevFrame(); } }; bird_select_mc.bird_display_1.onEnterFrame = function () { if (bird_select_mc.bird_tab_1.selected == true) { if (this._alpha < 100) { if (((bird_select_mc.bird_display_2._alpha <= 0) && (bird_select_mc.bird_display_3._alpha <= 0)) && (bird_select_mc.bird_display_4._alpha <= 0)) { this._alpha = this._alpha + 20; } } } else { if (this._alpha > 0) { this._alpha = this._alpha - 20; } if (this._alpha < 0) { this._alpha = 0; } } }; bird_select_mc.bird_display_2.onEnterFrame = function () { if (bird_select_mc.bird_tab_2.selected == true) { if (this._alpha < 100) { if (((bird_select_mc.bird_display_1._alpha <= 0) && (bird_select_mc.bird_display_3._alpha <= 0)) && (bird_select_mc.bird_display_4._alpha <= 0)) { this._alpha = this._alpha + 20; } } } else { if (this._alpha > 0) { this._alpha = this._alpha - 20; } if (this._alpha < 0) { this._alpha = 0; } } }; bird_select_mc.bird_display_3.onEnterFrame = function () { if (bird_select_mc.bird_tab_3.selected == true) { if (this._alpha < 100) { if (((bird_select_mc.bird_display_1._alpha <= 0) && (bird_select_mc.bird_display_2._alpha <= 0)) && (bird_select_mc.bird_display_4._alpha <= 0)) { this._alpha = this._alpha + 20; } } } else { if (this._alpha > 0) { this._alpha = this._alpha - 20; } if (this._alpha < 0) { this._alpha = 0; } } }; bird_select_mc.bird_display_4.onEnterFrame = function () { if (bird_select_mc.bird_tab_4.selected == true) { if (this._alpha < 100) { if (((bird_select_mc.bird_display_1._alpha <= 0) && (bird_select_mc.bird_display_2._alpha <= 0)) && (bird_select_mc.bird_display_3._alpha <= 0)) { this._alpha = this._alpha + 20; } } } else { if (this._alpha > 0) { this._alpha = this._alpha - 20; } if (this._alpha < 0) { this._alpha = 0; } } }; bird_select_mc.continue_button.onPress = function () { if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("instructions_1A"); };
Frame 30
stop(); instructions_1_mc.metronome_sample_mc.marker_mode = "ascending"; instructions_1_mc.metronome_sample_mc.x_jump = 8; instructions_1_mc.metronome_sample_mc.x_jump_min = 4; instructions_1_mc.metronome_sample_mc.x_jump_max = 36; instructions_1_mc.metronome_sample_mc.max_x = instructions_1_mc.metronome_sample_mc.bar._width; instructions_1_mc.metronome_sample_mc.onEnterFrame = function () { if (this.marker_mode == "ascending") { if (this.marker._x >= this.max_x) { this.marker_mode = "descending"; } else { this.marker._x = this.marker._x + this.x_jump; if (this.marker._x >= this.max_x) { this.marker._x = this.max_x; this.marker_mode = "decending"; } } } else if (this.marker._x <= 0) { this.marker_mode = "ascending"; } else { this.marker._x = this.marker._x - this.x_jump; if (this.marker._x <= 0) { this.marker._x = 0; this.marker_mode = "ascending"; } } }; instructions_1_mc.continue_button.onPress = function () { if (bird_call_sound) { bird_call_sound.stop(); } if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("rural_title"); };
Frame 40
stop(); instructions_1_mc.metronome_sample_mc.marker_mode = "ascending"; instructions_1_mc.metronome_sample_mc.x_jump = 8; instructions_1_mc.metronome_sample_mc.x_jump_min = 4; instructions_1_mc.metronome_sample_mc.x_jump_max = 36; instructions_1_mc.metronome_sample_mc.max_x = instructions_1_mc.metronome_sample_mc.bar._width; instructions_1_mc.metronome_sample_mc.onEnterFrame = function () { if (this.marker_mode == "ascending") { if (this.marker._x >= this.max_x) { this.marker_mode = "descending"; } else { this.marker._x = this.marker._x + this.x_jump; if (this.marker._x >= this.max_x) { this.marker._x = this.max_x; this.marker_mode = "decending"; } } } else if (this.marker._x <= 0) { this.marker_mode = "ascending"; } else { this.marker._x = this.marker._x - this.x_jump; if (this.marker._x <= 0) { this.marker._x = 0; this.marker_mode = "ascending"; } } }; instructions_1_mc.continue_button.onPress = function () { if (bird_call_sound) { bird_call_sound.stop(); } if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("suburban_title"); };
Frame 50
stop(); instructions_1_mc.metronome_sample_mc.marker_mode = "ascending"; instructions_1_mc.metronome_sample_mc.x_jump = 8; instructions_1_mc.metronome_sample_mc.x_jump_min = 4; instructions_1_mc.metronome_sample_mc.x_jump_max = 36; instructions_1_mc.metronome_sample_mc.max_x = instructions_1_mc.metronome_sample_mc.bar._width; instructions_1_mc.metronome_sample_mc.onEnterFrame = function () { if (this.marker_mode == "ascending") { if (this.marker._x >= this.max_x) { this.marker_mode = "descending"; } else { this.marker._x = this.marker._x + this.x_jump; if (this.marker._x >= this.max_x) { this.marker._x = this.max_x; this.marker_mode = "decending"; } } } else if (this.marker._x <= 0) { this.marker_mode = "ascending"; } else { this.marker._x = this.marker._x - this.x_jump; if (this.marker._x <= 0) { this.marker._x = 0; this.marker_mode = "ascending"; } } }; instructions_1_mc.continue_button.onPress = function () { if (bird_call_sound) { bird_call_sound.stop(); } if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("urban_title"); };
Frame 60
stop(); landscape = "rural"; guys_part_1 = 3; guys_part_2 = 3; soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_3.stop(); soundtrack_1.attachSound("soundtrack_rural_1"); soundtrack_2.attachSound("soundtrack_rural_2"); soundtrack_1.setVolume(40); soundtrack_2.setVolume(0); soundtrack_1.start(0, 10); rural_title_mc.title_bird = bird_selected; rural_title_mc.start_button.onPress = function () { if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("game_1_start"); };
Instance of Symbol 492 MovieClip "rural_title_mc" in Frame 60
/* no clip actions */
Frame 70
stop(); landscape = "suburban"; guys_part_1 = 3; guys_part_2 = 3; soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_3.stop(); soundtrack_1.attachSound("soundtrack_suburban_1"); soundtrack_2.attachSound("soundtrack_suburban_2"); soundtrack_1.setVolume(40); soundtrack_1.start(0, 10); suburban_title_mc.title_bird = bird_selected; suburban_title_mc.start_button.onPress = function () { if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("game_1_start"); };
Frame 80
stop(); landscape = "urban"; guys_part_1 = 3; guys_part_2 = 3; soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_3.stop(); soundtrack_1.attachSound("soundtrack_urban_1"); soundtrack_2.attachSound("soundtrack_urban_2"); soundtrack_1.setVolume(40); soundtrack_1.start(0, 10); urban_title_mc.title_bird = bird_selected; urban_title_mc.start_button.onPress = function () { if (bird_selected == 1) { bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { bird_call_sound.attachSound("bird_call_4"); } bird_call_sound.start(); _root.gotoAndStop("game_1_start"); };
Frame 90
function end_of_level() { Mouse.removeListener(mouseListener2); delete mouseListener2; _root.deactivate_spec_mode(); total_energy = energy; score_mc.wait_count = 0; score_mc.wait_total = 50; score_mc.onEnterFrame = function () { if (this.wait_count == this.wait_total) { energy = energy - 0.75; _root.score = _root.score + 60; _root.sound_clip_click.gotoAndPlay(2); current_volume_2 = soundtrack_2.getVolume(); soundtrack_2.setVolume(current_volume_2 * 0.9995); if (energy >= 0) { fuel_gauge_mc._xscale = fuel_gauge_mc.start_xscale * (energy / fuel_gauge_mc.max_fuel); } else { soundtrack_2.stop(); fuel_gauge_mc._xscale = 0; start_score = _root.score; _root.background_holder_mc1.working_background.removeMovieClip(); _root.gotoAndStop("finish_1"); trace("go to next level"); delete this.onEnterFrame; } } else { this.wait_count++; } }; } function bird_fell() { score_mc.wait_count = 0; score_mc.wait_total = 100; score_mc.onEnterFrame = function () { if (this.wait_count == this.wait_total) { total_energy = energy; _root.gotoAndStop("game_over"); soundtrack_2.stop(); delete this.onEnterFrame; } else { this.wait_count++; _root.bird_flock._xscale = _root.bird_flock._xscale * 0.9; _root.bird_flock._yscale = _root.bird_flock._yscale * 0.9; _root.bird_flock._y = _root.bird_flock._y - (bird_speed * (_root.bird_flock._xscale / 100)); current_volume_2 = soundtrack_2.getVolume(); if (current_volume_2 > 0) { current_volume_2--; soundtrack_2.setVolume(current_volume_2); } } }; } function crossfade() { soundtrack_2.start(0, 6); soundtrack_2_started = true; soundtrack_1_mc.onEnterFrame = function () { current_volume_1 = soundtrack_1.getVolume(); current_volume_2 = soundtrack_2.getVolume(); if (current_volume_1 > 0) { current_volume_1 = current_volume_1 - 2; soundtrack_1.setVolume(current_volume_1); } if (current_volume_2 < 40) { current_volume_2++; soundtrack_2.setVolume(current_volume_2); } if ((current_volume_1 == 0) && (current_volume_2 == 40)) { soundtrack_1.stop(); delete this.onEnterFrame; } }; } function activate_spec_mode() { trace("spec mode activated"); spec_mode = "on"; _root.sound_clip_cocking.gotoAndPlay(2); _root.crosshair2_mc._visible = true; trace("about to hide?"); Mouse.hide(); trace("hid?"); _root.bird_flock.follower1.onPress = function () { if (spec_mode == "on") { _root.sound_clip_gun.gotoAndPlay(2); _root.bird_flock.follower1.flyer.gotoAndPlay("bang"); energy = energy - 20; } }; _root.bird_flock.follower2.onPress = function () { if (spec_mode == "on") { _root.sound_clip_gun.gotoAndPlay(2); _root.bird_flock.follower2.flyer.gotoAndStop("bang"); energy = energy - 20; } }; _root.bird_flock.follower3.onPress = function () { if (spec_mode == "on") { _root.sound_clip_gun.gotoAndPlay(2); _root.bird_flock.follower3.flyer.gotoAndPlay("bang"); energy = energy - 20; } }; _root.bird_flock.follower4.onPress = function () { if (spec_mode == "on") { _root.sound_clip_gun.gotoAndPlay(2); _root.bird_flock.follower4.flyer.gotoAndPlay("bang"); energy = energy - 20; } }; _root.bird_flock.follower5.onPress = function () { if (spec_mode == "on") { _root.sound_clip_gun.gotoAndPlay(2); _root.bird_flock.follower5.flyer.gotoAndPlay("bang"); energy = energy - 20; } }; } function deactivate_spec_mode() { spec_mode = "off"; _root.crosshair2_mc._visible = false; Mouse.show(); } stop(); switch (landscape) { case "urban" : background_holder_mc1.attachMovie("urban_mc", "working_background", 0); break; case "suburban" : background_holder_mc1.attachMovie("suburban_mc", "working_background", 0); break; case "rural" : background_holder_mc1.attachMovie("rural_mc", "working_background", 0); break; default : background_holder_mc1.attachMovie("rural_mc", "working_background", 0); landscape = "rural"; } document_width = 420; document_height = 500; background_height = background_holder_mc1.working_background._height; if (!bird_selected) { bird_selected = 1; } switch (bird_selected) { case 1 : background_speed = 1.8; background_speed_min = 0.81; background_speed_max = 7.5; break; case 2 : background_speed = 1; background_speed_min = 0.41; background_speed_max = 5; break; case 3 : background_speed = 1.5; background_speed_min = 0.61; background_speed_max = 6; break; case 4 : background_speed = 1.5; background_speed_min = 0.61; background_speed_max = 6; break; default : background_speed = 1.5; background_speed_min = 0.61; background_speed_max = 6; } background_speed_range = background_speed_max - background_speed_min; speed_offset = background_speed_max + 70; background_holder_mc1._x = document_width; background_holder_mc1._y = document_height; total_distance = (background_height - (document_height / 2)) - speed_offset; start_point = 0; distance_travelled = 0; percent_distance = 0; _root.score = start_score; _root.bird_flock.follower1.gotoAndStop(bird_selected); _root.bird_flock.follower2.gotoAndStop(bird_selected); _root.bird_flock.follower3.gotoAndStop(bird_selected); _root.bird_flock.follower4.gotoAndStop(bird_selected); _root.bird_flock.follower5.gotoAndStop(bird_selected); bird_flock.start_x = bird._x; bird_flock.start_y = bird._y; bird_flock.colliding = false; bird_flock.zapping = false; bird_flock.follower1.flyer.colliding = false; bird_flock.follower2.flyer.colliding = false; bird_flock.follower3.flyer.colliding = false; bird_flock.follower4.flyer.colliding = false; bird_flock.follower5.flyer.zapping = false; bird_flock.follower1.flyer.zapping = false; bird_flock.follower2.flyer.zapping = false; bird_flock.follower3.flyer.zapping = false; bird_flock.follower4.flyer.zapping = false; bird_flock.follower5.flyer.zapping = false; bird_flock.falling = false; fuel_gauge_mc.start_xscale = fuel_gauge_mc._xscale; fuel_gauge_mc.start_yscale = fuel_gauge_mc._yscale; fuel_gauge_mc.max_fuel = 100; fuel_gauge_mc._xscale = 0; energy = 0; switch (bird_selected) { case 1 : energy_decline_rate = 0.025; break; case 2 : energy_decline_rate = 0.033; break; case 3 : energy_decline_rate = 0.033; break; case 4 : energy_decline_rate = 0.033; break; default : energy_decline_rate = 0.033; } energy_drop_red = 2; flap_boost = 0.41; wind_resistance = 0.00325; finish_line_base_speed = 2.5; airplane_energy_drop = 0.3; airplane_speed_drop = 0.06; cloud_energy_drop = 0.2; cloud_speed_drop = 0.05; jetstream_energy_boost = 0.22; jetstream_speed_boost = 0.1; energy_load_speed = 4; died = false; completed_level = false; game_started = false; soundtrack_2_started = false; var myListener = new Object(); spec_mode = "off"; Mouse.show(); myListener.onKeyDown = function () { if (Key.isDown(65) && (Key.isDown(66))) { if (spec_mode == "off") { spec_mode = "on"; _root.activate_spec_mode(); } else { spec_mode = "off"; _root.deactivate_spec_mode(); } } }; myListener.onKeyUp = function () { key_back_up = true; flapping = false; }; key_back_up = true; Key.addListener(myListener); crosshair2_mc._visible = false; var mouseListener2 = new Object(); mouseListener2.onMouseMove = function () { if ((game_started == true) && (spec_mode == "on")) { crosshair2_mc._x = _xmouse; crosshair2_mc._y = _ymouse; updateAfterEvent(); } }; Mouse.addListener(mouseListener2); starter_mc.onEnterFrame = function () { energy = energy + energy_load_speed; if (energy >= total_energy) { energy = total_energy; game_started = true; delete this.onEnterFrame; } else if (energy >= 0) { fuel_gauge_mc._xscale = fuel_gauge_mc.start_xscale * (energy / fuel_gauge_mc.max_fuel); } }; background_holder_mc1.onEnterFrame = function () { if (game_started) { if (((background_holder_mc1.working_background._y + (document_height / 2)) + speed_offset) <= background_holder_mc1.working_background._height) { background_holder_mc1.working_background._y = background_holder_mc1.working_background._y + background_speed; } else { trace("ok, done"); } if (energy >= 0) { fuel_gauge_mc._xscale = fuel_gauge_mc.start_xscale * (energy / fuel_gauge_mc.max_fuel); } if (energy <= (0.1 * fuel_gauge_mc.max_fuel)) { if (soundtrack_2_started == false) { _root.crossfade(); } } distance_travelled = total_distance - background_holder_mc1.working_background._y; percent_distance = 1 - (distance_travelled / total_distance); if (percent_distance <= 1) { distance_meter.distance_marker._x = percent_distance * distance_meter.distance_bar._width; if (percent_distance > 0.78) { if (soundtrack_2_started == false) { _root.crossfade(); } } if (percent_distance > 0.93) { _root.finish_line_mc._y = _root.finish_line_mc._y + (finish_line_base_speed * background_speed); } } if (_root.finish_line_mc.hitTest(_root.bird_flock)) { if (completed_level == false) { completed_level = true; _root.metronome_mc2._visible = false; _root.metronome_glide_mc.gotoAndStop(1); _root.bird_flock.gotoAndPlay("finish"); _root.bird_flock.follower1.gotoAndStop(bird_selected); _root.bird_flock.follower2.gotoAndStop(bird_selected); _root.bird_flock.follower3.gotoAndStop(bird_selected); _root.bird_flock.follower4.gotoAndStop(bird_selected); _root.bird_flock.follower5.gotoAndStop(bird_selected); var _local3 = new Sound(bird_call_sound_mc); if (bird_selected == 1) { _root.bird_call_sound.attachSound("bird_call_1"); } else if (bird_selected == 2) { _root.bird_call_sound.attachSound("bird_call_2"); } else if (bird_selected == 3) { _root.bird_call_sound.attachSound("bird_call_3"); } else if (bird_selected == 4) { _root.bird_call_sound.attachSound("bird_call_4"); } _root.bird_call_sound.setVolume(100); _root.bird_call_sound.start(); _root.end_of_level(); delete _root.score.onEnterFrame; delete this.onEnterFrame; } } if (completed_level == false) { energy = energy - energy_decline_rate; if (background_speed >= background_speed_min) { background_speed = background_speed - wind_resistance; if (background_speed < background_speed_min) { background_speed = background_speed_min; } } } if (energy <= 0) { background_speed = 0; if ((died == false) && (completed_level == false)) { died = true; _root.metronome_mc2._visible = false; Mouse.removeListener(mouseListener2); delete mouseListener2; _root.deactivate_spec_mode(); _root.bird_flock.falling = true; _root.bird_fell(); delete _root.score.onEnterFrame; delete _root.background_holder_mc1.onEnterFrame; delete this.onEnterFrame; } } } }; flapRate = 1000; bird_x_min = bird_left_bound._x; bird_x_max = bird_right_bound._x; bird_y_min = bird_up_bound._y; bird_y_max = bird_down_bound._y; switch (bird_selected) { case 1 : bird_speed = 5; break; case 2 : bird_speed = 2.75; break; case 3 : bird_speed = 4; break; case 4 : bird_speed = 5; break; default : bird_speed = 4; } bird_flock.onMouseDown = function () { if (spec_mode == "off") { flapping = true; repeatTime = 0; } }; bird_flock.onMouseUp = function () { flapping = false; }; bird_flock.onEnterFrame = function () { if (game_started) { if (this.follower1.flyer._currentframe == 1) { this.colliding = false; if (_root.fuel_gauge_mc._currentframe != 1) { _root.fuel_gauge_mc.gotoAndStop(1); } this.follower1.flyer.colliding = false; this.follower1.flyer.zapping = false; } if (this.follower2.flyer._currentframe == 1) { this.follower2.flyer.colliding = false; this.follower2.flyer.zapping = false; } if (this.follower3.flyer._currentframe == 1) { this.follower3.flyer.colliding = false; this.follower3.flyer.zapping = false; } if (this.follower4.flyer._currentframe == 1) { this.follower4.flyer.colliding = false; this.follower4.flyer.zapping = false; } if (this.follower5.flyer._currentframe == 1) { this.follower5.flyer.colliding = false; this.follower5.flyer.zapping = false; } if (_root.died == false) { if (Key.isDown(37)) { this._x = this._x - bird_speed; if (this._x < bird_x_min) { this._x = bird_x_min; } } if (Key.isDown(39)) { this._x = this._x + bird_speed; if (this._x > bird_x_max) { this._x = bird_x_max; } } if (Key.isDown(38)) { this._y = this._y - bird_speed; if (this._y < bird_y_min) { this._y = bird_y_min; } } if (Key.isDown(40)) { this._y = this._y + bird_speed; if (this._y > bird_y_max) { this._y = bird_y_max; } } if (Key.isDown(70)) { if (key_back_up == true) { key_back_up = false; flapping = true; repeatTime = 0; } } if (Key.isDown(90)) { _root.crossfade(); } if (Key.isDown(67)) { trace("count is " + _root.test_mc.count); trace("energy_decline_rate is " + energy_decline_rate); trace("total_energy is " + total_energy); } } if (((flapping && (repeatTime == 0)) && (_root.completed_level == false)) && (jetstream_mc.nitro_created == false)) { if ((_root.bird_flock.follower1.flyer._currentframe == 1) || (_root.bird_flock.follower1.flyer._currentframe > 260)) { _root.bird_flock.follower1.flyer.gotoAndPlay("flap"); _root.bird_flock.follower2.flyer.gotoAndPlay("flap"); _root.bird_flock.follower3.flyer.gotoAndPlay("flap"); _root.bird_flock.follower4.flyer.gotoAndPlay("flap"); _root.bird_flock.follower5.flyer.gotoAndPlay("flap"); _root.sound_clip_flap.gotoAndPlay(2); _root.metronome_mc2.marker_mode = "descending"; if (_root.metronome_mc2.marker.hitTest(_root.metronome_mc2.bar.bar_region_green)) { background_speed = background_speed + flap_boost; if (background_speed > background_speed_max) { if (_root.jetstream_mc.nitro_created == false) { background_speed = background_speed_max; trace("maxed out on speed"); } } } else if (_root.metronome_mc2.marker.hitTest(_root.metronome_mc2.bar.bar_region_red)) { background_speed = background_speed - flap_boost; if (background_speed < background_speed_min) { background_speed = background_speed_min; } energy = energy - energy_drop_red; } } } repeatTime++; } }; metronome_mc2.marker_mode = "ascending"; metronome_mc2.x_jump_min = 2; metronome_mc2.x_jump_max = 18; metronome_mc2.max_x = metronome_mc2.bar._width; metronome_mc2.onEnterFrame = function () { if (game_started) { speed_jump_percent = (background_speed - background_speed_min) / background_speed_range; this.x_jump = (speed_jump_percent * (this.x_jump_max - this.x_jump_min)) + this.x_jump_min; if (this.marker_mode == "ascending") { if (this.marker._x >= this.max_x) { this.marker_mode = "descending"; } else { this.marker._x = this.marker._x + this.x_jump; if (this.marker._x >= this.max_x) { this.marker._x = this.max_x; this.marker_mode = "decending"; } } } else if (this.marker._x <= 0) { this.marker_mode = "ascending"; } else { this.marker._x = this.marker._x - this.x_jump; if (this.marker._x <= 0) { this.marker._x = 0; this.marker_mode = "ascending"; } } } }; airplane_mc.delay_count = 0; switch (landscape) { case "rural" : airplane_mc.delay_count_base = 250; airplane_mc.delay_count_random_range = 200; airplane_mc.speed = 6; break; case "suburban" : airplane_mc.delay_count_base = 180; airplane_mc.delay_count_random_range = 180; airplane_mc.speed = 7; break; case "urban" : airplane_mc.delay_count_base = 1; airplane_mc.delay_count_random_range = 40; airplane_mc.speed = 8; break; default : airplane_mc.delay_count_base = 250; airplane_mc.delay_count_random_range = 200; airplane_mc.speed = 7; } airplane_mc.delay_count_random = Math.round(random(airplane_mc.delay_count_random_range)); airplane_mc.delay_count_mark = airplane_mc.delay_count_base + airplane_mc.delay_count_random; rand_y = Math.round(Math.random() * (airplane_y_max._y - airplane_y_min._y)) + airplane_y_min._y; airplane_mc._y = rand_y; rand_direction_from = Math.round(Math.random(2)); if (rand_direction_from == 0) { airplane_mc.from_direction = "left"; airplane_mc._x = airplane_start_x_left._x; airplane_mc.gotoAndStop("left"); } else { airplane_mc.from_direction = "right"; airplane_mc._x = airplane_start_x_right._x; airplane_mc.gotoAndStop("right"); } airplane_mc.flying = false; airplane_mc.sound_playing = false; airplane_mc.onEnterFrame = function () { if (game_started) { if (this.delay_count == this.delay_count_mark) { if (this.sound_playing == false) { this.sound_playing = true; if (airplane_mc.from_direction == "left") { _root.sound_clip_airplane_from_left.gotoAndPlay(2); } if (airplane_mc.from_direction == "right") { _root.sound_clip_airplane_from_right.gotoAndPlay(2); } } if (((airplane_mc.from_direction == "left") && (this._x < _root.offstage_x_max._x)) || ((airplane_mc.from_direction == "right") && (this._x > _root.offstage_x_min._x))) { if (airplane_mc.from_direction == "left") { this._x = this._x + this.speed; } if (airplane_mc.from_direction == "right") { this._x = this._x - this.speed; } this._y = this._y - (this.speed / 5); if ((this.hitTest(_root.bird_flock) && (_root.bird_flock.falling == false)) && (completed_level == false)) { if (this.hitTest(_root.bird_flock.follower1.flyer)) { if (_root.bird_flock.follower1.flyer.colliding == false) { _root.bird_flock.follower1.flyer.colliding = true; _root.bird_flock.follower1.flyer.gotoAndPlay("collision"); _root.sound_clip_collision.gotoAndPlay(2); if (jetstream_mc.nitro_created == true) { trace("nitro cancelled"); jetstream_mc.nitro_created = false; background_speed = jetstream_mc.pre_nitro_speed; _root.metronome_glide_mc.gotoAndStop(1); } } } if (this.hitTest(_root.bird_flock.follower2.flyer)) { if (_root.bird_flock.follower2.flyer.colliding == false) { _root.bird_flock.follower2.flyer.colliding = true; _root.bird_flock.follower2.flyer.gotoAndPlay("collision"); _root.sound_clip_collision.gotoAndPlay(2); if (jetstream_mc.nitro_created == true) { trace("nitro cancelled"); jetstream_mc.nitro_created = false; background_speed = jetstream_mc.pre_nitro_speed; _root.metronome_glide_mc.gotoAndStop(1); } } } if (this.hitTest(_root.bird_flock.follower3.flyer)) { if (_root.bird_flock.follower3.flyer.colliding == false) { _root.bird_flock.follower3.flyer.colliding = true; _root.bird_flock.follower3.flyer.gotoAndPlay("collision"); _root.sound_clip_collision.gotoAndPlay(2); if (jetstream_mc.nitro_created == true) { trace("nitro cancelled"); jetstream_mc.nitro_created = false; background_speed = jetstream_mc.pre_nitro_speed; _root.metronome_glide_mc.gotoAndStop(1); } } } if (this.hitTest(_root.bird_flock.follower4.flyer)) { if (_root.bird_flock.follower4.flyer.colliding == false) { _root.bird_flock.follower4.flyer.colliding = true; _root.bird_flock.follower4.flyer.gotoAndPlay("collision"); _root.sound_clip_collision.gotoAndPlay(2); if (jetstream_mc.nitro_created == true) { trace("nitro cancelled"); jetstream_mc.nitro_created = false; background_speed = jetstream_mc.pre_nitro_speed; _root.metronome_glide_mc.gotoAndStop(1); } } } if (this.hitTest(_root.bird_flock.follower5.flyer)) { if (_root.bird_flock.follower5.flyer.colliding == false) { _root.bird_flock.follower5.flyer.colliding = true; _root.bird_flock.follower5.flyer.gotoAndPlay("collision"); _root.sound_clip_collision.gotoAndPlay(2); if (jetstream_mc.nitro_created == true) { trace("nitro cancelled"); jetstream_mc.nitro_created = false; background_speed = jetstream_mc.pre_nitro_speed; _root.metronome_glide_mc.gotoAndStop(1); } } } background_speed = background_speed - airplane_speed_drop; if (background_speed < background_speed_min) { background_speed = background_speed_min; } energy = energy - airplane_energy_drop; if (_root.fuel_gauge_mc._currentframe == 1) { _root.fuel_gauge_mc.gotoAndPlay(2); } if (_root.bird_flock.colliding == false) { _root.bird_flock.colliding = true; } } } else { this.delay_count = 0; rand_y = Math.round(Math.random() * (_root.airplane_y_max._y - _root.airplane_y_min._y)) + _root.airplane_y_min._y; this._y = rand_y; rand_direction_from = Math.round(Math.random(2)); this.delay_count_random = Math.round(random(airplane_mc.delay_count_random_range)); this.delay_count_mark = this.delay_count_base + this.delay_count_random; if (rand_direction_from == 0) { airplane_mc.from_direction = "left"; this._x = _root.airplane_start_x_left._x; this.gotoAndStop("left"); } else { airplane_mc.from_direction = "right"; this._x = _root.airplane_start_x_right._x; this.gotoAndStop("right"); } this.sound_playing = false; } } else if (percent_distance < 0.85) { this.delay_count++; } } }; clouds_back_mc.start_y = clouds_back_mc._y; clouds_front_mc.start_y = clouds_front_mc._y; clouds_back_mc.delay_count = 0; switch (landscape) { case "rural" : clouds_back_mc.delay_count_base = 1; clouds_back_mc.delay_count_random_range = 1; clouds_back_mc.speed_base = 1.8; clouds_back_mc.base_size_min = 25; clouds_back_mc.base_size_max = 10; break; case "suburban" : clouds_back_mc.delay_count_base = 1; clouds_back_mc.delay_count_random_range = 1; clouds_back_mc.speed_base = 2.3; clouds_back_mc.base_size_min = 25; clouds_back_mc.base_size_max = 20; break; case "urban" : clouds_back_mc.delay_count_base = 1; clouds_back_mc.delay_count_random_range = 1; clouds_back_mc.speed_base = 3.5; clouds_back_mc.base_size_min = 25; clouds_back_mc.base_size_max = 30; break; default : clouds_back_mc.delay_count_base = 1; clouds_back_mc.delay_count_random_range = 1; clouds_back_mc.speed_base = 3.5; clouds_back_mc.base_size_min = 25; clouds_back_mc.base_size_max = 62; } clouds_back_mc.base_size_min = 25; clouds_back_mc.base_size_max = 62; clouds_back_mc.delay_count_random = Math.round(random(clouds_back_mc.delay_count_random_range)); clouds_back_mc.delay_count_mark = clouds_back_mc.delay_count_base + clouds_back_mc.delay_count_random; rand_x = Math.round(Math.random() * (clouds_x_max._x - clouds_x_min._x)) + clouds_x_min._x; clouds_back_mc._x = rand_x; clouds_front_mc._x = rand_x; rand_scale = Math.round((Math.random() * (clouds_back_mc.base_size_max - clouds_back_mc.base_size_min)) + clouds_back_mc.base_size_min); clouds_back_mc._xscale = rand_scale; clouds_back_mc._yscale = rand_scale; clouds_front_mc._xscale = rand_scale; clouds_front_mc._yscale = rand_scale; clouds_back_mc.flying = false; clouds_back_mc.speed = (60 / rand_scale) * clouds_back_mc.speed_base; clouds_back_mc.sound_playing = false; clouds_back_mc.onEnterFrame = function () { if (game_started) { if (this.delay_count == this.delay_count_mark) { if (this._y < _root.offstage_y_max._y) { this._y = this._y + (this.speed + background_speed); _root.clouds_front_mc._y = _root.clouds_front_mc._y + (this.speed + background_speed); if (this.hitTest(_root.bird_flock) && (completed_level == false)) { if (this.hitTest(_root.bird_flock.follower1.flyer)) { if (_root.bird_flock.follower1.flyer.zapping == false) { _root.bird_flock.follower1.flyer.zapping = true; _root.bird_flock.follower1.flyer.gotoAndPlay("storm"); _root.sound_clip_storm.gotoAndPlay(2); } } if (this.hitTest(_root.bird_flock.follower2.flyer)) { if (_root.bird_flock.follower2.flyer.zapping == false) { _root.bird_flock.follower2.flyer.zapping = true; _root.bird_flock.follower2.flyer.gotoAndPlay("storm"); _root.sound_clip_storm.gotoAndPlay(2); } } if (this.hitTest(_root.bird_flock.follower3.flyer)) { if (_root.bird_flock.follower3.flyer.zapping == false) { _root.bird_flock.follower3.flyer.zapping = true; _root.bird_flock.follower3.flyer.gotoAndPlay("storm"); _root.sound_clip_storm.gotoAndPlay(2); } } if (this.hitTest(_root.bird_flock.follower4.flyer)) { if (_root.bird_flock.follower4.flyer.zapping == false) { _root.bird_flock.follower4.flyer.zapping = true; _root.bird_flock.follower4.flyer.gotoAndPlay("storm"); _root.sound_clip_storm.gotoAndPlay(2); } } if (this.hitTest(_root.bird_flock.follower5.flyer)) { if (_root.bird_flock.follower5.flyer.zapping == false) { _root.bird_flock.follower5.flyer.zapping = true; _root.bird_flock.follower5.flyer.gotoAndPlay("storm"); _root.sound_clip_storm.gotoAndPlay(2); } } background_speed = background_speed - cloud_speed_drop; if (background_speed < background_speed_min) { background_speed = background_speed_min; } energy = energy - cloud_energy_drop; if (_root.fuel_gauge_mc._currentframe == 1) { _root.fuel_gauge_mc.gotoAndPlay(2); } } } else { this.delay_count = 0; this.flight_count = 0; this._y = this.start_y; _root.clouds_front_mc._y = _root.clouds_front_mc.start_y; rand_x = Math.round(Math.random() * (_root.clouds_x_max._x - _root.clouds_x_min._x)) + _root.clouds_x_min._x; this._x = rand_x; _root.clouds_front_mc._x = rand_x; rand_scale = Math.round((Math.random() * (this.base_size_max - this.base_size_min)) + this.base_size_min); _root.clouds_back_mc._xscale = rand_scale; _root.clouds_back_mc._yscale = rand_scale; _root.clouds_front_mc._xscale = rand_scale; _root.clouds_front_mc._yscale = rand_scale; this.speed = (60 / rand_scale) * clouds_back_mc.speed_base; this.sound_playing = false; this.delay_count_random = Math.round(random(this.delay_count_random_range)); this.delay_count_mark = this.delay_count_base + this.delay_count_random; if (percent_distance >= 0.9) { _root.clouds_back_mc.gotoAndStop(2); _root.clouds_front_mc.gotoAndStop(2); } } } else if (percent_distance < 0.9) { this.delay_count++; } } }; jetstream_mc.start_y = jetstream_mc._y; jetstream_mc.delay_count = 0; switch (landscape) { case "rural" : jetstream_mc.delay_count_base = 400; jetstream_mc.delay_count_random_range = 200; jetstream_mc.speed = 4; break; case "suburban" : jetstream_mc.delay_count_base = 300; jetstream_mc.delay_count_random_range = 200; jetstream_mc.speed = 6; break; case "urban" : jetstream_mc.delay_count_base = 200; jetstream_mc.delay_count_random_range = 200; jetstream_mc.speed = 7.5; break; default : jetstream_mc.delay_count_base = 400; jetstream_mc.delay_count_random_range = 200; jetstream_mc.speed = 6; } jetstream_mc.delay_count_random = Math.round(random(jetstream_mc.delay_count_random_range)); jetstream_mc.delay_count_mark = jetstream_mc.delay_count_base + jetstream_mc.delay_count_random; jetstream_mc.delay_count_random = Math.round(random(1)); jetstream_mc.delay_count_mark = jetstream_mc.delay_count_mark + jetstream_mc.delay_count_random; rand_x2 = clouds_back_mc._x; while (Math.abs(rand_x2 - clouds_back_mc._x) < 150) { rand_x2 = Math.round(Math.random() * (clouds_x_max._x - clouds_x_min._x)) + clouds_x_min._x; } jetstream_mc._x = rand_x2; jetstream_mc_B._x = rand_x2; jetstream_mc.flying = false; jetstream_mc.sound_playing = false; jetstream_mc.nitro_created = false; jetstream_mc.nitro_start_count = 52; jetstream_mc.nitro_acceleration = 0.0107; jetstream_mc.nitro_speed = 0; jetstream_mc.pre_nitro_speed = 0; jetstream_mc.nitro_wind_resistance = 0.22; jetstream_mc.onEnterFrame = function () { if (game_started) { if (this.delay_count == this.delay_count_mark) { if (this._y < _root.offstage_y_max._y) { this._y = this._y + (this.speed + background_speed); _root.jetstream_mc_B._y = _root.jetstream_mc_B._y + (this.speed + background_speed); if ((this.hitTest(_root.bird_flock) && (completed_level == false)) && (_root.bird_flock.colliding == false)) { _root.score_mc.bonus_points = _root.score_mc.bonus_points + 30; energy = energy + jetstream_energy_boost; if (this.sound_playing == false) { this.sound_playing = true; _root.sound_clip_jetstream.gotoAndStop(2); _root.jetstream_mc.gotoAndPlay(2); _root.jetstream_mc_B.gotoAndPlay(2); } if (this.nitro_created == false) { this.nitro_created = true; this.nitro_count = this.nitro_start_count; this.nitro_speed = 0; this.pre_nitro_speed = background_speed; _root.bird_flock.follower1.flyer.gotoAndPlay("jetstream"); _root.bird_flock.follower2.flyer.gotoAndPlay("jetstream"); _root.bird_flock.follower3.flyer.gotoAndPlay("jetstream"); _root.bird_flock.follower4.flyer.gotoAndPlay("jetstream"); _root.bird_flock.follower5.flyer.gotoAndPlay("jetstream"); _root.metronome_glide_mc.gotoAndStop(2); if (_root.fuel_gauge_mc._currentframe != 1) { _root.fuel_gauge_mc.gotoAndStop(1); } } } } else { this.delay_count = 0; this.delay_count_random = Math.round(random(this.delay_count_random_range)); this.delay_count_mark = this.delay_count_base + this.delay_count_random; this._y = this.start_y; _root.jetstream_mc._y = _root.jetstream_mc.start_y; _root.jetstream_mc_B._y = _root.jetstream_mc.start_y; rand_x2 = Math.round(Math.random() * (clouds_x_max._x - clouds_x_min._x)) + clouds_x_min._x; this._x = rand_x2; _root.jetstream_mc_B._x = rand_x2; this.sound_playing = false; } } else if (percent_distance < 0.8) { this.delay_count++; } if (this.nitro_created == true) { if (this.nitro_count == 0) { background_speed = background_speed - this.nitro_wind_resistance; if (background_speed <= this.pre_nitro_speed) { background_speed = this.pre_nitro_speed; this.nitro_created = false; _root.metronome_glide_mc.gotoAndStop(1); trace("slowed back down"); } } else { this.nitro_speed = this.nitro_speed + this.nitro_acceleration; background_speed = background_speed + this.nitro_speed; this.nitro_count--; } } } }; score_mc.score_count = 0; score_mc.speed_bonus = 0; score_mc.bonus_points = 0; score_mc.onEnterFrame = function () { if (game_started) { if (this.score_count == 8) { this.score_count = 0; this.base_score = Math.round(percent_distance * 200); this.base_score = Math.round(this.base_score) * 10; if (background_speed > 1) { this.speed_bonus = this.speed_bonus + (Math.round(background_speed) * 10); } _root.score = ((start_score + this.base_score) + this.speed_bonus) + this.bonus_points; } else { this.score_count++; } } };
Instance of Symbol 548 MovieClip "airplane_mc" in Frame 90
/* no clip actions */
Instance of Symbol 592 MovieClip "test_mc" in Frame 90
onClipEvent (load) { this.count = 0; } onClipEvent (enterFrame) { this.count++; }
Frame 100
stop(); stopAllSounds(); game_over_mc1.gotoAndStop(landscape); game_over_mc1.continue_button.onPress = function () { switch (landscape) { case "rural" : gotoAndStop ("instructions_2A"); return; case "suburban" : gotoAndStop ("instructions_2B"); return; case "urban" : gotoAndStop ("instructions_2C"); return; default : gotoAndStop ("instructions_2A"); } };
Frame 111
stop(); stopAllSounds(); finish_mc1.gotoAndStop(landscape); finish_mc1.continue_button.onPress = function () { switch (landscape) { case "rural" : gotoAndStop ("instructions_2A"); return; case "suburban" : gotoAndStop ("instructions_2B"); return; case "urban" : gotoAndStop ("instructions_2C"); return; default : gotoAndStop ("instructions_2A"); } };
Frame 120
stop(); soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_1.attachSound("soundtrack_rural_1"); soundtrack_2.attachSound("soundtrack_rural_2"); soundtrack_3.start(0, 5);
Frame 130
stop(); soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_1.attachSound("soundtrack_suburban_1"); soundtrack_2.attachSound("soundtrack_suburban_2"); soundtrack_3.start(0, 5);
Frame 140
stop(); soundtrack_1.stop(); soundtrack_2.stop(); soundtrack_1.attachSound("soundtrack_urban_1"); soundtrack_2.attachSound("soundtrack_urban_2"); soundtrack_3.




http://swfchan.com/44/216606/info.shtml
Created: 25/1 -2019 16:38:19 Last modified: 25/1 -2019 16:38:19 Server time: 03/05 -2024 23:12:49