Frame 1
mochi.MochiServices.connect("e22e8ed234514bb9");
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__("69e5a945", this, 10301, true);
Frame 2
MochiAd.showPreGameAd({id:"e22e8ed234514bb9", res:"550x400", background:0, color:8092539, outline:9737364, no_bg:true});
Frame 4
function GameOver(n) {
_root.attachMovie("GameOverShell", "GO", 31500);
_root.GO._x = 275;
_root.GO._y = 200;
if (n == "squished") {
_root.GO.reason = "You Were Squished";
}
if (n == "ammo") {
_root.GO.reason = "You Are All Out Of Ammo";
}
if (n == "shot") {
_root.GO.reason = "You Were Shot In The Head";
}
if (n == "killed") {
_root.GO.reason = "You Were Killed By A Star";
}
if (n == "champion") {
_root.GO.reason = "YOU ARE THE BOOMSTICK MASTER!";
}
i = 0;
while (i <= 50) {
_root["eSS" + i].removeMovieClip();
i++;
}
}
function playSound(z) {
if (_root.soundsOn == true) {
_root[z].start();
}
}
function makeEnemy(m, n) {
if (_root.GameTime == true) {
var _local6 = false;
i = 0;
while (i < n) {
var _local7 = random(100);
var _local4 = random(300);
if (_local7 <= 50) {
var _local5 = 570;
} else {
var _local5 = -20;
}
if (m == 1) {
var _local3 = "squareShell";
} else if (m == 2) {
var _local3 = "triShell";
} else if (m == 3) {
var _local3 = "rectShell";
} else if (m == 4) {
var _local3 = "ovalShell";
} else if (m == 5) {
var _local3 = "diamondShell";
} else if (m == 6) {
var _local3 = "shotSquareShell";
} else if (m == 7) {
var _local3 = "hexShell";
} else if (m == 8) {
var _local3 = "moonShell";
} else if (m == 9) {
var _local3 = "circShell";
} else if (m == 10) {
var _local3 = "shotTriShell";
} else if (m == 11) {
var _local3 = "ringShell";
} else if (m == 12) {
var _local3 = "shotMoonShell";
} else if (m == 13) {
var _local3 = "cylinderShell";
} else if (m == 14) {
var _local3 = "ninjaShell";
} else if (m == 15) {
var _local3 = "halfCircShell";
} else if (m == 16) {
var _local3 = "starShell";
} else if (m == 17) {
var _local3 = "trapShell";
} else if (m == 18) {
var _local3 = "paraShell";
} else if (m == 19) {
var _local3 = "shotStarShell";
} else if (m == 20) {
var _local3 = "shotNinjaShell";
} else if (m == 21) {
var _local3 = "octoShell";
_local6 = true;
}
if (_local6 == true) {
_local6 = false;
trace("made bad guy correctly!");
_root.attachMovie(_local3, "BOSS", 2);
_root.BOSS._x = _local5;
_root.BOSS._y = _local4;
} else {
_root.attachMovie(_local3, "enemy" + _root.enemyNum, 100 + _root.enemyNum);
_root["enemy" + _root.enemyNum]._x = _local5;
_root["enemy" + _root.enemyNum]._y = _local4;
if (_root.enemyNum >= 30) {
_root.enemyNum = 1;
} else {
_root.enemyNum++;
}
}
i++;
}
}
}
function killedEnemy() {
if (_root.GameTime == true) {
_root.kills++;
_root.shotCombo++;
_root.progressMeter.nextFrame();
if (_root.kills == 50) {
_root.tierName = "Tier 2";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 100) {
_root.tierName = "Tier 3";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 150) {
_root.tierName = "Tier 4";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 200) {
_root.tierName = "Tier 5";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 250) {
_root.tierName = "Tier 6";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 300) {
_root.tierName = "Tier 7";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 350) {
_root.tierName = "Tier 8";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 400) {
_root.tierName = "Tier 9";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 450) {
_root.tierName = "Tier 10";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 500) {
_root.tierName = "Tier 11";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 550) {
_root.tierName = "Tier 12";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 600) {
_root.tierName = "Tier 13";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 650) {
_root.tierName = "Tier 14";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 700) {
_root.tierName = "Tier 15";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 750) {
_root.tierName = "Tier 16";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 800) {
_root.tierName = "Tier 17";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 850) {
_root.tierName = "Tier 18";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 900) {
_root.tierName = "Tier 19";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 950) {
_root.tierName = "Tier 20";
_root.attachMovie("tierChanger", "TC", 20000);
_root.tier++;
} else if (_root.kills == 1000) {
_root.tierName = "Tier 21";
_root.attachMovie("tierChanger", "TC", 20000);
}
}
}
function powerupManager(n) {
done = function () {
_root.powerupDisplay.alphaTo(0, 1, "linear", 2.5);
};
_root.powerupDisplay.powerupBox.text = String(n);
_root.powerupDisplay.alphaTo(100, 0.3, "linear", 0, done);
}
function comboManager(n) {
if (n > 1) {
_root.attachMovie("comboText", "CM" + _root.ammo, 16000 + _root.ammo);
_root["CM" + _root.ammo]._x = 275;
_root["CM" + _root.ammo]._y = 48;
if (n == 2) {
_root["CM" + _root.ammo].combo = "<font color='#FFCC00'>Double Kill</font>";
} else if (n == 3) {
_root["CM" + _root.ammo].combo = "<font color='#A8FF00'>Triple Shot</font>";
} else if (n == 4) {
_root["CM" + _root.ammo].combo = "<font color='#00FF18'>Quad Kill!</font>";
} else if (n == 5) {
_root["CM" + _root.ammo].combo = "<font color='#00FFC6'>Quintruple KILL!</font>";
} else if (n == 6) {
_root["CM" + _root.ammo].combo = "<font color='#00DEFF'>SIX SHOOTER!</font>";
} else if (n == 7) {
_root["CM" + _root.ammo].combo = "<font color='#0060FF'>SEVEN DEAD DWARVES!</font>";
} else if (n == 8) {
_root["CM" + _root.ammo].combo = "<font color='#7E00FF'>OCHO DESTROYER!</font>";
} else if (n == 9) {
_root["CM" + _root.ammo].combo = "<font color='#EA00FF'>NINE DEAD SHAPES</font>";
} else if (n == 10) {
_root["CM" + _root.ammo].combo = "<font color='#FF0000'>BOOMSTICK DOZEN!</font>";
}
}
}
function makePowerup(a, b) {
var _local2 = random(100);
if (_local2 <= 50) {
_root.attachMovie("nukeShell", "nukeShell" + _root.powerupNum, 500 + _root.powerupNum);
_root["nukeShell" + _root.powerupNum]._x = a;
_root["nukeShell" + _root.powerupNum]._y = b;
if (_root.powerupNum > 10) {
_root.powerupNum = 0;
} else {
_root.powerupNum++;
}
} else if (_local2 <= 100) {
_root.attachMovie("speedShell", "speedShell" + _root.powerupNum, 500 + _root.powerupNum);
_root["speedShell" + _root.powerupNum]._x = a;
_root["speedShell" + _root.powerupNum]._y = b;
_root.powerupNum++;
if (_root.powerupNum > 10) {
_root.powerupNum = 0;
} else {
_root.powerupNum++;
}
}
}
function explode01(a, b, c) {
i = 0;
while (i < c) {
_root.attachMovie("debrisShell", "debris" + _root.debris, 1000 + _root.debris);
_root["debris" + _root.debris]._x = a;
_root["debris" + _root.debris]._y = b;
_root["debris" + _root.debris].cacheAsBitmap = true;
if (_root.debris > 200) {
_root.debris = 0;
} else {
_root.debris++;
}
_root.groundDebris++;
i++;
}
}
function shoot() {
_root.player.armgun.gun.gotoAndPlay(2);
_root.shotsTaken++;
_root.canShoot = false;
_root.attachMovie("ShotManager", "SM", 20002);
_root.SM._x = -40;
if (_root.ammo > 0) {
_root.playSound("S_Shot");
} else {
_root.playSound("S_Empty");
}
done = function () {
this.removeMovieClip();
};
var _local13 = -35;
if (_root.ammo >= 10) {
var _local8 = 10;
} else if ((_root.ammo < 10) && (_root.ammo > 0)) {
var _local8 = _root.ammo;
} else {
var _local8 = 0;
}
var _local11 = _root._xmouse - _root.player._x;
var _local12 = _root._ymouse - _root.player._y;
if (_root.player.head._currentframe == 1) {
var _local9 = _root.player.head.myDegrees;
var _local10 = _root.player.head._rotation;
} else {
var _local9 = _root.player.head.myDegrees + 180;
var _local10 = _root.player.head._rotation + 180;
}
_local11 = Math.abs(_local11);
var _local5 = Number(_local11 * 2) + _local11;
i = 0;
while (i < _local8) {
var _local6 = 0.45 + Number(random(10) / 10);
var _local3 = 30 + random(20);
var _local4 = (Number(_local10 - 6) + random(12)) + 90;
if (_root._xmouse <= _root.player._x) {
var _local7 = Number(_root.player._x - _local5) + random(100);
} else {
var _local7 = Number(_root.player._x + _local5) + random(100);
}
_root.attachMovie("playerShotShell", "bullet" + i, 20 + i);
_root["bullet" + i]._x = _root.player._x;
_root["bullet" + i]._y = _root.player._y - 10;
_root["bullet" + i].shotxspeed = _local3 * Math.sin(_local4 * (Math.PI/180));
_root["bullet" + i].shotyspeed = _local3 * Math.cos(_local4 * (Math.PI/180));
_root["bullet" + i]._rotation = _local9;
_root["bullet" + i].cacheAsBitmap = true;
_root.playerShell++;
i++;
}
_root.ammo = _root.ammo - _local8;
}
function shoot2() {
_root.player.armgun.gun.gotoAndPlay(2);
_root.canShoot = false;
_root.attachMovie("ShotManager", "SM", 20002);
_root.SM._x = -40;
if (_root.ammo > 0) {
_root.playSound("S_Shot");
} else {
_root.playSound("S_Empty");
}
var _local11 = -35;
i = 0;
while (i < 10) {
var _local8 = 0.45 + Number(random(10) / 10);
var _local2 = _root._xmouse - _root.player._x;
var _local9 = _root._ymouse - _root.player._y;
if (_root.player.head._currentframe == 1) {
var _local6 = _root.player.head.myDegrees;
var _local7 = _root.player.head._rotation;
} else {
var _local6 = _root.player.head.myDegrees + 180;
var _local7 = _root.player.head._rotation + 180;
}
var _local4 = 30 + random(20);
var _local5 = (Number(_local7 - 6) + random(12)) + 90;
_local2 = Math.abs(_local2);
var _local3 = Number(_local2 * 2) + _local2;
if (_root._xmouse <= _root.player._x) {
var _local10 = Number(_root.player._x - _local3) + random(100);
} else {
var _local10 = Number(_root.player._x + _local3) + random(100);
}
_root.attachMovie("playerShotShell", "bullet" + i, 20 + i);
_root["bullet" + i]._x = _root.player._x;
_root["bullet" + i]._y = _root.player._y - 10;
_root["bullet" + i].shotxspeed = _local4 * Math.sin(_local5 * (Math.PI/180));
_root["bullet" + i].shotyspeed = _local4 * Math.cos(_local5 * (Math.PI/180));
_root["bullet" + i]._rotation = _local6;
i++;
}
}
function getLayer() {
var _local3 = true;
var _local2 = b;
while (this.getInstanceAtDepth(_local2) != undefined) {
_local2 = _local2 + 1;
}
return(_local2);
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
stop();
var GameTime = false;
var ammo = 100;
var playerSpeed = 6;
var flr = 360;
var kills = 0;
var enemyNum = 1;
var debris = 0;
var debrisFadeOutTime = 3.85;
var nukeOn = false;
var speedOn = false;
var powerupNum = 0;
var soundsOn = true;
var musicOn = true;
var speedLength = 10000;
var tierName = "Tier 1";
var powerupChance = 95;
var canShoot = true;
var tutorial = true;
var reShootTime = 650;
var shotsTaken = 0;
var groundDebris = 0;
var hasPlayed = false;
var enemyShots = 0;
var sinNum = 1.22460635382238E-16;
var cosNum = -1;
var lives = 1;
var tier = 1;
var acc = 0;
var pName = "Nobody Special";
var eName = "Nobody Special";
var score = 0;
var tierScore = 0;
var bestScore = 0;
var gamePaused = false;
var shotCombo = 0;
var topTier = 0;
var highAcc = 0;
var fromTierScreen = false;
var nextTierName = "";
var modShotsTaken = 0;
var modKills = 0;
var playerShells = 0;
var pScored = 0;
var fromSubmit = false;
var tutorialEnemy = 3;
_root.abd._alpha = 0;
abdone2 = function () {
_root.gotoAndStop(5);
};
abdone = function () {
_root.abd.alphaTo(0, 1, "easeOutQuad", 2, abdone2);
};
_root.abd.alphaTo(100, 1.35, "easeOutQuad", 0, abdone);
var BoomsticK = (new com.communitymx.Cookie("BoomsticK", "/"));
_root.BoomsticKSize = _root.BoomsticK.getSize();
if (_root.BoomsticKSize == 0) {
BoomsticK.score = 0;
BoomsticK.tier = 1;
BoomsticK.highAcc = 0;
BoomsticK.playerName = "Nobody Special";
BoomsticK.save();
}
_root.attachMovie("mousecursor", "mousecursor", 31700);
_root.mousecursor._x = 275;
_root.mousecursor._y = 200;
_root.mousecursor._alpha = 100;
Mouse.hide();
_root.player.gotoAndStop(1);
_root.GameOver.removeMovieClip();
S_Nuke = new Sound();
S_Nuke.attachSound("nuke.wav");
S_Ammo = new Sound();
S_Ammo.attachSound("ammo.wav");
S_OutOfAmmo = new Sound();
S_OutOfAmmo.attachSound("outofammo.wav");
S_Dying = new Sound();
S_Dying.attachSound("dying.wav");
S_Grunt01 = new Sound();
S_Grunt01.attachSound("grunt01.wav");
S_Grunt02 = new Sound();
S_Grunt02.attachSound("grunt02.wav");
S_Grunt03 = new Sound();
S_Grunt03.attachSound("grunt03.wav");
S_eShot = new Sound();
S_eShot.attachSound("eShot.wav");
S_DieMusic = new Sound();
S_DieMusic.attachSound("diemusic.wav");
S_Empty = new Sound();
S_Empty.attachSound("empty.wav");
S_EndCount = new Sound();
S_EndCount.attachSound("endcount.wav");
S_Explode = new Sound();
S_Explode.attachSound("explode.wav");
S_Shot = new Sound();
S_Shot.attachSound("shot.wav");
S_Theme = new Sound();
S_Theme.attachSound("theme.mp3");
S_Rico = new Sound();
S_Rico.attachSound("rico.wav");
_root.S_Theme.start(0, 9999);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (_root._currentframe > 4) {
if (_root.GameTime == true) {
if (_root.canShoot == true) {
_root.shoot();
}
} else if ((((_root.GameTime == false) && (_root.tutorial == true)) && (_root.canShoot == true)) && (_root._currentframe != 25)) {
_root.shoot2();
}
}
};
Mouse.addListener(mouseListener);
Mouse.addListener(mouseListener);
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local2 = Key.getCode();
if (_local2 == 80) {
if (_root.GameTime == true) {
_root.attachMovie("menuShell", "menuShell", 16500);
_root.menuShell._x = 275;
_root.menuShell._y = 200;
_root.GameTime = false;
}
}
};
Key.addListener(keyListener);
var ranks2 = ["Complete Failure", "Atrocious", "Horrendous", "Abominal", "Loser", "Appauling", "Terrible", "Dreadful", "Aweful", "Blind as a bat", "Blindfolded", "Defective", "Lame Duck", "Pet Rock", "Barely Alive", "Unconcious", "Ridiculous", "Scared Child", "Lousy Shot", "Ridiculous", "Barely Breathing", "Weak", "Impotent", "Rickety", "Wobbly", "Uninspired", "Not bad", "Could Be Better", "A Little Rusty", "D+", "Seen a Few Worse", "Highschool Graduate", "Keep Practicing", "Needs Improvement", "Work in Progress", "Barely Entertaining", "Nice Try", "Rookie", "All Right", "Fair", "So-So", "Tolerable", "C Average", "Tame", "Humdrum", "Even Keal", "Reserved", "Novice", "Unexceptional", "Intermediate", "Low-Key", "Passable", "Moderate", "Nothing Special", "Middle of the Road", "Undistinguished", "Standard", "Mediocre", "Garden Variety", "Colorless", "Decent", "Luke Warm", "Ordinary", "Slick", "B+", "Tip-Top", "Top Notch", "Great", "Splendid", "Talented", "Top Shot", "Sharpshooter", "Wonderful", "Very Entertaining", "Shatter Master", "Showstopper", "Excellent", "Skilled", "A+", "Jedi-Master", "Adept", "Brown Belt", "Fierce", "Skillful", "Proficient", "Superb", "Distinguished", "Heroic", "Impressive", "Smashing", "Over Achiever", "Exalted", "Superior", "Brilliant", "Renowned", "Remarkable", "Show Off", "Expert", "Virtuoso", "Marvelous", "Unreal", "Incredible", "Unbelievable", "Dominating", "In-Human", "Perfection at Work", "Boomstick Master", "Sensational", "Astounding", "Magnificent", "Remarkable", "Amazing", "Unparalleled", "All Aces", "Masterful", "Magnanimous", "Astonishing", "Sublime", "Utopian", "Perfect", "The Chosen One", "Flawless", "Unrivaled", "Legendary", "Unmatched", "Phenomenal", "God-Like"];
var ranks = ["Complete Failure", "Atrocious", "Blindfolded", "Lame Duck", "Pet Rock", "Unconscious", "Scared Child", "Barely Breathing", "Impotent", "Rickety", "A Little Rusty", "D+", "Highschool Graduate", "Humdrum", "Novice", "Garden Variety", "Tip-Top", "Sharpshooter", "Shatter Master", "A+", "Jedi-Master", "Adept", "Skillful", "Distinguished", "Heroic", "Impressive", "Smashing", "Over Achiever", "Exalted", "Superior", "Brilliant", "Renowned", "Remarkable", "Show Off", "Expert", "Virtuoso", "Marvelous", "Unreal", "Incredible", "Dominating", "Astounding", "Magnificent", "Remarkable", "Amazing", "Unparalleled", "Masterful", "Magnanimous", "Astonishing", "Sublime", "The Chosen One", "Flawless", "Unrivaled", "Legendary", "Phenomenal", "God-Like"];
Instance of Symbol 326 MovieClip "abd" in Frame 4
on (press) {
getURL ("http://www.abductionstudios.com", "_blank");
}
Frame 5
stop();
_root.mousecursor.alphaTo(100, 1, "linear");
_root.S_Theme.volumeTo(100, 1, "linear");
_root.player._visible = true;
_root.shotsTaken = 0;
_root.kills = 0;
_root.playerSpeed = 6;
_root.lives = 1;
_root.tutorialEnemy = 3;
_root.debris = 0;
_root.groundDebris = 0;
if (_root.hasPlayed == false) {
_root.bestScore = _root.BoomsticK.score;
_root.eName = "Nobody Special";
_root.topTier = _root.BoomsticK.tier;
_root.highAcc = _root.BoomsticK.highAcc;
}
i = 0;
while (i <= 200) {
_root["enemy" + i].removeMovieClip();
_root["eSS" + i].removeMovieClip();
_root["debris" + i].removeMovieClip();
_root["speedShell" + i].removeMovieClip();
_root["nukeShell" + i].removeMovieClip();
i++;
}
_root.BOSS.removeMovieClip();
_root.progressMeter.removeMovieClip();
stop();
Frame 6
stop();
_root.fromTierScreen = true;
Instance of Symbol 360 MovieClip "levelselect" in Frame 6
onClipEvent (load) {
var t = (_root.topTier - 3);
this.gotoAndStop(t);
}
Frame 7
stop();
Frame 8
stop();
_root.attachMovie("squareShellTutorial", "SST1", 22222);
_root.SST1._x = 248;
_root.SST1._y = 203;
_root.attachMovie("squareShellTutorial", "SST2", 22223);
_root.SST2._x = 295;
_root.SST2._y = 238;
_root.attachMovie("squareShellTutorial", "SST3", 22224);
_root.SST3._x = 332;
_root.SST3._y = 189;
Instance of Symbol 239 MovieClip [positionMarker] in Frame 8
onClipEvent (enterFrame) {
if (_root.tutorialEnemy <= 0) {
_root.ok._y = 382;
}
if (_root.tutorialEnemy < 3) {
_root.ammotut.alphaTo(100, 1, "easeOutQuad");
}
}
Frame 9
stop();
Frame 10
stop();
_root.tierName = "Tier 1";
_root.hasPlayed = true;
_root.kills = 0;
_root.shotsTaken = 0;
_root.playerShells = 0;
_root.ammo = 100;
_root.lives = 1;
_root.modShotsTaken = 0;
_root.modKills = 0;
_root.attachMovie("tierChanger", "TC", 20000);
_root.TC._x = 185;
_root.TC._y = 150;
_root.tutorial = false;
Instance of Symbol 388 MovieClip in Frame 10
onClipEvent (load) {
this.onRollOver = function () {
_root.canShoot = false;
};
this.onRollOut = function () {
_root.canShoot = true;
};
this.onDragOut = function () {
_root.canShoot = true;
};
this.onReleaseOutside = function () {
_root.canShoot = true;
};
this.onPress = function () {
if (_root.soundsOn == true) {
_root.soundsOn = false;
this.gotoAndStop(2);
} else {
_root.soundsOn = true;
this.gotoAndStop(1);
}
};
}
Instance of Symbol 388 MovieClip in Frame 10
onClipEvent (load) {
this.onRollOver = function () {
_root.canShoot = false;
};
this.onRollOut = function () {
_root.canShoot = true;
};
this.onDragOut = function () {
_root.canShoot = true;
};
this.onReleaseOutside = function () {
_root.canShoot = true;
};
this.onPress = function () {
if (_root.musicOn == true) {
_root.musicOn = false;
_root.S_Theme.stop();
this.gotoAndStop(2);
} else {
_root.musicOn = true;
_root.S_Theme.start(0, 9999);
this.gotoAndStop(1);
}
};
}
Instance of Symbol 404 MovieClip "powerupDisplay" in Frame 10
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 29 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.GameTime == true) {
if (_root.ammo == 0) {
if ((_root.groundDebris == 0) && (_root.canShoot == false)) {
_root.GameOver("ammo");
}
}
}
}
Frame 11
stop();
_root.hasPlayed = true;
_root.ammo = 100;
_root.playerShells = 0;
_root.shotsTaken = Number(_root.tier - 1) * 50;
_root.kills = Number(_root.tier - 1) * 50;
_root.attachMovie("tierChanger", "TC", 20000);
_root.TC._x = 185;
_root.TC._y = 150;
_root.tutorial = false;
Frame 20
stop();
Frame 21
stop();
Frame 22
stop();
Frame 23
stop();
Frame 25
stop();
if (_root.fromSubmit == true) {
mochi.MochiScores.showLeaderboard({boardID:"2f9e3c4f25133c64", score:_root.pScored, name:_root.eName, hideDoneButton:true, res:"550x400", showTableRank:true, onClose:function () {
_root.gotoAndStop(5);
}});
_root.fromSubmit = false;
} else {
mochi.MochiScores.showLeaderboard({boardID:"2f9e3c4f25133c64", hideDoneButton:true, res:"550x465", showTableRank:true, onClose:function () {
_root.gotoAndStop(5);
}});
}
Frame 49
gotoAndStop (11);
Frame 50
mochi.MochiScores.closeLeaderboard();
gotoAndStop (5);
Frame 51
gotoAndStop (25);
Instance of Symbol 16 MovieClip in Symbol 17 MovieClip [mousecursor] Frame 1
onClipEvent (mouseMove) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
updateAfterEvent();
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
stop();
Symbol 21 MovieClip Frame 3
stop();
Symbol 21 MovieClip Frame 4
stop();
Symbol 21 MovieClip Frame 5
stop();
Symbol 21 MovieClip Frame 6
stop();
Symbol 21 MovieClip Frame 7
stop();
Symbol 21 MovieClip Frame 8
stop();
Symbol 21 MovieClip Frame 9
stop();
Symbol 21 MovieClip Frame 10
stop();
Symbol 21 MovieClip Frame 11
stop();
Symbol 21 MovieClip Frame 12
stop();
Symbol 21 MovieClip Frame 13
stop();
Symbol 21 MovieClip Frame 14
stop();
Symbol 21 MovieClip Frame 15
stop();
Symbol 21 MovieClip Frame 16
stop();
Symbol 21 MovieClip Frame 17
stop();
Symbol 21 MovieClip Frame 18
stop();
Symbol 21 MovieClip Frame 19
stop();
Symbol 21 MovieClip Frame 20
stop();
Symbol 21 MovieClip Frame 21
stop();
Symbol 21 MovieClip Frame 22
stop();
Symbol 21 MovieClip Frame 23
stop();
Symbol 21 MovieClip Frame 24
stop();
Symbol 21 MovieClip Frame 25
stop();
Symbol 21 MovieClip Frame 26
stop();
Symbol 21 MovieClip Frame 27
stop();
Symbol 21 MovieClip Frame 28
stop();
Symbol 21 MovieClip Frame 29
stop();
Symbol 21 MovieClip Frame 30
stop();
Instance of Symbol 21 MovieClip "brain" in Symbol 22 MovieClip [hexShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 14);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 14);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 7;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 24;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
gotoAndStop(30 - health);
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 24 MovieClip "brain" in Symbol 25 MovieClip [triShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 2;
var yy = _parent._y;
var yyy = random(300);
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
doney = function () {
_parent.ySlideTo(yy, tt, "linear");
};
var t = (2 + random(4));
var tt = (t / 2);
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
_parent.ySlideTo(yyy, tt, "linear", 0, doney);
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 27 MovieClip "brain" in Symbol 30 MovieClip [circShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 9;
_parent._y = 342;
var delay = (2 + random(3));
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = 15;
if (_parent._x > 550) {
_parent._x = 600 + random(100);
_parent.xSlideTo(-40, t, "linear", delay, done);
_parent.onEnterFrame = function () {
this._rotation = this._rotation - 5;
};
} else {
_parent._x = -300 + random(100);
_parent.xSlideTo(590, t, "linear", delay, done);
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
}
var health = 1;
}
onClipEvent (enterFrame) {
if ((_parent.col.hitTest(_root.player) && (_parent._alpha == 100)) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(2);
_root.playSound("S_Dying");
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 32 MovieClip "brain" in Symbol 33 MovieClip [ovalShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 5);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 5);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 10;
};
var en = 4;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (3 + random(3));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 35 MovieClip "brain" in Symbol 36 MovieClip [shotOctShell2] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 19;
done = function () {
this.removeMovieClip();
};
var health = 4;
}
onClipEvent (enterFrame) {
if (_root.GameTime == true) {
_parent.slideTo(_root.player._x, _root.player._y, 0.8, "linear");
}
if ((_parent.col.hitTest(_root.player.col) && (_parent._alpha == 100)) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(3);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 35 MovieClip "brain" in Symbol 37 MovieClip [shotOctShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 19;
done = function () {
this.removeMovieClip();
};
var health = 4;
}
onClipEvent (enterFrame) {
if (_root.GameTime == true) {
_parent.slideTo(_root.player._x, _root.player._y, 1.5, "linear");
}
if ((_parent.col.hitTest(_root.player.col) && (_parent._alpha == 100)) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(3);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 39 MovieClip "brain" in Symbol 40 MovieClip [shotStarShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 19;
var shotTime = 800;
var st = getTimer();
var et = 0;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
if (_root.GameTime == true) {
if (dead == false) {
et = getTimer() - st;
if (et > shotTime) {
_parent._alpha = 5;
_parent.alphaTo(100, 0.25, "linear");
_root.playSound("S_eShot");
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x;
_root["eSS" + _root.enemyShots]._y = _parent._y;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
_parent.slideTo(_root.player._x, _root.player._y, 2, "linear");
if (_parent.col.hitTest(_root.player.col) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(2);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
}
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 45 MovieClip "brain" in Symbol 46 MovieClip [octoShell] Frame 1
onClipEvent (load) {
function die2() {
trace("fired boss win!");
_root.playSound("S_Nuke");
_root.kills = _root.kills + 25;
_root.explode01(_parent._x, _parent.y, 50);
_root.killedEnemy();
_root.GameOver("champion");
_parent.removeMovieClip();
}
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 3;
};
_parent._x = 275;
_parent._y = -60;
var en = 21;
var shotTime = 650;
var makeHarderTime = 65000;
var shotType = "shotOctShell";
var st = getTimer();
var stt = getTimer();
var et = 0;
done = function () {
this.removeMovieClip();
};
_parent.ySlideTo(80, 3, "easeOutQuad");
var health = 500;
}
onClipEvent (enterFrame) {
et = getTimer() - st;
ett = getTimer() - stt;
if ((et > shotTime) && (_root.GameTime == true)) {
_root.playSound("S_eShot");
var zz = _root.getLayer();
_root.attachMovie(shotType, "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x;
_root["eSS" + _root.enemyShots]._y = _parent._y;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
if ((ett > makeHarderTime) && (_root.GameTime == true)) {
_parent.slideTo(_root.player._x, _root.player._y, 20, "linear");
if ((_parent.col.hitTest(_root.player.col) && (_parent._alpha == 100)) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(3);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
trace(health);
gotoAndStop(500 - health);
_root["bullet" + i].canHit = false;
}
trace(health);
if (health <= 0) {
trace("killed me!" + health);
die2();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 48 MovieClip "brain" in Symbol 49 MovieClip [shotNinjaShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 20;
var shotTime = 700;
var st = getTimer();
var et = 0;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
this._rotation = this._rotation - 30;
_parent.xSlideTo(-60, t, "linear", 0, done);
} else {
this._rotation = this._rotation + 30;
_parent.xSlideTo(620, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
et = getTimer() - st;
if (((et > shotTime) && (_root.GameTime == true)) && (_parent._alpha > 0)) {
_parent._alpha = 5;
_parent.alphaTo(100, 0.25, "linear");
_root.playSound("S_eShot");
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x;
_root["eSS" + _root.enemyShots]._y = _parent._y;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 53 MovieClip Frame 3
stop();
Symbol 53 MovieClip Frame 4
stop();
Symbol 53 MovieClip Frame 5
stop();
Symbol 53 MovieClip Frame 6
stop();
Symbol 53 MovieClip Frame 7
stop();
Symbol 53 MovieClip Frame 8
stop();
Symbol 53 MovieClip Frame 9
stop();
Symbol 53 MovieClip Frame 10
stop();
Instance of Symbol 53 MovieClip "brain" in Symbol 54 MovieClip [paraShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 10);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 10);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 18;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 5;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(5 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 56 MovieClip "brain" in Symbol 57 MovieClip [trapShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 4);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 4);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 15;
};
var en = 17;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 3
stop();
Symbol 61 MovieClip Frame 4
stop();
Symbol 61 MovieClip Frame 5
Instance of Symbol 61 MovieClip "brain" in Symbol 62 MovieClip [starShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 7);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
_parent._y = -40;
_parent._x = random(550);
var en = 16;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var health = 5;
}
onClipEvent (enterFrame) {
if (dead == false) {
if (_root.GameTime == true) {
_parent.slideTo(_root.player._x, _root.player._y, 2, "linear");
}
if ((_parent.col.hitTest(_root.player.col) && (_parent._alpha == 100)) && (_root.GameTime == true)) {
_root.GameTime = false;
_root.player.gotoAndStop(3);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(5 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
Instance of Symbol 64 MovieClip "brain" in Symbol 65 MovieClip [halfCircShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 6);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 6);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 15;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
doney1 = function () {
_parent.ySlideTo(10, tt, "linear", 0, doney2);
};
doney2 = function () {
_parent.ySlideTo(300, tt, "linear", 0, doney3);
};
doney3 = function () {
_parent.ySlideTo(10, tt, "linear", 0, doney4);
};
doney4 = function () {
_parent.ySlideTo(300, tt, "linear", 0, doney3);
};
var t = (3 + random(4));
var tt = ((t / 4) + Number(random(6) / 10));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
_parent.ySlideTo(300, tt, "linear", 0, doney1);
var health = 4;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(3 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 69 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 7
stop();
Symbol 69 MovieClip Frame 8
stop();
Symbol 69 MovieClip Frame 9
stop();
Symbol 69 MovieClip Frame 10
stop();
Instance of Symbol 69 MovieClip "brain" in Symbol 70 MovieClip [ninjaShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 8);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 8);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 14;
var yy = _parent._y;
var yyy = random(300);
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
doney = function () {
_parent.ySlideTo(yy, tt, "linear");
};
var t = (2 + random(4));
var tt = (t / 3);
if (_parent._x > 550) {
_parent.onEnterFrame = function () {
this._rotation = this._rotation - 30;
};
_parent.xSlideTo(-70, t, "easeOutQuad", 0, done);
} else {
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 30;
};
_parent.xSlideTo(620, t, "easeOutQuad", 0, done);
}
_parent.ySlideTo(yyy, tt, "linear", 0, doney);
var health = 6;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(10 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 72 MovieClip "brain" in Symbol 73 MovieClip [cylinderShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 6);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 6);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 13;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (1.65 + random(3));
if (_parent._x > 550) {
_parent._x = 600 + random(100);
_parent.xSlideTo(-20, t, "linear", delay, done);
_parent.onEnterFrame = function () {
this._rotation = this._rotation - 40;
};
} else {
_parent._x = -300 + random(100);
_parent.xSlideTo(570, t, "linear", delay, done);
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 40;
};
}
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 75 MovieClip "brain" in Symbol 76 MovieClip [shotMoonShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 8);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 8);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 12;
_parent._y = -40;
var shotTime = 1200;
var st = getTimer();
var et = 0;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
donea = function () {
this.rotateTo(-90, 0.3, "linear", 0, donea2);
};
doneb = function () {
this.rotateTo(90, 0.3, "linear", 0, doneb2);
};
donea2 = function () {
this.xSlideTo(600, 1.5, "easeOutQuad", 0, done);
};
doneb2 = function () {
this.xSlideTo(-50, 1.5, "easeOutQuad", 0, done);
};
var t = (2 + random(2));
var rand = random(100);
if (rand >= 50) {
_parent._x = 200;
_parent.ySlideTo(265, t, "easeOutQuad", 0, donea);
} else {
_parent._x = 350;
_parent.ySlideTo(265, t, "easeOutQuad", 0, doneb);
}
var health = 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
et = getTimer() - st;
if (((et > shotTime) && (_parent._rotation == 0)) && (_root.GameTime == true)) {
_parent._alpha = 5;
_parent.alphaTo(100, 0.4, "linear");
_root.playSound("S_eShot");
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x - 24;
_root["eSS" + _root.enemyShots]._y = _parent._y + 4;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x + 24;
_root["eSS" + _root.enemyShots]._y = _parent._y + 4;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
_root["bullet" + i].canHit = false;
}
trace(health);
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 4
stop();
Symbol 80 MovieClip Frame 5
stop();
Symbol 80 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 7
stop();
Symbol 80 MovieClip Frame 8
stop();
Symbol 80 MovieClip Frame 9
stop();
Symbol 80 MovieClip Frame 10
stop();
Instance of Symbol 80 MovieClip "brain" in Symbol 81 MovieClip [ringShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 5);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 5);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 11;
_parent.onEnterFrame = function () {
this._rotation = this._rotation + 15;
};
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 5;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(5 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Instance of Symbol 85 MovieClip "brain" in Symbol 86 MovieClip [diamondShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 5);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 5);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 5;
var rand = random(100);
var rand2 = random(100);
var t = (2 + random(3));
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
if (rand >= 50) {
if (rand2 >= 50) {
_parent._x = -40;
_parent._y = -40;
_parent.slideTo(600, 300, t, "easeInQuad", 0, done);
} else {
_parent._x = 600;
_parent._y = 300;
_parent.slideTo(-40, -40, t, "easeInQuad", 0, done);
}
} else if (rand2 >= 50) {
_parent._x = 600;
_parent._y = -40;
_parent.slideTo(-40, 300, t, "easeInQuad", 0, done);
} else {
_parent._x = -40;
_parent._y = 300;
_parent.slideTo(600, -40, t, "easeInQuad", 0, done);
}
var health = 3;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(3 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 88 MovieClip "brain" in Symbol 89 MovieClip [shotTriShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 5);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 5);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 10;
var yy = _parent._y;
var yyy = random(300);
var shotTime = 1000;
var st = getTimer();
var et = 0;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
doney = function () {
_parent.ySlideTo(yy, tt, "linear");
};
var t = (2 + random(4));
var tt = (t / 2);
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
_parent.ySlideTo(yyy, tt, "linear", 0, doney);
var health = 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
et = getTimer() - st;
if ((et > shotTime) && (_root.GameTime == true)) {
_parent._alpha = 5;
_parent.alphaTo(100, 0.25, "linear");
_root.playSound("S_eShot");
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x;
_root["eSS" + _root.enemyShots]._y = _parent._y;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Instance of Symbol 93 MovieClip "brain" in Symbol 94 MovieClip [moonShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 8);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 8);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 8;
_parent._y = -40;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
donea = function () {
this.rotateTo(-90, 0.3, "linear", 0, donea2);
};
doneb = function () {
this.rotateTo(90, 0.3, "linear", 0, doneb2);
};
donea2 = function () {
this.xSlideTo(600, 1.5, "easeOutQuad", 0, done);
};
doneb2 = function () {
this.xSlideTo(-50, 1.5, "easeOutQuad", 0, done);
};
var t = (2 + random(2));
var rand = random(100);
if (rand >= 50) {
_parent._x = 200;
_parent.ySlideTo(265, t, "easeOutQuad", 0, donea);
} else {
_parent._x = 350;
_parent.ySlideTo(265, t, "easeOutQuad", 0, doneb);
}
var health = 4;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(4 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 96 MovieClip "brain" in Symbol 97 MovieClip [shotSquareShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, Number(7 + _root.shotCombo));
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
dead = true;
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 7);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 6;
var shotTime = 1350;
var st = getTimer();
var et = 0;
var dead = false;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
et = getTimer() - st;
if ((et > shotTime) && (_root.GameTime == true)) {
_parent._alpha = 5;
_parent.alphaTo(100, 0.25, "linear");
_root.playSound("S_eShot");
_root.attachMovie("eShotShell", "eSS" + _root.enemyShots, 3200 + _root.enemyShots);
_root["eSS" + _root.enemyShots]._x = _parent._x;
_root["eSS" + _root.enemyShots]._y = _parent._y;
_root["eSS" + _root.enemyShots].shotxspeed = 10 * _root.sinNum;
_root["eSS" + _root.enemyShots].shotyspeed = 10 * _root.cosNum;
if (_root.enemyShots == 30) {
_root.enemyShots = 0;
} else {
_root.enemyShots++;
}
st = getTimer();
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha > 0)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 101 MovieClip Frame 4
stop();
Symbol 101 MovieClip Frame 5
stop();
Instance of Symbol 101 MovieClip "brain" in Symbol 102 MovieClip [rectShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 6);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 6);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 3;
var q = random(100);
var yyy = _parent._y;
if (q >= 50) {
var yy = 0;
} else {
var yy = 300;
}
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (4 + random(5));
if (_parent._x > 550) {
_parent.bezierSlideTo(275, yy, -60, yyy, t, "easeOutQuad", 0, done);
} else {
_parent.bezierSlideTo(275, yy, 600, yyy, t, "easeOutQuad", 0, done);
}
var health = 5;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
if (_root["bullet" + i].canHit == undefined) {
health--;
gotoAndStop(5 - health);
}
if (health <= 0) {
die();
} else if (_root["bullet" + i].canHit == undefined) {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].canHit = false;
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root["bullet" + i].canHit = false;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 104 MovieClip "brain" in Symbol 105 MovieClip [squareShellTutorial] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 8);
_root.tutorialEnemy--;
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 8);
_root.killedEnemy();
_root.tutorialEnemy--;
this.removeMovieClip();
}
var en = 1;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 104 MovieClip "brain" in Symbol 106 MovieClip [squareShell] Frame 1
onClipEvent (load) {
function die2() {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 8);
_root.killedEnemy();
_parent.removeMovieClip();
}
function die(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local6 = random(100);
if ((_local6 > _root.powerupChance) && (n == undefined)) {
_root.makePowerup(_parent._x, _parent._y);
}
var _local5 = _parent._x;
var _local4 = _parent._y;
_root.explode01(_local5, _local4, 8);
_root.killedEnemy();
reset = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
_parent.alphaTo(0, n, "linear", 0, reset);
}
var en = 1;
done = function () {
_root.makeEnemy(en, 1);
this.removeMovieClip();
};
var t = (2 + random(4));
if (_parent._x > 550) {
_parent.xSlideTo(-20, t, "linear", 0, done);
} else {
_parent.xSlideTo(570, t, "linear", 0, done);
}
var health = 1;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip [playerShotShell] Frame 1
onClipEvent (load) {
kill = function () {
_root.playerShells--;
this.removeMovieClip();
};
_parent.alphaTo(100, 0, "linear", 1, kill);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.shotxspeed;
_parent._y = _parent._y - _parent.shotyspeed;
if ((_parent._x > 570) || (_parent._x < -20)) {
_root.playerShells--;
_parent.removeMovieClip();
}
if ((_parent._y > 420) || (_parent._y < -20)) {
_root.playerShells--;
_parent.removeMovieClip();
}
}
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip [speedShell] Frame 1
onClipEvent (load) {
var xx = (Number(_parent._x - 100) + random(200));
var yy = (Number(_parent._y - 200) + random(100));
var t = (0.5 + Number(random(10) / 10));
var tt = (t / 2);
destroy = function () {
this.removeMovieClip();
};
done2 = function () {
this.alphaTo(0, 1, "linear", 2.5, destroy);
};
done = function () {
var _local3 = Number(this._x - 30) + random(60);
if (xx < _local3) {
var _local4 = this._x + Number(10 + random(30));
} else {
var _local4 = this._x - Number(10 + random(30));
}
this.bezierSlideTo(_local3, 300, _local4, _root.flr - 14, 0.4, "linear", 0, done2);
};
_parent.bezierSlideTo(xx, yy, xx, _root.flr - 14, t, "linear", 0, done);
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.player)) {
_root.powerupManager("Speed Boost");
_root.attachMovie("speedTimer", "sp", 15000);
_root.sp._x = -40;
_parent.removeMovieClip();
}
}
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip [freeShell] Frame 1
onClipEvent (load) {
var xx = (Number(_parent._x - 100) + random(200));
var yy = (Number(_parent._y - 200) + random(100));
var t = (0.5 + Number(random(10) / 10));
var tt = (t / 2);
destroy = function () {
this.removeMovieClip();
};
done2 = function () {
this.alphaTo(0, 1, "linear", 2.5, destroy);
};
done = function () {
var _local3 = Number(this._x - 30) + random(60);
if (xx < _local3) {
var _local4 = this._x + Number(10 + random(30));
} else {
var _local4 = this._x - Number(10 + random(30));
}
this.bezierSlideTo(_local3, 300, _local4, _root.flr - 14, 0.4, "linear", 0, done2);
};
_parent.bezierSlideTo(xx, yy, xx, _root.flr - 14, t, "linear", 0, done);
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.player)) {
if (_root.lives > 5) {
_root.lives++;
_root.powerupManager("Free Life");
}
_parent.removeMovieClip();
}
}
Instance of Symbol 119 MovieClip in Symbol 120 MovieClip [nukeShell] Frame 1
onClipEvent (load) {
var xx = (Number(_parent._x - 100) + random(200));
var yy = (Number(_parent._y - 200) + random(100));
var t = (0.5 + Number(random(10) / 10));
var tt = (t / 2);
destroy = function () {
this.removeMovieClip();
};
done2 = function () {
this.alphaTo(0, 1, "linear", 2.5, destroy);
};
done = function () {
var _local3 = Number(this._x - 30) + random(60);
if (xx < _local3) {
var _local4 = this._x + Number(10 + random(30));
} else {
var _local4 = this._x - Number(10 + random(30));
}
this.bezierSlideTo(_local3, 300, _local4, _root.flr - 14, 0.4, "linear", 0, done2);
};
_parent.bezierSlideTo(xx, yy, xx, _root.flr - 14, t, "linear", 0, done);
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.player)) {
_root.shotCombo = 0;
_root.powerupManager("Nuke");
_root.attachMovie("nukeEffectShell", "nukeEffect", 15001);
_root.nukeEffect._x = 0;
_root.nukeEffect._y = 0;
_root.playSound("S_Nuke");
_root.ammo++;
_parent.removeMovieClip();
}
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip [eShotShell] Frame 1
onClipEvent (load) {
function die(n) {
_parent._alpha = 0;
var _local3 = _parent._x;
var _local2 = _parent._y;
_parent.removeMovieClip();
}
var health = 1;
}
onClipEvent (enterFrame) {
if (_root.GameTime == true) {
_parent._x = _parent._x + _parent.shotxspeed;
_parent._y = _parent._y - _parent.shotyspeed;
}
var qt = (_root.flr + 3);
if ((_parent._y >= qt) && (_root.GameTime == true)) {
_root.playSound("S_Rico");
_parent.removeMovieClip();
}
if (this.hitTest(_root.player.col) && (_root.GameTime == true)) {
var e = random(100);
if (e <= 33) {
_root.playSound("S_Grunt01");
} else if (e <= 66) {
_root.playSound("S_Grunt02");
} else if (e <= 100) {
_root.playSound("S_Grunt03");
}
if (_root.ammo > 5) {
_root.ammo = _root.ammo - 5;
var t = 5;
} else {
_root.ammo = 0;
var t = _root.ammo;
}
i = 0;
while (i <= t) {
_root.attachMovie("EndGameChecker", "EGC", 20005);
_root.EGC._x = -40;
_root.attachMovie("playerDebris", "PLD", 560 + i);
_root.PLD._x = _root.player._x;
_root.PLD._y = _root.player._y;
i++;
}
_root.player.gotoAndStop(4);
if (_parent._x > _root.player._x) {
_root.player._xscale = 100;
} else {
_root.player._xscale = -100;
}
die();
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Instance of Symbol 125 MovieClip in Symbol 126 MovieClip [playerDebris] Frame 1
onClipEvent (load) {
_parent._x = _root.player._x;
_parent._y = _root.player._y;
var xx = (Number(_root.player._x - 100) + random(200));
var yy = (Number(_root.player._y - 200) + random(100));
var t = (0.75 + Number(random(10) / 10));
done = function () {
this.removeMovieClip();
};
_parent.bezierSlideTo(xx, yy, xx, 500, t, "linear", 0, done);
_parent.rotateTo(random(360), t, "linear");
}
Instance of Symbol 128 MovieClip in Symbol 129 MovieClip [debrisShell] Frame 1
onClipEvent (load) {
var xx = (Number(_parent._x - 100) + random(200));
var yy = (Number(_parent._y - 200) + random(100));
var t = (0.45 + Number(random(10) / 10));
var tt = (t / 2);
destroy = function () {
_root.groundDebris--;
this.removeMovieClip();
};
done2 = function () {
this.alphaTo(0, 1, "linear", _root.debrisFadeOutTime, destroy);
};
done = function () {
var _local4 = Number(this._x - 30) + random(60);
if (xx < _local4) {
var _local5 = this._x + Number(10 + random(30));
} else {
var _local5 = this._x - Number(10 + random(30));
}
this.bezierSlideTo(_local4, 300, _local5, _root.flr, 0.4, "linear", 0, done2);
_parent.rotateTo(0, 0.4, "linear");
};
_parent.bezierSlideTo(xx, yy, xx, _root.flr, t, "linear", 0, done);
_parent.rotateTo(random(360), t, "linear");
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.player)) {
_root.groundDebris--;
_root.ammo++;
_root.playSound("S_Ammo");
_parent.removeMovieClip();
}
}
Symbol 195 MovieClip Frame 1
if (_root.tierName == "Tier 1") {
stop();
}
Symbol 195 MovieClip Frame 2
if (_root.tierName == "Tier 2") {
stop();
}
Symbol 195 MovieClip Frame 3
if (_root.tierName == "Tier 3") {
stop();
}
Symbol 195 MovieClip Frame 4
if (_root.tierName == "Tier 4") {
stop();
}
Symbol 195 MovieClip Frame 5
if (_root.tierName == "Tier 5") {
stop();
}
Symbol 195 MovieClip Frame 6
if (_root.tierName == "Tier 6") {
stop();
}
Symbol 195 MovieClip Frame 7
if (_root.tierName == "Tier 7") {
stop();
}
Symbol 195 MovieClip Frame 8
if (_root.tierName == "Tier 8") {
stop();
}
Symbol 195 MovieClip Frame 9
if (_root.tierName == "Tier 9") {
stop();
}
Symbol 195 MovieClip Frame 10
if (_root.tierName == "Tier 10") {
stop();
}
Symbol 195 MovieClip Frame 11
if (_root.tierName == "Tier 11") {
stop();
}
Symbol 195 MovieClip Frame 12
if (_root.tierName == "Tier 12") {
stop();
}
Symbol 195 MovieClip Frame 13
if (_root.tierName == "Tier 13") {
stop();
}
Symbol 195 MovieClip Frame 14
if (_root.tierName == "Tier 14") {
stop();
}
Symbol 195 MovieClip Frame 15
if (_root.tierName == "Tier 15") {
stop();
}
Symbol 195 MovieClip Frame 16
if (_root.tierName == "Tier 16") {
stop();
}
Symbol 195 MovieClip Frame 17
if (_root.tierName == "Tier 17") {
stop();
}
Symbol 195 MovieClip Frame 18
if (_root.tierName == "Tier 18") {
stop();
}
Symbol 195 MovieClip Frame 19
if (_root.tierName == "Tier 19") {
stop();
}
Symbol 195 MovieClip Frame 20
if (_root.tierName == "Tier 20") {
stop();
}
Symbol 195 MovieClip Frame 21
if (_root.tierName == "Tier 21") {
stop();
}
Symbol 219 Button
on (press) {
if (_root.score > _root.bestScore) {
_root.bestScore = _root.score;
_root.BoomsticK.score = _root.score;
_root.BoomsticK.save();
_root.attachMovie("submitScores", "SS", 27000);
_root.SS._x = 275;
_root.SS._y = 200;
this.removeMovieClip();
} else {
_root.attachMovie("submitScores", "SS", 27000);
_root.SS._x = 275;
_root.SS._y = 200;
this.removeMovieClip();
}
}
Symbol 225 MovieClip [GameOverShell] Frame 1
stop();
this._alpha = 0;
this.alphaTo(100, 2, "linear", 1);
_root.GameTime = false;
var ab = (Number(Number(_root.kills - _root.modKills) / Number(_root.shotsTaken - _root.modShotsTaken)) * 100);
var rankText = "";
var rand = random(20);
_root.tierScore = _root.tier * 5;
var tip01 = "Make sure to pick up as much of the ammo as you can!";
var tip02 = "Shooting multiple enemies will yeild more ammo for your buck (shot).";
var tip03 = "Wait for enemies to 'line-up' to kill more than one at a time.";
var tip04 = "Your final score is determined by your accuracy, kills and which tier you got to.";
var tip05 = "Wait to grab the Nuke till as many enemies are on the screen as possible.";
var tip06 = "Keep Moving!!! Strafe back and forth to collect as much as Ammo as you can.";
var tip07 = "Some enemies take more than one hit to kill them.";
var tip08 = "Having trouble? Make every shot count.";
var tip09 = "Destroy the enemies that shoot first! They can really cause havok.";
var tip10 = "With the Speed Boost Powerup you can collect Ammo very quickly.";
var randomN = random(100);
if (randomN <= 10) {
var tipText = tip01;
} else if (randomN <= 20) {
var tipText = tip02;
} else if (randomN <= 30) {
var tipText = tip03;
} else if (randomN <= 40) {
var tipText = tip04;
} else if (randomN <= 50) {
var tipText = tip05;
} else if (randomN <= 60) {
var tipText = tip06;
} else if (randomN <= 70) {
var tipText = tip07;
} else if (randomN <= 80) {
var tipText = tip08;
} else if (randomN <= 90) {
var tipText = tip09;
} else if (randomN <= 100) {
var tipText = tip10;
}
var av = (Math.round(ab * 100) / 100);
var ac = (String(av) + "%");
_root.acc = av;
_root.score = Number(_root.kills + _root.acc) + _root.tierScore;
if (reason == "YOU ARE THE BOOMSTICK MASTER!") {
titleText = "WINNER!";
_root.score = _root.score + 1000;
}
if (_root.tier > _root.topTier) {
_root.topTier = _root.tier;
_root.BoomsticK.tier = _root.topTier;
}
if (_root.highAcc < av) {
_root.highAcc = av;
_root.BoomsticK.highAcc = _root.highAcc;
}
_root.BoomsticK.save();
if (av <= 79) {
rankText = "Worst of the Worst";
} else if (av <= 84) {
rankText = String(_root.ranks[0]);
} else if (av <= 86) {
rankText = String(_root.ranks[1]);
} else if (av <= 88) {
rankText = String(_root.ranks[2]);
} else if (av <= 92) {
rankText = String(_root.ranks[3]);
} else if (av <= 96) {
rankText = String(_root.ranks[4]);
} else if (av <= 100) {
rankText = String(_root.ranks[5]);
} else if (av <= 104) {
rankText = String(_root.ranks[6]);
} else if (av <= 108) {
rankText = String(_root.ranks[7]);
} else if (av <= 112) {
rankText = String(_root.ranks[8]);
} else if (av <= 116) {
rankText = String(_root.ranks[9]);
} else if (av <= 120) {
rankText = String(_root.ranks[10]);
} else if (av <= 124) {
rankText = String(_root.ranks[11]);
} else if (av <= 128) {
rankText = String(_root.ranks[12]);
} else if (av <= 132) {
rankText = String(_root.ranks[13]);
} else if (av <= 136) {
rankText = String(_root.ranks[14]);
} else if (av <= 140) {
rankText = String(_root.ranks[15]);
} else if (av <= 144) {
rankText = String(_root.ranks[16]);
} else if (av <= 148) {
rankText = String(_root.ranks[17]);
} else if (av <= 152) {
rankText = String(_root.ranks[18]);
} else if (av <= 156) {
rankText = String(_root.ranks[19]);
} else if (av <= 160) {
rankText = String(_root.ranks[20]);
} else if (av <= 164) {
rankText = String(_root.ranks[21]);
} else if (av <= 168) {
rankText = String(_root.ranks[22]);
} else if (av <= 172) {
rankText = String(_root.ranks[23]);
} else if (av <= 176) {
rankText = String(_root.ranks[24]);
} else if (av <= 180) {
rankText = String(_root.ranks[25]);
} else if (av <= 184) {
rankText = String(_root.ranks[26]);
} else if (av <= 188) {
rankText = String(_root.ranks[27]);
} else if (av <= 192) {
rankText = String(_root.ranks[28]);
} else if (av <= 196) {
rankText = String(_root.ranks[29]);
} else if (av <= 200) {
rankText = String(_root.ranks[30]);
} else if (av <= 204) {
rankText = String(_root.ranks[31]);
} else if (av <= 208) {
rankText = String(_root.ranks[32]);
} else if (av <= 212) {
rankText = String(_root.ranks[33]);
} else if (av <= 216) {
rankText = String(_root.ranks[34]);
} else if (av <= 220) {
rankText = String(_root.ranks[35]);
} else if (av <= 224) {
rankText = String(_root.ranks[36]);
} else if (av <= 228) {
rankText = String(_root.ranks[37]);
} else if (av <= 232) {
rankText = String(_root.ranks[38]);
} else if (av <= 236) {
rankText = String(_root.ranks[39]);
} else if (av <= 240) {
rankText = String(_root.ranks[40]);
} else if (av <= 244) {
rankText = String(_root.ranks[41]);
} else if (av <= 248) {
rankText = String(_root.ranks[42]);
} else if (av <= 252) {
rankText = String(_root.ranks[43]);
} else if (av <= 256) {
rankText = String(_root.ranks[44]);
} else if (av <= 260) {
rankText = String(_root.ranks[45]);
} else if (av <= 264) {
rankText = String(_root.ranks[46]);
} else if (av <= 268) {
rankText = String(_root.ranks[47]);
} else if (av <= 272) {
rankText = String(_root.ranks[48]);
} else if (av <= 276) {
rankText = String(_root.ranks[50]);
} else if (av <= 280) {
rankText = String(_root.ranks[51]);
} else if (av <= 284) {
rankText = String(_root.ranks[52]);
} else if (av <= 288) {
rankText = String(_root.ranks[53]);
} else if (av <= 292) {
rankText = String(_root.ranks[54]);
} else {
rankText = _root.ranks[_root.ranks.length - 1];
}
pso = function () {
_root.playSound("S_DieMusic");
if (_root.player._currentframe == 1) {
_root.player._visible = false;
}
var _local2 = "Game Over";
play();
};
_root.S_Theme.volumeTo(40, 1, "linear", 1, pso);
Symbol 225 MovieClip [GameOverShell] Frame 20
_root.GameTime = false;
_root.playSound("S_EndCount");
Symbol 225 MovieClip [GameOverShell] Frame 40
_root.playSound("S_EndCount");
Symbol 225 MovieClip [GameOverShell] Frame 60
_root.playSound("S_EndCount");
Symbol 225 MovieClip [GameOverShell] Frame 79
stop();
_root.playerShells = 0;
if (reason == "YOU ARE THE BOOMSTICK MASTER!") {
titleText = "WINNER!";
}
if (_root.bestScore == undefined) {
_root.bestScore = 0;
}
_root.progressMeter.removeMovieClip();
_root.playSound("S_EndCount");
i = 0;
while (i <= 30) {
_root["enemy" + i].removeMovieClip();
i++;
}
_root.BOSS.removeMovieClip();
Instance of Symbol 221 MovieClip "bestYet" in Symbol 225 MovieClip [GameOverShell] Frame 79
onClipEvent (load) {
this._alpha = 0;
if (_root.score > _root.bestScore) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 224 MovieClip in Symbol 225 MovieClip [GameOverShell] Frame 79
onClipEvent (load) {
if (_parent.reason == "YOU ARE THE BOOMSTICK MASTER!") {
this._alpha = 100;
}
}
Instance of Symbol 29 MovieClip in Symbol 226 MovieClip [speedTimer] Frame 1
onClipEvent (load) {
_root.playerSpeed = 14;
_root.player.speedBooster._alpha = 100;
var t = getTimer();
var et = (getTimer() - t);
}
onClipEvent (enterFrame) {
et = getTimer() - t;
if (et > _root.speedLength) {
_root.player.speedBooster._alpha = 0;
_root.playerSpeed = 5;
t = getTimer();
_parent.removeMovieClip();
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip [nukeEffectShell] Frame 1
onClipEvent (load) {
done = function () {
_parent.removeMovieClip();
};
i = 0;
while (i <= 30) {
_root["enemy" + i].brain.die(2);
_root["eSS" + i].brain.die(2);
i++;
}
_root.shotCombo = 0;
_parent.alphaTo(0, 2, "easeInQuad", 0, done);
}
Symbol 236 MovieClip [tierChanger] Frame 1
_root.GameTime = false;
_root.S_Theme.volumeTo(100, 1, "linear");
this._x = 185;
this._y = 150;
i = 0;
while (i <= 30) {
_root["enemy" + i].brain.die2();
_root["eSS" + i].removeMovieClip();
i++;
}
var ab = (Number(Number(_root.kills - _root.modKills) / Number(_root.shotsTaken - _root.modShotsTaken)) * 100);
var rankText = "";
if ((_root.tierName == "Tier 1") || (_root.fromTierScreen == true)) {
_root.modShotsTaken = Number(_root.tier - 1) * 50;
_root.modKills = Number(_root.tier - 1) * 50;
var ac = "100%";
rankText = "Just Beginning";
_root.fromTierScreen = false;
} else {
var av = (Math.round(ab * 100) / 100);
_root.acc = av;
var ac = (String(av) + "%");
var at = (Number(Math.floor(av)) - 79);
var z = (_root.ranks.length + 79);
if (av <= 79) {
rankText = "Worst of the Worst";
} else if (av <= 84) {
rankText = String(_root.ranks[0]);
} else if (av <= 86) {
rankText = String(_root.ranks[1]);
} else if (av <= 88) {
rankText = String(_root.ranks[2]);
} else if (av <= 92) {
rankText = String(_root.ranks[3]);
} else if (av <= 96) {
rankText = String(_root.ranks[4]);
} else if (av <= 100) {
rankText = String(_root.ranks[5]);
} else if (av <= 104) {
rankText = String(_root.ranks[6]);
} else if (av <= 108) {
rankText = String(_root.ranks[7]);
} else if (av <= 112) {
rankText = String(_root.ranks[8]);
} else if (av <= 116) {
rankText = String(_root.ranks[9]);
} else if (av <= 120) {
rankText = String(_root.ranks[10]);
} else if (av <= 124) {
rankText = String(_root.ranks[11]);
} else if (av <= 128) {
rankText = String(_root.ranks[12]);
} else if (av <= 132) {
rankText = String(_root.ranks[13]);
} else if (av <= 136) {
rankText = String(_root.ranks[14]);
} else if (av <= 140) {
rankText = String(_root.ranks[15]);
} else if (av <= 144) {
rankText = String(_root.ranks[16]);
} else if (av <= 148) {
rankText = String(_root.ranks[17]);
} else if (av <= 152) {
rankText = String(_root.ranks[18]);
} else if (av <= 156) {
rankText = String(_root.ranks[19]);
} else if (av <= 160) {
rankText = String(_root.ranks[20]);
} else if (av <= 164) {
rankText = String(_root.ranks[21]);
} else if (av <= 168) {
rankText = String(_root.ranks[22]);
} else if (av <= 172) {
rankText = String(_root.ranks[23]);
} else if (av <= 176) {
rankText = String(_root.ranks[24]);
} else if (av <= 180) {
rankText = String(_root.ranks[25]);
} else if (av <= 184) {
rankText = String(_root.ranks[26]);
} else if (av <= 188) {
rankText = String(_root.ranks[27]);
} else if (av <= 192) {
rankText = String(_root.ranks[28]);
} else if (av <= 196) {
rankText = String(_root.ranks[29]);
} else if (av <= 200) {
rankText = String(_root.ranks[30]);
} else if (av <= 204) {
rankText = String(_root.ranks[31]);
} else if (av <= 208) {
rankText = String(_root.ranks[32]);
} else if (av <= 212) {
rankText = String(_root.ranks[33]);
} else if (av <= 216) {
rankText = String(_root.ranks[34]);
} else if (av <= 220) {
rankText = String(_root.ranks[35]);
} else if (av <= 224) {
rankText = String(_root.ranks[36]);
} else if (av <= 228) {
rankText = String(_root.ranks[37]);
} else if (av <= 232) {
rankText = String(_root.ranks[38]);
} else if (av <= 236) {
rankText = String(_root.ranks[39]);
} else if (av <= 240) {
rankText = String(_root.ranks[40]);
} else if (av <= 244) {
rankText = String(_root.ranks[41]);
} else if (av <= 248) {
rankText = String(_root.ranks[42]);
} else if (av <= 252) {
rankText = String(_root.ranks[43]);
} else if (av <= 256) {
rankText = String(_root.ranks[44]);
} else if (av <= 260) {
rankText = String(_root.ranks[45]);
} else if (av <= 264) {
rankText = String(_root.ranks[46]);
} else if (av <= 268) {
rankText = String(_root.ranks[47]);
} else if (av <= 272) {
rankText = String(_root.ranks[48]);
} else if (av <= 276) {
rankText = String(_root.ranks[50]);
} else if (av <= 280) {
rankText = String(_root.ranks[51]);
} else if (av <= 284) {
rankText = String(_root.ranks[52]);
} else if (av <= 288) {
rankText = String(_root.ranks[53]);
} else if (av <= 292) {
rankText = String(_root.ranks[54]);
} else {
rankText = _root.ranks[_root.ranks.length - 1];
}
}
Symbol 236 MovieClip [tierChanger] Frame 5
i = 0;
while (i <= 30) {
_root["enemy" + i].removeMovieClip();
_root["eSS" + i].removeMovieClip();
i++;
}
Symbol 236 MovieClip [tierChanger] Frame 10
i = 0;
while (i <= 30) {
_root["enemy" + i].removeMovieClip();
i++;
}
Symbol 236 MovieClip [tierChanger] Frame 15
i = 0;
while (i <= 30) {
_root["enemy" + i].removeMovieClip();
i++;
}
if (_root.tierName == "Tier 21") {
_root.progressMeter.removeMovieClip();
_root.nextTierName = "";
} else {
_root.progressMeter.removeMovieClip();
_root.attachMovie("tierProgressMeter", "progressMeter", 50);
_root.progressMeter._x = 90;
_root.progressMeter._y = 11;
_root.progressMeter.onLoad = function () {
var _local3 = Number(_root.tier - 1) * 50;
var _local4 = _root.kills - _local3;
this.gotoAndStop(_local4);
};
_root.nextTierName = String("Tier " + Number(_root.tier + 1));
}
Symbol 236 MovieClip [tierChanger] Frame 60
stop();
_root.playerShells = 0;
_root.shotCombo = 0;
if (ac > _root.highAcc) {
_root.BoomsticK.highAcc = ac;
_root.BoomsticK.save();
}
done = function () {
_root.GameTime = true;
if (_root.tierName == "Tier 1") {
_root.makeEnemy(1, 3);
} else if (_root.tierName == "Tier 2") {
_root.makeEnemy(1, 1);
_root.makeEnemy(2, 2);
} else if (_root.tierName == "Tier 3") {
_root.makeEnemy(1, 1);
_root.makeEnemy(2, 2);
_root.makeEnemy(3, 1);
} else if (_root.tierName == "Tier 4") {
_root.makeEnemy(4, 2);
_root.makeEnemy(3, 1);
_root.makeEnemy(2, 1);
} else if (_root.tierName == "Tier 5") {
_root.makeEnemy(5, 1);
_root.makeEnemy(4, 1);
_root.makeEnemy(2, 2);
} else if (_root.tierName == "Tier 6") {
_root.makeEnemy(8, 1);
_root.makeEnemy(5, 1);
_root.makeEnemy(4, 2);
} else if (_root.tierName == "Tier 7") {
_root.makeEnemy(7, 1);
_root.makeEnemy(5, 1);
_root.makeEnemy(8, 1);
_root.makeEnemy(4, 1);
} else if (_root.tierName == "Tier 8") {
_root.makeEnemy(8, 2);
_root.makeEnemy(7, 1);
_root.makeEnemy(11, 1);
_root.makeEnemy(5, 1);
} else if (_root.tierName == "Tier 9") {
_root.makeEnemy(5, 1);
_root.makeEnemy(7, 1);
_root.makeEnemy(8, 2);
_root.makeEnemy(4, 2);
} else if (_root.tierName == "Tier 10") {
_root.makeEnemy(11, 2);
_root.makeEnemy(5, 1);
_root.makeEnemy(8, 2);
_root.makeEnemy(4, 2);
} else if (_root.tierName == "Tier 11") {
_root.makeEnemy(11, 2);
_root.makeEnemy(6, 2);
_root.makeEnemy(5, 2);
_root.makeEnemy(4, 2);
} else if (_root.tierName == "Tier 12") {
_root.makeEnemy(13, 1);
_root.makeEnemy(10, 2);
_root.makeEnemy(11, 2);
_root.makeEnemy(15, 1);
} else if (_root.tierName == "Tier 13") {
_root.makeEnemy(13, 2);
_root.makeEnemy(14, 2);
_root.makeEnemy(11, 2);
_root.makeEnemy(15, 1);
} else if (_root.tierName == "Tier 14") {
_root.makeEnemy(14, 1);
_root.makeEnemy(13, 2);
_root.makeEnemy(15, 2);
_root.makeEnemy(10, 2);
} else if (_root.tierName == "Tier 15") {
_root.makeEnemy(15, 2);
_root.makeEnemy(14, 2);
_root.makeEnemy(13, 2);
_root.makeEnemy(6, 1);
} else if (_root.tierName == "Tier 16") {
_root.makeEnemy(16, 1);
_root.makeEnemy(15, 2);
_root.makeEnemy(13, 2);
_root.makeEnemy(6, 2);
} else if (_root.tierName == "Tier 17") {
_root.makeEnemy(17, 2);
_root.makeEnemy(16, 2);
_root.makeEnemy(15, 1);
_root.makeEnemy(10, 2);
} else if (_root.tierName == "Tier 18") {
_root.makeEnemy(18, 2);
_root.makeEnemy(17, 1);
_root.makeEnemy(16, 2);
_root.makeEnemy(12, 1);
} else if (_root.tierName == "Tier 19") {
_root.makeEnemy(19, 1);
_root.makeEnemy(18, 2);
_root.makeEnemy(17, 1);
_root.makeEnemy(12, 2);
_root.makeEnemy(9, 1);
} else if (_root.tierName == "Tier 20") {
_root.makeEnemy(20, 1);
_root.makeEnemy(19, 1);
_root.makeEnemy(18, 2);
_root.makeEnemy(6, 1);
_root.makeEnemy(9, 1);
} else if (_root.tierName == "Tier 21") {
_root.makeEnemy(21, 1);
_root.makeEnemy(9, 2);
}
this.removeMovieClip();
};
this.alphaTo(0, 1, "easeOutQuad", 1, done);
Instance of Symbol 29 MovieClip in Symbol 237 MovieClip [ShotManager] Frame 1
onClipEvent (load) {
var t = getTimer();
var et = (getTimer() - t);
}
onClipEvent (enterFrame) {
et = getTimer() - t;
if (et > _root.reShootTime) {
_root.canShoot = true;
_root.comboManager(_root.shotCombo);
_root.shotCombo = 0;
_parent.removeMovieClip();
}
}
Symbol 246 Button
on (press) {
_root.GameTime = true;
_root.gamePaused = false;
_root.S_Theme.volumeTo(100, 1, "linear");
i = 0;
while (i <= 200) {
_root["enemy" + i].resumeTween();
_root["eSS" + i].resumeTween();
_root["debris" + i].resumeTween();
i++;
}
this.removeMovieClip();
}
Symbol 249 Button
on (press) {
_root.gamePaused = false;
_root.S_Theme.volumeTo(100, 1, "linear");
i = 0;
while (i <= 50) {
_root["enemy" + i].resumeTween();
i++;
}
_root.gotoAndStop(5);
this.removeMovieClip();
}
Symbol 250 MovieClip [menuShell] Frame 1
stop();
_root.GameTime = false;
_root.gamePaused = true;
_root.S_Theme.volumeTo(50, 1, "linear");
i = 0;
while (i <= 200) {
_root["enemy" + i].pauseTween();
_root["eSS" + i].pauseTween();
_root["debris" + i].pauseTween();
i++;
}
Symbol 250 MovieClip [menuShell] Frame 5
stop();
stop();
_root.GameTime = false;
_root.gamePaused = true;
_root.S_Theme.volumeTo(50, 1, "linear");
i = 0;
while (i <= 50) {
_root["enemy" + i].pauseTween();
i++;
}
Symbol 257 Button
on (press) {
_root.eName = nameBox.text;
_root.pScored = _root.score;
_root.fromSubmit = true;
_root.BoomsticK.playerName = _root.eName;
_root.BoomsticK.save();
_root.gotoAndStop(51);
this.removeMovieClip();
}
Symbol 260 MovieClip [submitScores] Frame 2
stop();
Symbol 262 MovieClip [comboText] Frame 1
this._alpha = 0;
destroy = function () {
this.removeMovieClip();
};
done = function () {
this.alphaTo(0, 0.4, "linear", 0.9, destroy);
};
this.alphaTo(100, 0.3, "linear", 0, done);
this.ySlideTo(100, 1, "easeInQuad", 0.65);
Symbol 266 MovieClip [tierProgressMeter] Frame 1
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 2
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 3
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 4
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 5
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 6
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 7
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 8
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 9
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 10
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 11
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 12
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 13
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 14
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 15
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 16
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 17
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 18
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 19
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 20
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 21
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 22
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 23
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 24
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 25
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 26
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 27
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 28
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 29
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 30
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 31
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 32
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 33
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 34
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 35
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 36
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 37
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 38
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 39
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 40
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 41
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 42
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 43
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 44
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 45
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 46
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 47
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 48
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 49
stop();
Symbol 266 MovieClip [tierProgressMeter] Frame 50
stop();
Symbol 418 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 419 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
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();
}};
options = _parseOptions(options, _local27);
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_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 = function (width, height) {
};
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 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();
}};
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_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 = function (width, height) {
};
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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
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 420 MovieClip [__Packages.com.communitymx.Cookie] Frame 0
class com.communitymx.Cookie
{
var _so;
function Cookie (cookieName, cookiePath) {
if (arguments.length == 1) {
_so = SharedObject.getLocal(cookieName);
} else {
_so = SharedObject.getLocal(cookieName, cookiePath);
}
var oClass = this;
_so.onStatus = function (oInfo) {
oClass.onStatus(oInfo);
};
init();
}
function init() {
for (var _local2 in _so.data) {
this[_local2] = _so.data[_local2];
}
}
function getSize() {
return(_so.getSize());
}
function setSize(bytes) {
_so.flush(bytes);
}
function getIndexByKey(propertyName, key, value) {
var _local3 = this[propertyName].length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[propertyName][_local2][key] == value) {
return(_local2);
}
_local2++;
}
return(-1);
}
function getItemByKey(propertyName, key, value) {
var _local4 = this[propertyName].length;
var _local2 = 0;
while (_local2 < _local4) {
if (this[propertyName][_local2][key] == value) {
return(this[propertyName][_local2]);
}
_local2++;
}
return(null);
}
function getPropertyNames() {
var _local2 = [];
for (var _local3 in this) {
if (_local3 != "_so") {
_local2.push(_local3);
}
}
return(_local2);
}
function removeItem(propertyName) {
var _local3 = this[propertyName];
var _local4 = getPropertyNames().join().indexOf(propertyName) != -1;
if (_local4) {
delete _so.data[propertyName];
_so.flush();
delete this[propertyName];
return(_local3);
}
return(null);
}
function removeItemAt(index, propertyName) {
var _local5 = this[propertyName][index];
var _local4 = this[propertyName].length;
if ((index >= 0) && (index < _local4)) {
delete _so.data[propertyName][index];
_so.flush();
delete this[propertyName];
return(_local5);
}
return(null);
}
function save(bytes) {
for (var _local3 in this) {
if (_local3 != "_so") {
_so.data[_local3] = this[_local3];
}
}
if (arguments.length == 1) {
setSize(bytes);
} else {
_so.flush();
}
}
function destroy() {
for (var _local2 in _so.data) {
delete _so.data[_local2];
}
}
function trace() {
var _local4 = getPropertyNames();
trace("\r--------------------------");
for (var _local6 in _local4) {
var _local2 = _local4[_local6];
trace((_local2 + ": ") + _so.data[_local2]);
for (var _local5 in _so.data[_local2]) {
trace(((" -> " + _local5) + ": ") + _so.data[_local2][_local5]);
for (var _local3 in _so.data[_local2][_local5]) {
trace(((" ->" + _local3) + ": ") + _so.data[_local2][_local5][_local3]);
}
}
}
trace("--------------------------\r");
}
}
Symbol 421 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 323 MovieClip Frame 1
_root.S_abduction = new Sound();
_root.S_abduction.attachSound("abduction");
_root.S_abduction.start();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
stop();
Instance of Symbol 336 MovieClip "legs" in Symbol 337 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._xmouse > _root.player._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
play();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 345 MovieClip Frame 35
stop();
_root.GameOver("squished");
Symbol 346 MovieClip Frame 1
this.body.legs.gotoAndStop(3);
Symbol 346 MovieClip Frame 45
stop();
_root.GameOver("killed");
Symbol 347 MovieClip Frame 20
stop();
_root.player._xscale = 100;
_root.player.gotoAndStop(1);
Symbol 348 MovieClip Frame 1
stop();
Instance of Symbol 337 MovieClip "body" in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (Key.isDown(68) || (Key.isDown(39))) {
if (_parent._x < 550) {
_parent.body.legs.gotoAndStop(2);
_parent.speedBooster.legs.gotoAndStop(2);
_parent._x = _parent._x + _root.playerSpeed;
}
} else if (Key.isDown(65) || (Key.isDown(37))) {
if (_parent._x > 0) {
_parent._x = _parent._x - _root.playerSpeed;
_parent.body.legs.gotoAndStop(2);
_parent.speedBooster.legs.gotoAndStop(2);
}
} else {
_parent.body.legs.gotoAndStop(1);
_parent.speedBooster.legs.gotoAndStop(1);
}
}
}
Instance of Symbol 340 MovieClip "head" in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - _parent._y, _root._xmouse - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if ((myDegrees <= 90) && (myDegrees >= -90)) {
this.gotoAndStop(1);
this._rotation = myDegrees;
} else {
this.gotoAndStop(2);
this._rotation = myDegrees + 180;
}
}
Instance of Symbol 337 MovieClip "speedBooster" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 344 MovieClip "armgun" in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - _parent._y, _root._xmouse - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if ((myDegrees <= 90) && (myDegrees >= -90)) {
this.gotoAndStop(1);
this._rotation = myDegrees;
} else {
this.gotoAndStop(2);
this._rotation = myDegrees + 180;
}
}
Symbol 348 MovieClip Frame 2
stop();
Instance of Symbol 340 MovieClip "head" in Symbol 348 MovieClip Frame 2
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - _parent._y, _root._xmouse - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
}
Symbol 348 MovieClip Frame 3
stop();
Symbol 348 MovieClip Frame 4
stop();
Symbol 349 Button
on (press) {
if (_root.topTier >= 5) {
_root.gotoAndStop(6);
} else if (_root.hasPlayed == true) {
_root.gotoAndStop(10);
} else {
_root.gotoAndStop(7);
}
}
Symbol 355 Button
on (press) {
_root.gotoAndStop(51);
}
Symbol 360 MovieClip Frame 1
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 1;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 2;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 2
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 3;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 3
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 4;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 4
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 4
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 5;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 5
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 5
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 6;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 6
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 6
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 7;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 7
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 7
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 8;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 8
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 8
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 9;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 9
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 9
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 10;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 10
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 10
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 11;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 11
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 11
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 12;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 12
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 12
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 13;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 13
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 13
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 14;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 14
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 14
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 15;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 15
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 15
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 16;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 16
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 16
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 17;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 17
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 17
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 18;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 18
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 18
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 19;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 19
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 19
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 20;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 20
stop();
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 20
onClipEvent (load) {
this._alpha = 0;
this.onPress = function () {
_root.tier = 21;
var _local2 = "Tier " + _root.tier;
_root.tierName = _local2;
_root.gotoAndPlay(11);
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 0;
};
this.onReleaseOutside = function () {
this._alpha = 0;
};
this.onDragOut = function () {
this._alpha = 0;
};
}
Symbol 360 MovieClip Frame 21
stop();
Symbol 363 Button
on (press) {
_root.gotoAndStop(7);
}
Symbol 371 Button
on (press) {
_root.nextFrame();
}
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 396 Button
on (rollOver) {
_root.canShoot = false;
}
on (rollOut) {
_root.canShoot = true;
}
on (dragOut) {
_root.canShoot = true;
}
on (releaseOutside) {
_root.canShoot = true;
}
on (press) {
if (_root.GameTime == true) {
_root.attachMovie("menuShell", "menuShell", 16500);
_root.menuShell._x = 275;
_root.menuShell._y = 200;
_root.GameTime = false;
}
}
Instance of Symbol 407 MovieClip "brain" in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
function die2(n) {
_parent._alpha = 0;
_root.playSound("S_Explode");
var _local4 = _parent._x;
var _local3 = _parent._y;
_root.explode01(_local4, _local3, 4);
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
}
var health = 10;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.player)) {
if (_root.player._x > _parent._x) {
_root.player._x = _parent._x + 36;
} else {
_root.player._x = _parent._x - 36;
}
}
i = 0;
while (i < 10) {
if (_parent.hitTest(_root["bullet" + i]) && (_parent._alpha == 100)) {
health--;
if (health <= 0) {
die2();
} else {
var speed = (20 + random(15));
var dir = (_root["bullet" + i]._rotation + Number(150 + random(60)));
_root["bullet" + i].shotxspeed = speed * Math.sin(dir * (Math.PI/180));
_root["bullet" + i].shotyspeed = speed * Math.cos(dir * (Math.PI/180));
_root["bullet" + i]._rotation = dir;
_root.playSound("S_Rico");
}
}
i++;
}
}
Symbol 411 Button
on (press) {
_root.gotoAndStop(50);
}