Frame 1
stop();
stop();
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
_root.onEnterFrame = function () {
var _local2 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local1 = Math.floor((_local2 / _local3) * 100);
bar_mc._xscale = _local1;
progress_txt.text = _local1 + "%";
if (been != "true") {
if (_local1 >= 100) {
been = "true";
trace("loaded");
play();
}
}
};
Frame 2
_root.musics = new Sound(sndMC);
_root.musics.attachSound("frantic_short.mp3");
trace("here");
Frame 3
function NewGame() {
var _local1 = _root;
_local1.stars.text = "";
_local1.l1move = true;
_local1.makeWall("l1");
_local1.t1move = true;
_local1.makeWall("t1");
_local1.r1move = true;
_local1.makeWall("r1");
_local1.b1move = true;
_local1.makeWall("b1");
_local1.letGo = setInterval(_local1.randomGo, 3000);
_local1.scoreTimer = setInterval(_local1.scoreTime, 1000);
_local1.showStar();
_local1.gotStars = 0;
_local1.score = 0;
}
function makeWall(wall) {
i = 0;
totalholes = 0;
while (i < 19) {
trand = random(6);
if (trand == 1) {
totalholes = totalholes + 1;
}
eval ((("_root." + wall) + ".b") + i).gotoAndStop(trand);
i = i + 1;
}
if (totalholes < 2) {
trace("wall");
_root.makeWall(wall);
}
}
function randomGo() {
var _local1 = _root;
trace("go");
if (_local1.l1move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.l1move = true;
_local1.makeWall("l1");
}
} else if (_local1.l2move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.l2move = true;
_local1.makeWall("l2");
}
} else if (_local1.l3move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.l3move = true;
_local1.makeWall("l3");
}
}
if (_local1.t1move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.t1move = true;
_local1.makeWall("t1");
}
} else if (_local1.t2move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.t2move = true;
_local1.makeWall("t2");
}
} else if (_local1.t3move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.t3move = true;
_local1.makeWall("t3");
}
}
if (_local1.r1move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.r1move = true;
_local1.makeWall("r1");
}
} else if (_local1.r2move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.r2move = true;
_local1.makeWall("r2");
}
} else if (_local1.r3move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.r3move = true;
_local1.makeWall("r3");
}
}
if (_local1.b1move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.b1move = true;
_local1.makeWall("b1");
}
} else if (_local1.b2move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.b2move = true;
_local1.makeWall("b2");
}
} else if (_local1.b3move != true) {
maybeGo = random(3);
if (maybeGo == 1) {
_local1.b3move = true;
_local1.makeWall("b3");
}
}
}
function restartGame() {
var _local1 = _root;
clearInterval(_local1.letGo);
clearInterval(_local1.scoreTimer);
clearInterval(_local1.useStar);
_local1.ship.gotoAndStop(1);
_local1.b1move = false;
_local1.b2move = false;
_local1.b3move = false;
_local1.t1move = false;
_local1.t2move = false;
_local1.t3move = false;
_local1.l1move = false;
_local1.l2move = false;
_local1.l3move = false;
_local1.r1move = false;
_local1.r2move = false;
_local1.r3move = false;
_local1.b1._y = 400;
_local1.b2._y = 400;
_local1.b3._y = 400;
_local1.r1._x = 550;
_local1.r2._x = 550;
_local1.r3._x = 550;
_local1.t1._y = -30;
_local1.t2._y = -30;
_local1.t3._y = -30;
_local1.l1._x = -26.6;
_local1.l2._x = -26.6;
_local1.l3._x = -26.6;
}
function scoreTime() {
var _local1 = _root;
_local1.score = int(_local1.score) + 1;
_local1.scoretext.text = _local1.score;
_local1.speed = _local1.speed + 0.02;
}
function showStar() {
var _local1 = _root;
_local1.star._x = random(400) + 10;
_local1.star._y = random(300) + 10;
_local1.star.gotoAndStop(1);
_local1.star._visible = true;
}
_root.star._visible = false;
_root.musics.start(0, 9999);
stop();
_root.speed = 1.5;
movieClip.prototype.hitCheck = function (clip, startpoint, endpoint) {
var _local3 = clip;
var _local1 = new Object();
var _local2 = 0;
if (hitTest(_local3)) {
i = startpoint;
while (i < endpoint) {
_local1.x = 0;
_local1.y = 0;
this["hit" + i].localToGlobal(_local1);
if (_local3.hitTest(_local1.x + velx, _local1.y + vely, 1)) {
_local2++;
}
i++;
}
}
return(_local2);
};
Instance of Symbol 43 MovieClip "ship" in Frame 3
onClipEvent (mouseMove) {
if (_root.ship._currentframe == 2) {
_root.curX = _xmouse;
_root.curY = _ymouse;
_root.preX = int(_root.preX) + 10;
_root.preY = int(_root.preY) + 10;
if (_root.curX > _root.preX) {
_root.ship.sparkle.gotoAndPlay(2);
trace("yep");
}
if (_root.curY > _root.preY) {
_root.ship.sparkle.gotoAndPlay(2);
trace("yep");
}
_root.preX = _xmouse;
_root.preY = _ymouse;
}
if ((_root.ship.hitCheck(_root.l1, 0, 1) || (_root.ship.hitCheck(_root.l2, 0, 1))) || (_root.ship.hitCheck(_root.l3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.r1, 0, 1) || (_root.ship.hitCheck(_root.r2, 0, 1))) || (_root.ship.hitCheck(_root.r3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.b1, 0, 1) || (_root.ship.hitCheck(_root.b2, 0, 1))) || (_root.ship.hitCheck(_root.b3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.t1, 0, 1) || (_root.ship.hitCheck(_root.t2, 0, 1))) || (_root.ship.hitCheck(_root.t3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 54 MovieClip "brain" in Frame 3
onClipEvent (enterFrame) {
if (_root.ship._currentframe == 2) {
if (_root.l1move == true) {
_root.l1._x = _root.l1._x + _root.speed;
}
if (_root.l2move == true) {
_root.l2._x = _root.l2._x + _root.speed;
}
if (_root.l3move == true) {
_root.l3._x = _root.l3._x + _root.speed;
}
if (_root.r1move == true) {
_root.r1._x = _root.r1._x - _root.speed;
}
if (_root.r2move == true) {
_root.r2._x = _root.r2._x - _root.speed;
}
if (_root.r3move == true) {
_root.r3._x = _root.r3._x - _root.speed;
}
if (_root.t1move == true) {
_root.t1._y = _root.t1._y + _root.speed;
}
if (_root.t2move == true) {
_root.t2._y = _root.t2._y + _root.speed;
}
if (_root.t3move == true) {
_root.t3._y = _root.t3._y + _root.speed;
}
if (_root.b1move == true) {
_root.b1._y = _root.b1._y - _root.speed;
}
if (_root.b2move == true) {
_root.b2._y = _root.b2._y - _root.speed;
}
if (_root.b3move == true) {
_root.b3._y = _root.b3._y - _root.speed;
}
if (_root.l1._x > 550) {
_root.l1._x = -26.6;
_root.l1move = false;
}
if (_root.l2._x > 550) {
_root.l2._x = -26.6;
_root.l2move = false;
}
if (_root.l3._x > 550) {
_root.l3._x = -26.6;
_root.l3move = false;
}
if (_root.t1._y > 400) {
_root.t1._y = -30;
_root.t1move = false;
}
if (_root.t2._y > 400) {
_root.t2._y = -30;
_root.t2move = false;
}
if (_root.t3._y > 400) {
_root.t3._y = -30;
_root.t3move = false;
}
if (_root.r1._x < -30) {
_root.r1._x = 550;
_root.r1move = false;
}
if (_root.r2._x < -30) {
_root.r2._x = 550;
_root.r2move = false;
}
if (_root.r3._x < -30) {
_root.r3._x = 550;
_root.r3move = false;
}
if (_root.b1._y < -30) {
_root.b1._y = 400;
_root.b1move = false;
}
if (_root.b2._y < -30) {
_root.b2._y = 400;
_root.b2move = false;
}
if (_root.b3._y < -30) {
_root.b3._y = 400;
_root.b3move = false;
}
if (Key.isDown(2)) {
trace("cheating!");
_root.restartGame();
_root.gotoAndStop("cheat");
}
if (_root.ship.hitCheck(_root.bighit, 0, 1)) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.l1, 0, 1) || (_root.ship.hitCheck(_root.l2, 0, 1))) || (_root.ship.hitCheck(_root.l3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.r1, 0, 1) || (_root.ship.hitCheck(_root.r2, 0, 1))) || (_root.ship.hitCheck(_root.r3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.b1, 0, 1) || (_root.ship.hitCheck(_root.b2, 0, 1))) || (_root.ship.hitCheck(_root.b3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if ((_root.ship.hitCheck(_root.t1, 0, 1) || (_root.ship.hitCheck(_root.t2, 0, 1))) || (_root.ship.hitCheck(_root.t3, 0, 1))) {
_root.restartGame();
_root.gotoAndStop("gameOver");
}
if (_root.ship.hits.hitTest(_root.star.starHit)) {
trace("hitting!");
_root.star.gotoAndPlay(8);
_root.gotStars = _root.gotStars + 1;
_root.stars.text = _root.gotStars;
}
}
}
Frame 4
stop();
Mouse.show();
Frame 5
function CheckScoreBoard(playername, playerscore, gamename) {
var _local1 = playerscore;
var _local2 = _root;
_local1 = _local1 + "";
LookUp = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
at = random(17) + 1;
bt = random(17) + 1;
ct = random(17) + 1;
att = at;
btt = bt;
ctt = ct;
et = 1;
Qt = "";
x = 0;
while (x < _local1.length) {
ft = int(_local1.charAt(x));
if (et == 1) {
Qt = Qt + LookUp[ft + at];
}
if (et == 2) {
Qt = Qt + LookUp[ft + bt];
}
if (et == 3) {
Qt = Qt + LookUp[ft + ct];
}
et = et + 1;
if (et > 3) {
et = 1;
}
x++;
}
udate = new Date();
tdate = udate.getSeconds();
if (tdate <= 9) {
tdate = "0" + tdate;
}
ddate = udate.getMinutes();
if (ddate <= 9) {
ddate = "0" + ddate;
}
tdate = (tdate + "") + ddate;
x = 0;
TT = "";
x = 0;
while (x < tdate.length) {
ft = int(tdate.charAt(x));
TT = TT + LookUp[ft + at];
x++;
}
at = LookUp[at];
bt = LookUp[bt];
ct = LookUp[ct];
tk = (at + bt) + ct;
sd = (TT + tk) + Qt;
mergedata = sd;
tests = _local1.charAt(0);
_local2.key = sd;
_local2.playername = playername;
_local2.playerscore = _local1;
_local2.gamename = gamename;
getURL ("http://www.itsall3.com/ViewBoard.php", "_self", "POST");
_local2.gotoAndStop("theGame");
}
stop();
Mouse.show();
_root.showscore.text = int((_root.gotStars * _root.score) / 2);
if (_root.sb != "") {
_root.scoreboardshow.gotoAndStop(2);
}
stop();
stop();
_root.scoreboardshow.inputbox.firstclick = true;
_root.scoreboardshow.inputbox.onSetFocus = function () {
var _local1 = this;
if (_local1.firstclick) {
_local1.text = "";
_local1.firstclick = false;
}
};
Symbol 2 MovieClip [sparkle] Frame 1
stop();
Symbol 25 Button
on (release) {
getURL ("http://www.spindletunes.com", 1);
}
Symbol 30 Button
on (release) {
getURL ("http://www.itsall3.com");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 6
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 7
stop();
_root.star._visible = false;
_root.star.gotoAndStop(1);
_root.showStar();
Symbol 35 MovieClip Frame 12
stop();
_root.star._visible = false;
_root.star.gotoAndStop(1);
_root.showStar();
Symbol 38 Button
on (release) {
_root.info.play();
gotoAndStop (2);
startDrag (_root.ship, true);
Mouse.hide();
_root.NewGame();
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 65 Button
on (release) {
_root.gotoAndStop("theGame");
}
Symbol 75 Button
on (release) {
_root.gotoAndStop("theGame");
}
Symbol 81 Button
on (release) {
_root.CheckScoreBoard(nametext, _root.showscore.text, "lines");
}
Symbol 83 MovieClip Frame 1
stop();