Frame 1
stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_root.WPI_ArcadeStartSingleGame = function () {
trace("WPI_ArcadeStartSingleGame called - the current game has started");
};
_root.WPI_ArcadeStopSingleGame = function (score) {
trace("WPI_ArcadeStopSingleGame called - the current game has finished with score: " + score);
};
Frame 2
stop();
Symbol 5 MovieClip Frame 17
gotoAndPlay (15);
Symbol 6 Button
on (release) {
getURL ("http://www.wiggiworld.com", "_blank");
}
Symbol 15 MovieClip Frame 15
stop();
Symbol 17 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 31 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
bar.bar._xscale = perc;
if (perc >= 100) {
this.gotoAndPlay("goplay");
delete this.onEnterFrame;
}
};
Symbol 31 MovieClip Frame 25
stop();
Symbol 45 Button
on (release) {
this.frameString = "exit";
this.done = false;
}
Symbol 49 Button
on (release) {
this.frameString = "help";
this.done = false;
}
Symbol 53 Button
on (release) {
this.frameString = "startgame";
this.done = false;
}
Symbol 170 MovieClip Frame 85
stop();
Symbol 175 Button
on (release) {
this.done = false;
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 26
gotoAndStop (1);
Symbol 235 MovieClip Frame 27
stop();
Symbol 235 MovieClip Frame 52
gotoAndStop (27);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 26
gotoAndStop (1);
Symbol 237 MovieClip Frame 27
stop();
Symbol 237 MovieClip Frame 52
gotoAndStop (27);
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 26
gotoAndStop (1);
Symbol 240 MovieClip Frame 27
stop();
Symbol 240 MovieClip Frame 52
gotoAndStop (27);
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 26
gotoAndStop (1);
Symbol 243 MovieClip Frame 27
stop();
Symbol 243 MovieClip Frame 52
gotoAndStop (27);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 26
gotoAndStop (1);
Symbol 246 MovieClip Frame 27
stop();
Symbol 246 MovieClip Frame 52
gotoAndStop (27);
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 272 Button
on (release) {
if (_quality == "HIGH") {
_quality = "LOW";
} else {
_quality = "HIGH";
}
}
Instance of Symbol 229 MovieClip "sam" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
function leftPressed() {
if (col != 1) {
col--;
}
}
function rightPressed() {
if (((row == 1) && (col != 5)) || ((row == 2) && (col != 3))) {
col++;
}
}
function upPressed() {
if (row != 2) {
row++;
col = 2;
}
}
function downPressed() {
if (row != 1) {
row--;
col = 3;
}
}
function spacePressed() {
if (holding) {
holding = false;
} else {
grabbing = true;
}
}
row = 1;
col = 3;
minJourney = 0;
maxJourney = 0;
holding = false;
grabbing = false;
leftDown = false;
rightDown = false;
upDown = false;
downDown = false;
spaceDown = false;
}
onClipEvent (enterFrame) {
grabbing = false;
if (Key.isDown(37)) {
if (!leftDown) {
leftPressed();
leftDown = true;
}
} else {
leftDown = false;
}
if (Key.isDown(39)) {
if (!rightDown) {
rightPressed();
rightDown = true;
}
} else {
rightDown = false;
}
if (Key.isDown(38)) {
if (!upDown) {
upPressed();
upDown = true;
}
} else {
upDown = false;
}
if (Key.isDown(40)) {
if (!downDown) {
downPressed();
downDown = true;
}
} else {
downDown = false;
}
if (row == 1) {
if (col == 1) {
maxJourney = 1000;
minJourney = 912;
} else if (col == 2) {
maxJourney = 936;
minJourney = 850;
} else if (col == 3) {
maxJourney = 874;
minJourney = 787;
} else if (col == 4) {
maxJourney = 811;
minJourney = 723;
} else if (col == 5) {
maxJourney = 747;
minJourney = 662;
}
}
if (row == 1) {
this._xscale = 100;
this._yscale = 100;
this._y = 390;
this._x = (120 * col) - 7;
} else {
this._xscale = 75;
this._yscale = 75;
this._y = 305;
if (col == 1) {
this._x = 157;
} else if (col == 2) {
this._x = 363;
} else {
this._x = 571;
}
}
if (Key.isDown(32)) {
if (!spaceDown) {
spacePressed();
spaceDown = true;
}
} else {
spaceDown = false;
}
if (holding) {
if (row == 1) {
this.gotoAndStop("front_holding");
} else {
this.gotoAndStop("back_holding");
}
} else if (row == 1) {
this.gotoAndStop("front_waiting");
} else {
this.gotoAndStop("back_waiting");
}
}
Instance of Symbol 238 MovieClip "blueEnv" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
journey = 0;
stage = 0;
this._rotation = 3;
countdown = 25;
}
onClipEvent (enterFrame) {
if ((envLevel == _parent.level) && (!_parent.gameOver)) {
if ((journey >= 0) && (journey < 500)) {
journey = journey + _parent.journeyInc;
this._x = (journey * 1.45) - 58;
this._y = (journey * 0.083) + 6;
} else if (journey < 650) {
if (stage == 0) {
this._rotation = 0;
this.clip.play();
countdown--;
if (countdown == 0) {
stage = 1;
this._visible = false;
countdown = 25;
}
} else if (stage == 1) {
journey = journey + _parent.journeyInc;
}
} else if (journey < 1000) {
if (stage == 1) {
this._x = 707;
this._y = 456;
this._visible = true;
this._xscale = 100;
this._yscale = 100;
stage = 2;
}
if (stage == 2) {
journey = journey + _parent.journeyInc;
this._x = 707 - ((journey - 650) * 1.9329);
this._y = 471;
if ((_parent.sam.grabbing && (journey > _parent.sam.minJourney)) && (journey <= _parent.sam.maxJourney)) {
this.gotoAndStop(1);
stage = 3;
_parent.sam.grabbing = false;
_parent.sam.holding = true;
}
}
if (stage == 3) {
if (!_parent.sam.holding) {
if (_parent.sam.row == 1) {
stage = 2;
if (_parent.sam.col == 1) {
journey = 941;
} else if (_parent.sam.col == 2) {
journey = 879;
} else if (_parent.sam.col == 3) {
journey = 817;
} else if (_parent.sam.col == 4) {
journey = 755;
} else if (_parent.sam.col == 5) {
journey = 692;
}
} else {
if (_parent.sam.col == 1) {
if (color == "green") {
if (scoreMult == 1) {
_parent.pscore.play();
} else {
_parent.pscore2.play();
}
_parent.score = _parent.score + ((4 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.pmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 2) {
if (color == "blue") {
if (scoreMult == 1) {
_parent.bscore.play();
} else {
_parent.bscore2.play();
}
_parent.score = _parent.score + ((3 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.bmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 3) {
if (color == "red") {
if (scoreMult == 1) {
_parent.rscore.play();
} else {
_parent.rscore2.play();
}
_parent.score = _parent.score + ((5 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.rmiss.play();
_parent.misses--;
}
}
this.removeMovieClip();
}
} else if (_parent.sam.row == 1) {
this._xscale = 100;
this._yscale = 100;
this._y = 363;
this._x = (120 * _parent.sam.col) + 25;
} else {
this._xscale = 75;
this._yscale = 75;
this._y = 277;
if (_parent.sam.col == 1) {
this._x = 182;
} else if (_parent.sam.col == 2) {
this._x = 388;
} else {
this._x = 592;
}
}
}
} else {
if (countdown == 25) {
if (color != "none") {
_parent.tmiss.play();
_parent.misses--;
}
this.clip.gotoAndStop(27);
}
this.clip.play();
countdown--;
if (countdown == 0) {
this.removeMovieClip();
}
}
} else {
this.clip.play();
countdown--;
if (countdown <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 241 MovieClip "redEnv" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
color = "red";
journey = 0;
stage = 0;
this._rotation = 3;
countdown = 25;
}
onClipEvent (enterFrame) {
if ((envLevel == _parent.level) && (!_parent.gameOver)) {
if ((journey >= 0) && (journey < 500)) {
journey = journey + _parent.journeyInc;
this._x = (journey * 1.45) - 58;
this._y = (journey * 0.083) + 6;
} else if (journey < 650) {
if (stage == 0) {
this._rotation = 0;
this.clip.play();
countdown--;
if (countdown == 0) {
stage = 1;
this._visible = false;
countdown = 25;
}
} else if (stage == 1) {
journey = journey + _parent.journeyInc;
}
} else if (journey < 1000) {
if (stage == 1) {
this._x = 707;
this._y = 456;
this._visible = true;
this._xscale = 100;
this._yscale = 100;
stage = 2;
}
if (stage == 2) {
journey = journey + _parent.journeyInc;
this._x = 707 - ((journey - 650) * 1.9329);
this._y = 471;
if ((_parent.sam.grabbing && (journey > _parent.sam.minJourney)) && (journey <= _parent.sam.maxJourney)) {
this.gotoAndStop(1);
stage = 3;
_parent.sam.grabbing = false;
_parent.sam.holding = true;
}
}
if (stage == 3) {
if (!_parent.sam.holding) {
if (_parent.sam.row == 1) {
stage = 2;
if (_parent.sam.col == 1) {
journey = 941;
} else if (_parent.sam.col == 2) {
journey = 879;
} else if (_parent.sam.col == 3) {
journey = 817;
} else if (_parent.sam.col == 4) {
journey = 755;
} else if (_parent.sam.col == 5) {
journey = 692;
}
} else {
if (_parent.sam.col == 1) {
if (color == "green") {
if (scoreMult == 1) {
_parent.pscore.play();
} else {
_parent.pscore2.play();
}
_parent.score = _parent.score + ((4 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.pmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 2) {
if (color == "blue") {
if (scoreMult == 1) {
_parent.bscore.play();
} else {
_parent.bscore2.play();
}
_parent.score = _parent.score + ((3 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.bmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 3) {
if (color == "red") {
if (scoreMult == 1) {
_parent.rscore.play();
} else {
_parent.rscore2.play();
}
_parent.score = _parent.score + ((5 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.rmiss.play();
_parent.misses--;
}
}
this.removeMovieClip();
}
} else if (_parent.sam.row == 1) {
this._xscale = 100;
this._yscale = 100;
this._y = 363;
this._x = (120 * _parent.sam.col) + 25;
} else {
this._xscale = 75;
this._yscale = 75;
this._y = 277;
if (_parent.sam.col == 1) {
this._x = 182;
} else if (_parent.sam.col == 2) {
this._x = 388;
} else {
this._x = 592;
}
}
}
} else {
if (countdown == 25) {
if (color != "none") {
_parent.tmiss.play();
_parent.misses--;
}
this.clip.gotoAndStop(27);
}
this.clip.play();
countdown--;
if (countdown == 0) {
this.removeMovieClip();
}
}
} else {
this.clip.play();
countdown--;
if (countdown <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 244 MovieClip "greenEnv" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
color = "green";
journey = 0;
stage = 0;
this._rotation = 3;
countdown = 25;
}
onClipEvent (enterFrame) {
if ((envLevel == _parent.level) && (!_parent.gameOver)) {
if ((journey >= 0) && (journey < 500)) {
journey = journey + _parent.journeyInc;
this._x = (journey * 1.45) - 58;
this._y = (journey * 0.083) + 6;
} else if (journey < 650) {
if (stage == 0) {
this._rotation = 0;
this.clip.play();
countdown--;
if (countdown == 0) {
stage = 1;
this._visible = false;
countdown = 25;
}
} else if (stage == 1) {
journey = journey + _parent.journeyInc;
}
} else if (journey < 1000) {
if (stage == 1) {
this._x = 707;
this._y = 456;
this._visible = true;
this._xscale = 100;
this._yscale = 100;
stage = 2;
}
if (stage == 2) {
journey = journey + _parent.journeyInc;
this._x = 707 - ((journey - 650) * 1.9329);
this._y = 471;
if ((_parent.sam.grabbing && (journey > _parent.sam.minJourney)) && (journey <= _parent.sam.maxJourney)) {
this.gotoAndStop(1);
stage = 3;
_parent.sam.grabbing = false;
_parent.sam.holding = true;
}
}
if (stage == 3) {
if (!_parent.sam.holding) {
if (_parent.sam.row == 1) {
stage = 2;
if (_parent.sam.col == 1) {
journey = 941;
} else if (_parent.sam.col == 2) {
journey = 879;
} else if (_parent.sam.col == 3) {
journey = 817;
} else if (_parent.sam.col == 4) {
journey = 755;
} else if (_parent.sam.col == 5) {
journey = 692;
}
} else {
if (_parent.sam.col == 1) {
if (color == "green") {
if (scoreMult == 1) {
_parent.pscore.play();
} else {
_parent.pscore2.play();
}
_parent.score = _parent.score + ((4 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.pmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 2) {
if (color == "blue") {
if (scoreMult == 1) {
_parent.bscore.play();
} else {
_parent.bscore2.play();
}
_parent.score = _parent.score + ((3 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.bmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 3) {
if (color == "red") {
if (scoreMult == 1) {
_parent.rscore.play();
} else {
_parent.rscore2.play();
}
_parent.score = _parent.score + ((5 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.rmiss.play();
_parent.misses--;
}
}
this.removeMovieClip();
}
} else if (_parent.sam.row == 1) {
this._xscale = 100;
this._yscale = 100;
this._y = 363;
this._x = (120 * _parent.sam.col) + 25;
} else {
this._xscale = 75;
this._yscale = 75;
this._y = 277;
if (_parent.sam.col == 1) {
this._x = 182;
} else if (_parent.sam.col == 2) {
this._x = 388;
} else {
this._x = 592;
}
}
}
} else {
if (countdown == 25) {
if (color != "none") {
_parent.tmiss.play();
_parent.misses--;
}
this.clip.gotoAndStop(27);
}
this.clip.play();
countdown--;
if (countdown == 0) {
this.removeMovieClip();
}
}
} else {
this.clip.play();
countdown--;
if (countdown <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 247 MovieClip "noneEnv" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
color = "none";
journey = 0;
stage = 0;
this._rotation = 3;
countdown = 25;
}
onClipEvent (enterFrame) {
if ((envLevel == _parent.level) && (!_parent.gameOver)) {
if ((journey >= 0) && (journey < 500)) {
journey = journey + _parent.journeyInc;
this._x = (journey * 1.45) - 58;
this._y = (journey * 0.083) + 6;
} else if (journey < 650) {
if (stage == 0) {
this._rotation = 0;
this.clip.play();
countdown--;
if (countdown == 0) {
stage = 1;
this._visible = false;
countdown = 25;
}
} else if (stage == 1) {
journey = journey + _parent.journeyInc;
}
} else if (journey < 1000) {
if (stage == 1) {
this._x = 707;
this._y = 456;
this._visible = true;
this._xscale = 100;
this._yscale = 100;
stage = 2;
}
if (stage == 2) {
journey = journey + _parent.journeyInc;
this._x = 707 - ((journey - 650) * 1.9329);
this._y = 471;
if ((_parent.sam.grabbing && (journey > _parent.sam.minJourney)) && (journey <= _parent.sam.maxJourney)) {
this.gotoAndStop(1);
stage = 3;
_parent.sam.grabbing = false;
_parent.sam.holding = true;
}
}
if (stage == 3) {
if (!_parent.sam.holding) {
if (_parent.sam.row == 1) {
stage = 2;
if (_parent.sam.col == 1) {
journey = 941;
} else if (_parent.sam.col == 2) {
journey = 879;
} else if (_parent.sam.col == 3) {
journey = 817;
} else if (_parent.sam.col == 4) {
journey = 755;
} else if (_parent.sam.col == 5) {
journey = 692;
}
} else {
if (_parent.sam.col == 1) {
if (color == "green") {
if (scoreMult == 1) {
_parent.pscore.play();
} else {
_parent.pscore2.play();
}
_parent.score = _parent.score + ((4 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.pmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 2) {
if (color == "blue") {
if (scoreMult == 1) {
_parent.bscore.play();
} else {
_parent.bscore2.play();
}
_parent.score = _parent.score + ((3 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.bmiss.play();
_parent.misses--;
}
} else if (_parent.sam.col == 3) {
if (color == "red") {
if (scoreMult == 1) {
_parent.rscore.play();
} else {
_parent.rscore2.play();
}
_parent.score = _parent.score + ((5 + _parent.scoreBonus) * scoreMult);
_parent.mailToLevel--;
} else {
_parent.rmiss.play();
_parent.misses--;
}
}
this.removeMovieClip();
}
} else if (_parent.sam.row == 1) {
this._xscale = 100;
this._yscale = 100;
this._y = 363;
this._x = (120 * _parent.sam.col) + 25;
} else {
this._xscale = 75;
this._yscale = 75;
this._y = 277;
if (_parent.sam.col == 1) {
this._x = 182;
} else if (_parent.sam.col == 2) {
this._x = 388;
} else {
this._x = 592;
}
}
}
} else {
if (countdown == 25) {
if (color != "none") {
_parent.tmiss.play();
_parent.misses--;
}
this.clip.gotoAndStop(27);
}
this.clip.play();
countdown--;
if (countdown == 0) {
this.removeMovieClip();
}
}
} else {
this.clip.play();
countdown--;
if (countdown <= 0) {
this.removeMovieClip();
}
}
}
Symbol 278 Button
on (release) {
_parent._parent.gameFrame.level = 5;
_parent._parent.gameFrame.scoreBonus = 2;
}
Symbol 282 Button
on (release) {
_parent._parent.gameFrame.level = 1;
_parent._parent.gameFrame.scoreBonus = 0;
}
Symbol 288 Button
on (release) {
_parent.gameFrame.setLevelParams();
_parent.gameFrame._alpha = 100;
_parent.gameFrame.gameRunning = true;
this._visible = false;
}
Symbol 289 Button
on (release) {
_parent._parent.gameFrame.level = 10;
_parent._parent.gameFrame.scoreBonus = 5;
}
Symbol 298 Button
on (release) {
this.frameString = "startgame";
this.done = false;
}
Symbol 306 MovieClip Frame 1
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop("title");
done = true;
}
}
stop();
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = false;
_quality = "LOW";
this.onEnterFrame = function () {
fallingEnvelopes();
screenSwitch();
};
Instance of Symbol 34 MovieClip "bigfront" in Symbol 306 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + dy;
this._rotation = this._rotation + dr;
if (this._y > 750) {
this.removeMovieClip();
}
}
Instance of Symbol 36 MovieClip "bigback" in Symbol 306 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + dy;
this._rotation = this._rotation + dr;
if (this._y > 750) {
this.removeMovieClip();
}
}
Symbol 306 MovieClip Frame 2
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop(frameString);
done = true;
}
}
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = true;
frameString = "";
_quality = "LOW";
this.onEnterFrame = function () {
fallingEnvelopes();
screenSwitch();
};
Symbol 306 MovieClip Frame 3
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop("title");
done = true;
}
}
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = true;
_quality = "LOW";
this.onEnterFrame = function () {
fallingEnvelopes();
screenSwitch();
};
Symbol 306 MovieClip Frame 4
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop("title");
done = true;
}
}
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = true;
_quality = "LOW";
this.onEnterFrame = function () {
fallingEnvelopes();
screenSwitch();
};
Symbol 306 MovieClip Frame 5
function countDown() {
if (counterD == 0) {
_quality = "HIGH";
counterD--;
} else {
counterD--;
}
}
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop("endgame");
done = true;
}
}
counterD = 25;
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = true;
this.onEnterFrame = function () {
countDown();
fallingEnvelopes();
screenSwitch();
};
Instance of Symbol 273 MovieClip "gameFrame" in Symbol 306 MovieClip Frame 5
onClipEvent (load) {
function setLevelParams() {
mailToLevel = 5 * level;
journeyInc = 1.25 + (level * 0.75);
spawnRate = Math.round(10 + (90 * Math.pow(level, -0.8)));
}
_root.WPI_ArcadeStartSingleGame();
level = 1;
score = 0;
scoreBonus = 0;
mailToLevel = 5;
misses = 5;
journeyInc = 2;
spawnRate = 100;
frameCount = 0;
letterCount = 0;
gameOver = false;
gameRunning = false;
_parent.levelselect._visible = true;
}
onClipEvent (enterFrame) {
if (gameRunning) {
frameCount++;
levelText = level;
scoreText = score;
mailToLevelText = mailToLevel;
missesText = misses;
if ((misses == 0) & (!gameOver)) {
gameOver = true;
_root.WPI_ArcadeStopSingleGame(score);
_parent.scoreText = score;
_parent.done = false;
_quality = "LOW";
}
if (mailToLevel == 0) {
this.levelUp.play();
level++;
frameCount = 0;
setLevelParams();
}
if (frameCount >= spawnRate) {
frameCount = 0;
rand = random(4);
if (rand == 0) {
tempEnv = this.redEnv.duplicateMovieClip("env" + letterCount, this.getNextHighestDepth());
} else if (rand == 1) {
tempEnv = this.blueEnv.duplicateMovieClip("env" + letterCount, this.getNextHighestDepth());
} else if (rand == 2) {
tempEnv = this.greenEnv.duplicateMovieClip("env" + letterCount, this.getNextHighestDepth());
} else {
tempEnv = this.noneEnv.duplicateMovieClip("env" + letterCount, this.getNextHighestDepth());
}
letterCount++;
tempEnv.envLevel = level;
rand = random(5);
if (rand == 0) {
tempEnv.gotoAndStop(2);
tempEnv.scoreMult = 2;
} else {
tempEnv.scoreMult = 1;
}
delete tempEnv;
}
} else {
this._alpha = 50;
}
}
Instance of Symbol 292 MovieClip "levelselect" in Symbol 306 MovieClip Frame 5
onClipEvent (load) {
_parent.gameFrame.level = 1;
this.level1.gotoAndStop(2);
this.level5.gotoAndStop(1);
this.levelten.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_parent.gameFrame.level == 1) {
this.level1.gotoAndStop(2);
this.level5.gotoAndStop(1);
this.levelten.gotoAndStop(1);
} else if (_parent.gameFrame.level == 5) {
this.level1.gotoAndStop(1);
this.level5.gotoAndStop(2);
this.levelten.gotoAndStop(1);
} else if (_parent.gameFrame.level == 10) {
this.level1.gotoAndStop(1);
this.level5.gotoAndStop(1);
this.levelten.gotoAndStop(2);
}
}
Symbol 306 MovieClip Frame 6
function fallingEnvelopes() {
if (!done) {
i = 0;
while (i < (random(1) + 2)) {
tempEnv = this.bigfront.duplicateMovieClip("bigfront" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
tempEnv = this.bigback.duplicateMovieClip("bigback" + counter, this.getNextHighestDepth());
tempEnv._x = random(900) - 50;
tempEnv._y = -150;
tempEnv.dy = random(10) + 20;
tempEnv.dr = random(24) - 12;
delete tempEnv;
counter++;
i++;
}
timeCounter++;
}
}
function screenSwitch() {
if (timeCounter == switchTimeCounter) {
this.gotoAndStop(frameString);
done = true;
}
}
counter = 0;
timeCounter = 0;
switchTimeCounter = 35;
done = true;
frameString = "";
_quality = "LOW";
this.onEnterFrame = function () {
fallingEnvelopes();
screenSwitch();
};