Frame 1
Stage.showMenu = false;
if (_root.playedbefore == 1) {
} else {
mochi.MochiServices.connect("a7ede80c924895ca");
MochiAd.showPreloaderAd({id:"a7ede80c924895ca", res:"700x500"});
}
_root.local_data = SharedObject.getLocal("rgb_savefileddata");
if (_root.local_data.data.soundonsaved == undefined) {
_root.soundon = 1;
} else {
_root.soundon = _root.local_data.data.soundonsaved;
}
Frame 4
if (_root.playedbefore == 1) {
}
_root.timesup.removeMovieClip();
_root.playedbefore = 1;
_root.thetrack = new Sound(_root);
_root.randomtrack = random(3);
if (_root.randomtrack == 0) {
_root.thetrack.attachSound("thetrack1");
} else if (_root.randomtrack == 1) {
_root.thetrack.attachSound("thetrack2");
} else if (_root.randomtrack == 2) {
_root.thetrack.attachSound("thetrack3");
}
_root.thetrack.start(0, 1);
Frame 118
stop();
_global.onclosefunction = function () {
_root.blacking.gotoAndPlay(7);
};
_root.timesup.removeMovieClip();
_root._quality = "medium";
_root.perfectcount = 0;
_root.level = 1;
_root.combonumber = 0;
_root.attachMovie("timerthing", "timerthing", 1005);
_root.timerthing._x = 290;
_root.timerthing._y = 330;
_root.timerstop = 0;
_root.tune1playing = 1;
_root.totalperfects = 0;
_root.totaloverallperfects = 0;
_root.volumefade = 100;
_root.accuracybonus = 0;
_root.targetnumber = 1;
_root.score = 0;
_root.ammo = 7;
_root.i = 1;
_root.deagle = 7;
_root.totalshots = 0;
_root.shots = 0;
_root.hits = 0;
_root.totalhits = 0;
_root.targetshit = 1;
_global.changetored = function () {
theredsound = new Sound(_root);
theredsound.attachSound("redsound");
theredsound.start(0, 1);
_root.ammotype = 0;
_root.timesup.ammotypemovie.red.gotoAndPlay(2);
_root.timesup.ammotypemovie.green.gotoAndStop(1);
_root.timesup.ammotypemovie.blue.gotoAndStop(1);
};
_global.changetogreen = function () {
_root.ammotype = 1;
_root.timesup.ammotypemovie.red.gotoAndStop(1);
_root.timesup.ammotypemovie.green.gotoAndPlay(2);
_root.timesup.ammotypemovie.blue.gotoAndStop(1);
};
_global.changetoblue = function () {
_root.ammotype = 2;
_root.timesup.ammotypemovie.red.gotoAndStop(1);
_root.timesup.ammotypemovie.green.gotoAndStop(1);
_root.timesup.ammotypemovie.blue.gotoAndPlay(2);
};
_global.checkaccuracy = function () {
if (_root.shots == _root.hits) {
_root.totalperfects = _root.totalperfects + 1;
_root.pointsadded = 500;
_root.score = _root.score + _root.pointsadded;
_root.timesup.pointshower.gotoAndPlay(2);
_root.perfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
}
_root.shots = 0;
_root.hits = 0;
};
_global.checktotalaccuracy = function () {
if (_root.totalshots == _root.totalhits) {
_root.totaloverallperfects = _root.totaloverallperfects + 1;
_root.pointsadded = 1000;
_root.score = _root.score + _root.pointsadded;
_root.timesup.pointshower.gotoAndPlay(2);
_root.totalperfect.play();
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
}
};
_global.hitthetarget = function () {
_root.perfectcount = _root.perfectcount + 1;
if (_root.perfectcount == 10) {
_root.pointadded = 10000;
_root.timesup.pointsshower.gotoAndPlay(2);
_root.score = _root.score + 10000;
_root.perfect.gotoAndPlay(1);
_root.perfectcount = 0;
}
_root.hits = _root.hits + 1;
_root.combonumber = _root.combonumber + 2;
_root.totalhits = _root.totalhits + 1;
_root.timesup.combothing.play();
if ((((_root.pointsx >= -5) and (_root.pointsx <= 5)) and (_root.pointsy >= -5)) and (_root.pointsy <= 5)) {
soundkillershot = new Sound(_root);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
_root.accuracybonus = _root.accuracybonus + 15;
_root.killershot.play();
_root.pointsadded = Math.round(_root.pointsadded * 2);
_root.comboscore = Math.round(_root.pointsadded * _root.combonumber);
_root.score = _root.score + _root.comboscore;
_root.timesup.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -10) and (_root.pointsx <= 10)) and (_root.pointsy >= -10)) and (_root.pointsy <= 10)) {
soundniceshot = new Sound(_root);
soundniceshot.attachSound("soundniceshot");
soundniceshot.start(0, 1);
_root.niceshot.play();
_root.accuracybonus = _root.accuracybonus + 10;
_root.pointsadded = Math.round(_root.pointsadded * 1.5);
_root.comboscore = Math.round(_root.pointsadded * _root.combonumber);
_root.score = _root.score + _root.comboscore;
_root.timesup.pointshower.gotoAndPlay(2);
} else if ((((_root.pointsx >= -15) and (_root.pointsx <= 15)) and (_root.pointsy >= -15)) and (_root.pointsy <= 15)) {
soundnotbad = new Sound(_root);
soundnotbad.attachSound("soundnotbad");
soundnotbad.start(0, 1);
_root.notbad.play();
_root.accuracybonus = _root.accuracybonus + 5;
_root.pointsadded = Math.round(_root.pointsadded * 1.2);
_root.comboscore = Math.round(_root.pointsadded * _root.combonumber);
_root.score = _root.score + _root.comboscore;
_root.timesup.pointshower.gotoAndPlay(2);
} else {
_root.comboscore = Math.round(_root.pointsadded * _root.combonumber);
_root.score = _root.score + _root.comboscore;
_root.timesup.pointshower.gotoAndPlay(2);
}
var _local2 = _root.sight.attachMovie("showthepoints", "showthepoints", 100001);
_local2._x = 0;
_local2._y = -20;
_local2.gotoAndPlay(1);
};
Frame 119
_root.tune.stop();
clearInterval(_root.beattimer);
_root.colourcombo = 0;
_root.targets = 1;
_root.attachMovie("perfect", "perfect", 998);
_root.perfect._x = -320;
_root.perfect._y = 330;
_root.attachMovie("overallperfect", "totalperfect", 997);
_root.totalperfect._x = -320;
_root.totalperfect._y = 280;
_root.attachMovie("roundcomplete", "roundcomplete", 996);
_root.roundcomplete._x = -320;
_root.roundcomplete._y = 280;
_root.attachMovie("wrongcolour", "wrongcolour", 995);
_root.wrongcolour._x = -320;
_root.wrongcolour._y = 280;
_root.attachMovie("bonusmovie", "bonusmovie", 994);
_root.bonusmovie._x = -270;
_root.bonusmovie._y = 56;
_root.attachMovie("allroundscomplete", "allroundscomplete", 993);
_root.allroundscomplete._x = -320;
_root.allroundscomplete._y = 280;
_root.attachMovie("timesup", "timesup", 992);
_root.timesup._x = -320;
_root.timesup._y = 280;
_root.attachMovie("sight", "sight", 1000);
_root.attachMovie("niceshot", "niceshot", 1001);
_root.niceshot._x = -230;
_root.niceshot._y = 330;
_root.attachMovie("killershot", "killershot", 1002);
_root.killershot._x = -280;
_root.killershot._y = 330;
_root.attachMovie("gun1", "gun1", 1003);
_root.gun1._x = 1000;
_root.gun1._y = 2000;
_root.inclip = _root.deagleclip;
_root.reloading = "no";
_root.attachMovie("notbad", "notbad", 1004);
_root.notbad._x = -230;
_root.notbad._y = 330;
stop();
_root.thebeatcount = 0;
_root.beattotal = 0;
myMC.target = _root.timesup.textfield_txt;
myMC.decount = function () {
if (_root.timerstop == 0) {
var _local5 = Math.ceil((this.endTime - getTimer()) / 1000);
if (_local5 <= 0) {
_local5 = 0;
}
var _local4 = Math.floor(_local5 / 60);
if (_local4 < 10) {
_local4 = "0" + _local4;
}
var _local3 = _local5 % 60;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
this.target.text = (_local4 + ":") + _local3;
_root.timeleft = (_local4 + ":") + _local3;
if (_local5 > 0) {
return(undefined);
}
_root.timesup.play();
_root.gamestatus = "Time Up";
}
};
myMC.countDown = function (sec) {
this.endTime = getTimer() + (sec * 1000);
this.onEnterFrame = this.decount;
};
myMC.countDown(372);
_root.menustate = "no";
_root.beatseg = 1;
switchoffmusic = 0;
if (switchoffmusic == 1) {
_root.beat.stop();
} else {
_root.thetrack.stop();
_root.thetrack = new Sound(_root);
if (_root.musictype == 1) {
_root.thetrack.attachSound("thetrack1");
} else if (_root.musictype == 2) {
_root.thetrack.attachSound("thetrack2");
} else if (_root.musictype == 3) {
_root.thetrack.attachSound("thetrack3");
}
_root.thetrack.start(0, 1);
_root.thebeatcount = 0;
_root.beattotal = 0;
}
_root.DoRandom1 = function () {
_root.beattotal = _root.beattotal + 1;
if (_root.musictype == 1) {
trace(_root.thetrack.position);
if ((((((((((((((((((((_root.beattotal == 90) or (_root.beattotal == 115)) or (_root.beattotal == 125)) or (_root.beattotal == 145)) or (_root.beattotal == 155)) or (_root.beattotal == 225)) or (_root.beattotal == 245)) or (_root.beattotal == 245)) or (_root.beattotal == 260)) or (_root.beattotal == 270)) or (_root.beattotal == 330)) or (_root.beattotal == 355)) or (_root.beattotal == 365)) or (_root.beattotal == 385)) or (_root.beattotal == 395)) or (_root.beattotal == 410)) or (_root.beattotal == 420)) or (_root.beattotal == 460)) or (_root.beattotal == 750)) or (_root.beattotal == 760)) {
_root.timesup.beat.gotoAndPlay(1);
makeBalls();
}
if (((((((((_root.beattotal == 330) or (_root.beattotal == 460)) or (_root.beattotal == 600)) or (_root.beattotal == 720)) or (_root.beattotal == 930)) or (_root.beattotal == 860)) or (_root.beattotal == 920)) or (_root.beattotal == 970)) or (_root.beattotal == 1050)) {
_root.timesup.beat.gotoAndPlay(1);
makeBalls();
makeBalls();
makeBalls();
makeBalls();
}
if (((((_root.beattotal == 600) or (_root.beattotal == 850)) or (_root.beattotal == 920)) or (_root.beattotal == 970)) or (_root.beattotal == 1050)) {
_root.timesup.beat.gotoAndPlay(1);
makeBalls();
makeBalls();
makeBalls();
makeBalls();
makeBalls();
makeBalls();
makeBalls();
makeBalls();
}
if ((_root.beattotal > 1180) and (_root.beattotal < 2100)) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
_root.thebeatcount = _root.thebeatcount + 1;
}
}
if (_root.beattotal < 2100) {
} else {
_root.allroundscomplete.play();
}
} else if (_root.musictype == 2) {
if (_root.beattotal < 432) {
if (_root.thebeatcount == 16) {
_root.timesup.beat.gotoAndPlay(1);
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 400) and (_root.beattotal < 410)) {
makeBalls();
}
if ((_root.beattotal > 200) and (_root.beattotal < 205)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 655) {
if (_root.thebeatcount >= 4) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 620) and (_root.beattotal < 630)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 1800) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 1790) and (_root.beattotal < 1800)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 1928) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 1150) and (_root.beattotal < 1200)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 2950) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 2350) and (_root.beattotal < 2450)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
}
if (_root.beattotal < 2950) {
} else {
_root.allroundscomplete.play();
}
} else if (_root.musictype == 3) {
if (_root.beattotal < 300) {
if (_root.thebeatcount == 32) {
_root.timesup.beat.gotoAndPlay(1);
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 340) and (_root.beattotal < 350)) {
makeBalls();
}
if ((_root.beattotal > 150) and (_root.beattotal < 160)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 655) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 620) and (_root.beattotal < 630)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 1800) {
if (_root.thebeatcount >= 4) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 1790) and (_root.beattotal < 1800)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 1928) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 1150) and (_root.beattotal < 1200)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 2400) {
if (_root.thebeatcount >= 4) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 2350) and (_root.beattotal < 2450)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
} else if (_root.beattotal < 3900) {
if (_root.thebeatcount >= 8) {
makeBalls();
_root.thebeatcount = 1;
} else {
if ((_root.beattotal > 2950) and (_root.beattotal < 3050)) {
makeBalls();
}
_root.thebeatcount = _root.thebeatcount + 1;
}
}
if (_root.beattotal < 3900) {
} else {
_root.allroundscomplete.play();
}
}
};
if (_root.musictype == 1) {
_root.beattimer = setInterval(_root.DoRandom1, 22.44);
} else if (_root.musictype == 2) {
_root.beattimer = setInterval(_root.DoRandom1, 29.27);
} else if (_root.musictype == 3) {
_root.beattimer = setInterval(_root.DoRandom1, 22.06);
}
function clump_about() {
if (this._y > 1300) {
delete this.onEnterFrame;
this.removeMovieClip();
}
this.vy = this.vy + this.droprate;
this.droprate = this.droprate + (0.003 / _root.bullettime);
if (_root.gamepaused == 0) {
this.vx = this.vx * (enemykDamp / _root.bullettime);
this.vy = this.vy * (enemykDamp / _root.bullettime);
var _local4 = 0;
var _local3 = 0;
this.vx = this.vx + _local4;
this.vy = this.vy + _local3;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
}
}
Mouse.hide();
_root.enemylimits = 250;
_root.bullettime = 1;
_root.gamelevel = 0;
_root.zombienumber = 1;
_root.theenemydamping = 0.97;
_global.deleteArray = function () {
guys.splice(0, guys.length - 1);
var guys = [];
};
_root.objcell_mc.removeMovieClip(this);
var kGravWeight = 0.6;
_root.thedamping = 0.99;
var kDamp = _root.thedamping;
var enemykDamp = _root.theenemydamping;
var kCollisionDamp = 0.95;
var kSpinR = ((kSpin * Math.PI) / 180);
stop();
var SW = 5000;
var SH = 5000;
var kRadiansToDegrees = 57.2957795130823;
var kDegreesToRadians = (Math.PI/180);
var gTx = 0;
var gTy = 0;
var guys = [];
_global.makeLevel = function () {
_root.isreloading = 0;
_root.objcell_mc.removeMovieClip(this);
_root.createEmptyMovieClip("objcell_mc", 1);
objcell_mc._x = 320;
objcell_mc._y = 0;
_root.objcell_mc.attachMovie("thebackground", "thebackground", 2);
_root.gamepaused = 0;
_root.timesup.timerthing.play();
changetored();
};
_global.makeBalls = function () {
_root.thecolourtype = random(4) + 1;
var _local2 = objcell_mc.attachMovie("target1", "enemytarget" + _root.zombienumber, _root.zombienumber + 3000);
_local2.theenemytype = random(7) + 1;
_local2.colourtype = _root.thecolourtype;
_local2.targetsymbol1.targetsymbol.gotoAndStop(_root.thecolourtype);
_local2.enemytype = _root.theenemytype;
_root.leftposition = 100;
_root.rightposition = 950;
_root.centerposition = 550;
_root.startingy = 1050;
_root.xspeed = 15;
_root.yspeed = 23;
if (_local2.theenemytype == 1) {
_local2._yscale = 40;
_local2._xscale = 40;
_local2.vx = random(_root.xspeed) - (_root.xspeed / 2);
_local2.vy = -30;
_local2._y = _root.startingy;
_local2._x = _root.centerposition;
} else if (_local2.theenemytype == 2) {
_local2._yscale = 90;
_local2._xscale = 90;
_local2.vx = random(_root.xspeed) - (_root.xspeed / 2);
_local2.vy = -25;
_local2._y = _root.startingy;
_local2._x = _root.centerposition;
} else if (_local2.theenemytype == 2) {
_local2._yscale = 100;
_local2._xscale = 100;
_local2.vx = random(_root.xspeed) - (_root.xspeed / 2);
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.centerposition;
} else if (_local2.theenemytype == 3) {
_local2._yscale = 120;
_local2._xscale = 120;
_local2.vx = random(_root.xspeed) + 3;
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.leftposition;
} else if (_local2.theenemytype == 4) {
_local2._yscale = 150;
_local2._xscale = 150;
_local2.vx = -(random(_root.xspeed) + 3);
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.rightposition;
} else if (_local2.theenemytype == 5) {
_local2._yscale = 200;
_local2._xscale = 200;
_local2.vx = random(_root.xspeed) + 3;
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.leftposition;
} else if (_local2.theenemytype == 6) {
_local2._yscale = 100;
_local2._xscale = 100;
_local2.vx = random(_root.xspeed) + 3;
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.leftposition;
} else if (_local2.theenemytype == 7) {
_local2._yscale = 150;
_local2._xscale = 150;
_local2.vx = -(random(_root.xspeed) + 3);
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.rightposition;
} else if (_local2.theenemytype == 8) {
_local2._yscale = 200;
_local2._xscale = 200;
_local2.vx = random(_root.xspeed) - (_root.xspeed / 2);
_local2.vy = -(random(_root.yspeed) + 10);
_local2._y = _root.startingy;
_local2._x = _root.centerposition;
}
mc1 = _root.objcell_mc.attachMovie("watersplash", "watersplash", 21000);
mc1._x = _local2._x;
mc1._y = _local2._y - 50;
mc2 = _root.objcell_mc.attachMovie("watersplash", "watersplash", 21001);
mc2._x = _local2._x;
mc2._y = _local2._y - 50;
_local2.droprate = 0;
var _local3 = 128 + random(127);
_local2.lx = 0;
_local2.ly = 0;
_local2.radius = 15;
_local2.onEnterFrame = clump_about;
_root.zombienumber = _root.zombienumber + 1;
};
_root.objcell_mc.onEnterFrame = function () {
if (_root.gamepaused == 0) {
var _local3 = guys.length - 1;
while (_local3 >= 0) {
var _local2 = guys[_local3];
var _local4 = Math.sqrt((_local2._x * _local2._x) + (_local2._y * _local2._y));
var _local5 = Math.atan2(_local2._y, _local2._x);
_local2._x = Math.cos(_local5 + kSpinR) * _local4;
_local2._y = Math.sin(_local5 + kSpinR) * _local4;
_local3--;
}
}
};
makeLevel();
Instance of Symbol 445 MovieClip "myMC" in Frame 119
onClipEvent (enterFrame) {
if (_root.combonumber < 1) {
_root.combonumber = 1;
}
_root.objcell_mc._x = -25;
_root.objcell_mc._y = -150;
_root.objcell_mc._xscale = 67;
_root.objcell_mc._yscale = 67;
if (Key.isDown(49)) {
if (reddown == 0) {
reddown = 1;
changetored();
}
} else {
reddown = 0;
}
if (Key.isDown(50)) {
if (greendown == 0) {
greendown = 1;
changetogreen();
}
} else {
greendown = 0;
}
if (Key.isDown(51)) {
if (bluedown == 0) {
bluedown = 1;
changetoblue();
}
} else {
bluedown = 0;
}
_root.sight._x = _root._xmouse;
_root.sight._y = _root._ymouse;
}
onClipEvent (mouseDown) {
if (_root.reloading == "no") {
if (_root.ammo > 0) {
_root.ready = 1;
_root.combonumber = _root.combonumber - 1;
_root.attachMovie("bullet", "bullet1", 90);
_root.i = _root.i + 1;
_root.bullet1._x = _root._xmouse;
_root.bullet1._y = _root._ymouse;
_root.gun1.gotoAndPlay(1);
_root.shots = _root.shots + 1;
_root.totalshots = _root.totalshots + 1;
} else {
_root.ready = 0;
crateselectn1 = new Sound(this);
crateselectn1.attachSound("dryfire");
crateselectn1.start(0, 1);
}
} else {
_root.ready = 0;
}
}
Frame 120
stop();
_global.onclosefunction1 = function () {
_root.gotoAndPlay(3);
_root.objcell_mc.removeMovieClip();
};
if (_root.musictype == 1) {
mochi.MochiScores.showLeaderboard({boardID:"003568beb6a78eda", res:"700x500", numScores:20, score:_root.score, onClose:function () {
onclosefunction1();
}});
} else if (_root.musictype == 2) {
mochi.MochiScores.showLeaderboard({boardID:"2cf3aec50100991d", res:"700x500", numScores:20, score:_root.score, onClose:function () {
onclosefunction1();
}});
} else if (_root.musictype == 3) {
mochi.MochiScores.showLeaderboard({boardID:"498497433fd4f89e", res:"700x500", numScores:20, score:_root.score, onClose:function () {
onclosefunction1();
}});
}
_root.allroundscomplete.removeMovieClip();
stop();
Symbol 21 MovieClip Frame 15
stop();
Symbol 22 MovieClip [watersplash] Frame 5
if (_root.extrablood == "on") {
_root.objcell_mc.attachMovie("bloodpatch", "bloodpatch" + _root.bloods, _root.bloods, {_x:(this._x + -30) + (Math.random() * 60), _y:(this._y + -30) + (Math.random() * 60), _rotation:this._rotation - 90});
if (_root.bloods > 700) {
_root.bloods = 600;
} else {
_root.bloods = _root.bloods + 1;
}
}
Symbol 22 MovieClip [watersplash] Frame 25
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 40 MovieClip Frame 300
stop();
Symbol 41 MovieClip Frame 300
stop();
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
/* no clip actions */
Symbol 54 MovieClip [Gun1] Frame 1
_root.reloading = "no";
this.stop();
Symbol 54 MovieClip [Gun1] Frame 4
deagle = new Sound(this);
deagle.attachSound("m4");
deagle.start(0, 1);
_root.reloading = "yes";
Symbol 54 MovieClip [Gun1] Frame 5
_root.sight.gotoAndPlay(2);
Symbol 54 MovieClip [Gun1] Frame 8
_root.reloading = "no";
Symbol 54 MovieClip [Gun1] Frame 9
gotoAndPlay (1);
Symbol 54 MovieClip [Gun1] Frame 10
this.stop();
Symbol 54 MovieClip [Gun1] Frame 11
this.gotoAndPlay("reload");
Symbol 54 MovieClip [Gun1] Frame 33
_root.reloading = "no";
gotoAndStop (1);
Symbol 54 MovieClip [Gun1] Frame 35
gotoAndStop (1);
Symbol 54 MovieClip [Gun1] Frame 36
_root.reloading = "no";
Symbol 54 MovieClip [Gun1] Frame 38
_root.reloading = "yes";
Symbol 54 MovieClip [Gun1] Frame 68
_root.reloading = "no";
Symbol 54 MovieClip [Gun1] Frame 73
this.gotoAndStop(1);
Symbol 54 MovieClip [Gun1] Frame 78
gotoAndStop (1);
Symbol 54 MovieClip [Gun1] Frame 88
gotoAndStop (1);
Symbol 54 MovieClip [Gun1] Frame 93
gotoAndStop (1);
Symbol 95 MovieClip [sight] Frame 1
stop();
Symbol 95 MovieClip [sight] Frame 5
gotoAndStop (1);
Symbol 95 MovieClip [sight] Frame 10
this.gotoAndStop(1);
Symbol 95 MovieClip [sight] Frame 16
this.gotoAndStop(1);
Symbol 95 MovieClip [sight] Frame 22
gotoAndStop (1);
Symbol 95 MovieClip [sight] Frame 26
gotoAndStop (1);
Symbol 95 MovieClip [sight] Frame 55
gotoAndPlay (1);
Symbol 98 MovieClip Frame 1
stop();
Symbol 99 Button
on (press) {
if (_root.ready == 1) {
if (_root.ammotype == 0) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 1) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
trace("colourcombo " + _root.colourcombo);
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 1) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 1) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 1) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 1) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
trace(_parent._parent.theenemytype);
if (_parent._parent.theenemytype == 1) {
_root.combonumber = _root.combonumber + 3;
}
if (_parent._parent.theenemytype == 2) {
_root.combonumber = _root.combonumber + 2;
}
if (_parent._parent.theenemytype == 3) {
_root.combonumber = _root.combonumber + 1;
}
_root.pointsadded = Math.round(_root.pointsadded);
hitthetarget();
if (Math.random() <= 0.3) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
} else {
_root.pointsadded = -500;
_root.combonumber = 1;
_root.colourcombo = 0;
_root.perfectcount = 0;
_root.score = _root.score - 500;
_root.pointshower.play();
_root.wrongcolour.play();
trace("wrong colour");
}
}
}
Symbol 102 Button
on (press) {
if (_root.ready == 1) {
if (_root.ammotype == 1) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 0) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 0) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 0) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 0) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 0) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
if (_parent._parent.theenemytype == 1) {
_root.combonumber = _root.combonumber + 3;
}
if (_parent._parent.theenemytype == 2) {
_root.combonumber = _root.combonumber + 2;
}
if (_parent._parent.theenemytype == 3) {
_root.combonumber = _root.combonumber + 1;
}
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
hitthetarget();
if (Math.random() <= 0.3) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
} else {
_root.pointsadded = -500;
_root.score = _root.score - 500;
_root.colourcombo = 0;
_root.combonumber = 1;
_root.perfectcount = 0;
_root.pointshower.play();
_root.wrongcolour.play();
trace("wrong colour");
}
}
}
Symbol 105 Button
on (press) {
if (_root.ready == 1) {
if (_root.ammotype == 2) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 2) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 2) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 2) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 2) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 2) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
if (_parent._parent.theenemytype == 1) {
_root.combonumber = _root.combonumber + 3;
}
if (_parent._parent.theenemytype == 2) {
_root.combonumber = _root.combonumber + 2;
}
if (_parent._parent.theenemytype == 3) {
_root.combonumber = _root.combonumber + 1;
}
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
hitthetarget();
if (Math.random() <= 0.3) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
} else {
_root.pointsadded = -500;
_root.score = _root.score - 500;
_root.perfectcount = 0;
_root.colourcombo = 0;
_root.combonumber = 1;
_root.pointshower.play();
_root.wrongcolour.play();
trace("wrong colour");
}
}
}
Symbol 108 Button
on (press) {
if (_root.ready == 1) {
if (_root.ammotype == 0) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 1) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
trace("colourcombo " + _root.colourcombo);
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 1) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 1) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 1) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 1) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
} else if (_root.ammotype == 1) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 0) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 0) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 0) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 0) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 0) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
} else if ((_root.ammotype = 2)) {
if (_root.colourcombo == 0) {
if (_root.colour1 == 2) {
trace("yup yup ypu ypu ypu yup");
_root.colourcombo = 1;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 1) {
if (_root.colour2 == 2) {
_root.colourcombo = 2;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 2) {
if (_root.colour3 == 2) {
_root.colourcombo = 3;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 3) {
if (_root.colour4 == 2) {
_root.colourcombo = 4;
} else {
_root.colourcombo = 0;
}
} else if (_root.colourcombo == 4) {
if (_root.colour5 == 2) {
_root.timesup.colourcombothing.play();
_root.colourcombo = 0;
} else {
_root.colourcombo = 0;
}
}
}
if (_parent._parent.theenemytype == 1) {
_root.combonumber = _root.combonumber + 3;
}
if (_parent._parent.theenemytype == 2) {
_root.combonumber = _root.combonumber + 2;
}
if (_parent._parent.theenemytype == 3) {
_root.combonumber = _root.combonumber + 1;
}
_root.pointsx = this._xmouse;
_root.pointsy = this._ymouse;
_root.pointsadded = (1 - (((_root.pointsx * _root.pointsx) + (_root.pointsy * _root.pointsy)) / 1391.2)) * 100;
_root.pointsadded = Math.round(_root.pointsadded);
hitthetarget();
if (Math.random() <= 0.3) {
trace("playammo");
this.gotoAndPlay("ammo");
} else {
trace("play");
this.gotoAndPlay("kill");
}
}
}
Symbol 109 MovieClip Frame 3
if (Math.random() >= 0.7) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise1");
hitnoise.start(0, 1);
} else if (Math.random() >= 0.4) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise2");
hitnoise.start(0, 1);
} else {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise3");
hitnoise.start(0, 1);
}
Symbol 109 MovieClip Frame 26
gotoAndPlay ("end");
Symbol 109 MovieClip Frame 27
targetkilled();
stop();
Symbol 141 Button
on (press) {
if (_root.ready == 1) {
_root.pointsadded = 500;
_root.score = _root.score + _root.pointsadded;
_root.pointshower.gotoAndPlay(2);
_root.bonusmovie.play();
crateselect = new Sound(this);
crateselect.attachSound("reload2");
crateselect.start(0, 1);
crateselectn = new Sound(this);
crateselectn.attachSound("reload");
crateselectn.start(0, 1);
this.gotoAndPlay("end");
_root.shots = _root.shots - 1;
_root.totalshots = _root.totalshots - 1;
}
}
Symbol 142 MovieClip Frame 1
Symbol 142 MovieClip Frame 3
if (Math.random() >= 0.7) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise1");
hitnoise.start(0, 1);
} else if (Math.random() >= 0.4) {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise2");
hitnoise.start(0, 1);
} else {
hitnoise = new Sound(this);
hitnoise.attachSound("hitnoise3");
hitnoise.start(0, 1);
}
Symbol 142 MovieClip Frame 94
gotoAndPlay ("end");
Symbol 142 MovieClip Frame 95
targetkilled();
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 3
stop();
Symbol 143 MovieClip Frame 4
stop();
Symbol 143 MovieClip Frame 5
stop();
Symbol 143 MovieClip Frame 6
stop();
Symbol 158 MovieClip [notbad] Frame 1
stop();
Symbol 161 MovieClip [reloadanim] Frame 1
stop();
Symbol 165 MovieClip [niceshot] Frame 1
stop();
Symbol 168 MovieClip [overallperfect] Frame 1
stop();
Symbol 187 MovieClip [wrongcolour] Frame 1
stop();
Symbol 195 Button
on (release) {
Mouse.show();
_root.gun1._visible = 0;
_root.thetrack.stop();
_root.sight.removeMovieClip();
_root.objcell_mc.removeMovieClip();
_root.gotoAndPlay(3);
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 11
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 201 MovieClip Frame 13
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 201 MovieClip Frame 15
beep = new Sound(this);
beep.attachSound("beep");
beep.start(0, 1);
Symbol 213 Button
on (release) {
changetored();
_root.shots = _root.shots - 1;
_root.totalshots = _root.totalshots - 1;
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 10
stop();
Symbol 219 Button
on (release) {
changetogreen();
_root.shots = _root.shots - 1;
_root.totalshots = _root.totalshots - 1;
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 10
stop();
Symbol 225 Button
on (release) {
changetoblue();
_root.shots = _root.shots - 1;
_root.totalshots = _root.totalshots - 1;
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(14) + 1);
}
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(14) + 1);
}
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(14) + 1);
}
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(14) + 1);
}
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(14) + 1);
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
stop();
Symbol 248 MovieClip Frame 4
stop();
Symbol 248 MovieClip Frame 5
stop();
Symbol 248 MovieClip Frame 6
stop();
Symbol 251 MovieClip Frame 50
stop();
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (load) {
this.endpoint = random(3) * 100;
this._y = this.endpoint;
_root.colour3 = this.endpoint / 100;
if (_root.colour3 == 0) {
trace("3green");
} else if (_root.colour3 == 1) {
trace("3red");
} else if (_root.colour3 == 2) {
trace("3blue");
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (load) {
this.endpoint = random(3) * 100;
this._y = this.endpoint;
_root.colour4 = this.endpoint / 100;
if (_root.colour4 == 0) {
trace("4green");
} else if (_root.colour4 == 1) {
trace("4red");
} else if (_root.colour4 == 2) {
trace("4blue");
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (load) {
this.endpoint = random(3) * 100;
this._y = this.endpoint;
_root.colour5 = this.endpoint / 100;
if (_root.colour5 == 0) {
trace("5green");
} else if (_root.colour5 == 1) {
trace("5red");
} else if (_root.colour5 == 2) {
trace("5blue");
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (load) {
this.endpoint = random(3) * 100;
this._y = this.endpoint;
_root.colour2 = this.endpoint / 100;
if (_root.colour2 == 0) {
trace("2green");
} else if (_root.colour2 == 1) {
trace("2red");
} else if (_root.colour2 == 2) {
trace("2blue");
}
}
Instance of Symbol 242 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (load) {
this.endpoint = random(3) * 100;
this._y = this.endpoint;
_root.colour1 = this.endpoint / 100;
if (_root.colour1 == 0) {
trace("1green");
} else if (_root.colour1 == 1) {
trace("1red");
} else if (_root.colour1 == 2) {
trace("1blue");
}
}
Instance of Symbol 248 MovieClip in Symbol 251 MovieClip Frame 50
onClipEvent (enterFrame) {
this.gotoAndStop(_root.colourcombo + 1);
}
Symbol 251 MovieClip Frame 51
_root.colourcombopoints = _root.combonumber * 10000;
_root.score = _root.score + _root.colourcombopoints;
Symbol 251 MovieClip Frame 53
_root.bonusmovie.play();
Symbol 252 MovieClip [timesup] Frame 1
stop();
Instance of Symbol 228 MovieClip "ammotypemovie" in Symbol 252 MovieClip [timesup] Frame 1
/* no clip actions */
Symbol 256 MovieClip [allroundscomplete] Frame 1
stop();
Symbol 256 MovieClip [allroundscomplete] Frame 65
Mouse.show();
_root.timesup.removeMovieClip();
_root.sight.removeMovieClip();
_root.gotoAndPlay("scores");
Symbol 273 Button
on (release) {
nextround();
}
Symbol 277 MovieClip [roundcomplete] Frame 1
stop();
Symbol 277 MovieClip [roundcomplete] Frame 20
stop();
Symbol 281 MovieClip [bonusmovie] Frame 1
stop();
Symbol 286 MovieClip [perfect] Frame 1
stop();
Symbol 290 MovieClip [killershot] Frame 1
stop();
Symbol 303 MovieClip [timerthing] Frame 1
stop();
Symbol 303 MovieClip [timerthing] Frame 2
_root.timerstop = 1;
Symbol 303 MovieClip [timerthing] Frame 64
_root.timerstop = 0;
Symbol 303 MovieClip [timerthing] Frame 65
_root.timerbonus = 50 * _root.targets;
maketargets();
Symbol 303 MovieClip [timerthing] Frame 66
if (_root.timerbonus > 0) {
_root.timerbonus = _root.timerbonus - 1;
}
Symbol 303 MovieClip [timerthing] Frame 67
gotoAndPlay ("loopstart");
Symbol 310 MovieClip [showthepoints] Frame 52
stop();
Symbol 314 Button
on (release) {
getURL ("http://www.thorgaming.com", "_blank");
}
Symbol 446 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 447 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(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 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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 448 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 317 Button
on (release) {
if (_root.soundon == 1) {
_root.local_data = SharedObject.getLocal("rgb_savefileddata");
_root.soundon = 0;
_root.local_data.data.soundonsaved = _root.soundon;
} else {
_root.local_data = SharedObject.getLocal("rgb_savefileddata");
_root.soundon = 1;
_root.local_data.data.soundonsaved = _root.soundon;
}
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundon == 0) {
this.gotoAndStop(1);
_root.musicplaying = 0;
_root.mytracks.stop();
_root.thetrack.setVolume(0);
} else {
_root.thetrack.setVolume(100);
if (_root.musicplaying == 0) {
_root.musicplaying = 1;
this.play();
}
}
}
Symbol 330 Button
on (release) {
_root.musictype = 1;
_root.play();
}
Symbol 335 Button
on (release) {
_root.options.gotoAndStop(1);
_root.controls.gotoAndStop(1);
_root.moregames.gotoAndStop(1);
_root.blacking.gotoAndPlay(2);
mochi.MochiScores.showLeaderboard({boardID:"003568beb6a78eda", res:"700x500", numScores:20, onClose:function () {
onclosefunction();
}});
}
Symbol 337 MovieClip Frame 20
stop();
Symbol 342 Button
on (release) {
_root.musictype = 2;
_root.play();
}
Symbol 343 Button
on (release) {
_root.options.gotoAndStop(1);
_root.controls.gotoAndStop(1);
_root.moregames.gotoAndStop(1);
_root.blacking.gotoAndPlay(2);
mochi.MochiScores.showLeaderboard({boardID:"2cf3aec50100991d", res:"700x500", numScores:20, onClose:function () {
onclosefunction();
}});
}
Symbol 345 MovieClip Frame 40
stop();
Symbol 350 Button
on (release) {
_root.musictype = 3;
_root.play();
}
Symbol 351 Button
on (release) {
_root.options.gotoAndStop(1);
_root.controls.gotoAndStop(1);
_root.moregames.gotoAndStop(1);
_root.blacking.gotoAndPlay(2);
mochi.MochiScores.showLeaderboard({boardID:"498497433fd4f89e", res:"700x500", numScores:20, onClose:function () {
onclosefunction();
}});
}
Symbol 353 MovieClip Frame 60
stop();
Symbol 358 Button
on (release) {
_root.blacking.gotoAndPlay(2);
_root.moregames.gotoAndPlay(2);
_root.instructions.gotoAndStop(1);
}
Symbol 368 Button
on (release) {
_root.blacking.gotoAndPlay(2);
_root.moregames.gotoAndStop(1);
_root.instructions.gotoAndPlay(2);
}
Symbol 373 MovieClip Frame 28
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 5
stop();
Symbol 382 Button
on (release) {
getURL ("http://www.thorgaming.com/games/3728/thor-golf.html", "_blank");
}
Symbol 384 Button
on (release) {
getURL ("http://www.thorgaming.com/games/386/throw-me.html", "_blank");
}
Symbol 386 Button
on (release) {
getURL ("http://www.thorgaming.com/games/388/thor-towers.html", "_blank");
}
Symbol 388 Button
on (release) {
getURL ("http://www.thorgaming.com/games/390/rgb.html", "_blank");
}
Symbol 390 Button
on (release) {
getURL ("http://www.thorgaming.com/games/3700/flying-headers.html", "_blank");
}
Symbol 392 Button
on (release) {
getURL ("http://www.thorgaming.com/games/393/pixel-blaster.html", "_blank");
}
Symbol 394 Button
on (release) {
getURL ("http://www.thorgaming.com/games/425/deadeye.html", "_blank");
}
Symbol 396 Button
on (release) {
getURL ("http://www.thorgaming.com/games/3703/flatliner.html", "_blank");
}
Symbol 411 Button
on (release) {
_root.moregames.play();
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
_root.blacking.gotoAndPlay(2);
Symbol 412 MovieClip Frame 6
stop();
Symbol 412 MovieClip Frame 8
_root.blacking.gotoAndPlay(7);
Symbol 442 Button
on (release) {
_root.instructions.play();
}
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
_root.blacking.gotoAndPlay(2);
Symbol 443 MovieClip Frame 6
stop();
Symbol 443 MovieClip Frame 8
_root.blacking.gotoAndPlay(7);