Frame 1
setProperty("_root.Bar", _yscale , 0);
_level0.load = "Buffering Data...";
Instance of Symbol 38 MovieClip "Size" in Frame 1
onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
StatusColor = new Color(_root.Bar);
loaded = int(_root.getBytesLoaded());
Percent = int((loaded / total) * 100);
if (percent > 20) {
_level0.load = "Warning";
StatusColor.setRGB(12129360);
}
if (percent > 40) {
_level0.load = "This game";
StatusColor.setRGB(12129360);
}
if (percent > 60) {
_level0.load = "might change";
StatusColor.setRGB(12129360);
}
if (percent > 80) {
_level0.load = "the way you think about gaming";
StatusColor.setRGB(12129360);
}
if (percent == 90) {
_level0.load = "in the future...";
StatusColor.setRGB(0);
}
_root.Percent = Percent + " %";
setProperty("_root.Bar", _yscale , Percent);
if (Percent >= 100) {
tellTarget ("_root") {
play();
};
}
}
Frame 2
stop();
Frame 244
_root.highscore.removeMovieClip();
Frame 248
stop();
Frame 249
this.stop();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
this.onEnterFrame = function () {
var _local3 = this.getBytesLoaded();
var _local2 = this.getBytesTotal();
if (_local3 >= _local2) {
delete this.onEnterFrame;
this.nextFrame();
}
};
Frame 252
this.gotoAndStop(this._currentframe - 1);
Symbol 26 MovieClip [explosion] Frame 10
removeMovieClip(this);
Symbol 29 MovieClip [bonus_score] Frame 15
removeMovieClip(this);
Symbol 31 MovieClip [bonus_time] Frame 15
removeMovieClip(this);
Symbol 465 MovieClip [__Packages.pipes] Frame 0
class pipes extends MovieClip
{
var __invisible, createEmptyMovieClip, getNextHighestDepth, watch, _level, _itemsRate, _pipeRate, pos, keyLock, info_mc, _xmouse, _ymouse, highlight_mc, _pipes, _shiftKey, sfx, pipes_mc, _objToAppear, level, _objToRotate, timer_mc, lineRemain, score, _tmpScore, _combo, _objToRemove, attachMovie, time, _objToMove, _parent, timeTotal, lineTotal, i_timer, getURL;
function pipes () {
super();
__invisible._visible = false;
init();
}
function init() {
Key.addListener(this);
createEmptyMovieClip("pipes_mc", 100);
createEmptyMovieClip("timer_mc", getNextHighestDepth());
watch("score", watchCallback);
watch("time", watchCallback);
watch("lineRemain", watchCallback);
_level = new Array();
_level.push([15, 80]);
_level.push([25, 100]);
_level.push([40, 120]);
_level.push([50, 135]);
_level.push([60, 150]);
_level.push([70, 180]);
_level.push([80, 210]);
_itemsRate = new Array();
_itemsRate.push(new Array([-1, -1], [-1, -1], [-1, -1]));
_itemsRate.push(new Array([0, 0], [1, 1], [2, 2]));
_itemsRate.push(new Array([0, 1], [2, 2], [3, 3]));
_itemsRate.push(new Array([0, 2], [2, 2], [3, 4]));
_itemsRate.push(new Array([0, 2], [2, 3], [4, 5]));
_itemsRate.push(new Array([0, 3], [2, 3], [4, 6]));
_pipeRate = new Array();
_pipeRate.push(new Array([0, 20], [21, 55], [56, 85], [86, 100], [-1, -1]));
_pipeRate.push(new Array([0, 25], [26, 55], [56, 79], [80, 100], [-1, -1]));
_pipeRate.push(new Array([0, 30], [31, 55], [56, 79], [80, 100], [-1, -1]));
_pipeRate.push(new Array([0, 30], [31, 55], [56, 79], [80, 98], [99, 100]));
_pipeRate.push(new Array([0, 30], [31, 55], [56, 79], [80, 97], [98, 100]));
pos = new Object();
keyLock = true;
info_mc.swapDepths(65535);
info_mc.gotoAndStop("start");
}
function onMouseMove() {
var _local3 = _xmouse;
var _local2 = _ymouse;
_local3 = Math.floor(_local3 / 36);
_local2 = Math.floor(_local2 / 36);
if ((((_local3 < 0) or (_local3 > 10)) or ((_local2 < 0) or (_local2 > 5))) or keyLock) {
if (highlight_mc._visible) {
highlight_mc._visible = false;
}
} else {
if (!highlight_mc._visible) {
highlight_mc._visible = true;
}
highlight_mc._x = _local3 * 36;
highlight_mc._y = _local2 * 36;
pos.x = _local3;
pos.y = _local2;
}
}
function onMouseDown() {
if (!keyLock) {
if (highlight_mc._visible) {
var _local2 = _pipes[(_pipes.length - pos.y) - 1][pos.x];
rotatePipe(_local2);
}
} else {
sfxPlay("error");
}
}
function onKeyDown() {
var _local2 = Key.getCode();
if (_local2 == 16) {
_shiftKey = true;
}
}
function onKeyUp() {
var _local2 = Key.getCode();
if (_local2 == 16) {
_shiftKey = false;
}
}
function sfxPlay(id) {
if (sfx == undefined) {
sfx = new Object();
}
if (sfx[id] == undefined) {
sfx[id] = new Sound(this);
sfx[id].attachSound(id);
}
sfx[id].start();
}
function initPipes() {
for (var _local5 in pipes_mc) {
pipes_mc[_local5].removeMovieClip();
}
_pipes = new Array();
var _local4 = 0;
while (_local4 < 6) {
_pipes.push(new Array());
_local4++;
}
_objToAppear = fillPipe();
var _local3 = 0;
while (_local3 < 11) {
var _local2 = _pipes[random(6)][_local3];
_local2.flag = 2;
_local2.hole = [true, true, false, false];
setPipeMovieClip(_local2, _local2.hole, _local2.flag);
_local3++;
}
updatePipes();
}
function fillPipe() {
var _local5 = new Array();
var _local4 = 0;
while (_local4 < _pipes.length) {
var _local3 = _pipes[_local4].length;
while (_local3 < 11) {
var _local2 = newPipe();
_local5.push(_local2);
_local2.mc._y = (((_pipes.length - _local4) - 1) * 36) + 18;
_local2.mc._x = (_local3 * 36) + 18;
_local2.x = _local3;
_local2.y = _local4;
_pipes[_local4].push(_local2);
_local3++;
}
_local4++;
}
return(_local5);
}
function newPipe() {
var _local4 = _pipeRate[Math.min(level, _pipeRate.length) - 1];
var _local5 = new Object();
var _local6 = random(101);
var _local2 = 0;
var _local3 = new Array(4);
if ((_local6 >= _local4[0][0]) and (_local6 <= _local4[0][1])) {
_local2 = 2;
if (random(2) == 0) {
_local3 = [true, false, true, false];
} else {
_local3 = [false, true, false, true];
}
} else if ((_local6 >= _local4[1][0]) and (_local6 <= _local4[1][1])) {
_local2 = random(4);
if (_local2 == 0) {
_local3 = [true, true, false, false];
} else if (_local2 == 1) {
_local3 = [false, true, true, false];
} else if (_local2 == 2) {
_local3 = [false, false, true, true];
} else if (_local2 == 3) {
_local3 = [true, false, false, true];
}
_local2 = 2;
} else if ((_local6 >= _local4[2][0]) and (_local6 <= _local4[2][1])) {
_local2 = random(4);
if (_local2 == 0) {
_local3 = [true, true, true, false];
} else if (_local2 == 1) {
_local3 = [false, true, true, true];
} else if (_local2 == 2) {
_local3 = [true, false, true, true];
} else if (_local2 == 3) {
_local3 = [true, true, false, true];
}
_local2 = 3;
} else if ((_local6 >= _local4[3][0]) and (_local6 <= _local4[3][1])) {
_local2 = 4;
_local3 = [true, true, true, true];
} else if ((_local6 >= _local4[4][0]) and (_local6 <= _local4[4][1])) {
_local2 = 1;
_local3 = [false, false, false, false];
_local3[random(4)] = true;
} else {
_local2 = 4;
_local3 = [true, true, true, true];
}
_local5.hole = _local3;
_local5.flag = _local2;
var _local7;
_local4 = _itemsRate[Math.min(level, _pipeRate.length) - 1];
_local6 = random(101);
if ((_local6 >= _local4[0][0]) and (_local6 <= _local4[0][1])) {
_local7 = "bonus";
} else if ((_local6 >= _local4[1][0]) and (_local6 <= _local4[1][1])) {
_local7 = "time";
} else if ((_local6 >= _local4[2][0]) and (_local6 <= _local4[2][1])) {
_local7 = "bomb";
} else {
_local7 = undefined;
}
var _local8 = pipes_mc.getNextHighestDepth();
var _local9 = pipes_mc.attachMovie("pipe", ("pipe" + _local8) + getTimer(), _local8);
_local5.mc = _local9;
_local5.item = _local7;
_local9._alpha = 0;
setPipeMovieClip(_local5, _local3, _local2);
return(_local5);
}
function setPipeMovieClip(target, hole, flag) {
switch (flag) {
case 1 :
target.type = "o";
if (hole[0]) {
target.rotation = 0;
} else if (hole[1]) {
target.rotation = 90;
} else if (hole[2]) {
target.rotation = 180;
} else if (hole[3]) {
target.rotation = -90;
}
break;
case 2 :
if (hole[0] and hole[2]) {
target.type = "I";
target.rotation = 0;
} else if (hole[1] and hole[3]) {
target.type = "I";
target.rotation = 90;
}
if (hole[0] and hole[1]) {
target.type = "J";
target.rotation = 90;
} else if (hole[1] and hole[2]) {
target.type = "J";
target.rotation = 180;
} else if (hole[2] and hole[3]) {
target.type = "J";
target.rotation = -90;
} else if (hole[0] and hole[3]) {
target.type = "J";
target.rotation = 0;
}
break;
case 3 :
if ((hole[0] and hole[1]) and hole[2]) {
target.type = "T";
target.rotation = 180;
} else if ((hole[1] and hole[2]) and hole[3]) {
target.type = "T";
target.rotation = 270;
} else if ((hole[2] and hole[3]) and hole[0]) {
target.type = "T";
target.rotation = 0;
} else if ((hole[0] and hole[1]) and hole[3]) {
target.type = "T";
target.rotation = 90;
}
break;
case 4 :
target.type = "+";
target.rotation = 0;
}
if (target.item != undefined) {
var _local3 = target.mc.attachMovie("item", "item", 100);
_local3.gotoAndStop(target.item);
}
target.mc.gotoAndStop("gray_" + target.type);
target.mc._rotation = target.rotation;
target.mc.item._rotation = -target.rotation;
}
function rotatePipe(target) {
keyLock = true;
sfxPlay("rotate");
if (_shiftKey) {
var _local3 = target.hole.pop();
target.hole.unshift(_local3);
target.rotation = target.rotation + 90;
target.toR = 90;
_objToRotate = target;
} else {
var _local3 = target.hole.shift();
target.hole.push(_local3);
target.rotation = target.rotation - 90;
target.toR = -90;
_objToRotate = target;
}
target.depth = target.mc.getDepth();
target.mc.swapDepths(pipes_mc.getNextHighestDepth());
target.mc._xscale = (target.mc._yscale = 150);
timer_mc.onEnterFrame = function () {
this._parent.rotatePipeAni();
};
}
function rotatePipeAni() {
if (_objToRotate.toR < 0) {
_objToRotate.mc._rotation = _objToRotate.mc._rotation - 30;
_objToRotate.toR = _objToRotate.toR + 30;
} else if (_objToRotate.toR > 0) {
_objToRotate.mc._rotation = _objToRotate.mc._rotation + 30;
_objToRotate.toR = _objToRotate.toR - 30;
}
_objToRotate.mc.item._rotation = -_objToRotate.mc._rotation;
if (_objToRotate.toR == 0) {
_objToRotate.mc.swapDepths(_objToRotate.depth);
_objToRotate.mc._xscale = (_objToRotate.mc._yscale = 100);
_objToRotate = undefined;
delete timer_mc.onEnterFrame;
checkPipes();
}
}
function checkPipes() {
keyLock = true;
var _local3 = 0;
while (_local3 < _pipes.length) {
var _local2 = 0;
while (_local2 < _pipes[_local3].length) {
var _local5 = _pipes[_local3][_local2];
_local5.link = false;
_local5.linked = false;
_local5.linktype = undefined;
_local5.checkUp = (_local5.checkRight = (_local5.checkDown = (_local5.checkLeft = false)));
_local5.connect = new Array(4);
_local5.mc.gotoAndStop("gray_" + _local5.type);
_local2++;
}
_local3++;
}
var _local4 = 0;
while (_local4 < _pipes[0].length) {
var _local5 = _pipes[0][_local4];
if (_local5.hole[2]) {
_local5.link = true;
checkPipe(_local5);
}
_local4++;
}
_local4 = 0;
while (_local4 < _pipes[0].length) {
var _local5 = _pipes[0][_local4];
if (_local5.hole[2]) {
linkPipes(_local5, "yellow");
}
_local4++;
}
_local4 = 0;
while (_local4 < _pipes[0].length) {
var _local5 = _pipes[_pipes.length - 1][_local4];
if (_local5.hole[0]) {
_local5.link = true;
checkPipe(_local5);
}
_local4++;
}
_local4 = 0;
while (_local4 < _pipes[0].length) {
var _local5 = _pipes[_pipes.length - 1][_local4];
if (_local5.hole[0]) {
linkPipes(_local5, "blue");
}
_local4++;
}
var _local6 = removePipes();
if (_local6[0] > 0) {
lineRemain = lineRemain - _local6[0];
sfxPlay("sfx_chain");
score = score + (_local6[0] * _local6[1]);
_tmpScore = _tmpScore + (_local6[0] * _local6[1]);
if (_local6[0] > 1) {
showChain(_local6[0]);
}
_combo++;
_combo = Math.min(6, _combo);
if (_combo > 1) {
sfxPlay("sfx_combo");
showCombo(_combo);
score = score + ((_combo - 1) * 100);
_tmpScore = _tmpScore + ((_combo - 1) * 100);
}
updatePipes();
} else {
_tmpScore = 0;
_combo = 0;
hideCombo();
if (lineRemain <= 0) {
levelUp();
} else {
keyLock = false;
}
}
}
function checkPipe(target) {
if (target.hole[2]) {
checkDown(target);
}
if (target.hole[3]) {
checkLeft(target);
}
if (target.hole[0]) {
checkUp(target);
}
if (target.hole[1]) {
checkRight(target);
}
}
function checkUp(target) {
if (target.checkUp) {
return(undefined);
}
target.checkUp = true;
var _local3 = _pipes[target.y + 1][target.x];
if (_local3.hole[2]) {
target.connect[0] = _local3;
checkPipe(_local3);
}
}
function checkRight(target) {
if (target.checkRight) {
return(undefined);
}
target.checkRight = true;
var _local3 = _pipes[target.y][target.x + 1];
if (_local3.hole[3]) {
target.connect[1] = _local3;
checkPipe(_local3);
}
}
function checkDown(target) {
if (target.checkDown) {
return(undefined);
}
target.checkDown = true;
var _local3 = _pipes[target.y - 1][target.x];
if (_local3.hole[0]) {
target.connect[2] = _local3;
checkPipe(_local3);
}
}
function checkLeft(target) {
if (target.checkLeft) {
return(undefined);
}
target.checkLeft = true;
var _local3 = _pipes[target.y][target.x - 1];
if (_local3.hole[1]) {
target.connect[3] = _local3;
checkPipe(_local3);
}
}
function linkPipes(target, flag) {
if (target.linked) {
return(undefined);
}
target.linked = true;
target.linktype = flag;
if (target.link) {
target.mc.gotoAndStop((flag + "_") + target.type);
var _local2 = 0;
while (_local2 < target.connect.length) {
target.connect[_local2].link = true;
linkPipes(target.connect[_local2], flag);
_local2++;
}
}
}
function removePipes() {
_objToRemove = new Array();
var _local7 = 0;
var _local5 = 0;
while (_local5 < _pipes[_pipes.length - 1].length) {
var _local2 = _pipes[_pipes.length - 1][_local5];
if (_local2.hole[0]) {
if (_local2.linktype == "yellow") {
removePipe(_local2);
_local7++;
}
}
_local5++;
}
var _local4 = 0;
var _local6 = 0;
var _local3 = 0;
while (_local3 < _pipes.length) {
_local4 = 0;
while (_local4 < _pipes[_local3].length) {
var _local2 = _pipes[_local3][_local4];
if (_local2.remove or _local2.isbombed) {
_objToRemove.push(_local2);
_pipes[_local3].splice(_local4, 1);
_local6++;
} else {
_local4++;
}
}
_local3++;
}
return([_local7, _local6]);
}
function removePipe(target) {
if (target.remove) {
return(undefined);
}
target.remove = true;
if (target.link) {
var _local3 = 0;
while (_local3 < target.connect.length) {
removePipe(target.connect[_local3]);
_local3++;
}
}
if (target.item != undefined) {
switch (target.item) {
case "bonus" :
_tmpScore = _tmpScore + 100;
score = score + 100;
var _local6 = attachMovie("bonus_score", "b" + getNextHighestDepth(), getNextHighestDepth());
_local6._x = target.mc._x;
_local6._y = target.mc._y;
sfxPlay("sfx_bonus_score");
break;
case "time" :
time = time + 10;
_local6 = attachMovie("bonus_time", "t" + getNextHighestDepth(), getNextHighestDepth());
_local6._x = target.mc._x;
_local6._y = target.mc._y;
sfxPlay("sfx_bonus_time");
break;
case "bomb" :
var _local4 = new Array();
_local4.push(_pipes[target.y][target.x + 1]);
_local4.push(_pipes[target.y][target.x - 1]);
_local4.push(_pipes[target.y + 1][target.x]);
_local4.push(_pipes[target.y - 1][target.x]);
_local4.push(_pipes[target.y][target.x + 2]);
_local4.push(_pipes[target.y][target.x - 2]);
_local4.push(_pipes[target.y + 2][target.x]);
_local4.push(_pipes[target.y - 2][target.x]);
_local4.push(_pipes[target.y + 1][target.x + 1]);
_local4.push(_pipes[target.y + 1][target.x - 1]);
_local4.push(_pipes[target.y - 1][target.x + 1]);
_local4.push(_pipes[target.y - 1][target.x - 1]);
var _local3 = 0;
while (_local3 < _local4.length) {
var _local5 = _local4[_local3];
if (!_local5.isbombed) {
_local5.isbombed = true;
}
_local3++;
}
_local6 = attachMovie("explosion", "e" + getNextHighestDepth(), getNextHighestDepth());
_local6._x = target.mc._x;
_local6._y = target.mc._y;
sfxPlay("sfx_bonus_bomb");
}
}
}
function updatePipes() {
if (_objToRemove.length > 0) {
timer_mc.onEnterFrame = function () {
this._parent.clearPipes();
};
return(undefined);
}
if (_objToMove.length > 0) {
timer_mc.onEnterFrame = function () {
this._parent.movePipes();
};
return(undefined);
}
if (_objToAppear.length > 0) {
timer_mc.onEnterFrame = function () {
this._parent.appearPipes();
};
return(undefined);
}
checkPipes();
}
function clearPipes() {
var _local2 = 0;
while (_local2 < _objToRemove.length) {
var _local3 = _objToRemove[_local2];
if (_local3.mc._xscale > 0) {
_local3.mc._xscale = _local3.mc._xscale - 10;
_local3.mc._yscale = _local3.mc._yscale - 10;
if (_local3.isbombed) {
_local3.mc._rotation = _local3.mc._rotation + 45;
}
_local2++;
} else {
_local3.mc.removeMovieClip();
_objToRemove.splice(_local2, 1);
}
}
if (_objToRemove.length <= 0) {
delete timer_mc.onEnterFrame;
_objToMove = new Array();
var _local4 = 0;
while (_local4 < _pipes.length) {
_local2 = 0;
while (_local2 < _pipes[_local4].length) {
var _local3 = _pipes[_local4][_local2];
_local3.x = _local2;
_local3.y = _local4;
_objToMove.push(_local3);
_local2++;
}
_local4++;
}
updatePipes();
}
}
function movePipes() {
var _local3 = 0;
while (_local3 < _objToMove.length) {
var _local2 = _objToMove[_local3];
var _local4 = (_local2.x * 36) + 18;
if (_local2.moveS != undefined) {
_local2.moveS = _local2.moveS * 1.25;
} else {
_local2.moveS = 5;
}
if (_local2.mc._x > _local4) {
_local2.mc._x = Math.max(_local4, _local2.mc._x - _local2.moveS);
_local3++;
} else {
delete _local2.moveS;
_objToMove.splice(_local3, 1);
}
}
if (_objToMove.length <= 0) {
delete timer_mc.onEnterFrame;
_objToAppear = fillPipe();
updatePipes();
}
}
function appearPipes() {
var _local3 = 0;
while (_local3 < _objToAppear.length) {
var _local2 = _objToAppear[_local3];
if (_local2.mc._alpha < 100) {
_local2.mc._alpha = Math.min(100, _local2.mc._alpha + 10);
_local3++;
} else {
_objToAppear.splice(_local3, 1);
}
}
if (_objToAppear.length <= 0) {
delete timer_mc.onEnterFrame;
checkPipes();
}
}
function showChain(n) {
var _local2 = _parent.attachMovie("superb", "superb", 100);
_local2.gotoAndStop(Math.min(10, n - 1));
_local2._x = 280;
_local2._y = 240;
_local2.onEnterFrame = function () {
if (this._xscale < 120) {
this._xscale++;
this._yscale = this._xscale;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
(this.removeMovieClip());// not popped
}
};
}
function showCombo(n) {
var _local2 = _parent.attachMovie("combo", "combo", 90);
_local2.gotoAndStop(Math.min(6, n - 1));
_local2._x = 280;
_local2._y = 380;
_local2._xscale = (_local2._yscale = 150);
_local2.onEnterFrame = function () {
if (this._xscale > 100) {
this._xscale = this._xscale - 5;
this._yscale = this._xscale;
} else {
delete this.onEnterFrame;
}
};
}
function hideCombo() {
var _local2 = _parent.combo;
_local2.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
(this.removeMovieClip());// not popped
}
};
}
function watchCallback(prop, oldVal, newVal, userData) {
switch (prop) {
case "score" :
_parent.info_mc.score_txt.text = newVal;
break;
case "time" :
var _local4 = Math.min(180, (newVal / timeTotal) * 180);
_parent.info_mc.time_mc._rotation = _local4;
if (newVal <= 0) {
gameOver();
} else if (newVal < 10) {
sfxPlay("sfx_alarm");
}
break;
case "lineRemain" :
_parent.tank_mc.bar_mc._yscale = ((lineTotal - newVal) / lineTotal) * 100;
if (_parent.tank_mc.bar_mc._yscale >= 15) {
_root.druppels.gotoAndPlay("stap01");
}
if (_parent.tank_mc.bar_mc._yscale >= 30) {
_root.druppels.gotoAndPlay("stap02");
}
if (_parent.tank_mc.bar_mc._yscale >= 45) {
_root.druppels.gotoAndPlay("stap03");
}
if (_parent.tank_mc.bar_mc._yscale >= 60) {
_root.druppels.gotoAndPlay("stap04");
}
if (_parent.tank_mc.bar_mc._yscale >= 75) {
_root.druppels.gotoAndPlay("stap05");
}
if (_parent.tank_mc.bar_mc._yscale <= 15) {
_root.druppels.gotoAndPlay("stap00");
}
_parent.tank_mc.f_mc.gotoAndPlay(1);
}
return(newVal);
}
function startGame() {
info_mc._visible = false;
var _local2 = _level[0];
score = new Number(0);
_tmpScore = Number(0);
time = new Number(_local2[1]);
timeTotal = new Number(_local2[1]);
level = new Number(1);
lineTotal = new Number(_local2[0]);
lineRemain = new Number(_local2[0]);
initPipes();
var _local3 = function (o) {
o.time--;
};
i_timer = setInterval(_local3, 1000, this);
}
function levelUp() {
clearInterval(i_timer);
_parent.car_mc.nextFrame();
delete timer_mc.onEnterFrame;
keyLock = true;
sfxPlay("sfx_car_pass");
level = level + 1;
_parent.info_mc.level_txt.text = level;
var _local2 = _level[Math.min(level, _level.length) - 1];
time = new Number(_local2[1]);
timeTotal = new Number(_local2[1]);
lineTotal = new Number(_local2[0]);
lineRemain = new Number(_local2[0]);
info_mc.gotoAndStop("levelup");
info_mc._visible = true;
}
function nextLevel() {
info_mc._visible = false;
initPipes();
var _local2 = function (o) {
o.time--;
};
i_timer = setInterval(_local2, 1000, this);
}
function gameOver() {
clearInterval(i_timer);
delete timer_mc.onEnterFrame;
keyLock = true;
info_mc.score = score;
info_mc.gotoAndPlay("gameover");
info_mc._visible = true;
}
function submit() {
(getURL((((((((_root.URL + "?MID=") + _root.MID) + "&GID=") + _root.GID) + "&level=") + level) + "&score=") + score));// not popped
}
}
Symbol 56 Button
on (press) {
getURL ("http://www.totallygame.com", "_blank");
}
Symbol 67 Button
on (press) {
getURL ("http://www.totallygame.com", "_blank");
}
Symbol 74 Button
on (press) {
stopAllSounds();
gotoAndStop (249);
}
Symbol 79 Button
on (press) {
this.gotoAndPlay("begininstruct");
}
Symbol 85 Button
on (press) {
this.gotoAndStop("instruct");
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 16
stop();
Symbol 348 MovieClip Frame 1
this.stop();
Symbol 348 MovieClip Frame 2
play();
Symbol 348 MovieClip Frame 146
this.stop();
Symbol 348 MovieClip Frame 147
play();
Symbol 361 MovieClip Frame 2
stop();
Symbol 361 MovieClip Frame 10
stop();
Symbol 361 MovieClip Frame 18
stop();
Symbol 361 MovieClip Frame 26
stop();
Symbol 361 MovieClip Frame 34
stop();
Symbol 361 MovieClip Frame 42
stop();
Symbol 416 Button
on (press) {
this._parent._parent.nextFrame();
this._parent.startGame();
}
Symbol 424 Button
on (press) {
stopAllSounds();
_root.gotoAndPlay("basicneeds");
}
Symbol 458 MovieClip Frame 1
System.security.allowDomain("http://www.totallygame.com/");
_global.encrPath = this.createEmptyMovieClip("HighSub", this.getNextHighestDepth());
encrPath._x = 0;
encrPath._y = 0;
HighSub.loadMovie("http://www.totallygame.com/flash/hs.swf");
this.HSvalidation = true;
stop();
Symbol 458 MovieClip Frame 2
encrPath.gameScore = _parent.score;
encrPath.ecryptString = "YXpo269";
stop();
Symbol 462 Button
on (press) {
this._parent.nextLevel();
}
Symbol 463 MovieClip Frame 1
_root.highscore.removeMovieClip();
this.stop();
Symbol 463 MovieClip Frame 2
_root.score = this.score;
Symbol 463 MovieClip Frame 43
this.stop();
Symbol 464 MovieClip [board] Frame 1
#initclip 2
Object.registerClass("board", pipes);
#endinitclip