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

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

Fasan Fösning.swf

This is the info page for
Flash #29521

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


Text
Password:

Press Ctrl
to toggle

Start Mission

Start Mission

Start Mission

Mission Briefing

Mission Briefing

Mission Briefing

Officers Cabinet

Officers Cabinet

Officers Cabinet

OK

OK

Brought to you by
www.fuckturas.com

Mr. Noodles

Mr. Teapot

Ryuu

Elastic Roof

Script Officer:

Artwork Officer:

Lieutenant:

Super Ninja:

Hosted by www.albinoblacksheep.com

00:

00

02

Mr.Teapot: We have an important
mission for you, Lieutenant Ryuu. A
humungus amount of ducks is loose in
the parks, threatening the national
security. They must be ... removed.

DUCK

YOU

Mr.Noodles: To do
so you will have to
chase those bastards
into these areas,

where they will be ... taken care of by our
airforce. Move with the arrow keys.

DUCK AREA

Mr.Teapot: You will have a certain
amount of time to do this, or you will loose
one of your very special extra lifes. How
and why is classified. The time you have left
is shown at the timer, and how many ducks
that are left outside the duck area is shown
in the duck counter.

TIMER

ALIVE

EXTRA LIFES

DEAD

DUCK
COUNTER

ABORT
BUTTON

P

Mr.Noodles: Sadly but true, these
parks are filled up with stuff, like trees,
bushes and benches. You will have to
cope with that. It's really not that hard.

BENCH

BUSH

Don't forget that if you feel
that the pressure is too high,
press the abort button,
shown above, and you will
be returned to the main
screen, or you can just press
P to pause the game.

TREE

PAUSE
BUTTON

Elastic Roof: Your mission is divided
into 5 objectives, or levels, concerning 5
different parks. There are Smallville
Park, Fountain Fauna Park, Cross
Country Park, Wild Walk Park and
Greatville Park. Detailed information
about each objective is shown before
each level. You can also use the radar
to locate all the ducks.
Just press M. Haijaa!

Ryuu (you): Yup. Ok. Got it. Right. I'm
on it. Just let me out in the wilderness
and I'll catch those bastard ducks!

M

MAP RADAR

OBJECTIVE I

2 ducks
1 minutes 30 seconds

Smallville Park

PAUSED

OBJECTIVE I:
FAILED

OBJECTIVE I:
ACCOMPLISHED

OBJECTIVE II

3 ducks
2 minutes 0 seconds

Fountain Fauna Park

password: fyffes

OBJECTIVE II:
FAILED

OBJECTIVE II:
ACCOMPLISHED

OBJECTIVE III

5 ducks
2 minutes 0 seconds

Cross Country Park

password: arla

OBJECTIVE III:
FAILED

OBJECTIVE III:
ACCOMPLISHED

OBJECTIVE IV

8 ducks
1 minutes 40 seconds

Wild Walk Park

password: manson

OBJECTIVE IV:
FAILED

OBJECTIVE IV:
ACCOMPLISHED

OBJECTIVE V

10 ducks
3 minutes 0 seconds

Greatville Park

password: telebjan

OBJECTIVE V:
FAILED

OBJECTIVE V:
ACCOMPLISHED

Objectives
Accomplished:

Total Ducks
Captured:

Total Time:

MISSION:
FAILED

Smallville Park

Fountain Fauna Park

Cross Country Park

Wild Walk Park

Greatville Park

0

0

0

0

MISSION:
ACCOMPLISHED!

ActionScript [AS1/AS2]

