Frame 1
Security.allowDomain("*");
MochiAd.showPreGameAd({id:"f1e5bd6456ce71af", res:"640x480"});
Frame 2
function gameMenu(menu, obj) {
getURL (_root.authorsSite, "_blank");
}
this._lockroot = true;
var gameName = "gem";
vNum = "1.01";
gameQuality = "AUTO";
authorsSite = "http://www.terrypaton.com";
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem(authorsSite, gameMenu));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
legalDomain = "http://www.terrypaton.com";
gameLocation = _root._url.substr(0, legalDomain.length);
if (gameLocation != legalDomain) {
}
Frame 3
gameLoadingName = "gem";
loadingClip.onEnterFrame = function () {
pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100);
if (pL < 100) {
this.mask._xscale = (pL / 100) * 100;
this._parent.stop();
} else {
i = 0;
while (i < stringLength) {
removeMovieClip(eval ("loadingHolder.l" + i));
i++;
}
this._parent.play();
}
};
stringLength = gameLoadingName.length;
wordOffset = (stringLength * 10) / 2;
this.createEmptyMovieClip("loadingHolder", 1);
loadingHolder._x = (320 - wordOffset) + 10;
loadingHolder._y = 175;
i = 0;
while (i < stringLength) {
t = loadingHolder.attachMovie("letter", "l" + i, i);
t._x = i * 10;
t.angle = i;
t.Lvar.text = gameLoadingName.charAt(i);
t._xscale = (t._yscale = 200);
i++;
}
stop();
Frame 6
function playSound(temp) {
switch (temp) {
case "points" :
pointsSnd.start();
return;
case "energy" :
energySnd.start();
return;
case "jump" :
a = random(3) + 1;
eval ("jumpSnd" + a).start();
return;
case "mouseOver" :
mouseOverSnd.start();
return;
case "mouseDown" :
mouseDownSnd.start();
return;
case "gem collected" :
collectSnd1.start();
return;
case "level complete" :
levelCompleteSnd.start();
return;
case "error" :
errorSnd.start();
return;
case "hurt" :
hurtSnd.start();
}
}
function attachSoundFromLibrary(idname) {
var _local2 = new Sound(this);
_local2.attachSound(idname);
return(_local2);
}
storage = SharedObject.getLocal(gameName + "storage");
yourhigh = storage.data.myhighscore;
if (yourhigh == undefined) {
storage.data.myhighscore = 0;
yourhigh = 0;
}
mouseOverSnd = attachSoundFromLibrary("mouseOver.wav");
mouseDownSnd = attachSoundFromLibrary("mouseDownSnd.wav");
explode1Snd = attachSoundFromLibrary("explode1Snd.wav");
explode2Snd = attachSoundFromLibrary("explode2Snd.wav");
explode3Snd = attachSoundFromLibrary("explode3Snd.wav");
pointsSnd = attachSoundFromLibrary("pointsSnd.wav");
energySnd = attachSoundFromLibrary("energySnd.wav");
jumpSnd = attachSoundFromLibrary("jumpSnd.wav");
var jumpSnd1 = attachSoundFromLibrary("jumpSound1");
var jumpSnd2 = attachSoundFromLibrary("jumpSound2");
var jumpSnd3 = attachSoundFromLibrary("jumpSound3");
var landSnd = attachSoundFromLibrary("landSound");
var collectSnd1 = attachSoundFromLibrary("CollectSound1");
var levelCompleteSnd = attachSoundFromLibrary("levelComplete.wav");
var errorSnd = attachSoundFromLibrary("error.wav");
var hurtSnd = attachSoundFromLibrary("hurt.wav");
Frame 7
_quality = "LOW";
this.playBtn.onRelease = function () {
gotoAndPlay (14);
playSound("mouseDown");
};
this.playBtn.onRollOver = function () {
playSound("mouseOver");
};
this.yourHighClip.reset_btn.onRelease = function () {
playSound("mouseDown");
_root.yourhigh = 0;
trace(yourhigh);
yourHighClip.resetclip.gotoAndPlay(2);
storage.data.myhighscore = 0;
storage.flush();
};
this.yourHighClip.reset_btn.onRollOver = function () {
playSound("mouseOver");
};
secretLevel = false;
godMode = false;
Frame 13
stop();
Frame 14
function setupCollectables() {
collectArray = new Array(1, 3, 2, 10, 1);
collectArray.push(2, 5, 0, 10, 1, 2, 1, 1, 10, 1);
collectArray.push(3, 2, 0, 10, 1, 3, 6, 1, 10, 1, 3, 7, 2, 1, 1);
collectArray.push(4, 5, 4, 10, 1, 4, 2, 0, 10, 1, 4, 6, 0, 2, 1);
collectArray.push(5, 1, 2, 10, 1, 5, 7, 3, 10, 1);
collectArray.push(6, 2, 2, 10, 1, 6, 5, 3, 10, 1);
collectArray.push(7, 6, 4, 10, 1, 7, 4, 0, 10, 1, 7, 1, 2, 2, 1);
collectArray.push(8, 1, 0, 2, 1, 8, 6, 0, 10, 1);
collectArray.push(9, 2, 2, 10, 1, 9, 6, 2, 10, 1, 9, 1, 1, 2, 1);
collectArray.push(10, 1, 3, 1, 1, 10, 5, 1, 10, 1);
collectArray.push(20, 5, 0, 11, 1);
collectArray.push(21, 2, 0, 11, 1, 21, 4, 0, 11, 1);
collectArray.push(22, 1, 4, 11, 1, 22, 6, 0, 2, 1, 22, 5, 4, 11, 1);
collectArray.push(23, 3, 3, 2, 1, 23, 2, 0, 11, 1, 23, 4, 0, 11, 1);
collectArray.push(24, 3, 1, 11, 1, 24, 1, 2, 11, 1);
collectArray.push(25, 5, 2, 11, 1, 25, 1, 2, 11, 1, 25, 3, 0, 1, 1);
collectArray.push(26, 3, 3, 11, 1, 26, 4, 0, 11, 1);
collectArray.push(27, 1, 4, 2, 1, 27, 4, 2, 11, 1, 27, 6, 2, 11, 1);
collectArray.push(28, 6, 2, 1, 1, 28, 1, 2, 11, 1);
collectArray.push(29, 1, 1, 11, 1, 29, 3, 0, 11, 1, 29, 5, 0, 11, 1);
collectArray.push(30, 2, 0, 11, 1, 30, 5, 0, 11, 1);
collectArray.push(40, 5, 2, 1, 1);
collectArray.push(41, 2, 3, 12, 1, 41, 5, 3, 2, 1, 41, 7, 1, 12, 1);
collectArray.push(42, 4, 0, 12, 1, 42, 7, 0, 12, 1);
collectArray.push(43, 1, 4, 12, 1, 43, 6, 2, 12, 1);
collectArray.push(44, 1, 3, 12, 1, 44, 4, 4, 12, 1);
collectArray.push(45, 6, 3, 12, 1, 45, 4, 4, 1, 1);
collectArray.push(46, 2, 0, 12, 1, 46, 5, 0, 2, 1);
collectArray.push(47, 2, 0, 12, 1, 47, 5, 0, 1, 1);
collectArray.push(48, 6, 2, 2, 1, 48, 1, 4, 12, 1);
collectArray.push(49, 2, 0, 12, 1, 49, 6, 0, 12, 1);
collectArray.push(50, 4, 0, 12, 1);
collectArray.push(60, 5, 4, 13, 1);
collectArray.push(61, 6, 3, 14, 1, 61, 3, 2, 2, 1);
collectArray.push(62, 1, 4, 15, 1, 62, 5, 0, 2, 1);
collectArray.push(63, 1, 2, 16, 1, 63, 3, 0, 1, 1);
collectArray.push(64, 5, 3, 17, 1, 64, 2, 0, 2, 1);
collectArray.push(65, 4, 0, 1, 1);
collectArray.push(66, 1, 4, 18, 1, 66, 5, 1, 2, 1);
collectArray.push(67, 3, 1, 2, 1, 67, 5, 1, 1, 1);
collectArray.push(68, 2, 1, 2, 1, 68, 4, 1, 2, 1);
collectArray.push(69, 6, 4, 19, 1);
}
function setupData() {
enemyArray = new Array();
enemyArray.push(1, 2, 1, 2, 1);
enemyArray.push(2, 3, 3, 1, 1);
enemyArray.push(3, 3, 2, 1, 1, 3, 5, 3, 1, 1);
enemyArray.push(4, 5, 1, 2, 1);
enemyArray.push(5, 5, 1, 1, 1);
enemyArray.push(6, 1, 1, 1, 1, 6, 3, 3, 1, 1, 6, 6, 2, 1, 1);
enemyArray.push(7, 4, 2, 2, 1, 7, 2, 3, 1, 1);
enemyArray.push(8, 4, 3, 1, 1);
enemyArray.push(9, 5, 3, 2, 1);
enemyArray.push(10, 3, 3, 1, 1);
enemyArray.push(20, 6, 3, 1, 1);
enemyArray.push(21, 6, 1, 1, 1);
enemyArray.push(22, 4, 4, 2, 1, 22, 4, 3, 1, 1);
enemyArray.push(23, 1, 2, 1, 1, 23, 5, 4, 1, 1);
enemyArray.push(24, 3, 2, 2, 1);
enemyArray.push(25, 2, 1, 1, 1, 25, 4, 4, 1, 1);
enemyArray.push(26, 3, 3, 2, 1, 26, 3, 1, 2, 1);
enemyArray.push(27, 3, 4, 1, 1, 27, 5, 1, 1, 1);
enemyArray.push(28, 2, 1, 1, 1, 28, 3, 1, 1, 1, 28, 4, 1, 1, 1, 28, 5, 0, 1, 1);
enemyArray.push(29, 3, 2, 2, 1, 29, 2, 1, 1, 1);
enemyArray.push(30, 2, 2, 1, 1, 30, 4, 4, 1, 1);
enemyArray.push(41, 2, 3, 4, 1, 41, 6, 3, 1, 1);
enemyArray.push(42, 2, 3, 4, 1, 42, 6, 2, 4, 1, 42, 4, 3, 1, 1);
enemyArray.push(43, 5, 3, 1, 1, 43, 4, 1, 5, 1);
enemyArray.push(44, 1, 3, 2, 1);
enemyArray.push(45, 5, 3, 4, 1);
enemyArray.push(46, 6, 3, 1, 1);
enemyArray.push(47, 3, 1, 5, 1, 47, 4, 1, 4, 1);
enemyArray.push(49, 2, 3, 1, 1, 49, 6, 1, 4, 1);
enemyArray.push(50, 1, 1, 1, 1, 50, 5, 4, 4, 1);
enemyArray.push(60, 6, 3, 1, 1);
enemyArray.push(61, 3, 2, 2, 1, 61, 5, 2, 4, 1);
enemyArray.push(62, 6, 3, 1, 1, 62, 3, 3, 5, 1);
enemyArray.push(63, 2, 2, 4, 1, 63, 4, 2, 2, 1);
enemyArray.push(64, 2, 2, 1, 1, 64, 6, 3, 4, 1);
enemyArray.push(65, 3, 1, 5, 1, 65, 4, 2, 4, 1);
enemyArray.push(66, 2, 1, 1, 1, 66, 4, 3, 5, 1);
enemyArray.push(67, 5, 3, 2, 1);
enemyArray.push(68, 3, 3, 4, 1, 68, 5, 3, 1, 1);
enemyArray.push(69, 2, 2, 4, 1, 69, 2, 2, 2, 1);
roomData = new Array();
roomData[0] = new Array(4, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 217, 1, 1, 207, 207, 1, 240, 2, 3, 4, 2, 3, 3, 3, 3, 1, 1);
roomData[1] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 240, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 2, 3, 3, 4, 1, 1, 3, 4, 11, 11, 11, 11, 2, 3, 1, 1);
roomData[2] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 217, 208, 1, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 3, 4, 11, 2, 3, 3, 3, 3, 1, 1);
roomData[3] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 207, 1, 7, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 2, 3, 3, 1, 1);
roomData[4] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 217, 7, 1, 1, 1, 1, 2, 3, 4, 1, 1, 1, 3, 3, 4, 11, 11, 2, 3, 3, 1, 1);
roomData[5] = new Array(1, 1, 2, 3, 3, 4, 2, 3, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 206, 240, 1, 206, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3);
roomData[6] = new Array(2, 3, 3, 3, 3, 3, 3, 3, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 207, 206, 1, 217, 1, 208, 2, 3, 3, 3, 3, 3, 3, 3);
roomData[7] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 217, 1, 1, 1, 1, 1, 1, 2, 3, 3, 1, 208, 1, 1, 1, 1, 1, 8, 3, 4, 2, 3, 3, 3, 3, 3);
roomData[8] = new Array(1, 1, 1, 1, 1, 1, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 207, 1, 1, 1, 1, 3, 4, 1, 7, 1, 1, 2, 3, 237, 238, 238, 238, 238, 238, 238, 236, 3, 3, 3, 3, 3, 3, 3, 3);
roomData[9] = new Array(16, 14, 15, 16, 14, 15, 16, 8, 1, 202, 1, 1, 1, 1, 1, 8, 207, 1, 1, 1, 1, 1, 1, 8, 4, 1, 1, 1, 1, 1, 1, 2, 9, 1, 206, 1, 217, 1, 1, 1, 3, 3, 4, 2, 3, 3, 4, 2);
roomData[10] = new Array(9, 1, 1, 1, 1, 14, 16, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 206, 239, 1, 1, 1, 1, 207, 1, 2, 4, 3, 4, 2, 3, 3, 4, 11, 11);
roomData[11] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
roomData[12] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
roomData[13] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
roomData[14] = new Array(1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 215, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 213, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[15] = new Array(3, 3, 2, 1, 1, 1, 1, 2, 8, 1, 1, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 6, 7, 5, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 2, 5, 4, 2, 5, 2, 4, 2);
roomData[16] = new Array(2, 6, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 4, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 5, 4, 5, 2, 5, 3, 4, 4);
roomData[17] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[18] = new Array(1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[19] = new Array(2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[20] = new Array(23, 1, 1, 1, 1, 1, 1, 1, 28, 1, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 1, 1, 1, 28, 1, 1, 1, 1, 1, 1, 23, 28, 208, 1, 240, 1, 1, 1, 28, 29, 14, 15, 15, 15, 15, 15, 31);
roomData[21] = new Array(1, 1, 1, 1, 1, 1, 1, 207, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 17, 1, 28, 29, 1, 1, 17, 1, 1, 1, 28, 28, 238, 238, 238, 238, 238, 238, 28, 31, 32, 32, 32, 31, 32, 32, 31);
roomData[22] = new Array(1, 1, 1, 1, 1, 1, 1, 29, 17, 1, 1, 1, 1, 1, 1, 28, 17, 1, 1, 23, 1, 1, 1, 28, 14, 16, 1, 28, 1, 31, 1, 31, 17, 1, 207, 29, 1, 1, 1, 1, 14, 15, 16, 28, 14, 15, 15, 16);
roomData[23] = new Array(29, 1, 1, 1, 1, 1, 14, 15, 28, 1, 1, 1, 1, 1, 1, 17, 28, 1, 1, 17, 1, 1, 1, 17, 31, 1, 17, 1, 17, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 208, 14, 16, 14, 16, 14, 15, 15, 16);
roomData[24] = new Array(15, 15, 16, 14, 15, 16, 14, 16, 17, 1, 1, 1, 1, 1, 1, 26, 17, 1, 1, 1, 1, 1, 1, 27, 17, 1, 1, 1, 24, 1, 1, 17, 1, 1, 1, 1, 25, 240, 1, 1, 14, 15, 15, 16, 14, 15, 15, 16);
roomData[25] = new Array(28, 1, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 14, 15, 16, 30, 1, 1, 17, 1, 1, 1, 23, 14, 16, 1, 1, 1, 1, 1, 28, 1, 1, 1, 1, 1, 1, 207, 28, 14, 15, 15, 16, 14, 15, 15, 28);
roomData[26] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 26, 1, 1, 1, 1, 1, 1, 26, 27, 1, 17, 1, 1, 17, 1, 27, 24, 1, 1, 1, 1, 1, 1, 24, 25, 238, 238, 31, 31, 238, 238, 25, 31, 32, 32, 31, 31, 32, 32, 31);
roomData[27] = new Array(1, 1, 14, 15, 16, 14, 15, 15, 23, 1, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 1, 1, 1, 14, 16, 1, 1, 1, 1, 1, 1, 29, 1, 1, 1, 217, 240, 1, 208, 28, 14, 15, 16, 14, 15, 15, 16);
roomData[28] = new Array(16, 1, 1, 14, 16, 1, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 216, 1, 1, 217, 14, 15, 16, 14, 15, 14, 15, 15);
roomData[29] = new Array(15, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 17, 1, 1, 31, 1, 1, 216, 17, 238, 238, 238, 31, 15, 16, 14, 15, 15, 16, 14, 15);
roomData[30] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239, 26, 1, 1, 17, 1, 17, 1, 26, 27, 17, 1, 1, 1, 1, 1, 27, 24, 238, 238, 238, 238, 238, 238, 24, 25, 32, 32, 32, 32, 32, 32, 25);
roomData[31] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[32] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[33] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[34] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[35] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[36] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[37] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[38] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[39] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[40] = new Array(34, 1, 1, 1, 1, 33, 34, 34, 35, 1, 1, 1, 1, 1, 1, 1, 34, 230, 1, 1, 1, 1, 1, 1, 34, 1, 1, 1, 1, 1, 1, 1, 34, 1, 1, 1, 1, 1, 240, 1, 35, 34, 34, 34, 34, 34, 34, 35);
roomData[41] = new Array(35, 34, 34, 35, 34, 33, 1, 1, 1, 1, 1, 1, 1, 34, 230, 1, 1, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 1, 1, 36, 1, 1, 1, 35, 35, 34, 34, 36, 34, 34, 34, 33);
roomData[42] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 35, 1, 35, 1, 35, 1, 1, 1, 36, 1, 1, 1, 1, 1, 35, 35, 36, 238, 238, 238, 238, 238, 36, 34, 36, 34, 34, 33, 34, 34, 36);
roomData[43] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 35, 33, 1, 1, 1, 1, 1, 1, 1, 36, 33, 34, 34, 34, 35, 1, 1, 36, 36, 1, 1, 1, 1, 1, 1, 36, 33, 34, 34, 34, 34, 34, 34, 33);
roomData[44] = new Array(1, 1, 35, 34, 34, 34, 34, 34, 35, 1, 1, 1, 1, 1, 1, 1, 36, 34, 34, 34, 34, 34, 34, 34, 36, 1, 1, 1, 1, 1, 1, 1, 36, 1, 1, 1, 1, 1, 1, 35, 33, 34, 34, 34, 34, 34, 34, 36);
roomData[45] = new Array(34, 34, 34, 34, 34, 34, 34, 36, 1, 1, 1, 1, 1, 1, 1, 36, 34, 34, 35, 1, 1, 1, 231, 36, 1, 1, 203, 35, 35, 1, 1, 90, 35, 1, 1, 1, 1, 1, 1, 1, 36, 34, 34, 34, 34, 34, 34, 34);
roomData[46] = new Array(36, 1, 1, 36, 1, 1, 1, 1, 36, 230, 1, 35, 1, 1, 1, 1, 36, 1, 1, 1, 1, 1, 1, 1, 33, 34, 34, 34, 34, 35, 1, 35, 240, 1, 1, 1, 1, 1, 1, 36, 34, 34, 34, 34, 34, 34, 34, 36);
roomData[47] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 35, 1, 36, 35, 1, 1, 35, 1, 1, 1, 36, 36, 238, 238, 238, 238, 238, 238, 36, 36, 34, 34, 34, 34, 34, 34, 36);
roomData[48] = new Array(1, 1, 1, 1, 1, 1, 1, 36, 33, 34, 34, 34, 34, 35, 1, 36, 36, 200, 1, 1, 1, 1, 1, 36, 36, 1, 35, 34, 34, 34, 34, 33, 36, 1, 1, 1, 1, 1, 1, 1, 36, 34, 34, 33, 34, 34, 34, 34);
roomData[49] = new Array(36, 1, 1, 1, 36, 1, 1, 1, 36, 1, 1, 1, 36, 1, 1, 1, 36, 1, 1, 1, 36, 1, 1, 1, 33, 35, 1, 231, 33, 35, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 34, 34, 34, 33, 34, 34, 34, 34);
roomData[50] = new Array(1, 34, 34, 230, 1, 1, 35, 34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239, 1, 1, 34, 35, 1, 1, 35, 35, 1, 1, 1, 36, 238, 238, 238, 36, 34, 34, 34, 36, 34, 34, 34, 36);
roomData[51] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[52] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[53] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[54] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[55] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[56] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[57] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[58] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[59] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[60] = new Array(9, 1, 2, 3, 3, 3, 3, 3, 9, 1, 1, 1, 1, 233, 1, 1, 9, 230, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 224, 1, 227, 209, 1, 1, 240, 2, 3, 3, 4, 2, 3, 4, 2);
roomData[61] = new Array(3, 4, 1, 1, 1, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 21, 22, 3, 4, 26, 2, 3, 3, 3, 3);
roomData[62] = new Array(4, 1, 1, 1, 1, 1, 1, 26, 1, 1, 1, 1, 1, 1, 1, 27, 3, 3, 4, 1, 2, 4, 1, 24, 24, 1, 1, 1, 1, 1, 231, 25, 25, 1, 1, 38, 1, 1, 1, 1, 2, 3, 4, 39, 3, 3, 3, 3);
roomData[63] = new Array(24, 230, 1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 231, 2, 3, 4, 1, 2, 3, 4, 1, 5, 1, 1, 1, 1, 1, 1, 1, 5, 3, 3, 4, 2, 3, 3, 4, 5);
roomData[64] = new Array(1, 1, 1, 1, 231, 2, 3, 3, 1, 1, 1, 1, 1, 1, 231, 17, 4, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 2, 4, 1, 1, 17, 9, 1, 1, 8, 9, 17, 1, 1, 9, 2, 3, 8, 9, 3, 3, 3);
roomData[65] = new Array(2, 3, 4, 1, 1, 1, 1, 2, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1, 24, 7, 1, 1, 2, 3, 1, 1, 25, 5, 238, 238, 238, 8, 2, 3, 4, 5, 2, 3, 4, 8);
roomData[66] = new Array(3, 4, 2, 3, 4, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 3, 4, 1, 1, 1, 1, 1, 20, 9, 1, 1, 1, 1, 1, 21, 22, 9, 2, 4, 14, 15, 15, 15, 15);
roomData[67] = new Array(1, 231, 14, 15, 15, 15, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 29, 24, 1, 1, 1, 1, 1, 1, 28, 25, 35, 1, 1, 1, 1, 35, 28, 16, 14, 15, 15, 15, 16, 36, 28);
roomData[68] = new Array(1, 1, 34, 34, 34, 34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 1, 1, 1, 26, 1, 1, 1, 1, 1, 1, 1, 27, 38, 1, 1, 1, 1, 1, 1, 36, 39, 35, 34, 34, 34, 34, 34);
roomData[69] = new Array(1, 231, 33, 34, 35, 34, 33, 34, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239, 1, 1, 1, 35, 24, 1, 1, 38, 1, 1, 1, 36, 25, 1, 1, 39, 34, 34, 34, 36, 34, 34, 34, 36);
roomData[70] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[71] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[72] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[73] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[74] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
roomData[75] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2);
}
function goBackMsgClass() {
}
function goBackMsgTwoClass() {
}
function collectAnimClass() {
}
function flameClass() {
}
function enemy3Class() {
}
function moveplayer() {
playerHitStageTest();
if ((!this.pleft) && (Key.isDown(37))) {
this.pXSpeed = this.pXSpeed - 5;
this.player._xscale = -100;
}
if ((!this.pright) && (Key.isDown(39))) {
this.pXSpeed = this.pXSpeed + 5;
this.player._xscale = 100;
}
if (this.pdown && (playerLanded == false)) {
playerLanded = true;
this.player.gotoAndStop(1);
landSnd.start();
}
if (this.pXSpeed < 0) {
if (this.pdown) {
this.player.gotoAndStop(4);
}
if ((!this.pdown) && (this.pYSpeed < 0)) {
this.player.gotoAndStop(3);
}
}
if (this.pY < 15) {
this.pY = 15;
}
this.tempN = Math.abs(this.pXSpeed);
if (this.tempN > 0) {
this.pX = this.pX + this.pXSpeed;
this.pXSpeed = this.pXSpeed * 0.5;
if (this.tempN < 0.2) {
this.pXSpeed = 0;
}
if (this.pdown) {
this.player.gotoAndStop(4);
}
} else if ((this.pYSpeed < 4) && (this.pYSpeed > -4)) {
this.player.gotoAndStop(1);
} else if ((this.pYSpeed > 4) && (!this.pdown)) {
this.player.gotoAndStop(3);
}
if (!this.pdown) {
this.pYSpeed = this.pYSpeed + gravity;
}
if (this.pYSpeed < 0) {
this.pYSpeed = this.pYSpeed + 0.5;
}
if (this.pYSpeed > 12) {
this.pYSpeed = 12;
}
if ((!this.pdown) && (this.pYSpeed > 0)) {
this.player.gotoAndStop(3);
this.pY = this.pY + this.pYSpeed;
playerLanded = false;
}
if ((!this.pup) && (this.pYSpeed < 0)) {
this.pY = this.pY + this.pYSpeed;
this.player.gotoAndStop(2);
}
this.player._x = this.pX;
this.player._y = this.pY;
if (this.pX > 540) {
switch (gameLevel) {
case 1 :
if (roomNumber == 10) {
if (gemsCollected > (levelCollectAmount - 1)) {
gameState = "level complete";
playSound("level complete");
} else {
this.pX = 540;
if (goBackMsg._alpha == undefined) {
attachMovie("goBackMsg", "goBackMsg", 2000);
playSound("error");
}
}
}
break;
case 2 :
if (roomNumber == 30) {
if (gemsCollected > (levelCollectAmount - 1)) {
gameState = "level complete";
playSound("level complete");
} else {
this.pX = 540;
if (goBackMsg._alpha == undefined) {
attachMovie("goBackMsg", "goBackMsg", 700);
playSound("error");
}
}
}
break;
case 3 :
if (roomNumber == 50) {
if (gemsCollected > (levelCollectAmount - 1)) {
playSound("level complete");
gameState = "level complete";
} else {
this.pX = 540;
if (goBackMsg._alpha == undefined) {
attachMovie("goBackMsg", "goBackMsg", 700);
playSound("error");
}
}
}
break;
case 4 :
if (roomNumber == 69) {
if (gemsCollected > (levelCollectAmount - 1)) {
gameState = "game complete";
playSound("level complete");
} else {
this.pX = 540;
if (goBackMsg._alpha == undefined) {
attachMovie("goBackMsgTwo", "goBackMsg", 700);
playSound("error");
}
}
}
break;
}
}
}
function energyWall1Class() {
}
function energyWall2Class() {
}
function energyWall3Class() {
}
function energyWall4Class() {
}
function energyWall5Class() {
}
function energyWall6Class() {
}
function frameAction() {
switch (gameState) {
case "playing" :
moveplayer();
hitmonstertest();
movemonsters();
moveRoomTest();
testCollectables();
return;
case "level complete" :
gameLevel++;
if (gameLevel > 4) {
tellPlayer("Game Complete");
gameState = "game complete";
} else {
gameState = "level complete wait";
levelWaitC = 60;
tellPlayer("Level Complete");
}
return;
case "level complete wait" :
levelWaitC--;
if (levelWaitC < 1) {
gameState = "start next level";
}
return;
case "start next level" :
tellPlayer("Level " + gameLevel);
switch (gameLevel) {
case 1 :
roomNumber = 0;
gemsCollected = 0;
levelCollectAmount = 17;
break;
case 2 :
roomNumber = 20;
gemsCollected = 0;
levelCollectAmount = 21;
break;
case 3 :
roomNumber = 40;
gemsCollected = 0;
levelCollectAmount = 15;
break;
case 4 :
roomNumber = 60;
gemsCollected = 0;
levelCollectAmount = 7;
break;
}
if (godMode) {
gemsCollected = levelCollectAmount;
}
this.pX = 220;
this.pY = 250;
drawRoom();
gameState = "playing";
return;
case "game nearly complete" :
Key.removeListener(myListener);
i = 0;
while (i < 100) {
removeMovieClip(eval ("e" + i));
i++;
}
i = 0;
while (i < 1000) {
removeMovieClip(eval ("c" + i));
i = i + 5;
}
gotoAndPlay (14);
return;
case "game complete" :
Key.removeListener(myListener);
i = 0;
while (i < 100) {
removeMovieClip(eval ("e" + i));
i++;
}
i = 0;
while (i < 1000) {
removeMovieClip(eval ("c" + i));
i = i + 5;
}
gameState = "end";
gotoAndPlay (35);
return;
case "game over" :
Key.removeListener(myListener);
gameState = "end";
i = 0;
while (i < 100) {
removeMovieClip(eval ("e" + i));
i++;
}
i = 0;
while (i < 1000) {
removeMovieClip(eval ("c" + i));
i = i + 5;
}
gotoAndPlay (26);
return;
case "lose life" :
gameState = "lose life wait";
loseWait = 60;
return;
case "lose life wait" :
player._xscale = (player._yscale = player._yscale * 1.05);
player._rotation = player._rotation + 5;
player._alpha = player._alpha - 2;
loseWait--;
if (loseWait < 1) {
gameState = "game over";
}
return;
case "end" :
}
}
function testCollectables() {
e = 0;
while (e < collectArray.length) {
if (collectArray[e] == roomNumber) {
tempNum = "c" + e;
tx = eval (tempNum)._x + 37.5;
if (Math.abs(tx - pX) < 50) {
ty = eval (tempNum)._y + 37.5;
if (Math.abs(pY - ty) < 50) {
collectType = collectArray[e + 3];
if (collectType == 1) {
cN = 3;
playSound("energy");
this.score = this.score + 500;
this.energy = this.energy + 25;
if (this.energy > 100) {
this.energy = 100;
}
lifemeter._yscale = this.energy;
}
if (collectType == 2) {
playSound("points");
this.score = this.score + 500;
cN = 2;
}
if ((collectType > 9) && (collectType < 13)) {
cN = 1;
playSound("gem collected");
this.score = this.score + 1000;
gemsCollected++;
}
if (collectType > 12) {
cN = 4;
collectSnd1.start();
this.score = this.score + 1500;
gemsCollected++;
}
collectArray[e] = 0;
collectArray[e + 1] = 0;
collectArray[e + 2] = 0;
collectArray[e + 3] = 0;
collectArray[e + 4] = 0;
attachMovie("collectAnim", "cAnim", 699);
cAnim._x = eval (tempNum)._x;
cAnim._y = eval (tempNum)._y;
cAnim.TextAlert.gotoAndStop(cN);
removeMovieClip(eval (tempNum));
}
}
}
e = e + 5;
}
}
function moveRoomTest() {
if (this.pX < 10) {
roomNumber--;
drawRoom();
this.pX = 585;
}
if (this.pX > 585) {
this.pX = 10;
roomNumber++;
drawRoom();
}
}
function findsquare() {
v = this.player._x;
w = this.player._y;
d = Math.floor(pX / this.playerSize);
e = Math.floor(pY / this.playerSize);
f = Math.floor((pX + 11) / this.playerSize);
h = Math.floor((pX - 11) / this.playerSize);
g = Math.floor((pY + 11) / this.playerSize);
k = Math.floor((pY - 11) / this.playerSize);
loc = d + (e * 20);
falltest = d + (g * 20);
righttest = f + (e * 20);
lefttest = h + (e * 20);
uptest = d + (k * 20);
c = dat[falltest];
this.left = 1;
if (dat[uptest] > 0) {
this.pYSpeed = 0;
}
if (dat[lefttest] > 0) {
this.left = 0;
}
right = 1;
if (dat[righttest] > 0) {
this.right = 0;
}
this.fall = 1;
if ((c > 0) && (this.pYSpeed > -1)) {
this.fall = 0;
this.pYSpeed = 0;
this.land = (g * 25) - 20;
}
}
function movemonsters() {
em = 0;
while (em < roomEnemyArray.length) {
a = roomEnemyArray[em + 3];
if ((a < 20) && (a != 3)) {
this.testEnemy = em / 5;
switch (a) {
case 1 :
this.enemyDir = eval ("e" + this.testEnemy).clip.dir;
if (this.enemyDir == 1) {
this.uptest = Math.floor(eval ("e" + this.testEnemy)._x / blockSize) + (Math.floor((eval ("e" + this.testEnemy)._y - 2) / blockSize) * stageBlocksWide);
this.tempG = roomData[roomNumber][this.uptest];
if (eval ("e" + this.testEnemy)._y < 1) {
this.tempG = 2;
}
if ((this.tempG > 1) && (this.tempG < 200)) {
eval ("e" + this.testEnemy).clip.dir = 0;
} else {
eval ("e" + this.testEnemy)._y = eval ("e" + this.testEnemy)._y - 3;
}
} else if (this.enemyDir == 0) {
this.downtest = Math.floor(eval ("e" + this.testEnemy)._x / blockSize) + (Math.floor((eval ("e" + this.testEnemy)._y + blockSize) / blockSize) * stageBlocksWide);
this.tempM = roomData[roomNumber][this.downtest];
if (eval ("e" + this.testEnemy)._y > 400) {
this.tempM = 2;
}
if ((this.tempM > 1) && (this.tempM < 200)) {
eval ("e" + this.testEnemy).clip.dir = 1;
} else {
eval ("e" + this.testEnemy)._y = eval ("e" + this.testEnemy)._y + 3;
}
}
break;
case 2 :
this.enemyDir = eval ("e" + this.testEnemy).clip.dir;
if (this.enemyDir == 1) {
this.lefttest = Math.floor((eval ("e" + this.testEnemy)._x - 3) / blockSize) + (Math.floor(eval ("e" + this.testEnemy)._y / blockSize) * stageBlocksWide);
this.tempG = roomData[roomNumber][this.lefttest];
if (eval ("e" + this.testEnemy)._x < 1) {
this.tempG = 2;
}
if ((this.tempG > 1) && (this.tempG < 200)) {
eval ("e" + this.testEnemy).clip.dir = 0;
} else {
eval ("e" + this.testEnemy)._x = eval ("e" + this.testEnemy)._x - 2;
}
} else if (this.enemyDir == 0) {
this.righttest = Math.floor((eval ("e" + this.testEnemy)._x + blockSize) / blockSize) + (Math.floor(eval ("e" + this.testEnemy)._y / blockSize) * stageBlocksWide);
this.tempM = roomData[roomNumber][this.righttest];
if (eval ("e" + this.testEnemy)._x > 525) {
this.tempM = 2;
}
if ((this.tempM > 1) && (this.tempM < 200)) {
eval ("e" + this.testEnemy).clip.dir = 1;
} else {
eval ("e" + this.testEnemy)._x = eval ("e" + this.testEnemy)._x + 2;
}
}
eval ("e" + this.testEnemy).gotoAndStop(this.enemyDir + 1);
break;
case 3 :
this.enemyDir = eval ("e" + this.testEnemy).clip.dir;
break;
case 4 :
this.enemyDir = eval ("e" + this.testEnemy).clip.dir;
if (this.enemyDir == 1) {
this.uptest = Math.floor(eval ("e" + this.testEnemy)._x / blockSize) + (Math.floor((eval ("e" + this.testEnemy)._y - 2) / blockSize) * stageBlocksWide);
this.tempG = roomData[roomNumber][this.uptest];
if (eval ("e" + this.testEnemy)._y < 1) {
this.tempG = 2;
}
if ((this.tempG > 1) && (this.tempG < 200)) {
eval ("e" + this.testEnemy).clip.dir = 0;
} else {
eval ("e" + this.testEnemy)._y = eval ("e" + this.testEnemy)._y - 3;
}
} else if (this.enemyDir == 0) {
this.downtest = Math.floor(eval ("e" + this.testEnemy)._x / blockSize) + (Math.floor((eval ("e" + this.testEnemy)._y + blockSize) / blockSize) * stageBlocksWide);
this.tempM = roomData[roomNumber][this.downtest];
if (eval ("e" + this.testEnemy)._y > 400) {
this.tempM = 2;
}
if ((this.tempM > 1) && (this.tempM < 200)) {
eval ("e" + this.testEnemy).clip.dir = 1;
} else {
eval ("e" + this.testEnemy)._y = eval ("e" + this.testEnemy)._y + 3;
}
}
eval ("e" + this.testEnemy).gotoAndStop(this.enemyDir + 1);
break;
case 5 :
this.enemyDir = eval ("e" + this.testEnemy).clip.dir;
if (this.enemyDir == 1) {
this.lefttest = Math.floor((eval ("e" + this.testEnemy)._x - 3) / blockSize) + (Math.floor(eval ("e" + this.testEnemy)._y / blockSize) * stageBlocksWide);
this.tempG = roomData[roomNumber][this.lefttest];
if (eval ("e" + this.testEnemy)._x < 1) {
this.tempG = 2;
}
if ((this.tempG > 1) && (this.tempG < 200)) {
eval ("e" + this.testEnemy).clip.dir = 0;
} else {
eval ("e" + this.testEnemy)._x = eval ("e" + this.testEnemy)._x - 2;
}
} else if (this.enemyDir == 0) {
this.righttest = Math.floor((eval ("e" + this.testEnemy)._x + blockSize) / blockSize) + (Math.floor(eval ("e" + this.testEnemy)._y / blockSize) * stageBlocksWide);
this.tempM = roomData[roomNumber][this.righttest];
if (eval ("e" + this.testEnemy)._x > 525) {
this.tempM = 2;
}
if ((this.tempM > 1) && (this.tempM < 200)) {
eval ("e" + this.testEnemy).clip.dir = 1;
} else {
eval ("e" + this.testEnemy)._x = eval ("e" + this.testEnemy)._x + 2;
}
}
eval ("e" + this.testEnemy).gotoAndStop(this.enemyDir + 1);
break;
}
a = roomEnemyArray[em + 3];
if ((a < 20) && (a != 3)) {
dx = (eval ("e" + this.testEnemy)._x + 37.5) - this.pX;
dy = (eval ("e" + this.testEnemy)._y + 37.5) - this.pY;
dist = Math.floor(Math.sqrt((dx * dx) + (dy * dy)));
if (dist < 55) {
if (roomEnemyArray[em + 3] != 3) {
damagePlayer();
}
}
}
}
em = em + 5;
}
}
function testBelow() {
blockBelow = false;
this.tempN_a = (Math.floor((this.pY + 36) / blockSize) * stageBlocksWide) + Math.floor(this.pX / blockSize);
this.tempN_b = (Math.floor((this.pY + 36) / blockSize) * stageBlocksWide) + Math.floor((this.pX - 10) / blockSize);
this.tempN_c = (Math.floor((this.pY + 36) / blockSize) * stageBlocksWide) + Math.floor((this.pX + 10) / blockSize);
this.pDownObject_a = roomData[roomNumber][this.tempN_a];
this.pDownObject_b = roomData[roomNumber][this.tempN_b];
this.pDownObject_c = roomData[roomNumber][this.tempN_c];
if ((((this.pDownObject_a > 1) && (this.pDownObject_a < 200)) || ((this.pDownObject_b > 1) && (this.pDownObject_b < 200))) || ((this.pDownObject_c > 1) && (this.pDownObject_c < 200))) {
blockBelow = true;
pUY = Math.floor((this.pY / blockSize) * blockSize);
pUX = Math.floor((this.pX / blockSize) * blockSize);
}
}
function playerHitStageTest() {
this.pright = false;
if (pX < 570) {
pUY = Math.floor(this.pY / blockSize) * blockSize;
pUX = Math.floor(this.pX / blockSize) * blockSize;
this.tempN_a = (Math.floor((this.pY - 20) / blockSize) * stageBlocksWide) + Math.floor((this.pX + playerWidth) / blockSize);
this.tempN_b = (Math.floor((this.pY + 20) / blockSize) * stageBlocksWide) + Math.floor((this.pX + playerWidth) / blockSize);
this.tempN_c = (Math.floor(this.pY / blockSize) * stageBlocksWide) + Math.floor((this.pX + playerWidth) / blockSize);
this.pRightObject_a = roomData[roomNumber][this.tempN_a];
this.pRightObject_b = roomData[roomNumber][this.tempN_b];
this.pRightObject_c = roomData[roomNumber][this.tempN_c];
if ((((this.pRightObject_a > 1) && (this.pRightObject_a < 200)) || ((this.pRightObject_b > 1) && (this.pRightObject_b < 200))) || ((this.pRightObject_c > 1) && (this.pRightObject_c < 200))) {
this.pright = true;
this.pX = ((pUX + 75) - playerWidth) - 1;
if (this.pXSpeed > 0) {
this.pXSpeed = 0;
}
}
}
if (this.pX > 27) {
this.tempN_a = (Math.floor((this.pY - 25) / blockSize) * stageBlocksWide) + Math.floor((this.pX - playerWidth) / blockSize);
this.tempN_b = (Math.floor((this.pY + 25) / blockSize) * stageBlocksWide) + Math.floor((this.pX - playerWidth) / blockSize);
this.tempN_c = (Math.floor(this.pY / blockSize) * stageBlocksWide) + Math.floor((this.pX - playerWidth) / blockSize);
this.pLeftObject_a = roomData[roomNumber][this.tempN_a];
this.pLeftObject_b = roomData[roomNumber][this.tempN_b];
this.pLeftObject_c = roomData[roomNumber][this.tempN_c];
if ((((this.pLeftObject_a > 1) && (this.pLeftObject_a < 200)) || ((this.pLeftObject_b > 1) && (this.pLeftObject_b < 200))) || ((this.pLeftObject_c > 1) && (this.pLeftObject_c < 200))) {
this.pleft = true;
if (this.pXSpeed < 0) {
this.pX = (pUX + playerWidth) + 2;
}
} else {
this.pleft = false;
}
}
this.tempN_a = (Math.floor((this.pY - playerHeight) / blockSize) * stageBlocksWide) + Math.floor(this.pX / blockSize);
this.tempN_b = (Math.floor((this.pY - playerHeight) / blockSize) * stageBlocksWide) + Math.floor((this.pX - playerWidth) / blockSize);
this.tempN_c = (Math.floor((this.pY - playerHeight) / blockSize) * stageBlocksWide) + Math.floor((this.pX + playerWidth) / blockSize);
this.pObj_a = roomData[roomNumber][this.tempN_a];
this.pObj_b = roomData[roomNumber][this.tempN_b];
this.pObj_c = roomData[roomNumber][this.tempN_c];
if ((((this.pObj_a > 1) && (this.pObj_a < 200)) || ((this.pObj_b > 1) && (this.pObj_b < 200))) || ((this.pObj_c > 1) && (this.pObj_c < 200))) {
this.pup = true;
if (this.pYSpeed < 0) {
this.pYSpeed = 0;
pUY = playerHeight + (Math.floor(this.pY / blockSize) * blockSize);
this.pY = pUY;
}
} else {
this.pup = false;
}
this.tempN_a = (Math.floor((this.pY + playerHeight) / blockSize) * stageBlocksWide) + Math.floor(this.pX / blockSize);
this.tempN_b = (Math.floor((this.pY + playerHeight) / blockSize) * stageBlocksWide) + Math.floor((this.pX - playerWidth) / blockSize);
this.tempN_c = (Math.floor(this.pY + (playerHeight / blockSize)) * stageBlocksWide) + Math.floor((this.pX + playerWidth) / blockSize);
this.pDownObject_a = roomData[roomNumber][this.tempN_a];
this.pDownObject_b = roomData[roomNumber][this.tempN_b];
this.pDownObject_c = roomData[roomNumber][this.tempN_c];
if ((((this.pDownObject_a > 1) && (this.pDownObject_a < 200)) || ((this.pDownObject_b > 1) && (this.pDownObject_b < 200))) || ((this.pDownObject_c > 1) && (this.pDownObject_c < 200))) {
this.pdown = true;
if (this.pYSpeed > 0) {
this.pYSpeed = 0;
pUY = 39 + (Math.floor(this.pY / blockSize) * blockSize);
this.pY = pUY;
}
} else {
this.pdown = false;
}
this.tempN = (Math.floor(this.pY / blockSize) * stageBlocksWide) + Math.floor(this.pX / blockSize);
this.pUnderObject = roomData[roomNumber][this.tempN];
switch (this.pUnderObject) {
case 213 :
damagePlayer();
break;
case 214 :
damagePlayer();
break;
case 215 :
damagePlayer();
break;
case 238 :
damagePlayer();
break;
}
}
function drawRoom() {
levelText.text = gameLevel;
setupData();
removeMovieClip(cAnim);
backGround.gotoAndStop(roomNumber + 1);
i = 0;
while (i < 100) {
removeMovieClip(eval ("e" + i));
i++;
}
i = 0;
while (i < 1000) {
removeMovieClip(eval ("c" + i));
i = i + 5;
}
i = 0;
setupData();
while (i < 50) {
a = Math.floor(i / 8);
b = i - (a * 8);
c = roomData[roomNumber][i];
if (c == 0) {
removeMovieClip(eval ("this.gameDisplayStage.s" + i));
} else {
theClip = this.gameDisplayStage.attachMovie("square", "s" + i, i);
theClip.num = i;
theClip._x = b * blockSize;
theClip._y = a * blockSize;
theClip.gotoAndStop(c);
}
i++;
}
this.left = 0;
roomEnemyArray = new Array();
num = 0;
e = 0;
while (e < enemyArray.length) {
etNum = enemyArray[e + 3];
if (enemyArray[e] == roomNumber) {
attachMovie("enemy" + enemyArray[e + 3], "e" + Math.floor(num), 500 + Math.floor(num));
eval ("e" + num)._x = enemyArray[e + 1] * blockSize;
eval ("e" + num).clip.dir = random(2);
eval ("e" + num)._y = enemyArray[e + 2] * blockSize;
tempEnemyMod = enemyArray[e + 4];
eval ("e" + num).clip._visible = false;
roomEnemyArray.push(enemyArray[e], enemyArray[e + 1], enemyArray[e + 2], enemyArray[e + 3], enemyArray[e + 4]);
num++;
}
e = e + 5;
}
roomCollectArray = new Array();
e = 0;
while (e < collectArray.length) {
if ((collectArray[e] == roomNumber) && (collectArray[e + 3] > 0)) {
attachMovie("collect", "c" + e, 600 + e);
eval ("c" + e).gotoAndStop(collectArray[e + 3]);
eval ("c" + e).clip._visible = false;
eval ("c" + e)._x = collectArray[e + 1] * blockSize;
eval ("c" + e)._y = collectArray[e + 2] * blockSize;
}
e = e + 5;
}
}
function damagePlayer() {
if (!godMode) {
if (this.score > 0) {
this.score--;
}
playSound("hurt");
this.energy = this.energy - 1;
if (this.energy < 0) {
this.energy = 0;
}
lifemeter._yscale = this.energy;
lifeHurt.gotoAndPlay(2);
if (this.energy < 1) {
this.energy = 0;
gameState = "lose life";
}
}
}
function setup() {
setupCollectables();
setupData();
gameLevel = 1;
switch (gameLevel) {
case 1 :
roomNumber = 0;
levelCollectAmount = 17;
break;
case 2 :
roomNumber = 20;
levelCollectAmount = 21;
break;
case 3 :
roomNumber = 40;
levelCollectAmount = 15;
break;
case 4 :
roomNumber = 60;
levelCollectAmount = 7;
break;
}
gemsCollected = 0;
if (godMode) {
gemsCollected = levelCollectAmount;
}
this.fall = 1;
this.pYSpeed = 0;
gravity = 2;
right = 0;
this.pXSpeed = 0;
this.pX = 220;
this.pY = 250;
this.speedModifier = 0.5;
this.score = 0;
this.energy = 100;
blockSize = 75;
stageBlocksWide = 8;
playerWidth = 20;
playerHeight = 36;
setupCollectables();
coreCollectArray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function tellPlayer(tempWords) {
messageLoc = this.getNextHighestDepth();
tm = attachMovie("tellPlayer", "tellPlayer", this);
this["message" + messageLoc] = new Object();
this["message" + messageLoc] = new mx.transitions.Tween(tm, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
tm.textBox.text = tempWords;
tm.tellPlayerBack._width = tempWords.length * 30;
tm._x = 320;
tm._y = 220;
this["message" + messageLoc].clipName = tm;
this["message" + messageLoc].onMotionFinished = function () {
this["message" + messageLoc] = new mx.transitions.Tween(tm, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 1, true);
this["message" + messageLoc].clipName = this.clipName;
this["message" + messageLoc].onMotionFinished = function () {
removeMovieClip(this.clipName);
};
};
}
goBackMsgClass.prototype = new MovieClip();
goBackMsgClass.prototype.onLoad = function () {
this._x = 320;
this._y = 240;
this.c = 0;
this.w = 60;
this._alpha = 50;
};
goBackMsgClass.prototype.onEnterFrame = function () {
this.c++;
if (this.c > this.w) {
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
removeMovieClip(this);
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
Object.registerClass("goBackMsg", goBackMsgClass);
goBackMsgTwoClass.prototype = new MovieClip();
goBackMsgTwoClass.prototype.onLoad = function () {
this._x = 320;
this._y = 240;
this.c = 0;
this.w = 30;
this._alpha = 50;
};
goBackMsgTwoClass.prototype.onEnterFrame = function () {
this.c++;
if (this.c > this.w) {
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
removeMovieClip(this);
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
Object.registerClass("goBackMsgTwo", goBackMsgTwoClass);
collectAnimClass.prototype = new MovieClip();
collectAnimClass.prototype.onLoad = function () {
this.c = 0;
this.w = 10;
this._alpha = 50;
};
collectAnimClass.prototype.onEnterFrame = function () {
this.c++;
if (this.c > this.w) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
removeMovieClip(this);
}
} else {
this._alpha = this._alpha + 10;
}
};
Object.registerClass("collectAnim", collectAnimClass);
flameClass.prototype = new MovieClip();
flameClass.prototype.onLoad = function () {
this._x = random(10) - 4;
this.sp = -0.9;
this._xscale = (this._yscale = random(30) + 70);
};
flameClass.prototype.onEnterFrame = function () {
this._y = this._y + this.sp;
this.sp = this.sp * 1.1;
if (this._y < -35) {
removeMovieClip(this);
}
};
Object.registerClass("flametrail", flameClass);
enemy3Class.prototype = new MovieClip();
enemy3Class.prototype.onLoad = function () {
this.timer = random(45);
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
enemy3Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndStop(2);
this.delay = 90;
}
}
if (this.eState) {
dx = (this._x + 25) - pX;
dy = (this._y + 25) - pY;
dist = Math.floor(Math.sqrt((dx * dx) + (dy * dy)));
if (dist < 30) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("enemy3", enemy3Class);
var myListener = new Object();
myListener.onKeyDown = function () {
if (!(Key.getCode() === 32)) {
} else {
testBelow();
if (blockBelow) {
playSound("jump");
_root.pYSpeed = -27;
}
}
};
myListener.onKeyUp = function () {
};
Key.addListener(myListener);
energyWall1Class.prototype = new MovieClip();
energyWall1Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall1Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndStop(2);
this.delay = 90;
}
}
if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall1", energyWall1Class);
energyWall2Class.prototype = new MovieClip();
energyWall2Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall2Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndPlay(2);
this.delay = 90;
}
}
if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall2", energyWall2Class);
energyWall3Class.prototype = new MovieClip();
energyWall3Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall3Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndStop(2);
this.delay = 90;
}
} else if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall3", energyWall3Class);
energyWall4Class.prototype = new MovieClip();
energyWall4Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall4Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndPlay(2);
this.delay = 90;
}
} else if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall4", energyWall4Class);
energyWall5Class.prototype = new MovieClip();
energyWall5Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall5Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndPlay(2);
this.delay = 90;
}
} else if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall5", energyWall5Class);
energyWall6Class.prototype = new MovieClip();
energyWall6Class.prototype.onLoad = function () {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
};
energyWall6Class.prototype.onEnterFrame = function () {
if (gameState == "playing") {
if (!this.eState) {
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.eState = true;
this.gotoAndPlay(2);
this.delay = 90;
}
} else if (this.eState) {
if (this.hitTest(player)) {
damagePlayer();
}
this.timer++;
if (this.timer > this.delay) {
this.timer = 0;
this.delay = 45;
this.eState = false;
this.gotoAndStop(1);
}
}
}
};
Object.registerClass("energyWall6", energyWall6Class);
this.playerSize = 25;
var duration = 32;
gameInterval = setInterval(this, "frameAction", duration);
setup();
drawRoom();
tellPlayer("Level " + gameLevel);
gameState = "playing";
Frame 25
stop();
Frame 27
_quality = "high";
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
this.playBtn.onRelease = function () {
playSound("mouseDown");
removeMovieClip(highHolder);
gotoAndPlay (14);
};
this.playBtn.onRollOver = function () {
playSound("mouseOver");
};
if (score > 1000) {
t = this.createEmptyMovieClip("highHolder", 1000);
loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder);
t._x = 50;
t._y = 320;
}
if (yourhigh != undefined) {
yourHighestText = "YOUR HIGHEST SCORE: " + yourhigh;
} else {
yourHighestText = " ";
}
storage.flush();
Frame 34
stop();
Frame 35
_quality = "high";
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
this.playBtn.onRelease = function () {
playSound("mouseDown");
removeMovieClip(highHolder);
gotoAndPlay (14);
};
this.playBtn.onRollOver = function () {
playSound("mouseOver");
};
if (score > 1000) {
t = this.createEmptyMovieClip("highHolder", 1000);
loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder);
t._x = 50;
t._y = 320;
}
if (yourhigh != undefined) {
yourHighestText = "YOUR HIGHEST SCORE: " + yourhigh;
} else {
yourHighestText = " ";
}
storage.flush();
Frame 43
stop();
Symbol 4 MovieClip [letter] Frame 1
#initclip 9
Object.registerClass("letter", letterClass);
#endinitclip
Symbol 308 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 309 MovieClip [__Packages.letterClass] Frame 0
class letterClass extends MovieClip
{
var centerY, radiusY, speed, y, _y, x, _x, angle;
function letterClass () {
super();
}
function onLoad() {
centerY = 48;
radiusY = 5;
speed = 0.05;
y = _y;
x = _x;
}
function onEnterFrame() {
if (angle != undefined) {
y = centerY + (Math.sin(angle) * radiusY);
angle = angle + speed;
_x = x;
_y = y;
}
}
}
Symbol 310 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 311 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 312 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 313 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 314 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 315 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 68 MovieClip [collectAnim] Frame 22
stop();
Symbol 173 MovieClip [square] Frame 1
stop();
stop();
Instance of Symbol 160 MovieClip in Symbol 173 MovieClip [square] Frame 230
onClipEvent (load) {
this.c = random(5);
this.n = 1;
}
onClipEvent (enterFrame) {
this.c--;
if (this.c < 1) {
this.c = random(5);
this.attachMovie("flametrail", "f" + this.n, this.n);
this.n++;
if (this.n > 20) {
this.n = 1;
}
}
}
Symbol 193 MovieClip [levelAnn] Frame 76
removeMovieClip(this);
Symbol 206 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
_root.stop();
new mx.transitions.Tween(this.head, "_rotation", mx.transitions.easing.Bounce.easeOut, 0, 180, 0.7, true);
new mx.transitions.Tween(this.head, "_y", mx.transitions.easing.Bounce.easeOut, this.head._y - 200, this.head._y, 1, true);
new mx.transitions.Tween(this.head, "_x", mx.transitions.easing.Strong.easeOut, (Math.random() * 640) - 320, 0, 1, true);
Symbol 210 MovieClip Frame 92
_root.play();
Symbol 223 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.terrypaton.com", "_blank");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.stop();
Symbol 265 MovieClip Frame 1
stop();