Frame 1
MochiAd.showPreGameAd({id:"6e38606852aac0bc", res:"600x450"});
stop();
Frame 2
stop();
Instance of Symbol 30 MovieClip "loader" in Frame 2
/* no clip actions */
Frame 3
curlevel = 1;
_root.myprevlelscr = 0;
stop();
Frame 4
_root.botsballspeed = 15;
_root.banglejump = 1;
_root.bxmove = 3;
totbotsarr = new Array("", 15, 20, 30, 40, 50, 60, 70, 80, 90, 100);
totbotslanearr = new Array("", 4, 5, 6, 7, 7, 8, 9, 9, 10, 10);
totbns3firearr = new Array("", 0, 2, 3, 4, 5, 6, 7, 8, 9, 10);
myarrlanein = new Array("", 190, 170, 145, 0, 190);
myarrlaneout = new Array("", -100, -90, -80, -450, -440);
Frame 5
function levelincfunc(curlevel) {
totbots = totbotsarr[curlevel];
totbotslane = totbotslanearr[curlevel];
totbns3fire = totbns3firearr[curlevel];
bothitarray = new Array();
diamondarr = new Array();
i = 0;
while (i <= totbots) {
bothitarray.push(0);
diamondarr.push(0);
i++;
}
}
function bgenfunc() {
_root.stick.pchar.gotoAndPlay(2);
bcount++;
duplicateMovieClip (_root.myballlon, "myballlon" + bcount, bcount);
_root["myballlon" + bcount]._rotation = _root.stick._rotation;
if ((threefire >= 1) and (threefire <= 30)) {
threefire++;
bcount++;
duplicateMovieClip (_root.myballlonrt, "myballlonrt" + bcount, bcount);
_root["myballlonrt" + bcount]._rotation = _root.stick._rotation + 10;
bcount++;
duplicateMovieClip (_root.myballlonlt, "myballlonlt" + bcount, bcount);
_root["myballlonlt" + bcount]._rotation = _root.stick._rotation - 10;
}
}
function genbotsfnc() {
if (botgnum >= totbots) {
func1();
} else if ((curlevel >= 1) and (curlevel <= 10)) {
botgnum++;
if (laneselect == 1) {
duplicateMovieClip (_root.bots1lane, "bot" + botgnum, botgnum + 10000);
_root["bot" + botgnum].lane = 1;
_root["bot" + botgnum].banglejump = _root.banglejump;
_root["bot" + botgnum].myway = 0;
laneselect = 2;
} else if (laneselect == 2) {
duplicateMovieClip (_root.bots2lane, "bot" + botgnum, botgnum + 10000);
_root["bot" + botgnum].lane = 2;
_root["bot" + botgnum].myway = random(2);
if (_root["bot" + botgnum].myway == 1) {
_root["bot" + botgnum].banglejump = -_root.banglejump;
} else {
_root["bot" + botgnum].banglejump = _root.banglejump;
}
laneselect = 3;
} else if (laneselect == 3) {
duplicateMovieClip (_root.bots3lane, "bot" + botgnum, botgnum + 10000);
_root["bot" + botgnum].lane = 3;
_root["bot" + botgnum].myway = random(3) + 1;
if (_root["bot" + botgnum].myway == 1) {
_root["bot" + botgnum].myway = 0;
_root["bot" + botgnum].banglejump = _root.banglejump;
} else if ((_root["bot" + botgnum].myway == 2) or (_root["bot" + botgnum].myway == 3)) {
_root["bot" + botgnum].banglejump = -_root.banglejump;
}
laneselect = 1;
}
_root["bot" + botgnum].bxmove = _root.bxmove;
_root["bot" + botgnum].myname = botgnum;
_root["bot" + botgnum].mybodyclr = random(4) + 1;
}
}
function plusfivefnc(txt, whichbal) {
plusfivetxt++;
duplicateMovieClip (_root.plusfive, "plusfive" + plusfivetxt, plusfivetxt + 15000);
_root["plusfive" + plusfivetxt]._x = _root["bot" + txt]._x;
_root["plusfive" + plusfivetxt]._y = _root["bot" + txt]._y;
_root["plusfive" + plusfivetxt].spakles.gotoAndStop(whichbal);
}
function plusthreefnc(txt) {
plusthreetxt++;
duplicateMovieClip (_root.plusthree, "plusthree" + plusthreetxt, plusthreetxt + 20000);
_root["plusthree" + plusthreetxt]._x = _root["diamond" + txt]._x;
_root["plusthree" + plusthreetxt]._y = _root["diamond" + txt]._y;
}
function plusonefnc(txt, whichbal) {
plusonetxt++;
duplicateMovieClip (_root.plusone, "plusone" + plusonetxt, plusonetxt + 25000);
_root["plusone" + plusonetxt]._x = _root.stick._x;
_root["plusone" + plusonetxt]._y = _root.stick._y;
if (txt == 2) {
_root["plusone" + plusonetxt].plusone._visible = 0;
_root["plusone" + plusonetxt].spakles.gotoAndStop(whichbal);
} else {
_root["plusone" + plusonetxt].spakles._visible = 0;
}
}
function diamondsfnc(txt) {
if (_root["bot" + txt].myway == 0) {
_root["bot" + txt].banglejump = _root["bot" + txt].banglejump + 0.5;
} else {
_root["bot" + txt].banglejump = _root["bot" + txt].banglejump - 0.5;
}
_root["bot" + txt].bxmove = _root["bot" + txt].bxmove + 0.5;
if (diamondarr[txt] == 0) {
duplicateMovieClip (_root.diamonds, "diamond" + txt, txt + 5000);
_root["diamond" + txt]._x = _root["bot" + txt]._x;
_root["diamond" + txt]._y = _root["bot" + txt]._y;
if (totbns3fire > 0) {
_root["diamond" + txt].myfrm = random(4) + 1;
} else {
_root["diamond" + txt].myfrm = random(3) + 1;
}
if (_root["diamond" + txt].myfrm != 4) {
curx = _root.stick._x - _root["diamond" + txt]._x;
cury = _root.stick._y - _root["diamond" + txt]._y;
anglerot = (-Math.atan2(curx, cury)) / (Math.PI/180);
_root["diamond" + txt]._rotation = anglerot;
}
_root["diamond" + txt].myname = txt;
diamondarr[txt] = 1;
}
_root.bonusbox._x = _root.bonusbox._x + 10;
if ((_root.bonusbox._x > 60) and (_root.bonusmc2._currentframe == 1)) {
_root.bonusmc2.gotoAndPlay(2);
}
if ((_root.bonusbox._x > 30) and (_root.bonusmc1._currentframe == 1)) {
_root.bonusmc1.gotoAndPlay(2);
}
}
function func1() {
if (botendnum == 0) {
screen1.gotoAndPlay(2);
}
}
levelincfunc(curlevel);
threefire = 0;
gamestatus1 = 1;
_root.mylanenum = 0;
bcount = 0;
botgnum = 0;
botendnum = totbots;
laneselect = 1;
genbotsfnc();
plusfivetxt = 0;
plusthreetxt = 0;
plusonetxt = 0;
_root.mybothitscr = 0;
_root.mybonusscr = 0;
_root.myscr = 0;
_root.plusfive.plusfive.gotoAndStop(1);
_root.plusthree.plusthree.gotoAndStop(1);
_root.plusone.plusone.gotoAndStop(1);
_root.diamonds.removedimonds.gotoAndStop(1);
_root.myballlon.gotoAndStop(1);
_root.myballlonrt.gotoAndStop(1);
_root.myballlonlt.gotoAndStop(1);
_root.bots1lane.gotoAndStop(1);
_root.bots2lane.gotoAndStop(1);
_root.bots3lane.gotoAndStop(1);
_root.stripcover.swapDepths(100000);
_root.screen1.swapDepths(100005);
_root.pauseplaymc.gotoAndStop(3);
stop();
Instance of Symbol 161 MovieClip "bots2lane" in Frame 5
onClipEvent (load) {
lane = 2;
}
Instance of Symbol 161 MovieClip "bots3lane" in Frame 5
onClipEvent (load) {
lane = 3;
}
Instance of Symbol 161 MovieClip "bots1lane" in Frame 5
onClipEvent (load) {
lane = 1;
}
Instance of Symbol 230 MovieClip "stick" in Frame 5
onClipEvent (enterFrame) {
if (_root.gamestatus1 == 1) {
mousex = _parent._xmouse;
mousey = _parent._ymouse;
curx = _x - mousex;
cury = _y - mousey;
myrotation = (-Math.atan2(curx, cury)) / (Math.PI/180);
_rotation = myrotation;
}
}
Instance of Symbol 273 MovieClip "bonusbox" in Frame 5
onClipEvent (load) {
thisx = _root.bonusbox._x;
}
Instance of Symbol 442 MovieClip in Frame 6
onClipEvent (load) {
username1 = _root.unm;
gmsess1 = _root.gmsess;
gmid1 = _root.gmid;
mesoundtxt = _root.mesoundtxt;
curlevel = _root.curlevel;
myprevlelscr = _root.myprevlelscr;
for (all in _root) {
removeMovieClip(_root[all]);
}
stopAllSounds();
_root.unm = username1;
_root.gmsess = gmsess1;
_root.gmid = gmid1;
_root.mesoundtxt = mesoundtxt;
_root.curlevel = curlevel + 1;
_root.myprevlelscr = myprevlelscr;
_root.gotoAndPlay(3);
}
Symbol 443 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.6");
}
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 () {
}, 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) {
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 () {
}, 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) {
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 () {
}, 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) {
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) {
showPreGameAd(options);
}
static function showTimedAd(options) {
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") {
}
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);
}
}
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 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 100
nextFrame();
Symbol 28 Button
on (release, keyPress "<Enter>") {
_root.yogesh.doit3();
gotoAndStop (1);
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete this.onEnterFrame;
nextFrame();
}
per = int((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
process = ("Loading " + per) + " %";
band.gotoAndStop(per);
};
stop();
Symbol 30 MovieClip Frame 2
_root.nextFrame();
Symbol 39 Button
on (release) {
gotoAndStop (2);
}
Symbol 43 Button
on (release) {
_root.gotoAndPlay(3);
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 88 Button
on (press) {
if (_root.gamestatus1 == 1) {
_root.bgenfunc();
}
}
Symbol 89 MovieClip Frame 1
btnpg.useHandCursor = false;
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 3
_root.myscr = _root.myscr + 5;
_root.mybothitscr = _root.mybothitscr + 5;
_root.plusfivefnc(_parent.myname, _parent.whichbal);
Symbol 95 MovieClip Frame 12
Instance of Symbol 104 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.mybodyclr);
}
Symbol 146 MovieClip Frame 10
if (_root.gamestatus1 == 1) {
gotoAndPlay (1);
}
Symbol 146 MovieClip Frame 13
gotoAndPlay (10);
Symbol 146 MovieClip Frame 65
gotoAndStop (54);
Symbol 157 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
whichbal = random(4) + 1;
bal_mc.bal.gotoAndStop(whichbal);
this.onEnterFrame = function () {
if (_root.gamestatus1 == 1) {
if (_root.stick.pchar.shield.hitTest(bal_mc)) {
delete this.onEnterFrame;
_root.plusonefnc(1, whichbal);
_root.stick.pchar.shield.play();
_root.myscr = _root.myscr + 1;
_root.mybonusscr = _root.mybonusscr + 1;
_parent.nextbalfn();
} else if (_root.stick.pchar.memc.hitTest(bal_mc)) {
delete this.onEnterFrame;
_root.stick.pchar.memc.gotoAndPlay(2);
_root.plusonefnc(2, whichbal);
_root.healthbar.nextFrame();
_parent.nextbalfn();
} else {
if (bal_mc._y < -170) {
delete this.onEnterFrame;
_parent.nextbalfn();
}
bal_mc._y = bal_mc._y - _root.botsballspeed;
}
}
};
stop();
Symbol 160 MovieClip Frame 13
_parent.bchar2.gotoAndPlay(55);
Symbol 160 MovieClip Frame 20
function nextbalfn() {
_parent.fire--;
if ((_parent.fire == 0) or (_root.bothitarray[_parent.myname] == 1)) {
_root.diamondsfnc(_parent.myname);
_parent.prevFrame();
} else {
gotoAndPlay (2);
}
}
stop();
Symbol 161 MovieClip Frame 1
step = 1;
if (myway == 0) {
myrandomstop = random(150) - 255;
} else if (((myway == 1) or (myway == 2)) or (myway == 3)) {
myrandomstop = random(150) - 430;
}
Symbol 161 MovieClip Frame 2
function gamefunc() {
this.onEnterFrame = function () {
if (_root.gamestatus1 == 1) {
if (this._xscale > 101) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
}
if (step == 1) {
_x = (_x - bxmove);
if ((((_x - _root.stick._x) < _root.myarrlanein[5]) and (myway == 2)) or ((_x - _root.stick._x) < _root.myarrlanein[lane])) {
xdiff = _root.stick._x - _x;
ydiff = _root.stick._y - _y;
radius = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
angle = ((Math.atan2(xdiff, ydiff) * 180) / Math.PI) - 180;
bchar1.flipfnc1();
step = 2;
}
} else if (step == 2) {
_x = (_root.stick._x + (radius * Math.sin((angle * Math.PI) / 180)));
_y = (_root.stick._y + (radius * Math.cos((angle * Math.PI) / 180)));
angle = angle + banglejump;
curx = _root.stick._x - _x;
cury = _root.stick._y - _y;
anglerot = (-Math.atan2(curx, cury)) / (Math.PI/180);
_rotation = anglerot;
if (((Math.round(angle) >= myrandomstop) and (_root.bothitarray[myname] == 0)) and (myway == 0)) {
delete this.onEnterFrame;
myrandomstop = 1000;
nextFrame();
} else if (((Math.round(angle) <= myrandomstop) and (_root.bothitarray[myname] == 0)) and (((myway == 1) or (myway == 2)) or (myway == 3))) {
delete this.onEnterFrame;
myrandomstop = -1000;
nextFrame();
}
if ((angle > _root.myarrlaneout[lane]) and (myway == 0)) {
_rotation = 0;
step = 3;
} else if ((angle < _root.myarrlaneout[4]) and (myway == 1)) {
_rotation = 0;
bchar1.flipfnc2();
step = 3;
} else if ((angle < _root.myarrlaneout[5]) and ((myway == 2) or (myway == 3))) {
_rotation = 0;
bchar1.flipfnc2();
step = 3;
}
} else if (step == 3) {
_x = (_x - bxmove);
if (_x < 0) {
_root.botendnum--;
if (_root.nextlevelmc["nextlevelmc" + myname]._currentframe == 1) {
_root.nextlevelmc["nextlevelmc" + myname].gotoAndStop(3);
}
_root.genbotsfnc();
removeMovieClip(this);
}
}
}
};
}
gamefunc();
stop();
Instance of Symbol 146 MovieClip "bchar1" in Symbol 161 MovieClip Frame 2
onClipEvent (load) {
function flipfnc1() {
if (_parent.myway != 0) {
this._xscale = -100;
this._x = 9.1;
}
}
function flipfnc2() {
if (_parent.myway != 0) {
this._xscale = 100;
this._x = -9.1;
}
}
if (_parent.step == 2) {
flipfnc1();
}
}
Symbol 161 MovieClip Frame 3
fire = 3;
bchar2.gotoAndStop(54);
Symbol 165 MovieClip Frame 18
_parent.remfnc();
Symbol 170 MovieClip Frame 9
stop();
Symbol 175 MovieClip Frame 8
stop();
Symbol 180 MovieClip Frame 8
stop();
Symbol 185 MovieClip Frame 8
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
function remfnc() {
removeMovieClip(this);
}
Symbol 190 MovieClip Frame 15
_parent.remfnc();
Symbol 191 MovieClip Frame 1
function remfnc() {
removeMovieClip(this);
}
Symbol 194 MovieClip Frame 15
_parent.remfnc();
Symbol 195 MovieClip Frame 1
function remfnc() {
removeMovieClip(this);
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 10
gotoAndStop (1);
Instance of Symbol 229 MovieClip "pchar" in Symbol 230 MovieClip Frame 1
onClipEvent (keyDown) {
_root.shieldstatus = 1;
gotoAndStop (11);
}
onClipEvent (keyUp) {
_root.shieldstatus = 0;
gotoAndStop (1);
}
Symbol 231 MovieClip Frame 2
whichbal = random(4) + 1;
bal_mc.bal.gotoAndStop(whichbal);
stop();
Instance of Symbol 158 MovieClip "bal_mc" in Symbol 231 MovieClip Frame 2
onClipEvent (load) {
function chkhit() {
if (this.hitTest(_root.stripcover.dot)) {
_y = -10000;
}
i = 1;
while (i <= _root.totbots) {
if (this.hitTest(_root["diamond" + i].effectmc.dot)) {
_root["diamond" + i].danimfnc();
_y = -10000;
}
if (this.hitTest(_root["bot" + i].myball.dot)) {
_root.bothitarray[i] = 1;
_root.nextlevelmc["nextlevelmc" + i].gotoAndStop(2);
_root["bot" + i].gotoAndStop(2);
_root["bot" + i].myball.play();
_root["bot" + i]._xscale = 130;
_root["bot" + i]._yscale = 130;
_root["bot" + i].whichbal = _parent.whichbal;
_root.diamondsfnc(i);
_y = -10000;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_root.gamestatus1 == 1) {
_y = (_y - 15);
if (_y < -120) {
chkhit();
}
if (_y < -300) {
removeMovieClip(_parent);
}
}
}
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 15
_root.myscr = _root.myscr + 20;
_root.mybonusscr = _root.mybonusscr + 20;
stop();
Symbol 252 Button
on (release) {
_root.mesoundtxt = 1;
gotoAndStop (2);
}
Symbol 254 Button
on (release) {
_root.mesoundtxt = 2;
gotoAndStop (1);
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
if (mykeyseltxt == undefined) {
mykeyseltxt = 1;
this.createEmptyMovieClip("holder_1", 1);
sound_1 = new Sound(holder_1);
sound_1.attachSound("sk");
sound_1.onSoundComplete = function () {
sound_1.attachSound("sk");
sound_1.start();
};
if (_root.mesoundtxt == undefined) {
sound_1.setVolume(70);
_root.mesoundtxt = 2;
}
if (_root.mesoundtxt == 1) {
sound_1.setVolume(0);
}
sound_1.start();
}
Instance of Symbol 255 MovieClip "soundmc" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (_root.mesoundtxt == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (_root.mesoundtxt == 1) {
mycurvol = 0;
} else if (_root.mesoundtxt == 2) {
mycurvol = 70;
}
}
onClipEvent (enterFrame) {
if (_root.mesoundtxt == 1) {
if (mycurvol > 0) {
mycurvol = mycurvol - 3;
_parent.sound_1.setVolume(mycurvol);
} else {
_parent.sound_1.setVolume(0);
}
} else if (_root.mesoundtxt == 2) {
if (mycurvol < 70) {
mycurvol = mycurvol + 3;
_parent.sound_1.setVolume(mycurvol);
} else {
_parent.sound_1.setVolume(70);
}
}
}
Symbol 262 Button
on (release) {
gotoAndStop (2);
}
Symbol 265 Button
on (release) {
gotoAndStop (1);
}
Symbol 266 MovieClip Frame 1
_root.gamestatus1 = 1;
stop();
Symbol 266 MovieClip Frame 2
_root.gamestatus1 = 0;
stop();
Symbol 271 MovieClip Frame 1
count = _root.totbotslane;
Symbol 271 MovieClip Frame 42
_root.genbotsfnc();
count--;
if (count == 1) {
nextFrame();
} else {
gotoAndPlay (2);
}
Symbol 271 MovieClip Frame 43
_root.pauseplaymc.gotoAndStop(1);
Symbol 273 MovieClip Frame 10
if (_root.bonusbox._x > thisx) {
_root.bonusbox._x = _root.bonusbox._x - 20;
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
myleveldis = "Peoples ";
Symbol 281 MovieClip Frame 2
stop();
k = 0;
m = 0;
n = 0;
thisy = nextlevelmc._y;
i = 1;
while (i <= _root.totbots) {
duplicateMovieClip (nextlevelmc, "nextlevelmc" + i, i);
this["nextlevelmc" + i]._x = (11 * k) + n;
this["nextlevelmc" + i].myname = i;
k--;
if ((i % 5) == 0) {
nextlevelmc._y = nextlevelmc._y - 11;
m++;
if (m == 12) {
n = -60;
nextlevelmc._y = thisy;
if (_root.curlevel > 6) {
nl._x = nl._x - 60;
}
}
k = 0;
}
i++;
}
nextlevelmc._alpha = 0;
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 4
_root.totbns3fire--;
Symbol 304 MovieClip Frame 27
stop();
Symbol 305 MovieClip Frame 21
stop();
Symbol 306 MovieClip Frame 16
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 3
_root.myscr = _root.myscr + 3;
_root.mybonusscr = _root.mybonusscr + 3;
_root.plusthreefnc(_parent.myname);
Symbol 308 MovieClip Frame 6
_parent.dlostfnc();
Symbol 309 MovieClip Frame 100
_parent.dautolostfnc();
Symbol 310 MovieClip Frame 1
function danimfnc() {
effectmc.gotoAndPlay(2);
if (diamonds._currentframe == 4) {
_root.threefire = 1;
}
}
function dlostfnc() {
onloadtxt = 0;
addon = 8;
this.onEnterFrame = function () {
if (myfrm == 4) {
diamonds._xscale = diamonds._xscale + 20;
diamonds._yscale = diamonds._yscale + 20;
_alpha = (_alpha - 5);
addon--;
if (addon == 0) {
delete this.onEnterFrame;
dautolostfnc();
}
} else {
_alpha = (_alpha - 10);
diamonds._y = diamonds._y - 5;
if (_alpha < 10) {
removeMovieClip(this);
}
}
};
}
function dautolostfnc() {
this.onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha < 10) {
removeMovieClip(this);
}
};
}
Instance of Symbol 299 MovieClip "diamonds" in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.myfrm);
}
Symbol 328 MovieClip Frame 1
stop();
_root.myhealth = 5;
Symbol 328 MovieClip Frame 2
_root.myhealth = 4;
Symbol 328 MovieClip Frame 3
_root.myhealth = 3;
Symbol 328 MovieClip Frame 4
_root.myhealth = 2;
Symbol 328 MovieClip Frame 5
_root.myhealth = 1;
Symbol 328 MovieClip Frame 6
_root.myhealth = 0;
_root.screen1.gotoAndPlay(2);
Symbol 332 Button
on (rollOver) {
bbtn.useHandCursor = false;
}
Symbol 365 MovieClip Frame 5
txt1 = _root.mybothitscr;
txt2 = _root.mybonusscr;
txt3 = _root.myhealth * 20;
txt4 = (txt1 + txt2) + txt3;
txt5 = _root.myprevlelscr + txt4;
accper = Math.round(_parent.txt2) + " %";
if (_parent.mystatus == "tryagain") {
if (txt5 < 250) {
_parent.gotoAndStop(8);
} else {
_parent.gotoAndStop(5);
}
} else if (_parent.mystatus == "nextlevel") {
if (_root.curlevel == 10) {
_parent.gotoAndStop(6);
} else if (txt5 < 250) {
_parent.gotoAndStop(7);
} else {
_parent.gotoAndStop(4);
}
}
stop();
Symbol 371 Button
on (press) {
_root.myprevlelscr = _parent.scoreboard.txt5;
_root.nextFrame();
}
Symbol 373 MovieClip Frame 10
stop();
Symbol 379 Button
on (press) {
_parent.gotoAndStop(6);
}
Symbol 380 MovieClip Frame 10
stop();
Symbol 386 Button
on (press) {
_root.curlevel--;
_root.nextFrame();
}
Symbol 387 MovieClip Frame 10
stop();
Symbol 393 MovieClip Frame 10
stop();
Symbol 433 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (releaseOutside) {
gotoAndStop (1);
}
on (release) {
_root.mybothitscr = 0;
_root.mybonusscr = 0;
_root.myprevlelscr = 0;
_root.curlevel = 0;
_root.nextFrame();
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 1
dataload = new LoadVars();
dataload.gmid = _root.gmid;
dataload.tim = 0;
dataload.sendAndLoad("http://www.gaminghungama.com/getSingleToppers.php3", dataload, "POST");
dataload.onLoad = function (success) {
if (success) {
if (dataload.done == 1) {
_root.toppers = dataload.toppers;
_root.topscore = dataload.topscore;
nextFrame();
}
} else {
dataload.sendAndLoad("http://www.gaminghungama.com/getSingleToppers.php3", dataload, "POST");
}
};
stop();
Symbol 439 MovieClip Frame 2
p = _root.toppers.split("|");
q = _root.topscore.split("|");
i = 0;
while (i <= 10) {
if (p[i]) {
this["t" + (i + 1)] = p[i];
if (q[i] == 1) {
this["s" + (i + 1)] = q[i];
} else {
this["s" + (i + 1)] = q[i];
}
this["n" + (i + 1)] = i + 1;
} else {
this["t" + (i + 1)] = "";
this["s" + (i + 1)] = "";
this["n" + (i + 1)] = "";
}
i++;
}
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
txt1 = 0;
_root.pauseplaymc.gotoAndStop(2);
i = 0;
while (i <= _root.totbots) {
if (_root.nextlevelmc["nextlevelmc" + i]._currentframe == 2) {
txt1++;
}
i++;
}
txt2 = (txt1 / _root.totbots) * 100;
myinfo = "";
if ((txt2 < 75) or (_root.myhealth == 0)) {
if (_root.myhealth == 0) {
myinfo = "You are busted!";
} else {
myinfo = "Your accuracy was lower than required.";
}
mystatus = "tryagain";
} else {
if (_root.curlevel == 10) {
myinfo = "CONGRATULATIONS.";
} else {
myinfo = "Well Done!! You may proceed to Next Level.";
}
mystatus = "nextlevel";
}
Symbol 440 MovieClip Frame 3
stop();
Symbol 440 MovieClip Frame 6
function submitscore() {
var _local2 = new Object();
mydata = "submitpoints";
_local2.mydata = mydata;
_local2.username = _root.unm;
_local2.gmsess = _root.gmsess;
_local2.gmid = _root.gmid;
_local2.score = score;
if ((score >= 250) and (score <= 1000)) {
_local2.pnt = 200;
} else if ((score >= 1001) and (score <= 2000)) {
_local2.pnt = 400;
} else if ((score >= 2001) and (score <= 4000)) {
_local2.pnt = 600;
} else if ((score >= 4001) and (score <= 7000)) {
_local2.pnt = 800;
} else if (score > 7001) {
_local2.pnt = 1000;
}
_local2.tim = 0;
_root.es.pluginRequest("db_single", "blank", _local2);
}
score = scoreboard.txt5;
_root.intervalId = setInterval(submitscore, 15000);
submitscore();