Instance of Symbol 28 MovieClip "preloader" in Frame 1
onClipEvent (load) { _root.preloader.hum = new Sound(_root.preloader); _root.preloader.hum.attachSound("humhum"); _root.preloader.hum.setVolume(0); _root.preloader.hum.start(0, 999); _root.plingV = new Sound(); _root.plingV.attachSound("plingV"); _root.plingV.setVolume(100); }
Frame 2
_root.song = new Sound(); _root.song.attachSound("song"); _root.menuChoice = "play"; _root.soundPos = "ON"; _root.chooser._x = 131; _root.chooser._y = 200; _root.swishS = new Sound(); _root.swishS.attachSound("swish"); _root.swishS.setVolume(100); _root.tuck = new Sound(); _root.tuck.attachSound("tuck"); _root.tuck.setVolume(100); _root.stepA1 = new Sound(); _root.stepA1.attachSound("stepA1"); _root.stepA1.setVolume(100); _root.stepA2 = new Sound(); _root.stepA2.attachSound("stepA2"); _root.stepA2.setVolume(100); _root.stepA3 = new Sound(); _root.stepA3.attachSound("stepA3"); _root.stepA3.setVolume(100); _root.stepA4 = new Sound(); _root.stepA4.attachSound("stepA4"); _root.stepA4.setVolume(100); _root.stepB1 = new Sound(); _root.stepB1.attachSound("stepB1"); _root.stepB1.setVolume(100); _root.stepB2 = new Sound(); _root.stepB2.attachSound("stepB2"); _root.stepB2.setVolume(100); _root.stepB3 = new Sound(); _root.stepB3.attachSound("stepB3"); _root.stepB3.setVolume(100); _root.pip = new Sound(); _root.pip.attachSound("pip"); _root.pip.setVolume(100); _root.die = new Sound(); _root.die.attachSound("die"); _root.die.setVolume(100); _root.failedS = new Sound(); _root.failedS.attachSound("noS"); _root.failedS.setVolume(100); _root.completedS = new Sound(); _root.completedS.attachSound("woho"); _root.completedS.setVolume(100); _root.kvack1 = new Sound(); _root.kvack1.attachSound("kvack1"); _root.kvack1.setVolume(100); _root.kvack2 = new Sound(); _root.kvack2.attachSound("kvack2"); _root.kvack2.setVolume(100); _root.kvack3 = new Sound(); _root.kvack3.attachSound("kvack3"); _root.kvack3.setVolume(100); _root.kvack4 = new Sound(); _root.kvack4.attachSound("kvack4"); _root.kvack4.setVolume(100); _root.klarS = 0; _root.onEnterFrame = function () { if ((Key.isDown(65) && (Key.isDown(107))) && (Key.isDown(79))) { _root.duck._y = _root.goal._y; _root.duck2._y = _root.goal._y; _root.duck3._y = _root.goal._y; _root.duck4._y = _root.goal._y; _root.duck5._y = _root.goal._y; _root.duck6._y = _root.goal._y; _root.duck7._y = _root.goal._y; _root.duck8._y = _root.goal._y; _root.duck9._y = _root.goal._y; _root.duck10._y = _root.goal._y; _root.duck._x = _root.goal._x; _root.duck2._x = _root.goal._x; _root.duck3._x = _root.goal._x; _root.duck4._x = _root.goal._x; _root.duck5._x = _root.goal._x; _root.duck6._x = _root.goal._x; _root.duck7._x = _root.goal._x; _root.duck8._x = _root.goal._x; _root.duck9._x = _root.goal._x; _root.duck10._x = _root.goal._x; } if (_root.klarS > 0) { _root.klarS = _root.klarS - 1; } if (Key.isDown(13) && (_root.klarS == 0)) { if (_root.soundPos == "ON") { _root.soundPos = "OFF"; _root.soundButton.gotoAndStop("soundOFF"); _root.tuck.setVolume(0); } else if (_root.soundPos == "OFF") { _root.soundPos = "ON"; _root.soundButton.gotoAndStop("soundON"); _root.tuck.setVolume(100); } _root.klarS = 5; } };
Instance of Symbol 30 MovieClip "chooser" in Frame 2
onClipEvent (load) { Selection.setFocus(_root.fuskField); } onClipEvent (enterFrame) { if (menutimer > 0) { menutimer = menutimer - 1; } else if (Key.isDown(40)) { if (_root.menuChoice == "play") { _root.menuChoice = "briefing"; Selection.setFocus(_root.fuskField); menutimer = 3; } else if (_root.menuChoice == "briefing") { _root.menuChoice = "cabinet"; Selection.setFocus(_root.fuskField); menutimer = 3; } else if (_root.menuChoice == "cabinet") { _root.menuChoice = "password"; Selection.setFocus(_root.textField); menutimer = 3; } else if (_root.menuChoice == "password") { _root.menuChoice = "play"; Selection.setFocus(_root.fuskField); menutimer = 3; } } else if (Key.isDown(38)) { if (_root.menuChoice == "briefing") { _root.menuChoice = "play"; Selection.setFocus(_root.fuskField); menutimer = 3; } else if (_root.menuChoice == "cabinet") { _root.menuChoice = "briefing"; Selection.setFocus(_root.fuskField); menutimer = 3; } else if (_root.menuChoice == "password") { _root.menuChoice = "cabinet"; Selection.setFocus(_root.fuskField); menutimer = 3; } else if (_root.menuChoice == "play") { _root.menuChoice = "password"; Selection.setFocus(_root.textField); menutimer = 3; } } if (_root.menuChoice == "play") { this._x = 131; this._y = 200; } else if (_root.menuChoice == "briefing") { this._x = 103; this._y = 240; } else if (_root.menuChoice == "cabinet") { this._x = 102; this._y = 280; } else if (_root.menuChoice == "password") { this._x = 55; this._y = 360; } if (Key.isDown(13)) { if (_root.menuChoice == "password") { if (_root.passField == "fyffes") { _root.passOut = 2; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "arla") { _root.passOut = 3; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "manson") { _root.passOut = 4; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "telebjan") { _root.passOut = 5; _root.menuChoice = "play"; _root.play(); } else { _root.passField = "WRONG!"; } } else { _root.play(); } } }
Frame 3
if (_root.soundPos == "ON") { _root.swishS.start(0.1, 1); }
Instance of Symbol 61 MovieClip "soundButton" in Frame 3
on (release) { if (_root.soundPos == "ON") { _root.soundPos = "OFF"; this.gotoAndStop("soundOFF"); _root.tuck.setVolume(0); } else if (_root.soundPos == "OFF") { _root.soundPos = "ON"; this.gotoAndStop("soundON"); _root.tuck.setVolume(100); } }
Frame 8
stop();
Frame 9
_root.swishS.start(0.1, 1);
Frame 13
if (_root.menuChoice == "play") { gotoAndPlay (27); } else if (_root.menuChoice == "briefing") { gotoAndPlay (64); } else if (_root.menuChoice == "cabinet") { gotoAndPlay (15); }
Frame 15
if (_root.soundPos == "ON") { _root.song.start(0, 9999); }
Frame 20
stop();
Frame 25
_root.song.stop(); gotoAndPlay (3);
Frame 27
_root.ducksLeft = "02";
Instance of Symbol 84 MovieClip "clock" in Frame 27
onClipEvent (load) { _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; _root.sek = 30; _root.mins = 1; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 84 MovieClip "clock" in Frame 34
onClipEvent (load) { _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; _root.sek = 30; _root.mins = 1; }
Frame 44
_root.totalFps = 0; _root.life = 3; _root.dead = false; if (_root.passOut == 2) { _root.levelClear = 1; gotoAndPlay (123); _root.ducksComplete = 2; _root.totalMin = 1; _root.totalSek = 30; _root.passOut = 1; } else if (_root.passOut == 3) { _root.levelClear = 2; gotoAndPlay (141); _root.ducksComplete = 5; _root.totalMin = 3; _root.totalSek = 30; _root.passOut = 1; } else if (_root.passOut == 4) { _root.levelClear = 3; gotoAndPlay (159); _root.ducksComplete = 10; _root.totalMin = 5; _root.totalSek = 20; _root.passOut = 1; } else if (_root.passOut == 5) { _root.levelClear = 4; gotoAndPlay (177); _root.ducksComplete = 18; _root.totalMin = 7; _root.totalSek = 0; _root.passOut = 1; } else { _root.levelClear = 0; gotoAndPlay (105); _root.ducksComplete = 0; _root.totalMin = 0; _root.totalSek = 0; _root.passOut = 1; }
Instance of Symbol 101 MovieClip in Frame 46
onClipEvent (load) { _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 46
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Instance of Symbol 84 MovieClip in Frame 46
onClipEvent (load) { _root.clock.stor._rotation = 180; _root.clock.liten._rotation = -90; }
Instance of Symbol 98 MovieClip "life3" in Frame 50
onClipEvent (load) { if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Instance of Symbol 98 MovieClip "life2" in Frame 52
onClipEvent (load) { if (_root.life <= 1) { _root.life2.gotoAndStop(22); } }
Instance of Symbol 98 MovieClip "life1" in Frame 54
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } }
Instance of Symbol 98 MovieClip "life3" in Frame 55
onClipEvent (load) { this.gotoAndStop(22); }
Instance of Symbol 98 MovieClip "life2" in Frame 57
onClipEvent (load) { this.gotoAndStop(22); }
Instance of Symbol 98 MovieClip "life1" in Frame 59
onClipEvent (load) { this.gotoAndStop(22); }
Frame 63
gotoAndPlay (3);
Frame 64
_root.ducksLeft = "02";
Frame 69
stop();
Instance of Symbol 84 MovieClip "clock" in Frame 75
onClipEvent (load) { _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; _root.sek = 30; _root.mins = 1; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 98 MovieClip "life3" in Frame 75
onClipEvent (load) { this.gotoAndStop(22); }
Frame 79
stop();
Frame 89
stop();
Frame 99
stop();
Frame 104
gotoAndPlay (3);
Frame 105
_root.ducksLeft = "02";
Instance of Symbol 84 MovieClip "clock" in Frame 105
onClipEvent (load) { _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; _root.sek = 30; _root.mins = 1; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Frame 109
stop();
Frame 114
_root.dirtime = 0; _root.stand._rotation = 90; _root.dir = 1; _root.walk = "go"; _root.ducksLeft = "02"; _root.ducksTT = 10; _root.ducksLT = 2; _root.duckT = 1; _root.duck2T = 1; _root.duck3T = 1; _root.duck4T = 1; _root.duck5T = 1; _root.duck6T = 1; _root.duck7T = 1; _root.duck8T = 1; _root.duck9T = 1; _root.duck10T = 1; _root.cleared == false;
Instance of Symbol 231 MovieClip "radar" in Frame 114
onClipEvent (load) { fardig = 0; _root.radarV = true; pos = "ut"; this._x = 573; } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } } onClipEvent (enterFrame) { this.antling._x = (_root.stand._x - _root.fence._x) / 10; this.antling._y = (_root.stand._y - _root.fence._y) / 10; this.d1._x = (_root.duck._x - _root.fence._x) / 10; this.d1._y = (_root.duck._y - _root.fence._y) / 10; this.d2._x = (_root.duck2._x - _root.fence._x) / 10; this.d2._y = (_root.duck2._y - _root.fence._y) / 10; if (_root.duckT == 0) { this.d1._visible = false; } else { this.d1._visible = true; } if (_root.duck2T == 0) { this.d2._visible = false; } else { this.d2._visible = true; } if (fardig > 0) { fardig = fardig - 1; } if (Key.isDown(77) && (fardig == 0)) { fardig = 5; if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } if ((pos == "in") && (this._x > 514)) { this._x = this._x - (2 + ((this._x - 514) / 6)); if (this.letter._alpha > 0) { this.letter._alpha = this.letter._alpha - 10; } } else if ((pos == "ut") && (this._x < 573)) { this._x = this._x + (2 + ((573 - this._x) / 6)); if (this.letter._alpha < 100) { this.letter._alpha = this.letter._alpha + 10; } } }
Instance of Symbol 84 MovieClip "clock" in Frame 114
onClipEvent (load) { _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; _root.sek = 30; _root.mins = 1; } onClipEvent (enterFrame) { if (_root.pausV == false) { _root.totalFps = _root.totalFps + 1; if (_root.totalFps >= 20) { _root.totalFps = 0; _root.totalSek = _root.totalSek + 1; } if (_root.totalSek >= 60) { _root.totalSek = 0; _root.totalMin = _root.totalMin + 1; } if ((_root.sek >= 0) && (_root.mins >= 0)) { _root.fps = _root.fps + 1; _root.clock.liten._rotation = _root.clock.liten._rotation - 0.005; _root.clock.stor._rotation = _root.clock.stor._rotation - 0.3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } if (_root.fps == 20) { _root.sek = _root.sek - 1; _root.fps = 0; if (((_root.mins <= 0) && (_root.sek <= 10)) && (_root.sek > 0)) { _root.pip.start(0, 1); } } if (_root.sek == -1) { _root.mins = _root.mins - 1; _root.sek = 59; } } else { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -180; } } }
Instance of Symbol 101 MovieClip in Frame 114
onClipEvent (enterFrame) { if (_root.duck.hitTest(_root.goal.goal1)) { _root.duckT = 0; } else { _root.duckT = 1; } if (_root.duck2.hitTest(_root.goal.goal1)) { _root.duck2T = 0; } else { _root.duck2T = 1; } _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 114
onClipEvent (enterFrame) { if ((_root.mins == 0) && (_root.sek == 0)) { _root.life = _root.life - 1; if (_root.life < 0) { if (klar != 1) { if (_root.soundPos == "ON") { _root.die.start(0, 1); } klar = 1; } } else { if (_root.life == 2) { _root.life1.gotoAndPlay(2); } else if (_root.life == 1) { _root.life2.gotoAndPlay(2); } else if (_root.life == 0) { _root.life3.gotoAndPlay(2); } if (_root.soundPos == "ON") { _root.die.start(0, 1); } _root.play(); _root.sek = 30; _root.mins = 1; _root.clock.stor._rotation = 90; _root.clock.liten._rotation = -171; _root.fps = 0; } } }
Instance of Symbol 140 MovieClip "duck" in Frame 115
onClipEvent (load) { duckDir = 4; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < 118) { this._x = 118; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > 506) { this._x = 506; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < 48) { this._y = 48; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > 356) { this._y = 356; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } } }
Instance of Symbol 140 MovieClip "duck2" in Frame 115
onClipEvent (load) { duckDir = 7; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < 118) { this._x = 118; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > 506) { this._x = 506; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < 48) { this._y = 48; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > 356) { this._y = 356; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } } }
Instance of Symbol 244 MovieClip "run2" in Frame 115
onClipEvent (enterFrame) { if (this._visible == true) { this.play(); } else { this.stop(); } }
Instance of Symbol 266 MovieClip "stand" in Frame 115
onClipEvent (enterFrame) { if (_root.pausV == false) { if (_root.dirtime > 0) { _root.dirtime = _root.dirtime - 1; } _root.run._x = _root.stand._x; _root.run._y = _root.stand._y; _root.run2._x = _root.stand._x; _root.run2._y = _root.stand._y; _root.run._rotation = _root.stand._rotation; _root.run2._rotation = _root.stand._rotation; if (_root.stand._x >= 495) { _root.stand._x = 495; } if (_root.stand._x < 130) { _root.stand._x = 130; } if (_root.stand._y > 345) { _root.stand._y = 345; } if (_root.stand._y < 55) { _root.stand._y = 55; } if ((_root.stand._x > (_root.bench._x - 97)) && (_root.stand._x < (_root.bench._x + 97))) { if ((_root.stand._y < _root.bench._y) && (_root.stand._y >= (_root.bench._y - 48))) { _root.stand._y = _root.bench._y - 48; } else if ((_root.stand._y > _root.bench._y) && (_root.stand._y <= (_root.bench._y + 61))) { _root.stand._y = _root.bench._y + 61; } } if ((_root.stand._y > (_root.bench._y - 35)) && (_root.stand._y < (_root.bench._y + 48))) { if ((_root.stand._x < _root.bench._x) && (_root.stand._x >= (_root.bench._x - 110))) { _root.stand._x = _root.bench._x - 110; } else if ((_root.stand._x > _root.bench._x) && (_root.stand._x <= (_root.bench._x + 110))) { _root.stand._x = _root.bench._x + 110; } } if ((_root.stand._x > (_root.bush._x - 43)) && (_root.stand._x < (_root.bush._x + 43))) { if ((_root.stand._y < _root.bush._y) && (_root.stand._y >= (_root.bush._y - 56))) { _root.stand._y = _root.bush._y - 56; } else if ((_root.stand._y > _root.bush._y) && (_root.stand._y <= (_root.bush._y + 56))) { _root.stand._y = _root.bush._y + 56; } } if ((_root.stand._y > (_root.bush._y - 43)) && (_root.stand._y < (_root.bush._y + 43))) { if ((_root.stand._x < _root.bush._x) && (_root.stand._x >= (_root.bush._x - 56))) { _root.stand._x = _root.bush._x - 56; } else if ((_root.stand._x > _root.bush._x) && (_root.stand._x <= (_root.bush._x + 56))) { _root.stand._x = _root.bush._x + 56; } } if ((_root.stand._x > (_root.tree._x - 6)) && (_root.stand._x < (_root.tree._x + 6))) { if ((_root.stand._y < _root.tree._y) && (_root.stand._y >= (_root.tree._y - 16))) { _root.stand._y = _root.tree._y - 16; } else if ((_root.stand._y > _root.tree._y) && (_root.stand._y <= (_root.tree._y + 16))) { _root.stand._y = _root.tree._y + 16; } } if ((_root.stand._y > (_root.tree._y - 6)) && (_root.stand._y < (_root.tree._y + 6))) { if ((_root.stand._x < _root.tree._x) && (_root.stand._x >= (_root.tree._x - 16))) { _root.stand._x = _root.tree._x - 16; } else if ((_root.stand._x > _root.tree._x) && (_root.stand._x <= (_root.tree._x + 16))) { _root.stand._x = _root.tree._x + 16; } } if (Key.isDown(38) || (Key.isDown(40))) { if ((_root.stand._y > 55) || (_root.stand._y < 345)) { if ((_root.stand._x > 130) || (_root.stand._x < 495)) { if ((_root.stand._x == 130) || (_root.stand._x == 495)) { if ((_root.dir == 1) || (_root.dir == 5)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else if ((_root.stand._y == 55) || (_root.stand._y == 345)) { if ((_root.dir == 3) || (_root.dir == 7)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } } } else { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } if (_root.dir == 9) { _root.dir = 1; } if (_root.dir == 0) { _root.dir = 8; } if (Key.isDown(37)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation - 45; _root.dir = _root.dir - 1; _root.dirtime = 3; } } if (Key.isDown(39)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation + 45; _root.dir = _root.dir + 1; _root.dirtime = 3; } } if ((_root.stand._x <= 495) && (_root.stand._x >= 130)) { if ((_root.stand._y <= 345) && (_root.stand._y >= 55)) { if (Key.isDown(38)) { if (_root.dir == 1) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } } if (Key.isDown(40)) { if (_root.dir == 1) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } } } } } }
Instance of Symbol 272 MovieClip "paus" in Frame 115
onClipEvent (load) { this._visible = false; _root.pausV = false; klar = 0; } onClipEvent (enterFrame) { if (Key.isDown(80) && (klar == 0)) { klar = 3; if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } } if (klar > 0) { klar = klar - 1; } }
Frame 118
stop();
Instance of Symbol 276 MovieClip "fail" in Frame 118
onClipEvent (load) { _root.dead = false; } onClipEvent (enterFrame) { if (((_root.life < 0) && (_root.dead == false)) && (_root.life3._currentframe > 21)) { _root.fail.play(); _root.dead = true; _root.pausV = false; _root.paus._visible = false; } }
Instance of Symbol 279 MovieClip "comp1" in Frame 118
onClipEvent (enterFrame) { if ((_root.ducksTT == 0) && (_root.cleared != true)) { _root.cleared = true; _root.comp1.play(); klar = 1; _root.ducksComplete = _root.ducksComplete + _root.ducksLT; } }
Frame 122
if (_root.cleared == true) { gotoAndPlay (123); _root.cleared = false; _root.levelClear = _root.levelClear + 1; _root.passField = "fyffes"; } else if (_root.life >= 0) { gotoAndPlay (114); } else { gotoAndPlay (195); }
Frame 123
_root.ducksLeft = "03";
Instance of Symbol 84 MovieClip "clock" in Frame 123
onClipEvent (load) { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -168; _root.fps = 0; _root.sek = 0; _root.mins = 2; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 98 MovieClip "life1" in Frame 123
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Frame 127
stop();
Frame 132
_root.dirtime = 0; _root.stand._rotation = 90; _root.dir = 1; _root.walk = "go"; _root.ducksLeft = "03"; _root.ducksTT = 0; _root.ducksLT = 3; _root.duckT = 1; _root.duck2T = 1; _root.duck3T = 1; _root.duck4T = 1; _root.duck5T = 1; _root.duck6T = 1; _root.duck7T = 1; _root.duck8T = 1; _root.duck9T = 1; _root.duck10T = 1;
Instance of Symbol 286 MovieClip "radar" in Frame 132
onClipEvent (load) { fardig = 0; if (_root.radarV == true) { pos = "ut"; this._x = 595; } else if (_root.radarV == false) { pos = "in"; this._x = 491; this.letter._alpha = 0; } else { _root.radarV = true; pos = "ut"; this._x = 595; } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } } onClipEvent (enterFrame) { this.antling._x = (_root.stand._x - _root.fence._x) / 10; this.antling._y = (_root.stand._y - _root.fence._y) / 10; this.d1._x = (_root.duck._x - _root.fence._x) / 10; this.d1._y = (_root.duck._y - _root.fence._y) / 10; this.d2._x = (_root.duck2._x - _root.fence._x) / 10; this.d2._y = (_root.duck2._y - _root.fence._y) / 10; this.d3._x = (_root.duck3._x - _root.fence._x) / 10; this.d3._y = (_root.duck3._y - _root.fence._y) / 10; if (_root.duckT == 0) { this.d1._visible = false; } else { this.d1._visible = true; } if (_root.duck2T == 0) { this.d2._visible = false; } else { this.d2._visible = true; } if (_root.duck3T == 0) { this.d3._visible = false; } else { this.d3._visible = true; } if (fardig > 0) { fardig = fardig - 1; } if (Key.isDown(77) && (fardig == 0)) { fardig = 5; if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } if ((pos == "in") && (this._x > 491)) { this._x = this._x - (2 + ((this._x - 491) / 6)); if (this.letter._alpha > 0) { this.letter._alpha = this.letter._alpha - 10; } } else if ((pos == "ut") && (this._x < 595)) { this._x = this._x + (2 + ((595 - this._x) / 6)); if (this.letter._alpha < 100) { this.letter._alpha = this.letter._alpha + 10; } } }
Instance of Symbol 84 MovieClip "clock" in Frame 132
onClipEvent (load) { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -168; _root.fps = 0; _root.sek = 0; _root.mins = 2; } onClipEvent (enterFrame) { if (_root.pausV == false) { _root.totalFps = _root.totalFps + 1; if (_root.totalFps >= 20) { _root.totalFps = 0; _root.totalSek = _root.totalSek + 1; } if (_root.totalSek >= 60) { _root.totalSek = 0; _root.totalMin = _root.totalMin + 1; } if ((_root.sek >= 0) && (_root.mins >= 0)) { _root.fps = _root.fps + 1; _root.clock.liten._rotation = _root.clock.liten._rotation - 0.005; _root.clock.stor._rotation = _root.clock.stor._rotation - 0.3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } if (_root.fps == 20) { _root.sek = _root.sek - 1; _root.fps = 0; if (((_root.mins <= 0) && (_root.sek <= 10)) && (_root.sek > 0)) { _root.pip.start(0, 1); } } if (_root.sek == -1) { _root.mins = _root.mins - 1; _root.sek = 59; } } else { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -180; } } }
Instance of Symbol 101 MovieClip in Frame 132
onClipEvent (enterFrame) { if (_root.duck.hitTest(_root.goal.goal1)) { _root.duckT = 0; } else { _root.duckT = 1; } if (_root.duck2.hitTest(_root.goal.goal1)) { _root.duck2T = 0; } else { _root.duck2T = 1; } if (_root.duck3.hitTest(_root.goal.goal1)) { _root.duck3T = 0; } else { _root.duck3T = 1; } _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 132
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } } onClipEvent (enterFrame) { if ((_root.mins == 0) && (_root.sek == 0)) { _root.life = _root.life - 1; if (_root.life < 0) { if (klar != 1) { if (_root.soundPos == "ON") { _root.die.start(0, 1); } klar = 1; } } else { if (_root.life == 2) { _root.life1.gotoAndPlay(2); } else if (_root.life == 1) { _root.life2.gotoAndPlay(2); } else if (_root.life == 0) { _root.life3.gotoAndPlay(2); } if (_root.soundPos == "ON") { _root.die.start(0, 1); } _root.play(); _root.sek = 0; _root.mins = 2; _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -168; _root.fps = 0; } } }
Instance of Symbol 140 MovieClip "duck" in Frame 133
onClipEvent (load) { duckDir = 8; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 46)) && (this._x < (_root.stone._x + 46))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 44))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 45; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 44))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 45; } } if ((this._y > (_root.stone._y - 36)) && (this._y < (_root.stone._y + 36))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 54))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 55; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 54))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 55; } } if ((this._x > (_root.stone2._x - 36)) && (this._x < (_root.stone2._x + 36))) { if ((this._y < _root.stone2._y) && (this._y >= (_root.stone2._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y - 55; } else if ((this._y > _root.stone2._y) && (this._y <= (_root.stone2._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y + 55; } } if ((this._y > (_root.stone2._y - 46)) && (this._y < (_root.stone2._y + 46))) { if ((this._x < _root.stone2._x) && (this._x >= (_root.stone2._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x - 45; } else if ((this._x > _root.stone2._x) && (this._x <= (_root.stone2._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x + 45; } } if ((this._x > (_root.fount._x - 78)) && (this._x < (_root.fount._x + 78))) { if ((this._y < _root.fount._y) && (this._y >= (_root.fount._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y - 87; } else if ((this._y > _root.fount._y) && (this._y <= (_root.fount._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y + 87; } } if ((this._y > (_root.fount._y - 78)) && (this._y < (_root.fount._y + 78))) { if ((this._x < _root.fount._x) && (this._x >= (_root.fount._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x - 87; } else if ((this._x > _root.fount._x) && (this._x <= (_root.fount._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck2" in Frame 133
onClipEvent (load) { duckDir = 7; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 46)) && (this._x < (_root.stone._x + 46))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 44))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 45; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 44))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 45; } } if ((this._y > (_root.stone._y - 36)) && (this._y < (_root.stone._y + 36))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 54))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 55; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 54))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 55; } } if ((this._x > (_root.stone2._x - 36)) && (this._x < (_root.stone2._x + 36))) { if ((this._y < _root.stone2._y) && (this._y >= (_root.stone2._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y - 55; } else if ((this._y > _root.stone2._y) && (this._y <= (_root.stone2._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y + 55; } } if ((this._y > (_root.stone2._y - 46)) && (this._y < (_root.stone2._y + 46))) { if ((this._x < _root.stone2._x) && (this._x >= (_root.stone2._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x - 45; } else if ((this._x > _root.stone2._x) && (this._x <= (_root.stone2._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x + 45; } } if ((this._x > (_root.fount._x - 78)) && (this._x < (_root.fount._x + 78))) { if ((this._y < _root.fount._y) && (this._y >= (_root.fount._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y - 87; } else if ((this._y > _root.fount._y) && (this._y <= (_root.fount._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y + 87; } } if ((this._y > (_root.fount._y - 78)) && (this._y < (_root.fount._y + 78))) { if ((this._x < _root.fount._x) && (this._x >= (_root.fount._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x - 87; } else if ((this._x > _root.fount._x) && (this._x <= (_root.fount._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck3" in Frame 133
onClipEvent (load) { duckDir = 4; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 46)) && (this._x < (_root.stone._x + 46))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 44))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 45; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 44))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 45; } } if ((this._y > (_root.stone._y - 36)) && (this._y < (_root.stone._y + 36))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 54))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 55; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 54))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 55; } } if ((this._x > (_root.stone2._x - 36)) && (this._x < (_root.stone2._x + 36))) { if ((this._y < _root.stone2._y) && (this._y >= (_root.stone2._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y - 55; } else if ((this._y > _root.stone2._y) && (this._y <= (_root.stone2._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone2._y + 55; } } if ((this._y > (_root.stone2._y - 46)) && (this._y < (_root.stone2._y + 46))) { if ((this._x < _root.stone2._x) && (this._x >= (_root.stone2._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x - 45; } else if ((this._x > _root.stone2._x) && (this._x <= (_root.stone2._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone2._x + 45; } } if ((this._x > (_root.fount._x - 78)) && (this._x < (_root.fount._x + 78))) { if ((this._y < _root.fount._y) && (this._y >= (_root.fount._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y - 87; } else if ((this._y > _root.fount._y) && (this._y <= (_root.fount._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.fount._y + 87; } } if ((this._y > (_root.fount._y - 78)) && (this._y < (_root.fount._y + 78))) { if ((this._x < _root.fount._x) && (this._x >= (_root.fount._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x - 87; } else if ((this._x > _root.fount._x) && (this._x <= (_root.fount._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.fount._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 244 MovieClip "run2" in Frame 133
onClipEvent (enterFrame) { if (this._visible == true) { this.play(); } else { this.stop(); } }
Instance of Symbol 299 MovieClip "fount" in Frame 133
onClipEvent (load) { _root.fount.Vporl.stop(); if (_root.soundPos == "ON") { _root.fount.Vporl = new Sound(_root.fount); _root.fount.Vporl.attachSound("Vporl"); VporlVolume = 0; _root.fount.Vporl.setVolume(VporlVolume); _root.fount.Vporl.start(0, 999); } } onClipEvent (enterFrame) { if (_root.soundPos == "ON") { fountDisx = _root.stand._x - _root.fount._x; if (fountDisx < 0) { fountDisx = fountDisx * -1; } fountDisy = _root.stand._y - _root.fount._y; if (fountDisy < 0) { fountDisy = fountDisy * -1; } if (fountDisx > 350) { fountDisx = 350; } if (fountDisy > 350) { fountDisy = 350; } if (fountDisy > fountDisx) { VporlVolume = 100 - (fountDisy / 3.5); } else { VporlVolume = 100 - (fountDisx / 3.5); } if (VporlVolume > 70) { VporlVolume = 100; } _root.fount.Vporl.setVolume(VporlVolume); if (((_root.mins == 0) && (_root.sek == 0)) || (_root.ducksTT == 0)) { _root.fount.Vporl.stop(); } } else { VporlVolume = 0; _root.fount.Vporl.setVolume(VporlVolume); } }
Instance of Symbol 266 MovieClip "stand" in Frame 133
onClipEvent (enterFrame) { if (_root.pausV == false) { if (_root.dirtime > 0) { _root.dirtime = _root.dirtime - 1; } _root.run._x = _root.stand._x; _root.run._y = _root.stand._y; _root.run2._x = _root.stand._x; _root.run2._y = _root.stand._y; _root.run._rotation = _root.stand._rotation; _root.run2._rotation = _root.stand._rotation; if (Key.isDown(38) || (Key.isDown(40))) { if (_root.stand._x >= 405) { if (_root.fence._x >= 88) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x - 3.5; _root.bush._x = _root.bush._x - 3.5; _root.bench._x = _root.bench._x - 3.5; _root.bench2._x = _root.bench2._x - 3.5; _root.tree._x = _root.tree._x - 3.5; _root.tree2._x = _root.tree2._x - 3.5; _root.duck._x = _root.duck._x - 3.5; _root.duck2._x = _root.duck2._x - 3.5; _root.duck3._x = _root.duck3._x - 3.5; _root.goal._x = _root.goal._x - 3.5; _root.stone._x = _root.stone._x - 3.5; _root.stone2._x = _root.stone2._x - 3.5; _root.path._x = _root.path._x - 3.5; _root.fount._x = _root.fount._x - 3.5; _root.gras._x = _root.gras._x - 3.5; _root.trash._x = _root.trash._x - 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x - 6; _root.bush._x = _root.bush._x - 6; _root.bench._x = _root.bench._x - 6; _root.bench2._x = _root.bench2._x - 6; _root.tree._x = _root.tree._x - 6; _root.tree2._x = _root.tree2._x - 6; _root.duck._x = _root.duck._x - 6; _root.duck2._x = _root.duck2._x - 6; _root.duck3._x = _root.duck3._x - 6; _root.goal._x = _root.goal._x - 6; _root.stone._x = _root.stone._x - 6; _root.stone2._x = _root.stone2._x - 6; _root.path._x = _root.path._x - 6; _root.fount._x = _root.fount._x - 6; _root.gras._x = _root.gras._x - 6; _root.trash._x = _root.trash._x - 6; } _root.stand._x = 405; } else if (_root.stand._x > 495) { _root.stand._x = 495; } } if (_root.stand._x < 210) { if (_root.fence._x <= 537) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x + 3.5; _root.bush._x = _root.bush._x + 3.5; _root.bench._x = _root.bench._x + 3.5; _root.bench2._x = _root.bench2._x + 3.5; _root.tree._x = _root.tree._x + 3.5; _root.tree2._x = _root.tree2._x + 3.5; _root.duck._x = _root.duck._x + 3.5; _root.duck2._x = _root.duck2._x + 3.5; _root.duck3._x = _root.duck3._x + 3.5; _root.goal._x = _root.goal._x + 3.5; _root.stone._x = _root.stone._x + 3.5; _root.stone2._x = _root.stone2._x + 3.5; _root.path._x = _root.path._x + 3.5; _root.fount._x = _root.fount._x + 3.5; _root.gras._x = _root.gras._x + 3.5; _root.trash._x = _root.trash._x + 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x + 6; _root.bush._x = _root.bush._x + 6; _root.bench._x = _root.bench._x + 6; _root.bench2._x = _root.bench2._x + 6; _root.tree._x = _root.tree._x + 6; _root.tree2._x = _root.tree2._x + 6; _root.duck._x = _root.duck._x + 6; _root.duck2._x = _root.duck2._x + 6; _root.duck3._x = _root.duck3._x + 6; _root.goal._x = _root.goal._x + 6; _root.stone._x = _root.stone._x + 6; _root.stone2._x = _root.stone2._x + 6; _root.path._x = _root.path._x + 6; _root.fount._x = _root.fount._x + 6; _root.gras._x = _root.gras._x + 6; _root.trash._x = _root.trash._x + 6; } _root.stand._x = 210; } else if (_root.stand._x < 130) { _root.stand._x = 130; } } if (_root.stand._y >= 255) { if (_root.fence._y >= 18) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y - 3.5; _root.bush._y = _root.bush._y - 3.5; _root.bench._y = _root.bench._y - 3.5; _root.bench2._y = _root.bench2._y - 3.5; _root.tree._y = _root.tree._y - 3.5; _root.tree2._y = _root.tree2._y - 3.5; _root.duck._y = _root.duck._y - 3.5; _root.duck2._y = _root.duck2._y - 3.5; _root.duck3._y = _root.duck3._y - 3.5; _root.goal._y = _root.goal._y - 3.5; _root.stone._y = _root.stone._y - 3.5; _root.stone2._y = _root.stone2._y - 3.5; _root.path._y = _root.path._y - 3.5; _root.fount._y = _root.fount._y - 3.5; _root.gras._y = _root.gras._y - 3.5; _root.trash._y = _root.trash._y - 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y - 6; _root.bush._y = _root.bush._y - 6; _root.bench._y = _root.bench._y - 6; _root.bench2._y = _root.bench2._y - 6; _root.tree._y = _root.tree._y - 6; _root.tree2._y = _root.tree2._y - 6; _root.duck._y = _root.duck._y - 6; _root.duck2._y = _root.duck2._y - 6; _root.duck3._y = _root.duck3._y - 6; _root.goal._y = _root.goal._y - 6; _root.stone._y = _root.stone._y - 6; _root.stone2._y = _root.stone2._y - 6; _root.path._y = _root.path._y - 6; _root.fount._y = _root.fount._y - 6; _root.gras._y = _root.gras._y - 6; _root.trash._y = _root.trash._y - 6; } _root.stand._y = 255; } else if (_root.stand._y > 345) { _root.stand._y = 345; } } if (_root.stand._y <= 145) { if (_root.fence._y <= 380) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y + 3.5; _root.bush._y = _root.bush._y + 3.5; _root.bench._y = _root.bench._y + 3.5; _root.bench2._y = _root.bench2._y + 3.5; _root.tree._y = _root.tree._y + 3.5; _root.tree2._y = _root.tree2._y + 3.5; _root.duck._y = _root.duck._y + 3.5; _root.duck2._y = _root.duck2._y + 3.5; _root.duck3._y = _root.duck3._y + 3.5; _root.goal._y = _root.goal._y + 3.5; _root.stone._y = _root.stone._y + 3.5; _root.stone2._y = _root.stone2._y + 3.5; _root.path._y = _root.path._y + 3.5; _root.fount._y = _root.fount._y + 3.5; _root.gras._y = _root.gras._y + 3.5; _root.trash._y = _root.trash._y + 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y + 6; _root.bush._y = _root.bush._y + 6; _root.bench._y = _root.bench._y + 6; _root.bench2._y = _root.bench2._y + 6; _root.tree._y = _root.tree._y + 6; _root.tree2._y = _root.tree2._y + 6; _root.duck._y = _root.duck._y + 6; _root.duck2._y = _root.duck2._y + 6; _root.duck3._y = _root.duck3._y + 6; _root.goal._y = _root.goal._y + 6; _root.stone._y = _root.stone._y + 6; _root.stone2._y = _root.stone2._y + 6; _root.path._y = _root.path._y + 6; _root.fount._y = _root.fount._y + 6; _root.gras._y = _root.gras._y + 6; _root.trash._y = _root.trash._y + 6; } _root.stand._y = 145; } else if (_root.stand._y < 55) { _root.stand._y = 55; } } } if ((_root.stand._y > (_root.bench._y - 97)) && (_root.stand._y < (_root.bench._y + 97))) { if ((_root.stand._x < _root.bench._x) && (_root.stand._x >= (_root.bench._x - 48))) { _root.stand._x = _root.bench._x - 48; } else if ((_root.stand._x > _root.bench._x) && (_root.stand._x <= (_root.bench._x + 61))) { _root.stand._x = _root.bench._x + 61; } } if ((_root.stand._x > (_root.bench._x - 35)) && (_root.stand._x < (_root.bench._x + 48))) { if ((_root.stand._y < _root.bench._y) && (_root.stand._y >= (_root.bench._y - 110))) { _root.stand._y = _root.bench._y - 110; } else if ((_root.stand._y > _root.bench._y) && (_root.stand._y <= (_root.bench._y + 110))) { _root.stand._y = _root.bench._y + 110; } } if ((_root.stand._x > (_root.bench2._x - 97)) && (_root.stand._x < (_root.bench2._x + 97))) { if ((_root.stand._y < _root.bench2._y) && (_root.stand._y >= (_root.bench2._y - 48))) { _root.stand._y = _root.bench2._y - 48; } else if ((_root.stand._y > _root.bench2._y) && (_root.stand._y <= (_root.bench2._y + 61))) { _root.stand._y = _root.bench2._y + 61; } } if ((_root.stand._y > (_root.bench2._y - 35)) && (_root.stand._y < (_root.bench2._y + 48))) { if ((_root.stand._x < _root.bench2._x) && (_root.stand._x >= (_root.bench2._x - 110))) { _root.stand._x = _root.bench2._x - 110; } else if ((_root.stand._x > _root.bench2._x) && (_root.stand._x <= (_root.bench2._x + 110))) { _root.stand._x = _root.bench2._x + 110; } } if ((_root.stand._x > (_root.bush._x - 43)) && (_root.stand._x < (_root.bush._x + 43))) { if ((_root.stand._y < _root.bush._y) && (_root.stand._y >= (_root.bush._y - 56))) { _root.stand._y = _root.bush._y - 56; } else if ((_root.stand._y > _root.bush._y) && (_root.stand._y <= (_root.bush._y + 56))) { _root.stand._y = _root.bush._y + 56; } } if ((_root.stand._y > (_root.bush._y - 43)) && (_root.stand._y < (_root.bush._y + 43))) { if ((_root.stand._x < _root.bush._x) && (_root.stand._x >= (_root.bush._x - 56))) { _root.stand._x = _root.bush._x - 56; } else if ((_root.stand._x > _root.bush._x) && (_root.stand._x <= (_root.bush._x + 56))) { _root.stand._x = _root.bush._x + 56; } } if ((_root.stand._x > (_root.tree._x - 6)) && (_root.stand._x < (_root.tree._x + 6))) { if ((_root.stand._y < _root.tree._y) && (_root.stand._y >= (_root.tree._y - 16))) { _root.stand._y = _root.tree._y - 16; } else if ((_root.stand._y > _root.tree._y) && (_root.stand._y <= (_root.tree._y + 16))) { _root.stand._y = _root.tree._y + 16; } } if ((_root.stand._y > (_root.tree._y - 6)) && (_root.stand._y < (_root.tree._y + 6))) { if ((_root.stand._x < _root.tree._x) && (_root.stand._x >= (_root.tree._x - 16))) { _root.stand._x = _root.tree._x - 16; } else if ((_root.stand._x > _root.tree._x) && (_root.stand._x <= (_root.tree._x + 16))) { _root.stand._x = _root.tree._x + 16; } } if ((_root.stand._x > (_root.tree2._x - 6)) && (_root.stand._x < (_root.tree2._x + 6))) { if ((_root.stand._y < _root.tree2._y) && (_root.stand._y >= (_root.tree2._y - 16))) { _root.stand._y = _root.tree2._y - 16; } else if ((_root.stand._y > _root.tree2._y) && (_root.stand._y <= (_root.tree2._y + 16))) { _root.stand._y = _root.tree2._y + 16; } } if ((_root.stand._y > (_root.tree2._y - 6)) && (_root.stand._y < (_root.tree2._y + 6))) { if ((_root.stand._x < _root.tree2._x) && (_root.stand._x >= (_root.tree2._x - 16))) { _root.stand._x = _root.tree2._x - 16; } else if ((_root.stand._x > _root.tree2._x) && (_root.stand._x <= (_root.tree2._x + 16))) { _root.stand._x = _root.tree2._x + 16; } } if ((_root.stand._x > (_root.stone._x - 43)) && (_root.stand._x < (_root.stone._x + 43))) { if ((_root.stand._y < _root.stone._y) && (_root.stand._y >= (_root.stone._y - 61))) { _root.stand._y = _root.stone._y - 61; } else if ((_root.stand._y > _root.stone._y) && (_root.stand._y <= (_root.stone._y + 61))) { _root.stand._y = _root.stone._y + 61; } } if ((_root.stand._y > (_root.stone._y - 48)) && (_root.stand._y < (_root.stone._y + 48))) { if ((_root.stand._x < _root.stone._x) && (_root.stand._x >= (_root.stone._x - 56))) { _root.stand._x = _root.stone._x - 56; } else if ((_root.stand._x > _root.stone._x) && (_root.stand._x <= (_root.stone._x + 56))) { _root.stand._x = _root.stone._x + 56; } } if ((_root.stand._x >= (_root.stone2._x - 48)) && (_root.stand._x <= (_root.stone2._x + 48))) { if ((_root.stand._y < _root.stone2._y) && (_root.stand._y >= (_root.stone2._y - 56))) { _root.stand._y = _root.stone2._y - 56; } else if ((_root.stand._y > _root.stone2._y) && (_root.stand._y <= (_root.stone2._y + 56))) { _root.stand._y = _root.stone2._y + 56; } } if ((_root.stand._y > (_root.stone2._y - 43)) && (_root.stand._y < (_root.stone2._y + 43))) { if ((_root.stand._x < _root.stone2._x) && (_root.stand._x >= (_root.stone2._x - 61))) { _root.stand._x = _root.stone2._x - 61; } else if ((_root.stand._x > _root.stone2._x) && (_root.stand._x <= (_root.stone2._x + 61))) { _root.stand._x = _root.stone2._x + 61; } } if ((_root.stand._x > (_root.fount._x - 77)) && (_root.stand._x < (_root.fount._x + 77))) { if ((_root.stand._y < _root.fount._y) && (_root.stand._y >= (_root.fount._y - 90))) { _root.stand._y = _root.fount._y - 90; } else if ((_root.stand._y > _root.fount._y) && (_root.stand._y <= (_root.fount._y + 90))) { _root.stand._y = _root.fount._y + 90; } } if ((_root.stand._y > (_root.fount._y - 77)) && (_root.stand._y < (_root.fount._y + 77))) { if ((_root.stand._x < _root.fount._x) && (_root.stand._x >= (_root.fount._x - 90))) { _root.stand._x = _root.fount._x - 90; } else if ((_root.stand._x > _root.fount._x) && (_root.stand._x <= (_root.fount._x + 90))) { _root.stand._x = _root.fount._x + 90; } } if ((_root.stand._x > (_root.trash._x - 38)) && (_root.stand._x < (_root.trash._x + 38))) { if ((_root.stand._y < _root.trash._y) && (_root.stand._y >= (_root.trash._y - 51))) { _root.stand._y = _root.trash._y - 51; } else if ((_root.stand._y > _root.trash._y) && (_root.stand._y <= (_root.trash._y + 51))) { _root.stand._y = _root.trash._y + 51; } } if ((_root.stand._y > (_root.trash._y - 38)) && (_root.stand._y < (_root.trash._y + 38))) { if ((_root.stand._x < _root.trash._x) && (_root.stand._x >= (_root.trash._x - 51))) { _root.stand._x = _root.trash._x - 51; } else if ((_root.stand._x > _root.trash._x) && (_root.stand._x <= (_root.trash._x + 51))) { _root.stand._x = _root.trash._x + 51; } } if (Key.isDown(38) || (Key.isDown(40))) { if ((_root.stand._y > 55) || (_root.stand._y < 345)) { if ((_root.stand._x > 130) || (_root.stand._x < 495)) { if ((_root.stand._x == 130) || (_root.stand._x == 495)) { if ((_root.dir == 1) || (_root.dir == 5)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else if ((_root.stand._y == 55) || (_root.stand._y == 345)) { if ((_root.dir == 3) || (_root.dir == 7)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } } } else { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } if (_root.dir == 9) { _root.dir = 1; } if (_root.dir == 0) { _root.dir = 8; } if (Key.isDown(37)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation - 45; _root.dir = _root.dir - 1; _root.dirtime = 3; } } if (Key.isDown(39)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation + 45; _root.dir = _root.dir + 1; _root.dirtime = 3; } } if ((_root.stand._x <= 495) && (_root.stand._x >= 130)) { if ((_root.stand._y <= 345) && (_root.stand._y >= 55)) { if (Key.isDown(38)) { if (_root.dir == 1) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } } if (Key.isDown(40)) { if (_root.dir == 1) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } } } } } }
Instance of Symbol 272 MovieClip "paus" in Frame 133
onClipEvent (load) { this._visible = false; _root.pausV = false; klar = 0; } onClipEvent (enterFrame) { if (Key.isDown(80) && (klar == 0)) { klar = 3; if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } } if (klar > 0) { klar = klar - 1; } }
Frame 136
stop();
Instance of Symbol 310 MovieClip "fail" in Frame 136
onClipEvent (enterFrame) { if ((_root.life < 0) && (_root.life3._currentframe > 21)) { _root.fail.play(); _root.pausV = false; _root.paus._visible = false; } }
Instance of Symbol 313 MovieClip "comp" in Frame 136
onClipEvent (enterFrame) { if ((_root.ducksTT == 0) && (_root.cleared != true)) { _root.cleared = true; _root.comp.play(); klar = 1; _root.ducksComplete = _root.ducksComplete + _root.ducksLT; } }
Frame 140
_root.fount.Vporl.stop(); if (_root.cleared == true) { gotoAndPlay (141); _root.cleared = false; _root.levelClear = _root.levelClear + 1; _root.passField = "arla"; } else if (_root.life >= 0) { gotoAndPlay (132); } else { gotoAndPlay (195); }
Frame 141
_root.ducksLeft = "05";
Instance of Symbol 84 MovieClip "clock" in Frame 141
onClipEvent (load) { _root.clock.stor._rotation = -150; _root.clock.liten._rotation = -169; _root.fps = 0; _root.sek = 50; _root.mins = 1; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 98 MovieClip "life1" in Frame 141
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Frame 145
stop();
Frame 150
_root.dirtime = 0; _root.stand._rotation = 90; _root.dir = 1; _root.walk = "go"; _root.ducksLeft = "05"; _root.ducksTT = 0; _root.ducksLT = 5; _root.duckT = 1; _root.duck2T = 1; _root.duck3T = 1; _root.duck4T = 1; _root.duck5T = 1; _root.duck6T = 1; _root.duck7T = 1; _root.duck8T = 1; _root.duck9T = 1; _root.duck10T = 1;
Instance of Symbol 221 MovieClip "radar" in Frame 150
onClipEvent (load) { fardig = 0; if (_root.radarV == true) { pos = "ut"; this._x = 595; } else if (_root.radarV == false) { pos = "in"; this._x = 491; this.letter._alpha = 0; } else { _root.radarV = true; pos = "ut"; this._x = 595; } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } } onClipEvent (enterFrame) { this.antling._x = (_root.stand._x - _root.fence._x) / 10; this.antling._y = (_root.stand._y - _root.fence._y) / 10; this.d1._x = (_root.duck._x - _root.fence._x) / 10; this.d1._y = (_root.duck._y - _root.fence._y) / 10; this.d2._x = (_root.duck2._x - _root.fence._x) / 10; this.d2._y = (_root.duck2._y - _root.fence._y) / 10; this.d3._x = (_root.duck3._x - _root.fence._x) / 10; this.d3._y = (_root.duck3._y - _root.fence._y) / 10; this.d4._x = (_root.duck4._x - _root.fence._x) / 10; this.d4._y = (_root.duck4._y - _root.fence._y) / 10; this.d5._x = (_root.duck5._x - _root.fence._x) / 10; this.d5._y = (_root.duck5._y - _root.fence._y) / 10; if (_root.duckT == 0) { this.d1._visible = false; } else { this.d1._visible = true; } if (_root.duck2T == 0) { this.d2._visible = false; } else { this.d2._visible = true; } if (_root.duck3T == 0) { this.d3._visible = false; } else { this.d3._visible = true; } if (_root.duck4T == 0) { this.d4._visible = false; } else { this.d4._visible = true; } if (_root.duck5T == 0) { this.d5._visible = false; } else { this.d5._visible = true; } if (fardig > 0) { fardig = fardig - 1; } if (Key.isDown(77) && (fardig == 0)) { fardig = 5; if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } if ((pos == "in") && (this._x > 491)) { this._x = this._x - (2 + ((this._x - 491) / 6)); if (this.letter._alpha > 0) { this.letter._alpha = this.letter._alpha - 10; } } else if ((pos == "ut") && (this._x < 595)) { this._x = this._x + (2 + ((595 - this._x) / 6)); if (this.letter._alpha < 100) { this.letter._alpha = this.letter._alpha + 10; } } }
Instance of Symbol 84 MovieClip "clock" in Frame 150
onClipEvent (load) { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -168; _root.fps = 0; _root.sek = 0; _root.mins = 2; } onClipEvent (enterFrame) { if (_root.pausV == false) { _root.totalFps = _root.totalFps + 1; if (_root.totalFps >= 20) { _root.totalFps = 0; _root.totalSek = _root.totalSek + 1; } if (_root.totalSek >= 60) { _root.totalSek = 0; _root.totalMin = _root.totalMin + 1; } if ((_root.sek >= 0) && (_root.mins >= 0)) { _root.fps = _root.fps + 1; _root.clock.liten._rotation = _root.clock.liten._rotation - 0.005; _root.clock.stor._rotation = _root.clock.stor._rotation - 0.3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } if (_root.fps == 20) { _root.sek = _root.sek - 1; _root.fps = 0; if (((_root.mins <= 0) && (_root.sek <= 10)) && (_root.sek > 0)) { _root.pip.start(0, 1); } } if (_root.sek == -1) { _root.mins = _root.mins - 1; _root.sek = 59; } } else { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -180; } } }
Instance of Symbol 101 MovieClip in Frame 150
onClipEvent (enterFrame) { if (_root.duck.hitTest(_root.goal.goal1)) { _root.duckT = 0; } else { _root.duckT = 1; } if (_root.duck2.hitTest(_root.goal.goal1)) { _root.duck2T = 0; } else { _root.duck2T = 1; } if (_root.duck3.hitTest(_root.goal.goal1)) { _root.duck3T = 0; } else { _root.duck3T = 1; } if (_root.duck4.hitTest(_root.goal.goal1)) { _root.duck4T = 0; } else { _root.duck4T = 1; } if (_root.duck5.hitTest(_root.goal.goal1)) { _root.duck5T = 0; } else { _root.duck5T = 1; } _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 150
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } } onClipEvent (enterFrame) { if ((_root.mins == 0) && (_root.sek == 0)) { _root.life = _root.life - 1; if (_root.life < 0) { if (klar != 1) { if (_root.soundPos == "ON") { _root.die.start(0, 1); } klar = 1; } } else { if (_root.life == 2) { _root.life1.gotoAndPlay(2); } else if (_root.life == 1) { _root.life2.gotoAndPlay(2); } else if (_root.life == 0) { _root.life3.gotoAndPlay(2); } if (_root.soundPos == "ON") { _root.die.start(0, 1); } _root.play(); _root.sek = 0; _root.mins = 2; _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -168; _root.fps = 0; } } }
Instance of Symbol 140 MovieClip "duck" in Frame 151
onClipEvent (load) { duckDir = 2; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck2" in Frame 151
onClipEvent (load) { duckDir = 6; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck3" in Frame 151
onClipEvent (load) { duckDir = 1; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck5" in Frame 151
onClipEvent (load) { duckDir = 3; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck4" in Frame 151
onClipEvent (load) { duckDir = 8; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 244 MovieClip "run2" in Frame 151
onClipEvent (enterFrame) { if (this._visible == true) { this.play(); } else { this.stop(); } }
Instance of Symbol 266 MovieClip "stand" in Frame 151
onClipEvent (enterFrame) { if (_root.pausV == false) { if (_root.dirtime > 0) { _root.dirtime = _root.dirtime - 1; } _root.run._x = _root.stand._x; _root.run._y = _root.stand._y; _root.run2._x = _root.stand._x; _root.run2._y = _root.stand._y; _root.run._rotation = _root.stand._rotation; _root.run2._rotation = _root.stand._rotation; if (Key.isDown(38) || (Key.isDown(40))) { if (_root.stand._x >= 405) { if (_root.fence._x >= 88) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x - 3.5; _root.bush._x = _root.bush._x - 3.5; _root.bush2._x = _root.bush2._x - 3.5; _root.bush3._x = _root.bush3._x - 3.5; _root.bench._x = _root.bench._x - 3.5; _root.tree._x = _root.tree._x - 3.5; _root.tree2._x = _root.tree2._x - 3.5; _root.duck._x = _root.duck._x - 3.5; _root.duck2._x = _root.duck2._x - 3.5; _root.duck3._x = _root.duck3._x - 3.5; _root.duck4._x = _root.duck4._x - 3.5; _root.duck5._x = _root.duck5._x - 3.5; _root.goal._x = _root.goal._x - 3.5; _root.stone._x = _root.stone._x - 3.5; _root.path._x = _root.path._x - 3.5; _root.flow._x = _root.flow._x - 3.5; _root.flow2._x = _root.flow2._x - 3.5; _root.flow3._x = _root.flow3._x - 3.5; _root.flow4._x = _root.flow4._x - 3.5; _root.gras._x = _root.gras._x - 3.5; _root.trash._x = _root.trash._x - 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x - 6; _root.bush._x = _root.bush._x - 6; _root.bush2._x = _root.bush2._x - 6; _root.bush3._x = _root.bush3._x - 6; _root.bench._x = _root.bench._x - 6; _root.tree._x = _root.tree._x - 6; _root.tree2._x = _root.tree2._x - 6; _root.duck._x = _root.duck._x - 6; _root.duck2._x = _root.duck2._x - 6; _root.duck3._x = _root.duck3._x - 6; _root.duck4._x = _root.duck4._x - 6; _root.duck5._x = _root.duck5._x - 6; _root.goal._x = _root.goal._x - 6; _root.stone._x = _root.stone._x - 6; _root.path._x = _root.path._x - 6; _root.flow._x = _root.flow._x - 6; _root.flow2._x = _root.flow2._x - 6; _root.flow3._x = _root.flow3._x - 6; _root.flow4._x = _root.flow4._x - 6; _root.gras._x = _root.gras._x - 6; _root.trash._x = _root.trash._x - 6; } _root.stand._x = 405; } else if (_root.stand._x > 495) { _root.stand._x = 495; } } if (_root.stand._x < 210) { if (_root.fence._x <= 537) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x + 3.5; _root.bush._x = _root.bush._x + 3.5; _root.bush2._x = _root.bush2._x + 3.5; _root.bush3._x = _root.bush3._x + 3.5; _root.bench._x = _root.bench._x + 3.5; _root.tree._x = _root.tree._x + 3.5; _root.tree2._x = _root.tree2._x + 3.5; _root.duck._x = _root.duck._x + 3.5; _root.duck2._x = _root.duck2._x + 3.5; _root.duck3._x = _root.duck3._x + 3.5; _root.duck4._x = _root.duck4._x + 3.5; _root.duck5._x = _root.duck5._x + 3.5; _root.goal._x = _root.goal._x + 3.5; _root.stone._x = _root.stone._x + 3.5; _root.path._x = _root.path._x + 3.5; _root.flow._x = _root.flow._x + 3.5; _root.flow2._x = _root.flow2._x + 3.5; _root.flow3._x = _root.flow3._x + 3.5; _root.flow4._x = _root.flow4._x + 3.5; _root.gras._x = _root.gras._x + 3.5; _root.trash._x = _root.trash._x + 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x + 6; _root.bush._x = _root.bush._x + 6; _root.bush2._x = _root.bush2._x + 6; _root.bush3._x = _root.bush3._x + 6; _root.bench._x = _root.bench._x + 6; _root.tree._x = _root.tree._x + 6; _root.tree2._x = _root.tree2._x + 6; _root.duck._x = _root.duck._x + 6; _root.duck2._x = _root.duck2._x + 6; _root.duck3._x = _root.duck3._x + 6; _root.duck4._x = _root.duck4._x + 6; _root.duck5._x = _root.duck5._x + 6; _root.goal._x = _root.goal._x + 6; _root.stone._x = _root.stone._x + 6; _root.path._x = _root.path._x + 6; _root.flow._x = _root.flow._x + 6; _root.flow2._x = _root.flow2._x + 6; _root.flow3._x = _root.flow3._x + 6; _root.flow4._x = _root.flow4._x + 6; _root.gras._x = _root.gras._x + 6; _root.trash._x = _root.trash._x + 6; } _root.stand._x = 210; } else if (_root.stand._x < 130) { _root.stand._x = 130; } } if (_root.stand._y >= 255) { if (_root.fence._y >= 18) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y - 3.5; _root.bush._y = _root.bush._y - 3.5; _root.bush2._y = _root.bush2._y - 3.5; _root.bush3._y = _root.bush3._y - 3.5; _root.bench._y = _root.bench._y - 3.5; _root.tree._y = _root.tree._y - 3.5; _root.tree2._y = _root.tree2._y - 3.5; _root.duck._y = _root.duck._y - 3.5; _root.duck2._y = _root.duck2._y - 3.5; _root.duck3._y = _root.duck3._y - 3.5; _root.duck4._y = _root.duck4._y - 3.5; _root.duck5._y = _root.duck5._y - 3.5; _root.goal._y = _root.goal._y - 3.5; _root.stone._y = _root.stone._y - 3.5; _root.path._y = _root.path._y - 3.5; _root.flow._y = _root.flow._y - 3.5; _root.flow2._y = _root.flow2._y - 3.5; _root.flow3._y = _root.flow3._y - 3.5; _root.flow4._y = _root.flow4._y - 3.5; _root.gras._y = _root.gras._y - 3.5; _root.trash._y = _root.trash._y - 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y - 6; _root.bush._y = _root.bush._y - 6; _root.bush2._y = _root.bush2._y - 6; _root.bush3._y = _root.bush3._y - 6; _root.bench._y = _root.bench._y - 6; _root.tree._y = _root.tree._y - 6; _root.tree2._y = _root.tree2._y - 6; _root.duck._y = _root.duck._y - 6; _root.duck2._y = _root.duck2._y - 6; _root.duck3._y = _root.duck3._y - 6; _root.duck4._y = _root.duck4._y - 6; _root.duck5._y = _root.duck5._y - 6; _root.goal._y = _root.goal._y - 6; _root.stone._y = _root.stone._y - 6; _root.path._y = _root.path._y - 6; _root.flow._y = _root.flow._y - 6; _root.flow2._y = _root.flow2._y - 6; _root.flow3._y = _root.flow3._y - 6; _root.flow4._y = _root.flow4._y - 6; _root.gras._y = _root.gras._y - 6; _root.trash._y = _root.trash._y - 6; } _root.stand._y = 255; } else if (_root.stand._y > 345) { _root.stand._y = 345; } } if (_root.stand._y <= 145) { if (_root.fence._y <= 380) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y + 3.5; _root.bush._y = _root.bush._y + 3.5; _root.bush2._y = _root.bush2._y + 3.5; _root.bush3._y = _root.bush3._y + 3.5; _root.bench._y = _root.bench._y + 3.5; _root.tree._y = _root.tree._y + 3.5; _root.tree2._y = _root.tree2._y + 3.5; _root.duck._y = _root.duck._y + 3.5; _root.duck2._y = _root.duck2._y + 3.5; _root.duck3._y = _root.duck3._y + 3.5; _root.duck4._y = _root.duck4._y + 3.5; _root.duck5._y = _root.duck5._y + 3.5; _root.goal._y = _root.goal._y + 3.5; _root.stone._y = _root.stone._y + 3.5; _root.path._y = _root.path._y + 3.5; _root.flow._y = _root.flow._y + 3.5; _root.flow2._y = _root.flow2._y + 3.5; _root.flow3._y = _root.flow3._y + 3.5; _root.flow4._y = _root.flow4._y + 3.5; _root.gras._y = _root.gras._y + 3.5; _root.trash._y = _root.trash._y + 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y + 6; _root.bush._y = _root.bush._y + 6; _root.bush2._y = _root.bush2._y + 6; _root.bush3._y = _root.bush3._y + 6; _root.bench._y = _root.bench._y + 6; _root.tree._y = _root.tree._y + 6; _root.tree2._y = _root.tree2._y + 6; _root.duck._y = _root.duck._y + 6; _root.duck2._y = _root.duck2._y + 6; _root.duck3._y = _root.duck3._y + 6; _root.duck4._y = _root.duck4._y + 6; _root.duck5._y = _root.duck5._y + 6; _root.goal._y = _root.goal._y + 6; _root.stone._y = _root.stone._y + 6; _root.path._y = _root.path._y + 6; _root.flow._y = _root.flow._y + 6; _root.flow2._y = _root.flow2._y + 6; _root.flow3._y = _root.flow3._y + 6; _root.flow4._y = _root.flow4._y + 6; _root.gras._y = _root.gras._y + 6; _root.trash._y = _root.trash._y + 6; } _root.stand._y = 145; } else if (_root.stand._y < 55) { _root.stand._y = 55; } } } if ((_root.stand._x > (_root.bench._x - 97)) && (_root.stand._x < (_root.bench._x + 97))) { if ((_root.stand._y < _root.bench._y) && (_root.stand._y >= (_root.bench._y - 48))) { _root.stand._y = _root.bench._y - 48; } else if ((_root.stand._y > _root.bench._y) && (_root.stand._y <= (_root.bench._y + 61))) { _root.stand._y = _root.bench._y + 61; } } if ((_root.stand._y > (_root.bench._y - 35)) && (_root.stand._y < (_root.bench._y + 49))) { if ((_root.stand._x < _root.bench._x) && (_root.stand._x >= (_root.bench._x - 110))) { _root.stand._x = _root.bench._x - 110; } else if ((_root.stand._x > _root.bench._x) && (_root.stand._x <= (_root.bench._x + 110))) { _root.stand._x = _root.bench._x + 110; } } if ((_root.stand._x > (_root.bush._x - 43)) && (_root.stand._x < (_root.bush._x + 43))) { if ((_root.stand._y < _root.bush._y) && (_root.stand._y >= (_root.bush._y - 56))) { _root.stand._y = _root.bush._y - 56; } else if ((_root.stand._y > _root.bush._y) && (_root.stand._y <= (_root.bush._y + 56))) { _root.stand._y = _root.bush._y + 56; } } if ((_root.stand._y > (_root.bush._y - 43)) && (_root.stand._y < (_root.bush._y + 43))) { if ((_root.stand._x < _root.bush._x) && (_root.stand._x >= (_root.bush._x - 56))) { _root.stand._x = _root.bush._x - 56; } else if ((_root.stand._x > _root.bush._x) && (_root.stand._x <= (_root.bush._x + 56))) { _root.stand._x = _root.bush._x + 56; } } if ((_root.stand._x > (_root.bush2._x - 43)) && (_root.stand._x < (_root.bush2._x + 43))) { if ((_root.stand._y < _root.bush2._y) && (_root.stand._y >= (_root.bush2._y - 56))) { _root.stand._y = _root.bush2._y - 56; } else if ((_root.stand._y > _root.bush2._y) && (_root.stand._y <= (_root.bush2._y + 56))) { _root.stand._y = _root.bush2._y + 56; } } if ((_root.stand._y > (_root.bush2._y - 43)) && (_root.stand._y < (_root.bush2._y + 43))) { if ((_root.stand._x < _root.bush2._x) && (_root.stand._x >= (_root.bush2._x - 56))) { _root.stand._x = _root.bush2._x - 56; } else if ((_root.stand._x > _root.bush2._x) && (_root.stand._x <= (_root.bush2._x + 56))) { _root.stand._x = _root.bush2._x + 56; } } if ((_root.stand._x > (_root.bush3._x - 43)) && (_root.stand._x < (_root.bush3._x + 43))) { if ((_root.stand._y < _root.bush3._y) && (_root.stand._y >= (_root.bush3._y - 56))) { _root.stand._y = _root.bush3._y - 56; } else if ((_root.stand._y > _root.bush3._y) && (_root.stand._y <= (_root.bush3._y + 56))) { _root.stand._y = _root.bush3._y + 56; } } if ((_root.stand._y > (_root.bush3._y - 43)) && (_root.stand._y < (_root.bush3._y + 43))) { if ((_root.stand._x < _root.bush3._x) && (_root.stand._x >= (_root.bush3._x - 56))) { _root.stand._x = _root.bush3._x - 56; } else if ((_root.stand._x > _root.bush3._x) && (_root.stand._x <= (_root.bush3._x + 56))) { _root.stand._x = _root.bush3._x + 56; } } if ((_root.stand._x > (_root.tree._x - 6)) && (_root.stand._x < (_root.tree._x + 6))) { if ((_root.stand._y < _root.tree._y) && (_root.stand._y >= (_root.tree._y - 16))) { _root.stand._y = _root.tree._y - 16; } else if ((_root.stand._y > _root.tree._y) && (_root.stand._y <= (_root.tree._y + 16))) { _root.stand._y = _root.tree._y + 16; } } if ((_root.stand._y > (_root.tree._y - 6)) && (_root.stand._y < (_root.tree._y + 6))) { if ((_root.stand._x < _root.tree._x) && (_root.stand._x >= (_root.tree._x - 16))) { _root.stand._x = _root.tree._x - 16; } else if ((_root.stand._x > _root.tree._x) && (_root.stand._x <= (_root.tree._x + 16))) { _root.stand._x = _root.tree._x + 16; } } if ((_root.stand._x > (_root.tree2._x - 6)) && (_root.stand._x < (_root.tree2._x + 6))) { if ((_root.stand._y < _root.tree2._y) && (_root.stand._y >= (_root.tree2._y - 16))) { _root.stand._y = _root.tree2._y - 16; } else if ((_root.stand._y > _root.tree2._y) && (_root.stand._y <= (_root.tree2._y + 16))) { _root.stand._y = _root.tree2._y + 16; } } if ((_root.stand._y > (_root.tree2._y - 6)) && (_root.stand._y < (_root.tree2._y + 6))) { if ((_root.stand._x < _root.tree2._x) && (_root.stand._x >= (_root.tree2._x - 16))) { _root.stand._x = _root.tree2._x - 16; } else if ((_root.stand._x > _root.tree2._x) && (_root.stand._x <= (_root.tree2._x + 16))) { _root.stand._x = _root.tree2._x + 16; } } if ((_root.stand._x > (_root.stone._x - 43)) && (_root.stand._x < (_root.stone._x + 43))) { if ((_root.stand._y < _root.stone._y) && (_root.stand._y >= (_root.stone._y - 61))) { _root.stand._y = _root.stone._y - 61; } else if ((_root.stand._y > _root.stone._y) && (_root.stand._y <= (_root.stone._y + 61))) { _root.stand._y = _root.stone._y + 61; } } if ((_root.stand._y > (_root.stone._y - 48)) && (_root.stand._y < (_root.stone._y + 48))) { if ((_root.stand._x < _root.stone._x) && (_root.stand._x >= (_root.stone._x - 56))) { _root.stand._x = _root.stone._x - 56; } else if ((_root.stand._x > _root.stone._x) && (_root.stand._x <= (_root.stone._x + 56))) { _root.stand._x = _root.stone._x + 56; } } if ((_root.stand._x > (_root.trash._x - 38)) && (_root.stand._x < (_root.trash._x + 38))) { if ((_root.stand._y < _root.trash._y) && (_root.stand._y >= (_root.trash._y - 51))) { _root.stand._y = _root.trash._y - 51; } else if ((_root.stand._y > _root.trash._y) && (_root.stand._y <= (_root.trash._y + 51))) { _root.stand._y = _root.trash._y + 51; } } if ((_root.stand._y > (_root.trash._y - 38)) && (_root.stand._y <= (_root.trash._y + 38))) { if ((_root.stand._x < _root.trash._x) && (_root.stand._x >= (_root.trash._x - 51))) { _root.stand._x = _root.trash._x - 51; } else if ((_root.stand._x > _root.trash._x) && (_root.stand._x <= (_root.trash._x + 51))) { _root.stand._x = _root.trash._x + 51; } } if (Key.isDown(38) || (Key.isDown(40))) { if ((_root.stand._y > 55) || (_root.stand._y < 345)) { if ((_root.stand._x > 130) || (_root.stand._x < 495)) { if ((_root.stand._x == 130) || (_root.stand._x == 495)) { if ((_root.dir == 1) || (_root.dir == 5)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else if ((_root.stand._y == 55) || (_root.stand._y == 345)) { if ((_root.dir == 3) || (_root.dir == 7)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } } } else { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } if (_root.dir == 9) { _root.dir = 1; } if (_root.dir == 0) { _root.dir = 8; } if (Key.isDown(37)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation - 45; _root.dir = _root.dir - 1; _root.dirtime = 3; } } if (Key.isDown(39)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation + 45; _root.dir = _root.dir + 1; _root.dirtime = 3; } } if ((_root.stand._x <= 495) && (_root.stand._x >= 130)) { if ((_root.stand._y <= 345) && (_root.stand._y >= 55)) { if (Key.isDown(38)) { if (_root.dir == 1) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } } if (Key.isDown(40)) { if (_root.dir == 1) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } } } } } }
Instance of Symbol 272 MovieClip "paus" in Frame 151
onClipEvent (load) { this._visible = false; _root.pausV = false; klar = 0; } onClipEvent (enterFrame) { if (Key.isDown(80) && (klar == 0)) { klar = 3; if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } } if (klar > 0) { klar = klar - 1; } }
Frame 154
stop();
Instance of Symbol 336 MovieClip "fail" in Frame 154
onClipEvent (load) { _root.dead = false; } onClipEvent (enterFrame) { if (((_root.life < 0) && (_root.dead == false)) && (_root.life3._currentframe > 21)) { _root.fail.play(); _root.dead = true; _root.pausV = false; _root.paus._visible = false; } }
Instance of Symbol 339 MovieClip "comp" in Frame 154
onClipEvent (enterFrame) { if ((_root.ducksTT == 0) && (_root.cleared != true)) { _root.cleared = true; _root.comp.play(); klar = 1; _root.ducksComplete = _root.ducksComplete + _root.ducksLT; } }
Frame 158
if (_root.cleared == true) { gotoAndPlay (159); _root.cleared = false; _root.levelClear = _root.levelClear + 1; _root.passField = "manson"; } else if (_root.life >= 0) { gotoAndPlay (150); } else { gotoAndPlay (195); }
Frame 159
_root.ducksLeft = "08";
Instance of Symbol 84 MovieClip "clock" in Frame 159
onClipEvent (load) { _root.clock.stor._rotation = 150; _root.clock.liten._rotation = -170; _root.fps = 0; _root.sek = 40; _root.mins = 1; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 98 MovieClip "life1" in Frame 159
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Frame 163
stop();
Frame 168
_root.dirtime = 0; _root.stand._rotation = 90; _root.dir = 1; _root.walk = "go"; _root.ducksLeft = "08"; _root.ducksTT = 0; _root.ducksLT = 8; _root.duckT = 1; _root.duck2T = 1; _root.duck3T = 1; _root.duck4T = 1; _root.duck5T = 1; _root.duck6T = 1; _root.duck7T = 1; _root.duck8T = 1; _root.duck9T = 1; _root.duck10T = 1;
Instance of Symbol 347 MovieClip "radar" in Frame 168
onClipEvent (load) { fardig = 0; if (_root.radarV == true) { pos = "ut"; this._x = 575; } else if (_root.radarV == false) { pos = "in"; this._x = 514; this.letter._alpha = 0; } else { _root.radarV = true; pos = "ut"; this._x = 575; } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } } onClipEvent (enterFrame) { this.antling._x = (_root.stand._x - _root.fence._x) / 10; this.antling._y = (_root.stand._y - _root.fence._y) / 10; this.d1._x = (_root.duck._x - _root.fence._x) / 10; this.d1._y = (_root.duck._y - _root.fence._y) / 10; this.d2._x = (_root.duck2._x - _root.fence._x) / 10; this.d2._y = (_root.duck2._y - _root.fence._y) / 10; this.d3._x = (_root.duck3._x - _root.fence._x) / 10; this.d3._y = (_root.duck3._y - _root.fence._y) / 10; this.d4._x = (_root.duck4._x - _root.fence._x) / 10; this.d4._y = (_root.duck4._y - _root.fence._y) / 10; this.d5._x = (_root.duck5._x - _root.fence._x) / 10; this.d5._y = (_root.duck5._y - _root.fence._y) / 10; this.d6._x = (_root.duck6._x - _root.fence._x) / 10; this.d6._y = (_root.duck6._y - _root.fence._y) / 10; this.d7._x = (_root.duck7._x - _root.fence._x) / 10; this.d7._y = (_root.duck7._y - _root.fence._y) / 10; this.d8._x = (_root.duck8._x - _root.fence._x) / 10; this.d8._y = (_root.duck8._y - _root.fence._y) / 10; if (_root.duckT == 0) { this.d1._visible = false; } else { this.d1._visible = true; } if (_root.duck2T == 0) { this.d2._visible = false; } else { this.d2._visible = true; } if (_root.duck3T == 0) { this.d3._visible = false; } else { this.d3._visible = true; } if (_root.duck4T == 0) { this.d4._visible = false; } else { this.d4._visible = true; } if (_root.duck5T == 0) { this.d5._visible = false; } else { this.d5._visible = true; } if (_root.duck6T == 0) { this.d6._visible = false; } else { this.d6._visible = true; } if (_root.duck7T == 0) { this.d7._visible = false; } else { this.d7._visible = true; } if (_root.duck8T == 0) { this.d8._visible = false; } else { this.d8._visible = true; } if (fardig > 0) { fardig = fardig - 1; } if (Key.isDown(77) && (fardig == 0)) { fardig = 5; if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } if ((pos == "in") && (this._x > 514)) { this._x = this._x - (2 + ((this._x - 514) / 6)); if (this.letter._alpha > 0) { this.letter._alpha = this.letter._alpha - 10; } } else if ((pos == "ut") && (this._x < 575)) { this._x = this._x + (2 + ((575 - this._x) / 6)); if (this.letter._alpha < 100) { this.letter._alpha = this.letter._alpha + 10; } } }
Instance of Symbol 84 MovieClip "clock" in Frame 168
onClipEvent (load) { _root.clock.stor._rotation = 150; _root.clock.liten._rotation = -170; _root.fps = 0; _root.sek = 40; _root.mins = 1; } onClipEvent (enterFrame) { if (_root.pausV == false) { _root.totalFps = _root.totalFps + 1; if (_root.totalFps >= 20) { _root.totalFps = 0; _root.totalSek = _root.totalSek + 1; } if (_root.totalSek >= 60) { _root.totalSek = 0; _root.totalMin = _root.totalMin + 1; } if ((_root.sek >= 0) && (_root.mins >= 0)) { _root.fps = _root.fps + 1; _root.clock.liten._rotation = _root.clock.liten._rotation - 0.005; _root.clock.stor._rotation = _root.clock.stor._rotation - 0.3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } if (_root.fps == 20) { _root.sek = _root.sek - 1; _root.fps = 0; if (((_root.mins <= 0) && (_root.sek <= 10)) && (_root.sek > 0)) { _root.pip.start(0, 1); } } if (_root.sek == -1) { _root.mins = _root.mins - 1; _root.sek = 59; } } else { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -180; } } }
Instance of Symbol 101 MovieClip in Frame 168
onClipEvent (enterFrame) { if (_root.duck.hitTest(_root.goal.goal1)) { _root.duckT = 0; } else { _root.duckT = 1; } if (_root.duck2.hitTest(_root.goal.goal1)) { _root.duck2T = 0; } else { _root.duck2T = 1; } if (_root.duck3.hitTest(_root.goal.goal1)) { _root.duck3T = 0; } else { _root.duck3T = 1; } if (_root.duck4.hitTest(_root.goal.goal1)) { _root.duck4T = 0; } else { _root.duck4T = 1; } if (_root.duck5.hitTest(_root.goal.goal1)) { _root.duck5T = 0; } else { _root.duck5T = 1; } if (_root.duck6.hitTest(_root.goal.goal1)) { _root.duck6T = 0; } else { _root.duck6T = 1; } if (_root.duck7.hitTest(_root.goal.goal1)) { _root.duck7T = 0; } else { _root.duck7T = 1; } if (_root.duck8.hitTest(_root.goal.goal1)) { _root.duck8T = 0; } else { _root.duck8T = 1; } _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 168
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } } onClipEvent (enterFrame) { if ((_root.mins == 0) && (_root.sek == 0)) { _root.life = _root.life - 1; if (_root.life < 0) { if (klar != 1) { if (_root.soundPos == "ON") { _root.die.start(0, 1); } klar = 1; } } else { if (_root.life == 2) { _root.life1.gotoAndPlay(2); } else if (_root.life == 1) { _root.life2.gotoAndPlay(2); } else if (_root.life == 0) { _root.life3.gotoAndPlay(2); } if (_root.soundPos == "ON") { _root.die.start(0, 1); } _root.play(); _root.sek = 40; _root.mins = 1; _root.clock.stor._rotation = 150; _root.clock.liten._rotation = -170; _root.fps = 0; } } }
Instance of Symbol 140 MovieClip "duck" in Frame 169
onClipEvent (load) { duckDir = 2; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck2" in Frame 169
onClipEvent (load) { duckDir = 6; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck3" in Frame 169
onClipEvent (load) { duckDir = 1; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck5" in Frame 169
onClipEvent (load) { duckDir = 3; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck4" in Frame 169
onClipEvent (load) { duckDir = 8; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck6" in Frame 169
onClipEvent (load) { duckDir = 2; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck7" in Frame 169
onClipEvent (load) { duckDir = 5; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck8" in Frame 169
onClipEvent (load) { duckDir = 6; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } } }
Instance of Symbol 244 MovieClip "run2" in Frame 169
onClipEvent (enterFrame) { if (this._visible == true) { this.play(); } else { this.stop(); } }
Instance of Symbol 266 MovieClip "stand" in Frame 169
onClipEvent (enterFrame) { if (_root.pausV == false) { if (_root.dirtime > 0) { _root.dirtime = _root.dirtime - 1; } _root.run._x = _root.stand._x; _root.run._y = _root.stand._y; _root.run2._x = _root.stand._x; _root.run2._y = _root.stand._y; _root.run._rotation = _root.stand._rotation; _root.run2._rotation = _root.stand._rotation; if (Key.isDown(38) || (Key.isDown(40))) { if (_root.stand._x > 495) { _root.stand._x = 495; } if (_root.stand._x < 130) { _root.stand._x = 130; } if (_root.stand._y >= 255) { if (_root.fence._y >= 18) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y - 3.5; _root.bush._y = _root.bush._y - 3.5; _root.bench._y = _root.bench._y - 3.5; _root.duck._y = _root.duck._y - 3.5; _root.duck2._y = _root.duck2._y - 3.5; _root.duck3._y = _root.duck3._y - 3.5; _root.duck4._y = _root.duck4._y - 3.5; _root.duck5._y = _root.duck5._y - 3.5; _root.duck6._y = _root.duck6._y - 3.5; _root.duck7._y = _root.duck7._y - 3.5; _root.duck8._y = _root.duck8._y - 3.5; _root.goal._y = _root.goal._y - 3.5; _root.stone._y = _root.stone._y - 3.5; _root.gras._y = _root.gras._y - 3.5; _root.trash._y = _root.trash._y - 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y - 6; _root.bush._y = _root.bush._y - 6; _root.bench._y = _root.bench._y - 6; _root.duck._y = _root.duck._y - 6; _root.duck2._y = _root.duck2._y - 6; _root.duck3._y = _root.duck3._y - 6; _root.duck4._y = _root.duck4._y - 6; _root.duck5._y = _root.duck5._y - 6; _root.duck6._y = _root.duck6._y - 6; _root.duck7._y = _root.duck7._y - 6; _root.duck8._y = _root.duck8._y - 6; _root.goal._y = _root.goal._y - 6; _root.stone._y = _root.stone._y - 6; _root.gras._y = _root.gras._y - 6; _root.trash._y = _root.trash._y - 6; } _root.stand._y = 255; } else if (_root.stand._y > 345) { _root.stand._y = 345; } } if (_root.stand._y <= 145) { if (_root.fence._y <= 380) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y + 3.5; _root.bush._y = _root.bush._y + 3.5; _root.bench._y = _root.bench._y + 3.5; _root.duck._y = _root.duck._y + 3.5; _root.duck2._y = _root.duck2._y + 3.5; _root.duck3._y = _root.duck3._y + 3.5; _root.duck4._y = _root.duck4._y + 3.5; _root.duck5._y = _root.duck5._y + 3.5; _root.duck6._y = _root.duck6._y + 3.5; _root.duck7._y = _root.duck7._y + 3.5; _root.duck8._y = _root.duck8._y + 3.5; _root.goal._y = _root.goal._y + 3.5; _root.stone._y = _root.stone._y + 3.5; _root.gras._y = _root.gras._y + 3.5; _root.trash._y = _root.trash._y + 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y + 6; _root.bush._y = _root.bush._y + 6; _root.bench._y = _root.bench._y + 6; _root.duck._y = _root.duck._y + 6; _root.duck2._y = _root.duck2._y + 6; _root.duck3._y = _root.duck3._y + 6; _root.duck4._y = _root.duck4._y + 6; _root.duck5._y = _root.duck5._y + 6; _root.duck6._y = _root.duck6._y + 6; _root.duck7._y = _root.duck7._y + 6; _root.duck8._y = _root.duck8._y + 6; _root.goal._y = _root.goal._y + 6; _root.stone._y = _root.stone._y + 6; _root.gras._y = _root.gras._y + 6; _root.trash._y = _root.trash._y + 6; } _root.stand._y = 145; } else if (_root.stand._y < 55) { _root.stand._y = 55; } } } if ((_root.stand._x > (_root.bench._x - 97)) && (_root.stand._x < (_root.bench._x + 97))) { if ((_root.stand._y < _root.bench._y) && (_root.stand._y >= (_root.bench._y - 48))) { _root.stand._y = _root.bench._y - 48; } else if ((_root.stand._y > _root.bench._y) && (_root.stand._y <= (_root.bench._y + 61))) { _root.stand._y = _root.bench._y + 61; } } if ((_root.stand._y > (_root.bench._y - 35)) && (_root.stand._y < (_root.bench._y + 48))) { if ((_root.stand._x < _root.bench._x) && (_root.stand._x >= (_root.bench._x - 110))) { _root.stand._x = _root.bench._x - 110; } else if ((_root.stand._x > _root.bench._x) && (_root.stand._x <= (_root.bench._x + 110))) { _root.stand._x = _root.bench._x + 110; } } if ((_root.stand._x > (_root.bush._x - 43)) && (_root.stand._x < (_root.bush._x + 43))) { if ((_root.stand._y < _root.bush._y) && (_root.stand._y >= (_root.bush._y - 56))) { _root.stand._y = _root.bush._y - 56; } else if ((_root.stand._y > _root.bush._y) && (_root.stand._y <= (_root.bush._y + 56))) { _root.stand._y = _root.bush._y + 56; } } if ((_root.stand._y > (_root.bush._y - 43)) && (_root.stand._y < (_root.bush._y + 43))) { if ((_root.stand._x < _root.bush._x) && (_root.stand._x >= (_root.bush._x - 56))) { _root.stand._x = _root.bush._x - 56; } else if ((_root.stand._x > _root.bush._x) && (_root.stand._x <= (_root.bush._x + 56))) { _root.stand._x = _root.bush._x + 56; } } if ((_root.stand._x > (_root.stone._x - 43)) && (_root.stand._x < (_root.stone._x + 43))) { if ((_root.stand._y < _root.stone._y) && (_root.stand._y >= (_root.stone._y - 61))) { _root.stand._y = _root.stone._y - 61; } else if ((_root.stand._y > _root.stone._y) && (_root.stand._y <= (_root.stone._y + 61))) { _root.stand._y = _root.stone._y + 61; } } if ((_root.stand._y > (_root.stone._y - 48)) && (_root.stand._y < (_root.stone._y + 48))) { if ((_root.stand._x < _root.stone._x) && (_root.stand._x >= (_root.stone._x - 56))) { _root.stand._x = _root.stone._x - 56; } else if ((_root.stand._x > _root.stone._x) && (_root.stand._x <= (_root.stone._x + 56))) { _root.stand._x = _root.stone._x + 56; } } if ((_root.stand._x > (_root.trash._x - 38)) && (_root.stand._x < (_root.trash._x + 38))) { if ((_root.stand._y < _root.trash._y) && (_root.stand._y >= (_root.trash._y - 51))) { _root.stand._y = _root.trash._y - 51; } else if ((_root.stand._y > _root.trash._y) && (_root.stand._y <= (_root.trash._y + 51))) { _root.stand._y = _root.trash._y + 51; } } if ((_root.stand._y > (_root.trash._y - 38)) && (_root.stand._y < (_root.trash._y + 38))) { if ((_root.stand._x < _root.trash._x) && (_root.stand._x >= (_root.trash._x - 51))) { _root.stand._x = _root.trash._x - 51; } else if ((_root.stand._x > _root.trash._x) && (_root.stand._x <= (_root.trash._x + 51))) { _root.stand._x = _root.trash._x + 51; } } if (Key.isDown(38) || (Key.isDown(40))) { if ((_root.stand._y > 55) || (_root.stand._y < 345)) { if ((_root.stand._x > 130) || (_root.stand._x < 495)) { if ((_root.stand._x == 130) || (_root.stand._x == 495)) { if ((_root.dir == 1) || (_root.dir == 5)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else if ((_root.stand._y == 55) || (_root.stand._y == 345)) { if ((_root.dir == 3) || (_root.dir == 7)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } } } else { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } if (_root.dir == 9) { _root.dir = 1; } if (_root.dir == 0) { _root.dir = 8; } if (Key.isDown(37)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation - 45; _root.dir = _root.dir - 1; _root.dirtime = 3; } } if (Key.isDown(39)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation + 45; _root.dir = _root.dir + 1; _root.dirtime = 3; } } if ((_root.stand._x <= 495) && (_root.stand._x >= 130)) { if ((_root.stand._y <= 345) && (_root.stand._y >= 55)) { if (Key.isDown(38)) { if (_root.dir == 1) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } } if (Key.isDown(40)) { if (_root.dir == 1) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } } } } } }
Instance of Symbol 272 MovieClip "paus" in Frame 169
onClipEvent (load) { this._visible = false; _root.pausV = false; klar = 0; } onClipEvent (enterFrame) { if (Key.isDown(80) && (klar == 0)) { klar = 3; if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } } if (klar > 0) { klar = klar - 1; } }
Frame 172
stop();
Instance of Symbol 358 MovieClip "fail" in Frame 172
onClipEvent (load) { _root.dead = false; } onClipEvent (enterFrame) { if (((_root.life < 0) && (_root.dead == false)) && (_root.life3._currentframe > 21)) { _root.fail.play(); _root.dead = true; _root.pausV = false; _root.paus._visible = false; } }
Instance of Symbol 361 MovieClip "comp" in Frame 172
onClipEvent (enterFrame) { if ((_root.ducksTT == 0) && (_root.cleared != true)) { _root.cleared = true; _root.comp.play(); klar = 1; _root.ducksComplete = _root.ducksComplete + _root.ducksLT; } }
Frame 176
if (_root.cleared == true) { gotoAndPlay (177); _root.cleared = false; _root.levelClear = _root.levelClear + 1; _root.passField = "telebjan"; } else if (_root.life >= 0) { gotoAndPlay (168); } else { gotoAndPlay (195); }
Frame 177
_root.ducksLeft = "10";
Instance of Symbol 84 MovieClip "clock" in Frame 177
onClipEvent (load) { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -162; _root.fps = 0; _root.sek = 0; _root.mins = 3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } }
Instance of Symbol 98 MovieClip "life1" in Frame 177
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Frame 181
stop();
Frame 186
_root.dirtime = 0; _root.stand._rotation = 90; _root.dir = 1; _root.walk = "go"; _root.ducksLeft = "10"; _root.ducksTT = 0; _root.ducksLT = 10; _root.duckT = 1; _root.duck2T = 1; _root.duck3T = 1; _root.duck4T = 1; _root.duck5T = 1; _root.duck6T = 1; _root.duck7T = 1; _root.duck8T = 1; _root.duck9T = 1; _root.duck10T = 1;
Instance of Symbol 369 MovieClip "radar" in Frame 186
onClipEvent (load) { fardig = 0; if (_root.radarV == true) { pos = "ut"; this._x = 595; } else if (_root.radarV == false) { pos = "in"; this._x = 491; this.letter._alpha = 0; } else { _root.radarV = true; pos = "ut"; this._x = 595; } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } } onClipEvent (enterFrame) { this.antling._x = (_root.stand._x - _root.fence._x) / 10; this.antling._y = (_root.stand._y - _root.fence._y) / 10; this.d1._x = (_root.duck._x - _root.fence._x) / 10; this.d1._y = (_root.duck._y - _root.fence._y) / 10; this.d2._x = (_root.duck2._x - _root.fence._x) / 10; this.d2._y = (_root.duck2._y - _root.fence._y) / 10; this.d3._x = (_root.duck3._x - _root.fence._x) / 10; this.d3._y = (_root.duck3._y - _root.fence._y) / 10; this.d4._x = (_root.duck4._x - _root.fence._x) / 10; this.d4._y = (_root.duck4._y - _root.fence._y) / 10; this.d5._x = (_root.duck5._x - _root.fence._x) / 10; this.d5._y = (_root.duck5._y - _root.fence._y) / 10; this.d6._x = (_root.duck6._x - _root.fence._x) / 10; this.d6._y = (_root.duck6._y - _root.fence._y) / 10; this.d7._x = (_root.duck7._x - _root.fence._x) / 10; this.d7._y = (_root.duck7._y - _root.fence._y) / 10; this.d8._x = (_root.duck8._x - _root.fence._x) / 10; this.d8._y = (_root.duck8._y - _root.fence._y) / 10; this.d9._x = (_root.duck9._x - _root.fence._x) / 10; this.d9._y = (_root.duck9._y - _root.fence._y) / 10; this.d10._x = (_root.duck10._x - _root.fence._x) / 10; this.d10._y = (_root.duck10._y - _root.fence._y) / 10; if (_root.duckT == 0) { this.d1._visible = false; } else { this.d1._visible = true; } if (_root.duck2T == 0) { this.d2._visible = false; } else { this.d2._visible = true; } if (_root.duck3T == 0) { this.d3._visible = false; } else { this.d3._visible = true; } if (_root.duck4T == 0) { this.d4._visible = false; } else { this.d4._visible = true; } if (_root.duck5T == 0) { this.d5._visible = false; } else { this.d5._visible = true; } if (_root.duck6T == 0) { this.d6._visible = false; } else { this.d6._visible = true; } if (_root.duck7T == 0) { this.d7._visible = false; } else { this.d7._visible = true; } if (_root.duck8T == 0) { this.d8._visible = false; } else { this.d8._visible = true; } if (_root.duck9T == 0) { this.d9._visible = false; } else { this.d9._visible = true; } if (_root.duck10T == 0) { this.d10._visible = false; } else { this.d10._visible = true; } if (fardig > 0) { fardig = fardig - 1; } if (Key.isDown(77) && (fardig == 0)) { fardig = 5; if (pos == "ut") { _root.radarV = false; pos = "in"; } else { _root.radarV = true; pos = "ut"; } } if ((pos == "in") && (this._x > 491)) { this._x = this._x - (2 + ((this._x - 491) / 6)); if (this.letter._alpha > 0) { this.letter._alpha = this.letter._alpha - 10; } } else if ((pos == "ut") && (this._x < 595)) { this._x = this._x + (2 + ((595 - this._x) / 6)); if (this.letter._alpha < 100) { this.letter._alpha = this.letter._alpha + 10; } } }
Instance of Symbol 84 MovieClip "clock" in Frame 186
onClipEvent (load) { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -162; _root.fps = 0; _root.sek = 0; _root.mins = 3; } onClipEvent (enterFrame) { if (_root.pausV == false) { _root.totalFps = _root.totalFps + 1; if (_root.totalFps >= 20) { _root.totalFps = 0; _root.totalSek = _root.totalSek + 1; } if (_root.totalSek >= 60) { _root.totalSek = 0; _root.totalMin = _root.totalMin + 1; } if ((_root.sek >= 0) && (_root.mins >= 0)) { _root.fps = _root.fps + 1; _root.clock.liten._rotation = _root.clock.liten._rotation - 0.005; _root.clock.stor._rotation = _root.clock.stor._rotation - 0.3; if (_root.sek < 10) { _root.sekS = "0" + _root.sek; } else { _root.sekS = _root.sek; } if (_root.mins < 10) { _root.minsS = ("0" + _root.mins) + ":"; } else { _root.minsS = _root.mins; } if (_root.fps == 20) { _root.sek = _root.sek - 1; _root.fps = 0; if (((_root.mins <= 0) && (_root.sek <= 10)) && (_root.sek > 0)) { _root.pip.start(0, 1); } } if (_root.sek == -1) { _root.mins = _root.mins - 1; _root.sek = 59; } } else { _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -180; } } }
Instance of Symbol 101 MovieClip in Frame 186
onClipEvent (enterFrame) { if (_root.duck.hitTest(_root.goal.goal1)) { _root.duckT = 0; } else { _root.duckT = 1; } if (_root.duck2.hitTest(_root.goal.goal1)) { _root.duck2T = 0; } else { _root.duck2T = 1; } if (_root.duck3.hitTest(_root.goal.goal1)) { _root.duck3T = 0; } else { _root.duck3T = 1; } if (_root.duck4.hitTest(_root.goal.goal1)) { _root.duck4T = 0; } else { _root.duck4T = 1; } if (_root.duck5.hitTest(_root.goal.goal1)) { _root.duck5T = 0; } else { _root.duck5T = 1; } if (_root.duck6.hitTest(_root.goal.goal1)) { _root.duck6T = 0; } else { _root.duck6T = 1; } if (_root.duck7.hitTest(_root.goal.goal1)) { _root.duck7T = 0; } else { _root.duck7T = 1; } if (_root.duck8.hitTest(_root.goal.goal1)) { _root.duck8T = 0; } else { _root.duck8T = 1; } if (_root.duck9.hitTest(_root.goal.goal1)) { _root.duck9T = 0; } else { _root.duck9T = 1; } if (_root.duck10.hitTest(_root.goal.goal1)) { _root.duck10T = 0; } else { _root.duck10T = 1; } _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Instance of Symbol 98 MovieClip "life1" in Frame 186
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } } onClipEvent (enterFrame) { if ((_root.mins == 0) && (_root.sek == 0)) { _root.life = _root.life - 1; if (_root.life < 0) { if (klar != 1) { if (_root.soundPos == "ON") { _root.die.start(0, 1); } klar = 1; } } else { if (_root.life == 2) { _root.life1.gotoAndPlay(2); } else if (_root.life == 1) { _root.life2.gotoAndPlay(2); } else if (_root.life == 0) { _root.life3.gotoAndPlay(2); } if (_root.soundPos == "ON") { _root.die.start(0, 1); } _root.play(); _root.sek = 0; _root.mins = 3; _root.clock.stor._rotation = -90; _root.clock.liten._rotation = -162; _root.fps = 0; } } }
Instance of Symbol 140 MovieClip "duck" in Frame 187
onClipEvent (load) { duckDir = 2; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck2" in Frame 187
onClipEvent (load) { duckDir = 6; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck3" in Frame 187
onClipEvent (load) { duckDir = 1; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck5" in Frame 187
onClipEvent (load) { duckDir = 3; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck4" in Frame 187
onClipEvent (load) { duckDir = 8; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck6" in Frame 187
onClipEvent (load) { duckDir = 8; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck7" in Frame 187
onClipEvent (load) { duckDir = 5; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck8" in Frame 187
onClipEvent (load) { duckDir = 4; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck9" in Frame 187
onClipEvent (load) { duckDir = 2; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 140 MovieClip "duck10" in Frame 187
onClipEvent (load) { duckDir = 4; tempDir = duckDir; runTimer = 0; stuckTimer = 0; } onClipEvent (enterFrame) { if (_root.pausV == false) { if (stuckTimer < 0) { if (hitTest(_root.stand)) { if (_root.stand._x < this._x) { tempDir = 270 + ((Math.atan((this._y - _root.stand._y) / (this._x - _root.stand._x)) / (Math.PI*2)) * 360); } else { tempDir = 90 + ((Math.atan((_root.stand._y - this._y) / (_root.stand._x - this._x)) / (Math.PI*2)) * 360); } runTimer = 14; tempDir = Math.round(tempDir / 45) - 1; if (tempDir == 0) { tempDir = 1; } if (tempDir == -1) { tempDir = 8; } duckDir = tempDir; } } if (runTimer > 0) { runTimer = runTimer - 1; } stuckTimer = stuckTimer - 1; if (this._x < ((_root.fence._x - (_root.fence._width / 2)) + 40)) { this._x = (_root.fence._x - (_root.fence._width / 2)) + 40; stuckTimer = 10; if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 4; } else { duckDir = 6; } } else if (duckDir == 8) { duckDir = 4; } else if (duckDir == 2) { duckDir = 6; } } if (this._x > ((_root.fence._x + (_root.fence._width / 2)) - 40)) { this._x = (_root.fence._x + (_root.fence._width / 2)) - 40; stuckTimer = 10; if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 2; } else if (duckDir == 6) { duckDir = 8; } } if (this._y < ((_root.fence._y - (_root.fence._height / 2)) + 40)) { this._y = (_root.fence._y - (_root.fence._height / 2)) + 40; stuckTimer = 10; if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 6; } else { duckDir = 8; } } else if (duckDir == 4) { duckDir = 6; } else if (duckDir == 2) { duckDir = 8; } } if (this._y > ((_root.fence._y + (_root.fence._height / 2)) - 40)) { this._y = (_root.fence._y + (_root.fence._height / 2)) - 40; stuckTimer = 10; if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 2; } else { duckDir = 4; } } else if (duckDir == 8) { duckDir = 2; } else if (duckDir == 6) { duckDir = 4; } } duckTimer = duckTimer + 1; if (duckDir == 0) { duckDir = 8; } else if (duckDir == 9) { duckDir = 1; } if (duckTimer >= (40 + (Math.random() * 10))) { if (Math.random() >= 0.5) { duckMove = true; } else { duckMove = false; } if (Math.random() >= 0.5) { duckDir = duckDir + 1; } else if (Math.random() >= 0.5) { duckDir = duckDir - 1; } duckTimer = 0; } if ((runTimer > 0) || (stuckTimer > 0)) { if (duckDir == 1) { this._rotation = 0; this._x = this._x - 7.5; } else if (duckDir == 2) { this._rotation = 45; this._x = this._x - 4; this._y = this._y - 4; } else if (duckDir == 3) { this._rotation = 90; this._y = this._y - 7.5; } else if (duckDir == 4) { this._rotation = 135; this._x = this._x + 4; this._y = this._y - 4; } else if (duckDir == 5) { this._rotation = 180; this._x = this._x + 7.5; } else if (duckDir == 6) { this._rotation = -135; this._x = this._x + 4; this._y = this._y + 4; } else if (duckDir == 7) { this._rotation = -90; this._y = this._y + 7.5; } else if (duckDir == 8) { this._rotation = -45; this._x = this._x - 4; this._y = this._y + 4; } } else if (duckDir == 1) { this._rotation = 0; if (duckMove == true) { this._x = this._x - 0.2; } } else if (duckDir == 2) { this._rotation = 45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y - 0.1; } } else if (duckDir == 3) { this._rotation = 90; if (duckMove == true) { this._y = this._y - 0.2; } } else if (duckDir == 4) { this._rotation = 135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y - 0.1; } } else if (duckDir == 5) { this._rotation = 180; if (duckMove == true) { this._x = this._x + 0.2; } } else if (duckDir == 6) { this._rotation = -135; if (duckMove == true) { this._x = this._x + 0.1; this._y = this._y + 0.1; } } else if (duckDir == 7) { this._rotation = -90; if (duckMove == true) { this._y = this._y + 0.2; } } else if (duckDir == 8) { this._rotation = -45; if (duckMove == true) { this._x = this._x - 0.1; this._y = this._y + 0.1; } } if ((this._x > (_root.stone._x - 36)) && (this._x < (_root.stone._x + 36))) { if ((this._y < _root.stone._y) && (this._y >= (_root.stone._y - 54))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y - 55; } else if ((this._y > _root.stone._y) && (this._y <= (_root.stone._y + 54))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stone._y + 55; } } if ((this._y > (_root.stone._y - 46)) && (this._y < (_root.stone._y + 46))) { if ((this._x < _root.stone._x) && (this._x >= (_root.stone._x - 44))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x - 45; } else if ((this._x > _root.stone._x) && (this._x <= (_root.stone._x + 44))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stone._x + 45; } } if ((this._x > (_root.stat._x - 78)) && (this._x < (_root.stat._x + 78))) { if ((this._y < _root.stat._y) && (this._y >= (_root.stat._y - 86))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y - 87; } else if ((this._y > _root.stat._y) && (this._y <= (_root.stat._y + 86))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.stat._y + 87; } } if ((this._y > (_root.stat._y - 78)) && (this._y < (_root.stat._y + 78))) { if ((this._x < _root.stat._x) && (this._x >= (_root.stat._x - 86))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x - 87; } else if ((this._x > _root.stat._x) && (this._x <= (_root.stat._x + 86))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.stat._x + 87; } } if ((this._x > (_root.trash._x - 28)) && (this._x < (_root.trash._x + 28))) { if ((this._y < _root.trash._y) && (this._y >= (_root.trash._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y - 37; } else if ((this._y > _root.trash._y) && (this._y <= (_root.trash._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash._y + 37; } } if ((this._y > (_root.trash._y - 28)) && (this._y < (_root.trash._y + 28))) { if ((this._x < _root.trash._x) && (this._x >= (_root.trash._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x - 37; } else if ((this._x > _root.trash._x) && (this._x <= (_root.trash._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash._x + 37; } } if ((this._x > (_root.trash2._x - 28)) && (this._x < (_root.trash2._x + 28))) { if ((this._y < _root.trash2._y) && (this._y >= (_root.trash2._y - 36))) { if (duckDir == 7) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 8) { duckDir = 1; } else if (duckDir == 6) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y - 37; } else if ((this._y > _root.trash2._y) && (this._y <= (_root.trash2._y + 36))) { if (duckDir == 3) { if (Math.random() >= 0.5) { duckDir = 1; } else { duckDir = 5; } } else if (duckDir == 2) { duckDir = 1; } else if (duckDir == 4) { duckDir = 5; } stuckTimer = 5; this._y = _root.trash2._y + 37; } } if ((this._y > (_root.trash2._y - 28)) && (this._y < (_root.trash2._y + 28))) { if ((this._x < _root.trash2._x) && (this._x >= (_root.trash2._x - 36))) { if (duckDir == 5) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 4) { duckDir = 3; } else if (duckDir == 6) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x - 37; } else if ((this._x > _root.trash2._x) && (this._x <= (_root.trash2._x + 36))) { if (duckDir == 1) { if (Math.random() >= 0.5) { duckDir = 3; } else { duckDir = 7; } } else if (duckDir == 2) { duckDir = 3; } else if (duckDir == 8) { duckDir = 7; } stuckTimer = 5; this._x = _root.trash2._x + 37; } } } }
Instance of Symbol 244 MovieClip "run2" in Frame 187
onClipEvent (enterFrame) { if (this._visible == true) { this.play(); } else { this.stop(); } }
Instance of Symbol 266 MovieClip "stand" in Frame 187
onClipEvent (enterFrame) { if (_root.pausV == false) { if (_root.dirtime > 0) { _root.dirtime = _root.dirtime - 1; } _root.run._x = _root.stand._x; _root.run._y = _root.stand._y; _root.run2._x = _root.stand._x; _root.run2._y = _root.stand._y; _root.run._rotation = _root.stand._rotation; _root.run2._rotation = _root.stand._rotation; if (Key.isDown(38) || (Key.isDown(40))) { if (_root.stand._x >= 405) { if (_root.fence._x >= 88) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x - 3.5; _root.bush._x = _root.bush._x - 3.5; _root.bush2._x = _root.bush2._x - 3.5; _root.bush3._x = _root.bush3._x - 3.5; _root.bench._x = _root.bench._x - 3.5; _root.bench2._x = _root.bench2._x - 3.5; _root.tree._x = _root.tree._x - 3.5; _root.tree2._x = _root.tree2._x - 3.5; _root.tree3._x = _root.tree3._x - 3.5; _root.duck._x = _root.duck._x - 3.5; _root.duck2._x = _root.duck2._x - 3.5; _root.duck3._x = _root.duck3._x - 3.5; _root.duck4._x = _root.duck4._x - 3.5; _root.duck5._x = _root.duck5._x - 3.5; _root.duck6._x = _root.duck6._x - 3.5; _root.duck7._x = _root.duck7._x - 3.5; _root.duck8._x = _root.duck8._x - 3.5; _root.duck9._x = _root.duck9._x - 3.5; _root.duck10._x = _root.duck10._x - 3.5; _root.goal._x = _root.goal._x - 3.5; _root.stone._x = _root.stone._x - 3.5; _root.path._x = _root.path._x - 3.5; _root.flow._x = _root.flow._x - 3.5; _root.flow2._x = _root.flow2._x - 3.5; _root.flow3._x = _root.flow3._x - 3.5; _root.flow4._x = _root.flow4._x - 3.5; _root.stat._x = _root.stat._x - 3.5; _root.stat2._x = _root.stat2._x - 3.5; _root.gras._x = _root.gras._x - 3.5; _root.trash._x = _root.trash._x - 3.5; _root.trash2._x = _root.trash2._x - 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x - 6; _root.bush._x = _root.bush._x - 6; _root.bush2._x = _root.bush2._x - 6; _root.bush3._x = _root.bush3._x - 6; _root.bench._x = _root.bench._x - 6; _root.bench2._x = _root.bench2._x - 6; _root.tree._x = _root.tree._x - 6; _root.tree2._x = _root.tree2._x - 6; _root.tree3._x = _root.tree3._x - 6; _root.duck._x = _root.duck._x - 6; _root.duck2._x = _root.duck2._x - 6; _root.duck3._x = _root.duck3._x - 6; _root.duck4._x = _root.duck4._x - 6; _root.duck5._x = _root.duck5._x - 6; _root.duck6._x = _root.duck6._x - 6; _root.duck7._x = _root.duck7._x - 6; _root.duck8._x = _root.duck8._x - 6; _root.duck9._x = _root.duck9._x - 6; _root.duck10._x = _root.duck10._x - 6; _root.goal._x = _root.goal._x - 6; _root.stone._x = _root.stone._x - 6; _root.path._x = _root.path._x - 6; _root.flow._x = _root.flow._x - 6; _root.flow2._x = _root.flow2._x - 6; _root.flow3._x = _root.flow3._x - 6; _root.flow4._x = _root.flow4._x - 6; _root.stat._x = _root.stat._x - 6; _root.stat2._x = _root.stat2._x - 6; _root.gras._x = _root.gras._x - 6; _root.trash._x = _root.trash._x - 6; _root.trash2._x = _root.trash2._x - 6; } _root.stand._x = 405; } else if (_root.stand._x > 495) { _root.stand._x = 495; } } if (_root.stand._x < 210) { if (_root.fence._x <= 537) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._x = _root.fence._x + 3.5; _root.bush._x = _root.bush._x + 3.5; _root.bush2._x = _root.bush2._x + 3.5; _root.bush3._x = _root.bush3._x + 3.5; _root.bench._x = _root.bench._x + 3.5; _root.bench2._x = _root.bench2._x + 3.5; _root.tree._x = _root.tree._x + 3.5; _root.tree2._x = _root.tree2._x + 3.5; _root.tree3._x = _root.tree3._x + 3.5; _root.duck._x = _root.duck._x + 3.5; _root.duck2._x = _root.duck2._x + 3.5; _root.duck3._x = _root.duck3._x + 3.5; _root.duck4._x = _root.duck4._x + 3.5; _root.duck5._x = _root.duck5._x + 3.5; _root.duck6._x = _root.duck6._x + 3.5; _root.duck7._x = _root.duck7._x + 3.5; _root.duck8._x = _root.duck8._x + 3.5; _root.duck9._x = _root.duck9._x + 3.5; _root.duck10._x = _root.duck10._x + 3.5; _root.goal._x = _root.goal._x + 3.5; _root.stone._x = _root.stone._x + 3.5; _root.path._x = _root.path._x + 3.5; _root.flow._x = _root.flow._x + 3.5; _root.flow2._x = _root.flow2._x + 3.5; _root.flow3._x = _root.flow3._x + 3.5; _root.flow4._x = _root.flow4._x + 3.5; _root.stat._x = _root.stat._x + 3.5; _root.stat2._x = _root.stat2._x + 3.5; _root.gras._x = _root.gras._x + 3.5; _root.trash._x = _root.trash._x + 3.5; _root.trash2._x = _root.trash2._x + 3.5; } else if ((_root.dir == 1) || (_root.dir == 5)) { _root.fence._x = _root.fence._x + 6; _root.bush._x = _root.bush._x + 6; _root.bush2._x = _root.bush2._x + 6; _root.bush3._x = _root.bush3._x + 6; _root.bench._x = _root.bench._x + 6; _root.bench2._x = _root.bench2._x + 6; _root.tree._x = _root.tree._x + 6; _root.tree2._x = _root.tree2._x + 6; _root.tree3._x = _root.tree3._x + 6; _root.duck._x = _root.duck._x + 6; _root.duck2._x = _root.duck2._x + 6; _root.duck3._x = _root.duck3._x + 6; _root.duck4._x = _root.duck4._x + 6; _root.duck5._x = _root.duck5._x + 6; _root.duck6._x = _root.duck6._x + 6; _root.duck7._x = _root.duck7._x + 6; _root.duck8._x = _root.duck8._x + 6; _root.duck9._x = _root.duck9._x + 6; _root.duck10._x = _root.duck10._x + 6; _root.goal._x = _root.goal._x + 6; _root.stone._x = _root.stone._x + 6; _root.path._x = _root.path._x + 6; _root.flow._x = _root.flow._x + 6; _root.flow2._x = _root.flow2._x + 6; _root.flow3._x = _root.flow3._x + 6; _root.flow4._x = _root.flow4._x + 6; _root.stat._x = _root.stat._x + 6; _root.stat2._x = _root.stat2._x + 6; _root.gras._x = _root.gras._x + 6; _root.trash._x = _root.trash._x + 6; _root.trash2._x = _root.trash2._x + 6; } _root.stand._x = 210; } else if (_root.stand._x < 130) { _root.stand._x = 130; } } if (_root.stand._y >= 255) { if (_root.fence._y >= -157) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y - 3.5; _root.bush._y = _root.bush._y - 3.5; _root.bush2._y = _root.bush2._y - 3.5; _root.bush3._y = _root.bush3._y - 3.5; _root.bench._y = _root.bench._y - 3.5; _root.bench2._y = _root.bench2._y - 3.5; _root.tree._y = _root.tree._y - 3.5; _root.tree2._y = _root.tree2._y - 3.5; _root.tree3._y = _root.tree3._y - 3.5; _root.duck._y = _root.duck._y - 3.5; _root.duck2._y = _root.duck2._y - 3.5; _root.duck3._y = _root.duck3._y - 3.5; _root.duck4._y = _root.duck4._y - 3.5; _root.duck5._y = _root.duck5._y - 3.5; _root.duck6._y = _root.duck6._y - 3.5; _root.duck7._y = _root.duck7._y - 3.5; _root.duck8._y = _root.duck8._y - 3.5; _root.duck9._y = _root.duck9._y - 3.5; _root.duck10._y = _root.duck10._y - 3.5; _root.goal._y = _root.goal._y - 3.5; _root.stone._y = _root.stone._y - 3.5; _root.path._y = _root.path._y - 3.5; _root.flow._y = _root.flow._y - 3.5; _root.flow2._y = _root.flow2._y - 3.5; _root.flow3._y = _root.flow3._y - 3.5; _root.flow4._y = _root.flow4._y - 3.5; _root.stat._y = _root.stat._y - 3.5; _root.stat2._y = _root.stat2._y - 3.5; _root.gras._y = _root.gras._y - 3.5; _root.trash._y = _root.trash._y - 3.5; _root.trash2._y = _root.trash2._y - 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y - 6; _root.bush._y = _root.bush._y - 6; _root.bush2._y = _root.bush2._y - 6; _root.bush3._y = _root.bush3._y - 6; _root.bench._y = _root.bench._y - 6; _root.bench2._y = _root.bench2._y - 6; _root.tree._y = _root.tree._y - 6; _root.tree2._y = _root.tree2._y - 6; _root.tree3._y = _root.tree3._y - 6; _root.duck._y = _root.duck._y - 6; _root.duck2._y = _root.duck2._y - 6; _root.duck3._y = _root.duck3._y - 6; _root.duck4._y = _root.duck4._y - 6; _root.duck5._y = _root.duck5._y - 6; _root.duck6._y = _root.duck6._y - 6; _root.duck7._y = _root.duck7._y - 6; _root.duck8._y = _root.duck8._y - 6; _root.duck9._y = _root.duck9._y - 6; _root.duck10._y = _root.duck10._y - 6; _root.goal._y = _root.goal._y - 6; _root.stone._y = _root.stone._y - 6; _root.path._y = _root.path._y - 6; _root.flow._y = _root.flow._y - 6; _root.flow2._y = _root.flow2._y - 6; _root.flow3._y = _root.flow3._y - 6; _root.flow4._y = _root.flow4._y - 6; _root.stat._y = _root.stat._y - 6; _root.stat2._y = _root.stat2._y - 6; _root.gras._y = _root.gras._y - 6; _root.trash._y = _root.trash._y - 6; _root.trash2._y = _root.trash2._y - 6; } _root.stand._y = 255; } else if (_root.stand._y > 345) { _root.stand._y = 345; } } if (_root.stand._y <= 145) { if (_root.fence._y <= 556) { if ((((_root.dir == 6) || (_root.dir == 8)) || (_root.dir == 2)) || (_root.dir == 4)) { _root.fence._y = _root.fence._y + 3.5; _root.bush._y = _root.bush._y + 3.5; _root.bush2._y = _root.bush2._y + 3.5; _root.bush3._y = _root.bush3._y + 3.5; _root.bench._y = _root.bench._y + 3.5; _root.bench2._y = _root.bench2._y + 3.5; _root.tree._y = _root.tree._y + 3.5; _root.tree2._y = _root.tree2._y + 3.5; _root.tree3._y = _root.tree3._y + 3.5; _root.duck._y = _root.duck._y + 3.5; _root.duck2._y = _root.duck2._y + 3.5; _root.duck3._y = _root.duck3._y + 3.5; _root.duck4._y = _root.duck4._y + 3.5; _root.duck5._y = _root.duck5._y + 3.5; _root.duck6._y = _root.duck6._y + 3.5; _root.duck7._y = _root.duck7._y + 3.5; _root.duck8._y = _root.duck8._y + 3.5; _root.duck9._y = _root.duck9._y + 3.5; _root.duck10._y = _root.duck10._y + 3.5; _root.goal._y = _root.goal._y + 3.5; _root.stone._y = _root.stone._y + 3.5; _root.path._y = _root.path._y + 3.5; _root.flow._y = _root.flow._y + 3.5; _root.flow2._y = _root.flow2._y + 3.5; _root.flow3._y = _root.flow3._y + 3.5; _root.flow4._y = _root.flow4._y + 3.5; _root.stat._y = _root.stat._y + 3.5; _root.stat2._y = _root.stat2._y + 3.5; _root.gras._y = _root.gras._y + 3.5; _root.trash._y = _root.trash._y + 3.5; _root.trash2._y = _root.trash2._y + 3.5; } else if ((_root.dir == 3) || (_root.dir == 7)) { _root.fence._y = _root.fence._y + 6; _root.bush._y = _root.bush._y + 6; _root.bush2._y = _root.bush2._y + 6; _root.bush3._y = _root.bush3._y + 6; _root.bench._y = _root.bench._y + 6; _root.bench2._y = _root.bench2._y + 6; _root.tree._y = _root.tree._y + 6; _root.tree2._y = _root.tree2._y + 6; _root.tree3._y = _root.tree3._y + 6; _root.duck._y = _root.duck._y + 6; _root.duck2._y = _root.duck2._y + 6; _root.duck3._y = _root.duck3._y + 6; _root.duck4._y = _root.duck4._y + 6; _root.duck5._y = _root.duck5._y + 6; _root.duck6._y = _root.duck6._y + 6; _root.duck7._y = _root.duck7._y + 6; _root.duck8._y = _root.duck8._y + 6; _root.duck9._y = _root.duck9._y + 6; _root.duck10._y = _root.duck10._y + 6; _root.goal._y = _root.goal._y + 6; _root.stone._y = _root.stone._y + 6; _root.path._y = _root.path._y + 6; _root.flow._y = _root.flow._y + 6; _root.flow2._y = _root.flow2._y + 6; _root.flow3._y = _root.flow3._y + 6; _root.flow4._y = _root.flow4._y + 6; _root.stat._y = _root.stat._y + 6; _root.stat2._y = _root.stat2._y + 6; _root.gras._y = _root.gras._y + 6; _root.trash._y = _root.trash._y + 6; _root.trash2._y = _root.trash2._y + 6; } _root.stand._y = 145; } else if (_root.stand._y < 55) { _root.stand._y = 55; } } } if ((_root.stand._y > (_root.bench._y - 97)) && (_root.stand._y < (_root.bench._y + 97))) { if ((_root.stand._x < _root.bench._x) && (_root.stand._x >= (_root.bench._x - 48))) { _root.stand._x = _root.bench._x - 48; } else if ((_root.stand._x > _root.bench._x) && (_root.stand._x <= (_root.bench._x + 61))) { _root.stand._x = _root.bench._x + 61; } } if ((_root.stand._x > (_root.bench._x - 35)) && (_root.stand._x < (_root.bench._x + 48))) { if ((_root.stand._y < _root.bench._y) && (_root.stand._y >= (_root.bench._y - 110))) { _root.stand._y = _root.bench._y - 110; } else if ((_root.stand._y > _root.bench._y) && (_root.stand._y <= (_root.bench._y + 110))) { _root.stand._y = _root.bench._y + 110; } } if ((_root.stand._y >= (_root.bench2._y - 97)) && (_root.stand._y <= (_root.bench2._y + 97))) { if ((_root.stand._x < _root.bench2._x) && (_root.stand._x >= (_root.bench2._x - 48))) { _root.stand._x = _root.bench2._x - 48; } else if ((_root.stand._x > _root.bench2._x) && (_root.stand._x <= (_root.bench2._x + 61))) { _root.stand._x = _root.bench2._x + 61; } } if ((_root.stand._x > (_root.bench2._x - 35)) && (_root.stand._x < (_root.bench2._x + 48))) { if ((_root.stand._y < _root.bench2._y) && (_root.stand._y >= (_root.bench2._y - 110))) { _root.stand._y = _root.bench2._y - 110; } else if ((_root.stand._y > _root.bench2._y) && (_root.stand._y <= (_root.bench2._y + 110))) { _root.stand._y = _root.bench2._y + 110; } } if ((_root.stand._x > (_root.bush._x - 43)) && (_root.stand._x < (_root.bush._x + 43))) { if ((_root.stand._y < _root.bush._y) && (_root.stand._y >= (_root.bush._y - 56))) { _root.stand._y = _root.bush._y - 56; } else if ((_root.stand._y > _root.bush._y) && (_root.stand._y <= (_root.bush._y + 56))) { _root.stand._y = _root.bush._y + 56; } } if ((_root.stand._y > (_root.bush._y - 43)) && (_root.stand._y < (_root.bush._y + 43))) { if ((_root.stand._x < _root.bush._x) && (_root.stand._x >= (_root.bush._x - 56))) { _root.stand._x = _root.bush._x - 56; } else if ((_root.stand._x > _root.bush._x) && (_root.stand._x <= (_root.bush._x + 56))) { _root.stand._x = _root.bush._x + 56; } } if ((_root.stand._x > (_root.bush2._x - 43)) && (_root.stand._x < (_root.bush2._x + 43))) { if ((_root.stand._y < _root.bush2._y) && (_root.stand._y >= (_root.bush2._y - 56))) { _root.stand._y = _root.bush2._y - 56; } else if ((_root.stand._y > _root.bush2._y) && (_root.stand._y <= (_root.bush2._y + 56))) { _root.stand._y = _root.bush2._y + 56; } } if ((_root.stand._y > (_root.bush2._y - 43)) && (_root.stand._y < (_root.bush2._y + 43))) { if ((_root.stand._x < _root.bush2._x) && (_root.stand._x >= (_root.bush2._x - 56))) { _root.stand._x = _root.bush2._x - 56; } else if ((_root.stand._x > _root.bush2._x) && (_root.stand._x <= (_root.bush2._x + 56))) { _root.stand._x = _root.bush2._x + 56; } } if ((_root.stand._x > (_root.bush3._x - 43)) && (_root.stand._x < (_root.bush3._x + 43))) { if ((_root.stand._y < _root.bush3._y) && (_root.stand._y >= (_root.bush3._y - 56))) { _root.stand._y = _root.bush3._y - 56; } else if ((_root.stand._y > _root.bush3._y) && (_root.stand._y <= (_root.bush3._y + 56))) { _root.stand._y = _root.bush3._y + 56; } } if ((_root.stand._y > (_root.bush3._y - 43)) && (_root.stand._y < (_root.bush3._y + 43))) { if ((_root.stand._x < _root.bush3._x) && (_root.stand._x >= (_root.bush3._x - 56))) { _root.stand._x = _root.bush3._x - 56; } else if ((_root.stand._x > _root.bush3._x) && (_root.stand._x <= (_root.bush3._x + 56))) { _root.stand._x = _root.bush3._x + 56; } } if ((_root.stand._x > (_root.tree._x - 6)) && (_root.stand._x < (_root.tree._x + 6))) { if ((_root.stand._y < _root.tree._y) && (_root.stand._y >= (_root.tree._y - 16))) { _root.stand._y = _root.tree._y - 16; } else if ((_root.stand._y > _root.tree._y) && (_root.stand._y <= (_root.tree._y + 16))) { _root.stand._y = _root.tree._y + 16; } } if ((_root.stand._y > (_root.tree._y - 6)) && (_root.stand._y < (_root.tree._y + 6))) { if ((_root.stand._x < _root.tree._x) && (_root.stand._x >= (_root.tree._x - 16))) { _root.stand._x = _root.tree._x - 16; } else if ((_root.stand._x > _root.tree._x) && (_root.stand._x <= (_root.tree._x + 16))) { _root.stand._x = _root.tree._x + 16; } } if ((_root.stand._x > (_root.tree2._x - 6)) && (_root.stand._x < (_root.tree2._x + 6))) { if ((_root.stand._y < _root.tree2._y) && (_root.stand._y >= (_root.tree2._y - 16))) { _root.stand._y = _root.tree2._y - 16; } else if ((_root.stand._y > _root.tree2._y) && (_root.stand._y <= (_root.tree2._y + 16))) { _root.stand._y = _root.tree2._y + 16; } } if ((_root.stand._y > (_root.tree2._y - 6)) && (_root.stand._y < (_root.tree2._y + 6))) { if ((_root.stand._x < _root.tree2._x) && (_root.stand._x >= (_root.tree2._x - 16))) { _root.stand._x = _root.tree2._x - 16; } else if ((_root.stand._x > _root.tree2._x) && (_root.stand._x <= (_root.tree2._x + 16))) { _root.stand._x = _root.tree2._x + 16; } } if ((_root.stand._x > (_root.tree3._x - 6)) && (_root.stand._x < (_root.tree3._x + 6))) { if ((_root.stand._y < _root.tree3._y) && (_root.stand._y >= (_root.tree3._y - 16))) { _root.stand._y = _root.tree3._y - 16; } else if ((_root.stand._y > _root.tree3._y) && (_root.stand._y <= (_root.tree3._y + 16))) { _root.stand._y = _root.tree3._y + 16; } } if ((_root.stand._y > (_root.tree3._y - 6)) && (_root.stand._y < (_root.tree3._y + 6))) { if ((_root.stand._x < _root.tree3._x) && (_root.stand._x >= (_root.tree3._x - 16))) { _root.stand._x = _root.tree3._x - 16; } else if ((_root.stand._x > _root.tree3._x) && (_root.stand._x <= (_root.tree3._x + 16))) { _root.stand._x = _root.tree3._x + 16; } } if ((_root.stand._x > (_root.stone._x - 48)) && (_root.stand._x < (_root.stone._x + 48))) { if ((_root.stand._y < _root.stone._y) && (_root.stand._y >= (_root.stone._y - 56))) { _root.stand._y = _root.stone._y - 56; } else if ((_root.stand._y > _root.stone._y) && (_root.stand._y <= (_root.stone._y + 56))) { _root.stand._y = _root.stone._y + 56; } } if ((_root.stand._y > (_root.stone._y - 43)) && (_root.stand._y < (_root.stone._y + 43))) { if ((_root.stand._x < _root.stone._x) && (_root.stand._x >= (_root.stone._x - 61))) { _root.stand._x = _root.stone._x - 61; } else if ((_root.stand._x > _root.stone._x) && (_root.stand._x <= (_root.stone._x + 61))) { _root.stand._x = _root.stone._x + 61; } } if ((_root.stand._x > (_root.stat._x - 7)) && (_root.stand._x < (_root.stat._x + 77))) { if ((_root.stand._y < _root.stat._y) && (_root.stand._y >= (_root.stat._y - 90))) { _root.stand._y = _root.stat._y - 90; } else if ((_root.stand._y > _root.stat._y) && (_root.stand._y <= (_root.stat._y + 90))) { _root.stand._y = _root.stat._y + 90; } } if ((_root.stand._y > (_root.stat._y - 77)) && (_root.stand._y < (_root.stat._y + 77))) { if ((_root.stand._x < _root.stat._x) && (_root.stand._x >= (_root.stat._x - 90))) { _root.stand._x = _root.stat._x - 90; } else if ((_root.stand._x > _root.stat._x) && (_root.stand._x <= (_root.stat._x + 90))) { _root.stand._x = _root.stat._x + 90; } } if ((_root.stand._x >= (_root.trash._x - 38)) && (_root.stand._x <= (_root.trash._x + 38))) { if ((_root.stand._y < _root.trash._y) && (_root.stand._y >= (_root.trash._y - 51))) { _root.stand._y = _root.trash._y - 51; } else if ((_root.stand._y > _root.trash._y) && (_root.stand._y <= (_root.trash._y + 51))) { _root.stand._y = _root.trash._y + 51; } } if ((_root.stand._y >= (_root.trash._y - 38)) && (_root.stand._y <= (_root.trash._y + 38))) { if ((_root.stand._x < _root.trash._x) && (_root.stand._x >= (_root.trash._x - 51))) { _root.stand._x = _root.trash._x - 51; } else if ((_root.stand._x > _root.trash._x) && (_root.stand._x <= (_root.trash._x + 51))) { _root.stand._x = _root.trash._x + 51; } } if ((_root.stand._x >= (_root.trash2._x - 38)) && (_root.stand._x <= (_root.trash2._x + 38))) { if ((_root.stand._y < _root.trash2._y) && (_root.stand._y >= (_root.trash2._y - 51))) { _root.stand._y = _root.trash2._y - 51; } else if ((_root.stand._y > _root.trash2._y) && (_root.stand._y <= (_root.trash2._y + 51))) { _root.stand._y = _root.trash2._y + 51; } } if ((_root.stand._y >= (_root.trash2._y - 38)) && (_root.stand._y <= (_root.trash2._y + 38))) { if ((_root.stand._x < _root.trash2._x) && (_root.stand._x >= (_root.trash2._x - 51))) { _root.stand._x = _root.trash2._x - 51; } else if ((_root.stand._x > _root.trash2._x) && (_root.stand._x <= (_root.trash2._x + 51))) { _root.stand._x = _root.trash2._x + 51; } } if (Key.isDown(38) || (Key.isDown(40))) { if ((_root.stand._y > 55) || (_root.stand._y < 345)) { if ((_root.stand._x > 130) || (_root.stand._x < 495)) { if ((_root.stand._x == 130) || (_root.stand._x == 495)) { if ((_root.dir == 1) || (_root.dir == 5)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else if ((_root.stand._y == 55) || (_root.stand._y == 345)) { if ((_root.dir == 3) || (_root.dir == 7)) { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } else { _root.run._visible = true; _root.run2._visible = true; _root.stand._visible = false; } } } } else { _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } if (_root.dir == 9) { _root.dir = 1; } if (_root.dir == 0) { _root.dir = 8; } if (Key.isDown(37)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation - 45; _root.dir = _root.dir - 1; _root.dirtime = 3; } } if (Key.isDown(39)) { if (_root.dirtime == 0) { _root.stand._rotation = _root.stand._rotation + 45; _root.dir = _root.dir + 1; _root.dirtime = 3; } } if ((_root.stand._x <= 495) && (_root.stand._x >= 130)) { if ((_root.stand._y <= 345) && (_root.stand._y >= 55)) { if (Key.isDown(38)) { if (_root.dir == 1) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } } if (Key.isDown(40)) { if (_root.dir == 1) { if ((_root.stand._x == 495) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x + 6; } } else if (_root.dir == 2) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 3) { if ((_root.stand._y == 345) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y + 6; } } else if (_root.dir == 4) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y + 3.5; } else if (_root.dir == 5) { if ((_root.stand._x == 130) || (_root.vbench == false)) { } else { _root.stand._x = _root.stand._x - 6; } } else if (_root.dir == 6) { _root.stand._x = _root.stand._x - 3.5; _root.stand._y = _root.stand._y - 3.5; } else if (_root.dir == 7) { if ((_root.stand._y == 55) || (_root.vbench == false)) { } else { _root.stand._y = _root.stand._y - 6; } } else if (_root.dir == 8) { _root.stand._x = _root.stand._x + 3.5; _root.stand._y = _root.stand._y - 3.5; } } } } } }
Instance of Symbol 272 MovieClip "paus" in Frame 187
onClipEvent (load) { this._visible = false; _root.pausV = false; klar = 0; } onClipEvent (enterFrame) { if (Key.isDown(80) && (klar == 0)) { klar = 3; if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } } if (klar > 0) { klar = klar - 1; } }
Frame 190
stop();
Instance of Symbol 388 MovieClip "fail" in Frame 190
onClipEvent (load) { _root.dead = false; } onClipEvent (enterFrame) { if (((_root.life < 0) && (_root.dead == false)) && (_root.life3._currentframe > 21)) { _root.fail.play(); _root.dead = true; _root.pausV = false; _root.paus._visible = false; } }
Instance of Symbol 391 MovieClip "comp" in Frame 190
onClipEvent (enterFrame) { if ((_root.ducksTT == 0) && (_root.cleared != true)) { _root.cleared = true; _root.comp.play(); klar = 1; _root.ducksComplete = _root.ducksComplete + _root.ducksLT; _root.litenV = _root.clock.stor._rotation; _root.storV = _root.clock.liten._rotation; } }
Frame 194
if (_root.cleared == true) { gotoAndPlay (206); _root.cleared = false; _root.levelClear = _root.levelClear + 1; } else if (_root.life >= 0) { gotoAndPlay (186); } else { gotoAndPlay (195); }
Frame 195
_root.FStotalducks = (_root.ducksLT - _root.ducksTT) + _root.ducksComplete; _root.FStotaltime = ((_root.totalMin + " minutes and ") + _root.totalSek) + " seconds"; if (_root.levelClear >= 1) { _root.m1acc.gotoAndStop("yes"); } if (_root.levelClear >= 2) { _root.m2acc.gotoAndStop("yes"); } if (_root.levelClear >= 3) { _root.m3acc.gotoAndStop("yes"); } if (_root.levelClear >= 4) { _root.m4acc.gotoAndStop("yes"); } if (_root.levelClear >= 5) { _root.m5acc.gotoAndStop("yes"); } if (_root.soundPos == "ON") { _root.failedS.start(0, 1); }
Instance of Symbol 84 MovieClip in Frame 195
onClipEvent (load) { _root.clock.stor._rotation = 180; _root.clock.liten._rotation = -90; }
Instance of Symbol 98 MovieClip "life1" in Frame 195
onClipEvent (load) { this.gotoAndStop(22); }
Instance of Symbol 98 MovieClip "life2" in Frame 195
onClipEvent (load) { this.gotoAndStop(22); }
Instance of Symbol 98 MovieClip "life3" in Frame 195
onClipEvent (load) { this.gotoAndStop(22); }
Instance of Symbol 101 MovieClip in Frame 195
onClipEvent (load) { _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Frame 200
stop();
Frame 205
gotoAndPlay (46);
Frame 206
_root.FStotalducks = _root.ducksComplete; _root.FStotaltime = ((_root.totalMin + " minutes and ") + _root.totalSek) + " seconds"; if (_root.levelClear >= 1) { _root.m1acc.gotoAndStop("yes"); } if (_root.levelClear >= 2) { _root.m2acc.gotoAndStop("yes"); } if (_root.levelClear >= 3) { _root.m3acc.gotoAndStop("yes"); } if (_root.levelClear >= 4) { _root.m4acc.gotoAndStop("yes"); } if (_root.levelClear >= 5) { _root.m5acc.gotoAndStop("yes"); } if (_root.soundPos == "ON") { _root.completedS.start(0, 1); }
Instance of Symbol 84 MovieClip in Frame 206
onClipEvent (load) { _root.clock.stor._rotation = _root.storV; _root.clock.liten._rotation = _root.litenV; }
Instance of Symbol 98 MovieClip "life1" in Frame 206
onClipEvent (load) { if (_root.life <= 2) { _root.life1.gotoAndStop(22); } if (_root.life <= 1) { _root.life2.gotoAndStop(22); } if (_root.life <= 0) { _root.life3.gotoAndStop(22); } }
Instance of Symbol 101 MovieClip in Frame 206
onClipEvent (load) { _root.ducksTT = _root.ducksLT - (10 - (((((((((_root.duckT + _root.duck2T) + _root.duck3T) + _root.duck4T) + _root.duck5T) + _root.duck6T) + _root.duck7T) + _root.duck8T) + _root.duck9T) + _root.duck10T)); if (_root.ducksTT == 10) { _root.ducksLeft = "10"; } else { _root.ducksLeft = "0" + _root.ducksTT; } }
Frame 211
stop();
Frame 216
gotoAndPlay (46);
Symbol 28 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); setProperty(_root.bg, _alpha , PercentLoaded); _root.preloader.hum.setVolume(PercentLoaded); } else { _root.preloader._alpha = _root.preloader._alpha - 10; _root.preloader.hum.setVolume(_root.preloader._alpha); if (snor != 1) { _root.plingV.start(0, 1); snor = 1; } } if (_root.preloader._alpha <= 0) { _root.preloader.hum.stop(); _root.gotoAndPlay(2); }
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
Symbol 42 Button
on (press) { if (_root.soundPos == "ON") { _root.tuck.start(0, 1); } } on (release) { _root.menuChoice = "play"; _root.play(); }
Symbol 47 Button
on (press) { if (_root.soundPos == "ON") { _root.tuck.start(0, 1); } } on (release) { _root.menuChoice = "briefing"; _root.play(); }
Symbol 52 Button
on (press) { if (_root.soundPos == "ON") { _root.tuck.start(0, 1); } } on (release) { _root.menuChoice = "cabinet"; _root.play(); }
Symbol 57 Button
on (press) { if (_root.soundPos == "ON") { _root.tuck.start(0, 1); } } on (release) { if (_root.passField == "fyffes") { _root.passOut = 2; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "arla") { _root.passOut = 3; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "manson") { _root.passOut = 4; _root.menuChoice = "play"; _root.play(); } else if (_root.passField == "telebjan") { _root.passOut = 5; _root.menuChoice = "play"; _root.play(); } else { _root.passField = "WRONG!"; } }
Symbol 61 MovieClip Frame 1
if (_root.soundPos == "OFF") { gotoAndStop (2); } else { stop(); }
Symbol 61 MovieClip Frame 2
stop();
Symbol 75 Button
on (press) { if (_root.soundPos == "ON") { _root.tuck.start(0, 1); } } on (release, keyPress "<Enter>") { _root.play(); }
Symbol 76 Button
on (release) { getURL ("http://www.fuckturas.com", "_blanc"); }
Symbol 78 Button
on (release) { getURL ("http://www.albinoblacksheep.com", "_blanc"); }
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 22
stop();
Symbol 140 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip "hitarea" in Symbol 140 MovieClip Frame 1
onClipEvent (load) { timer = 20 + (Math.random() * 15); } onClipEvent (enterFrame) { if ((Math.random() * 20) > 19) { if ((Math.random() * 5) > 4) { gotoAndPlay (2); } else if ((Math.random() * 8) > 7) { gotoAndPlay (7); } else if ((Math.random() * 8) > 7) { gotoAndPlay (16); } } if (_root.soundPos == "ON") { if ((_root.ducksLT - _root.ducksTT) == 0) { apa = Math.ceil(Math.random() * 15); } else if ((_root.ducksLT - _root.ducksTT) == 2) { apa = Math.ceil(Math.random() * 12); } else if (((_root.ducksLT - _root.ducksTT) == 3) || ((_root.ducksLT - _root.ducksTT) == 4)) { apa = Math.ceil(Math.random() * 10); } else if (((_root.ducksLT - _root.ducksTT) == 5) || ((_root.ducksLT - _root.ducksTT) == 6)) { apa = Math.ceil(Math.random() * 9); } else if (((_root.ducksLT - _root.ducksTT) == 7) || ((_root.ducksLT - _root.ducksTT) == 8)) { apa = Math.ceil(Math.random() * 7); } else if (((_root.ducksLT - _root.ducksTT) == 9) || ((_root.ducksLT - _root.ducksTT) == 10)) { apa = Math.ceil(Math.random() * 6); } timer = timer - 1; if ((timer <= 0) && (_parent.hitTest(_root.paus))) { if (apa == 1) { _root.kvack1.start(0, 1); } else if (apa == 2) { _root.kvack2.start(0, 1); } else if (apa == 3) { _root.kvack3.start(0, 1); } else if (apa == 4) { _root.kvack4.start(0, 1); } timer = 20 + (Math.random() * 15); } } }
Symbol 140 MovieClip Frame 6
gotoAndStop (1);
Symbol 140 MovieClip Frame 11
stop();
Instance of Symbol 106 MovieClip "hitarea" in Symbol 140 MovieClip Frame 11
onClipEvent (enterFrame) { if ((Math.random() * 20) > 15) { if ((Math.random() * 5) > 3) { gotoAndPlay (12); } } }
Symbol 140 MovieClip Frame 15
gotoAndStop (1);
Symbol 140 MovieClip Frame 20
stop();
Instance of Symbol 106 MovieClip "hitarea" in Symbol 140 MovieClip Frame 20
onClipEvent (enterFrame) { if ((Math.random() * 20) > 15) { if ((Math.random() * 5) > 3) { gotoAndPlay (21); } } }
Symbol 140 MovieClip Frame 24
gotoAndStop (1);
Symbol 232 Button
on (release, keyPress "<Escape>") { if (_root.life >= 0) { if (_root.life >= 3) { _root.life1.gotoAndPlay(2); } if (_root.life >= 2) { _root.life2.gotoAndPlay(2); } if (_root.life >= 1) { _root.life3.gotoAndPlay(2); } _root.life = -1; _root.sek = 0; _root.mins = 0; _root.fps = 0; } }
Symbol 244 MovieClip Frame 5
if (_root.soundPos == "ON") { if (_root.path.hitTest(_root.stand._x, _root.stand._y, true)) { stepV = Math.ceil(Math.random() * 3); if (stepV == 1) { _root.stepB1.start(0, 1); } else if (stepV == 2) { _root.stepB2.start(0, 1); } else if (stepV == 3) { _root.stepB3.start(0, 1); } } else { stepV = Math.ceil(Math.random() * 4); if (stepV == 1) { _root.stepA1.start(0, 1); } else if (stepV == 2) { _root.stepA2.start(0, 1); } else if (stepV == 3) { _root.stepA3.start(0, 1); } else if (stepV == 4) { _root.stepA4.start(0, 1); } } }
Symbol 244 MovieClip Frame 12
if (_root.soundPos == "ON") { if (_root.path.hitTest(_root.stand._x, _root.stand._y, true)) { stepV = Math.ceil(Math.random() * 3); if (stepV == 1) { _root.stepB1.start(0, 1); } else if (stepV == 2) { _root.stepB2.start(0, 1); } else if (stepV == 3) { _root.stepB3.start(0, 1); } } else { stepV = Math.ceil(Math.random() * 4); if (stepV == 1) { _root.stepA1.start(0, 1); } else if (stepV == 2) { _root.stepA2.start(0, 1); } else if (stepV == 3) { _root.stepA3.start(0, 1); } else if (stepV == 4) { _root.stepA4.start(0, 1); } } }
Symbol 273 Button
on (release) { if (_root.pausV == false) { _root.pausV = true; _root.paus._visible = true; _root.run._visible = false; _root.run2._visible = false; _root.stand._visible = true; } else if (_root.pausV == true) { _root.pausV = false; _root.paus._visible = false; } }
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 10
_root.play(); stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 10
_root.play(); stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 10
_root.play(); stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 10
_root.play(); stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 10
_root.play(); stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 10
_root.play(); stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 10
_root.play(); stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 10
_root.play(); stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 10
_root.play(); stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 10
_root.play(); stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 5
stop();

Library Items

Symbol 1 Sound [woho]
Symbol 2 Sound [die]
Symbol 3 Sound [tuck]
Symbol 4 Sound [swish]
Symbol 5 Sound [stepB3]
Symbol 6 Sound [stepB2]
Symbol 7 Sound [stepB1]
Symbol 8 Sound [stepA4]
Symbol 9 Sound [stepA3]
Symbol 10 Sound [stepA2]
Symbol 11 Sound [stepA1]
Symbol 12 Sound [song]
Symbol 13 Sound [Vporl]
Symbol 14 Sound [pip]
Symbol 15 Sound [noS]
Symbol 16 Sound [kvack4]
Symbol 17 Sound [kvack3]
Symbol 18 Sound [kvack2]
Symbol 19 Sound [kvack1]
Symbol 20 Sound [humhum]
Symbol 21 Sound [plingV]
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24 272  Timeline
Symbol 24 MovieClipUses:23Used by:Timeline
Symbol 25 GraphicUsed by:26 76 78 220
Symbol 26 MovieClipUses:25Used by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:26 27Used by:Timeline
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 FontUsed by:33 34 35 38 39 40 43 44 45 48 49 50 54 55 274 277 308 311 334 337 356 359 386 389 395 396 397 398 400 401 402 403 404 406 408
Symbol 33 TextUses:32Used by:Timeline
Symbol 34 EditableTextUses:32Used by:Timeline
Symbol 35 EditableTextUses:32Used by:Timeline
Symbol 36 FontUsed by:37 65 66 67 68 69 70 71 72 73 77 85 86 100 169 170 171 172 174 175 176 177 178 179 180 185 196 197 198 202 203 208 209 222 225 226 227 271 280 281 282 285 314 315 316 319 340 341 342 345 362 363 364 367 399 405 407
Symbol 37 TextUses:36Used by:Timeline
Symbol 38 TextUses:32Used by:42
Symbol 39 TextUses:32Used by:42
Symbol 40 TextUses:32Used by:42
Symbol 41 GraphicUsed by:42
Symbol 42 ButtonUses:38 39 40 41Used by:Timeline
Symbol 43 TextUses:32Used by:47
Symbol 44 TextUses:32Used by:47
Symbol 45 TextUses:32Used by:47
Symbol 46 GraphicUsed by:47
Symbol 47 ButtonUses:43 44 45 46Used by:Timeline
Symbol 48 TextUses:32Used by:52
Symbol 49 TextUses:32Used by:52
Symbol 50 TextUses:32Used by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:48 49 50 51Used by:Timeline
Symbol 53 GraphicUsed by:57 75
Symbol 54 TextUses:32Used by:57 75
Symbol 55 TextUses:32Used by:57 75
Symbol 56 GraphicUsed by:57 75
Symbol 57 ButtonUses:53 54 55 56Used by:Timeline
Symbol 58 GraphicUsed by:61
Symbol 59 GraphicUsed by:61
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:58 59 60Used by:Timeline
Symbol 62 GraphicUsed by:Timeline
Symbol 63 GraphicUsed by:Timeline
Symbol 64 GraphicUsed by:Timeline
Symbol 65 TextUses:36Used by:Timeline
Symbol 66 TextUses:36Used by:Timeline
Symbol 67 TextUses:36Used by:Timeline
Symbol 68 TextUses:36Used by:Timeline
Symbol 69 TextUses:36Used by:Timeline
Symbol 70 TextUses:36Used by:Timeline
Symbol 71 TextUses:36Used by:Timeline
Symbol 72 TextUses:36Used by:Timeline
Symbol 73 TextUses:36Used by:Timeline
Symbol 74 GraphicUsed by:Timeline
Symbol 75 ButtonUses:53 54 55 56Used by:Timeline
Symbol 76 ButtonUses:25Used by:Timeline
Symbol 77 TextUses:36Used by:Timeline
Symbol 78 ButtonUses:25Used by:Timeline
Symbol 79 GraphicUsed by:84
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:84
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:84
Symbol 84 MovieClipUses:79 81 83Used by:Timeline
Symbol 85 EditableTextUses:36Used by:87
Symbol 86 EditableTextUses:36Used by:87
Symbol 87 MovieClipUses:85 86Used by:Timeline
Symbol 88 ShapeTweeningUsed by:98
Symbol 89 GraphicUsed by:98
Symbol 90 GraphicUsed by:98
Symbol 91 GraphicUsed by:98
Symbol 92 GraphicUsed by:98
Symbol 93 GraphicUsed by:98
Symbol 94 GraphicUsed by:98
Symbol 95 GraphicUsed by:98
Symbol 96 GraphicUsed by:98
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:88 89 90 91 92 93 94 95 96 97Used by:Timeline
Symbol 99 GraphicUsed by:101
Symbol 100 EditableTextUses:36Used by:101
Symbol 101 MovieClipUses:99 100Used by:Timeline
Symbol 102 GraphicUsed by:Timeline
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:Timeline
Symbol 105 GraphicUsed by:106 191 232
Symbol 106 MovieClipUses:105Used by:140
Symbol 107 GraphicUsed by:122
Symbol 108 GraphicUsed by:122
Symbol 109 GraphicUsed by:122
Symbol 110 GraphicUsed by:122
Symbol 111 GraphicUsed by:122
Symbol 112 GraphicUsed by:122
Symbol 113 GraphicUsed by:122
Symbol 114 GraphicUsed by:122
Symbol 115 GraphicUsed by:122
Symbol 116 GraphicUsed by:122
Symbol 117 GraphicUsed by:122
Symbol 118 GraphicUsed by:122
Symbol 119 GraphicUsed by:122
Symbol 120 GraphicUsed by:122
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:107 108 109 110 111 112 113 114 115 116 117 118 119 120 121Used by:140
Symbol 123 GraphicUsed by:140
Symbol 124 GraphicUsed by:140
Symbol 125 GraphicUsed by:140
Symbol 126 GraphicUsed by:140
Symbol 127 GraphicUsed by:140
Symbol 128 GraphicUsed by:140
Symbol 129 GraphicUsed by:140
Symbol 130 GraphicUsed by:140
Symbol 131 GraphicUsed by:140
Symbol 132 GraphicUsed by:140
Symbol 133 GraphicUsed by:140
Symbol 134 GraphicUsed by:140
Symbol 135 GraphicUsed by:140
Symbol 136 GraphicUsed by:140
Symbol 137 GraphicUsed by:140
Symbol 138 GraphicUsed by:140
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:106 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139Used by:Timeline
Symbol 141 GraphicUsed by:160
Symbol 142 GraphicUsed by:160
Symbol 143 GraphicUsed by:160
Symbol 144 GraphicUsed by:160
Symbol 145 GraphicUsed by:160
Symbol 146 GraphicUsed by:160
Symbol 147 GraphicUsed by:160 244 264
Symbol 148 GraphicUsed by:160
Symbol 149 GraphicUsed by:160
Symbol 150 GraphicUsed by:160
Symbol 151 GraphicUsed by:160
Symbol 152 GraphicUsed by:160
Symbol 153 GraphicUsed by:160
Symbol 154 GraphicUsed by:160
Symbol 155 GraphicUsed by:160
Symbol 156 GraphicUsed by:160
Symbol 157 GraphicUsed by:160
Symbol 158 GraphicUsed by:160
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159Used by:Timeline
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:Timeline
Symbol 163 GraphicUsed by:166
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:166
Symbol 166 MovieClipUses:163 165Used by:Timeline
Symbol 167 FontUsed by:169 172 173 175 196 199 208 209
Symbol 168 FontUsed by:169 172 173 175 196 199 208
Symbol 169 TextUses:36 167 168Used by:Timeline
Symbol 170 TextUses:36Used by:Timeline
Symbol 171 TextUses:36Used by:Timeline
Symbol 172 TextUses:36 167 168Used by:Timeline
Symbol 173 TextUses:167 168Used by:Timeline
Symbol 174 TextUses:36Used by:Timeline
Symbol 175 TextUses:36 167 168Used by:Timeline
Symbol 176 TextUses:36Used by:Timeline
Symbol 177 TextUses:36Used by:Timeline
Symbol 178 TextUses:36Used by:Timeline
Symbol 179 TextUses:36Used by:Timeline
Symbol 180 TextUses:36Used by:Timeline
Symbol 181 BitmapUsed by:182 246 292
Symbol 182 GraphicUses:181Used by:291  Timeline
Symbol 183 BitmapUsed by:184
Symbol 184 GraphicUses:183Used by:245  Timeline
Symbol 185 TextUses:36Used by:Timeline
Symbol 186 GraphicUsed by:191 232
Symbol 187 GraphicUsed by:191 232
Symbol 188 GraphicUsed by:191 232
Symbol 189 GraphicUsed by:191 232
Symbol 190 GraphicUsed by:191 232
Symbol 191 ButtonUses:186 187 188 189 190 105Used by:Timeline
Symbol 192 GraphicUsed by:195 219 273
Symbol 193 FontUsed by:194 218
Symbol 194 TextUses:193Used by:195 273
Symbol 195 ButtonUses:192 194Used by:Timeline
Symbol 196 TextUses:36 167 168Used by:Timeline
Symbol 197 TextUses:36Used by:Timeline
Symbol 198 TextUses:36Used by:Timeline
Symbol 199 TextUses:167 168Used by:Timeline
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:270  Timeline
Symbol 202 TextUses:36Used by:Timeline
Symbol 203 TextUses:36Used by:Timeline
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:Timeline
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:Timeline
Symbol 208 TextUses:36 167 168Used by:Timeline
Symbol 209 TextUses:36 167Used by:Timeline
Symbol 210 GraphicUsed by:221 231 286 347 369
Symbol 211 GraphicUsed by:212
Symbol 212 MovieClipUses:211Used by:221 231 286 347 369
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213Used by:221 231 286 347 369
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:221 231 286 347 369
Symbol 217 GraphicUsed by:221 286
Symbol 218 TextUses:193Used by:219
Symbol 219 ButtonUses:192 218Used by:221 231 286 347 369
Symbol 220 ButtonUses:25Used by:221 231 286 347 369
Symbol 221 MovieClipUses:210 212 214 216 217 219 220Used by:Timeline
Symbol 222 TextUses:36Used by:Timeline
Symbol 223 GraphicUsed by:Timeline
Symbol 224 GraphicUsed by:Timeline
Symbol 225 TextUses:36Used by:Timeline
Symbol 226 TextUses:36Used by:Timeline
Symbol 227 TextUses:36Used by:Timeline
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:Timeline
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:210 212 214 216 230 219 220Used by:Timeline
Symbol 232 ButtonUses:186 187 188 189 190 105Used by:Timeline
Symbol 233 GraphicUsed by:289 290 325 348 372  Timeline
Symbol 234 GraphicUsed by:244
Symbol 235 GraphicUsed by:244
Symbol 236 GraphicUsed by:244
Symbol 237 GraphicUsed by:244
Symbol 238 GraphicUsed by:244
Symbol 239 GraphicUsed by:244
Symbol 240 GraphicUsed by:244
Symbol 241 GraphicUsed by:244
Symbol 242 GraphicUsed by:244
Symbol 243 GraphicUsed by:244
Symbol 244 MovieClipUses:234 235 147 236 237 238 239 240 241 242 243Used by:Timeline
Symbol 245 MovieClipUses:184Used by:Timeline
Symbol 246 GraphicUses:181Used by:247
Symbol 247 MovieClipUses:246Used by:Timeline
Symbol 248 GraphicUsed by:264
Symbol 249 GraphicUsed by:264
Symbol 250 GraphicUsed by:264
Symbol 251 GraphicUsed by:264
Symbol 252 GraphicUsed by:264
Symbol 253 GraphicUsed by:264
Symbol 254 GraphicUsed by:264
Symbol 255 GraphicUsed by:264
Symbol 256 GraphicUsed by:264
Symbol 257 GraphicUsed by:264
Symbol 258 GraphicUsed by:264
Symbol 259 GraphicUsed by:264
Symbol 260 GraphicUsed by:264
Symbol 261 GraphicUsed by:264
Symbol 262 GraphicUsed by:264
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClipUses:248 249 250 251 252 253 147 254 255 256 257 258 259 260 261 262 263Used by:Timeline
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:265Used by:Timeline
Symbol 267 GraphicUsed by:269
Symbol 268 GraphicUsed by:269 304 333 355 385
Symbol 269 MovieClipUses:267 268Used by:Timeline
Symbol 270 MovieClipUses:201Used by:Timeline
Symbol 271 TextUses:36Used by:272
Symbol 272 MovieClipUses:23 271Used by:Timeline
Symbol 273 ButtonUses:192 194Used by:Timeline
Symbol 274 TextUses:32Used by:275
Symbol 275 MovieClipUses:274Used by:276
Symbol 276 MovieClipUses:275Used by:Timeline
Symbol 277 TextUses:32Used by:278
Symbol 278 MovieClipUses:277Used by:279
Symbol 279 MovieClipUses:278Used by:Timeline
Symbol 280 TextUses:36Used by:Timeline
Symbol 281 TextUses:36Used by:Timeline
Symbol 282 TextUses:36Used by:Timeline
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:Timeline
Symbol 285 TextUses:36Used by:Timeline
Symbol 286 MovieClipUses:210 212 214 216 217 219 220Used by:Timeline
Symbol 287 GraphicUsed by:288
Symbol 288 MovieClipUses:287Used by:Timeline
Symbol 289 MovieClipUses:233Used by:290
Symbol 290 MovieClipUses:233 289Used by:Timeline
Symbol 291 MovieClipUses:182Used by:Timeline
Symbol 292 GraphicUses:181Used by:293
Symbol 293 MovieClipUses:292Used by:Timeline
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:296
Symbol 296 MovieClipUses:295Used by:Timeline
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:299
Symbol 299 MovieClipUses:298Used by:Timeline
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:302
Symbol 302 MovieClipUses:301Used by:Timeline
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClipUses:303 268Used by:Timeline
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:307
Symbol 307 MovieClipUses:306Used by:Timeline
Symbol 308 TextUses:32Used by:309
Symbol 309 MovieClipUses:308Used by:310
Symbol 310 MovieClipUses:309Used by:Timeline
Symbol 311 TextUses:32Used by:312
Symbol 312 MovieClipUses:311Used by:313
Symbol 313 MovieClipUses:312Used by:Timeline
Symbol 314 TextUses:36Used by:Timeline
Symbol 315 TextUses:36Used by:Timeline
Symbol 316 TextUses:36Used by:Timeline
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:Timeline
Symbol 319 TextUses:36Used by:Timeline
Symbol 320 BitmapUsed by:321
Symbol 321 GraphicUses:320Used by:322
Symbol 322 MovieClipUses:321Used by:Timeline
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClipUses:323Used by:Timeline
Symbol 325 MovieClipUses:233Used by:Timeline
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:328
Symbol 328 MovieClipUses:327Used by:Timeline
Symbol 329 BitmapUsed by:330 349 376
Symbol 330 GraphicUses:329Used by:331
Symbol 331 MovieClipUses:330Used by:Timeline
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:332 268Used by:Timeline
Symbol 334 TextUses:32Used by:335
Symbol 335 MovieClipUses:334Used by:336
Symbol 336 MovieClipUses:335Used by:Timeline
Symbol 337 TextUses:32Used by:338
Symbol 338 MovieClipUses:337Used by:339
Symbol 339 MovieClipUses:338Used by:Timeline
Symbol 340 TextUses:36Used by:Timeline
Symbol 341 TextUses:36Used by:Timeline
Symbol 342 TextUses:36Used by:Timeline
Symbol 343 BitmapUsed by:344
Symbol 344 GraphicUses:343Used by:Timeline
Symbol 345 TextUses:36Used by:Timeline
Symbol 346 GraphicUsed by:347
Symbol 347 MovieClipUses:210 212 214 216 346 219 220Used by:Timeline
Symbol 348 MovieClipUses:233Used by:Timeline
Symbol 349 GraphicUses:329Used by:350
Symbol 350 MovieClipUses:349Used by:Timeline
Symbol 351 BitmapUsed by:352
Symbol 352 GraphicUses:351Used by:353
Symbol 353 MovieClipUses:352Used by:Timeline
Symbol 354 GraphicUsed by:355
Symbol 355 MovieClipUses:354 268Used by:Timeline
Symbol 356 TextUses:32Used by:357
Symbol 357 MovieClipUses:356Used by:358
Symbol 358 MovieClipUses:357Used by:Timeline
Symbol 359 TextUses:32Used by:360
Symbol 360 MovieClipUses:359Used by:361
Symbol 361 MovieClipUses:360Used by:Timeline
Symbol 362 TextUses:36Used by:Timeline
Symbol 363 TextUses:36Used by:Timeline
Symbol 364 TextUses:36Used by:Timeline
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:Timeline
Symbol 367 TextUses:36Used by:Timeline
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:210 212 214 216 368 219 220Used by:Timeline
Symbol 370 GraphicUsed by:371
Symbol 371 MovieClipUses:370Used by:Timeline
Symbol 372 MovieClipUses:233Used by:Timeline
Symbol 373 BitmapUsed by:374
Symbol 374 GraphicUses:373Used by:375
Symbol 375 MovieClipUses:374Used by:Timeline
Symbol 376 GraphicUses:329Used by:377
Symbol 377 MovieClipUses:376Used by:Timeline
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:379Used by:Timeline
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:383
Symbol 383 MovieClipUses:382Used by:Timeline
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:384 268Used by:Timeline
Symbol 386 TextUses:32Used by:387
Symbol 387 MovieClipUses:386Used by:388
Symbol 388 MovieClipUses:387Used by:Timeline
Symbol 389 TextUses:32Used by:390
Symbol 390 MovieClipUses:389Used by:391
Symbol 391 MovieClipUses:390Used by:Timeline
Symbol 392 GraphicUsed by:394
Symbol 393 GraphicUsed by:394
Symbol 394 MovieClipUses:392 393Used by:Timeline
Symbol 395 TextUses:32Used by:Timeline
Symbol 396 TextUses:32Used by:Timeline
Symbol 397 TextUses:32Used by:Timeline
Symbol 398 TextUses:32Used by:Timeline
Symbol 399 TextUses:36Used by:Timeline
Symbol 400 TextUses:32Used by:Timeline
Symbol 401 TextUses:32Used by:Timeline
Symbol 402 TextUses:32Used by:Timeline
Symbol 403 TextUses:32Used by:Timeline
Symbol 404 EditableTextUses:32Used by:Timeline
Symbol 405 EditableTextUses:36Used by:Timeline
Symbol 406 EditableTextUses:32Used by:Timeline
Symbol 407 EditableTextUses:36Used by:Timeline
Symbol 408 TextUses:32Used by:Timeline

Instance Names

"bg"Frame 1Symbol 24 MovieClip
"preloader"Frame 1Symbol 28 MovieClip
"chooser"Frame 2Symbol 30 MovieClip
"textField"Frame 3Symbol 34 EditableText
"fuskField"Frame 3Symbol 35 EditableText
"soundButton"Frame 3Symbol 61 MovieClip
"clock"Frame 27Symbol 84 MovieClip
"life1"Frame 31Symbol 98 MovieClip
"life2"Frame 33Symbol 98 MovieClip
"clock"Frame 34Symbol 84 MovieClip
"life3"Frame 35Symbol 98 MovieClip
"life3"Frame 46Symbol 98 MovieClip
"life2"Frame 46Symbol 98 MovieClip
"life1"Frame 46Symbol 98 MovieClip
"life3"Frame 50Symbol 98 MovieClip
"life2"Frame 52Symbol 98 MovieClip
"life1"Frame 54Symbol 98 MovieClip
"life3"Frame 55Symbol 98 MovieClip
"life2"Frame 57Symbol 98 MovieClip
"life1"Frame 59Symbol 98 MovieClip
"clock"Frame 75Symbol 84 MovieClip
"life3"Frame 75Symbol 98 MovieClip
"clock"Frame 105Symbol 84 MovieClip
"life1"Frame 105Symbol 98 MovieClip
"life2"Frame 105Symbol 98 MovieClip
"life3"Frame 105Symbol 98 MovieClip
"radar"Frame 114Symbol 231 MovieClip
"clock"Frame 114Symbol 84 MovieClip
"life1"Frame 114Symbol 98 MovieClip
"goal"Frame 115Symbol 166 MovieClip
"duck"Frame 115Symbol 140 MovieClip
"duck2"Frame 115Symbol 140 MovieClip
"run2"Frame 115Symbol 244 MovieClip
"bush"Frame 115Symbol 245 MovieClip
"path"Frame 115Symbol 245 MovieClip
"bench"Frame 115Symbol 247 MovieClip
"run"Frame 115Symbol 264 MovieClip
"stand"Frame 115Symbol 266 MovieClip
"fence"Frame 115Symbol 269 MovieClip
"tree"Frame 115Symbol 270 MovieClip
"paus"Frame 115Symbol 272 MovieClip
"fail"Frame 118Symbol 276 MovieClip
"comp1"Frame 118Symbol 279 MovieClip
"clock"Frame 123Symbol 84 MovieClip
"life1"Frame 123Symbol 98 MovieClip
"life2"Frame 123Symbol 98 MovieClip
"life3"Frame 123Symbol 98 MovieClip
"radar"Frame 132Symbol 286 MovieClip
"clock"Frame 132Symbol 84 MovieClip
"life1"Frame 132Symbol 98 MovieClip
"path"Frame 133Symbol 288 MovieClip
"gras"Frame 133Symbol 290 MovieClip
"goal"Frame 133Symbol 166 MovieClip
"duck"Frame 133Symbol 140 MovieClip
"duck2"Frame 133Symbol 140 MovieClip
"duck3"Frame 133Symbol 140 MovieClip
"run2"Frame 133Symbol 244 MovieClip
"bush"Frame 133Symbol 245 MovieClip
"bench"Frame 133Symbol 291 MovieClip
"bench2"Frame 133Symbol 293 MovieClip
"stone2"Frame 133Symbol 296 MovieClip
"stone"Frame 133Symbol 296 MovieClip
"fount"Frame 133Symbol 299 MovieClip
"trash"Frame 133Symbol 302 MovieClip
"run"Frame 133Symbol 264 MovieClip
"stand"Frame 133Symbol 266 MovieClip
"fence"Frame 133Symbol 304 MovieClip
"tree"Frame 133Symbol 270 MovieClip
"tree2"Frame 133Symbol 307 MovieClip
"paus"Frame 133Symbol 272 MovieClip
"fail"Frame 136Symbol 310 MovieClip
"comp"Frame 136Symbol 313 MovieClip
"clock"Frame 141Symbol 84 MovieClip
"life1"Frame 141Symbol 98 MovieClip
"life2"Frame 141Symbol 98 MovieClip
"life3"Frame 141Symbol 98 MovieClip
"radar"Frame 150Symbol 221 MovieClip
"clock"Frame 150Symbol 84 MovieClip
"life1"Frame 150Symbol 98 MovieClip
"flow4"Frame 151Symbol 322 MovieClip
"path"Frame 151Symbol 324 MovieClip
"flow"Frame 151Symbol 322 MovieClip
"flow2"Frame 151Symbol 322 MovieClip
"flow3"Frame 151Symbol 322 MovieClip
"gras"Frame 151Symbol 325 MovieClip
"goal"Frame 151Symbol 166 MovieClip
"duck"Frame 151Symbol 140 MovieClip
"duck2"Frame 151Symbol 140 MovieClip
"duck3"Frame 151Symbol 140 MovieClip
"duck5"Frame 151Symbol 140 MovieClip
"duck4"Frame 151Symbol 140 MovieClip
"run2"Frame 151Symbol 244 MovieClip
"bush"Frame 151Symbol 245 MovieClip
"bush2"Frame 151Symbol 245 MovieClip
"bush3"Frame 151Symbol 328 MovieClip
"bench"Frame 151Symbol 331 MovieClip
"stone"Frame 151Symbol 296 MovieClip
"trash"Frame 151Symbol 302 MovieClip
"run"Frame 151Symbol 264 MovieClip
"stand"Frame 151Symbol 266 MovieClip
"fence"Frame 151Symbol 333 MovieClip
"tree"Frame 151Symbol 307 MovieClip
"tree2"Frame 151Symbol 307 MovieClip
"paus"Frame 151Symbol 272 MovieClip
"fail"Frame 154Symbol 336 MovieClip
"comp"Frame 154Symbol 339 MovieClip
"clock"Frame 159Symbol 84 MovieClip
"life1"Frame 159Symbol 98 MovieClip
"life2"Frame 159Symbol 98 MovieClip
"life3"Frame 159Symbol 98 MovieClip
"radar"Frame 168Symbol 347 MovieClip
"clock"Frame 168Symbol 84 MovieClip
"life1"Frame 168Symbol 98 MovieClip
"gras"Frame 169Symbol 348 MovieClip
"goal"Frame 169Symbol 166 MovieClip
"duck"Frame 169Symbol 140 MovieClip
"duck2"Frame 169Symbol 140 MovieClip
"duck3"Frame 169Symbol 140 MovieClip
"duck5"Frame 169Symbol 140 MovieClip
"duck4"Frame 169Symbol 140 MovieClip
"duck6"Frame 169Symbol 140 MovieClip
"duck7"Frame 169Symbol 140 MovieClip
"duck8"Frame 169Symbol 140 MovieClip
"run2"Frame 169Symbol 244 MovieClip
"bush"Frame 169Symbol 328 MovieClip
"bench"Frame 169Symbol 350 MovieClip
"stone"Frame 169Symbol 353 MovieClip
"path"Frame 169Symbol 353 MovieClip
"trash"Frame 169Symbol 302 MovieClip
"run"Frame 169Symbol 264 MovieClip
"stand"Frame 169Symbol 266 MovieClip
"fence"Frame 169Symbol 355 MovieClip
"paus"Frame 169Symbol 272 MovieClip
"fail"Frame 172Symbol 358 MovieClip
"comp"Frame 172Symbol 361 MovieClip
"clock"Frame 177Symbol 84 MovieClip
"life1"Frame 177Symbol 98 MovieClip
"life2"Frame 177Symbol 98 MovieClip
"life3"Frame 177Symbol 98 MovieClip
"radar"Frame 186Symbol 369 MovieClip
"clock"Frame 186Symbol 84 MovieClip
"life1"Frame 186Symbol 98 MovieClip
"flow"Frame 187Symbol 322 MovieClip
"flow2"Frame 187Symbol 322 MovieClip
"path"Frame 187Symbol 371 MovieClip
"flow4"Frame 187Symbol 322 MovieClip
"flow3"Frame 187Symbol 322 MovieClip
"gras"Frame 187Symbol 372 MovieClip
"goal"Frame 187Symbol 166 MovieClip
"duck"Frame 187Symbol 140 MovieClip
"duck2"Frame 187Symbol 140 MovieClip
"duck3"Frame 187Symbol 140 MovieClip
"duck5"Frame 187Symbol 140 MovieClip
"duck4"Frame 187Symbol 140 MovieClip
"duck6"Frame 187Symbol 140 MovieClip
"duck7"Frame 187Symbol 140 MovieClip
"duck8"Frame 187Symbol 140 MovieClip
"duck9"Frame 187Symbol 140 MovieClip
"duck10"Frame 187Symbol 140 MovieClip
"run2"Frame 187Symbol 244 MovieClip
"bush"Frame 187Symbol 375 MovieClip
"bush2"Frame 187Symbol 375 MovieClip
"bush3"Frame 187Symbol 375 MovieClip
"trash"Frame 187Symbol 302 MovieClip
"trash2"Frame 187Symbol 302 MovieClip
"bench"Frame 187Symbol 377 MovieClip
"bench2"Frame 187Symbol 377 MovieClip
"stone"Frame 187Symbol 353 MovieClip
"stat"Frame 187Symbol 380 MovieClip
"run"Frame 187Symbol 264 MovieClip
"stand"Frame 187Symbol 266 MovieClip
"stat2"Frame 187Symbol 383 MovieClip
"fence"Frame 187Symbol 385 MovieClip
"tree"Frame 187Symbol 307 MovieClip
"tree2"Frame 187Symbol 270 MovieClip
"tree3"Frame 187Symbol 307 MovieClip
"paus"Frame 187Symbol 272 MovieClip
"fail"Frame 190Symbol 388 MovieClip
"comp"Frame 190Symbol 391 MovieClip
"m1acc"Frame 195Symbol 394 MovieClip
"m2acc"Frame 195Symbol 394 MovieClip
"m3acc"Frame 195Symbol 394 MovieClip
"m4acc"Frame 195Symbol 394 MovieClip
"m5acc"Frame 195Symbol 394 MovieClip
"life1"Frame 195Symbol 98 MovieClip
"life2"Frame 195Symbol 98 MovieClip
"life3"Frame 195Symbol 98 MovieClip
"m1acc"Frame 206Symbol 394 MovieClip
"m2acc"Frame 206Symbol 394 MovieClip
"m3acc"Frame 206Symbol 394 MovieClip
"m4acc"Frame 206Symbol 394 MovieClip
"m5acc"Frame 206Symbol 394 MovieClip
"life1"Frame 206Symbol 98 MovieClip
"life2"Frame 206Symbol 98 MovieClip
"life3"Frame 206Symbol 98 MovieClip
"bar"Symbol 28 MovieClip Frame 1Symbol 26 MovieClip
"stor"Symbol 84 MovieClip Frame 1Symbol 81 MovieClip
"liten"Symbol 84 MovieClip Frame 1Symbol 83 MovieClip
"hitarea"Symbol 140 MovieClip Frame 1Symbol 106 MovieClip
"hitarea"Symbol 140 MovieClip Frame 2Symbol 106 MovieClip
"hitarea"Symbol 140 MovieClip Frame 11Symbol 106 MovieClip
"hitarea"Symbol 140 MovieClip Frame 12Symbol 106 MovieClip
"hitarea"Symbol 140 MovieClip Frame 20Symbol 106 MovieClip
"hitarea"Symbol 140 MovieClip Frame 21Symbol 106 MovieClip
"goal1"Symbol 166 MovieClip Frame 1Symbol 165 MovieClip
"d2"Symbol 221 MovieClip Frame 1Symbol 214 MovieClip
"d4"Symbol 221 MovieClip Frame 1Symbol 214 MovieClip
"d3"Symbol 221 MovieClip Frame 1Symbol 214 MovieClip
"antling"Symbol 221 MovieClip Frame 1Symbol 216 MovieClip
"d1"Symbol 221 MovieClip Frame 1Symbol 214 MovieClip
"d5"Symbol 221 MovieClip Frame 1Symbol 214 MovieClip
"letter"Symbol 221 MovieClip Frame 1Symbol 219 Button
"d2"Symbol 231 MovieClip Frame 1Symbol 214 MovieClip
"d1"Symbol 231 MovieClip Frame 1Symbol 214 MovieClip
"antling"Symbol 231 MovieClip Frame 1Symbol 216 MovieClip
"letter"Symbol 231 MovieClip Frame 1Symbol 219 Button
"d3"Symbol 286 MovieClip Frame 1Symbol 214 MovieClip
"d2"Symbol 286 MovieClip Frame 1Symbol 214 MovieClip
"antling"Symbol 286 MovieClip Frame 1Symbol 216 MovieClip
"d1"Symbol 286 MovieClip Frame 1Symbol 214 MovieClip
"letter"Symbol 286 MovieClip Frame 1Symbol 219 Button
"d3"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d1"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d4"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d2"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d6"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"antling"Symbol 347 MovieClip Frame 1Symbol 216 MovieClip
"d8"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d7"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"d5"Symbol 347 MovieClip Frame 1Symbol 214 MovieClip
"letter"Symbol 347 MovieClip Frame 1Symbol 219 Button
"d3"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d4"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d2"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d1"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d7"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"antling"Symbol 369 MovieClip Frame 1Symbol 216 MovieClip
"d8"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d9"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d10"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d6"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"d5"Symbol 369 MovieClip Frame 1Symbol 214 MovieClip
"letter"Symbol 369 MovieClip Frame 1Symbol 219 Button

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "woho"
ExportAssets (56)Timeline Frame 1Symbol 2 as "die"
ExportAssets (56)Timeline Frame 1Symbol 3 as "tuck"
ExportAssets (56)Timeline Frame 1Symbol 4 as "swish"
ExportAssets (56)Timeline Frame 1Symbol 5 as "stepB3"
ExportAssets (56)Timeline Frame 1Symbol 6 as "stepB2"
ExportAssets (56)Timeline Frame 1Symbol 7 as "stepB1"
ExportAssets (56)Timeline Frame 1Symbol 8 as "stepA4"
ExportAssets (56)Timeline Frame 1Symbol 9 as "stepA3"
ExportAssets (56)Timeline Frame 1Symbol 10 as "stepA2"
ExportAssets (56)Timeline Frame 1Symbol 11 as "stepA1"
ExportAssets (56)Timeline Frame 1Symbol 12 as "song"
ExportAssets (56)Timeline Frame 1Symbol 13 as "Vporl"
ExportAssets (56)Timeline Frame 1Symbol 14 as "pip"
ExportAssets (56)Timeline Frame 1Symbol 15 as "noS"
ExportAssets (56)Timeline Frame 1Symbol 16 as "kvack4"
ExportAssets (56)Timeline Frame 1Symbol 17 as "kvack3"
ExportAssets (56)Timeline Frame 1Symbol 18 as "kvack2"
ExportAssets (56)Timeline Frame 1Symbol 19 as "kvack1"
ExportAssets (56)Timeline Frame 1Symbol 20 as "humhum"
ExportAssets (56)Timeline Frame 1Symbol 21 as "plingV"

Labels

"menuStart"Frame 3
"cabinet"Frame 15
"playOut"Frame 27
"playIn"Frame 46
"briefing"Frame 64
"startL1"Frame 114
"startL2"Frame 132
"startL3"Frame 150
"startL4"Frame 168
"startL5"Frame 186
"soundON"Symbol 61 MovieClip Frame 1
"soundOFF"Symbol 61 MovieClip Frame 2
"pick"Symbol 140 MovieClip Frame 2
"turnL"Symbol 140 MovieClip Frame 7
"turnLout"Symbol 140 MovieClip Frame 12
"turnR"Symbol 140 MovieClip Frame 16
"turnRout"Symbol 140 MovieClip Frame 21
"no"Symbol 394 MovieClip Frame 1
"yes"Symbol 394 MovieClip Frame 5

Dynamic Text Variables

passFieldSymbol 34 EditableText""
_root.minsSSymbol 85 EditableText"00:"
_root.sekSSymbol 86 EditableText"00"
_root.ducksLeftSymbol 100 EditableText"02"
FStotalducksSymbol 404 EditableText"0"
FStotaltimeSymbol 405 EditableText"0"
FStotalducksSymbol 406 EditableText"0"
FStotaltimeSymbol 407 EditableText"0"




http://swfchan.com/6/29521/info.shtml
Created: 19/5 -2019 22:10:04 Last modified: 19/5 -2019 22:10:04 Server time: 27/04 -2024 10:57:08