Frame 1
MochiAd.showPreGameAd({id:"60f9150d56f9b1f9", res:"550x400", background:8777447, color:16777215, outline:1340539, no_bg:true});
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
sounds = true;
__com_mochibot__("d8dcd884", this, 10301, true);
stop();
Instance of Symbol 25 MovieClip [Splash] in Frame 2
//component parameters
onClipEvent (construct) {
frameAfterCompletion = 3;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 3
i = 30;
prsss = 0;
pr2 = 0;
stop();
ss = true;
nname = "-Input Name Here-";
Frame 4
hi = 0;
stop();
ss = false;
Instance of Symbol 58 MovieClip "mmm" in Frame 4
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
_x = _root._xmouse;
_y = _root._ymouse;
}
on (press) {
if (_root.pup._currentframe == 500) {
gotoAndPlay (2);
_root.pup.gotoAndPlay(1);
}
}
Frame 5
fallspeed = 1.2;
fall = 0;
mp = 0;
big = 0;
end = 0;
slo = false;
tm = 300;
am = 4;
score = 0;
stop();
onEnterFrame = function () {
if (lvl < 1) {
_root.llup.play();
level = level + 1;
lvl = 50 + (level * 50);
}
if (i > 200) {
i = 0;
}
if (end > 0) {
end = end - 1;
}
if (big == 0) {
if (slo == 0) {
pupe.gotoAndStop(1);
}
}
if (big > 0) {
pupe.gotoAndStop(2);
mmm._xscale = 200;
mmm._yscale = 200;
big = big - 1;
}
if (big == 0) {
mmm._xscale = 100;
mmm._yscale = 100;
}
if (slo > 0) {
pupe.gotoAndStop(3);
slo = slo - 1;
}
if (score > hi) {
hi = score;
}
tm = tm - 1;
if (tm == 0) {
if (am > 1) {
am = am - 1;
tm = 300;
}
}
if (random(am) == 0) {
i++;
duplicateMovieClip (_root.clipinit, "clip" + i, i);
}
if (random(700) == 0) {
i++;
duplicateMovieClip (_root.fireball, "fire" + i, i);
}
if (random(700) == 0) {
i++;
duplicateMovieClip (_root.timer, "tim" + i, i);
}
if (random(1200) == 0) {
i++;
duplicateMovieClip (_root.ender, "endd" + i, i);
}
if (random(700) == 0) {
i++;
duplicateMovieClip (_root.scalee, "scal" + i, i);
}
mp = score / 1000000;
fallspeed = fallspeed + (0.001 + mp);
};
lvl = 100;
level = 1;
Instance of Symbol 79 MovieClip "l1" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l2" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l3" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l4" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l5" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l6" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l7" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l8" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l9" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l10" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l11" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l13" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l14" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l15" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 79 MovieClip "l16" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mmm)) {
if (_root.mmm._currentframe == 31) {
_currentframe = (_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
}
}
}
Instance of Symbol 69 MovieClip "clipinit" in Frame 5
onClipEvent (load) {
rad = random(2);
movieWidth = 550;
movieHeight = 400;
i = 1 + (Math.random() * 2);
k = -3.14159265358979 + (Math.random() * Math.PI);
}
onClipEvent (enterFrame) {
rad = rad + ((k / 180) * Math.PI);
this._x = this._x - (Math.cos(rad) / 3);
}
onClipEvent (load) {
lrr = random(10) - random(10);
_x = (random(530) + 10);
_y = 0;
}
onClipEvent (enterFrame) {
if (this._name == "clipinit") {
gotoAndPlay (2);
}
if (_root._currentframe == 6) {
gotoAndPlay (2);
this.removeMovieClip();
}
if (_root.end > 0) {
gotoAndPlay (2);
}
if (this.hitTest(_root.mmm)) {
if (_currentframe == 1) {
if (_root.sounds == true) {
_root.snd.gotoAndPlay(2);
}
_root.lvl = _root.lvl - 1;
_root.score = _root.score + 1;
_root.sco.gotoAndPlay(2);
this.gotoAndPlay(2);
}
}
if (_root.slo == 0) {
_y = (_y + _root.fallspeed);
} else {
_y = (_y + (_root.fallspeed / 4));
}
if (_currentframe == 1) {
if (this.hitTest(_root.l1)) {
_root.l1.gotoAndStop((_root.l1._currentframe = _root.l1._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l2)) {
_root.l2.gotoAndStop((_root.l2._currentframe = _root.l2._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l3)) {
_root.l3.gotoAndStop((_root.l3._currentframe = _root.l3._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l4)) {
_root.l4.gotoAndStop((_root.l4._currentframe = _root.l4._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l5)) {
_root.l5.gotoAndStop((_root.l5._currentframe = _root.l5._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l6)) {
_root.l6.gotoAndStop((_root.l6._currentframe = _root.l6._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l7)) {
_root.l7.gotoAndStop((_root.l7._currentframe = _root.l7._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l8)) {
_root.l8.gotoAndStop((_root.l8._currentframe = _root.l8._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l9)) {
_root.l9.gotoAndStop((_root.l9._currentframe = _root.l9._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l10)) {
_root.l10.gotoAndStop((_root.l10._currentframe = _root.l10._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l11)) {
_root.l11.gotoAndStop((_root.l11._currentframe = _root.l11._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l12)) {
_root.l12.gotoAndStop((_root.l12._currentframe = _root.l12._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l13)) {
_root.l13.gotoAndStop((_root.l13._currentframe = _root.l13._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l14)) {
_root.l14.gotoAndStop((_root.l14._currentframe = _root.l14._currentframe + 1));
this.removeMovieClip();
}
if (this.hitTest(_root.l15)) {
_root.l15.gotoAndStop((_root.l15._currentframe = _root.l15._currentframe + 1));
this.removeMovieClip();
}
}
}
Instance of Symbol 69 MovieClip "timer" in Frame 5
onClipEvent (load) {
_x = random(550);
_y = 0;
}
onClipEvent (enterFrame) {
if (this._name == "timer") {
gotoAndPlay (2);
}
if (_root._currentframe == 6) {
gotoAndPlay (2);
this.removeMovieClip();
}
if (this.hitTest(_root.mmm)) {
if (_currentframe == 1) {
if (_root.sounds == true) {
_root.snd.gotoAndPlay(4);
}
_root.slo = 200;
_root.score = _root.score + 1;
_root.sco.gotoAndPlay(2);
this.gotoAndPlay(2);
}
}
if (_root.slo == false) {
_y = (_y + _root.fallspeed);
} else {
_y = (_y + (_root.fallspeed / 4));
}
}
Instance of Symbol 69 MovieClip "scalee" in Frame 5
onClipEvent (load) {
_x = random(550);
_y = 0;
}
onClipEvent (enterFrame) {
if (this._name == "scalee") {
gotoAndPlay (2);
}
if (_root._currentframe == 6) {
gotoAndPlay (2);
this.removeMovieClip();
}
if (this.hitTest(_root.mmm)) {
if (_currentframe == 1) {
if (_root.sounds == true) {
_root.snd.gotoAndPlay(8);
}
_root.big = 200;
_root.score = _root.score + 1;
_root.sco.gotoAndPlay(2);
this.gotoAndPlay(2);
}
}
if (_root.slo == false) {
_y = (_y + _root.fallspeed);
} else {
_y = (_y + (_root.fallspeed / 4));
}
}
Instance of Symbol 69 MovieClip "ender" in Frame 5
onClipEvent (load) {
_x = random(550);
_y = 0;
}
onClipEvent (enterFrame) {
if (this._name == "ender") {
gotoAndPlay (2);
}
if (_root._currentframe == 6) {
gotoAndPlay (2);
this.removeMovieClip();
}
if (this.hitTest(_root.mmm)) {
if (_currentframe == 1) {
_root.pupe.gotoAndPlay(5);
if (_root.sounds == true) {
_root.snd.gotoAndPlay(6);
}
_root.end = 10;
_root.score = _root.score + 1;
_root.sco.gotoAndPlay(2);
this.gotoAndPlay(2);
}
}
if (_root.slo == false) {
_y = (_y + _root.fallspeed);
} else {
_y = (_y + (_root.fallspeed / 4));
}
}
Instance of Symbol 69 MovieClip "fireball" in Frame 5
onClipEvent (load) {
_x = (random(530) + 10);
_y = 0;
}
onClipEvent (enterFrame) {
if (this._name == "clipinit") {
gotoAndPlay (2);
}
if (_root._currentframe == 4) {
gotoAndPlay (2);
this.removeMovieClip();
}
if (_root.end > 0) {
gotoAndPlay (2);
}
if (this.hitTest(_root.mmm)) {
if (_currentframe == 1) {
_root.snd.gotoAndPlay(2);
this.gotoAndPlay(2);
}
}
if (_root.slo == 0) {
_y = (_y + _root.fallspeed);
} else {
_y = (_y + (_root.fallspeed / 4));
}
if (_currentframe == 1) {
if (this.hitTest(_root.l1)) {
_root.l1.gotoAndStop((_root.l1._currentframe = _root.l1._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l2)) {
_root.l2.gotoAndStop((_root.l2._currentframe = _root.l2._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l3)) {
_root.l3.gotoAndStop((_root.l3._currentframe = _root.l3._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l4)) {
_root.l4.gotoAndStop((_root.l4._currentframe = _root.l4._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l5)) {
_root.l5.gotoAndStop((_root.l5._currentframe = _root.l5._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l6)) {
_root.l6.gotoAndStop((_root.l6._currentframe = _root.l6._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l7)) {
_root.l7.gotoAndStop((_root.l7._currentframe = _root.l7._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l8)) {
_root.l8.gotoAndStop((_root.l8._currentframe = _root.l8._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l9)) {
_root.l9.gotoAndStop((_root.l9._currentframe = _root.l9._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l10)) {
_root.l10.gotoAndStop((_root.l10._currentframe = _root.l10._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l11)) {
_root.l11.gotoAndStop((_root.l11._currentframe = _root.l11._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l12)) {
_root.l12.gotoAndStop((_root.l12._currentframe = _root.l12._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l13)) {
_root.l13.gotoAndStop((_root.l13._currentframe = _root.l13._currentframe - 4));
this.removeMovieClip();
}
if (this.hitTest(_root.l14)) {
_root.l14.gotoAndStop((_root.l14._currentframe = _root.l14._currentframe - 4));
this.removeMovieClip();
}
}
}
Instance of Symbol 58 MovieClip "mmm" in Frame 5
onClipEvent (load) {
pres = 0;
}
onClipEvent (enterFrame) {
if (_currentframe == 31) {
_root.firem.gotoAndPlay((_root.firem._currentframe = _root.firem._currentframe - 13));
}
if (5 > _root.firem._currentframe) {
gotoAndStop (1);
}
if (Key.isDown(32)) {
if (pres == 0) {
if (_root.pup._currentframe == 356) {
pres = 1;
_root.pr2 = 1;
gotoAndPlay (2);
_root.pup.gotoAndPlay(2);
}
}
} else {
pres = 0;
}
_rotation = (_rotation + 2);
_x = _root._xmouse;
_y = _root._ymouse;
}
on (press) {
if (_root.firem._currentframe > 5) {
_root.prsss = 1;
gotoAndStop (31);
_root.firem.gotoAndPlay((_root.firem._currentframe = _root.firem._currentframe - 28));
} else {
gotoAndStop (1);
}
}
on (release) {
_root.firem.play();
gotoAndStop (1);
}
Instance of Symbol 129 MovieClip in Frame 5
on (press) {
if (_root.sounds == true) {
_root.sounds = false;
_root.ssss.gotoAndStop(101);
stopAllSounds();
gotoAndStop (2);
} else {
_root.sounds = true;
_root.ssss.gotoAndStop(100);
gotoAndStop (1);
}
}
Frame 6
if (score > hi) {
hi = score;
}
Instance of Symbol 145 MovieClip "sub2" in Frame 6
on (press) {
_root.gotoAndStop(7);
}
Frame 7
var level = 0;
var gameCode = "snow";
var lowIsBest = false;
var scoreString = ("" + score);
movHiScores.setDetails(30, level, gameCode, lowIsBest, score, scoreString, "points!");
Instance of Symbol 185 MovieClip [HiScores] "movHiScores" in Frame 7
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 186 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 187 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 2 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 3 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 4 MovieClip [__Packages.Splash] Frame 0
class Splash extends mx.core.UIComponent
{
var useHandCursor, boundingBox_mc, invalidate;
function Splash () {
super();
}
function init() {
super.init();
useHandCursor = false;
boundingBox_mc._visible = false;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function draw() {
super.draw();
if (_global.isLivePreview) {
boundingBox_mc._visible = true;
} else {
boundingBox_mc._visible = false;
}
}
function getFrameAfterCompletion() {
return(frameAfterCompletion);
}
function setFrameAfterCompletion(frameAfterCompletion) {
this.frameAfterCompletion = frameAfterCompletion;
}
static var symbolName = "Splash";
static var symbolOwner = Splash;
var className = "Splash";
var frameAfterCompletion = 0;
}
Symbol 26 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 27 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 28 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 29 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 151 MovieClip [__Packages.HiScores] Frame 0
class HiScores extends mx.core.UIComponent
{
var _visible, gameId, levelId, gameCode, lowIsBest, score, invalidate, getURL;
function HiScores () {
super();
_visible = false;
}
function setDetails(gameId, levelId, gameCode, lowIsBest, score, msg1, msg2) {
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.lowIsBest = lowIsBest;
this.score = score;
movEntryScreen = movEntryScreen;
movInfoScreen = movInfoScreen;
movEntryScreen.txtMsg1.text = msg1;
movEntryScreen.txtMsg2.text = msg2;
movEntryScreen.txtName.text = "";
movEntryScreen.txtCode.text = "";
movEntryScreen._visible = true;
movInfoScreen._visible = false;
secCodeLoad();
_visible = true;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function secCodeLoad() {
var _local2 = new MovieClipLoader();
_local2.loadClip((HS_SERVLET_URL + "?type=genCode&cachebuster=") + new Date().getTime(), movEntryScreen.movCode);
}
function back() {
movEntryScreen._visible = true;
movInfoScreen._visible = false;
}
function viewScore() {
getURL((((((((HI_SCORE_URL + gameCode) + "_hs") + "&name=") + movEntryScreen.txtName.text) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime(), "_blank");
}
function showInfoMessage(msg, error) {
movInfoScreen.txtInfo.text = msg;
movInfoScreen.btnBack._visible = error;
movInfoScreen.btnView._visible = !error;
}
function submitScore() {
movEntryScreen._visible = false;
movInfoScreen._visible = true;
var _local8 = true;
if (movEntryScreen.txtName.text.length == 0) {
showInfoMessage("Please enter your name.", true);
} else if (movEntryScreen.txtCode.text.length != 5) {
showInfoMessage("Please enter all 5 letters of the security code.", true);
} else {
showInfoMessage("Submitting hi-score details to the server, please wait.", true);
movInfoScreen.btnBack._visible = false;
_local8 = false;
}
if (!_local8) {
var _local9 = movEntryScreen.txtName.text;
var _local4 = (((((((("save|" + _local9) + "|") + movEntryScreen.txtCode.text) + "|") + score) + "|") + gameId) + "|") + levelId;
var _local5 = "";
var _local3 = 0;
var _local2 = 0;
while (_local3 < _local4.length) {
if (_local2 >= KEY.length) {
_local2 = 0;
}
_local5 = _local5 + String.fromCharCode((_local4.charCodeAt(_local3) ^ KEY.charCodeAt(_local2)) + 1);
_local3++;
_local2++;
}
var self = this;
var _local6 = new LoadVars();
_local6.ffdata = _local5;
_local6.lowIsBest = lowIsBest;
_local6.sendAndLoad(HS_SERVLET_URL, _local6, "POST");
_local6.onLoad = function (success) {
var _local2 = parseInt(this.res);
if (!success) {
self.showInfoMessage("A serious problem was encountered with the server, please try again in a few minutes.", true);
} else if (_local2 == -1) {
self.showInfoMessage("Could not store hi-score details. Click on back, generate a new security code and re-submit.", true);
} else if (_local2 == 0) {
self.showInfoMessage("Sorry, a better score already exists with that name.", false);
} else if (_local2 == 1) {
self.showInfoMessage("Congratulations! You made it into the\nhi-score table.", false);
}
};
}
}
static var symbolName = "HiScores";
static var symbolOwner = HiScores;
var className = "HiScores";
static var SERVER_URL = "http://www.gimme5games.com";
static var SERVLET_URL = SERVER_URL + "/servlet/otwServlet";
static var HS_SERVLET_URL = SERVER_URL + "/servlet/hiServlet";
static var HI_SCORE_URL = SERVER_URL + "/index.jsp?id=";
var KEY = "rocket";
var movEntryScreen = null;
var movInfoScreen = null;
}
Symbol 14 Button
on (release) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 25 MovieClip [Splash] Frame 1
#initclip 11
Object.registerClass("Splash", Splash);
#endinitclip
Symbol 25 MovieClip [Splash] Frame 91
_root.gotoAndStop(this.getFrameAfterCompletion());
Symbol 32 MovieClip Frame 101
stop();
Symbol 40 Button
on (press) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
}
Symbol 43 Button
on (press) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 30
gotoAndStop (1);
Symbol 58 MovieClip Frame 31
stop();
Symbol 67 MovieClip Frame 1
stop();
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
if (_root.ss == true) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
gotoAndStop(random(5) + 1);
size = random(200);
_xscale = size;
_yscale = size;
xspeed = random(3) - 1;
yspeed = random(3) - 1;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.removeMovieClip();
}
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
_root.points.gotoAndPlay(2);
Symbol 69 MovieClip Frame 74
this.removeMovieClip();
Symbol 69 MovieClip Frame 75
stop();
Symbol 71 MovieClip Frame 44
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 6
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 27
_root.gotoAndStop(6);
Symbol 88 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 5
stop();
Symbol 94 MovieClip Frame 7
stop();
Symbol 94 MovieClip Frame 9
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
play();
Symbol 111 MovieClip Frame 2
play();
Symbol 111 MovieClip Frame 356
stop();
Instance of Symbol 110 MovieClip in Symbol 111 MovieClip Frame 356
onClipEvent (enterFrame) {
if (_root.pr2 > 0) {
this._alpha = 0;
}
}
Symbol 123 MovieClip Frame 600
stop();
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 600
onClipEvent (enterFrame) {
if (_root.prsss == 1) {
this._alpha = 0;
}
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 134 Button
on (press) {
_root.gotoAndStop(3);
}
Symbol 138 Button
on (press) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 141 Button
on (press) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.nname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTg2NmolZSVhJW4lcw==", "dmpKSXhpUVI=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.sub2.gotoAndPlay(2);
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 10
stop();
getURL ("http://rankz.armorbot.com/stardust/", "_blank");
Symbol 150 Button
on (press) {
_root.gotoAndStop(2);
}
Symbol 169 Button
on (release) {
_parent.submitScore();
}
Symbol 171 Button
on (release) {
_parent.secCodeLoad();
}
Symbol 178 Button
on (release) {
_parent.back();
}
Symbol 181 Button
on (release) {
_parent.viewScore();
}
Symbol 185 MovieClip [HiScores] Frame 1
#initclip 12
Object.registerClass("HiScores", HiScores);
#endinitclip