Frame 1
function getDateNumber() {
return(getUniqueNumber());
}
function Cipher(key) {
this.key = Hash.str_md5(key);
}
Stage.scaleMode = "noScale";
Stage.showMenu = false;
fscommand ("fullscreen", true);
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 = "257";
Shell.gameSettings.gameID.clientID = "111";
Shell.gameSettings.gameID.partnerID = "3";
Shell.gameSettings.gameID.gameVersion = "1.01";
Shell.gameSettings.gameID.gameShortName = "cardkiller";
temp = _root._url.split(".");
temp = temp[temp.length - 1];
trace("gameType:" + temp);
if (temp == "exe") {
Shell.gameSettings.gameID.gameType = "1";
} else if (temp == "app") {
Shell.gameSettings.gameID.gameType = "2";
} else if (temp == "swf") {
Shell.gameSettings.gameID.gameType = "3";
}
trace("Shell.gameSettings.gameID.gameType:" + Shell.gameSettings.gameID.gameType);
Shell.gameSettings.gameID.scoreCode = "frenchbulldog";
Shell.gameSettings.playNum = 0;
Shell.gameSettings.gameID.gameLongName = "Smokin' Aces Card Killer";
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.<br><br>Universal Pictures Privacy Policy: Please click <a href='http://www.universalpictures.com/legal/privacy.html' TARGET='KewlboxWindow'>here</a> to display in a browser (requires an Internet connection).";
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. Universal Pictures Legal and Disclaimer: Please click <a href='http://www.universalpictures.com/legal/index.html ' TARGET='KewlboxWindow'>here</a> to display in a browser (requires an Internet connection).";
Shell.gameSettings.windowText.rulesTitle = "KILL BUDDY ISRAEL";
Shell.gameSettings.windowText.rules = "Seven hitmen, they\u2019re psychotic, they\u2019re ruthless, they\u2019re degenerate, they\u2019re relentless, with a one million dollar target. There is only one rule. Kill Buddy Israel. May the best hitman rule.<br><br>You will be dealt a series of cards. Flip them over by moving your mouse over them. When you find Buddy Israel shoot him by clicking your left mouse button. Be quick and don\u2019t shoot any one else or the game is over.";
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.smokinaces.net";
if (_global.Shell == null) {
_global.Shell = new Object();
}
Shell.startGame = function () {
Shell.gameSettings.shellState.userLaunchedGame = 1;
if (!Shell.gameSettings.preferences.legalApproved) {
Shell.showLegal();
} 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:"ACCEPT", buttonFunction:Shell.acceptLegal});
_local1.push({buttonText:"DECLINE", 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;
trace("***** LEGAL ACCEPTED *****");
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("defaultMed", Shell.gameSettings.windowText.rulesTitle, Shell.gameSettings.windowText.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("close");
};
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;
trace("Shell.gameSettings.preferences.legalApproved:" + Shell.gameSettings.preferences.legalApproved);
if (!Shell.gameSettings.preferences.legalApproved) {
Shell.showLegal();
} else {
bdotCall("ping");
Shell.initNewGame();
_root.gotoAndPlay("ctaToGame");
}
};
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, "KewlboxWindow");
} else {
getURL (_local3);
}
};
Shell.initNewGame = function () {
Shell.gameSettings.currentGame = new Object();
Shell.gameSettings.currentGame.gameStartTime = getTimer();
Shell.gameSettings.currentGame.gameID = getUniqueNumber();
Shell.gameSettings.playNum++;
};
_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);
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 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));
};
Frame 3
Frame 8
if (_root.getBytesTotal() != _root.getBytesLoaded()) {
gotoAndPlay ("preloadLoop");
}
Frame 12
Frame 151
Stage.align = "";
Frame 172
gotoAndPlay ("videoIntro");
Frame 202
function startMusicLoop() {
mainMusic.start(0, 5);
mainMusic.onSoundComplete = function () {
mainMusic.start(0, 5);
};
}
function fadeMusicLoop() {
musicInt = setInterval(this, "musicDown", 25);
}
function musicDown() {
vol = vol - 10;
trace(vol);
if (vol <= 0) {
mainMusic.stop("SmokinAcesLoop.wav");
if (musicInt != undefined) {
clearInterval(musicInt);
} else {
clearInterval(GAME.musicInt);
}
}
mainMusic.setVolume(vol);
}
mainMusic = new Sound();
mainMusic.attachSound("SmokinAcesLoop.wav");
startMusicLoop();
var sfx_punch01 = new Sound();
var sfx_punch02 = new Sound();
sfx_punch01.attachSound("sfx-punch03.wav");
sfx_punch02.attachSound("sfx-punch02.wav");
var buttonClick = new Sound();
buttonClick.attachSound("sfx-punch03.wav");
vol = 100;
soundOn = true;
inGame = false;
Shell.displayCTA(0, null, Shell.gameSettings.currentGame.gameID);
stop();
Frame 236
musicInt = setInterval(this, "musicDown", 25);
actors.gotoAndStop("loop");
Frame 272
stop();
gotoAndPlay ("introCTA");
Frame 273
actors.gotoAndStop("loop");
Frame 305
Frame 309
if (soundOn) {
mainMusic.setVolume(100);
soundOffM._visible = false;
} else {
soundOffM._visible = true;
}
Frame 335
stop();
Frame 361
_root.BGMusic.stop();
Frame 362
if (restart) {
gotoAndPlay ("startgame");
}
Frame 372
stopAllSounds();
mainMusic.setVolume(100);
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("VIDEO:" + infoObject[_local2]);
if (infoObject[_local2] == "NetStream.Play.Stop") {
play();
}
}
};
Frame 392
trace("theScore:" + theScore);
Shell.displayCTA(theScore, null, Shell.gameSettings.currentGame.gameID);
var theSelection = "SA_SnitchDVD_pre_3000k_493x266.flv";
theDate = new Date();
thisDate = theDate.getDate();
thisMonth = theDate.getMonth();
thisYear = theDate.getFullYear();
postSelection = "SA_SnitchDVD_post_3000k_493x266.flv";
if (thisYear > 2007) {
var theSelection = postSelection;
} else if (thisMonth > 3) {
var theSelection = postSelection;
} else if ((thisMonth >= 3) && (thisDate >= 17)) {
var theSelection = postSelection;
}
var clipPath = "http://downloads.kewlbox.com/games_online/smokinaces/";
theSelection = clipPath + theSelection;
my_video._visible = true;
trace("PLAYING:" + theSelection);
my_ns.play(theSelection);
stop();
Frame 402
stop();
Frame 437
mainMusic.start(0, 10);
gotoAndPlay ("game");
Frame 482
stopAllSounds();
Shell.exitGame();
Frame 491
stop();
Symbol 9 MovieClip [mc_sndGunShotBad] Frame 1
stop();
Symbol 9 MovieClip [mc_sndGunShotBad] Frame 2
trace("****** BANG! *****");
Symbol 9 MovieClip [mc_sndGunShotBad] Frame 7
stop();
Symbol 11 MovieClip [mc_sndGunShotGood] Frame 1
stop();
Symbol 11 MovieClip [mc_sndGunShotGood] Frame 2
trace("****** BANG! *****");
Symbol 11 MovieClip [mc_sndGunShotGood] Frame 22
stop();
Symbol 16 MovieClip Frame 9
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 7
stop();
Symbol 28 MovieClip Frame 1
function updatePreloadProgress() {
var _local3 = 0;
totalSize = _root.getBytesTotal();
loadedSize = _root.getBytesLoaded();
if (loadedSize == totalSize) {
_local3 = 1;
}
var _local2 = loadedSize / totalSize;
barFill._width = barBackground._width * _local2;
if (_local2 >= 0) {
graphicBG.loadPercent.text = Math.floor(_local2 * 100) + "%";
} else {
graphicBG.loadPercent.text = "0%";
}
return(_local3);
}
Symbol 28 MovieClip Frame 2
finishedLoading = updatePreloadProgress();
if (finishedLoading) {
stop();
}
Symbol 28 MovieClip Frame 14
barFill._width = 0;
Symbol 28 MovieClip Frame 16
finishedLoading = updatePreloadProgress();
trace(finishedLoading);
if (!finishedLoading) {
gotoAndPlay ("loop");
}
Symbol 28 MovieClip Frame 27
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 12
stop();
Symbol 39 MovieClip Frame 19
gotoAndPlay ("still");
Symbol 39 MovieClip Frame 22
stop();
Symbol 39 MovieClip Frame 28
gotoAndPlay ("still");
Symbol 42 MovieClip Frame 1
_parent.stop();
_parent.resizeBackground(_x, _y, _width, _height);
gotoAndPlay ("blank");
Symbol 42 MovieClip Frame 3
stop();
Symbol 51 MovieClip Frame 1
function init() {
if (this._xscale != 100) {
if (buttonWidth < 0) {
buttonWidth = this._width;
}
this._xscale = 100;
}
if (this._yscale != 100) {
var _local2 = this._height;
this._yscale = 100;
buttonUp._height = _local2;
buttonDown._height = _local2;
}
var _local3 = 10;
buttonText.autoSize = "center";
buttonText.text = buttonLabel;
buttonWidth = Math.max(buttonWidth, buttonText._width + 10);
buttonUp._width = buttonWidth;
buttonDown._width = buttonWidth;
this.onRollOver = function () {
gotoAndStop ("over");
};
this.onRollOut = function () {
gotoAndStop ("up");
};
this.onReleaseOutside = function () {
gotoAndStop ("up");
};
}
init();
stop();
Symbol 54 Button
on (release) {
_parent.pageClick();
}
Symbol 57 Button
on (press) {
_parent.startScrollerDrag();
}
on (release, releaseOutside) {
_parent.endScrollerDrag();
}
Symbol 59 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 79 MovieClip Frame 1
function init() {
if (this._xscale != 100) {
if (buttonWidth < 0) {
buttonWidth = this._width;
}
this._xscale = 100;
}
if (this._yscale != 100) {
var _local2 = this._height;
this._yscale = 100;
buttonBackground.theColor._height = _local2;
buttonShading._height = _local2;
}
var _local3 = 10;
buttonText.autoSize = "center";
buttonWidth = Math.max(buttonWidth, buttonText._width + 10);
buttonBackground.theColor._width = buttonWidth;
buttonShading._width = buttonWidth;
buttonColor = new Color(buttonBackground.theColor);
buttonColor.setRGB(colorNor);
this.onRollOver = function () {
buttonColor.setRGB(colorRoll);
};
this.onRollOut = function () {
buttonColor.setRGB(colorNor);
};
this.onReleaseOutside = function () {
buttonColor.setRGB(colorNor);
};
}
init();
Symbol 82 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() {
Sounds.buttonClick();
Shell.closePupWindow();
}
this._name = "pupWindows";
animStyle = "easeincubic";
animDuration = 0.5;
windowButtons = [];
windowTextStyleSheet = new TextField.StyleSheet();
windowTextStyleSheet.setStyle(".body", {color:"#FFFFFF", fontFamily:"Franklin Gothic Book"});
windowTextStyleSheet.setStyle("a", {color:"#FFFFFF", fontFamily:"Franklin Gothic Book", 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 () {
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 _local1 = Shell.pupWindow.returnLocation.pop();
if ((_local1 == "contactingKewlbox") || (_local1 == "")) {
Shell.openPupWindow(_local1);
}
}
} else {
Shell.pupWindow.gotoAndPlay("blank");
}
};
Symbol 82 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 51 MovieClip "button0" in Symbol 82 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 51 MovieClip "button1" in Symbol 82 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 51 MovieClip "button2" in Symbol 82 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 59 MovieClip "scrollbar" in Symbol 82 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 82 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 51 MovieClip "button0" in Symbol 82 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 51 MovieClip "button1" in Symbol 82 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 59 MovieClip "scrollbar" in Symbol 82 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 82 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 51 MovieClip "button0" in Symbol 82 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 51 MovieClip "button1" in Symbol 82 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
buttonLabel = "Button Label";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Instance of Symbol 59 MovieClip "scrollbar" in Symbol 82 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
fieldName = "bodyText_txt";
}
Symbol 82 MovieClip Frame 21
play();
Symbol 82 MovieClip Frame 22
myButton.buttonText.text = "CLOSE";
stop();
Instance of Symbol 79 MovieClip "myButton" in Symbol 82 MovieClip Frame 22
//component parameters
onClipEvent (construct) {
buttonLabel = "CLOSE";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
on (release) {
trace("_root.inGame:" + _root.inGame);
if (_root.inGame) {
Shell.closePupWindow();
} else {
Shell.closeRules();
}
}
Symbol 82 MovieClip Frame 24
stop();
Symbol 82 MovieClip Frame 25
gotoAndPlay ("blank");
Symbol 82 MovieClip Frame 35
windowOpen = 0;
stop();
Symbol 381 MovieClip [__Packages.enumeratedType] Frame 0
class enumeratedType
{
function enumeratedType () {
var _local3 = 0;
while (_local3 < arguments.length) {
this[arguments[_local3]] = _local3;
nameArray.push(arguments[_local3]);
_local3++;
}
}
function getName(i) {
return(nameArray[i]);
}
var nameArray = [];
}
Symbol 382 MovieClip [__Packages.bdTimer] Frame 0
class bdTimer
{
var m_timer, m_pauseTimer, m_intervalId, m_callbackFunc, m_countDown, m_startTime, m_duration;
function bdTimer () {
m_timer = 0;
m_pauseTimer = false;
m_intervalId = null;
m_callbackFunc = null;
m_countDown = false;
m_startTime = 0;
m_duration = 0;
}
function bdStartTimer(startTime, callbackFunc, countDown, updateDuration) {
if (callbackFunc != null) {
m_callbackFunc = callbackFunc;
}
m_startTime = startTime;
m_timer = m_startTime;
if (countDown != null) {
m_countDown = countDown;
}
if (updateDuration == null) {
updateDuration = 1000;
}
m_duration = updateDuration;
if (m_intervalId != null) {
clearInterval(m_intervalId);
}
m_intervalId = setInterval(this, "bdUpdateTimer", updateDuration);
}
function bdStopTimer() {
clearInterval(m_intervalId);
}
function bdResetTimer() {
bdStopTimer();
bdStartTimer(m_startTime, m_callbackFunc, m_countDown, m_duration);
}
function bdGetTimer() {
return(m_timer);
}
function bdPauseTimer() {
m_pauseTimer = true;
}
function bdUnpauseTimer() {
m_pauseTimer = false;
}
function bdUpdateTimer() {
if (!m_pauseTimer) {
if (m_countDown) {
m_timer--;
if (m_timer <= 0) {
m_timer = 0;
bdStopTimer();
}
} else {
m_timer++;
}
}
if (m_callbackFunc != null) {
m_callbackFunc(bdGetTimer());
}
}
}
Symbol 85 MovieClip Frame 9
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
names.gotoAndStop(this._name);
if (_parent.skipIntro == true) {
if (_parent.skipped == false) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
stop();
} else {
stop();
}
}
Symbol 97 MovieClip Frame 39
if ((_parent.skipIntro == true) && (_parent.skipped == false)) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
}
stop();
Symbol 99 MovieClip Frame 2
names.gotoAndStop(this._name);
if (_parent.skipIntro == true) {
if (_parent.skipped == false) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
stop();
} else {
stop();
}
}
Symbol 99 MovieClip Frame 53
if ((_parent.skipIntro == true) && (_parent.skipped == false)) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
}
stop();
Symbol 101 MovieClip Frame 670
_parent.play();
Symbol 101 MovieClip Frame 758
stop();
Symbol 102 MovieClip Frame 15
stop();
Symbol 102 MovieClip Frame 16
_parent.bg.play();
Symbol 102 MovieClip Frame 24
stop();
_parent.play();
Symbol 106 Button
on (release) {
stopAllSounds();
stop();
_root.gotoAndPlay("videoDone");
}
Symbol 108 Button
on (release) {
stopAllSounds();
stop();
_root.gotoAndPlay("videoDone");
}
Symbol 109 MovieClip Frame 2
names.gotoAndStop(this._name);
if (_parent.skipIntro == true) {
if (_parent.skipped == false) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
stop();
} else {
stop();
}
}
Symbol 109 MovieClip Frame 167
if ((_parent.skipIntro == true) && (_parent.skipped == false)) {
_parent.gotoAndPlay("skip");
_parent.skipped = true;
}
stop();
Symbol 112 MovieClip Frame 122
stop();
Symbol 118 MovieClip Frame 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);
Stage.align = "T";
titleLineYPos = 190;
Stage.scaleMode = "noScale";
skipBtnPressed = false;
Symbol 118 MovieClip Frame 203
resizeBg();
Symbol 118 MovieClip Frame 252
stop();
Symbol 118 MovieClip Frame 262
trace("starting to play the intro out");
Symbol 118 MovieClip Frame 460
if (skipBtnPressed) {
one._visible = false;
two._visible = false;
three._visible = false;
four._visible = false;
five._visible = false;
six._visible = false;
seven._visible = false;
shot1._visible = false;
shot2._visible = false;
shot3._visible = false;
}
Symbol 118 MovieClip Frame 462
stop();
_root.gotoAndPlay("videoDone");
trace("_root.play()");
Symbol 124 MovieClip Frame 1
if (num.text == "0.0") {
num.text = Shell.gameSettings.gameID.gameVersion + "";
}
Symbol 141 Button
on (release) {
getURL ("http://www.smokinaces.net", "KewlboxWindow");
}
Symbol 146 Button
on (release) {
getURL ("http://www.smokinaces.net", "KewlboxWindow");
}
Symbol 147 MovieClip Frame 1
trace("ownItButton._currentframe:" + this._currentframe);
var theSelection = "pre";
var theDate = new Date();
var thisDate = theDate.getDate();
trace("thisDate:" + thisDate);
var thisMonth = theDate.getMonth();
trace("thisMonth:" + thisMonth);
var thisYear = theDate.getFullYear();
trace("thisYear:" + thisYear);
postSelection = "post";
if (thisYear > 2007) {
theSelection = postSelection;
} else if (thisMonth > 3) {
theSelection = postSelection;
} else if ((thisMonth >= 3) && (thisDate >= 17)) {
theSelection = postSelection;
}
trace("theSelection:" + theSelection);
trace("ownItButton._currentframe:" + this._currentframe);
gotoAndStop(theSelection);
stop();
Symbol 147 MovieClip Frame 6
trace("ownItButton._currentframe:" + this._currentframe);
stop();
Symbol 147 MovieClip Frame 11
trace("ownItButton._currentframe:" + this._currentframe);
stop();
Symbol 149 Button
on (press) {
getURL ("http://www.kewlbox.com", "KewlboxWindow");
}
Symbol 150 Button
on (press) {
getURL ("http://homevideo.universalstudios.com", "KewlboxWindow");
}
Symbol 155 Button
on (release) {
Shell.startGame();
}
Symbol 160 Button
on (release) {
Shell.showRules();
}
Symbol 165 Button
on (release) {
gotoAndPlay ("titleToCTA");
}
Symbol 167 Button
on (release) {
Shell.showPrivacy();
}
Symbol 169 Button
on (release) {
Shell.showLegal();
}
Symbol 171 Button
on (press) {
getURL ("http://www.smokinaces.net", "KewlboxWindow");
}
Symbol 175 MovieClip Frame 1
if (pSeenIntro == true) {
gotoAndStop ("loop");
}
Symbol 175 MovieClip Frame 45
pSeenIntro = true;
Symbol 175 MovieClip Frame 71
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 22
_level0.GAME.theGameState = _level0.GAME.gameState.startBDTimer;
gotoAndStop (1);
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 9
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 247 MovieClip Frame 11
stop();
Symbol 247 MovieClip Frame 16
stop();
Symbol 247 MovieClip Frame 21
stop();
Symbol 247 MovieClip Frame 26
stop();
Symbol 247 MovieClip Frame 31
stop();
Symbol 247 MovieClip Frame 36
stop();
Symbol 247 MovieClip Frame 41
stop();
Symbol 247 MovieClip Frame 46
stop();
Symbol 247 MovieClip Frame 51
stop();
Symbol 247 MovieClip Frame 56
stop();
Symbol 247 MovieClip Frame 61
stop();
Symbol 247 MovieClip Frame 66
stop();
Symbol 247 MovieClip Frame 71
stop();
Symbol 247 MovieClip Frame 76
stop();
Symbol 247 MovieClip Frame 81
stop();
Symbol 247 MovieClip Frame 86
stop();
Symbol 247 MovieClip Frame 91
stop();
Symbol 247 MovieClip Frame 96
stop();
Symbol 247 MovieClip Frame 101
stop();
Symbol 247 MovieClip Frame 106
stop();
Symbol 247 MovieClip Frame 112
stop();
Symbol 247 MovieClip Frame 117
stop();
Symbol 247 MovieClip Frame 122
stop();
Symbol 248 MovieClip Frame 1
card_num = Number(_name.substr(5));
var orig_y = _y;
var speed = 1;
spinOut = function () {
var _local3 = "easeInCubic";
card_back_num = 1;
this.swapDepths(_parent.getNextHighestDepth());
var _local5 = 100;
var _local4 = orig_y + 580;
this.tween("_y", _local4, speed, _local3);
this.colorTo(0, speed, _local3);
this.tween("_rotation", random(180) - 90, speed, _local3);
this.scaleTo(random(40) + 60, speed, _local3);
};
Symbol 248 MovieClip Frame 18
cardAces.gotoAndPlay(this._parent.pFace);
Symbol 248 MovieClip Frame 36
cardAces.gotoAndPlay(this._parent.pFace);
Symbol 248 MovieClip Frame 54
gotoAndPlay (2);
Symbol 249 MovieClip Frame 1
function initCard() {
if (pInit != true) {
pInit = true;
pFace = "blank";
pCardNumber = null;
pIntroDone = false;
pBeenShot = false;
pFallen = false;
this.useHandCursor = false;
trace(this._name + " INITIALIZED");
}
}
function resetCard() {
pBeenShot = false;
pIntroDone = false;
pFallen = false;
pFace = "blank";
this.showFace();
gameRoot.hideSprite(this._name);
this._alpha = 100;
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
trace(this._name + " RESET");
}
function onBackFrame() {
var _local4 = 7;
var _local3 = 10;
var _local2 = false;
trace((this._name + "._currentframe:") + this._currentframe);
if ((this._currentframe == _local4) || (this._currentframe == _local3)) {
_local2 = true;
}
return(_local2);
}
function showFace() {
gotoAndPlay(pFace);
trace((this._name + ".pFace:") + this.pFace);
}
function showBack() {
gotoAndPlay ("backOut");
}
function showIntro() {
gotoAndPlay ("backIntro");
}
function triggerNext() {
var _local1 = "card";
var _local3 = pCardNumber + 1;
var _local2 = _local1 + gameRoot.addZeroes(_local3, 2);
gameRoot[_local2].showIntro();
}
function checkSpinOut() {
if (this._y >= spinTarget) {
return(true);
}
return(false);
}
initCard();
stop();
Symbol 249 MovieClip Frame 5
if ((this.pCardNumber + 1) < gameRoot.gCardsThisLevel) {
trace((((("***** this.pCardNumber:" + this.pCardNumber) + " pFace:") + this.pFace) + " gameRoot.gCardsThisLevel:") + gameRoot.gCardsThisLevel);
this.triggerNext();
} else {
_level0.GAME.theGameState = _level0.GAME.gameState.preRoundPlay03;
}
pIntroDone = true;
var orig_y = _y;
var spinTarget = (orig_y + gameRoot.gStageHeight);
Symbol 249 MovieClip Frame 7
pIntroDone = true;
var orig_y = _y;
var spinTarget = (orig_y + gameRoot.gStageHeight);
stop();
Symbol 249 MovieClip Frame 10
stop();
Symbol 249 MovieClip Frame 13
stop();
Symbol 249 MovieClip Frame 16
stop();
Symbol 249 MovieClip Frame 19
stop();
Symbol 249 MovieClip Frame 22
stop();
Symbol 249 MovieClip Frame 25
stop();
Symbol 249 MovieClip Frame 28
stop();
Symbol 249 MovieClip Frame 31
stop();
Symbol 249 MovieClip Frame 34
stop();
Symbol 249 MovieClip Frame 37
stop();
Symbol 249 MovieClip Frame 40
stop();
Symbol 249 MovieClip Frame 43
stop();
Symbol 249 MovieClip Frame 46
stop();
Symbol 249 MovieClip Frame 49
stop();
Symbol 249 MovieClip Frame 52
stop();
Symbol 249 MovieClip Frame 55
stop();
Symbol 249 MovieClip Frame 58
stop();
Symbol 249 MovieClip Frame 61
stop();
Symbol 249 MovieClip Frame 64
stop();
Symbol 249 MovieClip Frame 67
stop();
Symbol 249 MovieClip Frame 70
stop();
Symbol 249 MovieClip Frame 73
stop();
Symbol 249 MovieClip Frame 74
function spinOut(speed) {
var _local3 = "easeInCubic";
this.swapDepths(_parent.getNextHighestDepth());
var _local5 = gameRoot.varyNum(speed, 0.1);
this.tween("_y", spinTarget, _local5, _local3);
var _local4 = gameRoot.varyNum(speed, 0.1);
_local4 = Math.min(_local5, _local4);
this.tween("_rotation", random(180) - 90, _local4, _local3);
var _local6 = gameRoot.varyNum(speed, 0.1);
_local6 = Math.min(_local5, _local6);
this.scaleTo(random(40) + 60, _local6, _local3);
this.pFallen = true;
}
var frameVary = (rollDice(10) + 1);
bdCardOut.gotoAndPlay(frameVary);
if (this.pFallen == false) {
spinOut(0.75);
}
Symbol 249 MovieClip Frame 81
gotoAndPlay ("cardOut");
Symbol 254 MovieClip Frame 180
stop();
Symbol 259 Button
on (release) {
theGameState = gameState.preRoundPlay;
}
Symbol 260 Button
on (release) {
theGameState = gameState.startGame;
gotoAndPlay ("game");
}
Symbol 270 MovieClip Frame 1
function initTimerBar() {
pOrigWidth = maskBox._width;
trace("mc_timerBar INITIALIZED");
}
function dispTimerBar(timerFactor) {
if (timerFactor == null) {
timerFactor = _level0.GAME.roundTimer.bdGetTimer() / _level0.GAME.gTimeThisLevel;
}
trace("timerFactor:" + timerFactor);
maskBox._width = pOrigWidth * timerFactor;
}
function resetTimerBar() {
maskBox._width = 0;
trace("mc_timerBar RESET");
}
function growTimerBar() {
gotoAndPlay ("buildTimer");
trace("mc_timerBar GROWING");
}
function animTimerBar(trueFalse) {
if (trueFalse) {
gotoAndPlay ("activeTimer");
trace("mc_timerBar ANIMATING");
} else {
gotoAndPlay ("readyTimer");
trace("mc_timerBar STOPPED ANIMATING");
}
}
initTimerBar();
gotoAndPlay ("readyTimer");
Symbol 270 MovieClip Frame 5
stop();
this.onEnterFrame = function () {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
dispTimerBar();
}
};
Symbol 270 MovieClip Frame 46
gotoAndPlay ("activeTimer");
Symbol 270 MovieClip Frame 47
maskBox._width = pOrigWidth;
trace("GROWING TIMER BAR | timerBar.maskBox._width:" + maskBox._width);
Symbol 270 MovieClip Frame 68
trace("TIMER BAR ALL GROWN UP");
gotoAndStop ("readyTimer");
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 10
stop();
Symbol 275 MovieClip Frame 1
function initScore() {
comma.gotoAndStop("off");
thousands.text = "";
hundreds.text = "0";
}
function setScore(theScore) {
if (theScore >= 1000) {
comma.gotoAndStop("on");
thousands.text = gameRoot.formatNumber(Math.floor(theScore / 1000));
}
var _local1 = theScore % 1000;
if (_local1 < 1) {
_local1 = "000";
} else if (_local1 < 10) {
_local1 = "00" + _local1;
} else if (_local1 < 100) {
_local1 = "0" + _local1;
}
hundreds.text = _local1;
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 10
stop();
Symbol 288 Button
on (release) {
trace("QUIT BUTTON PRESSED");
_root.theScore = gScore;
Shell.quitGame();
}
Symbol 292 MovieClip Frame 1
function showScore(theScore) {
setScoreText(theScore);
}
function fadeOut() {
gotoAndPlay ("fadeOut");
}
function setScoreText(theScore) {
scoreText.score.text = theScore;
}
Symbol 292 MovieClip Frame 5
stop();
Symbol 292 MovieClip Frame 27
stop();
Symbol 297 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
stop();
Symbol 297 MovieClip Frame 9
stop();
Symbol 302 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
function getMess() {
if (gameRoot[gameRoot.thePickedCard] == null) {
trace("gameRoot[thePickedCard]:" + gameRoot[gameRoot.thePickedCard]);
failText.gotoAndStop("long");
failText.failText.text = "TIME\u2019S UP!";
trace("failText:" + failText.failText.text);
} else {
trace("gameRoot[gameRoot.thePickedCard].pFace:" + gameRoot[gameRoot.thePickedCard].pFace);
nameText = gameRoot.faceToName(gameRoot[gameRoot.thePickedCard].pFace);
nameText = nameText.toUpperCase();
failText.gotoAndStop("wrong");
failText.failText.text = ("YOU SHOT\r" + nameText) + "!";
trace("failText:" + failText.failText.text);
}
}
stop();
Symbol 302 MovieClip Frame 2
getMess();
Symbol 302 MovieClip Frame 9
stop();
Symbol 317 Button
on (release) {
_root.theScore = gScore;
_root.gotoAndPlay("gameToCTA");
}
Symbol 318 Button
on (release) {
bdotCall("ping");
my_ns.pause();
gotoAndPlay ("tryAgain");
}
Symbol 319 MovieClip Frame 1
function initGame() {
initDifficultyMgr();
initStateMachine();
initColumnsAndRows();
initHeartSound();
gStageHeight = Stage.height;
gStageWidth = Stage.width;
trace("gStageHeight:" + gStageHeight);
trace("gStageWidth:" + gStageWidth);
gClipsSeen = [];
gVideoPlaylist = [];
trace("Game On!");
}
function initColumnsAndRows() {
columnLocs = [56, 129, 202, 275, 348, 421, 494];
rowLocs = [93, 197, 301];
gNumColumns = columnLocs.length;
gNumRows = rowLocs.length;
}
function getCardPattern(theRound) {
var _local2 = [];
if (theRound == 1) {
trace(("ROUND " + theRound) + " is SUPEREASY");
var _local3 = [[10, 11, 12]];
} else if (theRound < 4) {
trace(("ROUND " + theRound) + " is EASY");
var _local3 = gCardPatternMasterList[0];
} else if (theRound < 8) {
trace(("ROUND " + theRound) + " is MEDIUM");
var _local3 = gCardPatternMasterList[1];
} else if (theRound < 14) {
trace(("ROUND " + theRound) + " is HARD");
var _local3 = gCardPatternMasterList[2];
} else if (theRound >= 14) {
trace(("ROUND " + theRound) + " is SUPER");
var _local3 = gCardPatternMasterList[3];
}
_local2 = _local3[rollDice(_local3.length) - 1];
trace("getCardPattern.thePattern:" + _local2.toString());
return(_local2);
}
function getTimeLimit(theRound) {
var _local2 = 100;
if (theRound < 4) {
_local2 = 50;
} else if (theRound < 8) {
_local2 = 45;
} else if (theRound < 14) {
_local2 = 40;
} else if (theRound >= 14) {
_local2 = Math.max(gTimeThisLevel - 5, 10);
}
trace("getTimeLimit.theTime:" + _local2);
return(_local2);
}
function makeCardArray(numCards, possibleCards) {
var _local3 = ["target"];
if (possibleCards == null) {
possibleCards = ["Messner", "Sykes", "Carruthers", "Watters", "Ivy", "Acosta", "Darwin", "Jeeves", "Lester", "Soot", "Dupree", "Elmore", "Deeks", "Locke", "Reed", "KungFu", "Crew", "Lawyer", "Security", "Hitmen"];
}
if (numCards > (possibleCards.length + 1)) {
throw new Error("Not enough non target cards");
return(_local3);
}
while (_local3.length < numCards) {
var _local1 = rollDice(possibleCards.length) - 1;
var _local2 = possibleCards.splice(_local1, 1);
_local3.push(_local2[0]);
}
return(_local3);
}
function assignCardFaces(cardFaceArray) {
if (cardFaceArray.length != gCardsThisLevel) {
trace((("***ERROR*** (cardFaceArray.length != gCardsThisLevel) | cardFaceArray.length:" + cardFaceArray.length) + " gCardsThisLevel:") + gCardsThisLevel);
}
var nameBase = "card";
var i = 0;
while (i < gCardsThisLevel) {
var thisInst = (nameBase + addZeroes(i, 2));
eval (thisInst).pCardNumber = i;
eval (thisInst).pFace = cardFaceArray[i];
i++;
}
}
function getGridPoint(theCoordinates) {
var _local1 = new Object();
var _local3 = theCoordinates[0];
var _local2 = theCoordinates[1];
var _local4 = ((0.5 * gameRoot.gStageWidth) - 275) - 275;
var _local5 = ((0.5 * gameRoot.gStageHeight) - 206.5) - 206.5;
_local1.x = columnLocs[_local3 - 1] - 275;
trace(((("columnLocs[" + _local3) - 1) + "]:") + columnLocs[_local3 - 1]);
trace("hAdj:" + _local4);
trace("gridPoint.x:" + _local1.x);
_local1.y = rowLocs[_local2 - 1] - 206.5;
trace(((("columnLocs[" + _local2) - 1) + "]:") + columnLocs[_local2 - 1]);
trace("vAdj:" + _local5);
trace("gridPoint.y:" + _local1.y);
return(_local1);
}
function positionCards() {
var nameBase = "card";
var i = 0;
while (i < gCardsThisLevel) {
var thisInst = (nameBase + addZeroes(i, 2));
var gridPoint = getGridPoint(getGridCoordinates(gCardPattern[i]));
eval (thisInst)._x = gridPoint.x;
eval (thisInst)._y = gridPoint.y;
eval (thisInst)._alpha = 100;
i++;
}
}
function initHeartSound() {
}
function startHeartSound(theFreq) {
}
function playHeartSound() {
}
function killHeartSound() {
}
function checkMouse() {
var nameBase = "card";
var i = 0;
while (i < gCardsThisLevel) {
var thisInst = (nameBase + addZeroes(i, 2));
var hitCard = eval (thisInst).hitTest(_root._xmouse, _root._ymouse, true);
if (hitCard) {
if (eval (thisInst).onBackFrame() == true) {
eval (thisInst).showFace();
return(undefined);
}
}
i++;
}
}
function cardPicked(whatCard) {
trace("cardPicked:" + whatCard);
if (gameRoot[whatCard].pIntroDone == true) {
timerBar.animTimerBar(false);
killHeartSound();
theGameState = gameState.roundWrapUp01;
roundTimer.bdStopTimer();
gameRoot[whatCard].pBeenShot = true;
thePickedCard = whatCard;
holePoint = findMovieXYwithinOtherMovie(bulletHole, gameRoot[whatCard]);
gameRoot[whatCard].localToGlobal(holePoint);
gameRoot.bulletHole._x = clipPoint.x - 275;
gameRoot.bulletHole._y = clipPoint.y - 206.5;
gameRoot.bulletHole.swapDepths(gameRoot.getNextHighestDepth());
gameRoot.smoke._x = clipPoint.x - 275;
gameRoot.smoke._y = clipPoint.y - 206.5;
gameRoot.smoke.gotoAndPlay(1);
gameRoot.smoke.swapDepths(gameRoot.getNextHighestDepth());
dropCards(whatCard);
if (gameRoot[whatCard].pFace == "target") {
trace("PICKED A WINNER!");
gameRoot.sndGunShotGood.gotoAndPlay(2);
addScore(500);
gShotBuddy = true;
} else {
trace("YOU LOSE!");
gameRoot.sndGunShotBad.gotoAndPlay(2);
gShotBuddy = false;
}
}
}
function checkTime() {
trace("roundTimer.bdGetTimer():" + roundTimer.bdGetTimer());
if (roundTimer.bdGetTimer() <= 0) {
timesUp();
}
}
function timesUp() {
killHeartSound();
dropCards();
gShotBuddy = false;
timerBar.resetTimerBar();
theGameState = gameState.gameOverTime00;
}
function startFailScreen() {
gameRoot.bloodSplatter.gotoAndPlay(2);
gameRoot.failMess.gotoAndPlay(2);
trace("gScore:" + gScore);
failScore.score.text = formatNumber(gScore);
}
function getFailClip() {
if (gVideoPlaylist.length == 0) {
gVideoPlaylist = ["01CarruthersAcosta.flv", "02IvyConfrontsIsrael.flv", "03Limoclip.flv", "04MissingUniforms.flv", "05ReedTalksAboutIsrael.flv", "06SykesWatersGetReady.flv", "07SykesWaters.flv", "08Assignment.flv", "09BuddyIsrael.flv"];
}
thePick = rollDice(gVideoPlaylist.length) - 1;
var _local1 = gVideoPlaylist[thePick];
gVideoPlaylist.splice(thePick, 1);
var _local2 = "http://downloads.kewlbox.com/games_online/smokinaces/";
_local1 = _local2 + _local1;
return(_local1);
}
function faceToName(theFace) {
switch (theFace) {
case "Messner" :
var _local1 = "Richard Messner";
break;
case "Messner2" :
_local1 = "Richard Messner";
break;
case "Sykes" :
_local1 = "Georgia Sykes";
break;
case "Carruthers" :
_local1 = "Donald Carruthers";
break;
case "Watters" :
_local1 = "Sharice Watters";
break;
case "Ivy" :
_local1 = "Sir Ivy";
break;
case "Acosta" :
_local1 = "Pasquale Acosta";
break;
case "Darwin" :
_local1 = "Darwin Tremor";
break;
case "Jeeves" :
_local1 = "Jeeves Tremor";
break;
case "Lester" :
_local1 = "Lester Tremor";
break;
case "Soot" :
_local1 = "Lazlo Soot";
break;
case "Dupree" :
_local1 = "Jack Dupree";
break;
case "Elmore" :
_local1 = "Hollis Elmore";
break;
case "Reed" :
_local1 = "Rip Reed";
break;
case "Deeks" :
_local1 = "\u201CPistol\u201D Pete Deeks";
break;
case "Locke" :
_local1 = "Jack Locke";
break;
case "KungFu" :
_local1 = "Warren Turlock";
break;
case "Croop" :
_local1 = "Hugo Croop";
break;
case "Lawyer" :
_local1 = "Morris Mecklen";
break;
case "Security" :
_local1 = "Bill Baker";
}
return(_local1);
}
function dropCards(skipCard) {
var _local2 = "card";
i = 0;
while (i < gCardsThisLevel) {
var _local1 = _local2 + addZeroes(i, 2);
if (_local1 != skipCard) {
gameRoot[_local1].gotoAndPlay("cardOut");
}
i++;
}
}
function checkDropCards() {
var _local3 = "card";
var _local2 = true;
i = 0;
while (i < gCardsThisLevel) {
var _local1 = _local3 + addZeroes(i, 2);
if ((gameRoot[_local1].pBeenShot == false) && (gameRoot[_local1].checkSpinOut() == false)) {
_local2 = false;
return(_local2);
}
i++;
}
return(_local2);
}
function resetCards() {
var _local2 = "card";
i = 0;
while (i < gCardsThisLevel) {
var _local1 = _local2 + addZeroes(i, 2);
gameRoot[_local1].resetCard();
gameRoot.hideSprite(_local1);
i++;
}
trace("***** Cards Reset");
}
function resetSmokeHole() {
hideSprite("smoke");
hideSprite("bulletHole");
smoke._alpha = 100;
bulletHole._alpha = 100;
}
function resetDepths() {
var _local1 = -6000;
gameRoot.smoke.swapDepths(_local1);
_local1--;
gameRoot.bulletHole.swapDepths(_local1);
_local1--;
var _local3 = "card";
i = 0;
while (i < gCardsThisLevel) {
var _local2 = _local3 + addZeroes(i, 2);
gameRoot[_local2].swapDepths(_local1);
_local1--;
i++;
}
}
function fadeCardStuff(fadeAmt) {
if (fadeAmt == null) {
fadeAmt = 10;
}
gameRoot.smoke._alpha = gameRoot.smoke._alpha - fadeAmt;
gameRoot.bulletHole._alpha = gameRoot.bulletHole._alpha - fadeAmt;
gameRoot[thePickedCard]._alpha = gameRoot[thePickedCard]._alpha - fadeAmt;
if (((gameRoot[thePickedCard]._alpha <= 0) && (gameRoot.smoke._alpha <= 0)) && (gameRoot.bulletHole._alpha <= 0)) {
theAnswer = true;
} else {
theAnswer = false;
}
return(theAnswer);
}
function dispTimeBonus() {
if (gTimeBonus <= 0) {
theAnswer = true;
timerBar.dispTimerBar(0);
return(theAnswer);
}
theAnswer = false;
var _local1 = 25;
gunShot.gotoAndPlay(2);
timerBar.dispTimerBar(gTimeBonus / gTimeThisLevel);
scoreBubble.scoreText.score.text = scoreBubble.scoreText.score.text - (-_local1);
addScore(_local1);
gTimeBonus--;
return(theAnswer);
}
function showScoreBubble(thePickedCard) {
var _local1 = new Object();
_local1.x = gameRoot[thePickedCard]._x;
_local1.y = gameRoot[thePickedCard]._y;
gameRoot.scoreBubble._x = _local1.x;
gameRoot.scoreBubble._y = _local1.y;
gameRoot.scoreBubble.swapDepths(gameRoot.getNextHighestDepth());
scoreBubble.gotoAndPlay(1);
}
function resetScoreBubble() {
hideSprite("scoreBubble");
scoreBubble.gotoAndStop(1);
}
function testTrace(theString) {
trace(theString);
}
function rollDice(howManySided) {
var _local1 = Math.random();
_local1 = _local1 * (howManySided - 1);
_local1 = Math.round(_local1) + 1;
return(_local1);
}
function shuffleArray(inArray) {
var _local3 = [];
arraySize = inArray.length;
while (_local3.length < arraySize) {
var _local2 = rollDice(inArray.length) - 1;
var _local1 = [];
_local1 = inArray.splice(_local2, 1);
_local3.push(_local1[0]);
}
return(_local3);
}
function getOne(theValue, inArray) {
trace("getOne.theValue:" + theValue);
var _local2 = -1;
if (inArray.length == 0) {
return(_local2);
}
i = 0;
while (i < inArray.length) {
trace((("getOne.inArray[" + i) + "]:") + inArray[i]);
if (theValue == inArray[i]) {
_local2 = i;
return(i);
}
i++;
}
trace("getOne.theAnswer:" + _local2);
return(_local2);
}
function addZeroes(theValue, outLength) {
theString = String(theValue);
var _local3 = theString.length;
if (_local3 >= outLength) {
return(theString);
}
var _local4 = outLength - _local3;
var _local1 = 1;
while (_local1 < outLength) {
theString = "0" + theString;
_local1++;
}
return(theString);
}
function findMovieXYwithinOtherMovie(littleClip, bigClip) {
var _local3 = littleClip._width;
var _local4 = littleClip._height;
var _local5 = bigClip._width;
var _local6 = bigClip._height;
var _local8 = _local5 - _local3;
var _local10 = _local3 * 0.5;
var _local7 = _local6 - _local4;
var _local9 = _local4 * 0.5;
var _local2 = rollDice(_local8) + _local10;
var _local1 = rollDice(_local7) + _local9;
_local2 = _local2 - (_local5 * 0.5);
_local1 = _local1 - (_local6 * 0.5);
clipPoint = new Object();
clipPoint.x = _local2;
clipPoint.y = _local1;
return(clipPoint);
}
function getGridCoordinates(thePosition) {
var _local1 = gNumColumns;
var _local4 = gNumRows;
if (thePosition > (_local1 * _local4)) {
throw new Error("Position exceends number of grid positions.");
return(null);
}
var _local6 = ((thePosition - 1) % _local1) + 1;
var _local5 = Math.floor((thePosition - 1) / _local1) + 1;
var _local2 = [_local6, _local5];
return(_local2);
}
function varyNum(theNumber, varyPercent) {
var _local2 = theNumber - ((theNumber * varyPercent) * 0.5);
var _local1 = rollDice(theNumber * varyPercent);
_local2 = _local2 + _local1;
return(_local2);
}
function initGamePlay() {
initStateMachine();
initScore();
initDifficultyMgr();
}
function formatNumber(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);
}
function hideSprite(whichSprite) {
if (gameRoot[whichSprite]._y > 0) {
gameRoot[whichSprite]._y = gameRoot[whichSprite]._y - 1000;
}
}
function showSprite(whichSprite) {
if (gameRoot[whichSprite]._y < 0) {
gameRoot[whichSprite]._y = gameRoot[whichSprite]._y + 1000;
}
}
function showQuitMess(nextState) {
gDisableButtons = true;
trace(nextState);
quitMessMovie = attachMovie("quitMess", "quitMessMovie", this.getNextHighestDepth());
quitMessMovie._x = Stage.width / 2;
quitMessMovie._y = Stage.height / 2;
var _local3 = "Quit?";
var _local4 = "You will lose your current game if you start a new one.";
quitMessMovie.quitMessText01.text = _local3;
quitMessMovie.quitMessText02.text = _local4;
if (nextState == undefined) {
gQuitMessNextState = theGameState;
} else {
gQuitMessNextState = nextState;
}
theGameState = gameState.waitingGenMess;
}
function hideQuitMess() {
removeMovieClip(gameRoot.quitMessMovie);
gDisableButtons = false;
}
function quitMessNoPressed() {
theGameState = gameState.playGame;
quitMessMovie.gotoAndPlay("fadeOut");
}
function quitMessYesPressed() {
theGameState = gQuitMessNextState;
quitMessMovie.gotoAndPlay("fadeOut");
}
function initScore() {
gScore = 0;
setScore(gScore);
gRoundLevel = 1;
setRoundNum(gRoundLevel);
guiScoreNum.initScore();
}
function setScore(n) {
trace("********** SETTING SCORE to:" + n);
gScore = n;
trace((("\n \n gScore:" + gScore) + " | guiScoreNum.gameScore.text:") + guiScoreNum.gameScore.text);
guiScoreNum.setScore(gScore);
}
function addScore(n) {
setScore(gScore + n);
}
function removeScore(n) {
setScore(gScore - n);
}
function setRoundNum(RoundNumber) {
gRoundLevel = RoundNumber;
guiRoundNum.gameRound.text = gRoundLevel;
}
function getRoundNum() {
return(gRoundLevel);
}
function incRoundNum() {
gRoundLevel++;
guiRoundNum.gameRound.text = gRoundLevel;
}
function getRandom(maxNum) {
return(Math.ceil(Math.random() * maxNum));
}
function clearTimer() {
gLastTime = 0;
gTimerStartedAt = 0;
gameTimer.text = "0";
gTimerActive = false;
}
function bdStartTimer() {
gTimerStartedAt = int(Math.round(getTimer() / 1000));
gTimerActive = true;
}
function dispOneTimer(timeLeft) {
if (timeLeft == 0) {
gameTimer.text = "0";
theGameState = gameState.roundWrapUp;
} else {
setOnScreenTime(timeLeft);
}
}
function setOnScreenTime(time) {
gameTimer.text = String(time);
}
function checkDispTimer() {
if (gTimerActive == true) {
var _local1 = int(Math.round(getTimer() / 1000)) - gTimerStartedAt;
if (_local1 != gLastTime) {
gTimeLeftInMove = Math.max(0, gCurTimePerMove - _local1);
dispOneTimer(gTimeLeftInMove);
if (gTimeLeftInMove <= 5) {
}
}
gLastTime = _local1;
}
var _local2 = Math.max(0, gCurTimePerMove - gLastTime);
return(_local2);
}
function setStateDelay(delayTime) {
gDelayTime = Math.round(getTimer() / 1000) + delayTime;
}
function showGenMess(which, nextState) {
gDisableButtons = true;
trace(nextState);
genMessMovie = attachMovie("genMess", "genMessMovie", this.getNextHighestDepth());
genMessMovie._x = Stage.width / 2;
genMessMovie._y = Stage.height / 2;
var _local3 = "";
var _local2 = "";
switch (which) {
case 1 :
switch (Math.ceil(Math.random() * 3)) {
case 1 :
_local3 = "Great Shooting!";
_local2 = ("You made it to round " + getRoundNum()) + ". \n \n Keep going, Simon sure is a stinker for trying to use up all of my Secret Bubble Bath Formula.";
case 2 :
_local3 = "That was getting close!";
_local2 = ("You made it to round " + getRoundNum()) + ". \n \n You sure have some shooting skills.";
case 3 :
_local3 = "Great Shooting!";
_local2 = ("Way to keep your eye on the bubbles. \n \n You made it to round " + getRoundNum()) + ".";
}
break;
case 2 :
_local3 = "Oops!";
_local2 = "You didn't collect enough items in time. You received a Strike. \n \n Try again.";
break;
case 3 :
_local3 = "Congratulations!";
_local2 = "You've completed all 100 levels. The game will continue at level 1.";
break;
case 4 :
_local3 = "SORRY...";
_local2 = "You've depleted that feature. \n \n The numbers next to the buttons show how many times a feature can be used.";
break;
case 5 :
_local3 = "Game Over";
gKillSiren = eval("TRUE");
switch (Math.ceil(Math.random() * 3)) {
case 1 :
_local2 = "Oops and you were lookin' good until that last shot. \n \n You should try again to beat your score.";
case 2 :
_local2 = "Boy that was getting pretty crazy. \n \n I bet if you try again you could beat your score.";
case 3 :
_local2 = "Wow, that was a little out of control. \n \n Remember, the object is to stop the bubbles from reaching the bottom!";
}
break;
case 6 :
_local3 = "Collect the bubbles.";
_local2 = "Aim the bubble shooter with your mouse. Click your mouse to shoot so they create clusters of three or more similar colored bubbles. This will release the bubbles and earn you points. The game is over if you let the bubbles reach the red line.";
break;
case 7 :
_local3 = "You made it to round " + getRoundNum();
_local2 = " ";
}
genMessMovie.genMessText01.text = _local3;
genMessMovie.genMessText02.text = _local2;
if (nextState == undefined) {
gGenMessNextState = theGameState;
} else {
gGenMessNextState = nextState;
}
theGameState = gameState.waitingGenMess;
}
function hideGenMess() {
removeMovieClip(gameRoot.genMessMovie);
gDisableButtons = false;
}
function genMessEnterPressed() {
theGameState = gGenMessNextState;
genMessMovie.gotoAndPlay("fadeOut");
}
function setDifficultyRound(n) {
gCardPattern = getCardPattern(n);
gTimeThisLevel = getTimeLimit(n);
n = Math.min(gDiffCount - 1, n - 1);
gCardsThisLevel = gCardPattern.length;
gPossibleTargets = ["Messner", "Messner2", "Sykes", "Carruthers", "Watters", "Ivy", "Acosta", "Darwin", "Jeeves", "Lester", "Soot", "Dupree", "Elmore", "Deeks", "Locke", "Reed", "KungFu", "Croop", "Lawyer", "Security"];
trace("gPossibleTargets:" + gPossibleTargets);
trace(("Round:" + (n + 1)) + " Fight!");
}
function initDifficultyMgr() {
gTimePerLevelList = [60, 60, 30, 30, 30, 30, 10, 5];
initCardPatterns();
gDiffCount = gTimePerLevelList.length;
}
function initCardPatterns() {
var _local12 = [10, 11, 12];
var _local11 = [4, 11, 18];
var _local10 = [1, 7, 11, 14, 21];
var _local9 = [9, 11, 13];
var _local5 = [8, 10, 12, 14];
var _local2 = [8, 9, 10, 11, 12, 13, 14];
var _local34 = [4, 10, 11, 12, 18];
var _local32 = [4, 17, 19];
var _local30 = [4, 10, 12, 16, 20];
var _local13 = [1, 3, 10, 12, 19, 21];
var _local3 = [_local12, _local11, _local10, _local9, _local5, _local2, _local34, _local32, _local30, _local13];
var _local27 = [4, 9, 13, 15, 17, 19, 21];
var _local25 = [3, 4, 5, 8, 14, 17, 18, 19];
var _local22 = [3, 5, 9, 10, 11, 12, 13, 17, 19];
var _local20 = [1, 3, 4, 5, 7, 15, 17, 18, 19, 21];
var _local19 = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20];
var _local18 = [3, 4, 5, 9, 10, 12, 13, 17, 18, 19];
var _local16 = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21];
var _local15 = [1, 4, 7, 8, 10, 12, 14, 15, 16, 20, 21];
var _local14 = [3, 4, 5, 9, 11, 13, 15, 17, 18, 19, 21];
var _local28 = [1, 2, 3, 5, 6, 7, 8, 14, 16, 17, 18, 19, 20];
var _local17 = [_local27, _local25, _local22, _local20, _local19, _local18, _local16, _local15, _local14, _local28];
var _local6 = [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21];
var _local4 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21];
var _local35 = [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21];
var _local33 = [2, 4, 6, 8, 9, 10, 11, 12, 13, 14, 16, 18, 20];
var _local31 = [1, 3, 5, 7, 8, 9, 11, 13, 14, 15, 17, 19, 21];
var _local29 = [1, 3, 4, 5, 7, 8, 9, 11, 13, 14, 16, 17, 19, 20];
var _local26 = [1, 3, 5, 7, 8, 10, 11, 12, 14, 15, 17, 19, 21];
var _local23 = [2, 3, 4, 5, 6, 8, 10, 12, 14, 15, 16, 17, 19, 20, 21];
var _local21 = [2, 3, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 19, 20];
var _local7 = [1, 3, 5, 7, 8, 10, 12, 14, 15, 17, 19, 21];
var _local8 = [_local6, _local4, _local35, _local33, _local31, _local29, _local26, _local23, _local21, _local7];
var _local1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21];
var _local24 = [_local1, _local1];
gCardPatternMasterList = [_local3, _local17, _local8, _local24];
}
_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.gameRoot = this;
trace(gameRoot);
trace("gStageHeight:" + gStageHeight);
trace("gStageWidth:" + gStageWidth);
Symbol 319 MovieClip Frame 2
function initStateMachine() {
gDisableButtons = false;
gGenMessNextState = 0;
gDelayTime = 0;
gameState = new enumeratedType("rules", "startGame", "newRound", "newRound00", "preRoundPlay", "preRoundPlay02", "preRoundPlay03", "preRoundPlay04", "startBDTimer", "roundPlay", "roundWrapUp01", "roundWrapUp02", "roundWrapUp03", "roundResults00", "roundResults", "waitingGenMess", "gameOver", "gameOverTime00", "gameOverTime01", "gameOverTime", "gameOverWrong00", "gameOverWrong", "restartGame");
theGameState = gameState.startGame;
trace("theGameState: " + theGameState);
}
initGame();
gameRoot.onEnterFrame = function () {
var _local2 = Math.round(getTimer() / 1000);
if (gDelayTime > 0) {
if (_local2 < gDelayTime) {
return(undefined);
}
gDelayTime = 0;
}
if (theGameState == gameState.rules) {
} else if (theGameState == gameState.startGame) {
trace("----- theGameState:" + gameState.getName(theGameState));
initScore();
setRoundNum(1);
roundTimer = new bdTimer();
setDifficultyRound(getRoundNum());
theGameState = gameState.preRoundPlay;
} else if (theGameState == gameState.preRoundPlay) {
trace("----- theGameState:" + gameState.getName(theGameState));
var _local1 = shuffleArray(makeCardArray(gCardsThisLevel, gPossibleTargets));
_local1 = shuffleArray(_local1);
trace("cardFaceArray:" + _local1);
assignCardFaces(_local1);
trace("cardFaceArray:" + _local1);
positionCards();
card00.showIntro();
theGameState = gameState.preRoundPlay02;
} else if (theGameState == gameState.preRoundPlay02) {
} else if (theGameState == gameState.preRoundPlay03) {
sndGunLoad.gotoAndPlay(2);
theGameState = gameState.preRoundPlay04;
} else if (theGameState == gameState.preRoundPlay04) {
} else if (theGameState == gameState.startBDTimer) {
trace("----- theGameState:" + gameState.getName(theGameState));
thePickedCard = null;
startHeartSound();
roundTimer.bdStartTimer(gTimeThisLevel, gameRoot.checkTime, true, 100);
timerBar.animTimerBar(true);
gGameActive = true;
theGameState = gameState.roundPlay;
} else if (theGameState == gameState.roundPlay) {
checkMouse();
} else if (theGameState == gameState.roundWrapUp01) {
trace("----- theGameState:" + gameState.getName(theGameState));
trace("***** checkDropCards():" + checkDropCards());
if (checkDropCards() == true) {
theGameState = gameState.roundWrapUp02;
}
} else if (theGameState == gameState.roundWrapUp02) {
theGameState = gameState.roundWrapUp03;
} else if (theGameState == gameState.roundWrapUp03) {
trace("gameRoot[thePickedCard]._alpha:" + gameRoot[thePickedCard]._alpha);
setStateDelay(1);
if (gShotBuddy == true) {
gShotBuddy = null;
resetDepths();
showScoreBubble(thePickedCard);
theGameState = gameState.roundResults;
gotoAndPlay ("successMess");
} else {
gShotBuddy = null;
resetDepths();
theGameState = gameState.gameOverWrong00;
}
} else if (theGameState == gameState.roundResults00) {
} else if (theGameState == gameState.roundResults01) {
if (dispTimeBonus() == true) {
scoreBubble.swapDepths(-5000);
gotoAndPlay ("successMessOutro");
theGameState = gameState.roundResults;
}
} else if (theGameState == gameState.roundResults) {
} else if (theGameState == gameState.newRound00) {
trace("----- theGameState:" + gameState.getName(theGameState));
timerBar.growTimerBar();
theGameState = gameState.newRound;
} else if (theGameState == gameState.newRound) {
trace("----- theGameState:" + gameState.getName(theGameState));
gotoAndPlay ("game");
resetCards();
resetSmokeHole();
resetScoreBubble();
incRoundNum();
setDifficultyRound(getRoundNum());
theGameState = gameState.preRoundPlay;
} else if (theGameState == gameState.waitingGenMess) {
} else if (theGameState == gameState.gameOverTime00) {
trace("----- theGameState:" + gameState.getName(theGameState));
if (checkDropCards() == true) {
theGameState = gameState.gameOverTime01;
}
} else if (theGameState == gameState.gameOverTime01) {
trace("----- theGameState:" + gameState.getName(theGameState));
gShotBuddy = null;
resetDepths();
gotoAndPlay ("failureMess");
theGameState = gameState.gameOverTime;
} else if (theGameState == gameState.gameOverTime) {
} else if (theGameState == gameState.gameOverWrong00) {
trace("----- theGameState:" + gameState.getName(theGameState));
if (fadeCardStuff(20) == true) {
gotoAndPlay ("failureMess");
theGameState = gameState.gameOverWrong;
}
} else if (theGameState == gameState.gameOverWrong) {
} else if (theGameState == gameState.restartGame) {
trace("----- theGameState:" + gameState.getName(theGameState));
initScore();
setDifficultyRound(getRoundNum());
resetCards();
resetSmokeHole();
theGameState = gameState.preRoundPlay;
} else if (theGameState == gameState.gameOver) {
gGameActive = false;
clearTimer();
theGameState = gameState.gameOver1;
} else if (theGameState == gameState.gameOver1) {
setStateDelay(1);
theGameState = gameState.gameOver2;
} else if (theGameState == gameState.gameOver2) {
showGenMess(5, gameState.gameOver3);
} else if (theGameState == gameState.gameOver3) {
}
};
Symbol 319 MovieClip Frame 5
Instance of Symbol 249 MovieClip "card00" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card01" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card02" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card03" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card04" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card05" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card06" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card08" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card16" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card17" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card18" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card14" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card15" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card09" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card10" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card11" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card12" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card13" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card19" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card20" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Instance of Symbol 249 MovieClip "card07" in Symbol 319 MovieClip Frame 5
on (rollOut) {
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.hideSprite("bulletHole");
gameRoot[this._name].showBack();
}
}
on (press) {
trace((((("\n\n\nPRESSED:" + this._name) + " | ") + _level0.GAME.gameState.roundPlay) + " ") + _level0.GAME.theGameState);
if (_level0.GAME.theGameState == _level0.GAME.gameState.roundPlay) {
gameRoot.cardPicked(this._name);
}
}
Symbol 319 MovieClip Frame 14
stop();
Symbol 319 MovieClip Frame 25
trace("guiScoreNum.gameScore.text:" + guiScoreNum.gameScore.text);
stop();
Symbol 319 MovieClip Frame 30
trace("\n \n GREAT SUCCESS! TIME LEFT:" + roundTimer.bdGetTimer());
theGameState = gameState.roundResults00;
gTimeBonus = roundTimer.bdGetTimer();
showScoreBubble(thePickedCard);
Symbol 319 MovieClip Frame 34
stop();
theGameState = gameState.roundResults01;
Symbol 319 MovieClip Frame 35
scoreBubble.fadeOut();
Symbol 319 MovieClip Frame 44
trace("***** NEW ROUND");
theGameState = gameState.newRound00;
stop();
Symbol 319 MovieClip Frame 46
_root.musicInt = setInterval(_root, "musicDown", 50);
startFailScreen();
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("VIDEO:" + infoObject[_local2]);
if (infoObject[_local2] == "NetStream.Play.Stop") {
failMess.failText.gotoAndStop("again");
gotoAndPlay ("failDoneClip");
}
}
};
Symbol 319 MovieClip Frame 95
var theSelection = getFailClip();
trace("theSelection:" + theSelection);
my_video._visible = true;
_root.mainMusic.setVolume(100);
trace("PLAYING:" + theSelection);
my_ns.play(theSelection);
Symbol 319 MovieClip Frame 188
stop();
Symbol 319 MovieClip Frame 198
stop();
Symbol 319 MovieClip Frame 213
_root.mainMusic.start(0, 10);
theGameState = gameState.rules;
gotoAndPlay ("rules");
Instance of Symbol 51 MovieClip in Symbol 333 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
buttonLabel = "VISIT OUR SITE";
buttonWidth = -1;
colorNor = 12833498 /* 0xC3D2DA */;
colorRoll = 16763904 /* 0xFFCC00 */;
}
Symbol 334 MovieClip Frame 1
if (_global.Communication == null) {
_global.Communication = new Object();
}
if (_global.Shell == null) {
_global.Shell = new Object();
}
if (Shell.shellState == null) {
Shell.shellState = new Object();
}
Shell.shellState.ctaAd = this;
this._name = "ctaAd";
Communication.getCTAad = function () {
if (Shell.gameSettings.preferences.legalApproved) {
Shell.shellState.ctaAd.ad_lv = new LoadVars();
Shell.shellState.ctaAd.ad_lv.onData = function (rawData) {
var _local3 = "";
if (rawData != null) {
rawData = rawData.split(newline);
var _local1 = 0;
while (_local1 < rawData.length) {
if (rawData[_local1].indexOf("http://") > -1) {
_local3 = rawData[_local1];
break;
}
_local1++;
}
}
trace("adURL:" + _local3);
if (_local3 != "") {
Shell.shellState.ctaAd.gotoAndPlay("dynamicAd");
Shell.shellState.ctaAd.onRelease = function () {
Shell.openURL(Shell.gameSettings.urlLocations.ctaClickLocation);
};
Shell.shellState.ctaAd.ctaAd.loadMovie(_local3);
} else {
Shell.shellState.ctaAd.gotoAndPlay("standardAd");
Shell.shellState.ctaAd.onRelease = function () {
Shell.openURL("kewlbox");
};
}
};
var _local3 = Shell.gameSettings.urlLocations.ctaImage;
trace("getting cta at: " + _local3);
Shell.shellState.ctaAd.ad_lv.load("http://" + _local3, Shell.shellState.ctaAd.ad_lv);
}
};
Communication.getCTAad();
var today = new Date();
todayYear = today.getFullYear();
var taxDate = new Date(todayYear, 3, 15);
var taxDate2 = new Date(todayYear, 3, 16);
if (today.getTime() >= taxDate2.getTime()) {
var taxDate = new Date(todayYear + 1, 3, 15);
}
if ((today.getTime() >= taxDate.getTime()) && (today.getTime() <= taxDate2.getTime())) {
taxDays.text = "DUE TODAY";
} else {
tempD = taxDate2.getTime() - today.getTime();
tempSecs = Math.floor(tempD / 1000);
tempMins = Math.floor(tempSecs / 60);
tempHours = Math.floor(tempMins / 60);
tempDays = Math.floor(tempHours / 24);
taxDays.text = tempDays + " Days Left";
}
Symbol 334 MovieClip Frame 5
stop();
Symbol 334 MovieClip Frame 9
stop();
Symbol 341 Button
on (release) {
Shell.quitFromCTA();
}
Symbol 346 Button
on (press) {
getURL ("http://signup.universalstudios.com/form/392", "KewlboxWindow");
}
Symbol 351 Button
on (release) {
mainMusic.stop();
Shell.startGameAgain();
}
Symbol 356 Button
on (release) {
getURL ("http://www.smokinaces.net", "KewlboxWindow");
}
Symbol 361 Button
on (release) {
Communication.saveGlobalHighScore(theScore);
}
Symbol 362 Button
on (press) {
getURL ("http://www.nbcuniversalstore.com/detail.php?p=18394", "KewlboxWindow");
}
Symbol 363 Button
on (press) {
getURL ("http://www.smokinaces.net", "KewlboxWindow");
}
Symbol 373 Button
on (release) {
Sounds.buttonClick();
Communication.sendChallengeEmails([email1.text, email2.text, email3.text]);
}
Symbol 374 Button
on (release) {
Shell.openURL("kewlbox");
}