Frame 1
function __com_mochibot__(swfid, mc, lv) {
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=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("f59c2695", this, 10301);
function tweenManager() {
var _local1 = this;
_local1.playing = false;
_local1.autoStop = false;
_local1.broadcastEvents = false;
_local1.autoOverwrite = true;
_local1.tweenList = new Array();
_local1.ints = new Array();
_local1.lockedTweens = new Object();
_local1.now = 0;
_local1.isPaused = false;
_local1.pausedTime = 0;
}
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeOutInQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((_local1 * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((_local1 * _local1) + 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
Math.easeOutInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeOutInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((((_local1 * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeOutInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
Math.easeOutInSine = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((c / 2) * Math.sin((Math.PI * _local1) / 2)) + b);
}
_local1--;
return((((-c) / 2) * (Math.cos((Math.PI * _local1) / 2) - 2)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeOutInExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 1)) + _local2);
}
return(((_local3 / 2) * (Math.pow(2, 10 * (_local1 - 2)) + 1)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
Math.easeOutInCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return(((c / 2) * Math.sqrt(1 - (_local1 * _local1))) + b);
}
_local1--;
return(((c / 2) * (2 - Math.sqrt(1 - (_local1 * _local1)))) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local1 = p;
var _local2 = t;
var _local3 = c;
if (_local2 == 0) {
return(b);
}
_local2 = _local2 / d;
if (_local2 == 1) {
return(b + _local3);
}
if (!_local1) {
_local1 = d * 0.3;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local1 / 4);
} else {
var s = ((_local1 / (Math.PI*2)) * Math.asin(_local3 / a));
}
_local2 = _local2 - 1;
return((-((a * Math.pow(2, 10 * _local2)) * Math.sin((((_local2 * d) - s) * (Math.PI*2)) / _local1))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local1 = c;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + _local1);
}
if (!_local2) {
_local2 = d * 0.3;
}
if (a < Math.abs(_local1)) {
a = _local1;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local1 / a));
}
return((((a * Math.pow(2, -10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2)) + _local1) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.45;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local3 / a));
}
if (_local1 < 1) {
_local1--;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2))) + b);
}
_local1--;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2)) * 0.5) + _local3) + b);
};
Math.easeOutInElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = c;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local2);
}
if (!_local3) {
_local3 = d * 0.45;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(_local2 / a));
}
if (_local1 < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + (_local2 / 2)) + b);
}
return(((_local2 / 2) + (0.5 * ((a * Math.pow(2, 10 * (_local1 - 2))) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)))) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
};
Math.easeOutInBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
}
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2)) + 1)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
Math.easeOutInBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeOutBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeInBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
var Mp = MovieClip.prototype;
Mp.addListener = function () {
var _local1 = this;
if (!_local1._listeners) {
AsBroadcaster.initialize(_local1);
}
_local1.addListener.apply(_local1, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
var tp = tweenManager.prototype;
tp.setupdateInterval = function (time) {
var _local1 = this;
if (_local1.playing) {
_local1.deinit();
_local1.updateTime = time;
_local1.init();
} else {
_local1.updateTime = time;
}
};
tp.getupdateInterval = function () {
return(this.updateTime);
};
tp.addProperty("updateInterval", tp.getupdateInterval, tp.setupdateInterval);
tp.init = function () {
var tm = this;
if (tm.updateTime > 0) {
tm.updateIntId = setInterval(tm, "update", tm.updateTime);
} else {
if (tm.tweenHolder._name == undefined) {
tm.tweenHolder = _root.createEmptyMovieClip("_th_", -6789);
}
tm.tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
tm.playing = true;
tm.now = getTimer();
};
tp.deinit = function () {
var _local1 = this;
_local1.playing = false;
clearInterval(_local1.updateIntId);
delete _local1.tweenHolder.onEnterFrame;
};
tp.update = function () {
var i;
var _local1;
var _local2;
var _local3;
i = this.tweenList.length;
if (this.broadcastEvents) {
var ut = {};
var et = {};
}
while (i--) {
_local1 = this.tweenList[i];
if ((_local1.ts + _local1.d) > this.now) {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ef(this.now - _local1.ts, _local1.ps, _local1.ch, _local1.d, _local1.e1, _local1.e2);
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.ef(this.now - _local1.ts, _local1.stm[_local2], _local1.ctm[_local2], _local1.d, _local1.e1, _local1.e2);
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents && (ut[targetPath(_local1.mc)] == undefined)) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
} else {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ps + _local1.ch;
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.stm[_local2] + _local1.ctm[_local2];
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents) {
if (ut[targetPath(_local1.mc)] == undefined) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (et[targetPath(_local1.mc)] == undefined) {
et[targetPath(_local1.mc)] = _local1.mc;
}
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(i);
}
}
for (_local2 in ut) {
ut[_local2].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
this.endTweens(endt);
}
for (_local2 in et) {
et[_local2].broadcastMessage("onTweenEnd");
}
this.now = getTimer();
if (this.updateTime > 0) {
updateAfterEvent();
}
};
tp.endTweens = function (tid_arr) {
var cb_arr;
var tl;
var i;
var cb;
var j;
cb_arr = [];
tl = tid_arr.length;
with (this) {
i = 0;
while (i < tl) {
cb = tweenList[tid_arr[i]].cb;
if (cb != undefined) {
var exec = true;
for (j in cb_arr) {
if (cb_arr[j] == cb) {
exec = false;
break;
}
}
if (exec) {
cb_arr.push(cb);
}
}
tweenList.splice(tid_arr[i], 1);
i++;
}
i = 0;
while (i < cb_arr.length) {
cb_arr[i].func.apply(cb_arr[i].scope, cb_arr[i].args);
i++;
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.addTween = function (mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var i;
var pp;
var addnew;
var j;
var t;
with (this) {
if (!playing) {
init();
}
for (i in props) {
pp = props[i];
addnew = true;
if (pp.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.pp == pp)) {
t.ps = mc[pp];
t.ch = pEnd[i] - mc[pp];
t.ts = now;
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, pp:pp, ps:mc[pp], ch:pEnd[i] - mc[pp], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var c = new Color(mc);
var stm = c.getTransform();
var ctm = {};
for (j in pEnd[i]) {
if ((pEnd[i][j] != stm[j]) && (pEnd[i][j] != undefined)) {
ctm[j] = pEnd[i][j] - stm[j];
}
}
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.ctm != undefined)) {
t.c = c;
t.stm = stm;
(t.ctm = ctm);
(t.ts = now);
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, c:c, stm:stm, ctm:ctm, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart");
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
};
tp.addTweenWithDelay = function (delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
with (this) {
var il;
var intid;
il = ints.length;
intid = setInterval(function (obj) {
var _local1 = obj;
var _local3;
var _local2;
_local1.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(_local1.ints[il].intid);
_local1.ints[il] = undefined;
_local3 = true;
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] != undefined) {
_local3 = false;
break;
}
}
if (_local3) {
_local1.ints = [];
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:intid, st:this.now, delay:delay * 1000, args:arguments.slice(1)};
}
};
tp.removeTween = function (mc, props) {
with (this) {
var all;
var i;
var j;
all = false;
if (props == undefined) {
all = true;
}
i = tweenList.length;
while (i--) {
if (tweenList[i].mc == mc) {
if (all) {
tweenList.splice(i, 1);
} else {
for (j in props) {
if (tweenList[i].pp == props[j]) {
tweenList.splice(i, 1);
} else if ((props[j] == "_ct_") && (tweenList[i].ctm != undefined)) {
tweenList.splice(i, 1);
}
}
}
}
}
i = ints.length;
while (i--) {
if (ints[i].mc == mc) {
if (all) {
clearInterval(ints[i].intid);
ints[i] = undefined;
} else {
for (j in props) {
for (var k in ints[i].props) {
if (ints[i].props[k] == props[j]) {
ints[i].props.splice(k, 1);
ints[i].pend.splice(k, 1);
}
}
if (ints[i].props.length == 0) {
clearInterval(ints[i].intid);
ints[i] = undefined;
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.isTweening = function (mc) {
with (this) {
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
return(true);
}
}
return(false);
}
};
tp.getTweens = function (mc) {
with (this) {
var count = 0;
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
count++;
}
}
return(count);
}
};
tp.lockTween = function (mc, bool) {
this.lockedTweens[targetPath(mc)] = bool;
};
tp.isTweenLocked = function (mc) {
if (this.lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(this.lockedTweens[targetPath(mc)]);
};
tp.pauseAll = function () {
var _local1 = this;
if (_local1.isPaused) {
} else {
_local1.isPaused = true;
_local1.pausedTime = _local1.now;
for (var _local2 in _local1.ints) {
clearInterval(_local1.ints[_local2].intid);
}
_local1.deinit();
}
};
tp.unpauseAll = function () {
var _local1 = this;
if (!_local1.isPaused) {
} else {
var _local2;
var t;
_local1.isPaused = false;
_local1.now = getTimer();
for (_local2 in _local1.tweenList) {
t = _local1.tweenList[_local2];
t.ts = _local1.now - (_local1.pausedTime - t.ts);
}
_local1.init();
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] == undefined) {
continue;
}
var _local3 = _local1.ints[_local2].delay - (_local1.pausedTime - _local1.ints[_local2].st);
var intid = setInterval(function (obj, id) {
var _local1 = obj;
var _local2 = id;
_local1.addTween.apply(_local1, _local1.ints[_local2].args);
clearInterval(_local1.ints[_local2].intid);
_local1.ints[_local2] = undefined;
}, _local3, _local1, _local2);
_local1.ints[_local2].intid = intid;
_local1.ints[_local2].st = _local1.now;
_local1.ints[_local2].delay = _local3;
}
}
};
tp.toString = function () {
return("[AS1 tweenManager 1.1.8]");
};
delete tp;
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new tweenManager();
} else {
_global.$tweenManager.playing = false;
}
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("error: this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("error: props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
if (animType.toLowerCase() == "linear") {
var eqf = Math.linearTween;
} else {
var eqf = Math[animType];
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if (!((animType.pts != undefined) && (animType.ease != undefined))) {
break;
}
var eqf = animType.ease;
var extra1 = animType.pts;
}
if (eqf == undefined) {
var eqf = Math.easeOutExpo;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp = callback.indexOf("(");
var funcp = callback.slice(0, ilp);
var scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
var func = eval (funcp);
var args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
var a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this, props);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props) {
var _local1 = props;
if (typeof(_local1) == "string") {
_local1 = [_local1];
}
_global.$tweenManager.removeTween(this, _local1);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function () {
return(_global.$tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = bright;
var _local2 = 100 - Math.abs(_local3);
var _local1 = 0;
if (_local3 > 0) {
_local1 = 256 * (_local3 / 100);
}
var destCt = {ra:_local2, rb:_local1, ga:_local2, gb:_local1, ba:_local2, bb:_local1};
this.tween(["_ct_"], [destCt], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = destColor;
var _local2;
if ((_local1 == undefined) || (_local1 == null)) {
_local2 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100};
} else {
_local2 = {rb:_local1 >> 16, ra:0, gb:(_local1 & 65280) >> 8, ga:0, bb:_local1 & 255, ba:0};
}
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function () {
return(this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
var _local1 = endframe;
if (_local1 == undefined) {
_local1 = this._totalframes;
}
this.tween("_frame", _local1, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = 256 * (percent / 100);
var _local2 = {ra:100, rb:_local1, ga:100, gb:_local1, ba:100, bb:_local1};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {};
_local1.ra = (_local1.ga = (_local1.ba = percent));
_local1.rb = (_local1.gb = (_local1.bb = 128 - (1.28 * percent)));
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
sti = "http://www.it-kids.net/games/chica-chase/";
sbut._visible = false;
Frame 2
stop();
Instance of Symbol 37 MovieClip in Frame 3
on (release) {
loadVariables (_parent.sti + "adco.php?updater=hits_branding", "_root", "POST");
}
Frame 9
help._visible = false;
bruger.text = _root.userid;
gid.text = _root.gameid;
if ((_root.userid == undefined) || (_root.userid == "")) {
logged_in.logintext_txt.text = "You need to be logged in if you want to post your highscore";
} else {
logged_in.logintext_txt.text = "\nYou're logged in as: " + _root.userid;
}
Frame 25
stop();
Symbol 18 MovieClip Frame 1
stop();
createEmptyMovieClip("mask", 1);
with (mask) {
beginFill(3407616, 100);
moveTo(0, 0);
lineTo(billede._width, 0);
lineTo(billede._width, billede._height);
lineTo(0, billede._height);
endFill(0, 0);
_x = billede._x;
_y = billede._y;
}
billede.setMask(mask);
total = _parent.getBytesTotal();
mask._xscale = 0;
onEnterFrame = function () {
hentet = _parent.getBytesLoaded();
procentHentet = int((hentet / total) * 100);
mask._xscale = procentHentet;
if (total == hentet) {
mask.removeMovieClip();
_parent.gotoAndStop("Splash");
delete this.onEnterFrame;
}
};
Symbol 24 Button
on (release) {
createEmptyMovieClip("highscore", 100);
highscore._y = 600;
highscore.loadMovie("http://www.it-kids.net/game/games/highscores/chica-hi.swf");
highscore.slideTo(150, 0, 1, easeOutElastic, 0);
}
Symbol 28 Button
on (release) {
if (!_parent.zugryf.soundOn) {
_parent.zugryf.soundOn = true;
_parent.zugryf.playSound("music");
sIco.gotoAndStop(1);
} else {
stopAllSounds();
_parent.zugryf.soundOn = false;
sIco.gotoAndStop(2);
}
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 61 MovieClip [ice cube] Frame 1
stop();
Symbol 61 MovieClip [ice cube] Frame 22
stop();
Symbol 73 MovieClip [platform] Frame 1
stop();
Symbol 91 MovieClip Frame 8
this.gotoAndPlay(1);
Symbol 91 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 92 MovieClip [baddy] Frame 1
hitArea._visible = false;
Symbol 103 MovieClip [flag] Frame 1
stop();
Symbol 103 MovieClip [flag] Frame 20
where.levelComplete();
stop();
Symbol 105 Button
on (release) {
getURL ("http://www.haiku.dk/inc/klik/click.php?id=9");
}
Symbol 109 Button
on (release) {
help._visible = true;
help.gotoAndStop("credit");
}
Symbol 112 Button
on (release) {
help._visible = true;
help.gotoAndStop("help");
}
Symbol 115 Button
on (release) {
loadVariables (sti + "adco.php?updater=spil_igangsat", "_root", "POST");
sbut._visible = true;
this.gotoAndStop("Game");
}
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 9
this.gotoAndPlay(2);
Symbol 152 MovieClip Frame 130
this.gotoAndStop(1);
this._parent._parent.gotoAndPlay("walk");
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 9
this.gotoAndPlay(2);
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndPlay("Jump Frame");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 43
onClipEvent (enterFrame) {
this.gotoAndPlay("Crouch");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 64
onClipEvent (enterFrame) {
this.gotoAndPlay("Jump Frame");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 74
onClipEvent (enterFrame) {
this.gotoAndPlay("Crouch");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 96
onClipEvent (enterFrame) {
this.gotoAndPlay("Jump Frame");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 107
onClipEvent (enterFrame) {
this.gotoAndPlay("Crouch");
}
Instance of Symbol 153 MovieClip "bernhard" in Symbol 158 MovieClip Frame 143
onClipEvent (enterFrame) {
this.gotoAndPlay("Jump Frame");
}
Symbol 159 MovieClip Frame 95
stop();
Symbol 160 Button
on (release) {
this._visible = false;
}
Symbol 163 Button
on (release) {
this._visible = false;
}
Symbol 193 MovieClip Frame 1
infobtn.useHandCursor = false;
Symbol 193 MovieClip Frame 3
stop();
Symbol 193 MovieClip Frame 12
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 25
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 40
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 58
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 66
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 79
this.gotoAndStop(1);
Symbol 203 MovieClip Frame 95
this.gotoAndStop(1);
Instance of Symbol 167 MovieClip in Symbol 220 MovieClip Frame 1
/* no clip actions */
Symbol 221 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 225 Button
on (release) {
playClicked();
}
Symbol 237 Button
on (release) {
_parent._parent._parent.playSound("intro");
_parent._parent._parent.loadNext();
}
Symbol 241 MovieClip Frame 1
_parent._parent.playSound("jump");
bonustekst = _parent.bonusPoint + " * 2 =";
Symbol 241 MovieClip Frame 10
_parent._parent.playSound("collect");
Symbol 241 MovieClip Frame 20
_parent._parent.playSound("jump");
Symbol 241 MovieClip Frame 30
_parent._parent.playSound("collect");
Symbol 241 MovieClip Frame 40
_parent._parent.playSound("jump");
Symbol 241 MovieClip Frame 50
_parent._parent.playSound("collect");
Symbol 241 MovieClip Frame 60
_parent.hk.slideTo(6, 154, 1, "easeInQuad", 0);
_parent.hk.rotateTo(360, 1, "easeInQuad");
videreSpil.slideTo(600, 50, 1, "easeInQuad", 0);
videreSpil.scaleto(150, 1.5);
videreSpil.rotateTo(360, 1, "easeoutback");
stop();
Symbol 246 Button
on (release) {
getURL ("http://www.it-kids.net/game/games/Chica-Chase");
}
Symbol 255 Button
on (release) {
if (!knud) {
_parent.send_score.slideTo(30, 52, 1, "easeInBack", 0);
this.slideTo(250, 90, 1, "easeInBack", 0);
this.scaleTo(100, 1, "easeInBack", 0);
win.slideTo(150, 230, 1, "easeInBack", 0);
knud = true;
_parent._parent.playSound("jump");
} else {
_parent.SendScore();
_root.createEmptyMovieClip("highscore", 100);
_root.highscore._y = 600;
_root.highscore.loadMovie("platform_hi_vis.swf");
this.slideTo(250, 420, 2, "easeOutElastic", 0);
_parent.send_score.slideTo(700, 20, 2, "easeInElastic", 0);
_parent.pointstatistik.slideTo(700, 20, 2, "easeInElasticc", 0);
_parent.win.slideTo(350, 200, 1);
_parent.hk.slideTo(100, 200, 1);
_root.highscore.slideTo(150, 0, 2, "easeOutElastic", 2);
_parent._parent.playSound("intro");
}
}
Symbol 263 MovieClip Frame 1
_parent.fornavn = _root.gameid.text;
Symbol 268 MovieClip Frame 1
_parent._parent.playSound("jump");
bonustekst = _parent.bonusPoint + " *2 =";
Symbol 268 MovieClip Frame 11
_parent._parent.playSound("collect");
Symbol 268 MovieClip Frame 20
_parent._parent.playSound("jump");
Symbol 268 MovieClip Frame 30
_parent._parent.playSound("collect");
Symbol 268 MovieClip Frame 40
_parent._parent.playSound("jump");
Symbol 268 MovieClip Frame 50
_parent._parent.playSound("collect");
Symbol 268 MovieClip Frame 60
_parent.hk.rotateTo(360, 1, "easeInQuad");
stop();
Symbol 272 MovieClip Frame 1
function playClicked() {
if (_parent.game.loaded) {
_parent.startLevel();
}
}
function startedLoading() {
this.gotoAndStop(1);
status.gotoAndStop("Loading");
playButton._alpha = 50;
}
function finishedLoading() {
status.gotoAndStop("Loaded");
playButton._alpha = 100;
_parent.startLevel();
}
function gameOver() {
hk.tintTo(random(16777215), 1);
this._visible = true;
_parent.gameClip._visible = false;
this.gotoAndStop("Lose");
}
function showStats() {
var _local1 = _parent;
var _local2 = this;
_local2._visible = true;
clearInterval(_local1.intervalID);
bonusPoint = _local1.display.minTaelNed.text;
bonus = bonusPoint * 2;
Superbonus = bonus + _local1.totalAntalPoint;
_local1.totalAntalPoint = Superbonus;
_local1.gameClip._visible = false;
if (_local1.game.level == _local1.game.numLevels) {
_local2.gotoAndStop("Win");
} else {
_local2.gotoAndStop("Stats");
_local2.fadeIn.gotoAndPlay(1);
}
}
function SendScore() {
var _local1 = _parent;
var _local2 = _root;
punkte = _local1.totalAntalPoint;
kontroltal = Math.round(((1000 * ((punkte * 17) + 13)) / punkte) - punkte);
myLV = new LoadVars();
myLV.load((((((((((((("http://www.it-kids.net/game/includes/highscores.php?t1=" + punkte) + "&t2=") + kontroltal) + "&t3=") + new Date().getTime()) + "&gameid=") + _local2.gameid) + "&fornavn=") + _local2.userid) + "&punkte=") + punkte) + "&icon=") + _local1.game.level);
trace((((_local2.userid + ", ") + _local1.game.level) + ", ") + punkte);
myLV.onLoad = function (success) {
if (success) {
trace(this.tekst);
}
};
}
stop();
Symbol 272 MovieClip Frame 5
trace(_parent.game.level);
sortdude.alphaTo(0, 5);
hk.slideTo(114, 3, 1, easeOutElastic, 0);
Symbol 272 MovieClip Frame 12
niveau = _parent.game.level;
trace(_parent.game.level);
clearInterval(_parent.intervalID);
sortdude.alphaTo(0, 5);
go.rotateTo(360, 2, "easeoutback", 0);
igen.rotateTo(360, 2, "easeoutback", 2);
igen.slideTo(300, 250, 1, "easeOutCirc", 2);
igen.scaleTo(150, 1, "easeOutCirc", 2);
if ((_root.userid == undefined) || (_root.userid == "")) {
} else {
start_score.rotateTo(360, 2, "easeInBack", 3);
start_score.slideTo(300, 300, 1, "easeInBack", 3);
start_score.scaleTo(150, 1, "easeInBack", 3);
}
Symbol 272 MovieClip Frame 21
win.rotateTo(360, 2, "easeoutback", 1);
win.slideTo(150, 180, 1, "easeInQuad", 0);
igen.rotateTo(360, 2, "easeOutCirc", 3);
igen.slideTo(300, 250, 1, "easeOutCirc", 3);
igen.scaleTo(150, 1, "easeOutCirc", 3);
if ((_root.userid == undefined) || (_root.userid == "")) {
logged_in.logintext_txt.text = "blab";
} else {
start_score.rotateTo(360, 2, "easeInBack", 3);
start_score.slideTo(300, 300, 1, "easeInBack", 3);
start_score.scaleTo(150, 1, "easeInBack", 3);
}
Symbol 274 MovieClip Frame 2
function beregnTid() {
if (display.minTaelNed.text != "0") {
display.minTaelNed.text = display.minTaelNed.text - 1;
tiden1 = display.minTaelNed.text;
} else {
clearInterval(intervalID);
trace("tid g\u00E5et");
}
}
function startLevel() {
intervalID = setInterval(beregnTid, 1000);
hero.x = hero.startx;
hero.y = hero.starty;
hero.xmov = 0;
hero.ymov = 0;
hero.clip._x = hero.x;
hero.clip._y = hero.y;
game.inPlay = true;
game.flagCaptured = false;
waitingScreen._visible = false;
gameClip._visible = true;
}
function loadNext() {
display.minTaelNed.text = 160;
var _local1 = ++game.level;
loadLevel(_local1);
}
function startOver() {
totalAntalPoint = 0;
hero.lives = game.numLives - 1;
display.num = hero.lives;
game.level = 0;
loadNext();
}
function levelLoaded() {
display.level = game.level;
display.num2 = 0;
display.num = hero.lives;
display.num2 = 0;
waitingScreen.finishedLoading();
game.loaded = true;
game.platforms = {};
game.platforms.column = [];
var info = levelXML.firstChild;
game.flag = {};
game.flag.x = Number(info.attributes.flagx);
game.flag.y = Number(info.attributes.flagy);
placeFlag();
var tempBlocks = info.firstChild.childNodes;
var i = 0;
while (i < tempBlocks.length) {
var _local2 = tempBlocks[i].attributes;
var ob = new Object();
for (j in _local2) {
var nan = isNaN(Number(_local2[j]));
if (nan) {
ob[j] = _local2[j];
if (ob[j].toLowerCase() == "true") {
ob[j] = true;
} else if (ob[j].toLowerCase() == "false") {
ob[j] = false;
}
} else {
ob[j] = Number(_local2[j]);
}
}
var depth = (++game.depth);
var name = ("platform" + depth);
var clip = gameClip.overlay.attachMovie("platform", name, depth);
ob.clip = clip;
ob.clip._x = ob.x;
ob.clip._y = ob.y;
if (ob.graphic == null) {
ob.clip.gotoAndStop("cube");
} else {
ob.clip.gotoAndStop(ob.graphic);
}
ob.width = ob.clip.vertical._x;
ob.clip.vertical._visible = false;
ob.height = ob.clip.horizontal._y;
ob.clip.horizontal._visible = false;
ob.clip.me = ob;
if (ob.mover == "yes") {
makeMover(ob.clip);
}
game.platforms.column.push(ob);
i++;
}
var temp = info.firstChild.nextSibling.childNodes;
var groundWidth = 233;
game.grounds = [];
var i = 0;
while (i < temp.length) {
var atts = temp[i].attributes;
var xstart = Number(atts.xstart);
var _local1 = Number(atts.xend);
var ob = {x1:xstart, x2:_local1};
game.grounds.push(ob);
var _local3 = Math.ceil((_local1 - xstart) / groundWidth);
var nowx = xstart;
var j = 0;
while (j < _local3) {
var depth = (++game.depth);
var name = ("ground" + depth);
var clip = gameClip.overlay.attachMovie("ground", name, depth);
clip._y = game.floor;
clip._x = nowx;
if (_local3 == 1) {
clip._width = _local1 - xstart;
}
if (j == (_local3 - 1)) {
var cornerx = endx;
var depth = (++game.depth);
var name = ("corner" + depth);
var clip = gameClip.overlay.attachMovie("corner", name, depth);
clip._x = (_local1 - clip._width) + 15;
clip._y = game.floor;
}
if (j == 0) {
var cornerx = (xstart + 26);
var depth = (++game.depth);
var name = ("corner" + depth);
var clip = gameClip.overlay.attachMovie("corner", name, depth);
clip._x = cornerx;
clip._y = game.floor;
clip._xscale = -100;
}
if (j != (_local3 - 2)) {
var nowx = (nowx + groundWidth);
} else {
var nowx = (_local1 - groundWidth);
}
j++;
}
i++;
}
var temp = info.firstChild.nextSibling.nextSibling.childNodes;
game.baddies = [];
var i = 0;
while (i < temp.length) {
var atts = temp[i].attributes;
var x = Number(atts.x);
var y = Number(atts.y);
var speed = Number(atts.speed);
var breadth = Number(atts.breadth);
if (atts.start_direction == "left") {
var dir = -1;
} else {
var dir = 1;
}
var depth = (++game.depth);
var name = ("baddy" + depth);
var clip = gameClip.overlay.attachMovie("baddy", name, depth);
var ob = {homex:x, homey:y, speed:speed, breadth:breadth, dir:dir, clip:clip};
clip.me = ob;
game.baddies.push(ob);
clip._x = x;
clip._y = y;
addBaddyFXN(ob);
i++;
}
var temp = info.firstChild.nextSibling.nextSibling.nextSibling.childNodes;
game.collectables = [];
var i = 0;
while (i < temp.length) {
var atts = temp[i].attributes;
var x = Number(atts.x);
var y = Number(atts.y);
var type = atts.type;
var depth = (++game.depth);
var name = ("collectable" + depth);
var clip = gameClip.overlay.attachMovie(type, name, depth);
clip._x = x;
clip._y = y;
if (type == "ice cube") {
clip._xscale = (clip._yscale = 50);
}
clip.gotoAndStop("Display");
var ob = {x:x, y:y, type:type, clip:clip};
game.collectables.push(ob);
i++;
}
}
function levelComplete() {
game.inPlay = false;
if (hero.lives >= 0) {
waitingScreen.showStats();
} else {
waitingScreen.gameOver();
}
for (i in gameClip.overlay) {
var _local1 = typeof(gameClip.overlay[i]);
if (_local1 == "movieclip") {
if (gameClip.overlay[i]._name != "man") {
gameClip.overlay[i].removeMovieClip();
}
}
}
}
function placeFlag() {
var _local2 = ++game.depth;
var _local3 = "flag" + _local2;
var _local1 = gameClip.overlay.attachMovie("flag", _local3, _local2);
_local1._x = game.flag.x;
_local1._y = game.flag.y;
_local1.where = this;
_local1.flag.num.text = game.level;
game.flag.clip = _local1;
}
function playSound(name) {
if (soundOn) {
soundFX.gotoAndPlay(name);
}
}
function moveBaddy(ob) {
var _local1 = ob;
var _local2 = _local1.x + (_local1.dir * _local1.speed);
if ((_local1.dir < 0) && (_local2 < _local1.minx)) {
_local1.dir = _local1.dir * -1;
_local2 = _local1.x;
_local1.clip._xscale = (-_local1.dir) * 100;
} else if ((_local1.dir > 0) && (_local2 > _local1.maxx)) {
_local1.dir = _local1.dir * -1;
_local2 = _local1.x;
_local1.clip._xscale = (-_local1.dir) * 100;
}
_local1.x = _local2;
_local1.clip._x = _local1.x;
}
function addBaddyFXN(ob) {
var _local1 = ob;
_local1.minx = _local1.homex - (_local1.breadth / 2);
_local1.maxx = _local1.homex + (_local1.breadth / 2);
_local1.x = _local1.homex;
_local1.clip._xscale = (-_local1.dir) * 100;
_local1.clip.onEnterFrame = function () {
moveBaddy(this.me);
};
}
function loadLevel(num) {
waitingScreen.startedLoading();
game.loaded = false;
var _local1 = ("http://www.it-kids.net/game/games/highscores/chica/level" + num) + ".xml";
levelXML = new XML();
levelXML.onLoad = levelLoaded;
levelXML.ignoreWhite = true;
levelXML.load(_local1);
}
function makeMover(who) {
var _local1 = who;
_local1.me.homex = _local1._x;
_local1.me.homey = _local1._y;
_local1.onEnterFrame = moverFXN;
}
function listenForKeys() {
hero.wasCrouching = hero.isCrouching;
if (hero.inAir) {
hero.walkIncrement = hero.airWalkIncrement;
} else {
hero.walkIncrement = hero.groundWalkIncrement;
}
if (Key.isDown(39) && ((!hero.isCrouching) || (hero.isCrouching && (hero.inAir)))) {
hero.xmov = hero.xmov + hero.walkIncrement;
hero.walkRight();
} else if (Key.isDown(37) && ((!hero.isCrouching) || (hero.isCrouching && (hero.inAir)))) {
hero.xmov = hero.xmov - hero.walkIncrement;
hero.walkLeft();
}
if ((Key.isDown(32) || (Key.isDown(38))) && (okToJump)) {
okToJump = false;
if ((!hero.isJumping) && (!hero.inAir)) {
hero.inAir = true;
hero.ymov = hero.ymov - hero.jumpSpeed;
hero.jump();
}
} else if ((!Key.isDown(32)) && (!Key.isDown(38))) {
okToJump = true;
}
if (Key.isDown(40)) {
hero.crouch();
} else {
hero.unCrouch();
}
}
function addFrictionAndGravity() {
hero.ymov = hero.ymov + game.gravity;
if (!hero.inAir) {
hero.xmov = hero.xmov * game.runDecay;
} else {
hero.xmov = hero.xmov * game.windResistance;
}
if (Math.abs(hero.xmov) < hero.minXmov) {
if (hero.isWalking) {
hero.stopWalking();
}
hero.xmov = 0;
} else if (Math.abs(hero.xmov) > hero.maxXmov) {
hero.xmov = (Math.abs(hero.xmov) / hero.xmov) * hero.maxXmov;
}
}
function createTempPosition() {
hero.tempx = hero.x + hero.xmov;
hero.tempy = hero.y + hero.ymov;
var _local1 = Math.abs(hero.ymov);
if (_local1 > 10) {
if (_local1 > 22) {
hero.ymov = 22 * (hero.ymov / _local1);
}
game.totalIterations = 2;
} else {
game.totalIterations = 1;
}
}
function nextLife() {
playSound("intro");
hero.lives--;
display.num = hero.lives;
hero.dead = false;
hero.fallingToDeath = false;
hero.x = hero.startx;
hero.y = hero.starty;
hero.xmov = 0;
hero.ymov = 0;
hero.walkRight();
if (hero.lives < 0) {
levelComplete();
}
}
function renderScreen() {
hero.lastX = hero.x;
hero.lastY = hero.y;
hero.x = hero.tempx;
hero.y = hero.tempy;
clip._x = hero.x;
clip._y = hero.y;
if (hero.dead && ((hero.y - game.floor) > 250)) {
nextLife();
}
var _local2 = (-hero.x) * game.xScrollFactor;
var _local1 = ((-((hero.y - game.floor) - 20)) * game.yScrollFactor) - (game.bg.height - game.viewableHeight);
game.bg.position(_local2, _local1);
_local2 = (-hero.x) + (game.viewableWidth / 2);
_local1 = (-hero.y) + (game.viewableHeight / 2);
game.overlay.position(_local2, _local1);
}
function checkFloor() {
var heroOnFloor = (hero.tempY > game.floor);
if (heroOnFloor) {
var heroMin = hero.x;
var heroMax = (hero.x + hero.width);
var _local3 = false;
var _local1 = 0;
while (_local1 < game.grounds.length) {
var _local2 = game.grounds[_local1];
if ((heroMax > _local2.x1) && (heroMin < _local2.x2)) {
_local3 = true;
break;
}
_local1++;
}
if (!_local3) {
hero.dead = true;
}
}
if (((heroOnFloor && (_local3)) && (!hero.onPlatform)) && (!hero.fallingToDeath)) {
hero.ymov = 0;
hero.tempy = game.floor;
hero.stopJumping();
hero.inAir = false;
}
}
function bounceOffOfPlatform(newx) {
hero.x = newx;
hero.xmov = 0;
hero.tempx = hero.x + hero.xmov;
}
function bounceOffOfBottom(newy) {
hero.y = newy;
hero.ymov = 0;
hero.tempy = hero.y + hero.ymov;
}
function landOnPlatform(platformTop) {
hero.ymov = 0;
hero.y = platformTop;
hero.tempy = hero.y + hero.ymov;
hero.inAir = false;
hero.stopJumping();
}
function platformDetect() {
var oldOnPlatform = hero.onPlatform;
var onPlatform = false;
var i = 0;
while (i < game.platforms.column.length) {
var _local2 = game.platforms.column[i];
var _local1 = _local2.x;
var _local3 = _local2.y;
var pw = _local2.width;
var ph = _local2.height;
var type = _local2.type;
var iteration = 1;
while (iteration <= game.totalIterations) {
hero.tempx = hero.x + ((hero.xmov / game.totalIterations) * iteration);
hero.tempy = hero.y + ((hero.ymov / game.totalIterations) * iteration);
if (((((hero.tempx + hero.width) > _local1) && (hero.tempx < (_local1 + pw))) && ((hero.tempy - hero.height) < (_local3 + ph))) && (hero.tempy > _local3)) {
if ((((hero.tempy > _local3) && (hero.y <= (_local3 + 0.01))) && (hero.tempy < (_local3 + ph))) && (hero.ymov > 0)) {
var onPlatform = true;
var platformTop = _local3;
landOnPlatform(platformTop);
if (_local2.mover == "yes") {
var xinc = (_local2.xspeed + (hero.xmov * 0.5));
hero.x = hero.x + xinc;
hero.y = hero.y + (_local2.yspeed + (hero.ymov * 0.5));
hero.tempx = hero.x;
hero.tempy = hero.y;
}
} else if ((((((type != "cloud") && ((hero.tempy - hero.height) > _local3)) && ((hero.tempy - hero.height) < (_local3 + ph))) && ((hero.tempx + (hero.width / 2)) > _local1)) && (hero.tempx < ((_local1 + pw) - (hero.width / 2)))) && (hero.ymov < 0)) {
var newy = ((_local3 + ph) + hero.height);
bounceOffOfBottom(newy);
if (_local2.container) {
_local2.clip.item.gotoAndPlay("Display");
display.num2 = Number(display.num2) + 1;
HoldLigeStyrPaaPoint(skjultTerningpoint);
playSound("collect");
if ((--_local2.containerCounter) <= 0) {
_local2.container = false;
}
}
} else if (((type != "cloud") && ((hero.tempx + hero.width) > _local1)) && ((hero.tempx + hero.width) < (_local1 + pw))) {
if (!hero.wasCrouching) {
var newx = (_local1 - hero.width);
bounceOffOfPlatform(newx);
} else {
hero.crouch();
var crouchMove = true;
var left = true;
}
} else if (((type != "cloud") && (hero.tempx > _local1)) && (hero.tempx < (_local1 + pw))) {
if (!hero.wasCrouching) {
var newx = (_local1 + pw);
bounceOffOfPlatform(newx);
} else {
hero.crouch();
var crouchMove = true;
var left = false;
}
}
}
iteration++;
}
i++;
}
hero.onPlatform = onPlatform;
if (crouchMove) {
if (left) {
hero.tempx = hero.tempx - hero.pushSpeed;
} else {
hero.tempx = hero.tempx + hero.pushSpeed;
}
}
if ((!hero.onPlatform) && (oldOnPlatform)) {
hero.inAir = true;
}
}
function killBaddy(who, index) {
HoldLigeStyrPaaPoint(skurkepoint);
playSound("kill");
who.clip.animation.gotoAndPlay("dead");
game.baddies.splice(index, 1);
}
function baddyDetection() {
var _local1 = 0;
while (_local1 < game.baddies.length) {
var _local2 = game.baddies[_local1];
if (hero.clip.hitTest(_local2.clip.hitArea)) {
if (hero.ymov > game.gravity) {
hero.tempy = hero.y;
hero.ymov = -10;
killBaddy(_local2, _local1);
} else {
hero.ymov = -20;
hero.xmov = 15;
hero.die();
}
}
_local1++;
}
}
function collectableDetect() {
var _local2 = 0;
while (_local2 < game.collectables.length) {
var _local1 = game.collectables[_local2];
if (hero.clip.hitTest(_local1.clip) && (!_local1.captured)) {
display.num2 = Number(display.num2) + 1;
HoldLigeStyrPaaPoint(terningpoint);
playSound("collect");
_local1.captured = true;
_local1.clip.gotoAndPlay("Capture");
}
_local2++;
}
}
function detectFlag() {
if (hero.clip.hitTest(game.flag.clip) && (!game.flagCaptured)) {
game.flagCaptured = true;
game.flag.clip.play();
}
}
function HoldLigeStyrPaaPoint(point) {
totalAntalPoint = totalAntalPoint + point;
Superbonus = bonusPoint + totalAntalPoint;
}
starttid = 60;
display.minTaelNed.text = starttid;
var terningpoint = 10;
var skurkepoint = 15;
skjultTerningpoint = 25;
stop();
soundOn = true;
game = {};
game.level = 1;
game.numLevels = 10;
game.hero = {};
game.hero.clip = gameClip.overlay.man;
game.bg = {};
game.bg.clip = gameClip.bg;
game.bg.x = 0;
game.bg.y = 0;
game.bg.height = game.bg.clip._height;
game.bg.width = game.bg.clip._width;
game.overlay = {};
game.overlay.clip = gameClip.overlay;
game.overlay.x = 0;
game.overlay.y = 0;
game.gravity = 2;
game.windResistance = 0.92;
game.numLives = 3;
hero = game.hero;
hero.lives = game.numLives - 1;
clip = game.hero.clip;
hero.xmov = 0;
hero.startx = 50;
hero.starty = 320;
hero.standingHeight = 50;
hero.crouchingHeight = 30;
hero.width = 23;
hero.height = hero.standingHeight;
hero.ymov = 0;
hero.minXmov = 0.75;
hero.maxXmov = 12;
hero.groundWalkIncrement = 1.7;
hero.airWalkIncrement = 0.85;
hero.pushSpeed = 4;
hero.walkIncrement = hero.groundWalkIncrement;
hero.jumpSpeed = 23;
hero.clip.swapDepths(1000000);
game.runDecay = 0.85;
game.depth = 10000;
game.floor = 330;
game.viewableHeight = 350;
game.viewableWidth = 680;
game.walkAbleWidth = 4800;
game.walkAbleHeight = 4000;
game.xScrollFactor = (game.bg.width - game.viewableWidth) / game.walkAbleWidth;
game.yScrollFactor = game.bg.height / game.walkAbleHeight;
moverFXN = function () {
var _local1 = this;
_local1.me.tempx = _local1._x + _local1.me.xspeed;
_local1.me.tempy = _local1._y + _local1.me.yspeed;
if (_local1.me.xspeed > 0) {
if (_local1.me.tempx < (_local1.me.homex + _local1.me.maxxmov)) {
_local1._x = _local1.me.tempx;
} else {
_local1.me.xspeed = -Math.abs(_local1.me.xspeed);
}
}
if (_local1.me.xspeed < 0) {
if (_local1.me.tempx > (_local1.me.homex - _local1.me.maxxmov)) {
_local1._x = _local1.me.tempx;
} else {
_local1.me.xspeed = Math.abs(_local1.me.xspeed);
}
}
if (_local1.me.yspeed > 0) {
if (_local1.me.tempy < (_local1.me.homey + _local1.me.maxymov)) {
_local1._y = _local1.me.tempy;
} else {
_local1.me.yspeed = -Math.abs(_local1.me.yspeed);
}
}
if (_local1.me.yspeed < 0) {
if (_local1.me.tempy > (_local1.me.homey - _local1.me.maxymov)) {
_local1._y = _local1.me.tempy;
} else {
_local1.me.yspeed = Math.abs(_local1.me.yspeed);
}
}
_local1.me.x = _local1._x;
_local1.me.y = _local1._y;
};
hero.stopWalking = function () {
var _local1 = this;
_local1.isWalking = false;
if (!_local1.isCrouching) {
_local1.clip.animation.gotoAndStop(1);
}
};
hero.walkRight = function () {
var _local1 = this;
_local1.isWalking = true;
_local1.clip.animation._xscale = 100;
if (!_local1.inAir) {
_local1.clip.animation.play();
}
};
hero.walkLeft = function () {
var _local1 = this;
_local1.isWalking = true;
_local1.clip.animation._xscale = -100;
if (!_local1.inAir) {
_local1.clip.animation.play();
}
};
hero.jump = function () {
playSound("jump");
this.isJumping = true;
this.clip.animation.gotoAndStop("Jump Frame");
};
hero.die = function () {
playSound("die");
this.dead = true;
this.clip.animation.gotoAndStop("Dead");
};
hero.crouch = function () {
var _local1 = this;
_local1.isCrouching = true;
_local1.height = _local1.crouchingHeight;
_local1.clip.animation.gotoAndStop("Crouch");
if (Key.isDown(39)) {
_local1.clip.animation._xscale = 100;
} else if (Key.isDown(37)) {
_local1.clip.animation._xscale = -100;
}
};
hero.unCrouch = function () {
var _local1 = this;
if (_local1.isCrouching) {
_local1.isCrouching = false;
_local1.height = _local1.standingHeight;
if (!_local1.inAir) {
if (_local1.isWalking) {
_local1.clip.animation.gotoAndPlay("Walk");
} else {
_local1.clip.animation.gotoAndStop(1);
}
} else if (_local1.inAir) {
if (_local1.isJumping) {
_local1.clip.animation.gotoAndStop("Jump Frame");
}
}
}
};
hero.stopJumping = function () {
var _local1 = this;
if (_local1.isJumping) {
_local1.isJumping = false;
if (!_local1.isWalking) {
if (!_local1.isCrouching) {
_local1.clip.animation.gotoAndStop(1);
} else {
_local1.clip.animation.gotoAndStop("Crouch");
}
} else if (_local1.isCrouching) {
_local1.clip.animation.gotoAndStop("Crouch");
} else {
_local1.clip.animation.gotoAndPlay("Walk");
}
}
};
hero.stopWalking();
game.bg.position = function (x, y) {
var _local1 = y;
var _local2 = x;
if (_local2 > 0) {
_local2 = 0;
}
if ((_local1 + game.bg.height) < (game.floor + 30)) {
_local1 = (game.floor + 30) - game.bg.height;
}
if ((_local2 + game.bg.width) < game.viewableWidth) {
_local2 = game.viewAbleWidth - game.bg.width;
}
game.bg.clip.x = _local2;
game.bg.clip.y = _local1;
game.bg.clip._x = _local2;
game.bg.clip._y = _local1;
};
game.overlay.position = function (x, y) {
var _local1 = y;
var _local2 = x;
if (_local2 > 0) {
_local2 = 0;
} else if (_local2 < ((-game.walkableWidth) + game.viewableWidth)) {
_local2 = (-game.walkableWidth) + game.viewableWidth;
}
if (_local1 < 0) {
_local1 = 0;
}
game.overlay.clip.x = _local2;
game.overlay.clip.y = _local1;
game.overlay.clip._x = _local2;
game.overlay.clip._y = _local1;
};
game.bg.position(0, 0);
loadLevel(1);
playSound("music");
this.onEnterFrame = function () {
if (game.inPlay) {
if (!hero.dead) {
listenForKeys();
}
addFrictionAndGravity();
createTempPosition();
if (!hero.dead) {
baddyDetection();
platformDetect();
collectableDetect();
detectFlag();
checkFloor();
}
renderScreen();
}
};
totalAntalPoint = 0;
Symbol 275 Button
on (release) {
_root.gotoAndStop("Splash");
}