Instance of Symbol 34 MovieClip "player" in Frame 1
onClipEvent (enterFrame) {
with (_root.player) {
mySpeed = 4;
if (Key.isDown(40)) {
_y = _y + mySpeed;
}
if (Key.isDown(38)) {
_y = _y - mySpeed;
}
if (Key.isDown(37)) {
_x = _x - mySpeed;
}
if (Key.isDown(39)) {
_x = _x + mySpeed;
}
}
}
onClipEvent (load) {
ySpeed = 1.5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
}
Frame 2
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded / myTotal;
myTooxt = Math.round(myPercent * 100) + "%";
if (myLoaded == myTotal) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
stopAllSounds();
stop();
stop();
Frame 5
stop();
stop();
_root.score = 0;
onEnterFrame = function () {
_root.myText = "Energy Collected: " + _root.score;
if (_root.score == 100) {
_root.gotoAndStop(6);
} else {
_root.gotoAndStop(5);
}
};
Instance of Symbol 34 MovieClip "player" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg1)) {
_root.pkg1.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg2)) {
_root.pkg2.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg3)) {
_root.pkg3.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg4)) {
_root.pkg4.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg5)) {
_root.pkg5.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg6)) {
_root.pkg6.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg7)) {
_root.pkg7.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg8)) {
_root.pkg8.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die1)) {
_root.lives.gotoAndStop(2);
_root.die1.gotoAndStop(6);
_root.die2.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die2)) {
_root.lives.gotoAndStop(3);
_root.die2.gotoAndPlay(6);
_root.die3.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die3)) {
_root.lives.gotoAndStop(4);
_root.die3.gotoAndPlay(6);
_root.die4.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die4)) {
_root.lives.gotoAndStop(5);
}
}
onClipEvent (enterFrame) {
with (_root.player) {
mySpeed = 5;
if (Key.isDown(40)) {
_y = _y + mySpeed;
}
if (Key.isDown(38)) {
_y = _y - mySpeed;
}
if (Key.isDown(37)) {
_x = _x - mySpeed;
}
if (Key.isDown(39)) {
_x = _x + mySpeed;
}
}
}
onClipEvent (load) {
ySpeed = 1.5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
}
Frame 6
stop();
Frame 7
stop();
stop();
_root.score = 0;
onEnterFrame = function () {
_root.myText = "Energy Collected: " + _root.score;
if (_root.score == 250) {
_root.gotoAndStop(9);
} else {
_root.gotoAndStop(7);
}
};
Instance of Symbol 34 MovieClip "player" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg1)) {
_root.pkg1.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg2)) {
_root.pkg2.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg3)) {
_root.pkg3.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg4)) {
_root.pkg4.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg5)) {
_root.pkg5.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg6)) {
_root.pkg6.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg7)) {
_root.pkg7.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pkg8)) {
_root.pkg8.gotoAndPlay(6);
_root.score = _root.score + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die5)) {
_root.lives.gotoAndStop(2);
_root.die5.gotoAndStop(6);
_root.die1.gotoAndStop(6);
_root.die2.gotoAndPlay(3);
_root.die6.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die1)) {
_root.lives.gotoAndStop(2);
_root.die1.gotoAndStop(6);
_root.die5.gotoAndStop(6);
_root.die2.gotoAndPlay(3);
_root.die6.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die6)) {
_root.lives.gotoAndStop(3);
_root.die6.gotoAndStop(6);
_root.die2.gotoAndPlay(6);
_root.die3.gotoAndPlay(3);
_root.die7.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die2)) {
_root.lives.gotoAndStop(3);
_root.die2.gotoAndPlay(6);
_root.die6.gotoAndStop(6);
_root.die3.gotoAndPlay(3);
_root.die7.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die7)) {
_root.lives.gotoAndStop(4);
_root.die3.gotoAndPlay(6);
_root.die7.gotoAndStop(6);
_root.die4.gotoAndPlay(3);
_root.die8.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die3)) {
_root.lives.gotoAndStop(4);
_root.die7.gotoAndPlay(6);
_root.die3.gotoAndPlay(6);
_root.die4.gotoAndPlay(3);
_root.die8.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die8)) {
_root.lives.gotoAndStop(5);
_root.die4.gotoAndPlay(6);
_root.die8.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.die4)) {
_root.lives.gotoAndStop(5);
_root.die8.gotoAndPlay(6);
_root.die4.gotoAndPlay(6);
}
}
onClipEvent (enterFrame) {
with (_root.player) {
mySpeed = 5;
if (Key.isDown(40)) {
_y = _y + mySpeed;
}
if (Key.isDown(38)) {
_y = _y - mySpeed;
}
if (Key.isDown(37)) {
_x = _x - mySpeed;
}
if (Key.isDown(39)) {
_x = _x + mySpeed;
}
}
}
onClipEvent (load) {
ySpeed = 1.5;
}
onClipEvent (enterFrame) {
_y = (_y + ySpeed);
}
Frame 8
stop();
Frame 11
stop();
onEnterFrame = function () {
if (_root.score == 100) {
_root.gotoAndStop(11);
} else {
_root.gotoAndStop(11);
}
};
Symbol 7 MovieClip Frame 40
gotoAndPlay (1);
Symbol 34 MovieClip Frame 39
gotoAndPlay (1);
Symbol 37 Button
on (release) {
gotoAndStop (4);
}
Symbol 39 Button
on (release) {
inst.gotoAndPlay(2);
shade.gotoAndPlay(2);
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 70
stop();
Symbol 49 MovieClip Frame 57
stop();
Symbol 59 MovieClip Frame 65
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 71
stop();
Symbol 63 Button
on (release) {
gotoAndStop (5);
}
Symbol 65 MovieClip Frame 2
flakey._x = Math.random() * 290;
flakey._y = 0;
fallheight = 500;
step = 2;
Symbol 65 MovieClip Frame 4
flakeyfall = flakey._y;
if (flakeyfall <= fallheight) {
flakey._y = flakey._y + step;
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}
Symbol 65 MovieClip Frame 5
gotoAndPlay (1);
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 3
flakey._x = Math.random() * 290;
flakey._y = 0;
fallheight = 500;
step = 2;
Symbol 66 MovieClip Frame 5
flakeyfall = flakey._y;
if (flakeyfall <= fallheight) {
flakey._y = flakey._y + step;
gotoAndPlay (4);
} else {
gotoAndPlay (3);
}
Symbol 66 MovieClip Frame 6
stop();
Symbol 67 MovieClip Frame 2
flakey._x = Math.random() * 290;
flakey._y = 0;
fallheight = 500;
step = 2;
Symbol 67 MovieClip Frame 4
flakeyfall = flakey._y;
if (flakeyfall <= fallheight) {
flakey._y = flakey._y + step;
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 3
flakey._x = Math.random() * 290;
flakey._y = 0;
fallheight = 500;
step = 2;
Symbol 68 MovieClip Frame 5
flakeyfall = flakey._y;
if (flakeyfall <= fallheight) {
flakey._y = flakey._y + step;
gotoAndPlay (4);
} else {
gotoAndPlay (3);
}
Symbol 68 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 3
flakey._x = Math.random() * 290;
flakey._y = 0;
fallheight = 500;
step = 2;
Symbol 69 MovieClip Frame 5
flakeyfall = flakey._y;
if (flakeyfall <= fallheight) {
flakey._y = flakey._y + step;
gotoAndPlay (4);
} else {
gotoAndPlay (3);
}
Symbol 69 MovieClip Frame 6
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 72 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 4
stop();
Symbol 72 MovieClip Frame 5
_root.gotoAndStop(11);
Symbol 78 Button
on (release) {
gotoAndStop (7);
}
Symbol 87 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay(5);
}