Frame 1
function init() {
_quality = "high";
mouseInitialised = "notyet";
this.onEnterFrame = function () {
update();
};
}
function update() {
var _local3 = this.getBytesLoaded();
var _local4 = this.getBytesTotal();
var _local2 = Math.round((_local3 / _local4) * 100);
percentage = _local2 + "%";
preLoaderCombo.percentageTotal.text = percentage;
preLoaderCombo.gameTitle._alpha = _local2;
preLoaderCombo.preloader.loadBar._xscale = _local2;
if (_local2 >= 100) {
onLoadComplete();
delete this.onEnterFrame;
}
}
function onLoadComplete() {
firstLoad = true;
mainMenuLoadedOnce = false;
preloaderPlayButton._alpha = 0;
preloaderPlayButton._visible = true;
preloaderPlayButton.alphaTo(100, 1, "easeInSine");
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
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__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_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) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "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) {
_global.$addTween(this, ["_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.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * 1.5707963267949 /* Math.PI/2 */)) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * 1.5707963267949 /* Math.PI/2 */)) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
stop();
init();
Instance of Symbol 11 MovieClip "preloaderPlayButton" in Frame 1
onClipEvent (load) {
this._visible = false;
this.onRelease = function () {
_root.gotoAndPlay("main");
};
}
Frame 2
Frame 3
function showCrosshairs() {
_root.aimer.gotoAndStop("crosshair");
Mouse.hide();
}
function hideCrosshairs() {
_root.aimer.gotoAndStop("cursor");
Mouse.show();
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
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__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_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) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "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) {
_global.$addTween(this, ["_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.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * 1.5707963267949 /* Math.PI/2 */)) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * 1.5707963267949 /* Math.PI/2 */)) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
fscommand ("allowscale", false);
stopChainsawIdle();
if (firstLoad == true) {
firstLoad = false;
preLoaderCombo.alphaTo(0, 2, "easeOutSine");
} else {
preLoaderCombo._visible = false;
}
if (mouseInitialised == "notyet") {
aimer.startDrag("true");
aimer.swapDepths(100000);
Mouse.hide();
hideCrosshairs();
mouseInitialised = "soup";
}
hideCrosshairs();
Key.removeListener(keyListener);
function loadCredits() {
mainMenu.credits.creditList._alpha = 0;
mainMenu.credits.creditList._visible = true;
mainMenu.credits._alpha = 0;
mainMenu.credits._visible = true;
mainMenu.credits.alphaTo(100, 2, "easeInSine");
mainMenu.credits.creditList.alphaTo(100, 3, "easeOutSine", 2, hideMenuAnims);
mainMenu.credits.creditList.ySlideTo(-1500, 45, "easeOutSine", 2);
mainMenu.credits.creditList.alphaTo(0, 3, "easeOutSine", 24);
mainMenu.credits.alphaTo(100, 0, "easeOutSine", 27, closeCredits);
}
function hideMenuAnims() {
mainMenu.mainButtons._visible = false;
mainMenu.bloodSplatter._visible = false;
}
function closeCredits() {
mainMenu.mainButtons._visible = true;
mainMenu.bloodSplatter._visible = true;
mainMenu.credits.alphaTo(0, 3, "easeOutSine", 0, function () {
this._visible = false;
});
mainMenu.credits.creditList.ySlideTo(890, 0, "easeOutSine", 0);
}
function optionsButtons(butName) {
_root.optionsMenu[butName].butLabel.text = butName;
switch (butName) {
case "QUALITY" :
_root.optionsMenu[butName].onRelease = function () {
_root.setCurrentQuality();
_root.toggleQuality();
};
_root.optionsMenu[butName].onRollOver = function () {
_root.setCurrentQuality();
_root.optionsMenu.submenu_Quality.alphaTo(100, 0.5, "easeOutSine");
};
_root.optionsMenu[butName].onRollOut = (_root.optionsMenu[butName].onDragOut = function () {
_root.optionsMenu.submenu_Quality.alphaTo(0, 0.5, "easeOutSine");
});
break;
case "MUSIC" :
_root.optionsMenu[butName].onRollOver = function () {
_root.optionsMenu.submenu_Music.alphaTo(100, 0.5, "easeOutSine");
};
_root.optionsMenu[butName].onRollOut = (_root.optionsMenu[butName].onDragOut = function () {
_root.optionsMenu.submenu_Music.alphaTo(0, 0.5, "easeOutSine");
});
_root.optionsMenu[butName].onRelease = function () {
_root.toggleMusic();
};
break;
case "MAIN MENU" :
_root.optionsMenu[butName].onRelease = function () {
cleanUpScreen();
loadOptions();
gotoAndStop ("main");
};
break;
case "RESUME" :
_root.optionsMenu[butName].onRelease = function () {
loadOptions();
};
break;
}
}
function loadOptions() {
if ((optionsLoaded == false) && (timeManagerOpen == false)) {
hideWholeMenu();
pauseGame();
hideCrosshairs();
bgMusic.volumeTo(10, 3, "easeOutSine");
_root.attachMovie("optionsMenu", "optionsMenu", 50000);
optionsMenu._alpha = 0;
optionsMenu.alphaTo(100, 1, "easeOutSine");
optionsLoaded = true;
} else if (timeManagerOpen == false) {
loadWholeMenuNow();
pauseGame();
showCrosshairs();
bgMusic.volumeTo(20, 3, "easeOutSine");
optionsMenu.alphaTo(0, 0.5, "easeOutSine", null, removeOptions);
optionsLoaded = false;
}
}
function removeOptions() {
showCrosshairs();
optionsMenu.removeMovieClip();
}
function setCurrentQuality() {
_root.optionsMenu.submenu_Quality.currentQuality.text = _root._quality;
}
function toggleQuality() {
switch (_root._quality) {
case "HIGH" :
_root._quality = "medium";
setCurrentQuality();
break;
case "MEDIUM" :
_root._quality = "low";
setCurrentQuality();
break;
case "LOW" :
_root._quality = "high";
setCurrentQuality();
break;
default :
setCurrentQuality();
}
}
function toggleMusic() {
if (musicIsPlaying) {
bgMusic.stop();
musicIsPlaying = false;
_root.optionsMenu.submenu_Music.gotoAndStop("off");
} else {
musicIsPlaying = true;
bgMusic = new Sound(musicAmbience);
bgMusic.attachSound("inGameMusic");
bgMusic.setVolume(0);
bgMusic.start(0, 999999);
bgMusic.volumeTo(20, 8);
_root.optionsMenu.submenu_Music.gotoAndStop("on");
}
}
timeManagerOpen = false;
optionsLoaded = false;
function unhideAllMenu() {
mainMenu.dawn._visible = true;
mainMenu.bgLawn._visible = true;
mainMenu.noise._visible = true;
}
function loadWholeMenuNow() {
_root.alphaTo(100, 1);
mainMenuLoadedOnce = true;
mainMenu.dawn._visible = true;
mainMenu.bgLawn._visible = true;
mainMenu.skipButton.alphaTo(0, 2, "easeOutSine", null, disableSkipButton);
mainMenu.conArtistsLogo.stop();
mainMenu.conArtistsLogo.alphaTo(0, 0, "easeOutSine");
mainMenu.dawn.alphaTo(100, 5, "easeOutSine");
mainMenu.logo.stopTween();
mainMenu.logo.alphaTo(0, 1, "easeOutSine");
mainMenu.gameTitle.blurTo(2, 2, 3, "easeOutSine");
mainMenu.gameTitle.alphaTo(100, 2, "easeOutSine", null, playSplatter);
mainMenu.mainMenuButtons.alphaTo(100, 2);
}
function enableSkipButton() {
unhideAllMenu();
mainMenu.skipButton._alpha = 0;
mainMenu.skipButton._visible = true;
mainMenu.skipButton.alphaTo(100, 1);
}
function disableSkipButton() {
mainMenu.skipButton._visible = false;
}
function hideWholeMenu() {
mainMenu.gameTitle.stopTween();
mainMenu.gameTitle.blurTo(2, 2, 3, "easeOutSine");
mainMenu.gameTitle.alphaTo(0, 2, "easeOutSine");
mainMenu.mainMenuButtons.alphaTo(0, 2);
}
function playSplatter() {
mainMenu.mainMenuButtons._visible = true;
mainMenu.bloodSplatter.play();
mainMenu.noise.play();
}
function mainButtons(butName) {
_root.mainMenu.mainButtons._visible = false;
_root.mainMenu.mainMenuButtons._alpha = 0;
_root.mainMenu.mainMenuButtons.alphaTo(100, 2, "easeOutSine", 18, playSplatter);
currentX = _root.mainMenu[butName]._x;
currentY = _root.mainMenu[butName]._y;
_root.mainMenu.mainMenuButtons[butName].butLabel.text = butName;
_root.mainMenu.mainMenuButtons[butName].blurTo(3, 2, 0.1, "easeOutSine");
_root.mainMenu.mainMenuButtons[butName].onRollOver = function () {
this.blurTo(1, 2, 0.8, "easeOutSine");
};
_root.mainMenu.mainMenuButtons[butName].onRollOut = (_root.mainMenu.mainMenuButtons[butName].onDragOut = function () {
this.blurTo(3.5, 2, 2, "easeOutSine", 0.2);
});
_root.mainMenu.mainMenuButtons[butName].onRelease = function () {
switch (butName) {
case "PLAY" :
menuMusic.stop();
_root.gotoAndStop("firstLevel");
break;
case "INSTRUCTIONS" :
showInstructions("mainMenu");
break;
case "OPTIONS" :
_root.loadOptions();
break;
case "CREDITS" :
_root.loadCredits();
break;
case "PLAY MORE GAMES" :
getURL ("http://www.armorgames.com", _blank);
break;
}
};
}
stop();
mainMenu.dawn._visible = false;
mainMenu.bgLawn._visible = false;
mainMenu.noise._visible = false;
menuMusic = new Sound(mainMenu);
menuMusic.attachSound("menuMusic");
menuMusic.setVolume(0);
menuMusic.start(0, 1);
menuMusic.volumeTo(80, 0.5, "easeOutSine", 13);
if (mainMenuLoadedOnce != true) {
_root.alphaTo(100, 1);
mainMenuLoadedOnce = true;
mainMenu.setVolume(0);
mainMenu._alpha = 0;
mainMenu.alphaTo(100, 0, "easeOutSine");
mainMenu.skipButton.alphaTo(0, 0, "easeOutSine", 15, enableSkipButton);
mainMenu.conArtistsLogo.alphaTo(0, 4, "easeOutSine", 13);
mainMenu.dawn.alphaTo(100, 30, "easeOutSine", 15);
mainMenu.gameTitle.blurTo(2, 2, 8, "easeOutSine", 15, disableSkipButton);
mainMenu.gameTitle.alphaTo(100, 2, "easeOutSine", 15, playSplatter);
mainMenu.skipButton.alphaTo(0, 2, "easeOutSine", 20);
} else {
_root.alphaTo(100, 1);
unhideAllMenu();
loadWholeMenuNow();
}
function showInstructions(loadedFrom) {
hideWholeMenu();
instructionsLoadedFrom = loadedFrom;
mainMenu.instructionsHolder.attachMovie("instructionsMenu", "instructionsMenuIn", 15000);
mainMenu.instructionsHolder._alpha = 0;
mainMenu.instructionsHolder.alphaTo(100, 1.2, "easeOutSine");
}
function loadFromInstructions() {
switch (instructionsLoadedFrom) {
case "mainMenu" :
loadWholeMenuNow();
return;
case "options" :
return;
}
}
Instance of Symbol 25 MovieClip "musicAmbience" in Frame 3
onClipEvent (load) {
_root.gameStopStart(this._name);
}
Frame 4
function loadJournal() {
journalHolder.attachMovie("journal", "journal", 33221);
journalHolder.journal.journalDayNumber.text = "DAY " + _root.levelUp;
journalHolder.journal.journalText.text = "" + _root.journalEntries[_root.levelUp];
journalHolder.journal.journalEntryHeading.text = "" + _root.journalEntryHeading[_root.levelUp];
blackOutScreen.alphaTo(0, 3, "easeOutSine");
}
function loadJournalFromLoadOut() {
loadedFromLoadOut = true;
timeManager.timeMenu_bgDay.journalHolder.attachMovie("journal", "journal", 33232);
timeManager.timeMenu_bgDay.journalHolder._alpha = 0;
timeManager.timeMenu_bgDay.journalHolder.journal.journalDayNumber.text = "DAY " + _root.levelUp;
timeManager.timeMenu_bgDay.journalHolder.journal.journalText.text = "" + _root.journalEntries[_root.levelUp];
timeManager.timeMenu_bgDay.journalHolder.journal.journalEntryHeading.text = "" + _root.journalEntryHeading[_root.levelUp];
timeManager.timeMenu_bgDay.journalHolder.journal.ySlideTo(420, 0, "easeOutSine", 0);
timeManager.timeMenu_bgDay.journalHolder.alphaTo(100, 0, "easeOutSine", 0.2);
timeManager.timeMenu_bgDay.journalHolder.journal.ySlideTo(10, 0.8, "easeOutSine", 0);
}
function closeJournal() {
if (loadedFromLoadOut == false) {
journalHolder.journal.ySlideTo(420, 1.2, "easeOutSine", 0, removeJournal);
gotoAndStop ("game");
} else {
timeManager.timeMenu_bgDay.journalHolder.journal.ySlideTo(420, 1.2, "easeOutSine", 0, removeJournalFromLoadOut);
}
}
function closeJournalFromLoadOut() {
}
function removeJournal() {
removeMovieClip(journalHolder.journal);
}
function removeJournalFromLoadOut() {
removeMovieClip(_root.timeManager.timeMenu_bgDay.journalHolder.journal);
}
levelUp = 1;
loadedFromLoadOut = false;
journalEntryHeading = new Array();
journalEntryHeading.push("", "THE LAST STAND", "IT WORKED", "JUST LIKE ON T.V", "COP KILLER", "DOGS", "THIS JUST IN", "FAT FARM", "OH GREAT", "FASTER?", "PRISON BROKED", "FEELING IT", "THEY'RE ONTO ME", "GOD DAMN ARMOR", "END OF TIME", "TV", "RUNNING LOW", "SOLDIER", "ESCAPE", "THE ARMY", "THE END");
journalEntries = new Array();
journalEntries.push("", "I FINISHED THE WALL TODAY, IT SHOULD HOLD THEM OFF FOR A WHILE. \r\rI HOPE.\r\rTOMORROW I BETTER LOOK FOR SURVIVORS AND SOMETHING BETTER TO PROTECT MYSELF WITH. \r\rI HAVE TO GET THROUGH THE NIGHT FIRST.", "WELL IT WORKED FAIRLY WELL, IT DIDN'T FALL DOWN ON IT'S OWN IS WHAT I MEAN.\r\rTHEY'RE STILL JUST AS SLOW AS THE OTHERS I'VE SEEN, DON'T SEEM TO MAKE THE JUMP TO GET OVER THE WALL.", "I'M SHOOTING THEM IN THE HEAD LIKE THE T.V SAID, SEEMS TO STOP THEM QUICK ENOUGH.\r\rTHEY DON'T HAVE AN EXPLAINATION FOR WHAT'S HAPPENING THOUGH", "KILLED A COP TODAY. NOT SURE HOW I FEEL ABOUT THAT, ALL'S FAIR I GUESS. HE DROPPED A REVOLVER THAT MIGHT COME IN HANDY THOUGH.\r\rI STILL NEED MORE HANDS AROUND HERE TO GET ANYTHING DONE. SHOULD LOOK FOR MORE SURVIVORS IN THE MORNING.", "WHAT EVER IT IS THAT'S CAUSING THIS, IT'S NOT RESTRICTED TO HUMANS. \r\rHUGE STINKING ROTTWIELERS SEEM TO BE AFFECTED TOO. MAN I HATE DOGS.", "PRETTY SURE I TOPPED THE LOCAL ROVING REPORTER.\r\rWONDER IF I'LL MAKE THE NEWS TONIGHT.", "THESE FAT BASTARDS ARE ALL OVER THE PLACE. THEY SEEM TO TAKE WAY MORE PUNISHMENT THAN THE OTHERS.\r\rNEED SOMETHING WITH A BIT MORE KICK TO FINISH THEM OFF.", "NOW THE FATTIES ARE RUNNING...GREAT.", "THERE'S SOMETHING GOING ON WITH THEM NOW, THEY'RE GETTING FASTER AND STRONGER.\r\rTHEY'RE SAYING THAT THEY SHOULD DIE OFF EVENTUALLY\r BUT IT JUST DOESN'T SEEM TO BE HAPPENING.", "A PRISON BUS FROM OVER AT EMERALD MUST HAVE BEEN CARRYING ONE OF THEM.\r KILLED A DOZEN OF THEM AT LEAST, BETTER THAN PRISON I GUESS", "TIRED. CAN'T WRITE. TAKING DOWN FAT ZOMBIE GUYS ALL DAY", "OH OH. HAD A VISIT FROM THE ZOMBIE POLICE TODAY. GUESS THEY HEARD ABOUT ME KILLING EVERYONE.", "AIM FOR THE TORSO THEY SAID, BUT NOOOOOO, NOW THE BASTARDS HAVE VESTS.\r\rDO YOU KNOW HOW HARD IT IS TO SHOOT OUT THE DAMNED LEGS.", "WELL THAT'S WHAT THE PREACHER IS SAYING. \r\r I FIND IT HARD TO BELIEVE THAT SOME DIETY IS DOING THIS, THERE HAS TO BE AN ANSWER TO IT.\r\r", "SO MUCH FOR CONTACT TO THE OUTSIDE. THE TV RECEPTION DISAPPEARED LAST NIGHT, GUESS THEY FINALLY GOT INTO THE STATION. \r\r LOOKS LIKE THIS MIGHT BE IT, SOON ANYWAY.", "WE'VE EXHAUSTED PRETTY MUCH ALL THE FOOD IN THE AREA. \r\r WHY DID I CHOOSE SOMEWHERE SO FAR FROM THE CITIES?! GUESS WE NEED TO MAKE THE DECISION TO MOVE OR NOT. IT'S JUST GETTING SO DANGEROUS.", "RAY OF HOPE TODAY. HAD A SOLDIER APPROACH THE BARRIER TONIGHT, ALBEIT A DEAD ONE. \r\r BUT! IF HE'S AROUND MAYBE THERE ARE OTHERS, ALIVE HOPEFULLY.", "WE NEED TO MOVE IN THE NEXT FEW DAYS. THERE'S JUST TOO MANY OF THEM, WE HAVE NO SUPPLIES LEFT. PROBLEM IS, WHERE DO WE GO?", "SEEMS THE MILITARY PRESENCE HERE ARE ALL DEAD. WE'VE STARTED MAKING PREPERATIONS TO GET OUT OF HERE.", "DELAYED ANOTHER DAY...MAN THIS IS GETTING DIRE");
loadJournal();
Frame 5
function gameStopStart(butName) {
_root[butName].onEnterFrame = function () {
_root.turretControl();
_root.collisionTest();
};
}
function enemyStopStart(butName) {
_root[butName].onEnterFrame = function () {
_root.enemyGenerator();
};
}
function pauseGame() {
if (gamePaused == true) {
gameStopStart("game");
enemyStopStart("makeEnemy");
fireButton("stageBG");
mainChar.onEnterFrame = moveCharacter;
gamePaused = false;
timeClock = setInterval(passingTime, 1000);
for (v in aliveZombies) {
aliveZombies[v].ref.play();
}
} else {
delete game.onEnterFrame;
delete mainChar.onEnterFrame;
delete makeEnemy.onEnterFrame;
delete stageBG.onPress;
delete stageBG.onRelease;
gamePaused = true;
clearInterval(timeClock);
mainChar.legs.gotoAndStop("idle");
for (v in aliveZombies) {
aliveZombies[v].ref.stop();
}
stopFire();
}
}
function cleanUpZombies() {
for (i in deadZombies) {
deadZombies[i].ref.removeMovieClip();
deadZombies.splice(i, 1);
deadZombieCount = 0;
}
for (o in enemyOnScreen) {
enemyOnScreen[o].ref.removeMovieClip();
enemyOnScreen.splice(o, 1);
}
for (p in aliveZombies) {
aliveZombies[p].ref.removeMovieClip();
aliveZombies.splice(p, 1);
}
}
function cleanUpScreen() {
_root.stopMainMusic();
for (p in enemyOnScreen) {
enemyOnScreen[p].ref.removeMovieClip();
enemyOnScreen.splice(p, 1);
}
for (i in deadZombies) {
deadZombies[i].ref.removeMovieClip();
deadZombies.splice(i, 1);
deadZombieCount = 0;
}
for (e in roundsOnScreen) {
roundsOnScreen[e].ref.removeMovieClip();
roundsOnScreen.splice(e, 1);
}
for (p in aliveZombies) {
aliveZombies[p].ref.removeMovieClip();
aliveZombies.splice(p, 1);
}
}
function startNextLevel() {
removeMovieClip(_root.timeManager);
_root.mainBlackOut._visible = true;
_root.mainBlackOut.alphaTo(100, 0);
_root.mainBlackOut.alphaTo(0, 2, "easeOutSine", 0.1, hideBlackOut);
timeManagerOpen = false;
currentLevel = "day_" + _root.levelUp;
zombiesKilled = 0;
zombiesCreated = 0;
bullet = 0;
x = 0;
resetSunRise();
fillWeaponMagazines();
pauseGame();
timeClock = setInterval(passingTime, 700);
}
function fireButton(butName) {
_root[butName].onPress = function () {
_root.fire();
};
_root[butName].onRelease = function () {
_root.stopFire();
};
}
function swapWeapon(weaponName) {
currentWeapon = weaponName;
mainGunRef.gotoAndStop(weaponName);
if (_root[currentWeapon].name == "chainsaw") {
chainsawSound = new Sound(stageBG);
chainsawSound.attachSound("sound_chainsawIdle");
chainsawSound.setVolume(100);
chainsawSound.start(0, 999);
} else {
chainsawSound.stop("sound_chainsawIdle");
}
}
function stopChainsawIdle() {
chainsawSound.stop("sound_chainsawIdle");
}
function fire() {
if (((ammoInMag > 0) && (reloading == false)) && (pumping == false)) {
if ((_root[currentWeapon].fireMode == "auto") && (firing == false)) {
firing = true;
attachRound();
automaticFire = setInterval(attachRound, _root[currentWeapon].weaponRPM);
if (_root[currentWeapon].name == "chainsaw") {
chainsawSound = new Sound(stageBG);
chainsawSound.attachSound("sound_chainsawWorking");
chainsawSound.setVolume(20);
chainsawSound.start(0, 999);
}
} else {
if ((_root[currentWeapon].fireMode == "thrown") && (reloading == false)) {
throwingAWeapon = true;
chargingThrow = setInterval(chargeThrow, 20);
} else {
firing = true;
attachRound();
}
if (_root[currentWeapon].pumpWeapon == true) {
pumpWeapon();
}
}
mainGunRef._rotation = currentAngle + _root[currentWeapon].recoil;
mainGunRef.muzzleFlash.play();
} else if (((reloading == false) && (ammoInMag <= 0)) && (!autoReloading)) {
reloadWeapon();
} else if ((((_root[currentWeapon].name == "shotgun") && (reloading)) && (!interruptingReload)) && (ammoInMag >= 1)) {
interruptingReload = true;
bringBackWeapon = setInterval(raiseWeapon, 800);
mainGunRef.gotoAndPlay("shogtun_bringUpWeapon");
}
}
function stopFire() {
if ((_root[currentWeapon].fireMode == "thrown") && (throwingAWeapon == true)) {
throwingAWeapon = false;
thrownWeapon();
}
firing = false;
mainGunRef.muzzleFlash.gotoAndStop("off");
if (_root[currentWeapon].name == "flameThrower") {
mainGunRef.muzzleFlash.gotoAndPlay("off");
}
clearInterval(automaticFire);
if (_root[currentWeapon].name == "chainsaw") {
chainsawSound.stop("sound_chainsawWorking");
chainsawSound = new Sound(stageBG);
chainsawSound.attachSound("sound_chainsawEnd");
chainsawSound.setVolume(60);
chainsawSound.start(0, 1);
}
}
function reloadWeapon() {
clearInterval(reloadinTime);
if (_root[currentWeapon].name == "shotgun") {
shellsToLoad = shotgun.magazineCapacity - ammoInMag;
totalReloadTime = (_root[currentWeapon].reloadTime * shellsToLoad) + 800;
reloading = true;
pumping = false;
reloadinTime = setInterval(reloadMagazine, totalReloadTime);
mainGunRef.gotoAndPlay(_root[currentWeapon].name + "_Reloading");
clearInterval(pumpTime);
} else {
clearInterval(pumpTime);
reloading = true;
playReloadSound();
mainGunRef.gotoAndPlay(_root[currentWeapon].name + "_Reloading");
reloadinTime = setInterval(reloadMagazine, _root[currentWeapon].reloadTime);
}
}
function reloadEmptyWeapon() {
if ((((_root[currentWeapon].reloadType == "auto") && (ammoInMag <= 0)) && (!autoReloading)) && (!reloading)) {
autoReloading = true;
reloadWeapon();
}
}
function playReloadSound() {
reloadingSound = new Sound(stageBG);
reloadingSound.attachSound(("sound_" + _root[currentWeapon].name) + "Reload");
reloadingSound.setVolume(100);
reloadingSound.start(0, 1);
}
function reloadMagazine() {
autoReloading = false;
reloading = false;
pumping = false;
ammoInMag = ammoInMag;
if (_root[currentWeapon].name != "shotgun") {
ammoInMag = _root[currentWeapon].magazineCapacity;
}
clearInterval(reloadinTime);
clearInterval(pumpTime);
}
function pumpWeapon() {
pumping = true;
reloading = false;
interruptingReload = false;
clearInterval(reloadinTime);
mainGunRef.gotoAndPlay(_root[currentWeapon].name + "_Pumping");
pumpTime = setInterval(pumpedWeapon, _root[currentWeapon].pumpTime);
}
function pumpedWeapon() {
pumping = false;
reloading = false;
clearInterval(pumpTime);
clearInterval(reloadinTime);
}
function raiseWeapon() {
reloading = false;
autoReloading = false;
pumping = false;
interruptingReload = false;
clearInterval(pumpTime);
clearInterval(reloadinTime);
clearInterval(bringBackWeapon);
}
function pumpWeaponSound() {
pumpSound = new Sound(stageBG);
pumpSound.attachSound(("sound_" + _root[currentWeapon].name) + "Pump");
pumpSound.setVolume(100);
pumpSound.start(0, 1);
}
function shellReloadSound() {
shellSound = new Sound(stageBG);
shellSound.attachSound(("sound_" + _root[currentWeapon].name) + "ShellReload");
shellSound.setVolume(100);
shellSound.start(0, 1);
}
function attachRound() {
bullet++;
ammoInMag--;
if (ammoInMag <= 0) {
stopFire();
}
firing = true;
firingSound = new Sound(stageBG);
firingSound.attachSound(("sound_" + _root[currentWeapon].name) + "Fire");
firingSound.setVolume(100);
firingSound.start(0, 1);
var _local3 = new Object();
_local3.x = mainGunRef.barrelEnd._x;
_local3.y = mainGunRef.barrelEnd._y;
mainGunRef.localToGlobal(_local3);
if (_root[currentWeapon].shotsPerRound > 1) {
bullet++;
shellCasing = random(2) + 1;
mainGunRef.ejectionPort.attachMovie("shellcasing_Shotgun" + shellCasing, "casing" + bullet, bullet + 98);
roundsToFire = _root[currentWeapon].shotsPerRound;
while (roundsToFire > -1) {
bullet++;
var round = _root.attachMovie("round", "round" + bullet, bullet + 350000);
if (_root[currentWeapon].showTracers == true) {
randomlyShowATracer = random(2) + 1;
if (randomlyShowATracer > 1) {
round.gotoAndPlay("on");
} else {
round.gotoAndStop("off");
}
} else {
round.gotoAndStop("off");
}
round._x = _local3.x - random(50);
round._y = _local3.y;
round.angle = currentAngle - random(_root[currentWeapon].accuracy);
round._rotation = round.angle;
round.onEnterFrame = function () {
this.x = Math.cos((this.angle * Math.PI) / 180) * _root[currentWeapon].roundSpeed;
this.y = Math.sin((this.angle * Math.PI) / 180) * _root[currentWeapon].roundSpeed;
this._x = this._x - this.x;
this._y = this._y - this.y;
};
if ((ammoInMag <= 0) && (_root[currentWeapon].reloadType == "auto")) {
if (reloading == false) {
reloadWeapon();
}
}
roundsOnScreen.push({ref:_root["round" + bullet], damage:_root[currentWeapon].damage, headShotDamage:_root[currentWeapon].headShotDamage});
roundsToFire--;
}
} else {
if (_root[currentWeapon].casingEject == true) {
shellCasing = random(3) + 1;
mainGunRef.ejectionPort.attachMovie((("shellcasing_" + _root[currentWeapon].weaponGroup) + "_") + shellCasing, "casing" + bullet, bullet + 98);
}
var round = _root.attachMovie("round", "round" + bullet, bullet + 350000);
if (_root[currentWeapon].showTracers == true) {
randomlyShowATracer = random(2) + 1;
if (randomlyShowATracer > 1) {
round.gotoAndPlay("on");
} else {
round.gotoAndStop("off");
}
} else {
round.gotoAndStop("off");
}
round._x = _local3.x;
round._y = _local3.y;
round.angle = currentAngle - random(_root[currentWeapon].accuracy);
round._rotation = round.angle;
round.onEnterFrame = function () {
var _local4 = Math.cos((round.angle * Math.PI) / 180) * _root[currentWeapon].roundSpeed;
var _local3 = Math.sin((round.angle * Math.PI) / 180) * _root[currentWeapon].roundSpeed;
this._x = this._x - _local4;
this._y = this._y - _local3;
};
if ((ammoInMag <= 0) && (_root[currentWeapon].reloadType == "auto")) {
if (reloading == false) {
reloadWeapon();
}
}
roundsOnScreen.push({ref:_root["round" + bullet], penetrateCount:0, damage:_root[currentWeapon].damage, headShotDamage:_root[currentWeapon].headShotDamage});
}
}
function sortZombieDepths() {
var _local2 = new Array();
for (var _local1 in enemyOnScreen) {
if (enemyOnScreen[_local1].ref != null) {
enemyOnScreen[_local1].ref.depth = enemyOnScreen[_local1].ref._y * 1000;
_local2.push(enemyOnScreen[_local1]);
}
}
_local2.sortOn("depth", Array.NUMERIC);
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].ref.swapDepths(_local1 * 1000);
_local1++;
}
}
function sortDeadZombies() {
var _local2 = new Array();
for (var _local1 in deadZombies) {
if (deadZombies[_local1].ref != null) {
deadZombies[_local1].ref.depth = deadZombies[_local1].ref._y * 100;
_local2.push(deadZombies[_local1]);
}
}
_local2.sortOn("depth", Array.NUMERIC);
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].ref.swapDepths(_local1 * 100);
_local1++;
}
}
function collisionTest() {
sortZombieDepths();
reloadEmptyWeapon();
if (zombiesKilled >= _root[currentLevel].zombiePool) {
loadTimeManager();
}
if (currentLevel == "day_20") {
if ((zombiesKilled >= 70) && (endGameStarted == false)) {
endGameStarted = true;
endGame();
}
}
ammoCountHud.debug_ammoCount.text = ammoInMag;
dayNumber.text = "NIGHT " + currentLevel;
deathToll.text = zombiesKilled;
wallHealthIndicator.wallhealth.text = Math.round(wall.health / 100);
zombieProximityCheck();
zombieProximitySort();
for (i in roundsOnScreen) {
if (roundsOnScreen[i].ref._x < -150) {
roundsOnScreen[i].ref.removeMovieClip();
roundsOnScreen.splice(i, 1);
}
if (_root[currentWeapon].rangeType == "melee") {
var _local2 = new Object();
_local2.x = mainGunRef.barrelEnd._x;
_local2.y = mainGunRef.barrelEnd._y;
mainGunRef.localToGlobal(_local2);
if (roundsOnScreen[i].ref._x <= (_local2.x - _root[currentWeapon].range)) {
roundsOnScreen[i].ref.removeMovieClip();
roundsOnScreen.splice(i, 1);
}
}
}
for (j in aliveZombies) {
enemyOnScreen[j].ref.zombieHealth.text = enemyOnScreen[j].health;
enemyOnScreen[j].ref.zombieDead.text = enemyOnScreen[j].dead;
if (aliveZombies[j].dead == false) {
if (((aliveZombies[j].ref._x > (520 + ((aliveZombies[j].ref._y * 20) / 100))) && ((!aliveZombies[j].idle) == true)) && (aliveZombies[j].dead == false)) {
aliveZombies[j].ref.gotoAndPlay("idlestop1");
aliveZombies[j].idle = true;
} else if (((aliveZombies[j].idle == true) && (!wall.destroyed)) && (aliveZombies[j].dead == false)) {
aliveZombies[j].ref.gotoAndPlay("attackWall" + random(50));
wall.health = wall.health - aliveZombies[j].damage;
checkWallStatus();
if (wall.health <= -1) {
wall.destroyed = true;
}
} else if (((aliveZombies[j].idle == false) && (aliveZombies[j].dead == false)) && (aliveZombies[j].beingExploded == false)) {
aliveZombies[j].ref._x = aliveZombies[j].ref._x + aliveZombies[j].speed;
} else if ((wall.destroyed && (aliveZombies[j].idle == true)) && (aliveZombies[j].dead == false)) {
wall.health = 0;
if ((aliveZombies[j].animating == false) && (aliveZombies[j].type != "zombieDog")) {
aliveZombies[j].ref.gotoAndPlay(random(10) + 25);
aliveZombies[j].animating = true;
} else if ((aliveZombies[j].type == "zombieDog") && (aliveZombies[j].animating == false)) {
aliveZombies[j].ref.gotoAndPlay("walk1");
aliveZombies[j].animating = true;
}
if ((aliveZombies[j].ref._x <= (_root.mainChar._x + 39)) && (!aliveZombies[j].eating)) {
aliveZombies[j].ref._xscale = 100;
aliveZombies[j].ref._x = aliveZombies[j].ref._x + 1;
}
if ((aliveZombies[j].ref._x >= (_root.mainChar._x + 40)) && (!aliveZombies[j].eating)) {
aliveZombies[j].ref._xscale = -100;
aliveZombies[j].ref._x = aliveZombies[j].ref._x - 1;
}
if ((aliveZombies[j].ref._y <= (_root.mainChar._y + 40)) && (!aliveZombies[j].eating)) {
aliveZombies[j].ref._y = aliveZombies[j].ref._y + 1;
}
if ((aliveZombies[j].ref._y >= (_root.mainChar._y + 40)) && (!aliveZombies[j].eating)) {
aliveZombies[j].ref._y = aliveZombies[j].ref._y - 1;
}
if (aliveZombies[j].ref.reach.hitTest(_root.mainChar._x + 70, _root.mainChar._y + 10, true)) {
if (hero.isAlive) {
aliveZombies[j].eating = true;
_root.mainChar.gotoAndPlay("dead");
aliveZombies[j].ref.gotoAndPlay("lunge");
_root.attachMovie("gameOver", "gameOver", 50000);
if (levelUp == 1) {
gameOver.gameOverDays.gameOverDaysText.text = ("AFTER SURVIVING " + levelUp) + " DAY";
} else {
gameOver.gameOverDays.gameOverDaysText.text = ("AFTER SURVIVING " + levelUp) + " DAYS";
}
gameOver._alpha = 0;
gameOver.alphaTo(100, 8, "easeOutSine");
hideCrosshairs();
hero.isAlive = false;
delete mainChar.onEnterFrame;
delete stageBG.onPress;
delete stageBG.onRelease;
} else if (!hero.isAlive) {
aliveZombies[j].eating = true;
aliveZombies[j].ref.gotoAndPlay("bendDown");
}
}
}
}
for (k in roundsOnScreen) {
randomBloodPack = random(3) + 1;
randomBloodAnim = random(fx_totalBloodAnims) + 1;
randomBloodAnimHead = random(fx_totalBloodAnimsHead) + 1;
randomBloodAnimChainsaw = random(fx_totalBloodAnimsChainsaw) + 1;
for (v in aliveZombies) {
if (aliveZombies[v].ref.head.hitTest(roundsOnScreen[k].ref.collision) && (aliveZombies[v].dead == false)) {
hitHelmet = random(5);
if ((hitHelmet <= 2) && (aliveZombies[v].type == "zombieSoldier")) {
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("zombie_hitBody2");
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
aliveZombies[v].ref["thudPackHead" + randomBloodPack].gotoAndPlay("base1");
roundsOnScreen[k].ref.removeMovieClip();
roundsOnScreen.splice(k, 1);
} else {
aliveZombies[v].health = aliveZombies[v].health - (roundsOnScreen[k].headShotDamage + random(3));
switch (_root[currentWeapon].name) {
case "chainsaw" :
aliveZombies[v].ref["bloodPackHead" + randomBloodPack].gotoAndPlay("chainsaw" + randomBloodAnimChainsaw);
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("sound_hitChainsaw" + (random(2) + 1));
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
break;
case "flameThrower" :
aliveZombies[v].ref.flamePackHead.play();
break;
default :
aliveZombies[v].ref["bloodPackHead" + randomBloodPack].gotoAndPlay("head" + randomBloodAnimHead);
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("sound_hitHead1");
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
}
aliveZombies[v].ref._x = aliveZombies[v].ref._x - 1;
aliveZombies[v].ref.prevFrame;
checkPenetration();
if ((aliveZombies[v].health <= 0) && (aliveZombies[v].beingExploded == false)) {
deathSound = new Sound(stageBG);
if (aliveZombies[v].type == "zombieDog") {
deathSound.attachSound("sound_dogDeath_" + (random(5) + 1));
} else {
deathSound.attachSound("sound_zombieDeath_" + (random(11) + 1));
}
deathSound.setVolume(100);
deathSound.start(0, 1);
deadZombies.push({ref:aliveZombies[v].ref});
randomDeath = random(3) + 1;
if (aliveZombies[v].ref._x > 450) {
aliveZombies[v].ref.gotoAndPlay("fallBackwards" + randomDeath);
zombiesKilled++;
deadZombieCount++;
aliveZombies[v].dead = true;
aliveZombies.splice(v, 1);
} else {
aliveZombies[v].ref.gotoAndPlay("fallHead" + randomDeath);
zombiesKilled++;
deadZombieCount++;
aliveZombies[v].dead = true;
aliveZombies.splice(v, 1);
sunRiseCheck();
}
}
}
}
if (aliveZombies[v].ref.torso.hitTest(roundsOnScreen[k].ref.collision) && (aliveZombies[j].dead == false)) {
if ((aliveZombies[v].type == "zombieSoldier") || (aliveZombies[v].type == "zombieSWAT")) {
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("zombie_hitBody2");
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
aliveZombies[v].ref["thudPackTorso" + randomBloodPack].gotoAndPlay("base1");
roundsOnScreen[k].ref.removeMovieClip();
roundsOnScreen.splice(k, 1);
} else {
aliveZombies[v].health = aliveZombies[v].health - (roundsOnScreen[k].damage + random(2));
switch (_root[currentWeapon].name) {
case "chainsaw" :
aliveZombies[v].ref["bloodPackTorso" + randomBloodPack].gotoAndPlay("chainsaw" + randomBloodAnimChainsaw);
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("sound_hitChainsaw" + (random(2) + 1));
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
break;
case "flameThrower" :
aliveZombies[v].ref.flamePackTorso.play();
break;
default :
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("sound_hitBody" + (random(2) + 1));
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
aliveZombies[v].ref["bloodPackTorso" + randomBloodPack].gotoAndPlay("base" + randomBloodAnim);
}
checkPenetration();
aliveZombies[v].ref._x = aliveZombies[v].ref._x - _root[currentWeapon].knockBack;
aliveZombies[v].ref.prevFrame;
if ((aliveZombies[v].health <= 0) && (aliveZombies[v].beingExploded == false)) {
deathSound = new Sound(stageBG);
if (aliveZombies[v].type == "zombieDog") {
deathSound.attachSound("sound_dogDeath_" + (random(5) + 1));
} else {
deathSound.attachSound("sound_zombieDeath_" + (random(11) + 1));
}
deathSound.setVolume(100);
deathSound.start(0, 1);
deadZombies.push({ref:enemyOnScreen[j].ref});
randomDeath = random(3) + 1;
aliveZombies[v].ref.gotoAndPlay("fallBackwards" + randomDeath);
zombiesKilled++;
deadZombieCount++;
aliveZombies[v].dead = true;
aliveZombies.splice(v, 1);
sunRiseCheck();
}
}
}
if (aliveZombies[v].ref.legs.hitTest(roundsOnScreen[k].ref.collision) && (aliveZombies[j].dead == false)) {
aliveZombies[v].health = aliveZombies[v].health - (roundsOnScreen[k].damage + random(1));
switch (_root[currentWeapon].name) {
case "chainsaw" :
aliveZombies[v].ref["bloodPackTorso" + randomBloodPack].gotoAndPlay("chainsaw" + randomBloodAnimChainsaw);
hitBodySound = new Sound(stageBG);
hitBodySound.attachSound("sound_hitChainsaw" + (random(2) + 1));
hitBodySound.setVolume(100);
hitBodySound.start(0, 1);
break;
case "flameThrower" :
aliveZombies[v].ref.flamePackLegs.play();
break;
default :
aliveZombies[v].ref["bloodPackLegs" + randomBloodPack].play();
hitLegSound = new Sound(stageBG);
hitLegSound.attachSound("sound_hitBody1");
hitLegSound.setVolume(100);
hitLegSound.start(0, 1);
}
checkPenetration();
aliveZombies[v].ref._x = aliveZombies[v].ref._x - 2;
aliveZombies[v].ref.prevFrame;
if ((aliveZombies[v].health <= 0) && (aliveZombies[v].beingExploded == false)) {
deathSound = new Sound(stageBG);
if (aliveZombies[v].type == "zombieDog") {
deathSound.attachSound("sound_dogDeath_" + (random(5) + 1));
} else {
deathSound.attachSound("sound_zombieDeath_" + (random(11) + 1));
}
deathSound.setVolume(100);
deathSound.start(0, 1);
randomDeath = random(3) + 1;
if (aliveZombies[v].ref._x > 450) {
aliveZombies[v].ref.gotoAndPlay("fallBackwards" + randomDeath);
zombiesKilled++;
deadZombieCount++;
aliveZombies[v].dead = true;
aliveZombies.splice(v, 1);
} else {
aliveZombies[v].ref.gotoAndPlay("fallForward" + randomDeath);
zombiesKilled++;
deadZombieCount++;
aliveZombies[v].dead = true;
aliveZombies.splice(v, 1);
sunRiseCheck();
}
}
}
}
}
}
}
function ceaseFire() {
firing = false;
clearInterval(weaponDelay);
mainGunRef.muzzleFlash.gotoAndStop(1);
}
function turretControl() {
var _local2 = new Object();
_local2.x = mainGunRef._x;
_local2.y = mainGunRef._y;
mainGunRef._parent.localToGlobal(_local2);
var _local4 = _local2.x - _root._xmouse;
var _local3 = _local2.y - _root._ymouse;
var _local5 = Math.atan2(_local3, _local4) * 57.2957795130823;
currentAngle = _local5;
if (currentAngle > 15) {
currentAngle = 15;
}
if (currentAngle < -10) {
currentAngle = -10;
}
mainGunRef._rotation = currentAngle;
}
stop();
_quality = "medium";
showCrosshairs();
_root.attachMovie("blackOut", "mainBlackOut", 1324);
_root.mainBlackOut.alphaTo(0, 1.5, "easeOutSine", 0.5, hideBlackOut);
_root.mainBlackOut.depth = 554000 /* 0x087410 */;
bullet = 0;
bulletLevel = 1;
firstRound = true;
reloading = false;
autoReloading = true;
pumping = false;
firing = false;
interruptingReload = false;
wall_health = 999;
currentLevel = "day_1";
levelUp = 1;
zombiesKilled = 0;
chainsawSoundPlaying = false;
optionsLoaded = false;
zombiesAnimating = false;
gamePaused = false;
endGameStarted = false;
zombieLimit = 9;
liveZombieCount = 0;
delay = 6;
roundsOnScreen = new Array();
enemyOnScreen = new Array();
deadZombies = new Array();
aliveZombies = new Array();
allWeapons = new Array();
x = 1;
zombiesCreated = 0;
var bodysOnScreenTime = 50;
mainGunRef = mainChar.mainGun;
function removeThisZombie(zombieRef) {
if (deadZombieCount >= deadZombieCountMax) {
_root[zombieRef].alphaTo(0, 0.15, "linear", 0, function () {
removeMovieClip(_root[zombieRef]);
});
deadZombieCount--;
}
}
deadZombieCount = 0;
deadZombieCountMax = 35;
removeZombieDelay = 30000;
function zombieProximityCheck() {
var _local2 = {x:_root.mainChar.mainGun.barrelEnd._x, y:_root.mainChar.mainGun.barrelEnd._y};
_root.mainChar.mainGun.barrelEnd.localToGlobal(_local2);
for (v in aliveZombies) {
_root.aliveZombies[v].targetX = _root.aliveZombies[v].ref._x;
_root.aliveZombies[v].targetY = _root.aliveZombies[v].ref._y - 45;
_root.aliveZombies[v].proximity = Math.round(Math.sqrt(((_local2.x - _root.aliveZombies[v].targetX) * (_local2.x - _root.aliveZombies[v].targetX)) + ((_local2.y - _root.aliveZombies[v].targetY) * (_local2.y - _root.aliveZombies[v].targetY))));
aliveZombies[v].ref.zombieProximity.text = v;
}
}
function zombieProximitySort() {
_root.aliveZombies.sortOn("proximity", Array.DESCENDING, Array.NUMERIC);
}
function hideBlackOut() {
_root.mainBlackOut._visible = false;
}
function endGame() {
pauseGame();
hideCrosshairs();
_root.attachMovie("endingAnimation", "endingAnim", 999002);
endingAnim._y = 11;
}
function loadHints() {
if (hints[_root.levelUp] == "") {
timeManager.theClipBoard.hintCard._alpha = 0;
} else {
timeManager.theClipBoard.hintCard._alpha = 100;
timeManager.theClipBoard.hintCard.hintText.text = hints[_root.levelUp];
}
}
hints = new Array();
hints.push("", "MORE SURVIVORS MEANS MORE CAN BE DONE", "TIME SEARCHING FOR WEAPONS ADDS UP", "SOME ZOMBIES CARRY WEAPONS YOU CAN USE", "", "SPACEBAR SWITCHES WEAPONS", "HIT 'R' TO RELOAD YOUR WEAPON", "", "ANY SEARCHING CAN BE DANGEROUS", "BETTER WEAPONS TAKE TIME TO FIND", "", "REMEMBER TO WRITE TOMMOROW'S NOTE", "DON'T WASTE TIME OVER REPAIRING", "ESCAPE OPENS THE OPTIONS", "", "CALL MUM IF I LIVE", "BROKEN WALL PLUS ZOMBIES EQUALS DEATH", "", "OH I DON'T KNOW", "", "", "DON'T DIE", "", "KILL ZOMBIES...AND STUFF", "", "", "I THINK I CAN. I THINK I CAN.", "", "", "ZOMBIE ARMS AREN'T FOOD");
function sunRiseCheck() {
remainderOfZombies = _root[currentLevel].zombiePool - zombiesKilled;
thirdOfZombies = _root[currentLevel].zombiePool / 3.1;
if ((remainderOfZombies < thirdOfZombies) && (sunriseStarted == false)) {
_root.startSunRise();
bgImage.dawn._visible = true;
}
}
function startSunRise() {
if (sunriseStarted == false) {
sunriseStarted = true;
bgImage.dawn._alpha = 0;
alphaSun = setInterval(alphaUpSun, 500);
}
}
function alphaUpSun() {
if (bgImage.dawn._alpha <= 100) {
bgImage.dawn._alpha = bgImage.dawn._alpha + 2;
} else {
clearInterval(alphaSun);
}
}
function resetSunRise() {
sunriseStarted = false;
clearInterval(alphaSun);
bgImage.dawn._alpha = 0;
bgImage.dawn._visible = false;
}
sunriseStarted = false;
bgImage.dawn._visible = false;
function loadTimeManager() {
chainsawSound.stop("sound_chainsawIdle");
timeManagerOpen = true;
if (retryLevel == false) {
levelUp++;
}
pauseGame();
_root.attachMovie("timeManager", "timeManager", 500021);
timeManager.blackOut.alphaTo(100, 2, "easeOutSine", 0.8, startTimeManager);
hoursSpentSurvivors = 0;
hoursSpentWeapons = 0;
hoursSpentRepairingWall = 0;
wallRepairs = 0;
survivorsFound = 0;
searchPartyMembersKilled = 0;
hoursInDay = 12;
searchFoundAWeapon = 0;
}
function startTimeManager() {
hideCrosshairs();
bgMusic.volumeTo(5, 3, "easeOutSine");
cleanUpZombies();
timeManager.gotoAndStop("timeManage");
timeManager.blackOut.alphaTo(0, 3, "easeOutSine");
updateClipBoardText();
weaponMeter();
if (survivors >= maxHelpers) {
timeManager.theClipBoard.noVacancy._visible = true;
} else {
timeManager.theClipBoard.noVacancy._visible = false;
}
if (retryLevel == true) {
calculateFindings();
confirmResults();
} else {
clipBoardUp();
}
loadHints();
}
function closeManager() {
cleanUpZombies();
if (_root.primaryWeapon != undefined) {
showCrosshairs();
bgMusic.volumeTo(20, 8, "easeOutSine");
retryLevel = false;
_root.timeManager.blackOut.alphaTo(100, 2, "easeOutSine", 0, startNextLevel);
} else {
_root.timeManager.timeMenu_bgDay.needAWeapon.alphaTo(100, 1);
}
}
function updateClipBoardText() {
clearInterval(updateClipBoard);
timeManager.theClipBoard.hoursRemaining.text = hoursInDay;
timeManager.theClipBoard.hoursSurvivors.text = hoursSpentSurvivors;
timeManager.theClipBoard.hoursWeapons.text = hoursSpentWeapons;
timeManager.theClipBoard.hoursRepairingWall.text = hoursSpentRepairingWall;
timeManager.theClipBoard.repairRateText.text = Math.round((repairRate * survivors) / 100);
timeManager.clipBoardResults.wallRepairedBy.text = Math.round(wallRepairs / 100);
timeManager.clipBoardResults.survivorsFound.text = survivorsFound;
timeManager.clipBoardResults.survivorsKilled.text = searchPartyMembersKilled;
timeManager.clipBoardResults.clipBoardDay.text = debugDay;
timeManager.theClipBoard.barricadeTotal.text = Math.round(wall.health / 100);
timeManager.clipBoardResults.barricadeTotal.text = Math.round(wall.health / 100);
timeManager.theClipBoard.survivorsTotal.text = survivors;
timeManager.clipBoardResults.survivorsTotal.text = survivors;
}
function resetClipBoardText() {
timeManager.theClipBoard.hoursRemaining.text = "12";
timeManager.theClipBoard.hoursSurvivors.text = "0";
timeManager.theClipBoard.hoursWeapons.text = "0";
timeManager.theClipBoard.hoursRepairingWall.text = "0";
timeManager.clipBoardResults.wallRepairedTo.text = "0";
timeManager.clipBoardResults.survivorsFound.text = "0";
timeManager.clipBoardResults.barricadeTotal.text = Math.round(wall.health / 100);
timeManager.theClipBoard.barricadeTotal.text = Math.round(wall.health / 100);
timeManager.clipBoardResults.foundWeapons.text = "";
}
function calculateFindings() {
tempWallHealth = wall.health;
wallRepairs = (hoursSpentRepairingWall * repairRate) * survivors;
wall.health = wall.health + wallRepairs;
checkWallStatus();
if (wall.health > 0) {
wall.destroyed = false;
}
if (wall.health >= wall.maxHealth) {
wallRepairs = wall.maxHealth - tempWallHealth;
wall.health = wall.maxHealth;
}
checkWallStatus();
startOfLevelWallHealth = wall.health;
if ((hoursSpentSurvivors <= 5) && (hoursSpentSurvivors > 0)) {
survivorsFound = survivorsFound + random(2);
} else if ((hoursSpentSurvivors <= 10) && (hoursSpentSurvivors > 5)) {
survivorsFound = survivorsFound + (random(2) + 1);
} else if (hoursSpentSurvivors > 10) {
survivorsFound = survivorsFound + (random(2) + 2);
}
if ((survivorsFound + survivors) >= maxHelpers) {
survivorsFound = maxHelpers - survivors;
}
survivors = survivors + survivorsFound;
if (hoursSpentWeapons >= 5) {
searchPartyMembersKilled = searchPartyMembersKilled + random(2);
} else if (hoursSpentWeapons >= 10) {
searchPartyMembersKilled = searchPartyMembersKilled + (random(2) + 1);
} else if (hoursSpentWeapons > 10) {
searchPartyMembersKilled = searchPartyMembersKilled + (random(2) + 2);
}
if ((survivors - searchPartyMembersKilled) <= 1) {
searchPartyMembersKilled = 0;
}
survivors = survivors - searchPartyMembersKilled;
if ((_root[currentLevel].findWeapon == true) && (retryLevel == false)) {
pickedUpWeapon = _root[currentLevel].weaponFound;
if (_root[pickedUpWeapon].found != true) {
nextWeaponPoint++;
_root[pickedUpWeapon].found = true;
droppedWeapon = ("" + _root[pickedUpWeapon].description) + " \r";
timeManager.clipBoardResults.foundWeapons.text = timeManager.clipBoardResults.foundWeapons.text + droppedWeapon.toUpperCase();
} else {
_root[currentLevel].findWeapon = false;
}
}
if (hoursSpentWeapons >= 1) {
foundWeaponsTotal = foundWeaponsTotal + (hoursSpentWeapons + survivors);
for (i in allWeapons) {
weaponNumberFind++;
if ((foundWeaponsTotal >= _root[allWeapons[i]].pointsRequired) && (_root[allWeapons[i]].found == false)) {
searchFoundAWeapon++;
_root[allWeapons[i]].found = true;
_root["weaponFound" + weaponNumberFind] = ("" + _root[allWeapons[i]].description) + " ";
if (_root[allWeapons[i]].name != "pistol") {
nextWeaponPoint++;
timeManager.clipBoardResults.foundWeapons.text = (timeManager.clipBoardResults.foundWeapons.text + _root["weaponFound" + weaponNumberFind].toUpperCase()) + "\r";
} else {
timeManager.clipBoardResults.foundWeapons.text = "NONE";
}
timeManager.timeMenu_bgDay["shadow_" + _root[allWeapons[i]].name].attachMovie(_root[allWeapons[i]].name + "_Icon", _root[allWeapons[i]].name + "_Weapon", this.getNextHighestDepth);
}
}
}
if ((searchFoundAWeapon <= 0) && (_root[currentLevel].findWeapon != true)) {
timeManager.clipBoardResults.foundWeapons.text = "NONE";
}
for (i in allWeapons) {
if (_root[allWeapons[i]].found == true) {
timeManager.timeMenu_bgDay["shadow_" + _root[allWeapons[i]].name].attachMovie(_root[allWeapons[i]].name + "_Icon", _root[allWeapons[i]].name + "_Weapon", this.getNextHighestDepth);
}
}
_root.timeManager.timeMenu_bgDay.primary.attachMovie(primaryWeapon + "_Icon", "primaryWeapon", this.getNextHighestDepth);
_root.timeManager.timeMenu_bgDay.secondary.attachMovie(secondaryWeapon + "_Icon", "secondaryWeapon", this.getNextHighestDepth);
if (_root.survivors >= 1) {
_root.activateHelpers(_root.survivors);
}
debugDay++;
updateClipBoard = setInterval(updateClipBoardText, 1000);
}
function weaponMeter() {
for (i in weaponPoints) {
i = nextWeaponPoint;
if (weaponPoints[i] != undefined) {
pointsDifference = weaponPoints[i] - weaponPoints[i - 1];
earnedPointsPastDiff = foundWeaponsTotal - weaponPoints[i - 1];
if (earnedPointsPastDiff <= 0) {
earnedPointsPastDiff = 0;
}
} else {
pointsDifference = weaponPoints[i];
earnedPointsPastDiff = foundWeaponsTotal;
}
var _local1 = Math.round((earnedPointsPastDiff / pointsDifference) * 100);
timeManager.theClipBoard.findOmeter.findBar.bar._xscale = _local1;
break;
}
}
function slideToToolBench() {
timeManager.xSlideTo(-800, 1.5, "easeOutSine", 0.5);
timeManager.timeMenu_bgDay.blurTo(0, 5, 1, "easeOutSine", 0.5);
}
function clipBoardUp() {
timeManager.theClipBoard.ySlideTo(30, 0.5, "easeOutSine", 1.5);
timeManager.timeMenu_bgDay.blurTo(2, 5, 1, "easeOutSine", 0.5);
}
function clipBoardDown() {
timeManager.theClipBoard.ySlideTo(420, 0.5, "easeOutSine");
timeManager.timeMenu_bgDay.blurTo(0, 5, 1, "easeOutSine", 0.5);
}
function clipBoardResultsUp() {
timeManager.clipBoardResults.ySlideTo(15, 0.5, "easeOutSine");
timeManager.timeMenu_bgNight.blurTo(0, 5, 1, "easeOutSine", 0.5);
}
function clipBoardResultsDown() {
timeManager.clipBoardResults.ySlideTo(420, 0.5, "easeOutSine");
}
function confirmTimeManagement() {
clipBoardDown();
calculateFindings();
timeManager.timeMenu_bgNight.alphaTo(100, 1, "easeOutSine", null, clipBoardResultsUp);
}
function confirmResults() {
clipBoardResultsDown();
resetClipBoardText();
slideToToolBench();
}
function clipBoardButtons(btnName) {
_root.timeManager.theClipBoard[btnName].onRelease = function () {
switch (btnName) {
case "barricadePlus" :
if (hoursInDay > 0) {
hoursSpentRepairingWall++;
hoursInDay--;
updateClipBoardText();
}
return;
case "barricadeMinus" :
if (hoursSpentRepairingWall > 0) {
hoursSpentRepairingWall--;
hoursInDay++;
updateClipBoardText();
}
return;
case "weaponsMinus" :
if (hoursSpentWeapons > 0) {
hoursSpentWeapons--;
hoursInDay++;
updateClipBoardText();
}
return;
case "weaponsPlus" :
if (hoursInDay > 0) {
hoursSpentWeapons++;
hoursInDay--;
updateClipBoardText();
}
return;
case "survivorsMinus" :
if (hoursSpentSurvivors > 0) {
hoursSpentSurvivors--;
hoursInDay++;
updateClipBoardText();
}
return;
case "survivorsPlus" :
if (hoursInDay > 0) {
hoursSpentSurvivors++;
hoursInDay--;
updateClipBoardText();
}
return;
}
};
}
timeManager._visible = false;
blackOut._visible = false;
nextWeaponPoint = 1;
retryLevel = false;
repairRate = 507;
hoursInDay = 12;
survivors = 1;
hoursSpentRepairingWall = 0;
hoursSpentWeapons = 0;
hoursSpentSurvivors = 0;
survivorsFound = 0;
foundSurvivors = 0;
foundWeaponsTotal = 1;
searchPartyMembersKilled = 0;
debugDay = 0;
searchFoundAWeapon = 0;
fx_totalBloodAnims = 4;
fx_totalBloodAnimsHead = 2;
fx_totalBloodAnimsChainsaw = 2;
function moveCharacter() {
if ((((!Key.isDown(65)) && (!Key.isDown(68))) && (!Key.isDown(87))) && (!Key.isDown(83))) {
characterWalkAnim("idle");
}
if (Key.isDown(65) && (!blockFront.hitTest(mainChar._x + 90, mainChar._y + 100, true))) {
this._x = this._x - hero.speed;
characterWalkAnim("forward");
}
if (Key.isDown(68) && (!blockBack.hitTest(mainChar._x + 90, mainChar._y + 100, true))) {
this._x = this._x + hero.speed;
characterWalkAnim("backward");
}
if ((Key.isDown(87) && (!blockTop.hitTest(mainChar._x + 90, mainChar._y + 100, true))) && (!blockBack.hitTest(mainChar._x + 90, mainChar._y + 100, true))) {
this._y = this._y - hero.speed;
if (Key.isDown(68)) {
characterWalkAnim("backward");
} else if (Key.isDown(65)) {
characterWalkAnim("forward");
} else {
characterWalkAnim("up");
}
}
if ((Key.isDown(83) && (!blockFront.hitTest(mainChar._x + 90, mainChar._y + 100, true))) && (!blockBottom.hitTest(mainChar._x + 90, mainChar._y + 100, true))) {
this._y = this._y + hero.speed;
if (Key.isDown(68)) {
characterWalkAnim("backward");
} else if (Key.isDown(65)) {
characterWalkAnim("forward");
} else {
characterWalkAnim("down");
}
}
if (Key.isDown(82)) {
if ((reloading == false) && (ammoInMag != _root[currentWeapon].magazineCapacity)) {
reloadWeapon();
}
if (Key.isDown(49)) {
_root.swapWeapon("pistol");
}
}
}
function characterWalkAnim(currentDirection) {
_root.mainChar.legs.gotoAndStop(currentDirection);
}
hero = new Object();
hero.health = 100;
hero.speed = 20;
hero.isAlive = true;
mainChar.depthSwappedWith5 = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(32)) {
switchWeapons();
}
if (Key.isDown(27)) {
loadOptions();
}
};
Key.addListener(keyListener);
_root.mainChar.onEnterFrame = moveCharacter;
function zombieGroanSound(zombieType) {
playASound = random(10) + 1;
if (playASound == 1) {
zombieGroan = new Sound(stageBG);
zombieGroan.attachSound("sound_zombie" + zombieType);
zombieGroan.setVolume(100);
zombieGroan.start(0, 1);
}
}
function zombieHitWallSound() {
zombieHitWallSnd = new Sound(stageBG);
zombieHitWallSnd.attachSound("zombie_hitWall" + (random(2) + 1));
zombieHitWallSnd.setVolume(50);
zombieHitWallSnd.start(0, 1);
}
function destroyBody() {
this.removeMovieClip;
}
function zombieAppearance(zombieRef) {
randomZombieHead = random(zombieHeads) + 1;
randomZombieTorso = random(zombieTorsos) + 1;
randomHeadAccessory = random(zombieHeadAccessories) + 1;
randomTorsoAccessory = random(zombieTorsoAccessories) + 1;
randomTorsoColour = torsoColours[random(torsoColours.length)];
_root[zombieRef].dummyHead.attachMovie("zombieHead" + randomZombieHead, "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso" + randomZombieTorso, "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyTorso.torso.play();
_root[zombieRef].dummyHead.head.accessories.gotoAndStop(randomHeadAccessory);
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop(randomTorsoAccessory);
_root[zombieRef].dummyTorso.torso.torso.colorTo(randomTorsoColour, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(randomTorsoColour, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(randomTorsoColour, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(randomTorsoColour, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(randomTorsoColour, 0);
randomLegColour = legColours[random(legColours.length)];
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(randomLegColour, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(randomLegColour, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(randomLegColour, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(randomLegColour, 0);
_root[zombieRef].cacheAsBitmap = true;
if (_root[currentZombieType].name == "zombieSlow") {
_root[zombieRef].gotoAndPlay(random(20) + 45);
}
if (_root[currentZombieType].name == "zombieFast") {
_root[zombieRef].gotoAndPlay(random(20) + 1);
}
if (_root[currentZombieType].name == "zombieSprint") {
_root[zombieRef].gotoAndPlay(random(10) + 80);
}
}
function zombieAppearanceCustom(zombieRef, zombieType) {
randomZombieHead = random(zombieHeads) + 1;
randomZombieTorso = random(zombieTorsos) + 1;
randomHeadAccessory = random(zombieHeadAccessories) + 1;
randomTorsoAccessory = random(zombieTorsoAccessories) + 1;
if (zombieType == "zombieFatManSprint") {
zombieType = "zombieFatMan";
}
if (zombieType == "zombieFatWomanSprint") {
zombieType = "zombieFatWoman";
}
switch (zombieType) {
case "zombieSoldier" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("armyHelmet");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("armyVest");
_root[zombieRef].dummyBackHand.backHand.accessories.gotoAndStop("armyM4");
_root[zombieRef].dummyTorso.torso.torso.colorTo(8485151, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(8485151, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(8485151, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(8485151, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(8485151, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(5329152, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(5329152, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(5329152, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(5329152, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieSWAT" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("SWAT");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("SWAT");
_root[zombieRef].dummyTorso.torso.torso.colorTo(1783122, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(1783122, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(1783122, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(1783122, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(1783122, 0);
_root[zombieRef].dummyBackHand.backHand.colorTo(1184274, 0);
_root[zombieRef].dummyFrontHand.frontHand.colorTo(1184274, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(1783122, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(1783122, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(1783122, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(1783122, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieFatCop" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("copFat" + (random(3) + 1));
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("copFat");
_root[zombieRef].dummyBackHand.backHand.accessories.gotoAndStop("copNightStick");
_root[zombieRef].dummyTorso.torso.torso.colorTo(6737151, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(6737151, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(6737151, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(7208, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(7208, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(7208, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(7208, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieDropRevolver" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("copFat" + (random(3) + 1));
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("copFat");
_root[zombieRef].dummyFrontHand.frontHand.accessories.gotoAndStop("copRevolver");
_root[zombieRef].dummyTorso.torso.torso.colorTo(6737151, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(6737151, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(6737151, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(7208, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(7208, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(7208, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(7208, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieClown" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso2", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("clown");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("clown");
_root[zombieRef].dummyTorso.torso.torso.colorTo(6710988, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(39168, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(39168, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(6710988, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(6710988, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(13382400, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(13382400, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(13260, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(13260, 0);
_root[zombieRef].dummyFrontFoot.foot.colorTo(10027008, 0);
_root[zombieRef].dummyBackFoot.foot.colorTo(10027008, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieMechanic" :
_root[zombieRef].dummyHead.attachMovie("zombieHead2", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop(randomHeadAccessory);
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("mechanic");
_root[zombieRef].dummyTorso.torso.torso.colorTo(3691610, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(3691610, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(3691610, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(3691610, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(3691610, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(3691610, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(3691610, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(3691610, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(3691610, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombiePriest" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso2", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("priest");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("priest");
_root[zombieRef].dummyBackHand.backHand.accessories.gotoAndStop("bible");
_root[zombieRef].dummyTorso.torso.torso.colorTo(1644825, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(1644825, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(1644825, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(1644825, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(1644825, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(1644825, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(1644825, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(1644825, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(1644825, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieNewsReporter" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("newsReporter");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("newsReporter");
_root[zombieRef].dummyBackHand.backHand.accessories.gotoAndStop("microphone");
_root[zombieRef].dummyTorso.torso.torso.colorTo(13412704, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(13412704, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(13412704, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(13412704, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(13412704, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(3355443, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(3355443, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(3355443, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(3355443, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieNewsCameraman" :
_root[zombieRef].dummyHead.attachMovie("zombieHead1", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("newsCameraman");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("newsCameraman");
_root[zombieRef].dummyBackHand.backHand.accessories.gotoAndStop("newsCamera");
_root[zombieRef].dummyTorso.torso.torso.colorTo(10040115, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(10040115, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(10040115, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(16771797, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(3355443, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(3355443, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(3355443, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(3355443, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieFatWoman" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("fatWoman" + (random(5) + 1));
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("fatWoman" + (random(5) + 1));
_root[zombieRef].dummyTorso.torso.torso.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(15260631, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(15260631, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(15260631, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieFatMan" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("fatMan" + (random(4) + 1));
zombieRandomClothesSet = "" + (random(4) + 1);
switch (zombieRandomClothesSet) {
case "1" :
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("fatMan1");
_root[zombieRef].dummyTorso.torso.torso.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(6697728, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(6697728, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(15260631, 0);
break;
case "2" :
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("fatMan2");
_root[zombieRef].dummyTorso.torso.torso.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(13158, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(13158, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(13158, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(13158, 0);
break;
case "3" :
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("fatMan3");
_root[zombieRef].dummyTorso.torso.torso.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(7500362, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(7500362, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(1510144, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(1510144, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(1510144, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(1510144, 0);
break;
case "4" :
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("fatMan4");
_root[zombieRef].dummyTorso.torso.torso.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(4868682, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(4868682, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(4868682, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(4868682, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(4993566, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(4993566, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(4993566, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(4993566, 0);
break;
}
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(6697728, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(6697728, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(15260631, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombiePrisoner" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop(randomHeadAccessory);
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("prisoner");
_root[zombieRef].dummyTorso.torso.torso.colorTo(16750848, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(16750848, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(16750848, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(16750848, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(16750848, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(16750848, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(16750848, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(16750848, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(16750848, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
case "zombieDropShotgun" :
_root[zombieRef].dummyHead.attachMovie("zombieHead3", "head", x);
_root[zombieRef].dummyTorso.attachMovie("zombieTorso1", "torso", x);
_root[zombieRef].dummyFrontHand.attachMovie("zombie_Hand", "frontHand", x);
_root[zombieRef].dummyBackHand.attachMovie("zombie_Hand", "backHand", x);
_root[zombieRef].dummyHead.head.accessories.gotoAndStop("biker");
_root[zombieRef].dummyTorso.torso.torsoAddons.gotoAndStop("biker");
_root[zombieRef].dummyFrontHand.frontHand.accessories.gotoAndStop("bikerShotgun");
_root[zombieRef].dummyTorso.torso.torso.colorTo(6737151, 0);
_root[zombieRef].dummyFrontUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackUpperArm.upperArm.colorTo(15260631, 0);
_root[zombieRef].dummyBackLowerArm.lowerArm.colorTo(15260631, 0);
_root[zombieRef].dummyFrontUpperLeg.upperLeg.colorTo(1313280, 0);
_root[zombieRef].dummyFrontLowerLeg.lowerLeg.colorTo(1313280, 0);
_root[zombieRef].dummyBackUpperLeg.upperLeg.colorTo(1313280, 0);
_root[zombieRef].dummyBackLowerLeg.lowerLeg.colorTo(1313280, 0);
_root[zombieRef].cacheAsBitmap = true;
break;
}
switch (_root[currentZombieType].walkAnimation) {
case "slow" :
_root[zombieRef].gotoAndPlay(random(20) + 45);
break;
case "fast" :
_root[zombieRef].gotoAndPlay(random(20) + 1);
break;
case "sprint" :
_root[zombieRef].gotoAndPlay(random(10) + 80);
break;
}
}
zombieSlow = new Object();
zombieSlow.speed = 1.3;
zombieSlow.health = 50;
zombieSlow.damage = 3;
zombieSlow.name = "zombieSlow";
zombieFast = new Object();
zombieFast.speed = 3;
zombieFast.health = 40;
zombieFast.damage = 2;
zombieFast.name = "zombieFast";
zombieSprint = new Object();
zombieSprint.speed = 13;
zombieSprint.health = 40;
zombieSprint.damage = 2;
zombieSprint.name = "zombieSprint";
zombieDog = new Object();
zombieDog.speed = 13.5;
zombieDog.health = 30;
zombieDog.damage = 1.5;
zombieDog.name = "zombieDog";
zombieSoldier = new Object();
zombieSoldier.speed = 1.3;
zombieSoldier.health = 40;
zombieSoldier.damage = 2;
zombieSoldier.name = "zombieSoldier";
zombieSoldier.walkAnimation = "fast";
zombieSWAT = new Object();
zombieSWAT.speed = 1.3;
zombieSWAT.health = 40;
zombieSWAT.damage = 2;
zombieSWAT.name = "zombieSWAT";
zombieSWAT.walkAnimation = "fast";
zombieFatCop = new Object();
zombieFatCop.speed = 1.3;
zombieFatCop.health = 65;
zombieFatCop.damage = 2;
zombieFatCop.name = "zombieFatCop";
zombieFatCop.walkAnimation = "slow";
zombieDropRevolver = new Object();
zombieDropRevolver.speed = 1.3;
zombieDropRevolver.health = 65;
zombieDropRevolver.damage = 2;
zombieDropRevolver.name = "zombieDropRevolver";
zombieDropRevolver.walkAnimation = "slow";
zombieDropShotgun = new Object();
zombieDropShotgun.speed = 1.3;
zombieDropShotgun.health = 65;
zombieDropShotgun.damage = 2;
zombieDropShotgun.name = "zombieDropShotgun";
zombieDropShotgun.walkAnimation = "slow";
zombieFatWoman = new Object();
zombieFatWoman.speed = 1;
zombieFatWoman.health = 65;
zombieFatWoman.damage = 3;
zombieFatWoman.name = "zombieFatWoman";
zombieFatWoman.walkAnimation = "slow";
zombieFatWomanSprint = new Object();
zombieFatWomanSprint.speed = 13;
zombieFatWomanSprint.health = 65;
zombieFatWomanSprint.damage = 3;
zombieFatWomanSprint.name = "zombieFatWoman";
zombieFatWomanSprint.walkAnimation = "sprint";
zombieFatManSprint = new Object();
zombieFatManSprint.speed = 10;
zombieFatManSprint.health = 70;
zombieFatManSprint.damage = 3;
zombieFatManSprint.name = "zombieFatManSprint";
zombieFatManSprint.walkAnimation = "sprint";
zombieFatMan = new Object();
zombieFatMan.speed = 1.3;
zombieFatMan.health = 70;
zombieFatMan.damage = 3;
zombieFatMan.name = "zombieFatMan";
zombieFatMan.walkAnimation = "fast";
zombieClown = new Object();
zombieClown.speed = 13;
zombieClown.health = 40;
zombieClown.damage = 2;
zombieClown.name = "zombieClown";
zombieClown.walkAnimation = "sprint";
zombieMechanic = new Object();
zombieMechanic.speed = 3;
zombieMechanic.health = 40;
zombieMechanic.damage = 2;
zombieMechanic.name = "zombieMechanic";
zombieMechanic.walkAnimation = "fast";
zombiePriest = new Object();
zombiePriest.speed = 3;
zombiePriest.health = 40;
zombiePriest.damage = 2;
zombiePriest.name = "zombiePriest";
zombiePriest.walkAnimation = "fast";
zombieNewsReporter = new Object();
zombieNewsReporter.speed = 3;
zombieNewsReporter.health = 40;
zombieNewsReporter.damage = 2;
zombieNewsReporter.name = "zombieNewsReporter";
zombieNewsReporter.walkAnimation = "fast";
zombieNewsCameraman = new Object();
zombieNewsCameraman.speed = 1.3;
zombieNewsCameraman.health = 40;
zombieNewsCameraman.damage = 2;
zombieNewsCameraman.name = "zombieNewsCameraman";
zombieNewsCameraman.walkAnimation = "slow";
zombiePrisoner = new Object();
zombiePrisoner.speed = 3;
zombiePrisoner.health = 40;
zombiePrisoner.damage = 2;
zombiePrisoner.name = "zombiePrisoner";
zombiePrisoner.walkAnimation = "fast";
allZombies = new Array("zombieSlow", "zombieFast", "zombieDog", "zombieSprint", "zombieSoldier", "zombieFatCop", "zombieClown", "zombieMechanic", "zombiePriest", "zombieNewsReporter", "zombieNewsCameraman", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatMan", "zombieFatManSprint", "zombiePrisoner", "zombieDropRevolver", "zombieDropShotgun");
zombieHeads = 3;
zombieTorsos = 3;
zombieHeadAccessories = 15;
zombieTorsoAccessories = 15;
torsoColours = new Array("0x53552F", "0x993333", "0x333333", "0x996600", "0x888888", "0x4E462C", "0x3A4958", "0x3E373A", "0xB2987F", "0x222222", "0xcccccc", "0x451616", "0x571542", "0x6A6846");
legColours = new Array("0x333333", "0x182746", "0x333300", "0x111111");
function enemyGenerator() {
delay--;
liveZombieCount = zombiesCreated - zombiesKilled;
if (((delay <= 0) && (zombiesCreated <= _root[currentLevel].zombiePool)) && (liveZombieCount < zombieLimit)) {
delay = _root[currentLevel].spawnRate;
x++;
currentZombieType = _root[currentLevel].zombieTypes[random(_root[currentLevel].totalTypes)];
if (_root[currentLevel][currentZombieType] > 0) {
if (currentZombieType == "zombieDog") {
_root.attachMovie("zombieDog", "enemy" + x, x + 3);
} else {
_root.attachMovie("newZombie", "enemy" + x, x + 3);
}
_root[currentLevel][currentZombieType]--;
zombiesCreated++;
if (_root[currentLevel][currentZombieType] <= 0) {
_root[currentLevel].totalTypes--;
removeZombieType(currentZombieType);
}
}
_root["enemy" + x]._visible = false;
_root["enemy" + x].colorTransformTo(60, 0, 60, 0, 60, 0, 100, 0, 0);
_root["enemy" + x]._y = random(180) + 120;
_root["enemy" + x]._x = -90;
_root["enemy" + x].cacheAsBitmap = true;
_root["enemy" + x]._visible = true;
enemyOnScreen.push({ref:_root["enemy" + x], depth:_root["enemy" + x]._y});
aliveZombies.push({ref:_root["enemy" + x], type:currentZombieType, health:_root[currentZombieType].health, speed:_root[currentZombieType].speed, damage:_root[currentZombieType].damage, depth:_root["enemy" + x]._y, idle:false, animating:false, eating:false, dead:false, proximity:0, targetX:0, targetY:0, tempNum:0, beingExploded:false});
if (((currentZombieType == "zombieSlow") || (currentZombieType == "zombieFast")) || (currentZombieType == "zombieSprint")) {
zombieAppearance("enemy" + x);
} else {
zombieAppearanceCustom("enemy" + x, currentZombieType);
}
}
if (zombiesCreated == _root[currentLevel].zombiePool) {
delete makeEnemy.onEnterFrame;
}
}
function removeZombieType(zombieTypeName) {
for (i in _root[currentLevel].zombieTypes) {
if (_root[currentLevel].zombieTypes[i] == zombieTypeName) {
_root[currentLevel].zombieTypes.splice(i, 1);
break;
}
}
}
allWeapons.push("chainsaw", "pistol", "revolver", "shotgun", "barrett", "huntingRifle", "UZI", "UMP", "M4A1", "AK47", "sawnOff");
snubnose = new Object();
snubnose.name = "snubnose";
snubnose.description = "snubnose revolver";
snubnose.fireMode = "semi";
snubnose.weaponGroup = "pistol";
snubnose.damage = 100;
snubnose.headShotDamage = 100;
snubnose.weaponRPM = 999;
snubnose.roundSpeed = 999;
snubnose.reloadTime = 0;
snubnose.reloadType = "auto";
snubnose.magazineCapacity = 99;
snubnose.shotsPerRound = 1;
snubnose.recoil = 0;
snubnose.casingEject = false;
snubnose.showTracers = true;
snubnose.accuracy = 100;
pistol = new Object();
pistol.name = "pistol";
pistol.description = ".45 Pistol";
pistol.weaponGroup = "pistol";
pistol.fireMode = "auto";
pistol.damage = 255;
pistol.headShotDamage = 255;
pistol.weaponRPM = 200;
pistol.roundSpeed = 200;
pistol.reloadTime = 0;
pistol.reloadType = "auto";
pistol.pumpWeapon = true;
pistol.pumpTime = 1;
pistol.magazineCapacity = 99;
pistol.shotsPerRound = 99;
pistol.recoil = 0;
pistol.casingEject = true;
pistol.showTracers = true;
pistol.accuracy = 20;
revolver = new Object();
revolver.name = "revolver";
revolver.description = ".357 Revolver";
revolver.fireMode = "semi";
revolver.weaponGroup = "pistol";
revolver.damage = 10;
revolver.headShotDamage = 30;
revolver.weaponRPM = 200;
revolver.roundSpeed = 120;
revolver.reloadTime = 2280;
revolver.reloadType = "auto";
revolver.pumpWeapon = true;
revolver.pumpTime = 425;
revolver.magazineCapacity = 6;
revolver.shotsPerRound = 1;
revolver.recoil = 8;
revolver.casingEject = false;
revolver.showTracers = true;
revolver.accuracy = 4;
UMP = new Object();
UMP.name = "UMP";
UMP.description = "UMP 45";
UMP.fireMode = "auto";
UMP.weaponGroup = "pistol";
UMP.damage = 3;
UMP.headShotDamage = 4;
UMP.weaponRPM = 75;
UMP.roundSpeed = 120;
UMP.reloadTime = 1800;
UMP.reloadType = "auto";
UMP.magazineCapacity = 25;
UMP.shotsPerRound = 1;
UMP.recoil = 3;
UMP.casingEject = true;
UMP.showTracers = true;
UMP.accuracy = 3;
UZI = new Object();
UZI.name = "UZI";
UZI.description = "UZI";
UZI.fireMode = "auto";
UZI.weaponGroup = "pistol";
UZI.damage = 2.5;
UZI.headShotDamage = 3;
UZI.weaponRPM = 60;
UZI.roundSpeed = 120;
UZI.reloadTime = 1800;
UZI.reloadType = "auto";
UZI.magazineCapacity = 50;
UZI.shotsPerRound = 1;
UZI.recoil = 5;
UZI.casingEject = true;
UZI.showTracers = true;
UZI.accuracy = 6;
huntingRifle = new Object();
huntingRifle.name = "huntingRifle";
huntingRifle.description = "hunting rifle";
huntingRifle.weaponGroup = "rifle";
huntingRifle.fireMode = "semi";
huntingRifle.damage = 30;
huntingRifle.headShotDamage = 40;
huntingRifle.weaponRPM = 500;
huntingRifle.roundSpeed = 150;
huntingRifle.reloadTime = 1800;
huntingRifle.penetrates = true;
huntingRifle.goesThrough = 2;
huntingRifle.pumpWeapon = false;
huntingRifle.pumpTime = 800;
huntingRifle.reloadType = "auto";
huntingRifle.magazineCapacity = 1;
huntingRifle.shotsPerRound = 1;
huntingRifle.accuracy = 1;
huntingRifle.casingEject = true;
huntingRifle.showTracers = true;
huntingRifle.recoil = 10;
barrett = new Object();
barrett.name = "barrett";
barrett.description = "barrett";
barrett.weaponGroup = "rifle";
barrett.fireMode = "semi";
barrett.damage = 40;
barrett.headShotDamage = 100;
barrett.weaponRPM = 500;
barrett.roundSpeed = 150;
barrett.reloadTime = 1800;
barrett.penetrates = true;
barrett.goesThrough = 5;
barrett.pumpWeapon = true;
barrett.pumpTime = 1200;
barrett.reloadType = "auto";
barrett.magazineCapacity = 10;
barrett.shotsPerRound = 1;
barrett.accuracy = 1;
barrett.casingEject = true;
barrett.showTracers = true;
barrett.recoil = 10;
sawnOff = new Object();
sawnOff.name = "sawnOff";
sawnOff.description = "Sawn-off shotgun";
sawnOff.fireMode = "semi";
sawnOff.weaponGroup = "shotgun";
sawnOff.damage = 5;
sawnOff.headShotDamage = 7;
sawnOff.weaponRPM = 500;
sawnOff.roundSpeed = 120;
sawnOff.reloadTime = 2000;
sawnOff.reloadType = "manual";
sawnOff.pumpWeapon = true;
sawnOff.pumpTime = 400;
sawnOff.magazineCapacity = 2;
sawnOff.shotsPerRound = 6;
sawnOff.accuracy = 15;
sawnOff.casingEject = true;
sawnOff.showTracers = true;
sawnOff.recoil = 8;
shotgun = new Object();
shotgun.name = "shotgun";
shotgun.description = "shotgun";
shotgun.fireMode = "semi";
shotgun.weaponGroup = "shotgun";
shotgun.damage = 3.5;
shotgun.headShotDamage = 2.5;
shotgun.weaponRPM = 500;
shotgun.roundSpeed = 120;
shotgun.reloadTime = 700;
shotgun.reloadType = "manual";
shotgun.pumpWeapon = true;
shotgun.pumpTime = 700;
shotgun.magazineCapacity = 8;
shotgun.shotsPerRound = 8;
shotgun.accuracy = 5;
shotgun.casingEject = true;
shotgun.showTracers = true;
shotgun.recoil = 5;
M4A1 = new Object();
M4A1.name = "M4A1";
M4A1.description = "M4A1";
M4A1.fireMode = "auto";
M4A1.weaponGroup = "rifle";
M4A1.damage = 2.75;
M4A1.headShotDamage = 5.5;
M4A1.weaponRPM = 90;
M4A1.roundSpeed = 150;
M4A1.reloadTime = 1800;
M4A1.reloadType = "auto";
M4A1.magazineCapacity = 30;
M4A1.shotsPerRound = 1;
M4A1.accuracy = 3;
M4A1.casingEject = true;
M4A1.showTracers = true;
M4A1.recoil = 5;
AK47 = new Object();
AK47.name = "AK47";
AK47.description = "AK47";
AK47.fireMode = "auto";
AK47.weaponGroup = "rifle";
AK47.damage = 4.5;
AK47.headShotDamage = 5.5;
AK47.weaponRPM = 101;
AK47.roundSpeed = 120;
AK47.reloadTime = 1800;
AK47.reloadType = "auto";
AK47.magazineCapacity = 30;
AK47.shotsPerRound = 1;
AK47.accuracy = 5;
AK47.casingEject = true;
AK47.showTracers = true;
AK47.recoil = 8;
M249 = new Object();
M249.name = "M249";
M249.description = "M249 Minimi";
M249.fireMode = "auto";
M249.weaponGroup = "rifle";
M249.damage = 3.5;
M249.headShotDamage = 4;
M249.weaponRPM = 90;
M249.roundSpeed = 120;
M249.reloadTime = 3600;
M249.reloadType = "auto";
M249.magazineCapacity = 200;
M249.shotsPerRound = 1;
M249.accuracy = 8;
M249.casingEject = true;
M249.showTracers = true;
M249.recoil = 8;
grenade = new Object();
grenade.name = "grenade";
grenade.description = "HAND GRENADES";
grenade.fireMode = "thrown";
grenade.damage = 3000;
grenade.weaponRPM = 90;
grenade.reloadTime = 1700;
grenade.reloadType = "auto";
grenade.magazineCapacity = 1;
grenade.shotsPerRound = 1;
grenade.timer = 25;
chainsaw = new Object();
chainsaw.name = "chainsaw";
chainsaw.description = "CHAINSAW";
chainsaw.fireMode = "auto";
chainsaw.weaponGroup = "rifle";
chainsaw.damage = 8;
chainsaw.headShotDamage = 12;
chainsaw.weaponRPM = 150;
chainsaw.roundSpeed = 80;
chainsaw.reloadTime = 1000;
chainsaw.reloadType = "auto";
chainsaw.magazineCapacity = 99;
chainsaw.shotsPerRound = 1;
chainsaw.accuracy = 0;
chainsaw.rangeType = "melee";
chainsaw.range = 120;
chainsaw.casingEject = false;
chainsaw.showTracers = false;
chainsaw.recoil = 0;
flameThrower = new Object();
flameThrower.name = "flameThrower";
flameThrower.fireMode = "auto";
flameThrower.weaponGroup = "rifle";
flameThrower.damage = 8;
flameThrower.headShotDamage = 12;
flameThrower.weaponRPM = 150;
flameThrower.roundSpeed = 190;
flameThrower.reloadTime = 800;
flameThrower.reloadType = "auto";
flameThrower.magazineCapacity = 100;
flameThrower.shotsPerRound = 1;
flameThrower.accuracy = 0;
flameThrower.rangeType = "melee";
flameThrower.range = 20;
flameThrower.damageType = "burn";
flameThrower.casingEject = false;
flameThrower.showTracers = false;
flameThrower.recoil = 0;
pistol.pointsRequired = 1;
revolver.pointsRequired = 1;
UMP.pointsRequired = 1;
shotgun.pointsRequired = 1;
chainsaw.pointsRequired = 1;
sawnOff.pointsRequired = 1;
huntingRifle.pointsRequired = 1;
UZI.pointsRequired = 1;
M4A1.pointsRequired = 1;
AK47.pointsRequired = 1;
barrett.pointsRequired = 1;
weaponPoints = new Array();
weaponPoints.push("0", "13", "24", "50", "72", "92", "110", "130", "154", "180", "220");
pistol.found = true;
revolver.found = false;
huntingRifle.found = false;
chainsaw.found = false;
shotgun.found = false;
sawnOff.found = false;
grenade.found = false;
UMP.found = false;
UZI.found = false;
M4A1.found = false;
AK47.found = false;
barrett.found = false;
function fillWeaponMagazines() {
swapWeapon(primaryWeapon);
currentWeaponInHand = "primary";
ammoInMag = _root[primaryWeapon].magazineCapacity;
primaryAmmo = _root[primaryWeapon].magazineCapacity;
secondaryAmmo = _root[secondaryWeapon].magazineCapacity;
}
function switchWeapons() {
if (((currentWeaponInHand == "primary") && (secondaryWeapon != undefined)) && (!reloading)) {
primaryAmmo = ammoInMag;
swapWeapon(secondaryWeapon);
currentWeaponInHand = "secondary";
ammoInMag = secondaryAmmo;
} else if ((!reloading) && (secondaryWeapon != undefined)) {
secondaryAmmo = ammoInMag;
swapWeapon(primaryWeapon);
currentWeaponInHand = "primary";
ammoInMag = primaryAmmo;
}
}
function weaponRackButtons(btnName) {
_root.timeManager.timeMenu_bgDay[btnName].onRelease = function () {
assignWeapon(btnName);
};
}
function weaponSlotButtons(btnName) {
_root.timeManager.timeMenu_bgDay[btnName].onRelease = function () {
unassignWeapon(btnName);
};
_root.timeManager.timeMenu_bgDay[btnName].onRollOver = function () {
if (_root[btnName + "WeaponSlot"] == "full") {
_root.timeManager.timeMenu_bgDay["remove_" + btnName].alphaTo(100, 0.2);
}
};
_root.timeManager.timeMenu_bgDay[btnName].onRollOut = function () {
_root.timeManager.timeMenu_bgDay["remove_" + btnName].alphaTo(0, 0.2);
};
}
function assignWeapon(wpnName) {
if (_root[wpnName].found == true) {
if ((primaryWeaponSlot == "empty") && (wpnName != secondaryWeapon)) {
_root.timeManager.timeMenu_bgDay.needAWeapon.alphaTo(0, 0.2);
primaryWeapon = _root[wpnName].name;
primaryWeaponSlot = "full";
_root.timeManager.timeMenu_bgDay.primary.attachMovie(_root[wpnName].name + "_Icon", "primaryWeapon", this.getNextHighestDepth);
swapWeapon(primaryWeapon);
fillWeaponMagazines();
} else if ((secondaryWeaponSlot == "empty") && (wpnName != primaryWeapon)) {
secondaryWeapon = _root[wpnName].name;
secondaryWeaponSlot = "full";
_root.timeManager.timeMenu_bgDay.secondary.attachMovie(_root[wpnName].name + "_Icon", "secondaryWeapon", this.getNextHighestDepth);
fillWeaponMagazines();
}
}
}
function unassignWeapon(btnName) {
_root.timeManager.timeMenu_bgDay[btnName][btnName + "Weapon"].removeMovieClip();
_root[btnName + "WeaponSlot"] = "empty";
_root[btnName + "Weapon"] = null;
}
currentWeapon = "pistol";
primaryWeapon = "pistol";
secondaryWeapon = null;
primaryWeaponSlot = "full";
secondaryWeaponSlot = "empty";
currentWeaponInHand = "primary";
primaryAmmo = 0;
secondaryAmmo = 0;
ammoInMag = _root[primaryWeapon].magazineCapacity;
primaryAmmo = _root[primaryWeapon].magazineCapacity;
secondaryAmmo = _root[secondaryWeapon].magazineCapacity;
function saveLevelData() {
for (i in allLevels) {
_root[allLevels[i]].zombiePoolSaved = _root[allLevels[i]].zombiePool;
_root[allLevels[i]].zombieSpawnRateSaved = _root[allLevels[i]].spawnRate;
_root[allLevels[i]].zombieTotalTypesSaved = _root[allLevels[i]].totalTypes;
_root[allLevels[i]].zombieZombieTypesSaved = _root[allLevels[i]].zombieTypes.concat();
_root[allLevels[i]].findWeaponSaved = _root[allLevels[i]].findWeapon;
_root[allLevels[i]].weaponFoundSaved = _root[allLevels[i]].weaponFound;
for (p in allZombies) {
_root[allLevels[i]][allZombies[p] + "Saved"] = _root[allLevels[i]][allZombies[p]];
}
}
}
function loadLevelData() {
for (i in allLevels) {
i = levelUp - 1;
_root[allLevels[i]].zombiePool = _root[allLevels[i]].zombiePoolSaved;
_root[allLevels[i]].spawnRate = _root[allLevels[i]].zombieSpawnRateSaved;
_root[allLevels[i]].totalTypes = _root[allLevels[i]].zombieTotalTypesSaved;
_root[allLevels[i]].zombieTypes = _root[allLevels[i]].zombieZombieTypesSaved.concat();
_root[allLevels[i]].findWeapon = _root[allLevels[i]].findWeaponSaved;
_root[allLevels[i]].weaponFound = _root[allLevels[i]].weaponFoundSaved;
for (p in allZombies) {
if (_root[allLevels[i]][allZombies[p] + "Saved"] != undefined) {
_root[allLevels[i]][allZombies[p]] = _root[allLevels[i]][allZombies[p] + "Saved"];
}
}
break;
}
}
function retryLevelAgain() {
hero.isAlive = true;
mainChar.gotoAndStop("alive");
wall.health = startOfLevelWallHealth;
checkWallStatus();
loadLevelData();
retryLevel = true;
loadTimeManager();
}
allLevels = new Array();
allLevels.push("day_1", "day_2", "day_3", "day_4", "day_5", "day_6", "day_7", "day_8", "day_9", "day_10", "day_11", "day_12", "day_13", "day_14", "day_15", "day_16", "day_17", "day_18", "day_19", "day_20");
day_1 = new Object();
day_1.zombiePool = 10;
day_1.zombieSlow = 6;
day_1.zombieFast = 4;
day_1.zombieTypes = new Array("zombieSlow", "zombieFast");
day_1.totalTypes = 2;
day_1.spawnRate = 40;
day_2 = new Object();
day_2.zombiePool = 16;
day_2.zombieSlow = 10;
day_2.zombieFast = 5;
day_2.zombieFatWoman = 1;
day_2.zombieTypes = new Array("zombieFast", "zombieSlow", "zombieFatWoman");
day_2.totalTypes = 3;
day_2.spawnRate = 40;
day_3 = new Object();
day_3.zombiePool = 18;
day_3.zombieSlow = 8;
day_3.zombieFast = 6;
day_3.zombieSprint = 1;
day_3.zombieFatMan = 1;
day_3.zombiePriest = 1;
day_3.zombieDropRevolver = 1;
day_3.findWeapon = true;
day_3.weaponFound = "revolver";
day_3.zombieTypes = new Array("zombieSlow", "zombieDropRevolver", "zombieFast", "zombieSprint", "zombieFatMan", "zombiePriest");
day_3.totalTypes = 6;
day_3.spawnRate = 40;
day_4 = new Object();
day_4.zombieTypes = new Array("zombieSlow", "zombieFast", "zombieDog", "zombieSprint", "zombieFatMan", "zombieFatWoman", "zombieMechanic");
day_4.totalTypes = 7;
day_4.zombiePool = 25;
day_4.zombieSlow = 10;
day_4.zombieFast = 6;
day_4.zombieSprint = 4;
day_4.zombieDog = 1;
day_4.zombieFatMan = 1;
day_4.zombieFatWoman = 2;
day_4.zombieMechanic = 1;
day_4.spawnRate = 40;
day_5 = new Object();
day_5.zombieTypes = new Array("zombieSlow", "zombieFast", "zombieDog", "zombieSprint", "zombieFatMan", "zombieFatWoman", "zombieNewsReporter", "zombieNewsCameraman");
day_5.totalTypes = 8;
day_5.zombiePool = 30;
day_5.zombieSlow = 5;
day_5.zombieFast = 10;
day_5.zombieDog = 4;
day_5.zombieSprint = 4;
day_5.zombieFatMan = 2;
day_5.zombieFatWoman = 3;
day_5.zombieNewsReporter = 1;
day_5.zombieNewsCameraman = 1;
day_5.spawnRate = 40;
day_6 = new Object();
day_6.zombieTypes = new Array("zombieDropShotgun", "zombieFatCop", "zombieFatMan", "zombieFatWoman", "zombieSlow", "zombieFast", "zombieSprint", "zombieDog");
day_6.totalTypes = 8;
day_6.zombiePool = 26;
day_6.zombieSlow = 7;
day_6.zombieFast = 7;
day_6.zombieSprint = 3;
day_6.zombieDog = 2;
day_6.zombieFatMan = 2;
day_6.zombieFatWoman = 3;
day_6.zombieFatCop = 1;
day_6.zombieDropShotgun = 1;
day_6.findWeapon = true;
day_6.weaponFound = "shotgun";
day_6.spawnRate = 40;
day_7 = new Object();
day_7.zombieTypes = new Array("zombieFatMan", "zombieFatWoman", "zombieSlow", "zombieSprint", "zombieFast", "zombieDog");
day_7.totalTypes = 6;
day_7.zombiePool = 33;
day_7.zombieSlow = 10;
day_7.zombieFast = 8;
day_7.zombieSprint = 5;
day_7.zombieDog = 2;
day_7.zombieFatMan = 5;
day_7.zombieFatWoman = 3;
day_7.spawnRate = 40;
day_8 = new Object();
day_8.zombieTypes = new Array("zombieFatMan", "zombieFatWoman", "zombieSlow", "zombieSprint", "zombieFast", "zombieDog");
day_8.totalTypes = 6;
day_8.zombiePool = 40;
day_8.zombieSlow = 5;
day_8.zombieFast = 10;
day_8.zombieSprint = 9;
day_8.zombieFatMan = 6;
day_8.zombieFatWoman = 5;
day_8.zombieDog = 5;
day_8.spawnRate = 40;
day_9 = new Object();
day_9.zombieTypes = new Array("zombieSlow", "zombieFast", "zombieDog", "zombieSprint", "zombieFatWomanSprint");
day_9.totalTypes = 5;
day_9.zombiePool = 34;
day_9.zombieSlow = 10;
day_9.zombieFast = 10;
day_9.zombieSprint = 10;
day_9.zombieDog = 3;
day_9.zombieFatWomanSprint = 1;
day_9.spawnRate = 40;
day_10 = new Object();
day_10.zombieTypes = new Array("zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow", "zombieDog");
day_10.totalTypes = 6;
day_10.zombiePool = 30;
day_10.zombieSlow = 10;
day_10.zombieFast = 10;
day_10.zombieSprint = 4;
day_10.zombieDog = 2;
day_10.zombieFatWomanSprint = 2;
day_10.zombieFatManSprint = 2;
day_10.spawnRate = 35;
day_11 = new Object();
day_11.zombieTypes = new Array("zombieFatWoman", "zombieFatMan", "zombiePrisoner", "zombieSprint", "zombieFast", "zombieSlow");
day_11.totalTypes = 6;
day_11.zombiePool = 40;
day_11.zombieSlow = 5;
day_11.zombieFast = 5;
day_11.zombieSprint = 10;
day_11.zombiePrisoner = 10;
day_11.zombieFatMan = 5;
day_11.zombieFatWoman = 5;
day_11.spawnRate = 35;
day_12 = new Object();
day_12.zombieTypes = new Array("zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow", "zombieDog");
day_12.totalTypes = 5;
day_12.zombiePool = 45;
day_12.zombieSlow = 15;
day_12.zombieFast = 10;
day_12.zombieSprint = 10;
day_12.zombieDog = 5;
day_12.zombieFatManSprint = 5;
day_12.spawnRate = 35;
day_13 = new Object();
day_13.zombieTypes = new Array("zombieFatCop", "zombieSWAT", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow", "zombieDog");
day_13.totalTypes = 7;
day_13.zombiePool = 35;
day_13.zombieSlow = 5;
day_13.zombieFast = 5;
day_13.zombieSprint = 10;
day_13.zombieDog = 5;
day_13.zombieFatManSprint = 5;
day_13.zombieSWAT = 1;
day_13.zombieFatCop = 4;
day_13.spawnRate = 35;
day_14 = new Object();
day_14.zombieTypes = new Array("zombieFatMan", "zombieFatWoman", "zombieFatCop", "zombieSWAT", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow", "zombieDog");
day_14.totalTypes = 9;
day_14.zombiePool = 40;
day_14.zombieSlow = 10;
day_14.zombieFast = 5;
day_14.zombieSprint = 10;
day_14.zombieDog = 3;
day_14.zombieFatManSprint = 2;
day_14.zombieSWAT = 5;
day_14.zombieFatCop = 1;
day_14.zombieFatWoman = 2;
day_14.zombieFatMan = 2;
day_14.spawnRate = 35;
day_15 = new Object();
day_15.zombieTypes = new Array("zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow", "zombieDog");
day_15.totalTypes = 8;
day_15.zombiePool = 45;
day_15.zombieSlow = 15;
day_15.zombieFast = 10;
day_15.zombieSprint = 10;
day_15.zombieDog = 3;
day_15.zombieFatManSprint = 1;
day_15.zombieFatWomanSprint = 1;
day_15.zombieFatWoman = 2;
day_15.zombieFatMan = 3;
day_15.spawnRate = 35;
day_16 = new Object();
day_16.zombieTypes = new Array("zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow");
day_16.totalTypes = 7;
day_16.zombiePool = 50;
day_16.zombieSlow = 10;
day_16.zombieFast = 10;
day_16.zombieSprint = 10;
day_16.zombieFatManSprint = 5;
day_16.zombieFatWomanSprint = 5;
day_16.zombieFatWoman = 5;
day_16.zombieFatMan = 5;
day_16.spawnRate = 35;
day_17 = new Object();
day_17.zombieTypes = new Array("zombieSoldier", "zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow");
day_17.totalTypes = 8;
day_17.zombiePool = 55;
day_17.zombieSlow = 10;
day_17.zombieFast = 10;
day_17.zombieSprint = 10;
day_17.zombieFatManSprint = 5;
day_17.zombieFatWomanSprint = 5;
day_17.zombieFatWoman = 5;
day_17.zombieFatMan = 9;
day_17.zombieSoldier = 1;
day_17.spawnRate = 35;
day_18 = new Object();
day_18.zombieTypes = new Array("zombieFatCop", "zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow");
day_18.totalTypes = 8;
day_18.zombiePool = 55;
day_18.zombieSlow = 10;
day_18.zombieFast = 10;
day_18.zombieSprint = 10;
day_18.zombieFatManSprint = 5;
day_18.zombieFatWomanSprint = 5;
day_18.zombieFatWoman = 5;
day_18.zombieFatMan = 7;
day_18.zombieFatCop = 3;
day_18.spawnRate = 35;
day_19 = new Object();
day_19.zombieTypes = new Array("zombieClown", "zombieSoldier", "zombieFatCop", "zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow");
day_19.totalTypes = 10;
day_19.zombiePool = 66;
day_19.zombieSlow = 5;
day_19.zombieFast = 10;
day_19.zombieSprint = 15;
day_19.zombieFatManSprint = 3;
day_19.zombieFatWomanSprint = 7;
day_19.zombieFatWoman = 5;
day_19.zombieFatMan = 7;
day_19.zombieFatCop = 3;
day_19.zombieSoldier = 10;
day_19.zombieClown = 1;
day_19.spawnRate = 35;
day_20 = new Object();
day_20.zombieTypes = new Array("zombieSoldier", "zombieFatCop", "zombieFatMan", "zombieFatWoman", "zombieFatWomanSprint", "zombieFatManSprint", "zombieSprint", "zombieFast", "zombieSlow");
day_20.totalTypes = 9;
day_20.zombiePool = 71;
day_20.zombieSlow = 5;
day_20.zombieFast = 10;
day_20.zombieSprint = 15;
day_20.zombieFatManSprint = 3;
day_20.zombieFatWomanSprint = 7;
day_20.zombieFatWoman = 5;
day_20.zombieFatMan = 7;
day_20.zombieFatCop = 3;
day_20.zombieSoldier = 15;
day_20.zombieClown = 1;
day_20.spawnRate = 35;
saveLevelData();
function stopMainMusic() {
_root.bgMusic.stop();
}
bgMusic = new Sound(musicAmbience);
bgMusic.attachSound("inGameMusic");
bgMusic.setVolume(10);
musicIsPlaying = true;
ambientSound = new Sound(musicAmbience);
ambientSound.attachSound("BGAmbience");
ambientSound.setVolume(10);
ambientSound.start(0, 999999);
function checkPenetration() {
if (_root[currentWeapon].penetrates == true) {
roundsOnScreen[k].penetrateCount++;
if (roundsOnScreen[k].penetrateCount >= _root[currentWeapon].goesThrough) {
enemyOnScreen[j].ref.penetrateCount.text = roundsOnScreen[k].penetrateCount;
roundsOnScreen[k].ref.removeMovieClip();
roundsOnScreen.splice(k, 1);
}
} else {
roundsOnScreen[k].ref.removeMovieClip();
roundsOnScreen.splice(k, 1);
}
}
function chargeThrow() {
throwCharge++;
}
function thrownWeapon(weaponName) {
if ((ammoInMag >= 1) && (reloading == false)) {
clearInterval(chargingThrow);
ammoInMag = ammoInMag - 1;
if (_root.throwCharge >= _root.throwChargeMax) {
_root.throwCharge = _root.throwChargeMax;
}
thrownNumber++;
var _local4 = _root.attachMovie(_root[currentWeapon].name, "thrown" + thrownNumber, thrownNumber + 37000);
thrownWeaponsOnScreen.push({ref:_root["thrown" + _local4]});
var _local5 = new Object();
_local5.x = mainGunRef.barrelEnd._x;
_local5.y = mainGunRef.barrelEnd._y;
mainGunRef.localToGlobal(_local5);
_local4.grenadeGraph._rotation = random(360);
_local4._x = _local5.x - random(50);
_local4._y = _local5.y;
_local4.angle = currentAngle - random(_root[currentWeapon].accuracy);
_local4._rotation = round.angle;
_local4.initGravity = false;
_local4.thrownWeaponTimer = 0;
_local4.onEnterFrame = function () {
this.thrownWeaponTimer++;
if (this.initGravity == false) {
this.ySpeed = _root.ySpeed;
this.xSpeed = -_root.throwCharge;
this.gravity = _root.gravity;
this.bounce = _root.bounce;
this.ground = _root.mainChar._y + 100;
this.initGravity = true;
_root.throwCharge = _root.throwChargeMin;
}
if (this._y < this.ground) {
this.ySpeed = this.ySpeed + this.gravity;
} else if (this.ySpeed > (this.gravity * 4)) {
this._y = this.ground;
this.ySpeed = this.ySpeed * (-this.bounce);
} else {
this.ySpeed = 0;
this._y = this.ground;
}
this._y = this._y + this.ySpeed;
if (this.xSpeed < 2) {
this._x = this._x + this.xSpeed;
this.xSpeed = this.xSpeed * 0.95;
this.grenadeGraph._rotation = this.grenadeGraph._rotation + (random(4) + 3);
}
if (this.thrownWeaponTimer >= _root[currentWeapon].timer) {
explosionNumber++;
_root.attachMovie("explosion_grenade", "grensplosion" + explosionNumber, explosionNumber + 48000);
_root["grensplosion" + explosionNumber]._x = this._x;
_root["grensplosion" + explosionNumber]._y = this._y;
_root["grensplosion" + explosionNumber].play;
this.thrownWeaponTimer = 0;
for (s in aliveZombies) {
zombieExplodeCount++;
var _local3 = Math.round(Math.sqrt(((aliveZombies[s].ref._x - this._x) * (aliveZombies[s].ref._x - this._x)) + (((aliveZombies[s].ref._y + 20) - this._y) * ((aliveZombies[s].ref._y + 20) - this._y))));
aliveZombies[s].ref.zombieGrenProx.text = _local3;
if (_local3 < 105) {
aliveZombies[s].health = aliveZombies[s].health - 1000;
if (((aliveZombies[s].health <= 0) && (aliveZombies[s].dead == false)) && (aliveZombies[s].beingExploded == false)) {
aliveZombies[s].ref.stopTween();
aliveZombies[s].dead = true;
aliveZombies[s].beingExploded = true;
aliveZombies[s].ref.gotoAndPlay("exploded1");
deathSound = new Sound(stageBG);
if (aliveZombies[s].type == "zombieDog") {
deathSound.attachSound("sound_dogDeath_" + (random(5) + 1));
} else {
deathSound.attachSound("sound_zombieDeath_" + (random(11) + 1));
}
deathSound.setVolume(100);
deathSound.start(0, 1);
zombiesKilled++;
aliveZombies[s].dead = true;
aliveZombies[s].ref.gotoAndPlay("exploded1");
aliveZombies.splice(s, 1);
}
}
}
delete this.onEnterFrame;
removeMovieClip(this);
}
};
}
}
function blowThisZombie(zombieToExplode) {
zombieToExplode.gotoAndPlay("exploded1");
}
thrownNumber = 0;
explosionNumber = 0;
zombieExplodeCount = 0;
throwCharge = 0;
throwChargeMin = 15;
throwChargeMax = 50;
ySpeed = -15;
xSpeed = -32;
gravity = 3;
bounce = 0.5;
ground = _root.mainChar._y + 100;
function activateHelpers(numberToActivate) {
z = -1;
while (z < maxHelpers) {
if (numberToActivate > 0) {
numberToActivate--;
helpersOnScreen[z].active = true;
helpersOnScreen[z].killed = false;
helpersOnScreen[z].running = false;
helpersOnScreen[z].ammoInMag = helpersOnScreen[z].maxAmmo;
} else {
helpersOnScreen[z].active = false;
}
placeHelpers(z);
z++;
}
}
function placeHelpers(numberToPlace) {
p = -1;
while (p < totalHelpers) {
if (helpersOnScreen[p].active == true) {
helpersOnScreen[p].ref.gotoAndStop(1);
helpersOnScreen[p].ref.helperMainGun.gotoAndStop(1);
helpersOnScreen[p].running = false;
helpersOnScreen[p].helperReloading = false;
helpersOnScreen[p].currentShotDelay = 50;
if (helpersOnScreen[p].alreadyPlaced == false) {
helpersOnScreen[p].alreadyPlaced = true;
decorateHelper(helpersOnScreen[p].ref._name);
}
helpersOnScreen[p].ref._visible = true;
helpersOnScreen[p].ref.onEnterFrame = function () {
_root.survivorHelperFire(this._name);
};
} else {
helpersOnScreen[p].active = false;
helpersOnScreen[p].killed = true;
helpersOnScreen[p].alreadyPlaced = false;
helpersOnScreen[p].ref._visible = false;
delete helpersOnScreen[p].ref.onEnterFrame;
}
p++;
}
}
function decorateHelper(helperName) {
_root[helperName].helperMainGun.helperGun.gotoAndStop(_root[helperName + "_Object"].currentWeapon);
randomTorsoColour = torsoColours[random(torsoColours.length)];
_root[helperName].helperMainGun.dummyHead.gotoAndStop("survivor_head" + random(10));
_root[helperName].helperMainGun.dummyFrontHand.attachMovie("survivorHand" + randomZombieTorso, "torso", x);
_root[helperName].helperMainGun.dummyBackHand.attachMovie("survivorHand" + randomZombieTorso, "torso", x);
_root[helperName].dummyHead.head.accessories.gotoAndStop(randomHeadAccessory);
_root[helperName].dummyTorso.torsoAddons.gotoAndStop(randomTorsoAccessory);
_root[helperName].dummyTorso.torso.colorTo(randomTorsoColour, 0);
_root[helperName].helperMainGun.dummyFrontUpperArm.upperArm.colorTo(randomTorsoColour, 0);
_root[helperName].helperMainGun.dummyFrontLowerArm.lowerArm.colorTo(randomTorsoColour, 0);
_root[helperName].helperMainGun.dummyBackUpperArm.upperArm.colorTo(randomTorsoColour, 0);
_root[helperName].helperMainGun.dummyBackLowerArm.lowerArm.colorTo(randomTorsoColour, 0);
randomLegColour = legColours[random(legColours.length)];
_root[helperName].dummyFrontUpperLeg.upperLeg.colorTo(randomLegColour, 0);
_root[helperName].dummyFrontLowerLeg.lowerLeg.colorTo(randomLegColour, 0);
_root[helperName].dummyBackUpperLeg.upperLeg.colorTo(randomLegColour, 0);
_root[helperName].dummyBackLowerLeg.lowerLeg.colorTo(randomLegColour, 0);
_root[helperName].cacheAsBitmap = true;
}
function helperFinishedLoad(firedBy) {
_root[firedBy + "_Object"].ammoInMag = _root[firedBy + "_Object"].maxAmmo;
_root[firedBy + "_Object"].helperReloading = false;
clearInterval(_root[firedBy + "Reload"]);
}
function survivorHelperFire(firedBy) {
_root[firedBy + "_Object"].running = false;
_root[firedBy + "_Object"].currentShotDelay--;
runTimer--;
if (((gamePaused == false) && (_root[firedBy + "_Object"].currentShotDelay <= 0)) && (_root[firedBy + "_Object"].ammoInMag >= 1)) {
_root[firedBy + "_Object"].firing = false;
_root[firedBy + "_Object"].currentShotDelay = 50 + random(10);
if (((wall.health < 750) && (_root[firedBy + "_Object"].running == false)) && (runTimer <= 0)) {
_root[firedBy].helperMainGun.gotoAndPlay("scared");
_root[firedBy].gotoAndPlay("runAway");
_root[firedBy + "_Object"].running = true;
runTimer = runTimerMax;
delete _root[firedBy].onEnterFrame;
}
if ((_root[firedBy + "_Object"].helperReloading == false) && (_root[firedBy + "_Object"].running == false)) {
_root[firedBy].helperMainGun.gotoAndStop("handgun_firing");
clearInterval(_root[firedBy + "Reload"]);
if (_root[firedBy + "_Object"].firing == false) {
_root[firedBy + "_Object"].firing = true;
for (p in aliveZombies) {
_root[firedBy].proxX = _root[firedBy]._x - aliveZombies[p].ref._x;
if (((_root[firedBy].proxX < 600) && (aliveZombies[p].ref._y >= (_root[firedBy]._y - 40))) && (aliveZombies[p].ref._y <= (_root[firedBy]._y + 50))) {
bullet++;
_root[firedBy + "_Object"].ammoInMag--;
_root[firedBy].helperMainGun.helperGun.muzzleFlash.play();
firingHelperSound = new Sound(firedBy);
firingHelperSound.attachSound(("sound_" + _root[firedBy + "_Object"].currentWeapon) + "Fire");
firingHelperSound.setVolume(40);
firingHelperSound.start(0, 1);
var _local4 = new Object();
_local4.x = _root[firedBy].helperMainGun.helperGun.barrelEnd._x;
_local4.y = _root[firedBy].helperMainGun.helperGun.barrelEnd._y;
_root[firedBy].localToGlobal(_local4);
var helperRound = _root.attachMovie("round", "helperRound" + bullet, bullet + 100);
helperRound.gotoAndStop("off");
helperRound._x = _local4.x;
helperRound._y = _local4.y;
helperRound.angle = random(8) - 4;
helperRound._rotation = helperRound.angle;
helperRound.onEnterFrame = function () {
var _local2 = Math.cos((helperRound.angle * Math.PI) / 180) * 90;
var _local3 = Math.sin((helperRound.angle * Math.PI) / 180) * 80;
this._x = this._x - _local2;
this._y = this._y - _local3;
};
_root[firedBy].helperMainGun.gotoAndPlay("fire");
roundsOnScreen.push({ref:_root["helperRound" + bullet], damage:_root[_root[firedBy + "_Object"].currentWeapon].damage, headShotDamage:_root[_root[firedBy + "_Object"].currentWeapon].headShotDamage});
break;
}
}
}
}
} else if (((_root[firedBy + "_Object"].ammoInMag <= 0) && (_root[firedBy + "_Object"].helperReloading == false)) && (_root[firedBy + "_Object"].running == false)) {
_root[firedBy].helperMainGun.gotoAndPlay("handgun_reload");
_root[firedBy + "_Object"].helperReloading = true;
_root[firedBy + "Reload"] = setInterval(helperFinishedLoad, 2500, firedBy);
}
}
helpers = 7;
totalHelpers = 7;
totalHelpersCount = 0;
maxHelpers = 7;
helperTotal = 0;
helpersToRemove = 0;
currentRemove = 0;
removeCount = 0;
runTimer = 20;
runTimerMax = 20;
survivorCount = 0;
numberToActivate = 0;
numberToDeactivate = 0;
activateCount = 0;
endOfArray = 0;
AIHelp0_Object = new Object();
AIHelp0_Object.currentWeapon = "snubnose";
AIHelp0_Object.active = false;
AIHelp0_Object.maxAmmo = _root["" + AIHelp0_Object.currentWeapon].magazineCapacity;
AIHelp0_Object.ammoInMag = AIHelp0_Object.maxAmmo;
AIHelp0_Object.helperReloading = false;
AIHelp0_Object.running = false;
AIHelp1_Object.firing = false;
AIHelp1_Object = new Object();
AIHelp1_Object.currentWeapon = "pistol";
AIHelp1_Object.active = false;
AIHelp1_Object.maxAmmo = _root["" + AIHelp1_Object.currentWeapon].magazineCapacity;
AIHelp1_Object.ammoInMag = AIHelp1_Object.maxAmmo;
AIHelp1_Object.helperReloading = false;
AIHelp1_Object.running = false;
AIHelp1_Object.firing = false;
AIHelp2_Object = new Object();
AIHelp2_Object.currentWeapon = "pistol";
AIHelp2_Object.active = false;
AIHelp2_Object.maxAmmo = _root["" + AIHelp2_Object.currentWeapon].magazineCapacity;
AIHelp2_Object.ammoInMag = AIHelp2_Object.maxAmmo;
AIHelp2_Object.helperReloading = false;
AIHelp2_Object.running = false;
AIHelp2_Object.firing = false;
AIHelp3_Object = new Object();
AIHelp3_Object.currentWeapon = "revolver";
AIHelp3_Object.active = false;
AIHelp3_Object.maxAmmo = _root["" + AIHelp3_Object.currentWeapon].magazineCapacity;
AIHelp3_Object.ammoInMag = AIHelp3_Object.maxAmmo;
AIHelp3_Object.helperReloading = false;
AIHelp3_Object.running = false;
AIHelp3_Object.firing = false;
AIHelp4_Object = new Object();
AIHelp4_Object.currentWeapon = "snubnose";
AIHelp4_Object.active = false;
AIHelp4_Object.maxAmmo = _root["" + AIHelp4_Object.currentWeapon].magazineCapacity;
AIHelp4_Object.ammoInMag = AIHelp4_Object.maxAmmo;
AIHelp4_Object.helperReloading = false;
AIHelp4_Object.running = false;
AIHelp4_Object.firing = false;
AIHelp5_Object = new Object();
AIHelp5_Object.currentWeapon = "huntingRifle";
AIHelp5_Object.active = false;
AIHelp5_Object.maxAmmo = _root["" + AIHelp5_Object.currentWeapon].magazineCapacity;
AIHelp5_Object.ammoInMag = AIHelp5_Object.maxAmmo;
AIHelp5_Object.helperReloading = false;
AIHelp5_Object.running = false;
AIHelp5_Object.firing = false;
helpersOnScreen = new Array();
while (totalHelpersCount < totalHelpers) {
helpersOnScreen.push({ref:_root["AIHelp" + totalHelpersCount], active:false, alreadyPlaced:false, killed:false, running:false});
totalHelpersCount++;
}
placeHelpers(6);
function checkWallStatus() {
if ((wall.health == wall.maxHealth) || (wall.health >= ((wall.maxHealth * 91) / 100))) {
_root.theWall.gotoAndStop("full");
wall.destroyed = false;
} else if ((wall.health <= ((wall.maxHealth * 90) / 100)) && (wall.health >= ((wall.maxHealth * 71) / 100))) {
_root.theWall.gotoAndStop("90_PERCENT");
wall.destroyed = false;
} else if ((wall.health <= ((wall.maxHealth * 70) / 100)) && (wall.health >= ((wall.maxHealth * 51) / 100))) {
_root.theWall.gotoAndStop("70_PERCENT");
wall.destroyed = false;
} else if ((wall.health <= ((wall.maxHealth * 50) / 100)) && (wall.health >= ((wall.maxHealth * 31) / 100))) {
_root.theWall.gotoAndStop("50_PERCENT");
wall.destroyed = false;
} else if ((wall.health <= ((wall.maxHealth * 30) / 100)) && (wall.health >= ((wall.maxHealth * 11) / 100))) {
_root.theWall.gotoAndStop("30_PERCENT");
wall.destroyed = false;
} else if (wall.health <= ((wall.maxHealth * 10) / 100)) {
_root.theWall.gotoAndStop("10_PERCENT");
wall.destroyed = false;
} else if ((wall.health <= 0) && (!wallAnimatedDestroyed)) {
_root.theWall.gotoAndStop("destroyed");
}
}
wall = new Object();
wall.health = 10000;
wall.maxHealth = 10000;
wall.destroyed = false;
startOfLevelWallHealth = wall.health;
Instance of Symbol 1172 MovieClip "bgImage" in Frame 5
/* no clip actions */
Instance of Symbol 1175 MovieClip "stageBG" in Frame 5
onClipEvent (load) {
_root.fireButton(this._name);
}
Instance of Symbol 1181 MovieClip "blockFront" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1183 MovieClip "blockTop" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1185 MovieClip "blockBack" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1186 MovieClip "blockBottom" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 25 MovieClip "game" in Frame 5
onClipEvent (load) {
_root.gameStopStart(this._name);
}
Instance of Symbol 25 MovieClip "makeEnemy" in Frame 5
onClipEvent (load) {
_root.enemyStopStart(this._name);
}
Instance of Symbol 1438 MovieClip in Frame 5
on (release) {
_root.loadOptions();
}
on (rollOver) {
this.menuText.alphaTo(100, 0.5, "easeOutSine");
}
on (rollOut) {
this.menuText.alphaTo(0, 0.8, "easeOutSine");
}
Symbol 4 MovieClip [performanceTester] Frame 1
function doEnterFrame() {
f++;
if ((f % c) == 0) {
var _local2 = getTimer();
var _local3 = _local2 - lastMeasured;
lastMeasured = _local2;
var _local1 = (c / _local3) * 1000;
framerate_txt.text = "fps = " + String(setFloatPrecision(_local1, 2));
createGraphPixel(f / c, displayRoot.bg._height - _local1);
}
}
function createBackdrop() {
var _local4 = [2, 128, 40, false, "normal", "round", "round", 3];
var _local1 = 200;
bgWidth = _local1;
var _local3 = 120;
var _local2 = createRectangle(displayRoot, "bg", 16777215, 100, _local1, _local3, _local4);
_local2._x = 10;
_local2._y = 50;
}
function createGraphDisplay(yval) {
var _local1 = createMc(displayRoot.bg, "displayClip");
_local1.lineStyle(1, 10485760, 70, false, "normal", "round", "round", 3);
if (yval == undefined) {
yval = displayRoot.bg._height - 12;
}
_local1.moveTo(1, yval);
}
function createGraphPixel(x, y) {
var _local1 = x % bgWidth;
if (_local1 == 0) {
displayRoot.bg.displayClip.removeMovieClip();
createGraphDisplay(y);
}
if (_local1 > 0) {
history.push({frame:x * 10, fps:y});
displayRoot.bg.displayClip.lineTo(_local1, y);
}
}
function setFloatPrecision(inValue, decimals) {
d = Math.pow(10, decimals);
return(Math.round(inValue * d) / d);
}
function createRectangle(attachTimeLine, idName, bgCol, alpha, width, height, lineStyle, depth) {
if (depth == undefined) {
depth = attachTimeLine.getNextHighestDepth();
}
var _local1 = attachTimeLine.createEmptyMovieClip(idName, depth);
_local1.beginFill(bgCol, alpha);
_local1.lineStyle.apply(_local1, lineStyle);
_local1.lineTo(0, height);
_local1.lineTo(width, height);
_local1.lineTo(width, 0);
_local1.lineTo(0, 0);
return(_local1);
}
function createMc(attachTimeLine, idName, depth, dynamicNaming) {
if (depth == undefined) {
depth = attachTimeLine.getNextHighestDepth();
}
if (dynamicNaming) {
var _local2 = attachTimeLine.createEmptyMovieClip(idName + String(depth), depth);
} else {
var _local2 = attachTimeLine.createEmptyMovieClip(idName, depth);
}
return(_local2);
}
var displayRoot = this;
var history;
var lastMeasured = getTimer();
var f = 0;
var c = 10;
var bgWidth;
createBackdrop();
createGraphDisplay();
this.onEnterFrame = doEnterFrame;
this.onPress = function () {
this.onMouseMove = function () {
updateAfterEvent();
};
this.startDrag();
};
this.onRelease = function () {
this.onMouseMove = null;
this.stopDrag();
};
Symbol 77 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 12
stop();
Symbol 84 MovieClip Frame 22
stop();
Symbol 84 MovieClip Frame 31
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip "dummyHead" in Symbol 112 MovieClip Frame 1
/* no clip actions */
Symbol 112 MovieClip Frame 18
gotoAndStop ("handgun_fire");
Symbol 112 MovieClip Frame 91
gotoAndStop ("handgun_fire");
Symbol 112 MovieClip Frame 101
stop();
Symbol 113 MovieClip [survivorDummy] Frame 1
stop();
Symbol 113 MovieClip [survivorDummy] Frame 33
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
Symbol 260 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 410 MovieClip [bloodPack1] Frame 1
stop();
Symbol 410 MovieClip [bloodPack1] Frame 9
stop();
Symbol 410 MovieClip [bloodPack1] Frame 19
stop();
Symbol 410 MovieClip [bloodPack1] Frame 26
stop();
Symbol 410 MovieClip [bloodPack1] Frame 34
stop();
Symbol 410 MovieClip [bloodPack1] Frame 41
stop();
Symbol 410 MovieClip [bloodPack1] Frame 50
stop();
Symbol 410 MovieClip [bloodPack1] Frame 58
stop();
Symbol 410 MovieClip [bloodPack1] Frame 67
stop();
Symbol 424 MovieClip [zombieDog] Frame 1
_root.zombieGroanSound("dog");
Instance of Symbol 412 MovieClip "torso" in Symbol 424 MovieClip [zombieDog] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 412 MovieClip "reach" in Symbol 424 MovieClip [zombieDog] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 424 MovieClip [zombieDog] Frame 10
gotoAndPlay ("walk1");
Symbol 424 MovieClip [zombieDog] Frame 32
stop();
Symbol 424 MovieClip [zombieDog] Frame 76
stop();
Symbol 424 MovieClip [zombieDog] Frame 103
gotoAndPlay ("idlestop1");
Symbol 424 MovieClip [zombieDog] Frame 147
gotoAndPlay ("eating");
Instance of Symbol 412 MovieClip "collision" in Symbol 427 MovieClip [round] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 427 MovieClip [round] Frame 2
stop();
Symbol 427 MovieClip [round] Frame 3
stop();
Symbol 434 MovieClip [bloodPack2] Frame 1
stop();
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 442 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 16
stop();
Symbol 451 MovieClip Frame 26
stop();
Symbol 451 MovieClip Frame 33
stop();
Symbol 451 MovieClip Frame 41
stop();
Symbol 451 MovieClip Frame 48
stop();
Symbol 451 MovieClip Frame 57
stop();
Symbol 451 MovieClip Frame 65
stop();
Symbol 451 MovieClip Frame 74
stop();
Symbol 650 MovieClip [newZombie] Frame 1
_root.zombieGroanSound("fast");
Instance of Symbol 440 MovieClip "dummyHead" in Symbol 650 MovieClip [newZombie] Frame 1
/* no clip actions */
Instance of Symbol 412 MovieClip "head" in Symbol 650 MovieClip [newZombie] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 412 MovieClip "legs" in Symbol 650 MovieClip [newZombie] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 412 MovieClip "torso" in Symbol 650 MovieClip [newZombie] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 412 MovieClip "reach" in Symbol 650 MovieClip [newZombie] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 650 MovieClip [newZombie] Frame 35
gotoAndPlay ("walk1");
Symbol 650 MovieClip [newZombie] Frame 41
_root.zombieGroanSound("slow");
Symbol 650 MovieClip [newZombie] Frame 72
gotoAndPlay ("walk2");
Symbol 650 MovieClip [newZombie] Frame 80
_root.zombieGroanSound("Sprint");
Symbol 650 MovieClip [newZombie] Frame 96
gotoAndPlay ("walk3");
Symbol 650 MovieClip [newZombie] Frame 163
gotoAndPlay ("idlestop1");
Symbol 650 MovieClip [newZombie] Frame 178
_root.zombieHitWallSound();
Symbol 650 MovieClip [newZombie] Frame 187
gotoAndPlay ("idlestop1");
Symbol 650 MovieClip [newZombie] Frame 214
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 235
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 261
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 288
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 309
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 337
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 376
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 409
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 452
setTimeout(_root.removeThisZombie, _root.removeZombieDelay, this._name);
stop();
Symbol 650 MovieClip [newZombie] Frame 479
_root.hero.isAlive = false;
Symbol 650 MovieClip [newZombie] Frame 532
gotoAndPlay ("eat");
Symbol 650 MovieClip [newZombie] Frame 565
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 10
stop();
Symbol 670 MovieClip [grenade] Frame 1
stop();
Symbol 671 MovieClip [explosion_grenade] Frame 2
boomSound = new Sound(stageBG);
boomSound.attachSound("sound_explosion");
boomSound.setVolume(100);
boomSound.start(0, 1);
Symbol 671 MovieClip [explosion_grenade] Frame 59
stop();
removeMovieClip(this);
Symbol 673 MovieClip [shellcasing_pistol_3] Frame 20
removeMovieClip(this);
Symbol 674 MovieClip [shellcasing_Pistol_1] Frame 21
removeMovieClip(this);
Symbol 675 MovieClip [shellcasing_Pistol_2] Frame 21
removeMovieClip(this);
Symbol 676 MovieClip [shellcasing_rifle_1] Frame 19
stop();
removeMovieClip(this);
Symbol 677 MovieClip [shellcasing_rifle_2] Frame 19
stop();
removeMovieClip(this);
Symbol 678 MovieClip [shellcasing_rifle_3] Frame 19
stop();
removeMovieClip(this);
Symbol 680 MovieClip [shellcasing_Shotgun1] Frame 36
removeMovieClip(this);
Symbol 681 MovieClip [shellcasing_Shotgun2] Frame 37
removeMovieClip(this);
Symbol 731 MovieClip [soundHolder] Frame 1
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 1
stop();
Symbol 750 MovieClip [optionsMenu] Frame 1
stop();
Instance of Symbol 743 MovieClip "MAIN MENU" in Symbol 750 MovieClip [optionsMenu] Frame 1
onClipEvent (load) {
_root.optionsButtons(this._name);
}
Instance of Symbol 743 MovieClip "RESUME" in Symbol 750 MovieClip [optionsMenu] Frame 1
onClipEvent (load) {
_root.optionsButtons(this._name);
}
Instance of Symbol 743 MovieClip "QUALITY" in Symbol 750 MovieClip [optionsMenu] Frame 1
onClipEvent (load) {
_root.optionsButtons(this._name);
}
Symbol 766 Button
on (release) {
_root.loadJournalFromLoadOut();
}
Instance of Symbol 809 MovieClip "barrett" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "chainsaw" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "pistol" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "revolver" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "UMP" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "huntingRifle" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "AK47" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "M4A1" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "shotgun" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "sawnOff" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 809 MovieClip "UZI" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponRackButtons(this._name);
}
Instance of Symbol 811 MovieClip "secondary" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponSlotButtons(this._name);
}
Instance of Symbol 811 MovieClip "primary" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_root.weaponSlotButtons(this._name);
}
Symbol 825 Button
on (release) {
_root.closeManager();
}
Symbol 831 Button
on (release) {
_root.confirmResults();
}
Symbol 866 Button
on (release) {
_root.confirmTimeManagement();
}
Instance of Symbol 865 MovieClip "barricadeMinus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Instance of Symbol 865 MovieClip "weaponsMinus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Instance of Symbol 865 MovieClip "survivorsMinus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Instance of Symbol 865 MovieClip "barricadePlus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Instance of Symbol 865 MovieClip "weaponsPlus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Instance of Symbol 865 MovieClip "survivorsPlus" in Symbol 877 MovieClip Frame 1
onClipEvent (load) {
_root.clipBoardButtons(this._name);
}
Symbol 878 MovieClip [timeManager] Frame 1
stop();
Symbol 878 MovieClip [timeManager] Frame 2
stop();
Instance of Symbol 920 MovieClip "creditList" in Symbol 922 MovieClip [credits] Frame 1
/* no clip actions */
Instance of Symbol 946 MovieClip "BACK" in Symbol 947 MovieClip [instructionsMenu] Frame 1
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
function removeParent() {
removeMovieClip(_parent);
loadFromInstructions(mainMenu);
}
_parent.alphaTo(0, 0.8, "easeOutSine", 0, removeParent);
};
}
Symbol 951 MovieClip Frame 36
stop();
Instance of Symbol 958 MovieClip "MAIN MENU" in Symbol 959 MovieClip [gameOver] Frame 1
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
function removeParentGameOver() {
_root.cleanUpScreen();
_root.gotoAndStop("main");
removeMovieClip(_parent);
}
_parent.mainBlackOut.alphaTo(100, 2, "easeOutSine", 0, removeParentGameOver);
};
}
Instance of Symbol 958 MovieClip "RETRY" in Symbol 959 MovieClip [gameOver] Frame 1
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
function removeParentGameOverRetry() {
_root.cleanUpScreen();
_root.retryLevelAgain();
removeMovieClip(_root.gameOver);
}
_root.mainBlackOut._visible = true;
_root.mainBlackOut.alphaTo(100, 2, "easeOutSine", 0, removeParentGameOverRetry);
};
}
Instance of Symbol 958 MovieClip "VISIT ARMORGAMES.COM" in Symbol 959 MovieClip [gameOver] Frame 1
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
}
Symbol 992 MovieClip Frame 1
Symbol 997 MovieClip Frame 1
Symbol 1003 MovieClip Frame 1
Symbol 1003 MovieClip Frame 13
Symbol 1011 MovieClip Frame 29
Symbol 1020 MovieClip [endingAnimation] Frame 393
this.blackhawk1.frontWindowGunner.gotoAndPlay("waving");
Instance of Symbol 958 MovieClip "MAIN MENU" in Symbol 1020 MovieClip [endingAnimation] Frame 829
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
_root.cleanUpScreen();
_root.gotoAndPlay(1);
removeMovieClip(_root.endingAnim);
};
}
Instance of Symbol 958 MovieClip "VISIT ARMORGAMES.COM" in Symbol 1020 MovieClip [endingAnimation] Frame 833
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
getURL ("http://www.armorgames.com/", "_blank");
};
}
Instance of Symbol 958 MovieClip "MAIN MENU" in Symbol 1020 MovieClip [endingAnimation] Frame 839
onClipEvent (load) {
this.butLabel.text = this._name;
this.onRelease = function () {
_root.cleanUpScreen();
_root.gotoAndStop("main");
removeMovieClip(_root.endingAnim);
};
}
Symbol 1020 MovieClip [endingAnimation] Frame 1384
stop();
Symbol 1045 MovieClip Frame 63
gotoAndPlay (2);
Symbol 1060 MovieClip Frame 1
stop();
Symbol 1060 MovieClip Frame 875
gotoAndPlay ("loop");
Instance of Symbol 1068 MovieClip "PLAY MORE GAMES" in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
_root.mainButtons(this._name);
}
Instance of Symbol 1068 MovieClip "OPTIONS" in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
_root.mainButtons(this._name);
}
Instance of Symbol 1068 MovieClip "INSTRUCTIONS" in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
_root.mainButtons(this._name);
}
Instance of Symbol 1068 MovieClip "PLAY" in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
_root.mainButtons(this._name);
}
Instance of Symbol 1068 MovieClip "CREDITS" in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
_root.mainButtons(this._name);
}
Symbol 1078 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1085 MovieClip Frame 2
menuMusic = new Sound(mainMenu);
menuMusic.attachSound("AG_beat");
menuMusic.setVolume(100);
menuMusic.start(0, 1);
Symbol 1085 MovieClip Frame 11
menuMusic = new Sound(mainMenu);
menuMusic.attachSound("AG_chorus");
menuMusic.setVolume(100);
menuMusic.start(0, 1);
Symbol 1085 MovieClip Frame 53
menuMusic = new Sound(mainMenu);
menuMusic.attachSound("AG_sword");
menuMusic.setVolume(100);
menuMusic.start(0, 1);
Symbol 1085 MovieClip Frame 82
stop();
Symbol 1119 MovieClip Frame 201
stop();
Symbol 1120 MovieClip Frame 110
conArtistSting = new Sound(mainMenu);
conArtistSting.attachSound("conArtistSting");
conArtistSting.setVolume(100);
conArtistSting.start(0, 1);
Symbol 1120 MovieClip Frame 335
stop();
_root.mainMenu.bloodSplatter._visible = true;
_root.mainMenu.noise._visible = true;
Instance of Symbol 1045 MovieClip "noise" in Symbol 1121 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1060 MovieClip "bloodSplatter" in Symbol 1121 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1069 MovieClip "mainMenuButtons" in Symbol 1121 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1074 MovieClip "skipButton" in Symbol 1121 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.onRelease = function () {
_root.loadWholeMenuNow();
};
}
Instance of Symbol 922 MovieClip [credits] "credits" in Symbol 1121 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.onRelease = function () {
_root.closeCredits();
};
}
Symbol 1121 MovieClip Frame 25
stop();
Symbol 1131 Button
on (release) {
_root.closeJournal();
}
Symbol 1192 MovieClip Frame 13
stop();
Symbol 1195 MovieClip Frame 6
stop();
Symbol 1198 MovieClip Frame 17
stop();
Symbol 1201 MovieClip Frame 19
stop();
Symbol 1204 MovieClip Frame 17
stop();
Symbol 1209 MovieClip Frame 1
stop();
Symbol 1209 MovieClip Frame 15
stop();
Symbol 1209 MovieClip Frame 29
stop();
Symbol 1209 MovieClip Frame 45
stop();
Symbol 1209 MovieClip Frame 62
stop();
Symbol 1209 MovieClip Frame 81
stop();
Symbol 1209 MovieClip Frame 98
stop();
Symbol 1209 MovieClip Frame 113
stop();
Symbol 1223 MovieClip Frame 1
stop();
Symbol 1223 MovieClip Frame 12
stop();
Symbol 1223 MovieClip Frame 22
stop();
Symbol 1223 MovieClip Frame 31
stop();
Symbol 1245 MovieClip [muzzleFlash_pistol] Frame 1
stop();
Symbol 1262 MovieClip Frame 1
stop();
Symbol 1273 MovieClip Frame 1
stop();
Symbol 1280 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 1302 MovieClip Frame 1
stop();
Symbol 1302 MovieClip Frame 16
gotoAndPlay ("loop");
Symbol 1305 MovieClip Frame 7
gotoAndPlay ("loop");
Symbol 1310 MovieClip Frame 1
stop();
Symbol 1310 MovieClip Frame 16
gotoAndPlay ("loop");
Symbol 1339 MovieClip Frame 1
stop();
Symbol 1339 MovieClip Frame 15
gotoAndPlay ("loop");
Symbol 1339 MovieClip Frame 21
gotoAndStop (1);
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 26
gotoAndPlay ("loop");
Symbol 1344 MovieClip Frame 56
stop();
Symbol 1351 MovieClip Frame 1
stop();
Symbol 1358 MovieClip Frame 1
stop();
Symbol 1358 MovieClip Frame 16
gotoAndPlay ("loop");
Symbol 1366 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 16
gotoAndPlay ("loop");
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 15
gotoAndStop ("pistol");
Symbol 1390 MovieClip Frame 61
gotoAndStop ("pistol");
Symbol 1390 MovieClip Frame 88
gotoAndStop ("revolver");
Symbol 1390 MovieClip Frame 167
gotoAndStop ("revolver");
Symbol 1390 MovieClip Frame 168
stop();
Symbol 1390 MovieClip Frame 193
_root.pumpWeaponSound();
Symbol 1390 MovieClip Frame 218
gotoAndStop ("huntingRifle");
Symbol 1390 MovieClip Frame 274
gotoAndStop ("huntingRifle");
Symbol 1390 MovieClip Frame 294
_root.pumpWeaponSound();
Symbol 1390 MovieClip Frame 313
gotoAndStop ("shotgun");
Symbol 1390 MovieClip Frame 343
gotoAndPlay(("load_" + _root.shellsToLoad) + "_Shells");
Symbol 1390 MovieClip Frame 355
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 371
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 388
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 406
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 424
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 442
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 462
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 485
_root.ammoInMag = _root.ammoInMag + 1;
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 495
_root.pumpWeaponSound();
Symbol 1390 MovieClip Frame 518
gotoAndStop ("shotgun");
Symbol 1390 MovieClip Frame 585
gotoAndStop ("M4A1");
Symbol 1390 MovieClip Frame 649
gotoAndStop ("AK47");
Symbol 1390 MovieClip Frame 699
gotoAndStop ("UMP");
Symbol 1390 MovieClip Frame 800
gotoAndStop ("grenade");
Symbol 1390 MovieClip Frame 801
stop();
Symbol 1390 MovieClip Frame 825
gotoAndStop ("sawnOff");
Symbol 1390 MovieClip Frame 838
_root.pumpWeaponSound();
Symbol 1390 MovieClip Frame 857
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 868
_root.shellReloadSound();
Symbol 1390 MovieClip Frame 882
_root.pumpWeaponSound();
Symbol 1390 MovieClip Frame 887
gotoAndStop ("sawnOff");
Symbol 1390 MovieClip Frame 957
gotoAndStop ("UZI");
Symbol 1390 MovieClip Frame 995
gotoAndStop ("barrett");
Symbol 1390 MovieClip Frame 1045
gotoAndStop ("barrett");
Symbol 1404 MovieClip Frame 1
stop();
Symbol 1404 MovieClip Frame 65
gotoAndPlay ("loop");
Symbol 1409 Button
on (release) {
swapWeapon("shotgun");
}
Symbol 1410 Button
on (release) {
swapWeapon("huntingRifle");
}
Symbol 1411 Button
on (release) {
swapWeapon("pistol");
}
Symbol 1412 Button
on (release) {
swapWeapon("M4A1");
}
Symbol 1413 Button
on (release) {
swapWeapon("revolver");
}
Symbol 1414 Button
on (release) {
swapWeapon("AK47");
}
Symbol 1415 Button
on (release) {
swapWeapon("UMP");
}
Symbol 1416 Button
on (release) {
swapWeapon("chainsaw");
}
Symbol 1417 Button
on (release) {
swapWeapon("sawnOff");
}
Symbol 1418 Button
on (release) {
swapWeapon("UZI");
}
Symbol 1419 Button
on (release) {
swapWeapon("barrett");
}
Symbol 1420 Button
on (release) {
swapWeapon("grenade");
}
Symbol 1421 Button
on (release) {
zombiesKilled = _root["day_" + currentLevel].zombiePool;
}
Symbol 1423 Button
on (release) {
swapWeapon("M249");
}