Frame 1
stop();
Stage.showMenu = false;
Stage.scaleMode = "noscale";
cursorOuter._visible = false;
cursor._visible = false;
var PATH = "http://208.109.177.63/~blitzgam/blitz_HighScores/";
System.security.allowDomain("www.robotjamgames.com");
var GAMENAME = "cubix";
so = SharedObject.getLocal("cubix");
if (so.data.bestScore == undefined) {
so.data.bestScore = 0;
}
Instance of Symbol 196 MovieClip "cursorOuter" in Frame 1
onClipEvent (load) {
Ax = 0;
Ay = 0;
Vx = 0;
Vy = 0;
F = 0.5;
R = 0.5;
}
onClipEvent (enterFrame) {
Ax = (F * (_root._xmouse - this._x)) - (Vx * R);
Ay = (F * (_root._ymouse - this._y)) - (Vy * R);
Vx = Vx + Ax;
Vy = Vy + Ay;
this._x = this._x + Vx;
this._y = this._y + Vy;
}
Frame 3
currentDomain = _root._url.split("/");
currentDomain = currentDomain[2];
domainVars = _root._url.split("?");
randAd = Math.round(Math.random() * 100);
if (randAd <= 50) {
trace("robotjam");
MochiAd.showPreloaderAd({id:"e6e0e4b31cf95d0a", res:"600x400"});
} else {
trace("blitzgamer");
MochiAd.showPreloaderAd({id:"ff2f0be2f37c9c0f", res:"600x400"});
}
Frame 4
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("f953ab95", this, 10301, true);
Frame 6
this.createEmptyMovieClip("ambientholder1", this.getNextHighestDepth());
ambient1 = new Sound(ambientholder1);
ambient1.attachSound("ambient");
ambient1.setVolume(20);
ambient1.start(0, 999);
var i = 1;
while (i <= 6) {
this.createEmptyMovieClip("hypnoholder" + i, this.getNextHighestDepth());
this["hypnosphere" + i] = new Sound("hypnoholder" + i);
this["hypnosphere" + i].attachSound("hypnosphere" + i);
this["hypnosphere" + i].setVolume(0);
this["hypnosphere" + i].start(0, 999);
i++;
}
var i = 1;
while (i <= 5) {
this.createEmptyMovieClip("effectholder" + i, this.getNextHighestDepth());
this["effect" + i] = new Sound("effectholder" + i);
this["effect" + i].attachSound("sound" + i);
this["effect" + i].setVolume(5);
i++;
}
var i = 1;
while (i <= 3) {
this.createEmptyMovieClip("dieholder" + i, this.getNextHighestDepth());
this["die" + i] = new Sound("dieholder" + i);
this["die" + i].attachSound("die" + i);
this["die" + i].setVolume(50);
i++;
}
var i = 1;
while (i <= 1) {
this.createEmptyMovieClip("hitholder" + i, this.getNextHighestDepth());
this["hit" + i] = new Sound("hitholder" + i);
this["hit" + i].attachSound("hit" + i);
this["hit" + i].setVolume(50);
i++;
}
Frame 10
stop();
highScoreBox._visible = false;
var score = 0;
var quality = "HIGH";
playGame.onRelease = function () {
fadeOutSound(loop1, "id1");
gotoAndPlay ("fade");
};
instructions.onRelease = function () {
gotoAndPlay ("instructs");
};
sendtofriend.onRelease = function () {
getURL ("http://www.blitzgamer.com", "_blank");
};
highScores.onRelease = function () {
if (currentDomain == "games.mochiads.com") {
gotoAndPlay ("highscores");
} else {
getURL ("http://blitzgamer.com/cubix_highscores.php", "_blank");
}
};
Frame 30
highScoreBox.sorry._visible = false;
highScoreBox._visible = true;
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
highScoreBox.yourBest = so.data.bestScore;
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
highScoreBox.loading._visible = false;
LoadHighScores();
} else {
highScoreBox.sorry._visible = true;
}
};
myVars.load((((PATH + "get_score_flash.php?gamename=") + GAMENAME) + "&day=today&rn=") + Math.round(Math.random() * 1000000), 0);
back.onPress = function () {
highScoreBox._visible = false;
gotoAndPlay ("options");
};
var scorePos = 0;
highScoreBox.scoreUp.onRelease = function () {
if (this._parent._parent.scorePos != 0) {
this._parent._parent.scorePos--;
this._parent._parent.LoadHighScores();
}
};
highScoreBox.scoreDown.onRelease = function () {
if (this._parent._parent.scorePos != 4) {
this._parent._parent.scorePos++;
this._parent._parent.LoadHighScores();
}
};
initialScores = function () {
var _local1 = 1;
while (_local1 <= 50) {
myVars["name" + _local1] = "none";
myVars["score" + _local1] = 0;
_local1++;
}
};
LoadHighScores = function () {
var _local1 = 1;
while (_local1 <= 10) {
highScoreBox["num" + _local1] = _local1 + (scorePos * 10);
highScoreBox["name" + _local1] = myVars["name" + ((scorePos * 10) + _local1)];
highScoreBox["score" + _local1] = myVars["score" + ((scorePos * 10) + _local1)];
_local1++;
}
};
highScoreBox.today.onRelease = function () {
highScoreBox.hiScoresTitle.text = "TODAYS HISCORES";
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
initialScores();
myVars.load((((PATH + "get_score_flash.php?gamename=") + GAMENAME) + "&day=today&rn=") + Math.round(Math.random() * 1000000), 0);
};
highScoreBox.alltime.onRelease = function () {
highScoreBox.hiScoresTitle.text = "ALL TIME HISCORES";
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
initialScores();
myVars.load((((PATH + "get_score_flash.php?gamename=") + GAMENAME) + "&rn=") + Math.round(Math.random() * 1000000), 0);
};
initialScores();
stop();
Frame 46
stop();
back.onRelease = function () {
gotoAndStop ("options");
};
Frame 62
stop();
back.onRelease = function () {
gotoAndStop ("options");
};
Frame 78
stop();
highQuality.onPress = function () {
_quality = "MEDIUM";
play();
};
lowQuality.onPress = function () {
_quality = "LOW";
play();
};
Frame 87
function onFinishTween(enemy, life, enemyx, enemyy) {
gs.TweenFilterLite.to(enemy, life / 0.5, {_x:enemyx, _y:enemyy, ease:strong.easeOut});
}
stop();
tube._visible = false;
Mouse.hide();
cursor.onEnterFrame = function () {
cursorOuter.gotoAndStop(numBullets + 1);
cursor._x = _xmouse;
cursor._y = _ymouse;
};
cursorOuter._visible = true;
cursor._visible = true;
var STAGEWIDTH = 600;
var STAGEHEIGHT = 400;
var theLevel = 1;
var midLevel = false;
var levelType = "shooter";
var playerLives = 5;
var brainLevel = 3;
var tempTime = 10000000;
var gamePaused = false;
var theGameOver = false;
var frameCounter = 0;
var replay = false;
var timeTest = false;
var enemyEndTest = false;
var enemyCount = 100000;
var enemiesReleased = 0;
var enemyInterval = 100;
var enemyIntervalDelay = 20;
var numEnemiesActive = 0;
var numEnemies = 0;
var enemyLevel = 5;
var enemyLevelType = 1;
var enemyLife = 200;
var enemyScale = 100;
var maxBullets = 2;
var numBullets = 0;
var bulletCount = 0;
var bulletSpeed = 0.4;
var bulletLife = 20;
var numExplode = 0;
var explodeCount = 0;
var displayScores = false;
var kills = 0;
var shots = 0;
var explodeScale = 60;
var bulletExplodeScale = 120;
var blackOut = false;
var maxInterval = 0;
this.createEmptyMovieClip("enemies", this.getNextHighestDepth());
this.createEmptyMovieClip("explosions", this.getNextHighestDepth());
this.createEmptyMovieClip("bullets", this.getNextHighestDepth());
cursorOuter.stop();
accuracy._visible = false;
accuracy._alpha = 0;
tube2._visible = false;
gs.TweenFilterLite.to(tube, 0.1, {type:"Color", colorize:0, amount:10});
gs.TweenFilterLite.to(tube_low, 0.1, {type:"Color", colorize:0, amount:10});
scoreTable._visible = false;
scoreTable._alpha = 0;
scoreTable.missionComplete._visible = false;
tube.fast = false;
gameOver._visible = false;
gameOver._alpha = 0;
calcPerc = function (whereX) {
var _local2 = (whereX / _root.STAGEWIDTH) * 100;
if (_local2 > 50) {
_local2 = (_local2 - 50) * 2;
} else {
_local2 = (100 - (_local2 * 2)) * -1;
}
return(_local2);
};
tube.onEnterFrame = function () {
if (_ymouse < (STAGEHEIGHT / 2)) {
this.desty = (STAGEHEIGHT / 2) - (((STAGEHEIGHT / 2) - _ymouse) / 4);
} else if (_ymouse > (STAGEHEIGHT / 2)) {
this.desty = (STAGEHEIGHT / 2) + ((_ymouse - (STAGEHEIGHT / 2)) / 4);
}
var _local2 = this.desty - this._y;
this._y = this._y + (_local2 * 0.15);
if (_xmouse < (STAGEWIDTH / 2)) {
this.destx = (STAGEWIDTH / 2) - (((STAGEWIDTH / 2) - _xmouse) / 4);
} else if (_xmouse > (STAGEWIDTH / 2)) {
this.destx = (STAGEWIDTH / 2) + ((_xmouse - (STAGEWIDTH / 2)) / 4.2);
}
var _local3 = this.destx - this._x;
this._x = this._x + (_local3 * 0.15);
};
createBullet = function (startX, startY, destX, destY) {
bulletCount++;
var _local3 = "bullet" + bulletCount;
bullets.attachMovie("target", _local3, bulletCount);
bullets[_local3]._xscale = 300;
bullets[_local3]._yscale = 300;
bullets[_local3]._x = startX;
bullets[_local3]._y = startY;
bullets[_local3].destx = destX;
bullets[_local3].desty = destY;
bullets[_local3].Counter = 0;
bullets[_local3].onEnterFrame = function () {
this.Counter++;
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
var _local4 = this.desty - this._y;
this._y = this._y + (_local4 * bulletSpeed);
var _local5 = this.destx - this._x;
this._x = this._x + (_local5 * bulletSpeed);
if (this.Counter >= bulletLife) {
var _local3 = 1 + Math.round(Math.random() * 3);
_root["die" + _local3].start(0, 1);
_root["die" + _local3].setPan(calcPerc(this._x));
if (levelType == "brain") {
explodeType = "small";
createExplosion(this._x, this._y, explodeScale / 5, explodeType);
} else {
explodeType = "large";
createExplosion(this._x, this._y, bulletExplodeScale, explodeType);
}
_root.numBullets--;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
};
createExplosion = function (explodeX, explodeY, explodeScale, explodeType) {
numExplode++;
explodeCount++;
var _local1 = "explode" + explodeCount;
switch (explodeType) {
case "large" :
explosions.attachMovie("explode", _local1, explodeCount);
break;
case "small" :
explosions.attachMovie("explodeSmall", _local1, explodeCount);
break;
case "hit" :
explosions.attachMovie("explodeHit", _local1, explodeCount);
}
explosions[_local1]._xscale = explodeScale;
explosions[_local1]._yscale = explodeScale;
explosions[_local1]._x = explodeX;
explosions[_local1]._y = explodeY;
explosions[_local1].Counter = 0;
};
var myListener = new Object();
myListener.onMouseDown = function () {
if (numBullets < maxBullets) {
if ((_root._xmouse > 200) && (_root._xmouse < 400)) {
bulletStartX = _root._xmouse + (_root._xmouse - 600);
if (_root._ymouse > 200) {
bulletStartY = 410;
} else {
bulletStartY = -10;
}
} else {
bulletStartY = _root._ymouse + (_root._ymouse - 400);
if (_root._xmouse > 300) {
bulletStartX = 610;
} else {
bulletStartX = -10;
}
}
createBullet(bulletStartX, bulletStartY, _root._xmouse, _root._ymouse);
numBullets++;
shots++;
}
};
Mouse.addListener(myListener);
createEnemy = function (enemyLife, initialSpeed, speed, startSpeed, type, destx, desty, odd, scale) {
enemiesReleased++;
numEnemies++;
numEnemiesActive++;
enemyCount--;
var _local3 = "enemy" + enemyCount;
switch (type) {
case 1 :
enemies.attachMovie("enemy1", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 2 :
enemies.attachMovie("enemy2", _local3, enemyCount);
enemies[_local3].speed = speed + speed;
enemies[_local3].enemyLife = enemyLife / 1.5;
break;
case 3 :
enemies.attachMovie("enemy3", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 4 :
enemies.attachMovie("enemy4", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 5 :
enemies.attachMovie("enemy5", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 6 :
enemies.attachMovie("enemy6", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 7 :
enemies.attachMovie("enemy7", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 8 :
enemies.attachMovie("enemy8", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
break;
case 11 :
enemies.attachMovie("shape1", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
enemies[_local3]._rotation = Math.round(Math.random() * 50);
break;
case 12 :
enemies.attachMovie("shape2", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
enemies[_local3]._rotation = Math.round(Math.random() * 360);
break;
case 13 :
enemies.attachMovie("shape3", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
enemies[_local3]._rotation = Math.round(Math.random() * 360);
break;
case 14 :
enemies.attachMovie("shape4", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
enemies[_local3]._rotation = Math.round(Math.random() * 360);
break;
default :
enemies.attachMovie("enemyClip", _local3, enemyCount);
enemies[_local3].speed = speed;
enemies[_local3].enemyLife = enemyLife;
}
var _local6 = new Object();
_local6.x = tube.marker._x;
_local6.y = tube.marker._y;
tube.localToGlobal(_local6);
enemies[_local3].enemyType = type;
enemies[_local3]._x = _local6.x;
enemies[_local3]._y = _local6.y;
enemies[_local3].destx = destx;
enemies[_local3].desty = desty;
enemies[_local3]._xscale = scale;
enemies[_local3]._yscale = scale;
if (type == 2) {
var _local8 = Math.atan2(enemies[_local3].desty - 175, enemies[_local3].destx - 250);
enemies[_local3]._rotation = _local8 * 57.2957795130823;
}
enemies[_local3].Counter = 0;
enemies[_local3].targeted = false;
enemies[_local3].odd = odd;
enemies[_local3].exploder = true;
if ((!enemies[_local3].odd) && (levelType == "brain")) {
enemies[_local3].exploder = false;
}
if (enemies[_local3].odd) {
enemies[_local3]._xscale = -100;
}
var _local4 = enemyLife / 30;
switch (type) {
case 1 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx / 2, _y:enemies[_local3].desty / 2, ease:mx.transitions.easing.Strong.easeOut});
break;
case 2 :
gs.TweenFilterLite.to(enemies[_local3], _local4, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:none.easeOut});
break;
case 3 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx / 2, _y:enemies[_local3].desty / 2, ease:mx.transitions.easing.Strong.easeOut, onComplete:onFinishTween, onCompleteParams:[enemies[_local3], _local4, enemies[_local3].destx, enemies[_local3].cake]});
break;
case 4 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:mx.transitions.easing.Strong.easeOut, onComplete:onFinishTween, onCompleteParams:[enemies[_local3], _local4, enemies[_local3].cake, enemies[_local3].desty / 2]});
break;
case 5 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:mx.transitions.easing.Back.easeOut, onComplete:onFinishTween, onCompleteParams:[enemies[_local3], _local4, enemies[_local3].destx / 2, enemies[_local3].desty / 2]});
break;
case 6 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:mx.transitions.easing.Bounce.easeOut, onComplete:onFinishTween, onCompleteParams:[enemies[_local3], _local4, enemies[_local3].destx / 2, enemies[_local3].desty / 2]});
break;
case 7 :
gs.TweenFilterLite.to(enemies[_local3], _local4 / 2, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:mx.transitions.easing.Back.easeInOut, onComplete:onFinishTween, onCompleteParams:[enemies[_local3], _local4, enemies[_local3].destx / 2, enemies[_local3].desty / 2]});
break;
default :
gs.TweenFilterLite.to(enemies[_local3], 1, {_x:enemies[_local3].destx, _y:enemies[_local3].desty, ease:mx.transitions.easing.Strong.easeOut});
}
enemies[_local3].onEnterFrame = function () {
this.Counter++;
if (this.enemyType < 11) {
if (!this.odd) {
this._xscale = this._xscale + 1.5;
this._yscale = this._yscale + 1.5;
}
if (this.odd) {
this._xscale = this._xscale - 1.5;
this._yscale = this._yscale + 1.5;
}
} else {
if (!this.odd) {
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
}
if (this.odd) {
this._xscale = this._xscale - 1;
this._yscale = this._yscale + 1;
}
}
if (this.Counter == 20) {
if (!this.targeted) {
var _local3 = 1 + Math.round(Math.random() * 4);
_root["effect" + _local3].start(0, 1);
_root["effect" + _local3].setPan(calcPerc(this._x));
this.focusTarget._visible = true;
this.targeted = true;
}
}
if ((_root.explosions.hitTest(this._x, this._y, true) && (this.targeted)) && (this.Counter <= enemyLife)) {
explodeType = "small";
if (this.exploder) {
createExplosion(this._x, this._y, explodeScale, explodeType);
}
var _local3 = 1 + Math.round(Math.random() * 2);
_root["die" + _local3].start(0, 1);
_root["die" + _local3].setPan(calcPerc(this._x));
_root.numEnemiesActive--;
_root.kills++;
if (!_root.theGameOver) {
_root.score = _root.score + 10;
}
_root.scoreBox.scoreText.text = _root.score;
delete this.onEnterFrame;
this.removeMovieClip();
}
if (this.Counter == enemyLife) {
gs.TweenFilterLite.to(this, 1, {type:"Color", colorize:16711680, amount:4});
this.play();
}
if (this.Counter == (enemyLife + 12)) {
if (this.exploder) {
_root.lives["lifeClip" + _root.playerLives].play();
_root.playerLives--;
}
_root.numEnemiesActive--;
if (this.enemyType <= 10) {
hit1.setPan(calcPerc(this._x));
hit1.setVolume(35);
hit1.start(0, 1);
createExplosion(this._x, this._y, 500, "hit");
} else {
hit1.setPan(calcPerc(this._x));
hit1.setVolume(15);
hit1.start(0, 1);
createExplosion(this._x, this._y, 50, "hit");
}
delete this.onEnterFrame;
this.removeMovieClip();
}
};
};
showScoreTable = function () {
scoreTable.shots.text = shots;
scoreTable.kills.text = kills;
scoreTable.accuracy.text = Math.round((kills / shots) * 100);
scoreTable.bonus.text = Math.round((kills / shots) * 100) * 100;
scoreTable.level.text = theLevel;
scoreTable._visible = true;
theLevel++;
accuracy.level.text = theLevel;
scoreTable.proceed.gotoAndStop("complete");
numEnemies = 0;
if (midLevel) {
_root.score = score + (Math.round((kills / shots) * 100) * 100);
_root.scoreBox.scoreText.text = _root.score;
shots = 0;
kills = 0;
enemiesReleased = 0;
_root.playerLives = 5;
i = 1;
while (i <= 5) {
lives["lifeClip" + i].gotoAndPlay("fadeUp");
i++;
}
}
switch (theLevel) {
case 2 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:10044416, amount:1});
enemyLevel = 14;
enemyInterval = 30;
enemyLife = 115;
explodeScale = 95;
enemyLevelType++;
break;
case 3 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:16763955, amount:1});
levelType = "brain";
hypnosphere6.setVolume(0);
gs.TweenFilterLite.to(hypnoholder6, 10, {volume:60});
explodeScale = 900;
brainLevel++;
bulletSpeed = 0.2;
bulletLife = 40;
enemyLevel = 16;
enemyLife = 107;
enemyInterval = 225;
break;
case 4 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:39321, amount:1});
levelType = "shooter";
gs.TweenFilterLite.to(hypnoholder6, 2, {volume:0});
hypnosphere1.setVolume(0);
gs.TweenFilterLite.to(hypnoholder1, 10, {volume:60});
tube.fast = true;
explodeScale = 80;
enemyLevel = 30;
enemyLife = 105;
enemyInterval = 30;
enemyIntervalDelay = 10;
bulletSpeed = 0.3;
bulletLife = 30;
enemyLevelType++;
break;
case 5 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:204, amount:1});
tube_low.gotoAndStop(2);
gs.TweenFilterLite.to(hypnoholder1, 2, {volume:0});
hypnosphere2.setVolume(0);
gs.TweenFilterLite.to(hypnoholder2, 10, {volume:50});
enemyLevel = 25;
enemyLife = 100;
enemyInterval = 25;
bulletSpeed = 0.7;
bulletLife = 25;
enemyLevelType++;
break;
case 6 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:14505301, amount:1});
levelType = "brain";
explodeScale = 900;
gs.TweenFilterLite.to(hypnoholder2, 2, {volume:0});
hypnosphere6.setVolume(0);
gs.TweenFilterLite.to(hypnoholder6, 10, {volume:50});
brainLevel++;
enemyLevel = 16;
enemyLife = 125;
enemyInterval = 200;
enemySpeed = 0.01;
bulletSpeed = 0.2;
bulletLife = 40;
blackOut = true;
break;
case 7 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:13412915});
gs.TweenFilterLite.to(hypnoholder6, 2, {volume:0});
hypnosphere3.setVolume(0);
gs.TweenFilterLite.to(hypnoholder3, 10, {volume:40});
explodeScale = 80;
tube.fast = false;
tube.bend = true;
levelType = "shooter";
enemyLevel = 30;
enemyLife = 100;
enemyInterval = 27;
enemyScale = 85;
enemyIntervalDelay = 10;
explodeScale = 85;
bulletSpeed = 0.3;
bulletLife = 25;
enemyLevelType++;
break;
case 8 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", type:"Color", colorize:3407871, brightness:2});
levelType = "brain";
brainLevel++;
gs.TweenFilterLite.to(hypnoholder3, 2, {volume:0});
gs.TweenFilterLite.to(hypnoholder6, 10, {volume:40});
explodeScale = 900;
blackOut = false;
enemyLevel = 16;
enemyLife = 75;
enemyInterval = 150;
enemyIntervalDelay = 75;
bulletSpeed = 0.7;
bulletLife = 15;
blackOut = true;
break;
case 9 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:8806});
tube_low.gotoAndStop(3);
levelType = "shooter";
gs.TweenFilterLite.to(hypnoholder6, 2, {volume:0});
hypnosphere5.setVolume(0);
gs.TweenFilterLite.to(hypnoholder5, 10, {volume:40});
tube.bend = false;
tube.landscape = true;
blackOut = false;
enemyLevel = 28;
enemyLife = 90;
enemyInterval = 25;
enemyIntervalDelay = 10;
explodeScale = 60;
bulletSpeed = 0.7;
bulletLife = 15;
enemyLevelType++;
break;
case 10 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", colorize:7816192});
levelType = "shooter";
blackOut = true;
enemyLevel = 24;
enemyLife = 92;
enemyInterval = 25;
enemyIntervalDelay = 10;
explodeScale = 70;
bulletSpeed = 0.7;
bulletLife = 15;
enemyLevelType++;
break;
case 11 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", amount:0});
tube.landscape = false;
tube_low.gotoAndStop(4);
tube.endLevel = true;
enemyLevel = 80;
enemyLife = 85;
enemyInterval = 20;
enemyIntervalDelay = 75;
explodeScale = 70;
bulletExplodeScale = 200;
bulletSpeed = 0.7;
bulletLife = 15;
break;
case 12 :
gs.TweenFilterLite.to(tube, 2, {type:"Color", amount:0});
tube.zoomOut = true;
tube_low.gotoAndStop(5);
tube.endLevel = false;
enemyLevel = 50;
enemyLife = 85;
enemyInterval = 15;
enemyIntervalDelay = 75;
explodeScale = 70;
bulletSpeed = 0.7;
bulletLife = 15;
}
};
onLevelEnd = function () {
if ((((theLevel == 3) || (theLevel == 6)) || (theLevel == 9)) || (theLevel == 12)) {
midLevel = true;
scoreTable._visible = true;
showScoreTable();
gs.TweenFilterLite.to(scoreTable, 7, {_alpha:100});
} else {
midLevel = false;
showScoreTable();
}
levelEnd = true;
};
onEnterFrame = function () {
frameCounter++;
if (!gamePaused) {
if ((frameCounter == 30) && (theLevel == 1)) {
tube._visible = true;
gs.TweenFilterLite.to(tube, 5, {type:"Color", colorize:2237081, amount:1});
}
if (levelType == "shooter") {
if (((frameCounter % enemyInterval) == 0) && (numEnemies <= enemyLevel)) {
if ((numEnemiesActive <= 7) && (maxInterval <= FrameCounter)) {
var _local7 = enemyLevelType;
if (theLevel >= 11) {
_local7 = 2 + Math.round(Math.random() * 6);
}
var _local8 = Math.round(Math.random() * 500);
var _local9 = Math.round(Math.random() * 300);
createEnemy(enemyLife, enemyInitialSpeed, enemySpeed, 0.01, _local7, _local8, _local9);
} else {
maxInterval = FrameCounter + 100;
}
}
}
if (levelType == "brain") {
var _local7 = brainLevel + 7;
if (((frameCounter % enemyInterval) == 0) && (numEnemies <= enemyLevel)) {
var _local6 = 1 + Math.round(Math.random() * 3);
var _local2 = 1;
while (_local2 <= 4) {
var _local4 = 0;
var _local3 = 0;
_local4 = 50 + (_local2 * 90);
_local3 = 100 + Math.round(Math.random() * 50);
var _local5 = false;
if (_local2 == _local6) {
_local5 = true;
}
createEnemy(enemyLife, enemyInitialSpeed, enemySpeed, 0.01, _local7, _local4, _local3, _local5, enemyScale);
_local2++;
}
}
}
if (levelType == "boss") {
if (((frameCounter % enemyInterval) == 0) && (numEnemies <= enemyLevel)) {
if ((numEnemiesActive <= 7) && (maxInterval >= FrameCounter)) {
var _local7 = 1 + Math.round(Math.random() * 2);
createEnemy(enemyLife, enemyInitialSpeed, enemySpeed, 0.01, _local7, Math.round(Math.random() * 500), Math.round(Math.random() * 300), true);
} else {
maxInterval = FrameCounter + 100;
}
}
}
if (playerLives <= 0) {
thsGameOver = true;
_quality = "HIGH";
numEnemies = 0;
gamePaused = true;
gs.TweenFilterLite.to(tube, 5, {type:"Color", amount:1, colorize:0});
_root.gotoAndPlay("submit");
}
}
if (((numEnemies >= enemyLevel) && (!enemyEndTest)) && (numEnemiesActive == 0)) {
numEnemies = 0;
enemyEndTest = true;
gamePaused = true;
if (blackOut) {
fadeOut.play();
} else {
onLevelEnd();
}
}
if (levelEnd && (theLevel <= 12)) {
if (midLevel && (scoreTable._alpha >= 50)) {
if (bullets.hitTest(scoreTable.proceed)) {
gamePaused = false;
enemyEndTest = false;
levelEnd = false;
frameCounter = 0;
gs.TweenFilterLite.to(scoreTable, 1, {_alpha:0});
accuracy._visible = true;
gs.TweenFilterLite.to(accuracy, 2, {_alpha:100});
}
}
if (!midLevel) {
if (theLevel == 3) {
instructions.play();
}
gamePaused = false;
levelEnd = false;
enemyEndTest = false;
frameCounter = 0;
accuracy._visible = true;
gs.TweenFilterLite.to(accuracy, 2, {_alpha:100});
}
}
if (frameCounter == 150) {
gs.TweenFilterLite.to(accuracy, 2, {_alpha:0});
}
if (levelEnd && (theLevel > 12)) {
scoreTable.missionComplete._visible = true;
if (bullets.hitTest(scoreTable.proceed)) {
play();
gs.TweenFilterLite.to(scoreTable, 1, {_alpha:0});
}
}
};
Frame 94
stop();
cursorOuter._visible = false;
cursor._visible = false;
Mouse.show();
Mouse.removeListener(myListener);
_quality = "BEST";
var choice = 0;
yourScore.scoreText.text = _root.score;
so.data.yourScore = _root.score;
if (_root.score > so.data.bestScore) {
trace("new best");
so.data.bestScore = score;
}
this.yourScore.submitCover.bestScore.text = so.data.bestScore;
yourScore.backMenu.onPress = function () {
play();
};
yourScore.submit._alpha = 50;
yourScore.submit.enabled = false;
this.createEmptyMovieClip("highSender", this.getNextHighestDepth());
yourScore.submit.onRelease = function () {
highSender.playerName = yourScore.nameText;
highSender.score = _root.score;
highSender.gamename = GAMENAME;
highSender.validator = _root.scoreSystem.processScore(_root.score);
trace(highSender.validator);
trace("score=" + _root.score);
highSender.loadVariables(PATH + "new_score.php", "POST");
choice = 1;
if (currentDomain != "www.robotjam.com") {
getURL ("http://blitzgamer.com/cubix_highscores.php", "_blank");
}
play();
};
onEnterFrame = function () {
if (yourScore.nameText != eval("NULL")) {
yourScore.submit._alpha = 100;
yourScore.submit.enabled = true;
}
};
gs.TweenFilterLite.to(hypnoholder1, 3, {volume:0});
gs.TweenFilterLite.to(hypnoholder2, 3, {volume:0});
gs.TweenFilterLite.to(hypnoholder3, 3, {volume:0});
gs.TweenFilterLite.to(hypnoholder4, 3, {volume:0});
gs.TweenFilterLite.to(hypnoholder5, 3, {volume:0});
gs.TweenFilterLite.to(hypnoholder6, 3, {volume:0});
Frame 103
if (choice == 0) {
gotoAndStop ("options");
} else if (currentDomain == "www.robotjam.com") {
gotoAndPlay ("highscores");
} else {
gotoAndStop ("options");
}
Symbol 5 MovieClip [explodeSmall] Frame 13
this.removeMovieClip();
Symbol 6 MovieClip [explodeHit] Frame 1
hitspot._visible = false;
Symbol 6 MovieClip [explodeHit] Frame 35
this.removeMovieClip();
Symbol 7 MovieClip [explode] Frame 1
hitSpot._visible = false;
Symbol 7 MovieClip [explode] Frame 35
this.removeMovieClip();
Symbol 39 MovieClip [enemy2] Frame 1
focusTarget._visible = false;
Symbol 39 MovieClip [enemy2] Frame 20
stop();
Symbol 39 MovieClip [enemy2] Frame 36
removeMovieClip(this);
stop();
Symbol 51 MovieClip [enemy8] Frame 1
focusTarget._visible = false;
Symbol 51 MovieClip [enemy8] Frame 19
stop();
Symbol 51 MovieClip [enemy8] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 54 MovieClip [enemy7] Frame 1
focusTarget._visible = false;
Symbol 54 MovieClip [enemy7] Frame 19
stop();
Symbol 54 MovieClip [enemy7] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 57 MovieClip [enemy6] Frame 1
focusTarget._visible = false;
Symbol 57 MovieClip [enemy6] Frame 19
stop();
Symbol 57 MovieClip [enemy6] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 60 MovieClip [enemy5] Frame 1
focusTarget._visible = false;
Symbol 60 MovieClip [enemy5] Frame 19
stop();
Symbol 60 MovieClip [enemy5] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 72 MovieClip [enemy4] Frame 1
focusTarget._visible = false;
Symbol 72 MovieClip [enemy4] Frame 19
stop();
Symbol 72 MovieClip [enemy4] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 105 MovieClip [enemy3] Frame 1
focusTarget._visible = false;
Symbol 105 MovieClip [enemy3] Frame 19
stop();
Symbol 105 MovieClip [enemy3] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 106 MovieClip [enemy1] Frame 1
focusTarget._visible = false;
Symbol 106 MovieClip [enemy1] Frame 19
stop();
Symbol 106 MovieClip [enemy1] Frame 45
removeMovieClip(this);
stop();
this._visible = false;
Symbol 124 Button
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 20
stop();
Symbol 190 MovieClip Frame 1
this._visible = false;
_parent.stop();
Symbol 190 MovieClip Frame 2
this._visible = true;
Symbol 190 MovieClip Frame 131
tank.play();
Symbol 190 MovieClip Frame 174
_parent.play();
stop();
_parent.play();
Symbol 196 MovieClip Frame 1
stop();
Symbol 516 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
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.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) {
_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 showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
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.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) {
_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 load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".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++;
}
}
return(_local4);
}
}
Symbol 517 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e;
var _twa, _d, _colorParts, _ts, _dead, _oc, _oca, _act, _dl, _ti, _os, _osa, _snd, _color, __get__colorProxy;
function TweenLite (t, d, v, dl, oc, oca, ao) {
var _local2 = this;
var _local13 = false;
if (((v.overwrite != false) && (ao != false)) && (t != undefined)) {
var _local4 = _all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if ((_local4[_local3]._etg == t) && (!_local4[_local3]._dead)) {
if (!_local13) {
this=_local4[_local3];//parameter overwritten
_local2 = _local4[_local3];
_local13 = true;
} else {
removeTween(_local4[_local3]);
}
}
_local3--;
}
}
_local2._dead = false;
_local2._tg = (_local2._etg = t);
_local2._d = d;
_local2._v = v;
_local2._oc = v.onComplete || (oc);
_local2._oca = v.onCompleteParams || (oca);
_local2._os = v.onStart;
_local2._osa = v.onStartParams;
_local2._dl = (v.delay || (dl)) || 0;
if (_local2._dl == 0) {
_local2._ts = getTimer();
if (_local2._os != undefined) {
_local2._os.apply(null, _local2._osa);
}
}
if (_local2._v.ease == undefined) {
_local2._v.ease = easeOut;
} else if (typeof(_local2._v.ease) != "function") {
trace(("ERROR: You cannot use '" + _local2._v.ease) + "' for the TweenLite ease property. Only functions are accepted.");
}
_local2._twa = [];
if (_local2._tg instanceof Array) {
var _local5 = [];
for (var _local29 in _local2._v) {
if (_local2._v[_local29] instanceof Array) {
_local5 = _local2._v[_local29];
break;
}
}
var _local27 = _local5.length;
var _local3 = 0;
while (_local3 < _local27) {
if ((_local2._tg[_local3] != _local5[_local3]) && (_local2._tg[_local3] != undefined)) {
_local2._twa.push({o:_local2._tg, p:_local3.toString(), s:_local2._tg[_local3], c:_local5[_local3] - _local2._tg[_local3], e:_local2._v.ease});
}
_local3++;
}
} else {
for (var _local29 in _local2._v) {
if ((_local29 == "volume") && (typeof(_local2._tg) == "movieclip")) {
_local2._snd = new Sound(_local2._tg);
var _local9 = new gs.TweenLite(_local2, d, {volumeProxy:_local2._v[_local29], ease:easeNone}, dl, null, null, false);
_local9._etg = _local2._tg;
} else if ((_local29.toLowerCase() == "mccolor") && (typeof(_local2._tg) == "movieclip")) {
_local2._color = new Color(_local2._tg);
_local2._colorParts = _local2._color.getTransform();
var _local15 = _local2._colorParts;
if ((_local2._v[_local29] == null) || (_local2._v[_local29] == "")) {
var _local10 = {rb:0, gb:0, bb:0, ra:100, ga:100, ba:100, ease:_local2._v.ease};
} else {
var _local10 = {rb:_local2._v[_local29] >> 16, gb:(_local2._v[_local29] >> 8) & 255, bb:_local2._v[_local29] & 255, ra:0, ga:0, ba:0, ease:_local2._v.ease};
}
var _local11 = new gs.TweenLite(_local15, d, _local10, dl, null, null, false);
var _local12 = new gs.TweenLite(_local2, d, {colorProxy:1}, dl, null, null, false);
_local11._etg = (_local12._etg = _local2._tg);
} else if ((!isNaN(_local2._v[_local29])) && (_local29 != "delay")) {
_local2._twa.push({o:_local2._tg, p:_local29, s:t[_local29], c:_local2._v[_local29] - t[_local29], e:_local2._v.ease});
}
}
}
_local2._ti = getTimer();
if (!_local13) {
_all.push(_local2);
if (_e._visible != false) {
initEmptyMC();
}
_e.onEnterFrame = executeAll;
}
}
static function to(t, d, v, dl, oc, oca, ao) {
return(new gs.TweenLite(t, d, v, dl, oc, oca, ao));
}
static function from(t, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenLite(t, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd(b) {
var _local4 = act;
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local4) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
if (b != true) {
_local3 = _all.length - 1;
while (_local3 >= 0) {
if ((_all[_local3]._tg == this) || ((_colorParts != undefined) && (_all[_local3]._tg == _colorParts))) {
_all[_local3].flipStartAndEnd(true);
if (_all[_local3]._tg == _colorParts) {
colorProxy = (1);
}
}
_local3--;
}
}
if (_local4) {
render();
}
}
static function delayedCall(dl, oc, oca) {
return(new gs.TweenLite(null, null, null, dl, oc, oca));
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
if (_local4 >= _d) {
_dead = true;
if (_oc) {
_oc.apply(null, _oca);
}
removeTween(this);
}
}
static function removeTween(t) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1] == t) {
killTweenAt(_local1);
break;
}
_local1--;
}
}
static function killDelayedCallsTo(f) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (((_all[_local1]._oc == f) && (_all[_local1]._tg == null)) || (_all[_local1]._tg == f)) {
killTweenAt(_local1);
}
_local1--;
}
}
static function killTweensOf(tg) {
if (typeof(tg) == "function") {
killDelayedCallsTo(tg);
} else {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1]._etg == tg) {
killTweenAt(_local1);
}
_local1--;
}
}
}
static function killTweenAt(i) {
delete _all[i];
_all.splice(i, 1);
if (_all.length == 0) {
_e.onEnterFrame = null;
}
}
static function executeAll() {
var _local2 = _all.slice();
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2[_local1].act) {
_local2[_local1].render();
}
_local1++;
}
}
static function initEmptyMC() {
if (!_root.tweenLite_mc) {
var _local2 = _root.getNextHighestDepth();
if (!_local2) {
_local2 = 9999;
}
_e = _root.createEmptyMovieClip("tweenLite_mc", _local2);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
return(_e);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
function get act() {
if (_act) {
return(true);
}
if (((getTimer() - _ti) / 1000) > _dl) {
_act = true;
_ts = getTimer();
if (_os != undefined) {
_os.apply(null, _osa);
}
return(true);
}
return(false);
}
function set volumeProxy(n) {
_snd.setVolume(n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_snd.getVolume());
}
function set colorProxy(n) {
_color.setTransform(_colorParts);
//return(__get__colorProxy());
}
static var _all = new Array();
static var deleteFor = killTweensOf;
}
Symbol 518 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _colorParts, _etg, _mc, _clrsa, _matrix, _filters, _f, _endMatrix, _v, _clrMtxTw, _d, _dl, _oc, _oca, _twa, __get__act, _ts, _dead;
function TweenFilterLite (mc, d, v, dl, oc, oca, ao) {
super(mc, d, v, dl, oc, oca, false);
if (((ao != false) && (v.overwrite != false)) && (mc != undefined)) {
var _local4 = gs.TweenLite._all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if (((((_local4[_local3]._etg == mc) && (_local4[_local3] != this)) && (_local4[_local3]._tg != this)) && (_local4[_local3]._tg != _colorParts)) && (!_local4[_local3]._dead)) {
gs.TweenLite.removeTween(_local4[_local3]);
}
_local3--;
}
}
_etg = mc;
_mc = mc;
_clrsa = [];
_matrix = _idMatrix.slice();
_filters = mc.filters;
if ((v.quality == undefined) || (isNaN(v.quality))) {
v.quality = 2;
}
switch (v.type.toLowerCase()) {
case "blur" :
setFilter(flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, v.quality));
break;
case "glow" :
setFilter(flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength"], new flash.filters.GlowFilter(16777215, 0, 0, 0, 1, v.quality));
break;
case "colormatrix" :
case "color" :
case "colormatrixfilter" :
case "colorize" :
setFilter(flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_matrix = _f.matrix;
if (v.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _v.brightness);
_endMatrix = setContrast(_endMatrix, _v.contrast);
_endMatrix = setHue(_endMatrix, _v.hue);
_endMatrix = setSaturation(_endMatrix, _v.saturation);
_endMatrix = setThreshold(_endMatrix, _v.threshold);
if (!isNaN(_v.colorize)) {
_endMatrix = colorize(_endMatrix, _v.colorize, _v.amount);
} else if (!isNaN(_v.color)) {
_endMatrix = colorize(_endMatrix, _v.color, _v.amount);
}
_clrMtxTw = new gs.TweenLite(_matrix, _d, {endMatrix:_endMatrix, ease:v.ease}, _dl, _oc, _oca, false);
_clrMtxTw._etg = _mc;
break;
case "shadow" :
case "dropshadow" :
setFilter(flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, v.quality));
break;
case "bevel" :
setFilter(flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, v.quality));
}
}
function setFilter(filterType_obj, properties_array, default_obj) {
var _local19 = false;
var _local4 = 0;
while (_local4 < _filters.length) {
if (_filters[_local4] instanceof filterType_obj) {
_f = _filters[_local4];
_local19 = true;
break;
}
_local4++;
}
if (!_local19) {
_filters.push(default_obj);
_f = _filters[_filters.length - 1];
}
var _local21 = _twa.length;
_local4 = _twa.length - 1;
while (_local4 >= 0) {
var _local9 = _twa[_local4].p.toLowerCase();
var _local11 = 0;
while (_local11 < properties_array.length) {
if (_local9 == properties_array[_local11].toLowerCase()) {
var _local2 = properties_array[_local11];
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
var _local3 = HEXtoRGB(_f[_local2]);
var _local5 = HEXtoRGB(_v[_twa[_local4].p]);
_clrsa.push({p:_local2, e:_v.ease, sr:_local3.rb, cr:_local5.rb - _local3.rb, sg:_local3.gb, cg:_local5.gb - _local3.gb, sb:_local3.bb, cb:_local5.bb - _local3.bb});
_twa.splice(_local4, 1);
} else if (_local2 == "quality") {
_f.quality = _v[_twa[_local4].p];
} else {
_twa[_local4] = {o:_f, p:_local2, s:_f[_local2], c:_v[_twa[_local4].p] - _f[_local2], e:_v.ease};
}
break;
}
_local11++;
}
_local4--;
}
}
static function to(mc, d, v, dl, oc, oca, ao) {
return(new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao));
}
static function from(mc, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd() {
var _local7 = __get__act();
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local7) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
_local2.sr = _local2.sr + _local2.cr;
_local2.cr = _local2.cr * -1;
_local2.sg = _local2.sg + _local2.cg;
_local2.cg = _local2.cg * -1;
_local2.sb = _local2.sb + _local2.cb;
_local2.cb = _local2.cb * -1;
if (!_local7) {
var _local5 = _local2.e(0, _local2.sr, _local2.cr, _d);
var _local6 = _local2.e(0, _local2.sg, _local2.cg, _d);
var _local4 = _local2.e(0, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local5 << 16) | (_local6 << 8)) | _local4;
}
_local3++;
}
_clrMtxTw.flipStartAndEnd();
if (_local7) {
render();
} else {
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
}
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
var _local6 = _local2.e(_local4, _local2.sr, _local2.cr, _d);
var _local7 = _local2.e(_local4, _local2.sg, _local2.cg, _d);
var _local5 = _local2.e(_local4, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local6 << 16) | (_local7 << 8)) | _local5;
_local3++;
}
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
if (_local4 >= _d) {
_dead = true;
if (_oc != undefined) {
_oc.apply(null, _oca);
}
if (_clrMtxTw) {
gs.TweenLite.removeTween(_clrMtxTw);
}
gs.TweenLite.removeTween(this);
}
}
function HEXtoRGB(n) {
return({rb:n >> 16, gb:(n >> 8) & 255, bb:n & 255});
}
static function colorize(m, color, amount) {
if ((color == undefined) || (isNaN(color))) {
return(m);
}
if (amount == undefined) {
amount = 1;
}
var _local3 = ((color >> 16) & 255) / 255;
var _local6 = ((color >> 8) & 255) / 255;
var _local2 = (color & 255) / 255;
var _local5 = 1 - amount;
var _local7 = [_local5 + ((amount * _local3) * _lumR), (amount * _local3) * _lumG, (amount * _local3) * _lumB, 0, 0, (amount * _local6) * _lumR, _local5 + ((amount * _local6) * _lumG), (amount * _local6) * _lumB, 0, 0, (amount * _local2) * _lumR, (amount * _local2) * _lumG, _local5 + ((amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, m));
}
static function setThreshold(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function setHue(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n * (Math.PI/180);
var _local1 = Math.cos(n);
var _local2 = Math.sin(n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, m));
}
static function setBrightness(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = (n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m));
}
static function setSaturation(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local4 = 1 - n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + n, _local5, _local2, 0, 0, _local3, _local5 + n, _local2, 0, 0, _local3, _local5, _local2 + n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, m));
}
static function setContrast(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n + 0.01;
var _local2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function applyMatrix(m, m2) {
if ((((m == undefined) || (!(m instanceof Array))) || (m2 == undefined)) || (!(m2 instanceof Array))) {
return(m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = ((((m[_local2] * m2[_local1]) + (m[_local2 + 1] * m2[_local1 + 5])) + (m[_local2 + 2] * m2[_local1 + 10])) + (m[_local2 + 3] * m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 519 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 520 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 521 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 200 MovieClip Frame 1
loadMovie ("http://208.109.177.63/~blitzgam/blitz_HighScores/encrypted.swf", this);
this._alpha = 0;
Symbol 220 Button
on (release) {
getURL ("http://www.robotjam.com/games", "_blank");
}
Symbol 223 MovieClip Frame 1
_parent.stop();
this._visible = false;
Symbol 223 MovieClip Frame 2
this._visible = true;
Symbol 223 MovieClip Frame 82
_parent.play();
Symbol 244 Button
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 291 MovieClip Frame 1
Symbol 295 MovieClip Frame 20
gotoAndPlay (2);
Symbol 300 MovieClip Frame 1
sorry._visible = false;
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 10
stop();
Symbol 322 Button
on (release) {
sendToFriend.loadVariables(_root.PATH + "email.php", "POST");
sendemail._visible = false;
sendToFriend.gotoAndStop("sent");
}
Symbol 332 Button
on (release) {
getURL ("http://www.robotjam.com/games/", "_blank");
}
Symbol 478 MovieClip Frame 1
marker._visible = false;
Symbol 478 MovieClip Frame 25
if (((!this.fast) && (!this.bend)) && (!this.landscape)) {
gotoAndPlay ("slow");
}
Symbol 478 MovieClip Frame 37
if (this.fast) {
gotoAndPlay ("fast");
}
Symbol 478 MovieClip Frame 48
if (this.bend) {
gotoAndPlay ("bend");
}
Symbol 478 MovieClip Frame 64
if (this.landscape) {
gotoAndPlay ("landscape");
}
Symbol 478 MovieClip Frame 78
if (this.endLevel) {
gotoAndPlay ("endLevel");
}
Symbol 478 MovieClip Frame 89
if (this.zoomOut) {
gotoAndPlay ("zoomOut");
}
Symbol 481 MovieClip Frame 1
stop();
this._visible = false;
Symbol 481 MovieClip Frame 2
this._visible = true;
Symbol 481 MovieClip Frame 20
_root.onLevelEnd();
Symbol 501 MovieClip Frame 1
stop();
this._visible = false;
Symbol 501 MovieClip Frame 2
this._visible = true;
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 26
this._visible = false;
stop();
Symbol 504 MovieClip Frame 28
this._visible = true;
Symbol 514 MovieClip Frame 1
continueButton.onRelease = function () {
trace("pressed");
play();
};