Frame 1
setProperty("_root.Bar", _yscale , 0);
_level0.load = "Buffering Data...";
Instance of Symbol 8 MovieClip "Size" in Frame 1
onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
StatusColor = new Color(_root.Bar);
Loaded = int(_root.getBytesLoaded());
Percent = int((loaded / total) * 100);
if (percent > 20) {
_level0.load = "Fly Fly Fly";
StatusColor.setRGB(12129360);
}
if (percent > 40) {
_level0.load = "If i where a fly";
StatusColor.setRGB(12129360);
}
if (percent > 60) {
_level0.load = "I wouldn't";
StatusColor.setRGB(12129360);
}
if (percent > 80) {
_level0.load = "like to die";
StatusColor.setRGB(12129360);
}
if (percent == 90) {
_level0.load = "on my first try";
StatusColor.setRGB(0);
}
_root.Percent = Percent + " %";
setProperty("_root.Bar", _yscale , Percent);
if (Percent >= 100) {
tellTarget ("_root") {
play();
};
}
}
Frame 2
stop();
Frame 408
stop();
Frame 409
stopAllSounds();
Frame 410
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.life = 3;
_root.score = 0;
_root.initTimer();
Instance of Symbol 70 MovieClip "sc" in Frame 410
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y - 75;
}
}
Instance of Symbol 72 MovieClip in Frame 410
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 74 MovieClip "jam" in Frame 410
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 410
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 80 MovieClip "glue" in Frame 410
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 410
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 410
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 410
onClipEvent (enterFrame) {
if (_root.score >= 50000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 411
play();
Frame 423
play();
Frame 424
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 425
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 149 MovieClip "sc" in Frame 425
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 74 MovieClip "jam" in Frame 425
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 151 MovieClip "ch" in Frame 425
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 80 MovieClip "glue" in Frame 425
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 425
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 425
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 425
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 425
onClipEvent (enterFrame) {
if (_root.score >= 100000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 426
play();
Frame 438
play();
Frame 439
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 440
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 70 MovieClip "sc" in Frame 440
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 164 MovieClip "jam" in Frame 440
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 151 MovieClip "ch" in Frame 440
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 149 MovieClip "glue" in Frame 440
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 440
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 440
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 440
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 440
onClipEvent (enterFrame) {
if (_root.score >= 175000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 441
play();
Frame 453
play();
Frame 454
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 455
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 164 MovieClip "sc" in Frame 455
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 149 MovieClip "jam" in Frame 455
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 455
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 180 MovieClip "glue" in Frame 455
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 455
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 455
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 455
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 455
onClipEvent (enterFrame) {
if (_root.score >= 225000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 456
play();
Frame 468
play();
Frame 469
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 470
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 193 MovieClip "sc" in Frame 470
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 70 MovieClip "jam" in Frame 470
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 180 MovieClip "ch" in Frame 470
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 80 MovieClip "glue" in Frame 470
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 470
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 470
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 470
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 470
onClipEvent (enterFrame) {
if (_root.score >= 325000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 471
play();
Frame 483
play();
Frame 484
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 485
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 70 MovieClip "sc" in Frame 485
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 149 MovieClip "jam" in Frame 485
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 485
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 206 MovieClip "glue" in Frame 485
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 485
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 485
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 485
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 485
onClipEvent (enterFrame) {
if (_root.score >= 400000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 486
play();
Frame 498
play();
Frame 499
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 500
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 72 MovieClip in Frame 500
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 74 MovieClip "sc" in Frame 500
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 149 MovieClip "jam" in Frame 500
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 164 MovieClip "ch" in Frame 500
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 206 MovieClip "glue" in Frame 500
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 500
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 500
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 500
onClipEvent (enterFrame) {
if (_root.score >= 475000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 501
play();
Frame 513
play();
Frame 514
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 515
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 151 MovieClip "sc" in Frame 515
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 74 MovieClip "jam" in Frame 515
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 515
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 164 MovieClip "glue" in Frame 515
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 515
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 515
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 515
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 515
onClipEvent (enterFrame) {
if (_root.score >= 550000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 516
play();
Frame 528
play();
Frame 529
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 530
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 70 MovieClip "sc" in Frame 530
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 238 MovieClip "jam" in Frame 530
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 530
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 240 MovieClip "glue" in Frame 530
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 530
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 530
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 530
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 530
onClipEvent (enterFrame) {
if (_root.score >= 625000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 531
play();
Frame 543
play();
Frame 544
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 545
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 193 MovieClip "sc" in Frame 545
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 164 MovieClip "jam" in Frame 545
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 206 MovieClip "ch" in Frame 545
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 180 MovieClip "glue" in Frame 545
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 545
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 545
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 545
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 545
onClipEvent (enterFrame) {
if (_root.score >= 700000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 546
play();
Frame 558
play();
Frame 559
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 560
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 240 MovieClip "sc" in Frame 560
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 149 MovieClip "jam" in Frame 560
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 238 MovieClip "ch" in Frame 560
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 151 MovieClip "glue" in Frame 560
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 560
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 560
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 560
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 560
onClipEvent (enterFrame) {
if (_root.score >= 850000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 561
play();
Frame 573
play();
Frame 574
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
}
Frame 575
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 238 MovieClip "sc" in Frame 575
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 80 MovieClip "jam" in Frame 575
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5003._y = this._y;
_root.add5003._x = this._x;
_root.add5003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 151 MovieClip "ch" in Frame 575
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 78 MovieClip "glue" in Frame 575
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 575
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 575
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 575
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Instance of Symbol 138 MovieClip in Frame 575
onClipEvent (enterFrame) {
if (_root.score >= 1000000) {
tellTarget (_root) {
nextFrame();
};
}
}
Frame 576
play();
Frame 588
play();
Frame 589
if (counter < 100) {
prevFrame();
counter++;
} else {
counter = 0;
_root.life = _root.life + 1;
}
Frame 590
stop();
_root.reduceLife = function () {
var _local1 = _root;
_local1.life--;
if (_local1.life <= 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.player.smacked = false;
_local1.player.gotoAndStop(1);
}
_local1.initTimer();
};
_root.initTimer = function () {
var _local1 = this;
var _local2 = _root.createEmptyMovieClip("timer_mc", 2);
_local2.cTime = 0;
_local2.maxTime = 200;
_local2.onEnterFrame = function () {
var _local1 = this;
if (_local1.cTime >= _local1.maxTime) {
_root.waitedLongEnough = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
_local1.cTime++;
};
};
_root.initTimer();
Instance of Symbol 70 MovieClip "sc" in Frame 590
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add500._y = this._y;
_root.add500._x = this._x;
_root.add500.gotoAndPlay(2);
this._y = -30;
this._x = -30;
}
if ((this.hitTest(_root.jam) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x - 75;
this._y = this._y + 75;
}
}
Instance of Symbol 289 MovieClip "jam" in Frame 590
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add15003._y = this._y;
_root.add15003._x = this._x;
_root.add15003.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.glue))) || (this.hitTest(_root.ch))) {
this._x = this._x + 50;
this._y = this._y + 50;
}
}
Instance of Symbol 78 MovieClip "ch" in Frame 590
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5001._y = this._y;
_root.add5001._x = this._x;
_root.add5001.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.glue))) {
this._x = this._x - 50;
this._y = this._y - 50;
}
}
Instance of Symbol 206 MovieClip "glue" in Frame 590
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.flying == false)) {
_root.add5002._y = this._y;
_root.add5002._x = this._x;
_root.add5002.gotoAndPlay(2);
this._y = -75;
this._x = -75;
}
if ((this.hitTest(_root.sc) || (this.hitTest(_root.jam))) || (this.hitTest(_root.ch))) {
this._x = this._x + 75;
this._y = this._y + 75;
}
}
Instance of Symbol 72 MovieClip in Frame 590
onClipEvent (enterFrame) {
whattodo = Math.ceil(Math.random() * 4);
if (whattodo == 1) {
sugarx = Math.ceil(Math.random() * 400) + 75;
sugary = Math.ceil(Math.random() * 350) + 25;
if (_root.sc._x < 0) {
_root.sc._x = sugarx;
_root.sc._y = sugary;
}
}
if (whattodo == 2) {
jamx = Math.ceil(Math.random() * 400) + 75;
jamy = Math.ceil(Math.random() * 350) + 25;
if (_root.jam._x < 0) {
_root.jam._x = jamx;
_root.jam._y = jamy;
}
}
if (whattodo == 3) {
chx = Math.ceil(Math.random() * 400) + 75;
chy = Math.ceil(Math.random() * 350) + 25;
if (_root.ch._x < 0) {
_root.ch._x = chx;
_root.ch._y = chy;
}
}
if (whattodo == 4) {
gluex = Math.ceil(Math.random() * 400) + 75;
gluey = Math.ceil(Math.random() * 350) + 25;
if (_root.glue._x < 0) {
_root.glue._x = gluex;
_root.glue._y = gluey;
}
}
}
Instance of Symbol 104 MovieClip "shadow" in Frame 590
onClipEvent (enterFrame) {
if (_root.player.smacked == true) {
this.gotoAndStop(5);
return(undefined);
}
this.gotoAndStop(_root.player._currentframe);
if (_root.player.flying) {
this._x = _root.player._x + 35;
this._y = _root.player._y + 35;
this._xscale = 30;
this._yscale = 30;
} else {
this._x = _root.player._x + 5;
this._y = _root.player._y + 5;
this._xscale = 50;
this._yscale = 50;
}
this._rotation = _root.player._rotation;
}
Instance of Symbol 104 MovieClip "player" in Frame 590
onClipEvent (load) {
this.speed = 0;
this.flying = false;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.smacked) {
return(undefined);
}
keyDownSpace = key.isdown(32);
keyDownRight = key.isdown(39);
keyDownLeft = key.isdown(37);
keyDownUp = key.isdown(38);
keyDownDown = key.isdown(40);
this.moving = false;
this.flying = false;
if ((keyDownRight && (!keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 90;
this.speed = 1;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (!keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = -90;
this.speed = 1;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (!keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 0;
this.speed = 1;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (!keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = false;
this.gotoAndStop(2);
this._rotation = 180;
this.speed = 1;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((keyDownRight && (keyDownSpace)) && (this._x <= 540)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 90;
this.speed = this.speed + 0.4;
this._x = this._x + this.speed;
if (this._x > 550) {
this._x = 540;
}
}
if ((keyDownLeft && (keyDownSpace)) && (this._x >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = -90;
this.speed = this.speed + 0.4;
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = 10;
}
}
if ((keyDownUp && (keyDownSpace)) && (this._y >= 10)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 0;
this.speed = this.speed + 0.4;
this._y = this._y - this.speed;
if (this._y < 0) {
this._y = 10;
}
}
if ((keyDownDown && (keyDownSpace)) && (this._y <= 390)) {
this.moving = true;
this.flying = true;
this.gotoAndStop(3);
this._rotation = 180;
this.speed = this.speed + 0.4;
this._y = this._y + this.speed;
if (this._y > 400) {
this._y = 390;
this.gotoAndStop(1);
}
}
if ((!this.moving) && (!this.flying)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
onClipEvent (keyUp) {
}
Frame 591
System.security.allowDomain("http://www.totallygame.com/");
this.createEmptyMovieClip("highscore", this.getNextHighestDepth());
_root.thisgamefile = "highscore_fly.php";
_root.thisgameid = "1";
_root.loadmovie = true;
highscore.loadMovie("http://www.totallygame.com/swf/highscore.swf");
this.highscore._x = 330;
this.highscore._y = 240;
stop();
Symbol 12 Button
on (press) {
getURL ("http://www.totallygame.com", "_blank");
}
Symbol 23 Button
on (press) {
getURL ("http://www.totallygame.com", "_blank");
}
Symbol 46 Button
on (press, keyPress "<Enter>") {
gotoAndPlay (409);
}
Symbol 57 Button
on (press) {
gotoAndStop (1);
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 21
stop();
Symbol 63 Button
on (press) {
tellTarget ("help") {
gotoAndPlay (2);
};
}
Symbol 65 Button
on (press) {
stopAllSounds();
gotoAndStop (409);
}
Symbol 89 MovieClip Frame 20
_root.score = _root.score + 10;
Symbol 89 MovieClip Frame 40
_root.score = _root.score + 10;
Symbol 94 MovieClip Frame 6
_root.score = _root.score + 100;
Symbol 103 MovieClip Frame 51
_root.reduceLife();
stop();
Symbol 117 MovieClip Frame 1
whentohit = Math.ceil(Math.random() * 800);
if (whentohit <= 10) {
if ((_root.player._currentframe < 4) && (_root.waitedLongEnough)) {
gotoAndPlay ("smash");
}
}
Symbol 117 MovieClip Frame 6
gotoAndPlay (1);
Symbol 117 MovieClip Frame 7
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 8
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 9
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 10
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 11
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 12
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 13
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Symbol 117 MovieClip Frame 14
_root.mepper._x = _root.player._x;
_root.mepper._y = _root.player._y;
Instance of Symbol 113 MovieClip "maphit" in Symbol 117 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (!_root.player.flying)) {
if (!(_root.player._currentframe === 4)) {
_root.player.smacked = true;
_root.player.gotoAndStop(4);
_root.shadow.gotoAndStop(5);
}
}
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
play();
Symbol 121 MovieClip Frame 33
_root.score = _root.score + 500;
this._x = -50;
this._y = -100;
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
play();
Symbol 124 MovieClip Frame 33
_root.score = _root.score + 500;
this._x = -50;
this._y = -100;
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
play();
Symbol 127 MovieClip Frame 33
_root.score = _root.score + 500;
this._x = -50;
this._y = -100;
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
play();
Symbol 130 MovieClip Frame 33
_root.score = _root.score + 500;
this._x = -50;
this._y = -100;
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
play();
Symbol 167 MovieClip Frame 33
_root.score = _root.score + 750;
this._x = -50;
this._y = -100;
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
play();
Symbol 254 MovieClip Frame 33
_root.score = _root.score + 1500;
this._x = -50;
this._y = -100;