Frame 1
_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.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 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) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (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);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
_global.TheRoot = this;
_global.TestLevel = 0;
_global.StartLevel = 1;
Frame 4
tb = getBytesTotal();
bl = getBytesLoaded() + 1;
pl = (bl / tb) * 100;
MC_LoaderBar.gotoAndStop(Math.round(pl));
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndPlay ("splash");
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 5
stop();
Frame 6
_global.TestLevel = 0;
Frame 10
stop();
Frame 14
stop();
Frame 15
if (_global.TestLevel != 0) {
_global.StartLevel = _global.TestLevel;
} else {
_global.StartLevel = 1;
}
_global.TheGame = new Game();
_global.TheGame.initializeGame(_global.StartLevel);
_global.TheGame.startGame();
_global.TheGame.startLevel();
Instance of Symbol 352 MovieClip "MC_NextLevel" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 356 MovieClip "MC_EndMessage" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Frame 20
stop();
Frame 25
stop();
Frame 30
stop();
Symbol 27 MovieClip [mc:powerups] Frame 1
stop();
Symbol 27 MovieClip [mc:powerups] Frame 2
stop();
Symbol 27 MovieClip [mc:powerups] Frame 3
stop();
Symbol 32 MovieClip [mc:weapons] Frame 1
stop();
Symbol 32 MovieClip [mc:weapons] Frame 2
stop();
Symbol 32 MovieClip [mc:weapons] Frame 3
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 380 MovieClip [__Packages.Game] Frame 0
class Game
{
var game_Data, game_Sounds, game_Background, game_Amy, game_Enemy1, game_Enemy2, game_EndOfLevel, game_Obstacle1, game_Obstacle2, game_Weapons, game_PowerUps;
function Game () {
game_Data = new Array();
game_Lives = 3;
game_HeadButts = 3;
game_Sounds = new Sounds();
}
function initializeGame(_glevel) {
game_Level = _glevel;
game_Background = new Background();
game_Amy = new Amy(_global.TheRoot.MC_Amy, game_Lives);
game_Enemy1 = new Enemy(_global.TheRoot.MC_Enemy1, 1);
game_Enemy2 = new Enemy(_global.TheRoot.MC_Enemy2, 2);
game_EndOfLevel = new EndOfLevel(_global.TheRoot.MC_EndOfLevel, 1);
game_Obstacle1 = new Obstacle(_global.TheRoot.MC_Obstacle1, 1);
game_Obstacle2 = new Obstacle(_global.TheRoot.MC_Obstacle2, 2);
game_Weapons = new Array();
game_ClockActive = false;
game_Sounds.playMusic();
}
function startGame() {
game_Time = game_Times[game_Level - 1];
game_StartTime = (game_NowTime = getTimer());
game_TimerInterval = setInterval(this, "updateClock", 1000);
game_ClockActive = true;
game_Background.initializeBackground(game_Level);
game_Background.startMoving();
}
function startLevel() {
game_Amy.initializeAmy();
if (game_Level == 1) {
game_Sounds.playSound("DontMakeMeGoToRehab");
_global.TheRoot.MC_ScoreBar.MC_Lives.gotoAndStop(game_Lives + 1);
_global.TheRoot.MC_ScoreBar.MC_HeadButts.gotoAndStop(game_HeadButts + 1);
game_TotalEnemies = game_EnemyLives[0] + game_EnemyLives[1];
game_Enemy1.initializeEnemy(1, game_EnemyLives[0]);
game_Enemy2.initializeEnemy(2, game_EnemyLives[1]);
game_Obstacle1.initializeObstacle(1);
game_Obstacle2.initializeObstacle(1);
game_Enemy1.setAction("walk");
game_Enemy2.setAction("walk");
game_EndOfLevel.initializeEndOfLevel(1);
game_Amy.setAction("stand");
startPowerUpTimer();
} else if (game_Level == 2) {
game_Sounds.playSound("CrapInAFortnight");
_global.TheRoot.MC_ScoreBar.MC_Lives.gotoAndStop(game_Lives + 1);
_global.TheRoot.MC_ScoreBar.MC_HeadButts.gotoAndStop(game_HeadButts + 1);
game_TotalEnemies = game_EnemyLives[2] + game_EnemyLives[3];
game_Enemy1.initializeEnemy(3, game_EnemyLives[2]);
game_Enemy2.initializeEnemy(4, game_EnemyLives[3]);
game_Obstacle1.initializeObstacle(2);
game_Obstacle2.initializeObstacle(2);
game_Enemy1.setAction("walk");
game_Enemy2.setAction("walk");
game_EndOfLevel.initializeEndOfLevel(2);
game_Amy.setAction("stand");
startPowerUpTimer();
} else if (game_Level == 3) {
game_Sounds.playSound("DontMakeMeGoToRehab");
_global.TheRoot.MC_ScoreBar.MC_Lives.gotoAndStop(game_Lives + 1);
_global.TheRoot.MC_ScoreBar.MC_HeadButts.gotoAndStop(game_HeadButts + 1);
game_TotalEnemies = game_EnemyLives[4] + game_EnemyLives[5];
game_Enemy1.initializeEnemy(5, game_EnemyLives[4]);
game_Enemy2.initializeEnemy(6, game_EnemyLives[5]);
game_Obstacle1.initializeObstacle(3);
game_Obstacle2.initializeObstacle(3);
game_Enemy1.setAction("walk");
game_Enemy2.setAction("walk");
game_EndOfLevel.initializeEndOfLevel(3);
game_Amy.setAction("stand");
startPowerUpTimer();
}
}
function updateEnemyLives(_dec) {
game_TotalEnemies = game_TotalEnemies + _dec;
}
function updateHeadButts() {
game_HeadButts--;
_global.TheRoot.MC_ScoreBar.MC_HeadButts.gotoAndStop(game_HeadButts + 1);
}
function endGame() {
_global.TheRoot.MC_ScoreBar.MC_Lives.gotoAndStop(1);
game_Sounds.stopMusic();
game_ClockActive = false;
game_Background.stopMoving();
clearInterval(game_Amy.randomSoundInterval);
delete game_EndOfLevel;
delete game_Enemy1;
delete game_Enemy2;
delete game_Obstacle1;
delete game_Obstacle2;
delete game_Amy;
clearInterval(game_TimerInterval);
stopPowerUpTimer();
_global.TheRoot.gotoAndPlay("losegame");
}
function winGame() {
game_Sounds.stopMusic();
game_Background.stopMoving();
game_ClockActive = false;
clearInterval(game_Amy.randomSoundInterval);
delete game_EndOfLevel;
delete game_Enemy1;
delete game_Enemy2;
delete game_Obstacle1;
delete game_Obstacle2;
delete game_Amy;
clearInterval(game_TimerInterval);
stopPowerUpTimer();
_global.TheRoot.gotoAndPlay("wingame");
}
function quitGame() {
}
function nextLevel() {
game_Background.stopMoving();
game_Amy.deltaX = 0;
game_Amy.actionStand();
game_Amy.amyActive = false;
game_EndOfLevel.eolActive = false;
var _local4 = 0;
while (_local4 < game_Weapons.length) {
if (game_Weapons[_local4].weaponActive) {
game_Weapons[_local4].destroyWeapon();
}
delete game_Weapons[_local4];
_local4++;
}
var _local3 = 0;
while (_local3 < game_PowerUps.length) {
if (game_PowerUps[_local3].powerupActive) {
game_PowerUps[_local3].destroyPowerUp();
}
delete game_PowerUps[_local3];
_local3++;
}
if (game_Level < 3) {
_global.TheRoot.MC_NextLevel._xscale = 5;
_global.TheRoot.MC_NextLevel._yscale = 5;
_global.TheRoot.MC_NextLevel._visible = true;
_global.TheRoot.MC_NextLevel.scaleTo(900, 0.75, "easeoutelastic", 0, _global.TheGame.endNextLevel);
} else {
_global.TheRoot.MC_EndMessage._xscale = 5;
_global.TheRoot.MC_EndMessage._yscale = 5;
_global.TheRoot.MC_EndMessage._visible = true;
_global.TheRoot.MC_EndMessage.scaleTo(900, 2, "easeoutcubic", 0, _global.TheGame.endNextLevel);
}
}
function endNextLevel() {
if (_global.TheGame.game_Level < 3) {
_global.TheRoot.MC_NextLevel.scaleTo(10, 1, "easeoutcubic", 0, _global.TheGame.endEndNextLevel);
} else {
_global.TheRoot.MC_EndMessage.scaleTo(10, 1, "easeoutcubic", 1, _global.TheGame.endEndNextLevel);
}
}
function endEndNextLevel() {
_global.TheRoot.MC_NextLevel._visible = false;
_global.TheRoot.MC_EndMessage._visible = false;
_global.TheGame.endLevel();
}
function endLevel() {
game_Sounds.stopMusic();
game_ClockActive = false;
clearInterval(game_Amy.randomSoundInterval);
delete game_EndOfLevel;
delete game_Enemy1;
delete game_Enemy2;
delete game_Obstacle1;
delete game_Obstacle2;
delete game_Amy;
game_Background.stopMoving();
clearInterval(game_TimerInterval);
var _local3 = 0;
while (_local3 < game_Weapons.length) {
if (game_Weapons[_local3].weaponActive) {
game_Weapons[_local3].destroyWeapon();
}
delete game_Weapons[_local3];
_local3++;
}
var _local2 = 0;
while (_local2 < game_PowerUps.length) {
if (game_PowerUps[_local2].powerupActive) {
game_PowerUps[_local2].destroyPowerUp();
}
delete game_PowerUps[_local2];
_local2++;
}
game_Weapons = new Array();
game_PowerUps = new Array();
stopPowerUpTimer();
if (game_Level < 3) {
game_Level++;
initializeGame(game_Level);
startGame();
startLevel();
} else {
winGame();
}
}
function outOfTime() {
game_Sounds.stopMusic();
game_ClockActive = false;
game_Background.stopMoving();
clearInterval(game_Amy.randomSoundInterval);
delete game_EndOfLevel;
delete game_Enemy1;
delete game_Enemy2;
delete game_Obstacle1;
delete game_Obstacle2;
delete game_Amy;
clearInterval(game_TimerInterval);
stopPowerUpTimer();
_global.TheRoot.gotoAndPlay("losegame");
}
function fireWeapon(_type, _value) {
game_Weapons.push(new Weapon(_type, _value));
game_WeaponCounter++;
}
function showPowerUp() {
var _local2 = Math.round(Math.random() * 2);
var _local3 = game_PowerUpNames[_local2];
var _local4 = game_PowerUpValues[_local2];
game_PowerUps.push(new PowerUp(_local3, _local4));
game_PowerUpCounter++;
}
function startPowerUpTimer() {
game_PowerUpInterval = setInterval(this, "showPowerUp", game_PowerUpTime);
}
function stopPowerUpTimer() {
clearInterval(game_PowerUpInterval);
}
function updateClock() {
if (game_ClockActive) {
game_NowTime = getTimer();
var _local3 = Math.round((game_NowTime - game_StartTime) / 1000);
var _local4 = Math.round((100 / game_Time) * _local3);
_global.TheRoot.MC_ScoreBar.MC_TimerBar.gotoAndStop(_local4);
if (_local3 >= game_Time) {
outOfTime();
}
}
}
function restartCurrentLevel() {
game_Sounds.stopMusic();
game_Lives--;
game_ClockActive = false;
clearInterval(game_Amy.randomSoundInterval);
delete game_EndOfLevel;
delete game_Enemy1;
delete game_Enemy2;
delete game_Obstacle1;
delete game_Obstacle2;
delete game_Amy;
clearInterval(game_TimerInterval);
stopPowerUpTimer();
initializeGame(game_Level);
startGame();
startLevel();
}
var game_Playing = false;
var game_Level = 0;
var game_Score = 0;
var game_Lives = 3;
var game_HeadButts = 3;
var game_WeaponBaseLevel = 10000;
var game_WeaponCounter = 0;
var game_PowerUpBaseLevel = 20000;
var game_PowerUpCounter = 0;
var game_WeaponNames = new Array("syringe", "crackpipe", "bottle");
var game_WeaponValues = new Array(20, 10, 5);
var game_PowerUpNames = new Array("syringe", "crackpipe", "bottle");
var game_PowerUpValues = new Array(20, 10, 5);
var game_EnemyLives = new Array(4, 4, 5, 5, 6, 6);
var game_TotalEnemies = 0;
var game_PowerUpInterval = 0;
var game_PowerUpTime = 10000;
var game_Times = new Array(180, 240, 240);
var game_Time = 180;
var game_NowTime = 0;
var game_StartTime = 0;
var game_TimerInterval = 0;
var game_ClockActive = false;
}
Symbol 381 MovieClip [__Packages.Background] Frame 0
class Background
{
var myMC;
function Background () {
myMC = _global.TheRoot.MC_Backgrounds;
myMC.myObject = this;
}
function initializeBackground(_glevel) {
myMC.gotoAndStop(_glevel);
myMC.MC_FBG1._x = 0;
myMC.MC_FBG2._x = myMC.MC_FBG1._width;
myMC.MC_BBG1._x = 0;
myMC.MC_BBG2._x = myMC.MC_BBG1._width;
}
function startMoving() {
bScrollInterval = setInterval(this, "updateBBG", bbgSpeed);
fScrollInterval = setInterval(this, "updateFBG", fbgSpeed);
}
function setDeltaX(_dx) {
fDeltaX = _dx * 4;
bDeltaX = _dx * 4;
}
function updateFBG() {
myMC.MC_FBG1._x = myMC.MC_FBG1._x + fDeltaX;
myMC.MC_FBG2._x = myMC.MC_FBG2._x + fDeltaX;
if (fDeltaX < 0) {
if (myMC.MC_FBG1._x <= (-myMC.MC_FBG1._width)) {
myMC.MC_FBG1._x = myMC.MC_FBG1._x + (myMC.MC_FBG1._width * 2);
}
if (myMC.MC_FBG2._x <= (-myMC.MC_FBG2._width)) {
myMC.MC_FBG2._x = myMC.MC_FBG2._x + (myMC.MC_FBG2._width * 2);
}
} else if (fDeltaX > 0) {
if (myMC.MC_FBG1._x > myMC.MC_FBG1._width) {
myMC.MC_FBG1._x = myMC.MC_FBG1._x - (myMC.MC_FBG1._width * 2);
}
if (myMC.MC_FBG2._x > myMC.MC_FBG1._width) {
myMC.MC_FBG2._x = myMC.MC_FBG2._x - (myMC.MC_FBG2._width * 2);
}
}
}
function updateBBG() {
myMC.MC_BBG1._x = myMC.MC_BBG1._x + bDeltaX;
myMC.MC_BBG2._x = myMC.MC_BBG2._x + bDeltaX;
if (bDeltaX < 0) {
if (myMC.MC_BBG1._x <= (-myMC.MC_BBG1._width)) {
myMC.MC_BBG1._x = myMC.MC_BBG1._x + (myMC.MC_BBG1._width * 2);
}
if (myMC.MC_BBG2._x <= (-myMC.MC_BBG2._width)) {
myMC.MC_BBG2._x = myMC.MC_BBG2._x + (myMC.MC_BBG2._width * 2);
}
} else if (bDeltaX > 0) {
if (myMC.MC_BBG1._x > myMC.MC_BBG1._width) {
myMC.MC_BBG1._x = myMC.MC_BBG1._x - (myMC.MC_BBG1._width * 2);
}
if (myMC.MC_BBG2._x > myMC.MC_BBG1._width) {
myMC.MC_BBG2._x = myMC.MC_BBG2._x - (myMC.MC_BBG2._width * 2);
}
}
}
function stopMoving() {
clearInterval(bScrollInterval);
clearInterval(fScrollInterval);
}
var bgID = 1;
var fbgSpeed = 20;
var bbgSpeed = 60;
var bScrollInterval = 0;
var fScrollInterval = 0;
var fDeltaX = 0;
var bDeltaX = 0;
}
Symbol 382 MovieClip [__Packages.Amy] Frame 0
class Amy
{
var startX, startY, minX, maxX, myMC;
function Amy (_mc, _life) {
startX = 15;
startY = 215;
minX = 15;
maxX = 350;
myMC = _mc;
myMC.myObject = this;
myMC._x = startX;
myMC._y = startY;
amyMaxStrength = (amyStrength = 100);
amyStrengthPercentage = 100;
amyLife = _life;
amyActive = false;
}
function initializeAmy() {
startX = 15;
startY = 215;
minX = 15;
maxX = 350;
myMC.myObject = this;
myMC._x = startX;
myMC._y = startY;
prevWeapon = "slap";
currentWeapon = "slap";
currentWeaponValue = 1;
amyMaxStrength = (amyStrength = 100);
amyStrengthPercentage = 100;
amyInterval = setInterval(this, "updateAmy", amySpeed);
myMC.MC_StrengthBar._alpha = 0;
myMC.MC_StrengthBar.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
};
amyActive = true;
randomSoundInterval = setInterval(this, "playRandomAmySound", 5000 + Math.round(Math.random() * 5000));
}
function playRandomAmySound() {
clearInterval(randomSoundInterval);
_global.TheGame.game_Sounds.playRandomSound();
randomSoundInterval = setInterval(this, "playRandomAmySound", 5000 + Math.round(Math.random() * 5000));
}
function updateAmy() {
if (amyActive) {
if (amyAction == "walk") {
if (deltaX > 0) {
if (_global.TheGame.game_Enemy1.enemyActive and (!_global.TheGame.game_Enemy1.enemyDead)) {
var _local4 = Math.round((_global.TheGame.game_Enemy1.myMC._x + _global.TheGame.game_Enemy1.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if ((_local4 > 0) and (_local4 < 150)) {
actionStand();
}
}
if (_global.TheGame.game_Enemy2.enemyActive and (!_global.TheGame.game_Enemy2.enemyDead)) {
var _local3 = Math.round((_global.TheGame.game_Enemy2.myMC._x + _global.TheGame.game_Enemy2.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if ((_local3 > 0) and (_local3 < 150)) {
actionStand();
}
}
}
}
if (myMC.MC_DetectZone.hitTest(_global.TheGame.game_Obstacle1.myMC.MC_HitZone)) {
myMC._x = myMC._x - 10;
actionStand();
}
if (myMC.MC_DetectZone.hitTest(_global.TheGame.game_Obstacle2.myMC.MC_HitZone)) {
myMC._x = myMC._x - 10;
actionStand();
}
if (deltaX > 0) {
myMC._x = myMC._x + deltaX;
if (myMC._x >= maxX) {
myMC._x = maxX;
}
} else if (deltaX < 0) {
myMC._x = myMC._x + deltaX;
if (myMC._x <= minX) {
myMC._x = minX;
}
}
checkKeys();
myMC.text_strength.text = "STRENGTH: " + amyStrength;
amyStrengthPercentage = Math.round((100 / amyMaxStrength) * amyStrength);
myMC.MC_StrengthBar.gotoAndStop(amyStrengthPercentage);
}
}
function checkKeys() {
if (amyActive) {
if (Key.isDown(38)) {
if ((currentKeyDown != 38) and (amyAction == "stand")) {
currentKeyDown = 38;
var _local4 = Math.round((_global.TheGame.game_Enemy1.myMC._x + _global.TheGame.game_Enemy1.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
var _local3 = Math.round((_global.TheGame.game_Enemy2.myMC._x + _global.TheGame.game_Enemy2.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if (((_local4 > 0) and (_local4 < 175)) or ((_local3 > 0) and (_local3 < 175))) {
actionJump();
} else {
var _local5 = Math.round((_global.TheGame.game_Obstacle1.myMC._x + _global.TheGame.game_Obstacle1.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
var _local6 = Math.round((_global.TheGame.game_Obstacle2.myMC._x + _global.TheGame.game_Obstacle2.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if (((_local5 > 0) and (_local5 < 150)) or ((_local6 > 0) and (_local6 < 150))) {
actionJumpForward();
} else {
actionJump();
}
}
}
} else if (currentKeyDown == 38) {
currentKeyDown = 0;
}
if (Key.isDown(40)) {
if ((currentKeyDown != 40) and (amyAction == "stand")) {
currentKeyDown = 40;
actionHeadButt();
}
} else if (currentKeyDown == 40) {
currentKeyDown = 0;
}
if (Key.isDown(37)) {
if ((currentKeyDown != 37) and (amyAction == "stand")) {
currentKeyDown = 37;
actionWalkBack();
}
} else if (currentKeyDown == 37) {
currentKeyDown = 0;
actionStand();
}
if (Key.isDown(39)) {
if (currentKeyDown != 39) {
if (amyAction == "stand") {
currentKeyDown = 39;
actionWalkForward();
}
}
} else if (currentKeyDown == 39) {
currentKeyDown = 0;
actionStand();
}
if (Key.isDown(32)) {
if ((currentKeyDown != 32) and ((amyAction == "walk") or (amyAction == "stand"))) {
currentKeyDown = 32;
actionThrow();
}
} else if (currentKeyDown == 32) {
currentKeyDown = 0;
}
}
}
function setAction(_action) {
amyAction = _action;
myMC.gotoAndStop(amyAction);
}
function actionWalk() {
amyAction = "walk";
myMC.gotoAndStop(amyAction);
_global.TheGame.game_Background.setDeltaX(-1);
deltaX = 2;
}
function actionWalkForward() {
amyAction = "walk";
myMC.gotoAndStop(amyAction);
_global.TheGame.game_Background.setDeltaX(-1);
deltaX = 2;
}
function actionWalkBack() {
amyAction = "walk";
myMC.gotoAndStop(amyAction);
_global.TheGame.game_Background.setDeltaX(1);
deltaX = -2;
}
function actionStand() {
amyAction = "stand";
myMC.gotoAndStop(amyAction);
_global.TheGame.game_Background.setDeltaX(0);
deltaX = 0;
}
function actionJump() {
amyAction = "jump";
myMC.gotoAndStop(amyAction);
myMC.ySlideTo(myMC._y - 150, 0.5, "easeoutcirc", 0, actionEndJump);
}
function actionJumpForward() {
amyAction = "jump";
myMC.gotoAndStop(amyAction);
myMC.ySlideTo(myMC._y - 150, 0.5, "easeoutcirc", 0, actionEndJumpForward);
_global.TheGame.game_Background.setDeltaX(-2);
deltaX = 2;
}
function actionEndJump() {
_global.TheGame.game_Amy.myMC.ySlideTo(_global.TheGame.game_Amy.startY, 0.5, "easeinexpo", 0, _global.TheGame.game_Amy.actionCompleteJump);
}
function actionEndJumpForward() {
_global.TheGame.game_Amy.myMC.ySlideTo(_global.TheGame.game_Amy.startY, 0.5, "easeinexpo", 0, _global.TheGame.game_Amy.actionCompleteJump);
_global.TheGame.game_Background.setDeltaX(-2);
deltaX = 2;
}
function actionCompleteJump() {
_global.TheGame.game_Amy.actionStand();
}
function actionLeft() {
}
function actionRight() {
}
function actionThrow() {
if (amyActive) {
prevWeapon = currentWeapon;
myMC.endSequence = function () {
this.myObject.endActionThrow();
};
amyAction = "throw";
myMC.gotoAndStop(amyAction);
if (_global.TheGame.game_Enemy1.enemyActive and (!_global.TheGame.game_Enemy1.enemyDead)) {
var _local4 = Math.round((_global.TheGame.game_Enemy1.myMC._x + _global.TheGame.game_Enemy1.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if (_local4 < 150) {
currentWeapon = "slap";
_global.TheGame.game_Enemy1.hitWithWeapon("slap", 1);
}
}
if (_global.TheGame.game_Enemy2.enemyActive and (!_global.TheGame.game_Enemy2.enemyDead)) {
var _local3 = Math.round((_global.TheGame.game_Enemy2.myMC._x + _global.TheGame.game_Enemy2.myMC.MC_HitZone._x) - (myMC._x + myMC.MC_HitZone._x));
if (_local3 < 150) {
currentWeapon = "slap";
_global.TheGame.game_Enemy2.hitWithWeapon("slap", 1);
}
}
}
}
function endActionThrow() {
if (currentWeapon != "slap") {
_global.TheGame.fireWeapon(currentWeapon, currentWeaponValue);
}
currentWeapon = prevWeapon;
actionStand();
}
function grabPowerUp(_type, _value) {
_global.TheGame.game_Sounds.playSound("PowerUp");
currentWeapon = _type;
currentWeaponValue = _value;
}
function hitByEnemy() {
if (amyActive) {
deltaX = 0;
amyStrength = amyStrength - 5;
amyStrengthPercentage = Math.round((100 / amyMaxStrength) * amyStrength);
myMC.MC_StrengthBar.gotoAndStop(amyStrengthPercentage);
myMC.MC_StrengthBar._alpha = 100;
if (amyStrength > 0) {
myMC.endSequence = function () {
this.myObject.endActionHitByEnemy();
};
setAction("hit");
} else {
_global.TheGame.game_Sounds.playSound("MyHeadHurts");
die();
}
}
}
function endActionHitByEnemy() {
if (amyActive) {
actionStand();
}
}
function die() {
clearInterval(randomSoundInterval);
if (amyActive) {
amyActive = false;
myMC.endSequence = function () {
this.myObject.endActionDie();
};
setAction("die");
}
}
function endActionDie() {
amyLife--;
if (amyLife > 0) {
_global.TheGame.restartCurrentLevel();
} else {
_global.TheGame.endGame();
}
}
function actionHeadButt() {
if ((amyActive and ((amyAction == "stand") or (amyAction == "walk"))) and (_global.TheGame.game_HeadButts > 0)) {
myMC.onEvent = function () {
this.myObject.actionHeadButtEvent();
};
myMC.endSequence = function () {
this.myObject.endActionHeadButt();
};
setAction("headbutt");
}
}
function actionHeadButtEvent() {
if (_global.TheGame.game_Enemy1.enemyActive) {
_global.TheGame.game_Enemy1.killByHeadButt();
}
if (_global.TheGame.game_Enemy2.enemyActive) {
_global.TheGame.game_Enemy2.killByHeadButt();
}
_global.TheRoot.MC_Backgrounds.ySlideTo(_global.TheRoot.MC_Backgrounds._y + 40, 0.25, "easeoutelastic", 0, _global.TheGame.game_Amy.backgroundCompleteShake1);
}
function backgroundCompleteShake1() {
_global.TheRoot.MC_Backgrounds.ySlideTo(_global.TheRoot.MC_Backgrounds._y - 40, 0.25, "easeoutelastic", 0);
}
function endActionHeadButt() {
_global.TheGame.updateHeadButts();
if (amyActive) {
actionStand();
}
}
var amyAction = "stand";
var amyPrevAction = "stand";
var amySpeed = 10;
var amyInterval = 0;
var amyActive = false;
var currentKeyDown = 0;
var prevWeapon = "slap";
var currentWeapon = "slap";
var currentWeaponValue = 1;
var amyStrength = 100;
var amyMaxStrength = 100;
var amyStrengthPercentage = 100;
var deltaX = 0;
var amyLife = 0;
var randomSoundInterval = 0;
}
Symbol 383 MovieClip [__Packages.Enemy] Frame 0
class Enemy
{
var myMC, startX, startY;
function Enemy (_mc, _id) {
myMC = _mc;
myMC.myObject = this;
myMC._visible = true;
myMC._alpha = 100;
enemyID = _id;
startX = (1200 + (300 * (enemyID - 1))) + Math.round(Math.random() * 200);
startY = 460;
enemyActive = false;
enemyDead = false;
attacking = false;
}
function initializeEnemy(_type, _lives) {
enemyType = _type;
numLives = _lives;
myMC._x = startX;
myMC._y = startY;
myMC.gotoAndStop(_type);
enemyMaxStrength = (enemyStrength = enemyStrengths[_type - 1]);
enemyStrengthPercentage = 100;
enemyActive = true;
enemyDead = false;
myMC.flag = 0;
myMC._visible = true;
myMC._alpha = 100;
attacking = false;
myMC.text_strength.text = "STRENGTH: " + enemyStrength;
myMC.MC_StrengthBar._alpha = 0;
myMC.MC_StrengthBar.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
};
}
function resurrectEnemy() {
startX = (1200 + (300 * (enemyID - 1))) + Math.round(Math.random() * 200);
myMC._x = startX;
myMC._y = startY;
myMC.gotoAndStop(enemyType);
enemyActive = true;
enemyDead = false;
myMC.flag = 0;
myMC._visible = true;
myMC._alpha = 100;
attacking = false;
myMC.text_strength.text = "STRENGTH: " + enemyStrength;
enemyStrengthPercentage = 100;
enemyMaxStrength = (enemyStrength = enemyStrengths[enemyType - 1]);
myMC.MC_StrengthBar._alpha = 0;
setAction("walk");
}
function completelyKillEnemy() {
enemyActive = false;
enemyDead = true;
myMC._visible = false;
attacking = false;
}
function setAction(_action) {
enemyAction = _action;
myMC.MC_Enemy.gotoAndStop(_action);
if (_action == "walk") {
if (enemyInterval == 0) {
enemyInterval = setInterval(this, "updateEnemy", enemySpeed);
}
deltaX = -2;
}
}
function updateEnemy() {
if (enemyActive and (!enemyDead)) {
if (enemyAction == "walk") {
myMC._x = myMC._x + (deltaX + _global.TheGame.game_Background.fDeltaX);
}
if ((enemyAction != "hit") and (enemyAction != "attack")) {
var _local3 = Math.round((myMC._x + myMC.MC_HitZone._x) - (_global.TheGame.game_Amy.myMC._x + _global.TheGame.game_Amy.myMC.MC_HitZone._x));
if (_local3 < 150) {
if (Math.round(Math.random() * 25) == 10) {
if (!attacking) {
if (_global.TheGame.game_Amy.amyActive and (_global.TheGame.game_Amy.amyAction != "jump")) {
attack();
}
} else {
attacking = false;
setAction("stand");
}
} else {
attacking = false;
setAction("stand");
}
} else if ((attacking or (enemyAction == "attack")) or (enemyAction == "stand")) {
attacking = false;
setAction("walk");
}
}
myMC.text_strength.text = "STRENGTH: " + enemyStrength;
enemyStrengthPercentage = Math.round((100 / enemyMaxStrength) * enemyStrength);
myMC.MC_StrengthBar.gotoAndStop(enemyStrengthPercentage);
}
}
function startMoving() {
}
function stopMoviing() {
}
function die() {
enemyActive = false;
myMC.MC_Enemy.endSequence = function () {
this._parent.myObject.endActionDie();
};
setAction("die");
}
function endActionDie() {
myMC.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._visible = false;
this.myObject.completeActionDie();
this.onEnterFrame = null;
}
};
enemyActive = false;
}
function completeActionDie() {
numLives--;
if (numLives > 0) {
resurrectEnemy();
} else {
completelyKillEnemy();
}
_global.TheGame.updateEnemyLives(-1);
}
function hitWithWeapon(_type, _value) {
enemyStrength = enemyStrength - _value;
enemyStrengthPercentage = Math.round((100 / enemyMaxStrength) * enemyStrength);
myMC.MC_StrengthBar.gotoAndStop(enemyStrengthPercentage);
myMC.MC_StrengthBar._alpha = 100;
if (enemyStrength > 0) {
myMC.MC_Enemy.endSequence = function () {
this._parent.MC_Enemy.gotoAndStop("walk");
this._parent.myObject.enemyAction = "walk";
};
if (_type == "syringe") {
_global.TheGame.game_Sounds.playSound("NeedlePierce");
} else if (_type == "bottle") {
_global.TheGame.game_Sounds.playSound("BeerBottle");
} else if (_type == "crackpipe") {
_global.TheGame.game_Sounds.playSound("CrackPipe");
} else if (_type == "slap") {
_global.TheGame.game_Sounds.playSound("Slap");
}
_global.TheGame.game_Sounds.playSound("Punch");
setAction("hit");
} else {
die();
}
}
function attack() {
enemyActive = true;
attacking = true;
myMC.MC_Enemy.endSequence = function () {
this._parent.myObject.endActionAttack();
};
setAction("attack");
_global.TheGame.game_Amy.hitByEnemy();
}
function endActionAttack() {
attacking = false;
setAction("walk");
}
function killByHeadButt() {
enemyActive = false;
myMC.dx = 10;
myMC.onEnterFrame = function () {
this._x = this._x + this.dx;
this.dx = this.dx * 2;
if (this._x > 1000) {
this._parent.onEnterFrame = null;
}
};
myMC.MC_Enemy.endSequence = function () {
this._parent.myObject.endActionKillByHeadButt();
};
setAction("kill");
}
function endActionKillByHeadButt() {
myMC.MC_Enemy.endSequence = function () {
this._parent.myObject.endActionDie();
};
setAction("die");
}
var enemyID = 0;
var enemyActive = false;
var enemyType = 0;
var enemyAction = "stand";
var enemyUpdateInterval = 0;
var deltaX = 0;
var enemySpeed = 25;
var enemyInterval = 0;
var enemyStrength = 100;
var enemyMaxStrength = 100;
var enemyStrengthPercentage = 100;
var enemyStrengths = new Array(100, 60, 150, 150, 200, 150);
var attacking = false;
var enemyDead = false;
var numLives = 0;
}
Symbol 384 MovieClip [__Packages.EndOfLevel] Frame 0
class EndOfLevel
{
var myMC, startX, startY;
function EndOfLevel (_mc, _id) {
myMC = _mc;
myMC.myObject = this;
myMC._visible = true;
myMC._alpha = 100;
eolID = _id;
startX = 2790;
startY = 216;
eolActive = false;
}
function initializeEndOfLevel(_type) {
eolType = _type;
myMC._x = startX;
myMC._y = startY;
myMC.gotoAndStop(_type);
eolActive = true;
myMC.flag = 0;
myMC._visible = true;
myMC._alpha = 100;
if (eolInterval == 0) {
eolInterval = setInterval(this, "updateEndOfLevel", eolSpeed);
}
}
function updateEndOfLevel() {
if (eolActive) {
myMC._x = myMC._x + _global.TheGame.game_Background.fDeltaX;
if (myMC.MC_HitZone.hitTest(_global.TheGame.game_Amy.myMC)) {
eolActive = false;
_global.TheGame.nextLevel();
}
}
}
function startMoving() {
}
function stopMoviing() {
}
var eolID = 0;
var eolActive = false;
var eolType = 0;
var eolUpdateInterval = 0;
var deltaX = 0;
var eolSpeed = 25;
var eolInterval = 0;
}
Symbol 385 MovieClip [__Packages.Obstacle] Frame 0
class Obstacle
{
var myMC, startX, startY;
function Obstacle (_mc, _id) {
myMC = _mc;
myMC.myObject = this;
myMC._visible = true;
myMC._alpha = 100;
obstacleID = _id;
startX = 300 + (900 * _id);
startY = 356;
obstacleActive = false;
}
function initializeObstacle(_type) {
obstacleType = _type;
myMC._x = startX;
myMC._y = startY;
myMC.gotoAndStop(_type);
obstacleActive = true;
myMC.flag = 0;
myMC._visible = true;
myMC._alpha = 100;
if (obstacleInterval == 0) {
obstacleInterval = setInterval(this, "updateObstacle", obstacleSpeed);
}
}
function updateObstacle() {
if (obstacleActive) {
myMC._x = myMC._x + _global.TheGame.game_Background.fDeltaX;
if (myMC.MC_HitZone.hitTest(_global.TheGame.game_Amy.myMC)) {
}
}
}
function startMoving() {
}
function stopMoviing() {
}
var obstacleID = 0;
var obstacleActive = false;
var obstacleType = 0;
var obstacleUpdateInterval = 0;
var deltaX = 0;
var obstacleSpeed = 25;
var obstacleInterval = 0;
}
Symbol 386 MovieClip [__Packages.Sounds] Frame 0
class Sounds
{
var sound_Bollocks, sound_CrapInAFortnight, sound_DontMakeMeGoToRehab, sound_GetOutOfMyWay, sound_MyHeadHurts, sound_TwatYou, sound_PissOff, sound_BuggerOff, sound_BeerBottle, sound_CrackPipe, sound_HeadButt, sound_NeedlePierce, sound_PowerUp, sound_Slap, sound_Punch, sound_Music, sound_Sounds, sound_RandomSounds;
function Sounds () {
sound_Bollocks = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_CrapInAFortnight = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_DontMakeMeGoToRehab = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_GetOutOfMyWay = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_MyHeadHurts = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_TwatYou = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_PissOff = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_BuggerOff = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_BeerBottle = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_CrackPipe = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_HeadButt = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_NeedlePierce = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_PowerUp = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_Slap = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_Punch = new Sound(_global.TheRoot.MC_Sound_Effects);
sound_Music = new Sound(_global.TheRoot.MC_Sound_Music);
sound_Bollocks.attachSound("bollocks.wav");
sound_CrapInAFortnight.attachSound("crapinafortnight.wav");
sound_DontMakeMeGoToRehab.attachSound("dontmakemegotorehab.wav");
sound_GetOutOfMyWay.attachSound("getoutofmyway");
sound_MyHeadHurts.attachSound("headhurts.wav");
sound_TwatYou.attachSound("illtwatyou.wav");
sound_PissOff.attachSound("pissoff.wav");
sound_BuggerOff.attachSound("buggeroff.wav");
sound_BeerBottle.attachSound("beerbottle.wav");
sound_CrackPipe.attachSound("crackpipe.wav");
sound_HeadButt.attachSound("headbutt.wav");
sound_NeedlePierce.attachSound("needlepierce.wav");
sound_PowerUp.attachSound("powerup.wav");
sound_Slap.attachSound("slap.wav");
sound_Punch.attachSound("punch.wav");
sound_Music.attachSound("musictrack.wav");
sound_Sounds = new Array(sound_Bollocks, sound_CrapInAFortnight, sound_DontMakeMeGoToRehab, sound_MyHeadHurts, sound_TwatYou, sound_PissOff);
sound_RandomSounds = new Array(sound_Bollocks, sound_GetOutOfMyWay, sound_TwatYou, sound_PissOff, sound_BuggerOff);
}
function playMusic() {
sound_Music.setVolume(20);
sound_Music.start(0, 999);
}
function stopMusic() {
sound_Music.stop();
}
function playSound(_soundname) {
this["sound_" + _soundname].setVolume(85);
this["sound_" + _soundname].start();
}
function stopSound(_soundname) {
this["sound_" + _soundname].stop();
}
function playRandomSound() {
var _local2 = Math.round(Math.random() * 4);
sound_RandomSounds[_local2].setVolume(85);
sound_RandomSounds[_local2].start();
}
}
Symbol 387 MovieClip [__Packages.Weapon] Frame 0
class Weapon
{
var myMC;
function Weapon (_type, _value) {
initializeWeapon(_type, _value);
}
function initializeWeapon(_type, _value) {
weaponActive = false;
weaponType = _type;
weaponValue = _value;
ID = _global.TheGame.game_WeaponCounter;
myMC = _global.TheRoot.attachMovie("mc:weapons", "MC_Weapon" + ID, _global.TheGame.game_WeaponBaseLevel + ID);
_global.TheRoot["MC_Weapon" + ID]._x = _global.TheGame.game_Amy.myMC._x + _global.TheGame.game_Amy.myMC.MC_Point._x;
_global.TheRoot["MC_Weapon" + ID]._y = _global.TheGame.game_Amy.myMC._y + _global.TheGame.game_Amy.myMC.MC_Point._y;
_global.TheRoot["MC_Weapon" + ID]._y = _global.TheRoot["MC_Weapon" + ID]._y + (-15 + Math.round(Math.random() * 30));
_global.TheRoot["MC_Weapon" + ID].gotoAndStop(weaponType);
fireWeapon();
}
function fireWeapon() {
weaponActive = true;
weaponInterval = setInterval(this, "updateWeapon", weaponSpeed);
weaponVelocity = 10 + Math.round(Math.random() * 10);
}
function updateWeapon() {
myMC._x = myMC._x + weaponVelocity;
if (weaponType != "syringe") {
myMC._rotation = myMC._rotation + 25;
}
if (myMC._x > 850) {
destroyWeapon();
} else if (_global.TheGame.game_Enemy1.enemyActive and myMC.hitTest(_global.TheGame.game_Enemy1.myMC.MC_HitZone)) {
destroyWeapon();
_global.TheGame.game_Enemy1.hitWithWeapon(weaponType, weaponValue);
} else if (_global.TheGame.game_Enemy2.enemyActive and myMC.hitTest(_global.TheGame.game_Enemy2.myMC.MC_HitZone)) {
destroyWeapon();
_global.TheGame.game_Enemy2.hitWithWeapon(weaponType, weaponValue);
}
}
function destroyWeapon() {
clearInterval(weaponInterval);
myMC.removeMovieClip();
weaponActive = false;
}
var ID = 0;
var weaponActive = false;
var weaponType = "";
var weaponValue = 0;
var weaponInterval = 0;
var weaponSpeed = 5;
var weaponVelocity = 10;
}
Symbol 388 MovieClip [__Packages.PowerUp] Frame 0
class PowerUp
{
var myMC;
function PowerUp (_type, _value) {
initializePowerUp(_type, _value);
}
function initializePowerUp(_type, _value) {
powerupActive = false;
powerupType = _type;
powerupValue = _value;
ID = _global.TheGame.game_PowerUpCounter;
myMC = _global.TheRoot.attachMovie("mc:powerups", "MC_PowerUp" + ID, _global.TheGame.game_PowerUpBaseLevel + ID);
_global.TheRoot["MC_PowerUp" + ID]._x = 900;
_global.TheRoot["MC_PowerUp" + ID]._y = 135;
_global.TheRoot["MC_PowerUp" + ID]._xscale = 175;
_global.TheRoot["MC_PowerUp" + ID]._yscale = 175;
_global.TheRoot["MC_PowerUp" + ID].gotoAndStop(_type);
_global.TheRoot["MC_PowerUp" + ID].gotoAndStop(powerupType);
showPowerUp();
}
function showPowerUp() {
powerupActive = true;
powerupInterval = setInterval(this, "updatePowerUp", powerupSpeed);
}
function updatePowerUp() {
myMC._x = myMC._x - 8;
if (myMC._x < -100) {
destroyPowerUp();
} else if (myMC.hitTest(_global.TheGame.game_Amy.myMC.MC_HitZone)) {
_global.TheGame.game_Amy.grabPowerUp(powerupType, powerupValue);
destroyPowerUp();
}
}
function destroyPowerUp() {
clearInterval(powerupInterval);
myMC.removeMovieClip();
powerupActive = false;
}
function killPowerUps() {
clearInterval(powerupInterval);
myMC.removeMovieClip();
powerupActive = false;
}
var ID = 0;
var powerupActive = false;
var powerupType = "";
var powerupValue = 0;
var powerupInterval = 0;
var powerupSpeed = 10;
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 4
stop();
Symbol 106 Button
on (release) {
_global.TheRoot.gotoAndPlay("playgame");
}
Symbol 115 Button
on (release) {
_global.TestLevel = 1;
gotoAndPlay ("playgame");
}
Symbol 118 Button
on (release) {
_global.TestLevel = 2;
gotoAndPlay ("playgame");
}
Symbol 121 Button
on (release) {
_global.TestLevel = 3;
gotoAndPlay ("playgame");
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 3
stop();
Symbol 148 MovieClip Frame 9
this._parent.endSequence();
stop();
Symbol 150 MovieClip Frame 24
this._parent.endSequence();
stop();
Symbol 153 MovieClip Frame 11
this._parent.endSequence();
stop();
Symbol 154 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 4
stop();
Symbol 155 MovieClip Frame 5
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 9
this._parent.endSequence();
stop();
Symbol 183 MovieClip Frame 24
this._parent.endSequence();
stop();
Symbol 184 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 186 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 3
stop();
Symbol 187 MovieClip Frame 4
stop();
Symbol 187 MovieClip Frame 5
stop();
Symbol 187 MovieClip Frame 6
stop();
Symbol 204 MovieClip Frame 9
this._parent.endSequence();
stop();
Symbol 206 MovieClip Frame 20
this._parent.endSequence();
stop();
Symbol 207 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 209 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 4
stop();
Symbol 210 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 9
this._parent.endSequence();
stop();
Symbol 224 MovieClip Frame 20
this._parent.endSequence();
stop();
Symbol 225 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 226 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 6
stop();
Symbol 244 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 245 MovieClip Frame 24
this._parent.endSequence();
stop();
Symbol 249 MovieClip Frame 13
this._parent.endSequence();
stop();
Symbol 250 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
Symbol 251 MovieClip Frame 4
stop();
Symbol 251 MovieClip Frame 5
stop();
Symbol 251 MovieClip Frame 6
stop();
Symbol 271 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 272 MovieClip Frame 24
this._parent.endSequence();
stop();
Symbol 274 MovieClip Frame 15
this._parent.endSequence();
stop();
Symbol 275 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 3
stop();
Symbol 276 MovieClip Frame 4
stop();
Symbol 276 MovieClip Frame 5
stop();
Symbol 276 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 3
stop();
Symbol 277 MovieClip Frame 4
stop();
Symbol 277 MovieClip Frame 5
stop();
Symbol 277 MovieClip Frame 6
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 2
stop();
Symbol 298 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 9
stop();
Symbol 323 MovieClip Frame 5
this._parent.endSequence();
stop();
Symbol 324 MovieClip Frame 12
this._parent.endSequence();
stop();
Symbol 327 MovieClip Frame 100
this._parent.endSequence();
stop();
Symbol 328 MovieClip Frame 26
this._parent.onEvent();
Symbol 328 MovieClip Frame 48
this._parent.endSequence();
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 3
stop();
Symbol 329 MovieClip Frame 4
stop();
Symbol 329 MovieClip Frame 5
stop();
Symbol 329 MovieClip Frame 6
stop();
Symbol 329 MovieClip Frame 7
stop();
Symbol 329 MovieClip Frame 8
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
stop();
Symbol 336 MovieClip Frame 4
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 3
stop();
Symbol 341 MovieClip Frame 4
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 361 Button
on (release) {
_global.TheRoot.gotoAndPlay("splash");
}
Symbol 363 Button
on (release) {
getURL ("javascript:close(); void(0);");
}
Symbol 374 MovieClip Frame 1
function isValidEmail(email_str) {
if (email_str.length < 6) {
return(false);
}
var _local1 = -1;
var _local4 = -1;
var _local3 = -1;
_local1 = email_str.indexOf("@");
_local4 = email_str.lastIndexOf("@");
_local3 = email_str.lastIndexOf(".");
return((((_local1 > 0) && (_local3 < (email_str.length - 2))) && ((_local1 + 1) < _local3)) && (_local4 == _local1));
}
function handleSubmit() {
text_message.text = "";
var _local4 = text_yourname.text;
var _local1 = text_youremail.text;
var _local3 = text_friendname.text;
var _local2 = text_friendemail.text;
if ((((_local4 != "") && (_local1 != "")) && (_local3 != "")) && (_local2 != "")) {
if (isValidEmail(_local1) && (isValidEmail(_local2))) {
emailForm_lv.fromName = _local4;
emailForm_lv.toName = _local3;
emailForm_lv.fromEmail = _local1;
emailForm_lv.toEmail = _local2;
emailForm_lv.sendAndLoad(sendMailURL_str, emailResult_lv, "POST");
text_message.text = "Sending...";
} else {
text_message.text = "Please check the email addresses you provided.";
}
} else {
text_message.text = "Please fill out the form completely.";
}
}
function init() {
text_yourname.tabIndex = 1;
text_friendname.tabIndex = 2;
text_youremail.tabIndex = 3;
text_friendemail.tabIndex = 4;
text_yourname.restrict = "A-Za-z0-9_\\";
text_youremail.restrict = "A-Za-z0-9@._\\";
text_friendemail.restrict = "A-Za-z0-9@._\\";
text_friendname.restrict = "A-Za-z0-9_\\";
text_yourname.text = "";
text_youremail.text = "";
text_friendemail.text = "";
text_friendname.text = "";
text_message.text = "";
}
this.onEnterFrame = function () {
};
var sendMailURL_str = "sendtofriend.php";
var emailForm_lv = new LoadVars();
var emailResult_lv = new LoadVars();
emailResult_lv.onLoad = function (success) {
if (success) {
if (emailResult_lv.error != 0) {
text_message.text = emailResult_lv.reason;
} else {
text_friendname.text = "";
text_friendemail.text = "";
text_message.text = emailResult_lv.reason;
gotoAndStop (2);
}
} else {
text_message.text = "There was an error communicating with the server.";
}
};
BTN_Submit.onPress = function () {
handleSubmit();
};
init();
stop();
Symbol 374 MovieClip Frame 2
text_friendname.text = "";
text_friendemail.text = "";
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
MC_Form.init();
stop();