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();