Frame 1
musicOn = true;
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Frame 3
Frame 7
if (_root.getBytesTotal() != _root.getBytesLoaded()) {
gotoAndPlay ("preloadLoop");
}
Frame 21
function getDateNumber() {
return(getUniqueNumber());
}
function Cipher(key) {
this.key = Hash.str_md5(key);
}
runningInShell = 1;
_global.choix = ["linear", "easeinquad", "easeoutquad", "easeinoutquad", "easeincubic", "easeoutcubic", "easeinoutcubic", "easeinquart", "easeoutquart", "easeinoutquart", "easeinquint", "easeoutquint", "easeinoutquint", "easeinsine", "easeoutsine", "easeinoutsine", "easeinexpo", "easeoutexpo", "easeinoutexpo", "easeincirc", "easeoutcirc", "easeinoutcirc", "easeinelastic", "easeoutelastic", "easeinoutelastic", "easeinback", "easeoutback", "easeinoutback", "easeinbounce", "easeoutbounce", "easeinoutbounce"];
MovieClip.prototype.tween = (TextField.prototype.tween = (Button.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
if (timeSeconds < 0.001) {
timeSeconds = 2;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local8 = [prop];
var _local13 = [this[prop]];
var _local11 = [propDest];
} else {
var _local8 = [];
var _local13 = [];
var _local11 = [];
for (var _local31 in prop) {
_local13.push(this[prop[_local31]]);
}
for (var _local31 in prop) {
_local8.push(prop[_local31]);
}
for (var _local31 in propDest) {
_local11.push(propDest[_local31]);
}
}
var _local14 = false;
if (_root.__tweenController__ == undefined) {
var _local33 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local33.$_tweenPropList = new Array();
_local33.onEnterFrame = function () {
var _local6 = getTimer();
var _local4 = 0;
while (_local4 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local4];
if ((_local3._timeStart + (_local3._delay * 1000)) <= _local6) {
if ((_local3._timeDest + (_local3._delay * 1000)) <= _local6) {
_local3._targ[_local3._prop] = _local3._propDest;
this.$_tweenPropList.splice(_local4, 1);
_local4--;
_local3._targ.$_tweenCount--;
if (_local3._targ.$_tweenCount == 0) {
delete _local3._targ.$_tweenCount;
}
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local5 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local5, null);
_local5.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
if (this.$_tweenPropList.length == 0) {
this.removeMovieClip();
}
} else {
if (_local3._propStart == undefined) {
_local3._propStart = _local3._targ[_local3._prop];
}
_local3._targ[_local3._prop] = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local6 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
}
}
_local4++;
}
};
}
var _local6 = _root.__tweenController__.$_tweenPropList;
var _local9 = getTimer();
for (var _local31 in _local13) {
if ((_local11[_local31] != undefined) && (!this.$_isTweenLocked)) {
if (this.$_tweenCount > 0) {
var _local5 = 0;
while (_local5 < _local6.length) {
if ((_local6[_local5]._targ == this) && (_local6[_local5]._prop == _local8[_local31])) {
if ((_local9 + (delay * 1000)) < _local6[_local5]._timeDest) {
_local6.splice(_local5, 1);
_local5--;
this.$_tweenCount--;
}
}
_local5++;
}
}
_local6.push({_prop:_local8[_local31], _targ:this, _propStart:undefined, _propDest:_local11[_local31], _timeStart:_local9, _timeDest:_local9 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _delay:delay, _callback:(_local14 ? undefined : (callback))});
this.$_tweenCount = ((this.$_tweenCount > 0) ? (this.$_tweenCount + 1) : 1);
_local14 = true;
}
}
ASSetPropFlags(this, "$_tweenCount", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
});
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
});
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = function () {
return(this.$_tweenCount);
});
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
});
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = function (props) {
var _local3 = _root.__tweenController__.$_tweenPropList;
switch (typeof(props)) {
case "string" :
props = [props];
case "object" :
for (var _local6 in props) {
for (var _local5 in _local3) {
if ((_local3[_local5]._targ == this) && (_local3[_local5]._prop == props[_local6])) {
_local3.splice(_local5, 1);
}
}
}
this.$_tweenCount = 0;
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
this.$_tweenCount++;
}
}
if (this.$_tweenCount == 0) {
delete this.$_tweenCount;
}
break;
default :
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
_local3.splice(_local5, 1);
}
}
delete this.$_tweenCount;
}
if (_local3.length == 0) {
_root.__tweenController__.removeMovieClip();
this.__tweenController_ADVhelper__.removeMovieClip();
}
});
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.colorTo = (TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local2 = propDest_color >> 16;
var _local4 = (propDest_color & 65280) >> 8;
var _local3 = propDest_color & 255;
if (typeof(this) == "movieclip") {
this.colorTransformTo(0, _local2, 0, _local4, 0, _local3, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
this.__special_text_r__ = this.textColor >> 16;
this.__special_text_g__ = (this.textColor & 65280) >> 8;
this.__special_text_b__ = this.textColor & 255;
this.tween(["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local2, _local4, _local3], timeSeconds, animType, delay, callback, extra1, extra2);
}
});
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function (propDest_ra, propDest_rb, propDest_ga, propDest_gb, propDest_ba, propDest_bb, propDest_aa, propDest_ab, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local5 = new Color(this);
var _local3 = _local5.getTransform();
this.$_ADVsetter_ra = ((propDest_ra == undefined) ? undefined : (_local3.ra));
this.$_ADVsetter_rb = ((propDest_rb == undefined) ? undefined : (_local3.rb));
this.$_ADVsetter_ga = ((propDest_ga == undefined) ? undefined : (_local3.ga));
this.$_ADVsetter_gb = ((propDest_gb == undefined) ? undefined : (_local3.gb));
this.$_ADVsetter_ba = ((propDest_ba == undefined) ? undefined : (_local3.ba));
this.$_ADVsetter_bb = ((propDest_bb == undefined) ? undefined : (_local3.bb));
this.$_ADVsetter_aa = ((propDest_aa == undefined) ? undefined : (_local3.aa));
this.$_ADVsetter_ab = ((propDest_ab == undefined) ? undefined : (_local3.ab));
this.$_new_ra = propDest_ra;
this.$_new_rb = propDest_rb;
this.$_new_ga = propDest_ga;
this.$_new_gb = propDest_gb;
this.$_new_ba = propDest_ba;
this.$_new_bb = propDest_bb;
this.$_new_aa = propDest_aa;
this.$_new_ab = propDest_ab;
this.tween(["$_ADVsetter_ra", "$_ADVsetter_rb", "$_ADVsetter_ga", "$_ADVsetter_gb", "$_ADVsetter_ba", "$_ADVsetter_bb", "$_ADVsetter_aa", "$_ADVsetter_ab"], [this.$_new_ra, this.$_new_rb, this.$_new_ga, this.$_new_gb, this.$_new_ba, this.$_new_bb, this.$_new_aa, this.$_new_ab], timeSeconds, animType, delay, callback, extra1, extra2);
this.__tweenController_ADVhelper__.removeMovieClip();
this.createEmptyMovieClip("__tweenController_ADVhelper__", 123434);
this.__tweenController_ADVhelper__.onEnterFrame = function () {
var _local3 = new Color(this._parent);
var _local2 = {};
if (this._parent.$_ADVsetter_ra != undefined) {
_local2.ra = this._parent.$_ADVsetter_ra;
}
if (this._parent.$_ADVsetter_rb != undefined) {
_local2.rb = this._parent.$_ADVsetter_rb;
}
if (this._parent.$_ADVsetter_ga != undefined) {
_local2.ga = this._parent.$_ADVsetter_ga;
}
if (this._parent.$_ADVsetter_gb != undefined) {
_local2.gb = this._parent.$_ADVsetter_gb;
}
if (this._parent.$_ADVsetter_ba != undefined) {
_local2.ba = this._parent.$_ADVsetter_ba;
}
if (this._parent.$_ADVsetter_bb != undefined) {
_local2.bb = this._parent.$_ADVsetter_bb;
}
if (this._parent.$_ADVsetter_aa != undefined) {
_local2.aa = this._parent.$_ADVsetter_aa;
}
if (this._parent.$_ADVsetter_ab != undefined) {
_local2.ab = this._parent.$_ADVsetter_ab;
}
_local3.setTransform(_local2);
if (this.$_toDelete) {
delete this._parent.$_ADVsetter_ra;
delete this._parent.$_ADVsetter_rb;
delete this._parent.$_ADVsetter_ga;
delete this._parent.$_ADVsetter_gb;
delete this._parent.$_ADVsetter_ba;
delete this._parent.$_ADVsetter_bb;
delete this._parent.$_ADVsetter_aa;
delete this._parent.$_ADVsetter_ab;
delete this._parent.$_new_ra;
delete this._parent.$_new_rb;
delete this._parent.$_new_ga;
delete this._parent.$_new_gb;
delete this._parent.$_new_ba;
delete this._parent.$_new_bb;
delete this._parent.$_new_aa;
delete this._parent.$_new_ab;
this.removeMovieClip();
}
if (((((((((this._parent.$_ADVsetter_ra == this._parent.$_new_ra) || (this._parent.$_new_ra == undefined)) && ((this._parent.$_ADVsetter_rb == this._parent.$_new_rb) || (this._parent.$_new_rb == undefined))) && ((this._parent.$_ADVsetter_ga == this._parent.$_new_ga) || (this._parent.$_new_ga == undefined))) && ((this._parent.$_ADVsetter_gb == this._parent.$_new_gb) || (this._parent.$_new_gb == undefined))) && ((this._parent.$_ADVsetter_ba == this._parent.$_new_ba) || (this._parent.$_new_ba == undefined))) && ((this._parent.$_ADVsetter_bb == this._parent.$_new_bb) || (this._parent.$_new_bb == undefined))) && ((this._parent.$_ADVsetter_aa == this._parent.$_new_aa) || (this._parent.$_new_aa == undefined))) && ((this._parent.$_ADVsetter_ab == this._parent.$_new_ab) || (this._parent.$_new_ab == undefined))) {
this.$_toDelete = true;
}
};
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local3 = _propStart;
var _local2 = _propDest - _propStart;
var _local4 = _timeDest - _timeStart;
var _local7 = _extra1;
var _local6 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local4) + _local3);
case "easeinquad" :
_local1 = _local1 / _local4;
return(((_local2 * _local1) * _local1) + _local3);
case "easeoutquad" :
_local1 = _local1 / _local4;
return((((-_local2) * _local1) * (_local1 - 2)) + _local3);
case "easeinoutquad" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local3);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local3);
case "easeincubic" :
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * _local1) + _local3);
case "easeoutcubic" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local3);
case "easeinoutcubic" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local3);
case "easeinquart" :
_local1 = _local1 / _local4;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquart" :
_local1 = (_local1 / _local4) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local3);
case "easeinoutquart" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local3);
case "easeinquint" :
_local1 = _local1 / _local4;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquint" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local3);
case "easeinoutquint" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local3);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local4) * (Math.PI/2))) + _local2) + _local3);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local4) * (Math.PI/2))) + _local3);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local4) - 1)) + _local3);
case "easeinexpo" :
return(((_local1 == 0) ? (_local3) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local4) - 1))) + _local3)));
case "easeoutexpo" :
return(((_local1 == _local4) ? (_local3 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local4)) + 1)) + _local3)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local3);
}
if (_local1 == _local4) {
return(_local3 + _local2);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local3);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local3);
case "easeincirc" :
_local1 = _local1 / _local4;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
case "easeoutcirc" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local3);
case "easeinoutcirc" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local3);
case "easeinelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.3;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
_local1 = _local1 - 1;
return((-((_local7 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6))) + _local3);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.3;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
return((((_local7 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6)) + _local2) + _local3);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 == 2) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.45;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local7 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6))) + _local3);
}
_local1 = _local1 - 1;
return(((((_local7 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6)) * 0.5) + _local2) + _local3);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local3);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local3);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local3);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local3);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local4 - _local1, _local4, "easeOutBounce")) + _local3);
case "easeoutbounce" :
_local1 = _local1 / _local4;
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);
case "easeinoutbounce" :
if (_local1 < (_local4 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local4, "easeInBounce") * 0.5) + _local3);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local4, _local4, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local3);
}
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
_global.formatNumber = function (thisNumber, thisSpacer, numberOfDecimals) {
if (thisSpacer == null) {
thisSpacer = ",";
}
if (numberOfDecimals == null) {
numberOfDecimals = 0;
}
var _local2;
var _local4;
var _local1;
_local4 = 0;
thisNumber = Number(thisNumber);
if (thisNumber < 0) {
var _local7 = 1;
thisNumber = thisNumber * -1;
} else {
var _local7 = 0;
}
thisNumber = Math.round(thisNumber * Math.pow(10, numberOfDecimals)) / Math.pow(10, numberOfDecimals);
thisNumber = String(thisNumber);
_local1 = thisNumber.split(".");
if (_local1.length > 1) {
thisNumber = _local1[0];
_local1 = "." + _local1[1];
} else {
_local1 = "";
}
_local2 = thisNumber.length - 1;
while (_local2 > -1) {
_local1 = thisNumber.charAt(_local2) + _local1;
_local4++;
if (_local4 == 3) {
if (_local2 > 0) {
_local1 = thisSpacer + _local1;
_local4 = 0;
}
}
_local2--;
}
if (_local7) {
_local1 = "-" + _local1;
}
return(_local1);
};
_global.formatTime = function (totalSeconds) {
var _local3;
var _local1;
var _local2;
_local3 = Math.floor(totalSeconds / 3600);
_local1 = Math.floor((totalSeconds - (_local3 * 60)) / 60);
_local2 = String((totalSeconds - (_local1 * 60)) - (_local3 * 3600));
if (_local2.length < 2) {
_local2 = "0" + _local2;
}
if (_local3 > 0) {
if (_local1.length < 2) {
_local1 = "0" + _local1;
}
return((((_local3 + ":") + _local1) + ":") + _local2);
}
return((_local1 + ":") + _local2);
};
_global.getDateReadout = function () {
var _local4 = new Date();
var _local2 = _local4.getHours();
if (_local2 < 12) {
var _local6 = "am";
if (_local2 == 0) {
_local2 = 12;
}
} else {
var _local6 = "pm";
if (_local2 > 12) {
_local2 = _local2 - 12;
}
}
_local2 = String(_local2);
var _local3 = _local4.getMinutes();
if (_local3 < 10) {
_local3 = "0" + String(_local3);
} else {
_local3 = String(_local3);
}
var _local1 = _local4.getMonth();
if (_local1 == 0) {
_local1 = "Jan.";
} else if (_local1 == 1) {
_local1 = "Feb.";
} else if (_local1 == 2) {
_local1 = "Mar.";
} else if (_local1 == 3) {
_local1 = "Apr.";
} else if (_local1 == 4) {
_local1 = "May";
} else if (_local1 == 5) {
_local1 = "Jun.";
} else if (_local1 == 6) {
_local1 = "Jul.";
} else if (_local1 == 7) {
_local1 = "Aug.";
} else if (_local1 == 8) {
_local1 = "Sept.";
} else if (_local1 == 9) {
_local1 = "Oct.";
} else if (_local1 == 10) {
_local1 = "Nov.";
} else if (_local1 == 11) {
_local1 = "Dec.";
}
var _local5 = (((((((_local1 + " ") + _local4.getDate()) + " - ") + _local2) + ":") + String(_local3)) + " ") + String(_local6);
return(_local5);
};
_global.lastUniqueNumber = 0;
_global.getUniqueNumber = function () {
var _local5 = new Date();
var _local3 = new Array();
var _local4 = String(_local5.getYear()).substr(-1, 1);
_local3.push(_local4);
_local4 = String(_local5.getMonth() + 1);
var _local2 = 1;
while (_local2 < 3) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local4 = String(_local5.getDate());
_local2 = 1;
while (_local2 < 3) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local4 = String(_local5.getHours());
_local2 = 1;
while (_local2 < 3) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local4 = String(_local5.getMinutes());
_local2 = 1;
while (_local2 < 3) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local4 = String(_local5.getSeconds());
_local2 = 1;
while (_local2 < 3) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local4 = String(_local5.getMilliseconds());
_local2 = 1;
while (_local2 < 4) {
if (_local4.length < _local2) {
_local4 = "0" + _local4;
}
_local2++;
}
_local3.push(_local4);
_local3 = Number(_local3.join(""));
while (_local3 <= lastUniqueNumber) {
_local3++;
}
_global.lastUniqueNumber = _local3;
return(_local3);
};
if (_global.Shell == null) {
_global.Shell = new Object();
}
if (Shell.gameSettings == null) {
Shell.gameSettings = new Object();
}
Shell.gameSettings.runOnline = 0;
Shell.gameSettings.gameID = new Object();
Shell.gameSettings.gameID.kewlboxGameID = "255";
Shell.gameSettings.gameID.clientID = "49";
Shell.gameSettings.gameID.partnerID = "1";
Shell.gameSettings.gameID.gameVersion = "1.0";
temp = _root._url.split(".");
temp = temp[temp.length - 1];
trace("gameType:" + temp);
if (temp == "exe") {
Shell.gameSettings.gameID.gameType = "1";
} else if (temp == "swf") {
Shell.gameSettings.gameID.gameType = "3";
} else {
Shell.gameSettings.gameID.gameType = "2";
}
trace("Shell.gameSettings.gameID.gameType:" + Shell.gameSettings.gameID.gameType);
Shell.gameSettings.gameID.gameShortName = "evansudoku";
Shell.gameSettings.gameID.scoreCode = "heartbreak";
Shell.gameSettings.playNum = 0;
Shell.gameSettings.gameID.gameLongName = "Evan Almighty Sudoku";
Shell.gameSettings.gameID.nativeWidth = 550;
Shell.gameSettings.gameID.nativeHeight = 413;
Shell.gameSettings.gameID.runMode = "online";
Shell.gameSettings.gameID.sessionStartTime = getTimer();
Shell.gameSettings.shellState = new Object();
Shell.gameSettings.shellState.userLaunchedGame = 0;
Shell.gameSettings.preferences = new Object();
Shell.gameSettings.preferences.legalApproved = 0;
Shell.gameSettings.preferences.numberOfScoresToDisplay = 5;
Shell.gameSettings.preferences.viewedRules = 0;
Shell.gameSettings.windowText = new Object();
Shell.gameSettings.windowText.privacyTitle = "Privacy Statement";
Shell.gameSettings.windowText.privacy = "<b>Kewlbox Privacy Statement:</b> When you play this game with an open Internet connection, it will send a signal to kewlbox.com, so that kewlbox.com can count how many times its games are played. This signal does not transfer any personal information, such as your name, email address, etc. to kewlbox.com or its owner, Blockdot, Inc.\n\nThis game may leave behind a very small file called a \"cookie\" on your computer, which it uses to store information such as your preferences and high scores. You may disable cookies in your primary web browser to prevent this from happening. After playing the game, if you choose to register your score or participate in various promotions, this game will open a browser to kewlbox.com or an associated website. You may be asked for personal information such as your name, email address, etc., in order to participate in these activities.\n\nBlockdot, Inc. will not share or transfer this personal information to any third parties without your permission, although it may collect, sell, or publish demographic information and statistics in the aggregate. You will be notified if this policy changes, and you will have the option at the time of notification of not permitting the transfer of your personal data.";
Shell.gameSettings.windowText.legalTitle = "Legal";
Shell.gameSettings.windowText.legal = "Blockdot, Inc. disclaims all express and implied warranties in regard to this computer program. Under no circumstances shall Blockdot, Inc. be liable for any damages arising out of the use or distribution of this computer program, even if it has been advised of the possibilities of such damages. Blockdot, Inc. makes no express or implied representations regarding this computer program and you assume all risk of play and distribution.";
Shell.gameSettings.urlLocations = new Object();
Shell.gameSettings.urlLocations.blockdot = "www.blockdot.com";
Shell.gameSettings.urlLocations.kewlbox = "www.kewlbox.com";
Shell.gameSettings.urlLocations.ctaImage = "www.kewlbox.com/ping/getbanner.cfm?gameID=" + Shell.gameSettings.gameID.kewlboxGameID;
Shell.gameSettings.urlLocations.ctaClickLocation = "www.kewlbox.com/ping/bannerdirect.cfm?gameID=" + Shell.gameSettings.gameID.kewlboxGameID;
Shell.gameSettings.urlLocations.endGameRedirect = "www.evanalmighty.com";
if (_global.Shell == null) {
_global.Shell = new Object();
}
Shell.startGame = function () {
Shell.gameSettings.shellState.userLaunchedGame = 1;
if (!Shell.gameSettings.preferences.legalApproved) {
Shell.showLegal();
} else if (!Shell.gameSettings.preferences.viewedRules) {
Shell.showRules();
} else {
Shell.gameSettings.playNum = 0;
Shell.closePupWindow();
bdotCall("ping");
Shell.initNewGame();
_root.gotoAndPlay("titleToGame");
}
};
Shell.showPrivacy = function () {
Shell.openPupWindow("defaultLg", Shell.gameSettings.windowText.privacyTitle, Shell.gameSettings.windowText.privacy);
};
Shell.showLegal = function () {
var _local1 = new Array();
_local1.push({buttonText:"APPROVE", buttonFunction:Shell.acceptLegal});
_local1.push({buttonText:"DISAPPROVE", buttonFunction:Shell.declineLegal});
Shell.openPupWindow("defaultMed", Shell.gameSettings.windowText.legalTitle, Shell.gameSettings.windowText.legal, _local1);
};
Shell.acceptLegal = function () {
Sounds.buttonClick();
Shell.gameSettings.preferences.legalApproved = 1;
if (Shell.gameSettings.shellState.userLaunchedGame) {
Shell.startGame();
} else {
Shell.closePupWindow();
}
};
Shell.declineLegal = function () {
Sounds.buttonClick();
Shell.gameSettings.preferences.legalApproved = 0;
Shell.quitFromTitle();
};
Shell.showRules = function () {
Shell.gameSettings.preferences.viewedRules = 1;
Shell.openPupWindow("rules");
};
Shell.closeRules = function () {
Sounds.buttonClick();
if (Shell.gameSettings.shellState.userLaunchedGame) {
Shell.startGame();
} else {
Shell.closePupWindow();
}
};
Shell.quitFromTitle = function () {
if (Shell.gameSettings.preferences.legalApproved) {
bdotCall("timestamp");
}
Shell.closePupWindow();
_root.gotoAndPlay("cta");
};
Shell.quitFromCTA = function () {
if (Shell.gameSettings.preferences.legalApproved) {
bdotCall("timestamp");
}
Shell.closePupWindow();
_root.gotoAndPlay("ctaToClose");
};
Shell.completeGame = function () {
Shell.closePupWindow();
_root.gotoAndPlay("gameToCTA");
};
Shell.quitGame = function () {
bdotCall("timestamp");
Shell.closePupWindow();
_root.gotoAndPlay("gameToCTA");
};
Shell.prepareDate = function () {
trace("prepareDate 222");
var _local1 = new Date();
mm = _local1.getMonth() + 1;
dd = _local1.getDate();
yy = _local1.getFullYear().toString().substr(2, 2);
nn = _local1.getMinutes();
hh = _local1.getHours();
ss = _local1.getSeconds();
if (mm < 10) {
mm = "0" + mm;
}
if (dd < 10) {
dd = "0" + dd;
}
if (nn < 10) {
nn = "0" + nn;
}
if (hh < 10) {
hh = "0" + hh;
}
if (ss < 10) {
ss = "0" + ss;
}
dtePost = ((((mm + dd) + yy) + hh) + nn) + ss;
Shell.dtePost = dtePost;
trace("Shell.dtePost:" + Shell.dtePost);
};
Shell.displayCTA = function (score, userName, gameID) {
trace("Shell.displayCTA");
if (typeof(score) == "string") {
var _local4 = score.split(",");
score = "";
var _local2 = 0;
while (_local2 < _local4.length) {
score = score + _local4[_local2];
_local2++;
}
score = Number(score);
}
score = Math.round(score);
if (typeof(formatNumber) == "function") {
_root.yourScore.scoreText = formatNumber(score);
} else {
_root.yourScore.scoreText = score;
}
Shell.prepareDate();
Communication.saveHighScore(score, userName, gameID);
Communication.displayHighScore(score, userName, gameID);
};
Shell.startGameAgain = function () {
Shell.gameSettings.shellState.userLaunchedGame = 1;
if (!Shell.gameSettings.preferences.legalApproved) {
Shell.showLegal();
} else {
bdotCall("ping");
Shell.initNewGame();
_root.gotoAndPlay("pickGame");
}
};
Shell.exitGame = function () {
Shell.openURL("endGameRedirect", 1);
_root.gotoAndPlay("blank");
fscommand ("quit");
};
Shell.openURL = function (urlID, inNewWindow) {
if (urlID == null) {
urlID = "kewlbox";
}
if (inNewWindow == null) {
inNewWindow = 1;
}
var _local3;
var _local2 = 0;
for (var _local4 in Shell.gameSettings.urlLocations) {
if (_local4 == urlID) {
_local2 = 1;
break;
}
}
if (_local2) {
_local3 = Shell.gameSettings.urlLocations[urlID];
} else {
_local3 = urlID;
}
if (_local3.indexOf("http://") == -1) {
_local3 = "http://" + _local3;
}
if (inNewWindow) {
getURL (_local3, "_blank");
} else {
getURL (_local3);
}
};
Shell.initNewGame = function () {
Shell.gameSettings.currentGame = new Object();
Shell.gameSettings.currentGame.gameStartTime = getTimer();
Shell.gameSettings.currentGame.gameID = getUniqueNumber();
Shell.gameSettings.playNum++;
};
var Hash = new Object();
Hash.hex_md5 = function (s) {
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * 8)));
};
Hash.b64_md5 = function (s) {
return(this.binl2b64(this.core_md5(this.str2binl(s), s.length * 8)));
};
Hash.str_md5 = function (s) {
return(this.binl2str(this.core_md5(this.str2binl(s), s.length * 8)));
};
Hash.hex_hmac_md5 = function (key, input) {
return(this.binl2hex(this.core_hmac_md5(key, input)));
};
Hash.b64_hmac_md5 = function (key, input) {
return(this.binl2b64(this.core_hmac_md5(key, input)));
};
Hash.str_hmac_md5 = function (key, input) {
return(this.binl2str(this.core_hmac_md5(key, input)));
};
Hash.hex_sha1 = function (s) {
return(this.binb2hex(this.core_sha1(this.str2binb(s), s.length * 8)));
};
Hash.b64_sha1 = function (s) {
return(this.binb2b64(this.core_sha1(this.str2binb(s), s.length * 8)));
};
Hash.str_sha1 = function (s) {
return(this.binb2str(this.core_sha1(this.str2binb(s), s.length * 8)));
};
Hash.hex_hmac_sha1 = function (key, input) {
return(this.binb2hex(this.core_hmac_sha1(key, input)));
};
Hash.b64_hmac_sha1 = function (key, input) {
return(this.binb2b64(this.core_hmac_sha1(key, input)));
};
Hash.str_hmac_sha1 = function (key, input) {
return(this.binb2str(this.core_hmac_sha1(key, input)));
};
Hash.core_md5 = function (x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
with (this) {
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
a = md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i + 10], 17, -42063);
b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, b, c, d, x[i + 5], 4, -378558);
d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
d = md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
a = md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd);
i = i + 16;
}
}
return(Array(a, b, c, d));
};
Hash.md5_cmn = function (q, a, b, x, s, t) {
return(this.safe_add(this.rot(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b));
};
Hash.md5_ff = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
};
Hash.md5_gg = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
};
Hash.md5_hh = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b ^ c) ^ d, a, b, x, s, t));
};
Hash.md5_ii = function (a, b, c, d, x, s, t) {
return(this.md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
};
Hash.core_hmac_md5 = function (key, input) {
var _local3 = this.str2binl(key);
if (_local3.length > 16) {
_local3 = this.core_md5(_local3, key.length * 8);
}
var _local4 = Array(16);
var _local5 = Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_md5(_local4.concat(this.str2binl(input)), 512 + (input.length * 8));
return(this.core_md5(_local5.concat(_local6), 640));
};
Hash.safe_add = function (x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
};
Hash.rot = function (num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
};
Hash.str2binl = function (str) {
var _local3 = Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
};
Hash.binl2str = function (bin) {
var _local3 = "";
var _local4 = 255;
var _local1 = 0;
while (_local1 < (bin.length * 32)) {
_local3 = _local3 + String.fromCharCode((bin[_local1 >> 5] >>> (_local1 % 32)) & _local4);
_local1 = _local1 + 8;
}
return(_local3);
};
Hash.binl2hex = function (binarray) {
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + ("0123456789abcdef".charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + "0123456789abcdef".charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
};
Hash.binl2b64 = function (binarray) {
var _local4 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255);
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + "=";
} else {
_local4 = _local4 + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((_local5 >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(_local4);
};
Hash.core_sha1 = function (x, len) {
x[len >> 5] = x[len >> 5] | (128 << (24 - (len % 32)));
x[(((len + 64) >> 9) << 4) + 15] = len;
var _local3 = Array(80);
var _local7 = 1732584193 /* 0x67452301 */;
var _local6 = -271733879;
var _local5 = -1732584194;
var _local4 = 271733878 /* 0x10325476 */;
var _local8 = -1009589776;
var _local10 = 0;
while (_local10 < x.length) {
var _local16 = _local7;
var _local15 = _local6;
var _local14 = _local5;
var _local13 = _local4;
var _local12 = _local8;
var _local2 = 0;
while (_local2 < 80) {
if (_local2 < 16) {
_local3[_local2] = x[_local10 + _local2];
} else {
_local3[_local2] = this.rot(((_local3[_local2 - 3] ^ _local3[_local2 - 8]) ^ _local3[_local2 - 14]) ^ _local3[_local2 - 16], 1);
}
var _local9 = this.safe_add(this.safe_add(this.rot(_local7, 5), this.sha1_ft(_local2, _local6, _local5, _local4)), this.safe_add(this.safe_add(_local8, _local3[_local2]), this.sha1_kt(_local2)));
_local8 = _local4;
_local4 = _local5;
_local5 = this.rot(_local6, 30);
_local6 = _local7;
_local7 = _local9;
_local2++;
}
_local7 = this.safe_add(_local7, _local16);
_local6 = this.safe_add(_local6, _local15);
_local5 = this.safe_add(_local5, _local14);
_local4 = this.safe_add(_local4, _local13);
_local8 = this.safe_add(_local8, _local12);
_local10 = _local10 + 16;
}
return(Array(_local7, _local6, _local5, _local4, _local8));
};
Hash.sha1_ft = function (t, b, c, d) {
if (t < 20) {
return((b & c) | ((~b) & d));
}
if (t < 40) {
return((b ^ c) ^ d);
}
if (t < 60) {
return(((b & c) | (b & d)) | (c & d));
}
return((b ^ c) ^ d);
};
Hash.sha1_kt = function (t) {
return(((t < 20) ? 1518500249 : (((t < 40) ? 1859775393 : (((t < 60) ? -1894007588 : -899497514))))));
};
Hash.core_hmac_sha1 = function (key, input) {
var _local3 = this.str2binb(key);
if (_local3.length > 16) {
_local3 = this.core_sha1(_local3, key.length * 8);
}
var _local4 = Array(16);
var _local5 = Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_sha1(_local4.concat(this.str2binb(input)), 512 + (input.length * 8));
return(this.core_sha1(_local5.concat(_local6), 672));
};
Hash.str2binb = function (str) {
var _local3 = Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (24 - (_local1 % 32)));
_local1 = _local1 + 8;
}
return(_local3);
};
Hash.binb2str = function (bin) {
var _local3 = "";
var _local4 = 255;
var _local1 = 0;
while (_local1 < (bin.length * 32)) {
_local3 = _local3 + String.fromCharCode((bin[_local1 >> 5] >>> (24 - (_local1 % 32))) & _local4);
_local1 = _local1 + 8;
}
return(_local3);
};
Hash.binb2hex = function (binarray) {
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + ("0123456789abcdef".charAt((binarray[_local1 >> 2] >> (((3 - (_local1 % 4)) * 8) + 4)) & 15) + "0123456789abcdef".charAt((binarray[_local1 >> 2] >> ((3 - (_local1 % 4)) * 8)) & 15));
_local1++;
}
return(_local3);
};
Hash.binb2b64 = function (binarray) {
var _local4 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (3 - (_local2 % 4)))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * (3 - ((_local2 + 1) % 4)))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * (3 - ((_local2 + 2) % 4)))) & 255);
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + "=";
} else {
_local4 = _local4 + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((_local5 >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(_local4);
};
Cipher.prototype.e = function (txt, step) {
if (step == 1) {
var _local11 = Hash.hex_md5(String(new Date()));
} else {
var _local11 = txt.substring(txt.length - 32);
txt = txt.substring(0, txt.length - 32);
}
var _local3 = Hash.str_hmac_md5(this.key, _local11);
var _local7 = [];
var _local6 = 1;
var _local9 = "";
var _local4 = 0;
while (_local4 < txt.length) {
if (_local6 > (_local7.length - 1)) {
_local3 = Hash.str_md5(_local3);
var _local5 = new Array(_local3.length);
var _local2 = 0;
while (_local2 < _local3.length) {
_local5[_local2] = _local3.charCodeAt(_local2);
_local2++;
}
_local7 = _local5.concat(_local5.sort());
_local6 = 0;
}
_local9 = _local9 + String.fromCharCode(txt.charCodeAt(_local4) + (step * (_local7[_local6++] + (txt.length % (_local4 + 1)))));
_local4++;
}
return(((step == 1) ? (_local9 + _local11) : (_local9)));
};
Cipher.prototype.encrypt = function (s) {
return(escape(this.e(s, 1)));
};
Cipher.prototype.decrypt = function (s) {
return(this.e(unescape(s), -1));
};
_global.bdotCall = function (type, arg1) {
if (Communication.commObject == null) {
Communication.commObject = new LoadVars();
}
trace("bdotCall:" + type);
if (type == "ping") {
var _local3 = (((((((((("http://www.kewlbox.com/ping/ping3.cfm?gameId=" + Shell.gameSettings.gameID.kewlboxGameID) + "&clientId=") + Shell.gameSettings.gameID.clientID) + "&version=") + Shell.gameSettings.gameID.gameVersion) + "&partner=") + Shell.gameSettings.gameID.partnerID) + "&var1=0&type=") + Shell.gameSettings.gameID.gameType) + "&random=") + Math.random();
Communication.commObject.load(_local3);
} else if (type == "score") {
rsID = 555;
ruID = 777;
scoreCode = Shell.gameSettings.gameID.scoreCode;
score = arg1;
dtePost = Shell.dtePost;
key1 = Hash.hex_md5((scoreCode + score) + dtePost);
trace((((scoreCode + ":") + score) + ":") + dtePost);
newURL = (((((((((((((((((((("http://www.kewlbox.com/inGameRequests.aspx?gameId=" + Shell.gameSettings.gameID.kewlboxGameID) + "&clientId=") + Shell.gameSettings.gameID.clientID) + "&ruId=") + ruID) + "&rsId=") + rsID) + "&version=") + Shell.gameSettings.gameID.gameVersion) + "&partner=") + Shell.gameSettings.gameID.partnerID) + "&var1=0&agev=0&type=") + Shell.gameSettings.gameID.gameType) + "&pp=0&playNum=") + Shell.gameSettings.playNum) + "&score=") + arg1) + "&key1=") + key1) + "&process=postScore&dtePost=") + dtePost;
trace("thisURL:" + newURL);
getURL (newURL, "_blank");
} else if (type == "timestamp") {
var _local5 = getTimer();
var _local6 = Math.round((_local5 - Shell.gameSettings.currentGame.gameStartTime) / 1000);
var _local3 = (((((((("http://www.kewlbox.com/ping/end.cfm?gameId=" + Shell.gameSettings.gameID.kewlboxGameID) + "&clientId=") + Shell.gameSettings.gameID.clientID) + "&partner=") + Shell.gameSettings.gameID.partnerID) + "&time=") + _local6) + "&random=") + Math.random();
Communication.commObject.load(_local3);
} else if (type == "challenge") {
var _local3 = (((((((("http://www.kewlbox.com/email/direct.cfm?gameId=" + Shell.gameSettings.gameID.kewlboxGameID) + "&clientId=") + Shell.gameSettings.gameID.clientID) + "&version=") + Shell.gameSettings.gameID.gameVersion) + "&partner=") + Shell.gameSettings.gameID.partnerID) + "&var1=0&type=") + Shell.gameSettings.gameID.gameType;
var _local1 = 0;
while (_local1 < arg1.length) {
_local3 = _local3 + ((("&email" + (_local1 + 1)) + "=") + arg1[_local1]);
_local1++;
}
getURL (_local3, "_blank");
}
trace(_local3);
};
_global.Communication = new Object();
Communication.sendChallengeEmails = function (emailAddresses) {
if (typeof(emailAddresses) != "object") {
Shell.openPupWindow("defaultSm", "PROGRAMMER'S NOTE", "When you call sendChallenge(), you must pass an array of email addresses.");
} else {
Shell.gameSettings.shellState.challengeEmails = new Array();
var _local5 = new Array();
var _local2 = 0;
while (_local2 < emailAddresses.length) {
var _local1 = emailAddresses[_local2];
var _local3 = 0;
if (_local1.indexOf("@") > -1) {
if (_local1.indexOf(".", _local1.indexOf("@")) > -1) {
_local3 = 1;
}
}
if (_local3) {
Shell.gameSettings.shellState.challengeEmails.push(_local1);
} else if (_local1 != "") {
_local5.push(_local1);
}
_local2++;
}
if (_local5.length > 0) {
if (Shell.gameSettings.shellState.challengeEmails.length > 0) {
var _local7 = "Some of the email addresses you provided are invalid. Do you wish to send challenges to the emails which are valid?";
_local2 = 0;
while (_local2 < Shell.gameSettings.shellState.challengeEmails.length) {
_local7 = _local7 + ("\n\n - " + Shell.gameSettings.shellState.challengeEmails[_local2]);
_local2++;
}
var _local6 = new Array();
_local6.push({buttonText:"Send", buttonFunction:Communication.confirmSendChallenge});
_local6.push({buttonText:"Cancel", buttonFunction:Communication.cancelSendChallenge});
Shell.openPupWindow("defaultLg", "Email Address Invalid", _local7, _local6);
} else {
var _local7 = "None of the email addresses you provided are valid. Please try again.";
Shell.openPupWindow("defaultSm", "Email Address Invalid", _local7);
}
} else if (Shell.gameSettings.shellState.challengeEmails.length == 0) {
var _local7 = "Please enter your friends' email addresses to challenge them.";
Shell.openPupWindow("defaultSm", "No Email Addresses Provided", _local7);
delete Shell.gameSettings.shellState.challengeEmails;
} else {
Communication.confirmSendChallenge();
}
}
};
Communication.confirmSendChallenge = function () {
trace("sending");
bdotCall("challenge", Shell.gameSettings.shellState.challengeEmails);
Shell.closePupWindow();
delete Shell.gameSettings.shellState.challengeEmails;
};
Communication.cancelSendChallenge = function () {
trace("canceling");
delete Shell.gameSettings.shellState.challengeEmails;
Shell.closePupWindow();
};
Communication.initLocalHighScores = function () {
if (Shell.gameSettings.highScores == null) {
Shell.gameSettings.highScores = new Object();
}
Shell.gameSettings.highScores.numberOfScoresLocal = Shell.gameSettings.preferences.numberOfScoresToDisplay;
Shell.gameSettings.highScores.localScores = SharedObject.getLocal(("kewlbox/" + Shell.gameSettings.gameID.gameShortName) + "_high_scores", "/");
var _local2 = Shell.gameSettings.highScores.localScores.data;
if (_local2.scores == null) {
_local2.scores = new Array();
var _local1 = 0;
while (_local1 < Shell.gameSettings.highScores.numberOfScoresLocal) {
_local2.scores.push([0, "--", -1, getUniqueNumber()]);
_local1++;
}
}
};
Communication.initLocalHighScores();
Communication.saveHighScore = function (score, userName, gameID) {
trace("saveHighScore:");
if (typeof(score) == "string") {
var _local2 = score.split(",");
score = "";
var _local1 = 0;
while (_local1 < _local2.length) {
score = score + _local2[_local1];
_local1++;
}
score = Number(score);
}
score = Math.round(score);
Communication.saveLocalHighScore(score, userName, gameID);
};
Communication.saveGlobalHighScore = function (score, userName, gameID) {
trace("saveGlobalHighScore:");
if (Shell.gameSettings.playNum == undefined) {
return(-1);
}
if (typeof(score) == "string") {
var _local2 = score.split(",");
score = "";
var _local1 = 0;
while (_local1 < _local2.length) {
score = score + _local2[_local1];
_local1++;
}
score = Number(score);
}
score = Math.round(score);
bdotCall("score", score);
};
Communication.saveLocalHighScore = function (score, userName, gameID) {
var _local2 = Shell.gameSettings.highScores.localScores.data.scores;
var _local3 = 1;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1][2] == gameID) {
_local3 = 0;
}
_local1++;
}
if (_local3) {
userName = getDateReadout();
_local2.push([score, userName, gameID, getDateNumber()]);
_local2.sort(Communication.scoreOrder);
_local2.splice(Shell.gameSettings.highScores.numberOfScoresLocal);
}
};
Communication.displayHighScore = function (score, userName, gameID) {
var _local4 = Shell.gameSettings.highScores.localScores.data.scores;
userName = getDateReadout();
var _local3 = new Array();
if (((score != null) && (userName != null)) && (gameID != null)) {
var _local7 = 1;
} else {
var _local7 = 0;
}
var _local2 = 0;
while (_local2 < _local4.length) {
_local3.push(_local4[_local2].concat());
if (_local3[_local2][2] == gameID) {
var _local7 = 0;
}
_local2++;
}
if (_local7) {
_local3.push([score, userName, gameID, getDateNumber()]);
_local3.sort(Communication.scoreOrder);
_local3.splice(Shell.gameSettings.highScores.numberOfScoresLocal);
}
var _local6 = _local4.length;
_local2 = 0;
while (_local2 < _local4.length) {
if (_local3[_local2][2] == gameID) {
_local6 = _local2;
break;
}
_local2++;
}
var _local8 = 1;
_local2 = 0;
while (_local2 < Shell.gameSettings.highScores.numberOfScoresLocal) {
_root.highScoresTable[("line" + (_local2 + 1)) + "_rank"] = _local8++;
_root.highScoresTable[("line" + (_local2 + 1)) + "_name"] = _local3[_local2][1];
_root.highScoresTable[("line" + (_local2 + 1)) + "_score"] = formatNumber(_local3[_local2][0]);
_local2++;
}
if (_local6 < _local4.length) {
_root.highScoresTable.highlightRank(_local6 + 1);
}
};
Communication.scoreOrder = function (a, b) {
var _local2 = Number(a[0]);
var _local1 = Number(b[0]);
if (_local2 < _local1) {
return(1);
}
if (_local2 > _local1) {
return(-1);
}
return(0);
};
var today = new Date();
var inTheaters = new Date(2007, 5, 22);
today_date = today.getTime();
in_theaters_date = inTheaters.getTime();
Frame 25
soundM.gotoAndPlay(50 + (random(11) * 5));
Frame 175
function turnMusicDown(theInterval, theVolume) {
musicInt = setInterval(_root, "musicDown", theInterval, theVolume);
}
function musicDown(theVolume) {
vol = vol - 20;
if (vol <= theVolume) {
clearInterval(musicInt);
mainMusic.stop("title.mp3");
mainMusic.setVolume(100);
gotoAndPlay ("ibr");
} else {
mainMusic.setVolume(vol);
}
}
function playSound(incSound) {
if (musicOn) {
soundM.gotoAndPlay(incSound);
}
}
mainMusic = new Sound();
mainMusic.attachSound("title.mp3");
mainMusic.start(0, 100);
old_randMusic = -1;
ctaMusic = new Sound();
ctaMusic.attachSound("cta.mp3");
vol = 100;
playHit = false;
rulesSeen = false;
stop();
Frame 193
gamePlayed = false;
stop();
Frame 205
ctaMusic.stop();
stop();
Frame 214
function doRandMusic() {
delete gameMusic;
gameMusic1 = new Sound();
gameMusic2 = new Sound();
gameMusic3 = new Sound();
gameMusic1.attachSound("game.mp3");
gameMusic2.attachSound("game2.mp3");
gameMusic3.attachSound("game3.mp3");
randMusic = random(3);
while (old_randMusic == randMusic) {
randMusic = random(3);
}
if (randMusic == 0) {
gameMusic = gameMusic1;
} else if (randMusic == 1) {
gameMusic = gameMusic2;
} else if (randMusic == 2) {
gameMusic = gameMusic3;
}
trace("RAND MUSIC:" + randMusic);
gameMusic.start(0, 1);
gameMusic.setVolume(100);
gameMusic.onSoundComplete = function () {
doRandMusic();
};
old_randMusic = randMusic;
}
if (_level0.musicOn) {
doRandMusic();
}
Frame 215
stop();
Frame 223
gotoAndPlay ("cta");
Frame 233
if (_level0.musicOn) {
gameMusic.stop();
ctaMusic.start(0, 1000);
}
playSound("success");
Shell.displayCTA(_level0.theScore, null, Shell.gameSettings.currentGame.gameID);
stop();
Frame 256
getURL ("http://www.evanalmighty.com", "_blank");
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 10 MovieClip Frame 4
stop();
Symbol 16 MovieClip Frame 1
function updatePreloadProgress() {
var _local2 = 0;
totalSize = _root.getBytesTotal();
loadedSize = _root.getBytesLoaded();
if (loadedSize == totalSize) {
_local2 = 1;
}
var _local3 = loadedSize / totalSize;
barFill._width = barBackground._width * _local3;
return(_local2);
}
Symbol 16 MovieClip Frame 2
finishedLoading = updatePreloadProgress();
if (finishedLoading) {
stop();
}
Symbol 16 MovieClip Frame 14
barFill._width = 0;
Symbol 16 MovieClip Frame 16
finishedLoading = updatePreloadProgress();
trace(finishedLoading);
if (!finishedLoading) {
gotoAndPlay ("loop");
}
Symbol 16 MovieClip Frame 27
stop();
Symbol 23 MovieClip Frame 3
stop();
Symbol 23 MovieClip Frame 12
stop();
Symbol 23 MovieClip Frame 19
gotoAndPlay ("still");
Symbol 23 MovieClip Frame 22
stop();
Symbol 23 MovieClip Frame 28
gotoAndPlay ("still");
Symbol 25 MovieClip Frame 1
_parent.stop();
_parent.resizeBackground(_x, _y, _width, _height);
gotoAndPlay ("blank");
Symbol 25 MovieClip Frame 3
stop();
Symbol 30 Button
on (release) {
closePupWindowButton();
}
Symbol 33 Button
on (release) {
_parent.pageClick();
}
Symbol 36 Button
on (press) {
_parent.startScrollerDrag();
}
on (release, releaseOutside) {
_parent.endScrollerDrag();
}
Symbol 38 MovieClip Frame 1
function init() {
linesPerPage = 10;
fieldRef = _parent[fieldName];
currentlyScrolling = 0;
if (fieldRef.maxscroll > 1) {
var _local4 = 20;
var _local3 = scrollBackground._height;
scroller._height = Math.max(_local4, _local3 * (fieldRef._height / fieldRef.textHeight));
maxScrollDistance = _local3 - scroller._height;
fieldRef.scroll = 1;
fieldRef.onScroller = updateScrollerPosition;
updateScrollerPosition();
} else {
this._visible = 0;
fieldRef._width = fieldRef._width + _width;
}
}
function pageClick() {
if (_ymouse < scroller._y) {
fieldRef.scroll = Math.max(1, fieldRef.scroll - linesPerPage);
} else {
fieldRef.scroll = Math.min(fieldRef.maxscroll, fieldRef.scroll + linesPerPage);
}
}
function startScrollerDrag() {
currentlyScrolling = 1;
scroller.startDrag(0, scroller._x, 0, scroller._x, maxScrollDistance + 1);
scroller.onEnterFrame = updateTextPosition;
}
function endScrollerDrag() {
scroller.stopDrag();
currentlyScrolling = 0;
delete scroller.onEnterFrame;
}
function updateScrollerPosition() {
if (!currentlyScrolling) {
var _local1 = (fieldRef.scroll - 1) / (fieldRef.maxscroll - 1);
scroller._y = _local1 * maxScrollDistance;
}
}
function updateTextPosition() {
var _local2 = scroller._y / maxScrollDistance;
var _local1 = Math.round((fieldRef.maxscroll - 1) * _local2) + 1;
if (fieldRef.scroll != _local1) {
fieldRef.scroll = _local1;
}
}
init();
Symbol 48 Button
on (release) {
_root.playSound("click1");
Shell.declineLegal();
}
Symbol 53 Button
on (release) {
_root.playSound("click1");
Shell.acceptLegal();
}
Symbol 58 Button
on (release) {
_root.playSound("click1");
Shell.closeRules();
}
Symbol 61 MovieClip Frame 1
function continueWindowDisplay() {
if (windowBackground.sizeToGoTo == -1) {
windowBackground.gotoAndPlay("toLargerSizeBoing");
} else if (windowBackground.sizeToGoTo == 1) {
windowBackground.gotoAndPlay("toSmallerSizeBoing");
}
Shell.pupWindow.play();
}
function resizeBackground(newCenterX, newCenterY, newWidth, newHeight) {
if ((newWidth < 50) && (newHeight < 50)) {
Sounds.playSound("windowClose", 50);
windowBackground.sizeToGoTo = -1;
windowBackground.gotoAndPlay("toLargerSize");
} else if ((windowBackground._width < 50) && (windowBackground._height < 50)) {
Sounds.playSound("windowOpen", 50);
windowBackground.sizeToGoTo = -1;
windowBackground.gotoAndPlay("toLargerSize");
} else {
Sounds.playSound("windowMove", 50);
animStyle = "easeOutBack";
windowBackground.sizeToGoTo = 0;
}
windowBackground.tween(["_x", "_y", "_width", "_height"], [newCenterX, newCenterY, newWidth, newHeight], animDuration, animStyle, null, continueWindowDisplay);
}
function displayButtons() {
if (windowButtons == null) {
windowButtons = new Array();
}
var _local1 = 0;
while (_local1 < 3) {
var _local2 = Shell.pupWindow["button" + _local1];
if (_local1 < windowButtons.length) {
_local2._visible = 1;
_local2.buttonLabel = windowButtons[_local1].buttonText;
_local2.onRelease = windowButtons[_local1].buttonFunction;
_local2.init();
} else {
_local2._visible = 0;
_local2.buttonLabel = "INACTIVE";
delete _local2.onRelease;
_local2.init();
}
_local2._x = (80 * (1 - windowButtons.length)) + (_local1 * 160);
_local1++;
}
if (windowButtons.length == 0) {
var _local2 = Shell.pupWindow.button0;
_local2._visible = 1;
_local2.buttonLabel = "OK";
_local2.onRelease = closePupWindowButton;
_local2.init();
_local2._x = 0;
}
}
function closePupWindowButton() {
Shell.closePupWindow();
}
this._name = "pupWindows";
animStyle = "easeincubic";
animDuration = 0.5;
windowButtons = [];
windowTextStyleSheet = new TextField.StyleSheet();
windowTextStyleSheet.setStyle(".body", {color:"#FFFFFF", fontFamily:"Gill Sans"});
windowTextStyleSheet.setStyle("a", {color:"#FFFFFF", fontFamily:"Gill Sans", textDecoration:"underline"});
if (_global.Shell == null) {
_global.Shell = new Object();
}
Shell.pupWindow = this;
pupWindowOpen = 0;
returnLocation = new Array();
gotoAndPlay ("blank");
Shell.openPupWindow = function (windowType, titleCopy, bodyCopy, buttons) {
animStyle = "easeincubic";
animDuration = 0.5;
if (windowType == null) {
Shell.pupWindow.openWindowLocation = "defaultLg";
} else if (windowType == "default") {
Shell.pupWindow.openWindowLocation = "defaultLg";
} else {
Shell.pupWindow.openWindowLocation = windowType;
}
Shell.pupWindow.windowButtons = buttons;
Shell.pupWindow.titleCopy = titleCopy;
Shell.pupWindow.bodyCopy = bodyCopy;
Shell.pupWindow.gotoAndPlay(Shell.pupWindow.openWindowLocation);
if (!Shell.pupWindow.pupWindowOpen) {
Shell.pupWindow.windowBackground._width = 20;
Shell.pupWindow.windowBackground._height = 20;
}
Shell.pupWindow._x = Shell.gameSettings.gameID.nativeWidth / 2;
Shell.pupWindow._y = Shell.gameSettings.gameID.nativeHeight / 2;
Shell.pupWindow.coverAllButton._x = (-Shell.gameSettings.gameID.nativeWidth) / 2;
Shell.pupWindow.coverAllButton._y = (-Shell.gameSettings.gameID.nativeHeight) / 2;
Shell.pupWindow.coverAllButton._xscale = Shell.gameSettings.gameID.nativeWidth;
Shell.pupWindow.coverAllButton._yscale = Shell.gameSettings.gameID.nativeHeight;
Shell.pupWindow.coverAllButton.useHandCursor = 0;
if (!Shell.pupWindow.pupWindowOpen) {
Shell.pupWindow.pupWindowOpen = 1;
Shell.pupWindow.coverAllButton.tween("_alpha", 50, animDuration);
}
};
Shell.closePupWindow = function () {
_root.playSound("click1");
if (Shell.pupWindow.pupWindowOpen) {
if (Shell.pupWindow.returnLocation.length == 0) {
animStyle = "easeinquad";
animDuration = 0.5;
Shell.pupWindow.pupWindowOpen = 0;
Shell.pupWindow.coverAllButton.tween("_alpha", 0, animDuration);
Shell.pupWindow.gotoAndPlay("toClose");
} else {
var _local2 = Shell.pupWindow.returnLocation.pop();
if ((_local2 == "contactingKewlbox") || (_local2 == "")) {
Shell.openPupWindow(_local2);
}
}
} else {
Shell.pupWindow.gotoAndPlay("blank");
}
};
Symbol 61 MovieClip Frame 16
if (buttons == null) {
buttons = new Array();
}
titleText_txt.text = titleCopy;
bodyText_txt.htmlText = 1;
bodyText_txt.multiline = 1;
bodyText_txt.wordWrap = 1;
bodyText_txt.styleSheet = windowTextStyleSheet;
bodyText_txt.autoSize = "none";
bodyText_txt.htmlText = ("<span class='body'>" + bodyCopy) + "</span>";
displayButtons();
stop();
Instance of Symbol 38 MovieClip "scrollbar" in Symbol 61 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 61 MovieClip Frame 18
if (buttons == null) {
buttons = new Array();
}
titleText_txt.text = titleCopy;
bodyText_txt.htmlText = 1;
bodyText_txt.multiline = 1;
bodyText_txt.wordWrap = 1;
bodyText_txt.styleSheet = windowTextStyleSheet;
bodyText_txt.autoSize = "none";
bodyText_txt.htmlText = ("<span class='body'>" + bodyCopy) + "</span>";
displayButtons();
stop();
Instance of Symbol 38 MovieClip "scrollbar" in Symbol 61 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 61 MovieClip Frame 20
if (buttons == null) {
buttons = new Array();
}
titleText_txt.text = titleCopy;
bodyText_txt.htmlText = 1;
bodyText_txt.multiline = 1;
bodyText_txt.wordWrap = 1;
bodyText_txt.styleSheet = windowTextStyleSheet;
bodyText_txt.autoSize = "none";
bodyText_txt.htmlText = ("<span class='body'>" + bodyCopy) + "</span>";
displayButtons();
stop();
Instance of Symbol 38 MovieClip "scrollbar" in Symbol 61 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 61 MovieClip Frame 21
play();
Symbol 61 MovieClip Frame 23
stop();
Symbol 61 MovieClip Frame 25
gotoAndPlay ("blank");
Symbol 61 MovieClip Frame 35
windowOpen = 0;
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 12
stop();
Symbol 92 MovieClip Frame 24
stop();
Symbol 92 MovieClip Frame 30
stop();
Symbol 92 MovieClip Frame 42
stop();
Symbol 92 MovieClip Frame 51
stop();
Symbol 92 MovieClip Frame 56
stop();
Symbol 92 MovieClip Frame 61
stop();
Symbol 92 MovieClip Frame 66
stop();
Symbol 92 MovieClip Frame 71
stop();
Symbol 92 MovieClip Frame 76
stop();
Symbol 92 MovieClip Frame 81
stop();
Symbol 92 MovieClip Frame 86
stop();
Symbol 92 MovieClip Frame 91
stop();
Symbol 92 MovieClip Frame 96
stop();
Symbol 92 MovieClip Frame 101
stop();
Symbol 92 MovieClip Frame 107
stop();
Symbol 92 MovieClip Frame 115
stop();
Symbol 92 MovieClip Frame 124
stop();
Symbol 92 MovieClip Frame 135
stop();
Symbol 92 MovieClip Frame 157
stop();
Symbol 92 MovieClip Frame 166
stop();
Symbol 92 MovieClip Frame 184
stop();
Symbol 92 MovieClip Frame 195
stop();
Symbol 92 MovieClip Frame 202
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 9
stop();
Symbol 106 Button
on (release) {
_root.playSound("click1");
Shell.showPrivacy();
}
Symbol 109 Button
on (release) {
_root.playSound("click1");
Shell.showLegal();
}
Symbol 110 Button
on (press) {
_root.playSound("click1");
getURL ("http://www.kewlbox.com", "_blank");
}
Symbol 114 Button
on (release) {
_root.playSound("click1");
Shell.startGame();
}
Symbol 117 Button
on (release) {
_root.playSound("click1");
Shell.showRules();
}
Symbol 120 Button
on (release) {
_root.playSound("click1");
_root.mainMusic.stop();
Shell.quitFromTitle();
}
Symbol 121 MovieClip Frame 5
stop();
Symbol 126 MovieClip Frame 1
trace("_root.today_date:" + _root.today_date);
if (_root.today_date >= _root.in_theaters_date) {
gotoAndStop ("NowPlaying");
}
stop();
Symbol 145 Button
on (release) {
_root.gameSkin = "color";
play();
}
Symbol 146 Button
on (release) {
_root.gameSkin = "numbers";
play();
}
Symbol 147 Button
on (release) {
_root.gameSkin = "black";
play();
}
Symbol 148 MovieClip Frame 5
_level0.playSound("camel");
Symbol 148 MovieClip Frame 26
_level0.playSound("thud");
Symbol 148 MovieClip Frame 40
_level0.playSound("monkey");
stop();
Symbol 148 MovieClip Frame 41
_root.playSound("click1");
_root.turnMusicDown(50, 0);
Symbol 148 MovieClip Frame 53
stop();
Symbol 160 Button
on (press) {
_root.playSound("click1");
_parent.gotoAndPlay("bailOut2");
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
var my_video;
var my_nc = new NetConnection();
my_nc.connect(null);
var my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.onStatus = function (infoObject) {
for (var _local2 in infoObject) {
trace(infoObject[_local2]);
if (infoObject[_local2] == "NetStream.Play.Stop") {
gotoAndPlay ("bailOut2");
}
}
};
Symbol 163 MovieClip Frame 25
my_ns.play("evan_trailer.flv");
stop();
Symbol 163 MovieClip Frame 50
_root.gotoAndPlay("game");
stop();
Symbol 170 MovieClip Frame 1
if (_level0.today_date >= _level0.in_theaters_date) {
gotoAndStop ("NowPlaying");
}
stop();
Symbol 184 MovieClip Frame 1
gotoAndStop(random(6) + 2);
Symbol 194 Button
on (press) {
if (!_root.boardFrozen) {
clearInterval(gameClock);
_root.playSound("failure");
}
play();
_root.boardFrozen = true;
}
Symbol 197 Button
on (press) {
invisTiles();
stopGameTimer();
whiteFade.gotoAndStop(2);
whiteFade.swapDepths(_root.getNextHighestDepth());
paused = true;
}
Symbol 202 Button
on (press) {
trace("eraserOn:" + eraserOn);
if (_root.boardFrozen) {
return(0);
}
if (eraserOn) {
_root.killEraser();
} else {
Mouse.hide();
eraserOn = true;
_root.eraser.startDrag(true, -225, -206, 255, 206);
_root.handForEraser._visible = true;
_root.bloodyEraser._visible = false;
_root.oldShowGhostToggle = _root.showGhostToggle;
_root.eraser._visible = true;
_root.eraser.swapDepths(_root.getNextHighestDepth());
_root.showGhostToggle = false;
_root[lastRO].ghostMO.gotoAndStop(1);
}
}
Symbol 207 Button
on (press) {
clearAllCheckM.swapDepths(_root.getNextHighestDepth());
clearAllCheckM.gotoAndStop(2);
}
Symbol 212 Button
on (press) {
clearAllCheckM.gotoAndStop("solve");
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
stop();
Symbol 226 Button
on (press) {
incNum(-1);
if ((bgColor._currentframe == 3) && (!rockSolid)) {
bgColor.gotoAndStop(1);
}
}
on (rollOver) {
if (_root.eraserOn && (!rockSolid)) {
bgColor.gotoAndStop("erase");
}
_root.showGhost();
}
on (rollOut) {
if ((bgColor._currentframe == 3) && (!rockSolid)) {
bgColor.gotoAndStop(1);
}
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 3
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 2
stop();
Symbol 242 MovieClip Frame 3
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
stop();
Symbol 250 MovieClip Frame 3
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 3
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
stop();
Symbol 266 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 3
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 282 MovieClip Frame 3
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 3
stop();
Symbol 291 Button
on (press) {
incNum(0);
}
on (rollOver) {
_root.showGhost(_name);
_root.togglePencil(false);
}
on (rollOut, release, dragOut, releaseOutside) {
ghostMO.gotoAndStop(1);
blackGhostMO.gotoAndStop(1);
colorGhostMO.gotoAndStop(1);
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 3
stop();
Symbol 292 MovieClip Frame 4
stop();
Symbol 292 MovieClip Frame 5
stop();
Symbol 292 MovieClip Frame 6
stop();
Symbol 292 MovieClip Frame 7
stop();
Symbol 292 MovieClip Frame 8
stop();
Symbol 292 MovieClip Frame 9
stop();
Symbol 292 MovieClip Frame 10
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Symbol 302 MovieClip Frame 5
stop();
Symbol 302 MovieClip Frame 6
stop();
Symbol 302 MovieClip Frame 7
stop();
Symbol 302 MovieClip Frame 8
stop();
Symbol 302 MovieClip Frame 9
stop();
Symbol 302 MovieClip Frame 10
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 2
stop();
Symbol 313 MovieClip Frame 3
stop();
Symbol 313 MovieClip Frame 4
stop();
Symbol 313 MovieClip Frame 5
stop();
Symbol 313 MovieClip Frame 6
stop();
Symbol 313 MovieClip Frame 7
stop();
Symbol 313 MovieClip Frame 8
stop();
Symbol 313 MovieClip Frame 9
stop();
Symbol 313 MovieClip Frame 10
stop();
Symbol 314 MovieClip Frame 1
function init() {
num = 0;
clicked = false;
_root.timer = getTimer();
currNum = "-1";
}
function pushToWrong() {
square.gotoAndStop("wrong");
}
function pushToBorder() {
if (rockSolid) {
bgColor.gotoAndStop(2);
if (_level0.gameSkin == "color") {
square.gotoAndStop("color");
} else if (_level0.gameSkin == "black") {
square.gotoAndStop("black");
} else if (_level0.gameSkin == "numbers") {
square.gotoAndStop("solid");
}
} else if (_level0.gameSkin == "color") {
square.gotoAndStop("color");
} else if (_level0.gameSkin == "black") {
square.gotoAndStop("black");
} else if (_level0.gameSkin == "numbers") {
if (!_root.showWrongsOn) {
square.gotoAndStop(1);
}
}
}
function incNum(whichButt) {
clearInterval(_root.retardInt);
if (rockSolid) {
return(-1);
}
if ((whichButt == 0) && (_root.eraserOn)) {
_root.sortOutPencil();
return(0);
}
if (_root.boardFrozen) {
return(0);
}
if ((getTimer() - _root.timer) < 225) {
doubleClicked = true;
} else {
doubleClicked = false;
}
if (_root.eraserOn) {
doubleClicked = true;
}
_root.timer = getTimer();
trace((":" + whichButt) + ":");
if (whichButt == -1) {
if (doubleClicked) {
_root.numberRevealed--;
_root.completeCount(Number(currNum), false);
currNum = "-1";
_root.playSound("eraser");
_root.sortOutPencil();
gotoAndPlay (10);
}
return(0);
}
if (!doubleClicked) {
if (whichButt == 0) {
_root.lastHit = (_name + "|") + whichButt;
currNum = _root.currBPos.toString();
_root.buttHit();
} else {
ii = 0;
while (ii < guessArray.length) {
if (guessArray[ii] == _root.currBPos) {
return(0);
}
ii++;
}
guessArray[guessArray.length] = _root.currBPos;
guessArray.sort(Array.NUMERIC);
}
} else {
_root.playSound("eraser");
ii = 0;
while (ii < guessArray.length) {
if (guessArray[ii] == _root.currBPos) {
while (ii < (guessArray.length - 1)) {
guessArray[ii] = guessArray[ii + 1];
ii++;
}
guessArray.pop();
break;
}
ii++;
}
}
ii = 0;
while (ii < guessArray.length) {
Set("guessT" + ii, guessArray[ii]);
ii++;
}
while (ii < 9) {
Set("guessT" + ii, "");
ii++;
}
}
guessArray = new Array();
pushToBorder();
stop();
Symbol 314 MovieClip Frame 2
pushToBorder();
stop();
Symbol 314 MovieClip Frame 3
pushToBorder();
stop();
Symbol 314 MovieClip Frame 4
pushToBorder();
stop();
Symbol 314 MovieClip Frame 5
pushToBorder();
stop();
Symbol 314 MovieClip Frame 6
pushToBorder();
stop();
Symbol 314 MovieClip Frame 7
pushToBorder();
stop();
Symbol 314 MovieClip Frame 8
pushToBorder();
stop();
Symbol 314 MovieClip Frame 9
pushToBorder();
stop();
Symbol 314 MovieClip Frame 10
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 2
stop();
Symbol 410 Button
on (press) {
pressMoveBorder(9);
}
on (rollOver) {
doAnimalPU(9);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 411 Button
on (press) {
pressMoveBorder(8);
}
on (rollOver) {
doAnimalPU(8);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 412 Button
on (press) {
pressMoveBorder(7);
}
on (rollOver) {
doAnimalPU(7);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 413 Button
on (press) {
pressMoveBorder(6);
}
on (rollOver) {
doAnimalPU(6);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 414 Button
on (press) {
pressMoveBorder(5);
}
on (rollOver) {
doAnimalPU(5);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 415 Button
on (press) {
pressMoveBorder(4);
}
on (rollOver) {
doAnimalPU(4);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 416 Button
on (press) {
pressMoveBorder(3);
}
on (rollOver) {
doAnimalPU(3);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 417 Button
on (press) {
pressMoveBorder(2);
}
on (rollOver) {
doAnimalPU(2);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 418 Button
on (press) {
pressMoveBorder(1);
}
on (rollOver) {
doAnimalPU(1);
}
on (rollOut) {
_root.clearAnimalPU();
}
Symbol 421 Button
on (press) {
_root.playSound("click1");
play();
}
Symbol 426 Button
on (press) {
_root.playSound("click1");
play();
}
Symbol 427 MovieClip Frame 1
_root.sounds2._name = "soundM";
_root.musicM.gotoAndStop(2);
stop();
Symbol 427 MovieClip Frame 2
_root.musicM.gotoAndStop(1);
stopAllSounds();
_root.soundM._name = "sounds2";
stop();
Symbol 438 Button
on (press) {
_root.clearAllTiles();
_root.playSound("gibberish");
gotoAndStop (1);
}
Symbol 443 Button
on (press) {
gotoAndStop (1);
}
Symbol 444 Button
on (press) {
_level0.gotoAndPlay("gameToCTA");
}
Symbol 447 Button
on (press) {
gotoAndStop (1);
}
Symbol 455 Button
on (press) {
_root.doSolve();
gotoAndStop (1);
}
Symbol 456 Button
on (press) {
gotoAndStop (1);
}
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 6
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 457 MovieClip Frame 12
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 457 MovieClip Frame 20
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 457 MovieClip Frame 28
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 457 MovieClip Frame 37
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 458 MovieClip Frame 1
EGame = new Array();
EGame[0] = "764985312523417986891623475236148759185792634947356128618539247372864591459271863| 64 53 41 9 3 361 91 7 2 5 128 8 924 64 9145 27 86 ";
function flipBoard() {
col = 8;
row = 0;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[jj][ii] = tmpGridArray[row][col];
shownGrid[jj][ii] = tmpShownGrid[row][col];
col--;
if (col == -1) {
col = 8;
row++;
}
ii++;
}
jj++;
}
}
function cwBoard() {
col = 8;
row = 0;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[jj][ii] = tmpGridArray[col][row];
shownGrid[jj][ii] = tmpShownGrid[col][row];
col--;
if (col == -1) {
col = 8;
row++;
}
ii++;
}
jj++;
}
}
function tumbleBoard() {
col = 8;
row = 0;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[ii][jj] = tmpGridArray[col][row];
shownGrid[ii][jj] = tmpShownGrid[col][row];
col--;
if (col == -1) {
col = 8;
row++;
}
ii++;
}
jj++;
}
}
function halfTurnBoard() {
col = 8;
row = 8;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[jj][ii] = tmpGridArray[col][row];
shownGrid[jj][ii] = tmpShownGrid[col][row];
row--;
if (row == -1) {
row = 8;
col--;
}
ii++;
}
jj++;
}
}
function ccwFlipBoard() {
col = 8;
row = 8;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[row][col] = tmpGridArray[ii][jj];
shownGrid[row][col] = tmpShownGrid[ii][jj];
col--;
if (col == -1) {
col = 8;
row--;
}
ii++;
}
jj++;
}
}
function ccwBoard() {
col = 8;
row = 0;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[ii][jj] = tmpGridArray[row][col];
shownGrid[ii][jj] = tmpShownGrid[row][col];
col--;
if (col == -1) {
col = 8;
row++;
}
ii++;
}
jj++;
}
}
function cwFlipBoard() {
col = 0;
row = 0;
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
gridArray[jj][ii] = tmpGridArray[row][col];
shownGrid[jj][ii] = tmpShownGrid[row][col];
if (row == 8) {
row = -1;
col++;
}
row++;
ii++;
}
jj++;
}
}
function sortOutPencil() {
Mouse.show();
_root.handForEraser._visible = false;
_root.eraser._visible = false;
_root.bloodyEraser._visible = true;
_root.eraser._x = _root.origEraserX;
_root.eraser._y = _root.origEraserY;
_root.eraser.stopDrag();
eraserOn = false;
_root.showGhostToggle = _root.oldShowGhostToggle;
}
function togglePencil(turnOn) {
if (eraserOn) {
return(0);
}
if (boardFrozen) {
return(0);
}
if (turnOn) {
pencilOn = false;
} else {
pencilOn = true;
}
if (!pencilOn) {
_root.pencil.startDrag();
pencil._x = _xmouse;
pencil._y = _ymouse;
Mouse.hide();
pencil._visible = true;
pencilOn = true;
} else {
Mouse.show();
_root.pencil.stopDrag();
pencil._visible = false;
pencilOn = false;
}
}
function treatBoard() {
trace("treatBoard");
tmpGridArray = new Array(9);
tmpShownGrid = new Array(9);
ii = 0;
while (ii < 9) {
tmpGridArray[ii] = new Array(9);
tmpShownGrid[ii] = new Array(9);
ii++;
}
gridArray = new Array(9);
shownGrid = new Array(9);
ii = 0;
while (ii < 9) {
gridArray[ii] = new Array(9);
shownGrid[ii] = new Array(9);
ii++;
}
row = 0;
col = 0;
ii = 0;
while (ii < 81) {
tmpGridArray[row][col] = Board.charAt(ii);
tmpShownGrid[row][col] = Board.charAt(ii + 82);
if (((ii % 9) == 8) && (ii > 0)) {
row++;
col = -1;
}
col++;
ii++;
}
invertBoard();
randNum = random(8);
if (randNum == 0) {
row = 0;
col = 0;
ii = 0;
while (ii < 81) {
gridArray[row][col] = tmpGridArray[row][col];
shownGrid[row][col] = tmpShownGrid[row][col];
if (((ii % 9) == 8) && (ii > 0)) {
row++;
col = -1;
}
col++;
ii++;
}
} else if (randNum == 1) {
trace("flipBoard");
flipBoard();
} else if (randNum == 2) {
trace("cwBoard");
cwBoard();
} else if (randNum == 3) {
trace("tumbleBoard");
tumbleBoard();
} else if (randNum == 4) {
trace("halfTurnBoard");
halfTurnBoard();
} else if (randNum == 5) {
trace("ccwFlipBoard");
ccwFlipBoard();
} else if (randNum == 6) {
trace("ccwBoard");
ccwBoard();
} else if (randNum == 7) {
trace("cwFlipBoard");
cwFlipBoard();
}
}
function invertBoard() {
jj = 0;
while (jj < 9) {
ii = 0;
while (ii < 9) {
curI = tmpShownGrid[ii][jj];
if (curI == " ") {
tmpShownGrid[ii][jj] = tmpGridArray[ii][jj];
} else {
tmpShownGrid[ii][jj] = " ";
}
ii++;
}
jj++;
}
}
function cleanInput() {
Board = EGame[random(EGame.length - 1)];
trace("BEFORE:" + Board);
treatBoard();
Board = "";
ii = 0;
while (ii < 9) {
jj = 0;
while (jj < 9) {
Board = Board + gridArray[ii][jj];
jj++;
}
ii++;
}
Board = Board + "|";
ii = 0;
while (ii < 9) {
jj = 0;
while (jj < 9) {
if (shownGrid[ii][jj] == "") {
Board = Board + " ";
} else {
Board = Board + shownGrid[ii][jj];
}
jj++;
}
ii++;
}
trace("AFTER :" + Board);
tempB = Board.split("|");
wholeBoard = tempB[0];
shownBoard = tempB[1];
currBoard = tempB[1];
}
function makeTiles() {
tileSize = 39.3;
row = -1;
col = 0;
ii = 0;
while (ii < 81) {
if ((ii % 9) == 0) {
row++;
col = 0;
}
thickBarOffsetY = 0;
if (row > 2) {
thickBarOffsetY = 1;
}
if (row > 5) {
thickBarOffsetY = 2;
}
thickBarOffsetX = 0;
if (col > 2) {
thickBarOffsetX = 1;
}
if (col > 5) {
thickBarOffsetX = 2;
}
gridArray[row][col] = -1;
duplicateMovieClip (tileTemp, (("Tile" + row) + "|") + col, this.getNextHighestDepth());
eval ((("Tile" + row) + "|") + col)._x = ((col * tileSize) + tileTemp._x) + thickBarOffsetX;
eval ((("Tile" + row) + "|") + col)._y = ((row * tileSize) + tileTemp._y) + thickBarOffsetY;
eval ((("Tile" + row) + "|") + col).hidNum = wholeBoard.charAt(ii);
eval ((("Tile" + row) + "|") + col)._visible = false;
eval ((("Tile" + row) + "|") + col).numT = "";
col++;
ii++;
}
tileTemp._visible = false;
_root.origEraserX = eraser._x;
_root.origEraserY = eraser._y;
messageWindow.swapDepths(getNextHighestDepth());
if (_root.boardSkin != 1) {
_root.skinBoard();
}
}
function showRetard() {
clearInterval(retardInt);
trace("RETARD");
clearAnimalPU();
clearAllCheckM.gotoAndPlay("retard");
}
function playSound(incSound) {
_level0.playSound(incSound);
}
function completeCount(theNum, isAdding) {
if (isAdding) {
completedNumber[theNum]++;
numberRevealed++;
} else {
completedNumber[theNum]--;
}
if ((completedNumber[theNum] > 9) && (!tooManyShow)) {
tooManyShow = true;
clearAllCheckM.gotoAndPlay("tooMany");
}
if (completedNumber[theNum] >= 9) {
_root["complete" + theNum].gotoAndStop(1);
_root["complete" + theNum].comLett = completedString.charAt(theNum - 1);
if (theNum == 1) {
playSound("raccoon");
} else if (theNum == 2) {
playSound("pig");
} else if (theNum == 3) {
playSound("bird");
} else if (theNum == 4) {
playSound("dog");
} else if (theNum == 5) {
playSound("monkey");
} else if (theNum == 6) {
playSound("bear");
} else if (theNum == 7) {
playSound("lion");
} else if (theNum == 8) {
playSound("horse");
} else if (theNum == 9) {
playSound("elephant");
}
} else {
if ((numberRevealed >= 71) && (!finishThisSoundPlayed)) {
finishThisSoundPlayed = true;
playSound("finish");
}
_root["complete" + theNum].comLett = theNum;
if (_level0.gameSkin == "numbers") {
_root["complete" + theNum].gotoAndStop(2);
} else if (_level0.gameSkin == "color") {
_root["complete" + theNum].gotoAndStop(3);
} else if (_level0.gameSkin == "black") {
_root["complete" + theNum].gotoAndStop(4);
}
}
}
function setupBoard() {
completedNumber = new Array(9);
complete1.comLett = "C";
complete2.comLett = "O";
complete3.comLett = "M";
complete4.comLett = "P";
complete5.comLett = "L";
complete6.comLett = "E";
complete7.comLett = "T";
complete8.comLett = "E";
complete9.comLett = "D";
completedString = "COMPLETED";
ii = 0;
while (ii < 10) {
completedNumber[ii] = 0;
if (_level0.gameSkin == "numbers") {
_root["complete" + ii].gotoAndStop(2);
} else if (_level0.gameSkin == "color") {
_root["complete" + ii].gotoAndStop(3);
} else if (_level0.gameSkin == "black") {
_root["complete" + ii].gotoAndStop(4);
}
ii++;
}
row = -1;
ii = 0;
while (ii < 81) {
if ((ii % 9) == 0) {
row++;
col = 0;
}
theChar = shownBoard.charAt(ii);
if (!isNaN(Number(theChar))) {
eval ((("Tile" + row) + "|") + col).rockSolid = true;
eval ((("Tile" + row) + "|") + col).init();
eval ((("Tile" + row) + "|") + col).currNum = wholeBoard.charAt(ii);
eval ((("Tile" + row) + "|") + col).gotoAndStop(theChar);
} else {
eval ((("Tile" + row) + "|") + col).rockSolid = false;
eval ((("Tile" + row) + "|") + col).gotoAndStop(10);
}
col++;
ii++;
}
ii = 1;
while (ii <= 9) {
theWheel["wheel" + ii].gotoAndStop(1);
ii++;
}
theWheel.wheel5.gotoAndStop(3);
}
function pressMoveBorder(hitNum) {
if (_root.eraserOn) {
killEraser();
}
diff = hitNum - currBPos;
if (diff != 0) {
moveBorder(diff, 1);
}
clearInterval(retardInt);
}
function moveBorder(delta, inputType) {
if (isNaN(delta) || (!gameStartHit)) {
return(0);
}
lastCurrBPos = currBPos;
if (inputType != 1) {
if (delta >= 0) {
delta = 1;
} else {
delta = -1;
}
}
currBPos = currBPos + delta;
topScale.gotoAndStop(1);
bottomScale.gotoAndStop(1);
if (currBPos == 9) {
topScale.gotoAndStop(2);
} else if (currBPos > 9) {
currBPos = 1;
}
if (currBPos == 1) {
bottomScale.gotoAndStop(2);
} else if (currBPos < 1) {
currBPos = 9;
topScale.gotoAndStop(2);
}
theWheel["wheel" + currBPos].gotoAndStop(3);
theWheel["wheel" + lastCurrBPos].gotoAndStop(1);
_root[rolledOver].ghostMO.gotoAndStop(_root.currBPos + 1);
}
function buttHit() {
_root.playSound("foot" + random(2));
buttArray = lastHit.split("|");
curBut = eval ((buttArray[0] + "|") + buttArray[1]);
eval (curBut).gotoAndStop(currBPos);
completeCount(currBPos, true);
if (numberRevealed >= 81) {
checkAns();
}
if (_root.showWrongsOn) {
_root.showWrongs();
}
}
function clearNotes() {
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
eval ((("Tile" + row) + "|") + col).guessArray = new Array();
ii = 0;
while (ii < 9) {
Set((((("Tile" + row) + "|") + col) + ".guessT") + ii, "");
ii++;
}
col++;
}
row++;
}
}
function clearAllTiles() {
setupBoard();
checkCompleteds();
clearNotes();
numberRevealed = origNumRevealed;
}
function invisTiles() {
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
eval ((("Tile" + row) + "|") + col)._visible = false;
col++;
}
row++;
}
}
function killEraser() {
Mouse.show();
_root.eraser._visible = false;
_root.bloodyEraser._visible = true;
_root.eraser._x = _root.origEraserX;
_root.eraser._y = _root.origEraserY;
_root.eraser.stopDrag();
eraserOn = false;
_root.showGhostToggle = _root.oldShowGhostToggle;
}
function killTiles() {
eraser.removeMovieClip();
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
removeMovieClip((("Tile" + row) + "|") + col);
col++;
}
row++;
}
}
function unInvisTiles() {
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
eval ((("Tile" + row) + "|") + col)._visible = true;
col++;
}
row++;
}
messageWindow.swapDepths(_root.getNextHighestDepth());
pencil.swapDepths(_root.getNextHighestDepth());
eraser.swapDepths(_root.getNextHighestDepth() + 1);
}
function stopGameTimer() {
clearInterval(gameClock);
}
function checkAns() {
correctBoard = true;
gameErrors = 0;
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
if (eval ((("Tile" + row) + "|") + col).hidNum != eval ((("Tile" + row) + "|") + col).currNum) {
correctBoard = false;
gameErrors++;
}
col++;
}
row++;
}
if (correctBoard) {
boardFrozen = true;
_root.stopGameTimer();
_level0.theScore = seconds;
clearAllCheckM.swapDepths(_root.getNextHighestDepth());
clearAllCheckM.gotoAndPlay("win");
} else {
clearAllCheckM.gotoAndPlay("doh");
}
}
function doSolve() {
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
currM = this[(("Tile" + row) + "|") + col];
if (!currM.rockSolid) {
currM.gotoAndStop(currM.hidNum);
currM.pushToBorder();
}
col++;
}
row++;
}
_root.playSound("failure");
clearInterval(gameClock);
boardFrozen = true;
}
function showAns() {
buttArray = lastHit.split("|");
showBut = eval ((("_level0." + buttArray[0]) + "|") + buttArray[1]);
eval (showBut).gotoAndPlay(3);
}
function showGhost(rolledOver) {
if (boardFrozen) {
return(0);
}
if (showGhostToggle) {
if (_level0.gameSkin == "numbers") {
_root[lastRO].ghostMO.gotoAndStop(1);
_root[rolledOver].ghostMO.gotoAndStop(_root.currBPos + 1);
} else if (_level0.gameSkin == "color") {
_root[lastRO].colorGhostMO.gotoAndStop(1);
_root[rolledOver].colorGhostMO.gotoAndStop(_root.currBPos + 1);
} else if (_level0.gameSkin == "black") {
_root[lastRO].blackGhostMO.gotoAndStop(1);
_root[rolledOver].blackGhostMO.gotoAndStop(_root.currBPos + 1);
}
} else if (_level0.gameSkin == "numbers") {
_root[rolledOver].ghostMO.gotoAndStop(1);
} else if (_level0.gameSkin == "color") {
_root[rolledOver].colorGhostMO.gotoAndStop(1);
} else if (_level0.gameSkin == "black") {
_root[rolledOver].blackGhostMO.gotoAndStop(1);
}
_root.lastRO = rolledOver;
}
function showWrongs() {
showWrongsOn = !showWrongsOn;
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
currM = eval ((("Tile" + row) + "|") + col);
if (!currM.rockSolid) {
if (currM.currNum != "-1") {
if (currM.hidNum != currM.currNum) {
if (!showWrongsOn) {
eval ((("Tile" + row) + "|") + col).pushToBorder();
} else {
eval ((("Tile" + row) + "|") + col).pushToWrong();
}
}
}
}
col++;
}
row++;
}
}
function skinBoard() {
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
eval ((("Tile" + row) + "|") + col).pushToBorder();
col++;
}
row++;
}
}
function exitHit() {
_root.messageWindow.gotoAndStop(1);
}
function checkCompleteds() {
xx = 0;
while (xx <= 9) {
completedNumber[xx] = 0;
xx++;
}
numberRevealed = 0;
jj = 0;
while (jj < length(currBoard)) {
theChar = currBoard.charAt(jj);
theNum = Number(theChar);
if (!isNaN(theNum)) {
completeCount(theNum, true);
}
jj++;
}
origNumRevealed = numberRevealed;
}
function userInputtedBoard() {
lcv = 0;
currGuess = 0;
row = 0;
while (row < 9) {
col = 0;
while (col < 9) {
theChar = currBoard.charAt(lcv);
eval ((("Tile" + row) + "|") + col).init();
eval ((("Tile" + row) + "|") + col).currNum = theChar;
eval ((("Tile" + row) + "|") + col).gotoAndStop(theChar);
lcv++;
ii = 0;
while (ii < 9) {
theG = guessBoard.charAt(currGuess);
Set((((("Tile" + row) + "|") + col) + ".guessT") + ii, theG);
if (theG ne " ") {
eval ((("Tile" + row) + "|") + col).guessArray[ii] = theG;
}
currGuess++;
ii++;
}
col++;
}
row++;
}
}
function turnOffGhost() {
showGhostToggle = false;
}
function startClock() {
gameClock = setInterval(this, "doTime", 1000);
}
function doTime() {
if (paused) {
return(0);
}
seconds--;
if (seconds == 0) {
clearInterval(gameClock);
}
secondsT = seconds;
}
function doAnimalPU(incAnimal) {
if (_level0.gameSkin == "numbers") {
return(0);
}
clearInterval(showAnimal);
animalPop._y = -500;
showAnimal = setInterval(this, "showAnimalPU", 1000, incAnimal);
}
function clearAnimalPU() {
_root.animalPop._y = -500;
}
function showAnimalPU(theNum) {
clearInterval(showAnimal);
trace("SHOW ANIMAL");
animalPop._y = 167 - (theNum * 32);
animalPop.visible = true;
animalPop.swapDepths(_root.getNextHighestDepth());
if (theNum == 1) {
theAnim = "raccoon";
} else if (theNum == 2) {
theAnim = "pig";
} else if (theNum == 3) {
theAnim = "bird";
} else if (theNum == 4) {
theAnim = "dog";
} else if (theNum == 5) {
theAnim = "monkey";
} else if (theNum == 6) {
theAnim = "bear";
} else if (theNum == 7) {
theAnim = "lion";
} else if (theNum == 8) {
theAnim = "horse";
} else if (theNum == 9) {
theAnim = "elephant";
}
animalPop.theAnimal = theAnim.toUpperCase();
}
function initGame() {
messageWindow.swapDepths(2000);
if (_level0.gameSkin == "numbers") {
seconds = 12000;
secondsT = "12000";
} else if (_level0.gameSkin == "color") {
seconds = 10000;
secondsT = "10000";
} else if (_level0.gameSkin == "black") {
seconds = 15000;
secondsT = "15000";
}
loadingInfo = false;
gameStartHit = false;
hsstatus = 0;
soundsLoaded = 0;
boardFrozen = true;
handForEraser._visible = false;
pencilOn = false;
currBPos = 5;
numberRevealed = 0;
eraserOn = false;
boardSkin = 1;
_level0.theScore = 0;
gameType = "Classic";
theWheel.gotoAndStop(_level0.gameSkin);
}
_lockroot = true;
gameStartHit = false;
paused = true;
noPauseWarning = false;
noSaveWarning = false;
noExitWarning = false;
showWrongsOn = false;
loadingAGame = false;
showGhostToggle = true;
oldShowGhostToggle = true;
eraserOn = false;
boardSkin = 1;
_level0.theScore = 0;
finishThisSoundPlayed = false;
if (_global.keyListener == null) {
_global.keyListener = new Object();
_global.keyListener.onKeyDown = function () {
keyHitS = chr(Key.getAscii());
keyHit = Number(keyHitS);
if (((keyHit >= 1) && (keyHit <= 9)) && (gameStartHit)) {
pressMoveBorder(keyHit);
}
};
Key.addListener(_global.keyListener);
}
if (_global.mouseListener == null) {
_global.mouseListener = new Object();
_global.mouseListener.onMouseWheel = moveBorder;
Mouse.addListener(_global.mouseListener);
}
debugOn = false;
_root.eraser._visible = false;
animalPop._y = -500;
Instance of Symbol 314 MovieClip "tileTemp" in Symbol 458 MovieClip Frame 1
/* no clip actions */
Symbol 458 MovieClip Frame 2
cleanInput();
initGame();
Symbol 458 MovieClip Frame 3
makeTiles();
setupBoard();
checkCompleteds();
boardSkin = 1;
gameMinutes = 0;
gameSeconds = 0;
countDown = false;
origNumRevealed = numberRevealed;
Symbol 458 MovieClip Frame 4
startLoadSave.startPauseM.gotoAndStop(2);
unInvisTiles();
startGameTimer();
loadingAGame = false;
boardFrozen = false;
paused = false;
gameStartHit = true;
Symbol 458 MovieClip Frame 22
startClock();
playSound("sense");
clearInterval(retardInt);
retardInt = setInterval(this, "showRetard", 15000);
stop();
Symbol 458 MovieClip Frame 64
killTiles();
Symbol 458 MovieClip Frame 104
Shell.quitGame();
stop();
Symbol 463 Button
on (release) {
_root.playSound("click1");
if (_root.musicOn) {
_root.ctaMusic.stop();
_root.mainMusic.start(0, 100);
}
Shell.startGameAgain();
}
Symbol 466 Button
on (release) {
_root.playSound("click1");
Shell.quitFromCTA();
}
Symbol 469 Button
on (release) {
_root.playSound("click1");
Communication.saveGlobalHighScore(_level0.theScore);
}
Symbol 472 Button
on (release) {
_root.playSound("click1");
Communication.sendChallengeEmails([email1.text, email2.text]);
}
Symbol 473 MovieClip Frame 1
if (_root.today_date >= _root.in_theaters_date) {
gotoAndStop ("NowPlaying");
}
stop();
Symbol 476 Button
on (press) {
getURL ("http://www.evanalmighty.com", "_blank");
}
Symbol 479 MovieClip Frame 9
stop();