Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var valueComplete:Number;
public var modifierFunction:Function;
public var extra:Object;
public var valueStart:Number;
public var hasModifier:Boolean;
public var arrayIndex:Number;
public var originalValueComplete:Object;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var preProcess:Function;
public var setValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {overwrite:true, time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
};
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import com.adobe.utils.*;
public class MD5 {
private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function createBlocks(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:int = (_arg1.length * 8);
var _local4 = 0xFF;
var _local5:int;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private static function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private static function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private static function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public static function hash(_arg1:String):String{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local2 = 1732584193;
var _local3 = -271733879;
var _local4 = -1732584194;
var _local5 = 271733878;
var _local10:Array = createBlocks(_arg1);
var _local11:int = _local10.length;
var _local12:int;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package com.adobe.crypto
Section 10
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local4:int;
var _local5:int;
var _local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.adobe.utils
Section 11
//AddictingGamesLogo1_76 (ComicBookMovie_Nowgamez_v2a_fla.AddictingGamesLogo1_76)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class AddictingGamesLogo1_76 extends MovieClip {
public function AddictingGamesLogo1_76(){
addFrameScript(0, frame1);
}
public function clck(_arg1:MouseEvent){
var _local2 = "http://www.addictinggames.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 12
//andkon_237 (ComicBookMovie_Nowgamez_v2a_fla.andkon_237)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class andkon_237 extends MovieClip {
public function andkon_237(){
addFrameScript(0, frame1);
}
public function clck(_arg1:MouseEvent){
var _local2 = "http://www.andkon.com/arcade/";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 13
//arcacxdebomb_74 (ComicBookMovie_Nowgamez_v2a_fla.arcacxdebomb_74)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class arcacxdebomb_74 extends MovieClip {
public var hitBox_mc:MovieClip;
public function arcacxdebomb_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 14
//btn_ag_94 (ComicBookMovie_Nowgamez_v2a_fla.btn_ag_94)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_ag_94 extends MovieClip {
public function btn_ag_94(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.addictinggames.com/";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 15
//btn_agPreloader_90 (ComicBookMovie_Nowgamez_v2a_fla.btn_agPreloader_90)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_agPreloader_90 extends MovieClip {
public function btn_agPreloader_90(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.addictinggames.com/";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 16
//btn_backCredits_89 (ComicBookMovie_Nowgamez_v2a_fla.btn_backCredits_89)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import caurina.transitions.*;
public dynamic class btn_backCredits_89 extends MovieClip {
public var hitBox_mc:MovieClip;
public function btn_backCredits_89(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
Tweener.addTween(MovieClip(parent), {y:1035, time:0.4, transition:"easeInStrong"});
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 17
//btn_crdits_84 (ComicBookMovie_Nowgamez_v2a_fla.btn_crdits_84)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import caurina.transitions.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_crdits_84 extends MovieClip {
public var hitBox_mc:MovieClip;
public function btn_crdits_84(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
Tweener.addTween(MovieClip(parent).creditsPage_mc, {y:275, time:0.4, transition:"easeInStrong"});
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 18
//btn_garbageBin_81 (ComicBookMovie_Nowgamez_v2a_fla.btn_garbageBin_81)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_garbageBin_81 extends MovieClip {
public function btn_garbageBin_81(){
addFrameScript(0, frame1);
}
function frame1(){
navButtons(this);
}
public function navButtons(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
MovieClip(parent).playBtnHoverSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
MovieClip(parent).playBtnClickSnd();
MovieClip(parent).newGamePrompter();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 19
//btn_heropunch_92 (ComicBookMovie_Nowgamez_v2a_fla.btn_heropunch_92)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_heropunch_92 extends MovieClip {
public function btn_heropunch_92(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.heropunch.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 20
//btn_heropunch_98 (ComicBookMovie_Nowgamez_v2a_fla.btn_heropunch_98)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_heropunch_98 extends MovieClip {
public function btn_heropunch_98(){
addFrameScript(0, frame1);
}
public function navBtn(_arg1:MovieClip, _arg2:String){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
var whereTo = _arg2;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
var _local2:String = String("http://www.heropunch.com/");
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
function frame1(){
stop();
navBtn(this, "reset");
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 21
//btn_inGameMoreGames_189 (ComicBookMovie_Nowgamez_v2a_fla.btn_inGameMoreGames_189)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_inGameMoreGames_189 extends MovieClip {
public function btn_inGameMoreGames_189(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 22
//btn_leveDonePrompt_216 (ComicBookMovie_Nowgamez_v2a_fla.btn_leveDonePrompt_216)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_leveDonePrompt_216 extends MovieClip {
public function btn_leveDonePrompt_216(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 23
//btn_loadGame_69 (ComicBookMovie_Nowgamez_v2a_fla.btn_loadGame_69)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class btn_loadGame_69 extends MovieClip {
public var hitBox_mc:MovieClip;
public function btn_loadGame_69(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 24
//btn_moregames_79 (ComicBookMovie_Nowgamez_v2a_fla.btn_moregames_79)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_moregames_79 extends MovieClip {
public var hitBox_mc:MovieClip;
public function btn_moregames_79(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 25
//btn_musicSrc1_86 (ComicBookMovie_Nowgamez_v2a_fla.btn_musicSrc1_86)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_musicSrc1_86 extends MovieClip {
public function btn_musicSrc1_86(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.newgrounds.com/audio/listen/105290";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 26
//btn_musicSrc2_87 (ComicBookMovie_Nowgamez_v2a_fla.btn_musicSrc2_87)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_musicSrc2_87 extends MovieClip {
public function btn_musicSrc2_87(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.newgrounds.com/audio/listen/105290";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 27
//btn_musicSrc3_88 (ComicBookMovie_Nowgamez_v2a_fla.btn_musicSrc3_88)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_musicSrc3_88 extends MovieClip {
public function btn_musicSrc3_88(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.newgrounds.com/audio/listen/516667";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 28
//btn_mute_82 (ComicBookMovie_Nowgamez_v2a_fla.btn_mute_82)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public dynamic class btn_mute_82 extends MovieClip {
public var _sprite:MovieClip;
public var count:Number;
public function btn_mute_82(){
addFrameScript(0, frame1);
}
function frame1(){
count = 0;
if (SoundMixer.soundTransform.volume == 1){
_sprite.gotoAndStop(1);
} else {
if (SoundMixer.soundTransform.volume == 0){
_sprite.gotoAndStop(2);
};
};
musicBtn(this);
}
public function musicBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
count++;
if ((((SoundMixer.soundTransform.volume == 1)) && ((count == 1)))){
SoundMixer.soundTransform = new SoundTransform(0);
_sprite.gotoAndStop(2);
} else {
if (SoundMixer.soundTransform.volume == 0){
SoundMixer.soundTransform = new SoundTransform(1);
_sprite.gotoAndStop(1);
};
};
count = 0;
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 29
//btn_nextStory_49 (ComicBookMovie_Nowgamez_v2a_fla.btn_nextStory_49)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_nextStory_49 extends MovieClip {
public function btn_nextStory_49(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
MovieClip(parent).nextFrame();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 30
//btn_noPausePrompt_193 (ComicBookMovie_Nowgamez_v2a_fla.btn_noPausePrompt_193)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_noPausePrompt_193 extends MovieClip {
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function btn_noPausePrompt_193(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
musicBtn(this);
}
public function musicBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
main.iResumeAngGame();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 31
//btn_nowGamezLogo_nowGamez_100 (ComicBookMovie_Nowgamez_v2a_fla.btn_nowGamezLogo_nowGamez_100)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_nowGamezLogo_nowGamez_100 extends MovieClip {
public function btn_nowGamezLogo_nowGamez_100(){
addFrameScript(0, frame1);
}
public function navBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
function frame1(){
stop();
navBtn(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 32
//btn_pause_190 (ComicBookMovie_Nowgamez_v2a_fla.btn_pause_190)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_pause_190 extends MovieClip {
public var main:MovieClip;
public function btn_pause_190(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(parent);
musicBtn(this);
}
public function musicBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
if ((((main.levelComplete == false)) || (!((main.lifeNum == 0))))){
main.iPauseAngGame();
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 33
//btn_shopMoreGames_158 (ComicBookMovie_Nowgamez_v2a_fla.btn_shopMoreGames_158)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn_shopMoreGames_158 extends MovieClip {
public function btn_shopMoreGames_158(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 34
//btn_skipStory_62 (ComicBookMovie_Nowgamez_v2a_fla.btn_skipStory_62)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_skipStory_62 extends MovieClip {
public function btn_skipStory_62(){
addFrameScript(0, frame1);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
MovieClip(root).gotoAndPlay(2);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
function frame1(){
sponsorLinkTemp(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 35
//btn_specials1and2_145 (ComicBookMovie_Nowgamez_v2a_fla.btn_specials1and2_145)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_specials1and2_145 extends MovieClip {
public function btn_specials1and2_145(){
addFrameScript(0, frame1);
}
public function buttonFunctions(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var _mc = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
MovieClip(root).ipakitaSpecials1And2();
};
_mc.buttonMode = true;
_mc.addEventListener(MouseEvent.MOUSE_OVER, mOver);
_mc.addEventListener(MouseEvent.MOUSE_OUT, mOut);
_mc.addEventListener(MouseEvent.CLICK, klik);
}
function frame1(){
buttonFunctions(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 36
//btn_weaponsAndUpgrades_148 (ComicBookMovie_Nowgamez_v2a_fla.btn_weaponsAndUpgrades_148)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_weaponsAndUpgrades_148 extends MovieClip {
public function btn_weaponsAndUpgrades_148(){
addFrameScript(0, frame1);
}
public function buttonFunctions(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var _mc = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
MovieClip(root).ipakitaWeaponAndUpgrades();
};
_mc.buttonMode = true;
_mc.addEventListener(MouseEvent.MOUSE_OVER, mOver);
_mc.addEventListener(MouseEvent.MOUSE_OUT, mOut);
_mc.addEventListener(MouseEvent.CLICK, klik);
}
function frame1(){
buttonFunctions(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 37
//btn_yesPausePrompt_192 (ComicBookMovie_Nowgamez_v2a_fla.btn_yesPausePrompt_192)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_yesPausePrompt_192 extends MovieClip {
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function btn_yesPausePrompt_192(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
musicBtn(this);
}
public function musicBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
main.magExitSaGame();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 38
//Loadingpage_3 (ComicBookMovie_Nowgamez_v2a_fla.Loadingpage_3)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Loadingpage_3 extends MovieClip {
public var flame_mc:MovieClip;
public var preloaderLink_mc:MovieClip;
public var play_btn:MovieClip;
public var loaderBar_mc:MovieClip;
public var title_mc:MovieClip;
public function Loadingpage_3(){
addFrameScript(13, frame14, 108, frame109);
}
public function mOver(_arg1:MouseEvent){
play_btn.gotoAndStop(2);
}
public function mOut(_arg1:MouseEvent){
play_btn.gotoAndStop(1);
}
function frame109(){
stop();
play_btn.buttonMode = true;
play_btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
play_btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
play_btn.addEventListener(MouseEvent.CLICK, fun);
}
function frame14(){
stop();
navBtn(preloaderLink_mc);
}
public function navBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
public function fun(_arg1:MouseEvent){
MovieClip(this.parent).gotoAndPlay(2);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 39
//Logoanimation_25 (ComicBookMovie_Nowgamez_v2a_fla.Logoanimation_25)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Logoanimation_25 extends MovieClip {
public function Logoanimation_25(){
addFrameScript(0, frame1, 297, frame298);
}
public function navBtn(_arg1:MovieClip){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
var _local2 = "http://www.nowgamez.com/Friv/3d-taxi-racing?utm_source=ComicBookMovie&utm_medium=ComicBookMovie&utm_campaign=ComicBookMovie";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
function frame298(){
stop();
MovieClip(root).gotoAndPlay("toMain");
}
function frame1(){
navBtn(this);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 40
//MainTimeline (ComicBookMovie_Nowgamez_v2a_fla.MainTimeline)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.text.*;
import ru.etcs.ui.*;
import com.adobe.crypto.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.errors.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var kills_txt:TextField;
public var emergency1_des:String;
public var submit:MovieClip;
public var kills_levels:Number;
public var loader:URLLoader;
public var upgrade3Level:Number;
public var score10:TextField;
public var weapon3_name:String;
public var award7Des:String;
public var upgrade3_name:String;
public var loader_txt:TextField;
public var bgStars1a_mc:MovieClip;
public var mTracker_mc:MovieClip;
public var strikeSnd:Sound;
public var playerSpecial6Array:Array;
public var ammo4Max:Number;
public var waveMax_lvl1:Number;
public var special5UIContainer_mc:MovieClip;
public var waveMax_lvl3:Number;
public var waveMax_lvl4:Number;
public var waveMax_lvl5:Number;
public var waveMax_lvl7:Number;
public var waveMax_lvl8:Number;
public var weapon5_des:String;
public var shieldActivated:String;
public var award4_Name:String;
public var award11_Name:String;
public var waveMax_lvl6:Number;
public var special3Activated:String;
public var waveMax_lvl9:Number;
public var enemyAmmo4Array:Array;
public var awardBack_btn:MovieClip;
public var lPoint:Point;
public var waveMax_lvl2:Number;
public var ammoContent_mc:MovieClip;
public var upgrade5_des:String;
public var selectedWeapon:Number;
public var weapon3Availability:String;
public var playerAmmo4Array:Array;
public var award2_mc:MovieClip;
public var ammo_mc:MovieClip;
public var upgrade3_price:Number;
public var weapon3_price:Number;
public var upgrade4Level:Number;
public var ammo4Inventory:Number;
public var title_mc:MovieClip;
public var waveTimer_lvl1:Timer;
public var waveTimer_lvl3:Timer;
public var waveTimer_lvl4:Timer;
public var waveTimer_lvl5:Timer;
public var waveTimer_lvl6:Timer;
public var waveTimer_lvl7:Timer;
public var waveTimer_lvl8:Timer;
public var waveTimer_lvl2:Timer;
public var weapon4_des:String;
public var waveTimer_lvl9:Timer;
public var weapon4_name:String;
public var wave_lvl10:Number;
public var wave_lvl11:Number;
public var wave_lvl12:Number;
public var upgrade4_name:String;
public var buySnd:Sound;
public var special1_price:Number;
public var award9Des:String;
public var btnHoverSnd:Sound;
public var emergency1_price:Number;
public var award12_Name:String;
public var lifeDenom:Number;
public var special3Availability:String;
public var upgrade4_des:String;
public var enemyAmmo5Array:Array;
public var ammo3Reload:Number;
public var award5_Name:String;
public var special6_price:Number;
public var playerAmmo5Array:Array;
public var btnClickSnd:Sound;
public var flakes1_1_mc:MovieClip;
public var btn_garbage:MovieClip;
public var playerSpecial5aArray:Array;
public var award4_mc:MovieClip;
public var weapon3_des:String;
public var upgrade5Level:Number;
public var specialContainer_mc:MovieClip;
public var powerUpsContent_mc:MovieClip;
public var currentPanelIndicator_mc:MovieClip;
public var minionROF:Number;
public var moneyArray:Array;
public var special4Activated:String;
public var weapon5_name:String;
public var pickupWeaponArray:Array;
public var upgrade3_des:String;
public var upgrade5_name:String;
public var flareTmrObject:Timer;
public var gameScreenSnd:Sound;
public var award11Des:String;
public var flareActivated:String;
public var preloaderContainer_mc:MovieClip;
public var award6_Name:String;
public var killsOverall:Number;
public var enemyAmmo6Array:Array;
public var storyPanel_mc:MovieClip;
public var awardSnd:Sound;
public var gameCurrentLevel_txt:TextField;
public var playerAmmo6Array:Array;
public var money_levels:Number;
public var wave_lvl2:Number;
public var wave_lvl3:Number;
public var wave_lvl4:Number;
public var wave_lvl5:Number;
public var shieldEnergyDenom:Number;
public var wave_lvl7:Number;
public var wave_lvl1:Number;
public var wave_lvl6:Number;
public var wave_lvl8:Number;
public var wave_lvl9:Number;
public var weapon2_des:String;
public var name10:TextField;
public var homingSnd:Sound;
public var cloakEnergyNum:Number;
public var flakes2_1_mc:MovieClip;
public var upgrade2_des:String;
public var EMPActivated:String;
public var upgrade6Level:Number;
public var playerAmmo2Rof:Number;
public var upgrade6_name:String;
public var weapon2Availability:String;
public var award6_mc:MovieClip;
public var upgrade1_price:Number;
public var flame_mc:MovieClip;
public var panelCode:Number;
public var pickupAmmo2Max:Number;
public var toPostLevelTimer:Timer;
public var gameStateCode:Number;
public var award7_Name:String;
public var award2Des:String;
public var upgrade6_price:Number;
public var upgrade1_des:String;
public var money_txt:TextField;
public var shieldEnergyNum:Number;
public var playerAmmo7Array:Array;
public var flakes3_1_mc:MovieClip;
public var request:URLRequest;
public var special2Availability:String;
public var special5Activated:String;
public var ammo1Reload:Number;
public var healthSymbol_mc:MovieClip;
public var special4_price:Number;
public var basicControls_mc:MovieClip;
public var flareSnd:Sound;
public var pausePrompt2_mc:MovieClip;
public var pickUpAmmo2Rof:Number;
public var playerAmmo4Rof:Number;
public var award8_mc:MovieClip;
public var waveInterval:Number;
public var ammo6Reload:Number;
public var lifeNum:Number;
public var bossArray:Array;
public var award8_Name:String;
public var bar1_mc:MovieClip;
public var pickupAmmo4Max:Number;
public var howToBack_btn:MovieClip;
public var pickupAmmo1Inventory:Number;
public var howToNext_btn:MovieClip;
public var disFromBarrel:Number;
public var award4Des:String;
public var emergencyItem3Array:Array;
public var flakes4_1_mc:MovieClip;
public var crystalSndChannel:SoundChannel;
public var BossLifeUIContainer_mc:MovieClip;
public var loaderBar_mc:MovieClip;
public var mute_btn:MovieClip;
public var weaponAccuracy:Number;
public var emergency3Availability:String;
public var ammo1Max:Number;
public var creditsPage_mc:MovieClip;
public var outroSnd:Sound;
public var moneyOverall:Number;
public var musicShow_txt:TextField;
public var special6_des:String;
public var award10_mc:MovieClip;
public var pickUpAmmo4Rof:Number;
public var bossWarningSnd:Sound;
public var playerAmmo6Rof:Number;
public var level:Number;
public var weaponryAndUpgrades_btn:MovieClip;
public var loadmode:int;
public var waveTimer_lvl10:Timer;
public var waveTimer_lvl11:Timer;
public var waveTimer_lvl12:Timer;
public var qualityCode:Number;
public var award9_Name:String;
public var abSubmitScore_btn:MovieClip;
public var loadGame_btn:MovieClip;
public var whiteFlash_mc:MovieClip;
public var emergencyItem3aArray:Array;
public var nonGameScreenSnd:Sound;
public var levelContainer_mc:MovieClip;
public var pickupWeapon:String;
public var award6Des:String;
public var score1:TextField;
public var score2:TextField;
public var score3:TextField;
public var score4:TextField;
public var score5:TextField;
public var score6:TextField;
public var score7:TextField;
public var score8:TextField;
public var score9:TextField;
public var special3UIContainer_mc:MovieClip;
public var upgrade4_price:Number;
public var fireWeapon:String;
public var magnetRange:Number;
public var special1_name:String;
public var special5_des:String;
public var weapon4_price:Number;
public var ammo3Max:Number;
public var moreGames_btn:MovieClip;
public var special1And2_btn:MovieClip;
public var special1Availability:String;
public var special2_price:Number;
public var waveMax_lvl10:Number;
public var waveMax_lvl12:Number;
public var pickupAmmo2Inventory:Number;
public var waveMax_lvl11:Number;
public var award12_mc:MovieClip;
public var shieldInUse:String;
public var award1_mc:MovieClip;
public var retry_btn:MovieClip;
public var qualityShow_txt:TextField;
public var emergency2_price:Number;
public var awards_btn:MovieClip;
public var cbm_so:SharedObject;
public var mainMenu_btn:MovieClip;
public var rPoint:Point;
public var explosionArray:Array;
public var ammo4Reload:Number;
public var highscores_btn:MovieClip;
public var emergencyItemsContainer_mc:MovieClip;
public var dead:String;
public var special4_des:String;
public var special2_name:String;
public var levelClearText_mc:MovieClip;
public var agButton_btn:MovieClip;
public var playerSpecial6aArray:Array;
public var award8Des:String;
public var sndStory1:Sound;
public var special6Availability:String;
public var sndStory2:Sound;
public var pickUpAmmo1Array:Array;
public var coins_txt:TextField;
public var acquireSnd:Sound;
public var emergency2Availability:String;
public var newGamePrompt_mc:MovieClip;
public var explodeSnd:Sound;
public var allowToPlayExplode:String;
public var initiateMission_btn:MovieClip;
public var shopLogo_mc:MovieClip;
public var abTitle_btn:MovieClip;
public var levelComplete:Boolean;
public var load_delay:Number;
public var special3_des:String;
public var pausePrompt_mc:MovieClip;
public var fader_mc:MovieClip;
public var award3_mc:MovieClip;
public var special3_name:String;
public var mouseFollowSpeed:Number;
public var credits_btn:MovieClip;
public var mb2:SimpleButton;
public var mb3:SimpleButton;
public var playerSpecial1Array:Array;
public var award10Des:String;
public var weaponDmg:Number;
public var pickUpAmmo2Array:Array;
public var pickupAmmo3Inventory:Number;
public var brixEntrance:Sound;
public var upgrade2_price:Number;
public var weapon2_price:Number;
public var special2_des:String;
public var gameRunning:Boolean;
public var ammo1Inventory:Number;
public var upgradesContainer_mc:MovieClip;
public var playerAmmo1Rof:Number;
public var EmergencyItemUIContainer:MovieClip;
public var flakes1_2_mc:MovieClip;
public var musicCode:Number;
public var special4_name:String;
public var award5_mc:MovieClip;
public var barContainer_mc:MovieClip;
public var pickupAmmo1Max:Number;
public var playerSpecial2Array:Array;
public var ammo2Reload:Number;
public var special5_price:Number;
public var pickUpAmmo3Array:Array;
public var special1_des:String;
public var award12Des:String;
public var award1Des:String;
public var abShowScore_btn:MovieClip;
public var special5Availability:String;
public var abPostAward_btn:MovieClip;
public var ammo7Reload:Number;
public var special4UIContainer_mc:MovieClip;
public var music:String;
public var special1Activated:String;
public var emergency1Availability:String;
public var postWinNext_btn:MovieClip;
public var flakes2_2_mc:MovieClip;
public var newGame_btn:MovieClip;
public var weaponContainer_mc:MovieClip;
public var crystalSnd:Sound;
public var special5_name:String;
public var bossBio:MovieClip;
public var playerAmmo3Rof:Number;
public var pickUpAmmo1Rof:Number;
public var pickupAmmo4Inventory:Number;
public var award7_mc:MovieClip;
public var submitScoreBack_btn:MovieClip;
public var blasterSnd:Sound;
public var playerSpecial3Array:Array;
public var Score:Number;
public var pickUpAmmo4Array:Array;
public var blasterEnergyMax:Number;
public var shopBG_mc:mc_shopBG;
public var pickupAmmo3Max:Number;
public var award1_Name:String;
public var laserSnd:Sound;
public var ammo2Inventory:Number;
public var scrollElement1:MovieClip;
public var scrollElement2:MovieClip;
public var scrollElement3:MovieClip;
public var scrollElement4:MovieClip;
public var emergency1_name:String;
public var Name:String;
public var enemyAmmo1Array:Array;
public var playerAmmo1Array:Array;
public var bossSnd:Sound;
public var playerSpecial2Rof:Number;
public var play_btn:MovieClip;
public var numOfMinion:Number;
public var award3Des:String;
public var flakes3_2_mc:MovieClip;
public var upgrade1Level:Number;
public var upgrade1_name:String;
public var selectedEmergencyWeapon:Number;
public var special6_name:String;
public var name1:TextField;
public var name2:TextField;
public var name3:TextField;
public var name4:TextField;
public var name5:TextField;
public var name6:TextField;
public var name7:TextField;
public var name8:TextField;
public var name9:TextField;
public var cloakEnergyDenom:Number;
public var emergency3_des:String;
public var weapon4Availability:String;
public var explodeSndChannel:SoundChannel;
public var playerSpecial4Array:Array;
public var allowToPlayCrystal:String;
public var pickUpAmmo3Rof:Number;
public var upgrade5_price:Number;
public var lifeBarContainer_mc:MovieClip;
public var award9_mc:MovieClip;
public var playerAmmo5Rof:Number;
public var award2_Name:String;
public var enemyAmmo2Array:Array;
public var basicControlsContent_mc:MovieClip;
public var bgStars3a_mc:MovieClip;
public var emergency2_name:String;
public var bar2_mc:MovieClip;
public var map_mc:MovieClip;
public var introSnd:Sound;
public var special1UIContainer_mc:MovieClip;
public var powerUps_mc:MovieClip;
public var special3_price:Number;
public var playerAmmo2Array:Array;
public var wireEnergy:Number;
public var award5Des:String;
public var postFinNext_btn:MovieClip;
public var flakes4_2_mc:MovieClip;
public var blasterEnergy:Number;
public var upgrade2Level:Number;
public var emergency3_price:Number;
public var special4Availability:String;
public var weapon2_name:String;
public var ammo2Max:Number;
public var upgrade2_name:String;
public var playerSpecial4Rof:Number;
public var ammo5Reload:Number;
public var storyContainer_mc:MovieClip;
public var emergency2_des:String;
public var enemyArray:Array;
public var ammo3Inventory:Number;
public var playerSpecial5Array:Array;
public var showScoreBack_btn:MovieClip;
public var award10_Name:String;
public var bgStars2a_mc:MovieClip;
public var award3_Name:String;
public var award11_mc:MovieClip;
public var abortMission_btn:MovieClip;
public var enemyAmmo3Array:Array;
public var cloakActivated:String;
public var upgrade6_des:String;
public var emergency3_name:String;
public var playerAmmo7Rof:Number;
public var playerAmmo3Array:Array;
public var redFlash_mc:MovieClip;
public var keyIsPressed:String;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 5, frame6, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 36, frame37);
}
public function attHealthPrompt(_arg1:MovieClip){
playAcquireSnd();
var _local2:HealthPrompt = new HealthPrompt();
if ((_arg1 is Health1)){
_local2.display_mc.gotoAndStop(1);
} else {
if ((_arg1 is Health2)){
_local2.display_mc.gotoAndStop(2);
};
};
_local2.x = 200;
_local2.y = 350;
levelContainer_mc.addChild(_local2);
}
public function sponsorLinkTemp(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function keyIsDown(_arg1:KeyboardEvent){
if (MovieClip(root).gameRunning == true){
if (_arg1.keyCode == 81){
trace("quality");
qualityCode++;
if (qualityCode == 1){
stage.quality = "low";
qualityShow_txt.text = "[ Q ] - Quality Toggle: LOW ";
};
if (qualityCode == 2){
stage.quality = "medium";
qualityShow_txt.text = "[ Q ] - Quality Toggle: MEDIUM";
};
if (qualityCode == 3){
stage.quality = "high";
qualityShow_txt.text = "[ Q ] - Quality Toggle: HIGH";
qualityCode = 0;
};
};
if (_arg1.keyCode == 77){
musicCode++;
if (musicCode == 1){
SoundMixer.soundTransform = new SoundTransform(0);
musicShow_txt.text = "[ M ] - MUSIC - OFF";
};
if (musicCode == 2){
SoundMixer.soundTransform = new SoundTransform(1);
musicShow_txt.text = "[ M ] - MUSIC - ON";
musicCode = 0;
};
};
if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){
if (keyIsPressed == "false"){
switch (_arg1.keyCode){
case 49:
if ((((special1Availability == "sold")) && ((special1Activated == "false")))){
trace("homing missiles");
playHomingSnd();
special1UIContainer_mc.gotoAndStop(1);
bubbleAnimation(special1UIContainer_mc);
attPlayerSpecial1();
special1Activated = "true";
};
keyIsPressed = "true";
break;
case 50:
if ((((special3Availability == "sold")) && ((special3Activated == "false")))){
trace("missile strike");
special3UIContainer_mc.gotoAndStop(1);
bubbleAnimation(special3UIContainer_mc);
attPlayerSpecial3();
special3Activated = "true";
};
keyIsPressed = "true";
break;
case 51:
if ((((special4Availability == "sold")) && ((special4Activated == "false")))){
trace("blaster");
special4UIContainer_mc.gotoAndStop(1);
bubbleAnimation(special4UIContainer_mc);
special4Activated = "true";
};
keyIsPressed = "true";
break;
case 52:
if ((((special5Availability == "sold")) && ((special5Activated == "false")))){
trace("wire");
playLaserSnd();
special5UIContainer_mc.gotoAndStop(1);
bubbleAnimation(special5UIContainer_mc);
attPlayerSpecial5();
special5Activated = "true";
};
keyIsPressed = "true";
break;
case 32:
trace("space");
if ((((selectedEmergencyWeapon == 1)) && ((shieldActivated == "no")))){
shieldActivated = "yes";
levelContainer_mc.player_mc.forceField_mc.gotoAndPlay(2);
EmergencyItemUIContainer.alpha = 0;
} else {
if ((((selectedEmergencyWeapon == 2)) && ((EMPActivated == "no")))){
EMPActivated = "yes";
levelContainer_mc.player_mc.empCharging_mc.gotoAndPlay(2);
EmergencyItemUIContainer.alpha = 0;
} else {
if ((((selectedEmergencyWeapon == 3)) && ((flareActivated == "no")))){
flareActivated = "yes";
attEmegencyItem3();
EmergencyItemUIContainer.alpha = 0;
};
};
};
keyIsPressed = "true";
break;
};
};
};
};
}
public function updateLevel(){
toPostLevelTimer.start();
levelComplete = true;
}
public function initLevelButton2(_arg1:MovieClip, _arg2:Number){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
var lvl = _arg2;
movr = function (_arg1:MouseEvent){
Tweener.addTween(map_mc, {x:298.4, time:0.4, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(map_mc, {x:-565.8, time:0.4, transition:"easeOutStrong"});
};
mclck = function (_arg1:MouseEvent){
gotoAndStop(String(("level" + lvl)));
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
function frame11(){
stop();
updateQualityAndMusicDisplay();
weapon2_name = "JADE ORB";
weapon3_name = "PYROBALL";
weapon4_name = "TASTE IT";
weapon5_name = "ELEC SPHERE";
weapon2_des = "Basic energy blaster";
weapon3_des = "Blast with spirit of fire";
weapon4_des = "Looks like blueberry but it is deadly";
weapon5_des = "The enemy will tremble";
special1_name = "SEEKERZZZ";
special2_name = "ROCKET PAIN";
special3_name = "FLAME BURST";
special4_name = "STRIKERS";
special5_name = "LIFE TAKER";
special6_name = "DRONE";
special1_des = "Activate homing rockets. \nPress 1 to activate.";
special2_des = "Barrage of mini rockets.\n(Automatically deployed)";
special3_des = "A deadly rain of fire.\nPress 2 to activate.";
special4_des = "A huge electric beam. \nPress 3 to activate";
special5_des = "Destroys enemy's vitality. \nPress 4 to activate";
special6_des = "Extra manpower! \n(Automatically deployed)";
upgrade1_name = "LIFE FORCE";
upgrade2_name = "ACCELERATION";
upgrade3_name = "DRONES";
upgrade4_name = "FIRE POWER";
upgrade5_name = "DRONES' MIGHT";
upgrade6_name = "MONEY MAGNET";
upgrade1_des = "Heightens vitality.";
upgrade2_des = "Raise speed.";
upgrade3_des = "More helper.";
upgrade4_des = "Enhance damage power";
upgrade5_des = "Advance the rate of fire of helper.";
upgrade6_des = "As the title suggests!";
emergency1_name = "FORCE FIELD";
emergency2_name = "BOMB THEM";
emergency3_name = "ARTILLERY";
emergency1_des = "Magnetic shield. (SPACE) to use.";
emergency2_des = "Obliterate all enemies. (SPACE) to use.";
emergency3_des = "Continuous deployment of deadly missiles. (SPACE) to use.";
weapon2_price = 80;
weapon3_price = 250;
weapon4_price = 300;
special1_price = 150;
special2_price = 150;
special3_price = 120;
special4_price = 175;
special5_price = 80;
special6_price = 120;
emergency1_price = 100;
emergency2_price = 110;
emergency3_price = 150;
special1Activated = "false";
special3Activated = "false";
special4Activated = "false";
special5Activated = "false";
initShop();
acquireWeapons(weaponContainer_mc.weapon1Buy_btn);
acquireWeapons(weaponContainer_mc.weapon2Buy_btn);
acquireWeapons(weaponContainer_mc.weapon3Buy_btn);
acquireWeapons(weaponContainer_mc.weapon4Buy_btn);
acquireSpecials(specialContainer_mc.special1Buy_btn);
acquireSpecials(specialContainer_mc.special2Buy_btn);
acquireSpecials(specialContainer_mc.special3Buy_btn);
acquireSpecials(specialContainer_mc.special4Buy_btn);
acquireSpecials(specialContainer_mc.special5Buy_btn);
acquireSpecials(specialContainer_mc.special6Buy_btn);
upgrades(upgradesContainer_mc.upgrade1_btn);
upgrades(upgradesContainer_mc.upgrade2_btn);
upgrades(upgradesContainer_mc.upgrade3_btn);
upgrades(upgradesContainer_mc.upgrade4_btn);
upgrades(upgradesContainer_mc.upgrade5_btn);
upgrades(upgradesContainer_mc.upgrade6_btn);
acquireEmergencyWeapon(emergencyItemsContainer_mc.emergeny1Buy_btn);
acquireEmergencyWeapon(emergencyItemsContainer_mc.emergeny2Buy_btn);
acquireEmergencyWeapon(emergencyItemsContainer_mc.emergeny3Buy_btn);
navButtons(abortMission_btn, "title");
initLevelButton(initiateMission_btn, level);
this.addEventListener(Event.ENTER_FRAME, shopLooper);
panelCode = 1;
fader();
}
function frame12(){
initGame();
}
function frame13(){
initGame();
}
function frame14(){
initGame();
}
function frame15(){
initGame();
}
function frame16(){
initGame();
}
function frame10(){
stop();
updateQualityAndMusicDisplay();
navButtons(howToBack_btn, "title");
navButtons(howToNext_btn, "prelevel");
this.addEventListener(Event.ENTER_FRAME, howToLooper);
fader();
basicControls_mc.y = 103;
basicControls_mc.scaleX = 0;
basicControls_mc.scaleY = 0;
basicControls_mc.rotation = 20;
Tweener.addTween(basicControls_mc, {scaleX:1, scaleY:1, rotation:0, time:0.8, transition:"easeOutElastic"});
Tweener.addTween(basicControls_mc, {y:43.45, time:1, delay:0.6, transition:"easeInOutElastic"});
basicControlsContent_mc.y = 48.15;
basicControlsContent_mc.alpha = 0;
Tweener.addTween(basicControlsContent_mc, {alpha:1, time:0.4, delay:1.2, transition:"linear"});
Tweener.addTween(basicControlsContent_mc, {y:138.15, time:1, delay:0.8, transition:"easeInOutElastic"});
powerUps_mc.y = 310;
powerUps_mc.scaleX = 0;
powerUps_mc.scaleY = 0;
powerUps_mc.rotation = 20;
Tweener.addTween(powerUps_mc, {scaleX:1, scaleY:1, rotation:0, time:0.8, delay:0.1, transition:"easeOutElastic"});
Tweener.addTween(powerUps_mc, {y:231.55, time:1, delay:0.7, transition:"easeInOutElastic"});
powerUpsContent_mc.y = 232.35;
powerUpsContent_mc.alpha = 0;
Tweener.addTween(powerUpsContent_mc, {alpha:1, time:0.4, delay:1.3, transition:"linear"});
Tweener.addTween(powerUpsContent_mc, {y:312.35, time:1, delay:0.9, transition:"easeInOutElastic"});
ammo_mc.y = 473.6;
ammo_mc.scaleX = 0;
ammo_mc.scaleY = 0;
ammo_mc.rotation = 20;
Tweener.addTween(ammo_mc, {scaleX:1, scaleY:1, rotation:0, time:0.8, delay:0.2, transition:"easeOutElastic"});
Tweener.addTween(ammo_mc, {y:393.6, time:1, delay:0.8, transition:"easeInOutElastic"});
ammoContent_mc.y = 393.55;
ammoContent_mc.alpha = 0;
Tweener.addTween(ammoContent_mc, {alpha:1, time:0.4, delay:1.4, transition:"linear"});
Tweener.addTween(ammoContent_mc, {y:483.55, time:1, delay:1, transition:"easeInOutElastic"});
}
function frame18(){
initGame();
}
function frame19(){
initGame();
}
public function keyIsUp(_arg1:KeyboardEvent){
if (MovieClip(root).gameRunning == true){
if ((((((((((_arg1.keyCode == 49)) || ((_arg1.keyCode == 50)))) || ((_arg1.keyCode == 51)))) || ((_arg1.keyCode == 52)))) || ((_arg1.keyCode == 32)))){
keyIsPressed = "false";
};
};
}
function frame26(){
stop();
navButtons(postFinNext_btn, "outro");
this.addEventListener(Event.ENTER_FRAME, postFinLooper);
fader();
}
function frame24(){
stop();
kills_txt.text = String(kills_levels);
coins_txt.text = String(money_levels);
navButtons(postWinNext_btn, "prelevel");
fader();
}
function frame23(){
initGame();
}
public function horizontalScroller(_arg1:MovieClip){
_arg1.x = (_arg1.x - 1);
if (_arg1.x < -200){
_arg1.x = randomGenerator(1200, 1600);
_arg1.y = randomGenerator(200, 500);
};
}
function frame25(){
navButtons(retry_btn, "prelevel");
navButtons(mainMenu_btn, "title");
fader();
}
function frame17(){
initGame();
}
function frame20(){
initGame();
}
function frame22(){
initGame();
}
function frame28(){
Security.allowDomain("*");
Security.loadPolicyFile("http://hiscore.arcadebomb.com/crossdomain.xml");
submit.button.addEventListener(MouseEvent.MOUSE_UP, buttonPressed);
navButtons(submitScoreBack_btn, "title");
sponsorLinkBtns(abSubmitScore_btn);
}
function frame29(){
Security.allowDomain("*");
Security.loadPolicyFile("http://hiscore.arcadebomb.com/crossdomain.xml");
loadmode = 1;
request = new URLRequest("http://hiscore.arcadebomb.com/bioassault_get.php");
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
request.data = ("m=" + loadmode);
request.method = URLRequestMethod.POST;
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.load(request);
abShowScore_btn.addEventListener(MouseEvent.MOUSE_UP, button1Pressed);
mb2.addEventListener(MouseEvent.MOUSE_UP, button2Pressed);
navButtons(showScoreBack_btn, "title");
}
public function buttonPressed(_arg1:MouseEvent){
Name = submit.inputbox.text;
Score = cbm_so.data.killsOveralll_so;
var _local2:URLVariables = new URLVariables();
_local2.n = Name;
_local2.s = Score;
_local2.k = MD5.hash(("" + (Score + 1518)));
_local2.m = 1;
trace(_local2);
var _local3:URLRequest = new URLRequest("http://hiscore.arcadebomb.com/bioassault_submit.php");
_local3.method = "POST";
_local3.data = _local2;
var _local4:URLLoader = new URLLoader();
_local4.load(_local3);
_local4.addEventListener(Event.COMPLETE, goodjob);
}
function frame37(){
stop();
switch (level){
case 2:
bossBio.gotoAndStop(1);
break;
case 4:
bossBio.gotoAndStop(2);
break;
case 6:
bossBio.gotoAndStop(3);
break;
case 8:
bossBio.gotoAndStop(4);
break;
case 10:
bossBio.gotoAndStop(5);
break;
case 12:
bossBio.gotoAndStop(6);
break;
};
initLevelButton2(play_btn, level);
}
function frame27(){
stop();
fader();
navButtons(awardBack_btn, "title");
sponsorLinkBtns(abPostAward_btn);
updateQualityAndMusicDisplay();
initAwardsScreen();
_setAwardsNameDesc(award1_mc, award1_Name, award1Des);
_setAwardsNameDesc(award2_mc, award2_Name, award2Des);
_setAwardsNameDesc(award3_mc, award3_Name, award3Des);
_setAwardsNameDesc(award4_mc, award4_Name, award4Des);
_setAwardsNameDesc(award5_mc, award5_Name, award5Des);
_setAwardsNameDesc(award6_mc, award6_Name, award6Des);
_setAwardsNameDesc(award7_mc, award7_Name, award7Des);
_setAwardsNameDesc(award8_mc, award8_Name, award8Des);
_setAwardsNameDesc(award9_mc, award9_Name, award9Des);
_setAwardsNameDesc(award10_mc, award10_Name, award10Des);
_setAwardsNameDesc(award11_mc, award11_Name, award11Des);
_setAwardsNameDesc(award12_mc, award12_Name, award12Des);
}
function frame21(){
initGame();
}
public function removeFromArray(_arg1:Array, _arg2:MovieClip){
var _local3:Number = 0;
while (_local3 < _arg1.length) {
if (_arg1[_local3] == _arg2){
_arg1.splice(_local3, 1);
levelContainer_mc.removeChild(_arg2);
break;
};
_local3++;
};
}
public function attEnemyAmmo1BarrageFromRight(){
var _local3:EnemyAmmo1;
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < 12) {
_local3 = new EnemyAmmo1(650, _local1, 180);
_local3.main = this;
levelContainer_mc.addChild(_local3);
enemyAmmo1Array.push(_local3);
_local1 = (_local1 + 75);
_local2++;
};
}
public function flareTmrComplete(_arg1:TimerEvent){
flareTmrObject.reset();
}
public function playBG1(){
SoundMixer.stopAll();
if (music == "on"){
trace("BG1");
nonGameScreenSnd.play(0, int.MAX_VALUE);
};
}
public function playBG2(){
SoundMixer.stopAll();
if (music == "on"){
gameScreenSnd.play(0, int.MAX_VALUE);
};
}
public function playBG3(){
playBossWarningSnd();
SoundMixer.stopAll();
if (music == "on"){
bossSnd.play(0, int.MAX_VALUE);
};
}
public function navButtons(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
playBtnClickSnd();
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function attHealth2Acquired(_arg1:MovieClip){
var _local2:mc_health2Acquired = new mc_health2Acquired();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
levelContainer_mc.addChild(_local2);
}
public function newGamePrompter(){
Tweener.addTween(newGamePrompt_mc, {x:350, time:0.4, transition:"easeOutStrong"});
}
public function attPlayerSpecial6Ammo(_arg1:MovieClip){
var _local2:PlayerAmmo1 = new PlayerAmmo1(_arg1.x, _arg1.y, 270);
levelContainer_mc.addChild(_local2);
playerAmmo1Array.push(_local2);
}
public function initWireOnEnemies(){
var _local1:Number = (enemyArray.length - 1);
while (_local1 >= 0) {
if ((((((((enemyArray[_local1].x > 0)) && ((enemyArray[_local1].x < 550)))) && ((enemyArray[_local1].y > 0)))) && ((enemyArray[_local1].y < 550)))){
enemyArray[_local1].initWire();
};
_local1--;
};
var _local2:Number = (bossArray.length - 1);
while (_local2 >= 0) {
bossArray[_local2].initWire();
_local2--;
};
}
public function playHomingSnd(){
if (music == "on"){
homingSnd.play();
};
}
public function shopLooper(_arg1:Event){
if (currentFrame == 4){
} else {
this.removeEventListener(Event.ENTER_FRAME, shopLooper);
};
}
public function loading(_arg1:Event):void{
var _local2:Number = this.stage.loaderInfo.bytesTotal;
var _local3:Number = this.stage.loaderInfo.bytesLoaded;
if (load_delay < Math.floor(((_local3 / _local2) * 100))){
load_delay++;
preloaderContainer_mc.loaderBar_mc.gotoAndStop(load_delay);
if (load_delay >= 100){
preloaderContainer_mc.gotoAndPlay(100);
this.removeEventListener(Event.ENTER_FRAME, loading);
};
};
}
public function playBuySnd(){
if (music == "on"){
buySnd.play();
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function checkHit(_arg1:Array, _arg2:Array, _arg3:Number){
var _local5:Number;
var _local4:Number = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = (_arg2.length - 1);
while (_local5 >= 0) {
if (_arg1[_local4].hitBox_mc.hitTestObject(_arg2[_local5].hitBox_mc)){
if ((((_arg1 == playerSpecial3Array)) || ((_arg1 == playerSpecial1Array)))){
attExplosion(_arg1[_local4]);
};
_arg1[_local4].destruct("");
_arg2[_local5].life = (_arg2[_local5].life - _arg3);
_arg2[_local5].flash_mc.gotoAndPlay(2);
break;
};
_local5--;
};
_local4--;
};
}
public function fader(){
fader_mc.gotoAndPlay(1);
}
public function postFinLooper(_arg1:Event){
if (currentFrame == 19){
} else {
this.removeEventListener(Event.ENTER_FRAME, postFinLooper);
};
}
public function attSpecialRecharge(){
var _local1:Number;
var _local2:Number;
var _local3:SpecialRecharge;
if ((((((((((((special1Availability == "sold")) || ((special2Availability == "sold")))) || ((special3Availability == "sold")))) || ((special4Availability == "sold")))) || ((special5Availability == "sold")))) || ((special6Availability == "sold")))){
_local1 = randomGenerator(50, 500);
_local2 = randomGenerator(-50, 0);
_local3 = new SpecialRecharge(_local1, _local2, 90);
levelContainer_mc.addChild(_local3);
moneyArray.push(_local3);
};
}
public function sponsorLinkSplash(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.addictinggames.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function onIOError(_arg1:IOErrorEvent):void{
trace("Error loading URL.");
}
public function attEnemy11(_arg1:Number){
var _local3:Enemy11;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy11(0, levelContainer_mc.player_mc);
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy12(_arg1:Number){
var _local3:Enemy12;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy12();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy13(_arg1:Number){
var _local3:Number;
var _local4:Number;
var _local5:Enemy13;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = randomGenerator(1, 3);
if (_local3 == 1){
_local4 = randomGenerator(-50, -10);
_local5 = new Enemy13(_local4);
} else {
_local4 = randomGenerator(600, 650);
_local5 = new Enemy13(_local4);
};
_local5.main = this;
_local5.target = levelContainer_mc.player_mc;
_local5.x = _local4;
_local5.y = randomGenerator(40, 110);
levelContainer_mc.addChild(_local5);
enemyArray.push(_local5);
_local2++;
};
}
public function attEnemy14(_arg1:Number){
var _local3:Enemy14;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy14(0, levelContainer_mc.player_mc);
_local3.main = this;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy15(_arg1:Number){
var _local3:Enemy15;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy15();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(10, 450);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy10(_arg1:Number){
var _local3:Enemy10;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy10();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attHealth1Acquired(_arg1:MovieClip){
var _local2:mc_health1Acquired = new mc_health1Acquired();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
levelContainer_mc.addChild(_local2);
}
public function sponsorLinkBtns(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
btn.gotoAndStop(2);
};
mout = function (_arg1:MouseEvent){
btn.gotoAndStop(1);
};
clck = function (_arg1:MouseEvent){
var _local2 = "http://www.arcadebomb.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function playLaserSnd(){
if (music == "on"){
laserSnd.play();
};
}
public function upgrades(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
upgradesContainer_mc.itemDes_txt.textColor = 0xFFFF00;
switch (btn){
case upgradesContainer_mc.upgrade1_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade1_name + "\n\n") + upgrade1_des));
break;
case upgradesContainer_mc.upgrade2_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade2_name + "\n\n") + upgrade2_des));
break;
case upgradesContainer_mc.upgrade3_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade3_name + "\n\n") + upgrade3_des));
break;
case upgradesContainer_mc.upgrade4_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade4_name + "\n\n") + upgrade4_des));
break;
case upgradesContainer_mc.upgrade5_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade5_name + "\n\n") + upgrade5_des));
break;
case upgradesContainer_mc.upgrade6_btn:
upgradesContainer_mc.itemDes_txt.text = String(((upgrade6_name + "\n\n") + upgrade6_des));
break;
};
};
mout = function (_arg1:MouseEvent){
upgradesContainer_mc.itemDes_txt.textColor = 0xFFFFFF;
upgradesContainer_mc.itemDes_txt.text = "Item Description \nHover your mouse on an item to see its description.";
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case upgradesContainer_mc.upgrade1_btn:
if (upgrade1Level < 5){
if (moneyOverall >= upgrade1_price){
upgrade1Level++;
upgradesContainer_mc.showUpgrade1Level_txt.text = String((upgrade1Level + " / 5"));
updateMoney(moneyOverall, upgrade1_price);
upgrade1_price = (upgrade1_price + upgrade1_price);
upgradesContainer_mc.upgrade1price_txt.text = String(upgrade1_price);
};
};
if (upgrade1Level == 5){
upgradesContainer_mc.upgrade1price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade1price_txt);
};
break;
case upgradesContainer_mc.upgrade2_btn:
if (upgrade2Level < 5){
if (moneyOverall >= upgrade2_price){
upgrade2Level++;
upgradesContainer_mc.showUpgrade2Level_txt.text = String((upgrade2Level + " / 5"));
updateMoney(moneyOverall, upgrade2_price);
upgrade2_price = (upgrade2_price + upgrade2_price);
upgradesContainer_mc.upgrade2price_txt.text = String(upgrade2_price);
};
};
if (upgrade2Level == 5){
upgradesContainer_mc.upgrade2price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade2price_txt);
};
break;
case upgradesContainer_mc.upgrade3_btn:
if (upgrade3Level < 3){
if (moneyOverall >= upgrade3_price){
upgrade3Level++;
upgradesContainer_mc.showUpgrade3Level_txt.text = String((upgrade3Level + " / 3"));
updateMoney(moneyOverall, upgrade3_price);
upgrade3_price = (upgrade3_price + upgrade3_price);
upgradesContainer_mc.upgrade3price_txt.text = String(upgrade3_price);
};
};
if (upgrade3Level == 3){
upgradesContainer_mc.upgrade3price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade3price_txt);
};
break;
case upgradesContainer_mc.upgrade4_btn:
if (upgrade4Level < 5){
if (moneyOverall >= upgrade4_price){
upgrade4Level++;
upgradesContainer_mc.showUpgrade4Level_txt.text = String((upgrade4Level + " / 5"));
updateMoney(moneyOverall, upgrade3_price);
upgrade4_price = (upgrade4_price + upgrade4_price);
upgradesContainer_mc.upgrade4price_txt.text = String(upgrade4_price);
};
};
if (upgrade4Level == 5){
upgradesContainer_mc.upgrade4price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade4price_txt);
};
break;
case upgradesContainer_mc.upgrade5_btn:
if (upgrade5Level < 5){
if (moneyOverall >= upgrade5_price){
upgrade5Level++;
upgradesContainer_mc.showUpgrade5Level_txt.text = String((upgrade5Level + " / 5"));
updateMoney(moneyOverall, upgrade5_price);
upgrade5_price = (upgrade5_price + upgrade5_price);
upgradesContainer_mc.upgrade5price_txt.text = String(upgrade5_price);
};
};
if (upgrade5Level == 5){
upgradesContainer_mc.upgrade5price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade5price_txt);
};
break;
case upgradesContainer_mc.upgrade6_btn:
if (upgrade6Level < 5){
if (moneyOverall >= upgrade6_price){
upgrade6Level++;
upgradesContainer_mc.showUpgrade6Level_txt.text = String((upgrade6Level + " / 5"));
updateMoney(moneyOverall, upgrade6_price);
upgrade6_price = (upgrade6_price + upgrade6_price);
upgradesContainer_mc.upgrade6price_txt.text = String(upgrade6_price);
};
};
if (upgrade6Level == 5){
upgradesContainer_mc.upgrade6price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade6price_txt);
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function attEnemyAmmo1(_arg1:MovieClip){
var _local2:EnemyAmmo1 = new EnemyAmmo1(_arg1.x, (_arg1.y + 24), 90);
_local2.main = this;
levelContainer_mc.addChild(_local2);
enemyAmmo1Array.push(_local2);
}
public function attEnemyAmmo2(_arg1:MovieClip){
var _local4:EnemyAmmo2;
var _local2:Number = 150;
var _local3:Number = 0;
while (_local3 < 3) {
_local2 = (_local2 - 30);
_local4 = new EnemyAmmo2(_arg1.x, _arg1.y, _local2);
_local4.main = this;
levelContainer_mc.addChild(_local4);
enemyAmmo2Array.push(_local4);
_local3++;
};
}
public function attEnemyAmmo4(_arg1:MovieClip){
var _local4:EnemyAmmo4;
var _local2:Number = 360;
var _local3:Number = 0;
while (_local3 < 8) {
_local2 = (_local2 - 45);
_local4 = new EnemyAmmo4(_arg1.x, _arg1.y, _local2);
_local4.main = this;
levelContainer_mc.addChild(_local4);
enemyAmmo4Array.push(_local4);
_local3++;
};
}
public function attEnemyAmmo5(_arg1:MovieClip){
var _local4:EnemyAmmo5;
var _local2:Number = 360;
var _local3:Number = 0;
while (_local3 < 12) {
_local2 = (_local2 - 30);
_local4 = new EnemyAmmo5(_arg1.x, _arg1.y, _local2);
_local4.main = this;
levelContainer_mc.addChild(_local4);
enemyAmmo5Array.push(_local4);
_local3++;
};
}
public function attEnemyAmmo6(_arg1:MovieClip){
}
public function attEnemyAmmo3(_arg1:MovieClip){
var _local4:EnemyAmmo3;
var _local2:Number = 160;
var _local3:Number = 0;
while (_local3 < 6) {
_local2 = (_local2 - 20);
_local4 = new EnemyAmmo3(_arg1.x, (_arg1.y + 20), _local2);
_local4.main = this;
levelContainer_mc.addChild(_local4);
enemyAmmo3Array.push(_local4);
_local3++;
};
}
public function iResumeAngGame(){
switch (level){
case 1:
trace("fuck");
waveTimer_lvl1.start();
break;
case 2:
waveTimer_lvl2.start();
break;
case 3:
waveTimer_lvl3.start();
break;
case 4:
waveTimer_lvl4.start();
break;
case 5:
waveTimer_lvl5.start();
break;
case 6:
waveTimer_lvl6.start();
break;
case 7:
waveTimer_lvl7.start();
break;
case 8:
waveTimer_lvl8.start();
break;
case 9:
waveTimer_lvl9.start();
break;
case 10:
waveTimer_lvl10.start();
break;
case 11:
waveTimer_lvl11.start();
break;
case 12:
waveTimer_lvl12.start();
break;
default:
break;
};
var _local1:Number = (moneyArray.length - 1);
while (_local1 >= 0) {
if ((moneyArray[_local1] is Coin)){
moneyArray[_local1].animation_mc.play();
};
_local1--;
};
gameRunning = true;
pausePrompt_mc.y = 1200;
pausePrompt2_mc.y = 1200;
Tweener.resumeAllTweens();
}
public function removeWireOnEnemies(){
var _local1:Number = (enemyArray.length - 1);
while (_local1 >= 0) {
enemyArray[_local1].removeWire();
_local1--;
};
var _local2:Number = (bossArray.length - 1);
while (_local2 >= 0) {
bossArray[_local2].removeWire();
_local2--;
};
}
public function screenShake(){
Earthquake.go(this, 10, 0.9);
}
public function looper(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
fireWeapon = "open";
if (gameRunning == true){
horizontalScroller(scrollElement1);
horizontalScroller(scrollElement2);
horizontalScroller(scrollElement3);
horizontalScroller(scrollElement4);
if ((((level == 1)) && ((levelComplete == false)))){
if ((((wave_lvl1 >= waveMax_lvl1)) && ((enemyArray.length == 0)))){
trace("Game OVER 1");
updateLevel();
};
};
if ((((level == 2)) && ((levelComplete == false)))){
if ((((((wave_lvl2 >= waveMax_lvl2)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 2");
updateLevel();
};
};
if ((((level == 3)) && ((levelComplete == false)))){
if ((((wave_lvl3 >= waveMax_lvl3)) && ((enemyArray.length == 0)))){
trace("Game OVER 3");
updateLevel();
};
};
if ((((level == 4)) && ((levelComplete == false)))){
if ((((((wave_lvl4 >= waveMax_lvl4)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 4");
updateLevel();
};
};
if ((((level == 5)) && ((levelComplete == false)))){
if ((((wave_lvl5 >= waveMax_lvl5)) && ((enemyArray.length == 0)))){
trace("Game OVER 5");
updateLevel();
};
};
if ((((level == 6)) && ((levelComplete == false)))){
if ((((((wave_lvl6 >= waveMax_lvl6)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 6");
updateLevel();
};
};
if ((((level == 7)) && ((levelComplete == false)))){
if ((((wave_lvl7 >= waveMax_lvl7)) && ((enemyArray.length == 0)))){
trace("Game OVER 7");
updateLevel();
};
};
if ((((level == 8)) && ((levelComplete == false)))){
if ((((((wave_lvl8 >= waveMax_lvl8)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 8");
updateLevel();
};
};
if ((((level == 9)) && ((levelComplete == false)))){
if ((((wave_lvl9 >= waveMax_lvl9)) && ((enemyArray.length == 0)))){
trace("Game OVER 9");
updateLevel();
};
};
if ((((level == 10)) && ((levelComplete == false)))){
if ((((((wave_lvl10 >= waveMax_lvl10)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 9");
updateLevel();
};
};
if ((((level == 11)) && ((levelComplete == false)))){
if ((((wave_lvl11 >= waveMax_lvl11)) && ((enemyArray.length == 0)))){
trace("Game OVER 9");
updateLevel();
};
};
if ((((level == 12)) && ((levelComplete == false)))){
if ((((((wave_lvl12 >= waveMax_lvl12)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){
trace("Game OVER 9");
updateLevel();
};
};
if (lifeNum <= 0){
if (dead == "false"){
dead = "true";
attExplosion(levelContainer_mc.player_mc);
toPostLevelTimer.start();
};
lifeNum = 0;
};
instanceLooper(playerAmmo1Array);
instanceLooper(playerAmmo2Array);
instanceLooper(playerAmmo3Array);
instanceLooper(playerAmmo4Array);
instanceLooper(playerAmmo5Array);
instanceLooper(playerAmmo6Array);
instanceLooper(playerAmmo7Array);
instanceLooper(bossArray);
instanceLooper(enemyArray);
instanceLooper(enemyAmmo1Array);
instanceLooper(enemyAmmo2Array);
instanceLooper(enemyAmmo3Array);
instanceLooper(enemyAmmo4Array);
instanceLooper(enemyAmmo5Array);
instanceLooper(enemyAmmo6Array);
instanceLooper(playerSpecial1Array);
instanceLooper(playerSpecial2Array);
instanceLooper(playerSpecial3Array);
instanceLooper(playerSpecial4Array);
instanceLooper(playerSpecial5Array);
instanceLooper(playerSpecial6Array);
instanceLooper(emergencyItem3Array);
instanceLooper(emergencyItem3aArray);
instanceLooper(pickUpAmmo1Array);
instanceLooper(pickUpAmmo2Array);
instanceLooper(pickUpAmmo3Array);
instanceLooper(pickUpAmmo4Array);
instanceLooper(pickupWeaponArray);
instanceLooper(moneyArray);
checkHit(playerAmmo1Array, enemyArray, weaponDmg);
checkHit(playerAmmo2Array, enemyArray, weaponDmg);
checkHit(playerAmmo3Array, enemyArray, weaponDmg);
checkHit(playerAmmo4Array, enemyArray, weaponDmg);
checkHit(playerAmmo5Array, enemyArray, weaponDmg);
checkHit(playerAmmo6Array, enemyArray, weaponDmg);
checkHit(playerAmmo7Array, enemyArray, weaponDmg);
checkHit(playerSpecial1Array, enemyArray, 20);
checkHit(playerSpecial2Array, enemyArray, 2);
checkHit(playerSpecial3Array, enemyArray, 20);
checkHit(playerSpecial4Array, enemyArray, 5);
checkHit(playerSpecial5Array, enemyArray, 2);
checkHit(pickUpAmmo1Array, enemyArray, weaponDmg);
checkHit(pickUpAmmo2Array, enemyArray, weaponDmg);
checkHit(pickUpAmmo3Array, enemyArray, weaponDmg);
checkHit(pickUpAmmo4Array, enemyArray, 5);
checkHit(emergencyItem3aArray, enemyArray, 10);
checkHit(playerAmmo1Array, bossArray, weaponDmg);
checkHit(playerAmmo2Array, bossArray, weaponDmg);
checkHit(playerAmmo3Array, bossArray, weaponDmg);
checkHit(playerAmmo4Array, bossArray, weaponDmg);
checkHit(playerAmmo5Array, bossArray, weaponDmg);
checkHit(playerAmmo6Array, bossArray, weaponDmg);
checkHit(playerAmmo7Array, bossArray, weaponDmg);
checkHit(playerSpecial1Array, bossArray, 40);
checkHit(playerSpecial2Array, bossArray, 4);
checkHit(playerSpecial3Array, bossArray, 40);
checkHit(playerSpecial4Array, bossArray, 10);
checkHit(playerSpecial5Array, bossArray, 2);
checkHit(playerSpecial6Array, bossArray, 2);
checkHit(pickUpAmmo1Array, bossArray, weaponDmg);
checkHit(pickUpAmmo2Array, bossArray, weaponDmg);
checkHit(pickUpAmmo3Array, bossArray, weaponDmg);
checkHit(pickUpAmmo4Array, bossArray, 10);
checkHit(emergencyItem3aArray, bossArray, 10);
playerCheckHit(enemyArray, 10);
playerCheckHit(enemyAmmo1Array, 15);
playerCheckHit(enemyAmmo2Array, 12);
playerCheckHit(enemyAmmo3Array, 13);
playerCheckHit(enemyAmmo4Array, 14);
playerCheckHit(enemyAmmo5Array, 15);
playerCheckHit(enemyAmmo6Array, 16);
playerCheckHit(bossArray, 10);
if (dead == "false"){
rPoint = new Point(mouseX, mouseY);
lPoint = levelContainer_mc.globalToLocal(rPoint);
levelContainer_mc.player_mc.x = ((mouseFollowSpeed * (levelContainer_mc.player_mc.x - lPoint.x)) + lPoint.x);
levelContainer_mc.player_mc.y = ((mouseFollowSpeed * (levelContainer_mc.player_mc.y - lPoint.y)) + lPoint.y);
_local2 = (lPoint.y - levelContainer_mc.player_mc.y);
if (_local2 > 25){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(1);
} else {
if (_local2 > 20){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(2);
} else {
if (_local2 > 15){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(3);
} else {
if (_local2 > 10){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(4);
};
};
};
};
if (_local2 < -25){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(8);
} else {
if (_local2 < -20){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(7);
} else {
if (_local2 < -15){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(6);
} else {
if (_local2 < -10){
levelContainer_mc.player_mc.playerSprite_mc.gotoAndStop(5);
};
};
};
};
if (levelContainer_mc.player_mc.x <= (levelContainer_mc.player_mc.width / 2)){
levelContainer_mc.player_mc.x = (levelContainer_mc.player_mc.width / 2);
};
if (levelContainer_mc.player_mc.y <= ((levelContainer_mc.player_mc.height / 2) + 75)){
levelContainer_mc.player_mc.y = ((levelContainer_mc.player_mc.height / 2) + 75);
};
if (levelContainer_mc.player_mc.x >= (500 - (levelContainer_mc.player_mc.width / 2))){
levelContainer_mc.player_mc.x = (500 - (levelContainer_mc.player_mc.width / 2));
};
if (levelContainer_mc.player_mc.y >= (700 - (levelContainer_mc.player_mc.height / 2))){
levelContainer_mc.player_mc.y = (700 - (levelContainer_mc.player_mc.height / 2));
};
} else {
levelContainer_mc.player_mc.x = -500;
};
firingFunction();
if (special2Availability == "sold"){
attPlayerSpecial2();
};
if (special4Activated == "true"){
blasterEnergy--;
if (blasterEnergy == (blasterEnergyMax - 1)){
playBlasterSnd();
levelContainer_mc.superBlaster_mc.gotoAndPlay(1);
};
if (blasterEnergy > 0){
levelContainer_mc.superBlaster_mc.x = levelContainer_mc.player_mc.x;
attPlayerSpecial4();
} else {
special4Activated = "false";
levelContainer_mc.superBlaster_mc.stop();
levelContainer_mc.superBlaster_mc.x = -200;
};
};
if (special5Activated == "true"){
wireEnergy--;
if (wireEnergy == 1){
_local3 = (enemyArray.length - 1);
while (_local3 >= 0) {
if (enemyArray[_local3].wireOn == "yes"){
trace("merong wire");
enemyArray[_local3].life = 0;
};
_local3--;
};
_local4 = (bossArray.length - 1);
while (_local4 >= 0) {
if (bossArray[_local4].wireOn == "yes"){
trace("merong wire");
bossArray[_local4].life = (bossArray[_local4].life - (bossArray[_local4].lifeDenom * 0.2));
bossArray[_local4].removeWire();
};
_local4--;
};
};
};
if (shieldActivated == "yes"){
if (shieldEnergyNum > 0){
shieldEnergyNum--;
shieldInUse = "yes";
} else {
shieldInUse = "no";
levelContainer_mc.player_mc.forceField_mc.gotoAndStop(1);
};
};
if (pickupWeapon == "homingMiniMissile"){
trace("mini homing");
attPickUpAmmo4();
};
scroller(flakes1_2_mc, flakes2_2_mc, flakes3_2_mc, flakes4_2_mc, 0.8);
scroller(flakes1_1_mc, flakes2_1_mc, flakes3_1_mc, flakes4_1_mc, 1);
lifeBarContainer_mc.lifeBar_mc.scaleX = (lifeNum / lifeDenom);
if (lifeNum <= 0){
lifeBarContainer_mc.lifeBar_mc.scaleX = 0;
};
coins_txt.text = String(("ACQUIRED BYTES:\n" + money_levels));
kills_txt.text = String(("DESTOYED ENEMIES:\n" + kills_levels));
};
}
public function firingFunction(){
if (fireWeapon == "open"){
if (pickupWeapon == "weapon5"){
trace("ammo5");
attPickUpAmmo1();
} else {
if (pickupWeapon == "weapon6"){
trace("ammo6");
attPickUpAmmo2();
} else {
if (pickupWeapon == "weapon7"){
trace("ammo7");
attPickUpAmmo3();
} else {
switch (selectedWeapon){
case 1:
trace("ammo1");
attPlayerAmmo1();
break;
case 2:
trace("ammo2");
attPlayerAmmo2();
break;
case 3:
trace("ammo3");
attPlayerAmmo3();
break;
case 4:
trace("ammo4");
attPlayerAmmo4();
break;
};
};
};
};
};
}
public function toPostLevel(_arg1:TimerEvent){
playBG1();
stage.removeEventListener(Event.ENTER_FRAME, looper);
waveTimer_lvl1.reset();
waveTimer_lvl2.reset();
waveTimer_lvl3.reset();
waveTimer_lvl4.reset();
waveTimer_lvl5.reset();
waveTimer_lvl6.reset();
waveTimer_lvl7.reset();
waveTimer_lvl8.reset();
waveTimer_lvl9.reset();
waveTimer_lvl10.reset();
waveTimer_lvl12.reset();
waveTimer_lvl12.reset();
toPostLevelTimer.reset();
endLevelCleanUpArray(playerAmmo1Array);
endLevelCleanUpArray(playerAmmo2Array);
endLevelCleanUpArray(playerAmmo3Array);
endLevelCleanUpArray(playerAmmo4Array);
endLevelCleanUpArray(playerAmmo5Array);
endLevelCleanUpArray(playerAmmo6Array);
endLevelCleanUpArray(playerAmmo7Array);
endLevelCleanUpArray(bossArray);
endLevelCleanUpArray(enemyArray);
endLevelCleanUpArray(enemyAmmo1Array);
endLevelCleanUpArray(enemyAmmo2Array);
endLevelCleanUpArray(enemyAmmo3Array);
endLevelCleanUpArray(enemyAmmo4Array);
endLevelCleanUpArray(enemyAmmo5Array);
endLevelCleanUpArray(enemyAmmo6Array);
endLevelCleanUpArray(playerSpecial1Array);
endLevelCleanUpArray(playerSpecial2Array);
endLevelCleanUpArray(playerSpecial3Array);
endLevelCleanUpArray(playerSpecial4Array);
endLevelCleanUpArray(playerSpecial5Array);
endLevelCleanUpArray(playerSpecial6Array);
endLevelCleanUpArray(emergencyItem3Array);
endLevelCleanUpArray(emergencyItem3aArray);
endLevelCleanUpArray(pickUpAmmo1Array);
endLevelCleanUpArray(pickUpAmmo2Array);
endLevelCleanUpArray(pickUpAmmo3Array);
endLevelCleanUpArray(pickUpAmmo4Array);
endLevelCleanUpArray(pickupWeaponArray);
endLevelCleanUpArray(moneyArray);
if (lifeNum > 0){
moneyOverall = (moneyOverall + money_levels);
killsOverall = (killsOverall + kills_levels);
level++;
if (level > 12){
level = 12;
gotoAndStop("postFin");
} else {
gotoAndStop("postWin");
};
saveToLSO();
} else {
moneyOverall = (moneyOverall + Math.round((money_levels * 0.2)));
saveToLSO();
gotoAndStop("postLost");
};
}
public function mDown(_arg1:MouseEvent){
if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){
fireWeapon = "open";
};
trace("shoot");
}
public function playIntroSnd(){
if (music == "on"){
introSnd.play();
};
}
public function onPlaybackCompleteCrystalSndChannel(_arg1:Event){
allowToPlayCrystal = "yes";
}
public function playAcquireSnd(){
if (music == "on"){
acquireSnd.play();
};
}
public function deployEnemy_Lvl1(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl1++;
trace(wave_lvl1);
switch (wave_lvl1){
case 1:
attHealth1();
attEnemy1(1);
attEnemy2(1);
break;
case 2:
attHealth1();
attEnemy1(1);
attEnemy2(1);
break;
case 3:
attEnemy1(1);
attEnemy2(1);
break;
case 4:
attEnemy1(1);
attEnemy2(1);
attEnemy3(1);
attEnemyAmmo1BarrageFromTop();
break;
case 5:
attEnemy1(1);
break;
case 6:
attPickupWeapon1();
attEnemy2(2);
break;
case 7:
attEnemy2(2);
break;
case 8:
attEnemy1(2);
break;
case 9:
attSpecialRecharge();
attEnemy2(2);
break;
case 10:
attHealth1();
attEnemy1(2);
attEnemyAmmo1BarrageFromTop();
break;
case 11:
attEnemy2(2);
break;
case 12:
attPickupWeapon2();
attEnemy1(2);
break;
case 13:
attEnemy2(2);
break;
case 14:
attEnemy1(2);
break;
case 15:
attEnemy2(2);
break;
case 16:
attEnemy1(2);
attEnemyAmmo1BarrageFromTop();
break;
case 17:
attEnemy2(2);
break;
case 18:
attEnemy1(2);
break;
default:
break;
};
};
}
public function deployEnemy_Lvl2(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl2++;
trace(wave_lvl2);
switch (wave_lvl2){
case 1:
attEnemy3(1);
break;
case 2:
attEnemy1(1);
attEnemy2(1);
attEnemyAmmo1BarrageFromTop();
break;
case 3:
attEnemy3(2);
break;
case 4:
attEnemy2(1);
attEnemyAmmo1BarrageFromTop();
break;
case 5:
attEnemy4(4, "left");
break;
case 6:
attPickupWeapon1();
attEnemy2(2);
break;
case 7:
attHealth1();
attEnemy2(1);
break;
case 8:
attEnemy3(1);
attEnemyAmmo1BarrageFromTop();
break;
case 9:
attEnemy2(1);
break;
case 10:
attSpecialRecharge();
attEnemy1(1);
break;
case 11:
attEnemy2(2);
break;
case 12:
attPickupWeapon2();
attEnemy4(3, "right");
break;
case 13:
attEnemy2(2);
break;
case 14:
attHealth1();
attEnemy1(1);
break;
case 15:
attEnemy4(2, "left");
break;
case 16:
attEnemy1(2);
attEnemyAmmo1BarrageFromTop();
break;
case 17:
attEnemy1(1);
break;
case 18:
attEnemy1(1);
break;
case 19:
attEnemy1(2);
attBossPrompter();
attEnemyAmmo1BarrageFromTop();
break;
case 20:
attEnemy1(1);
attBoss1();
break;
default:
break;
};
};
}
public function deployEnemy_Lvl4(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl4++;
trace(wave_lvl4);
switch (wave_lvl4){
case 1:
attEnemy6(1);
attEnemyAmmo1BarrageFromTop();
break;
case 2:
attEnemy5(1);
attEnemy2(1);
break;
case 3:
attEnemy6(1);
break;
case 4:
attEnemy5(1);
attEnemyAmmo1BarrageFromTop();
break;
case 5:
attEnemy4(4, "left");
break;
case 6:
attEnemy2(2);
break;
case 7:
attHealth1();
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon2();
attEnemy5(1);
break;
case 9:
attEnemy2(1);
break;
case 10:
attEnemy4(3, "right");
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemyAmmo1BarrageFromTop();
attSpecialRecharge();
attEnemy4(3, "right");
break;
case 13:
attEnemy5(1);
attEnemy6(2);
break;
case 14:
attHealth2();
attEnemy1(1);
break;
case 15:
attEnemy4(7, "left");
break;
case 16:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon3();
attEnemy2(2);
break;
case 17:
attEnemy1(1);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy2(3);
break;
case 20:
attEnemyAmmo1BarrageFromTop();
attEnemy6(2);
break;
case 21:
attHealth1();
attEnemy5(1);
break;
case 22:
attEnemy5(1);
break;
case 23:
attEnemy6(2);
break;
case 24:
attEnemyAmmo1BarrageFromTop();
attEnemy2(1);
attBossPrompter();
break;
case 25:
attEnemy6(2);
attBoss2();
break;
default:
break;
};
};
}
public function deployEnemy_Lvl5(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl5++;
trace(wave_lvl5);
switch (wave_lvl5){
case 1:
attEnemyAmmo1BarrageFromTop();
attEnemy6(1);
attEnemy7(1);
break;
case 2:
attEnemy2(1);
attEnemy4(4, "left");
break;
case 3:
attEnemyAmmo1BarrageFromLeft();
attEnemy6(2);
break;
case 4:
attEnemy5(2);
break;
case 5:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy4(4, "left");
break;
case 6:
attEnemy2(2);
break;
case 7:
attEnemyAmmo1BarrageFromRight();
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemy5(1);
attEnemy7(1);
break;
case 9:
attEnemy7(2);
break;
case 10:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon2();
attHealth1();
attEnemy4(3, "right");
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemy4(3, "right");
break;
case 13:
attEnemyAmmo1BarrageFromLeft();
attEnemy5(1);
attEnemy6(2);
break;
case 14:
attEnemy1(1);
attEnemy7(1);
break;
case 15:
attEnemyAmmo1BarrageFromTop();
attSpecialRecharge();
attHealth2();
attEnemy4(7, "left");
break;
case 16:
attEnemy2(2);
attEnemy7(1);
break;
case 17:
attEnemyAmmo1BarrageFromRight();
attEnemy2(2);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy2(2);
break;
case 20:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon3();
attHealth1();
attEnemy6(2);
break;
case 21:
attEnemy5(1);
attEnemy7(1);
break;
case 22:
attEnemy5(1);
attEnemy7(1);
break;
case 23:
attEnemyAmmo1BarrageFromLeft();
attEnemy6(2);
attEnemy7(1);
break;
case 24:
attEnemy2(2);
break;
case 25:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy6(2);
break;
case 26:
attEnemy5(1);
attEnemy7(1);
break;
case 27:
attEnemy5(2);
break;
case 28:
attEnemyAmmo1BarrageFromRight();
attEnemy6(2);
break;
case 29:
attEnemy2(2);
attEnemy7(1);
break;
case 30:
attEnemyAmmo1BarrageFromTop();
attEnemy6(2);
break;
default:
break;
};
};
}
public function deployEnemy_Lvl6(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl6++;
trace(wave_lvl6);
switch (wave_lvl6){
case 1:
attEnemyAmmo1BarrageFromTop();
attEnemy6(1);
attEnemy7(1);
break;
case 2:
attEnemy2(1);
attEnemy4(4, "left");
break;
case 3:
attEnemy6(2);
break;
case 4:
attEnemy8(2);
break;
case 5:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy4(4, "left");
break;
case 6:
attEnemy2(2);
break;
case 7:
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemy5(1);
attEnemy8(2);
break;
case 9:
attEnemy7(2);
break;
case 10:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon3();
attHealth1();
attEnemy4(3, "right");
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemy4(3, "right");
break;
case 13:
attEnemy5(1);
attEnemy6(2);
break;
case 14:
attSpecialRecharge();
attEnemy1(1);
attEnemy8(2);
break;
case 15:
attEnemyAmmo1BarrageFromTop();
attHealth2();
attEnemy4(7, "left");
break;
case 16:
attEnemy2(2);
attEnemy7(1);
break;
case 17:
attEnemy2(2);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy8(2);
break;
case 20:
attEnemyAmmo1BarrageFromTop();
attPickupWeapon4();
attHealth1();
attEnemy6(2);
break;
case 21:
attEnemy5(1);
attEnemy8(2);
break;
case 22:
attEnemy5(1);
attEnemy7(1);
break;
case 23:
attEnemy6(2);
attEnemy8(2);
break;
case 24:
attEnemy2(2);
break;
case 25:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy8(2);
break;
case 26:
attEnemy5(1);
attEnemy8(2);
break;
case 27:
attEnemy5(2);
break;
case 28:
attEnemy6(2);
break;
case 29:
attEnemy2(2);
attEnemy8(2);
attBossPrompter();
break;
case 30:
attEnemyAmmo1BarrageFromTop();
attEnemy8(2);
attBoss3();
break;
default:
break;
};
};
}
public function deployEnemy_Lvl7(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl7++;
trace(wave_lvl7);
switch (wave_lvl7){
case 1:
attEnemyAmmo1BarrageFromLeft();
attEnemy3(1);
attEnemy5(1);
break;
case 2:
attEnemy6(1);
attEnemy4(4, "left");
break;
case 3:
attEnemyAmmo1BarrageFromBottom();
attEnemy9(2);
break;
case 4:
attEnemy8(2);
break;
case 5:
attEnemyAmmo1BarrageFromRight();
attHealth1();
attEnemy7(1);
attEnemy4(4, "left");
break;
case 6:
attEnemy9(2);
break;
case 7:
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemy5(1);
attEnemy8(2);
break;
case 9:
attEnemy1(2);
break;
case 10:
attEnemyAmmo1BarrageFromLeft();
attPickupWeapon3();
attEnemy7(1);
attEnemy4(3, "right");
attEnemy9(2);
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemy4(3, "right");
break;
case 13:
attEnemyAmmo1BarrageFromBottom();
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy1(1);
attEnemy9(2);
break;
case 15:
attEnemyAmmo1BarrageFromRight();
attHealth2();
attEnemy7(1);
attEnemy4(7, "left");
break;
case 16:
attEnemy2(2);
attEnemy9(1);
break;
case 17:
attSpecialRecharge();
attEnemy2(2);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy9(2);
break;
case 20:
attEnemyAmmo1BarrageFromLeft();
attPickupWeapon4();
attEnemy7(2);
attEnemy6(2);
break;
case 21:
attEnemy5(1);
attEnemy8(2);
break;
case 22:
attEnemy5(1);
attEnemy9(2);
break;
case 23:
attEnemyAmmo1BarrageFromBottom();
attEnemy6(2);
attEnemy8(2);
break;
case 24:
attEnemy2(4);
break;
case 25:
attEnemyAmmo1BarrageFromRight();
attHealth1();
attEnemy7(2);
attEnemy8(2);
break;
case 26:
attEnemy5(1);
attEnemy8(2);
break;
case 27:
attEnemy5(2);
break;
case 28:
attEnemy5(2);
break;
case 29:
attEnemy2(2);
attEnemy9(2);
break;
case 30:
attEnemyAmmo1BarrageFromLeft();
attEnemy7(2);
attEnemy9(2);
break;
default:
break;
};
};
}
public function playExplodeSnd(){
if (allowToPlayExplode == "yes"){
explodeSndChannel = explodeSnd.play();
explodeSndChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackCompleteExplodeSndChannel);
allowToPlayExplode = "no";
};
}
public function deployEnemy_Lvl8(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl8++;
trace(wave_lvl8);
switch (wave_lvl8){
case 1:
attEnemyAmmo1BarrageFromBottom();
attEnemy3(1);
attEnemy5(1);
break;
case 2:
attEnemy10(1);
attEnemy4(4, "left");
break;
case 3:
attEnemy9(2);
break;
case 4:
attEnemyAmmo1BarrageFromBottom();
attEnemy5(1);
break;
case 5:
attHealth1();
attEnemy4(4, "left");
break;
case 6:
attEnemy9(2);
break;
case 7:
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemyAmmo1BarrageFromBottom();
attEnemy8(2);
attEnemy10(1);
break;
case 9:
attEnemy10(1);
break;
case 10:
attPickupWeapon3();
attEnemy4(3, "right");
attEnemy9(2);
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemyAmmo1BarrageFromBottom();
attEnemy4(3, "right");
break;
case 13:
attSpecialRecharge();
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy10(1);
attEnemy9(2);
break;
case 15:
attHealth2();
attEnemy4(5, "left");
break;
case 16:
attEnemyAmmo1BarrageFromBottom();
attEnemy2(2);
attEnemy9(1);
break;
case 17:
attEnemy10(1);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy9(2);
break;
case 20:
attEnemyAmmo1BarrageFromBottom();
attPickupWeapon4();
attEnemy6(2);
break;
case 21:
attEnemy5(1);
attEnemy8(2);
break;
case 22:
attEnemy9(2);
attEnemy10(1);
break;
case 23:
attEnemy6(2);
attEnemy8(2);
break;
case 24:
attEnemyAmmo1BarrageFromBottom();
attEnemy2(2);
break;
case 25:
attHealth1();
attEnemy8(2);
break;
case 26:
attEnemy5(1);
attEnemy8(2);
break;
case 27:
attEnemy10(1);
break;
case 28:
attEnemyAmmo1BarrageFromBottom();
attEnemy5(2);
break;
case 29:
attEnemy10(1);
attEnemy9(2);
attBossPrompter();
break;
case 30:
attEnemyAmmo1BarrageFromBottom();
attEnemy9(2);
attBoss4();
break;
default:
break;
};
};
}
public function deployEnemy_Lvl9(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl9++;
trace(wave_lvl9);
switch (wave_lvl9){
case 1:
attEnemyAmmo1BarrageFromBottom();
attEnemy3(1);
attEnemy11(1);
break;
case 2:
attEnemy10(1);
attEnemy4(4, "left");
break;
case 3:
attEnemyAmmo1BarrageFromLeft();
attEnemy9(2);
break;
case 4:
attEnemy5(1);
break;
case 5:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy7(2);
attEnemy4(4, "left");
break;
case 6:
attEnemy11(2);
break;
case 7:
attEnemy4(6, "right");
attEnemy6(2);
break;
case 8:
attEnemyAmmo1BarrageFromRight();
attEnemy8(2);
attEnemy11(1);
break;
case 9:
attSpecialRecharge();
attEnemy10(1);
break;
case 10:
attEnemyAmmo1BarrageFromBottom();
attPickupWeapon2();
attEnemy7(1);
attEnemy4(3, "right");
attEnemy9(2);
break;
case 11:
attEnemy2(2);
attEnemy6(2);
break;
case 12:
attEnemy4(3, "right");
break;
case 13:
attEnemyAmmo1BarrageFromLeft();
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy10(1);
attEnemy11(1);
break;
case 15:
attEnemyAmmo1BarrageFromTop();
attHealth2();
attEnemy7(2);
attEnemy4(5, "left");
break;
case 16:
attEnemy2(2);
attEnemy9(1);
break;
case 17:
attEnemy10(1);
break;
case 18:
attEnemyAmmo1BarrageFromRight();
attEnemy4(6, "right");
break;
case 19:
attEnemy9(2);
break;
case 20:
attEnemyAmmo1BarrageFromBottom();
attPickupWeapon4();
attEnemy7(2);
attEnemy11(2);
break;
case 21:
attEnemy5(1);
attEnemy8(2);
break;
case 22:
attEnemy9(2);
attEnemy10(1);
break;
case 23:
attEnemyAmmo1BarrageFromLeft();
attEnemy6(2);
attEnemy11(1);
break;
case 24:
attEnemy2(2);
break;
case 25:
attEnemyAmmo1BarrageFromTop();
attHealth1();
attEnemy7(2);
attEnemy8(2);
break;
case 26:
attEnemy5(1);
attEnemy11(1);
break;
case 27:
attEnemyAmmo1BarrageFromRight();
attEnemy10(1);
break;
case 28:
attEnemy5(2);
break;
case 29:
attEnemy10(1);
attEnemy9(2);
break;
case 30:
attEnemyAmmo1BarrageFromBottom();
attEnemy7(2);
attEnemy11(1);
break;
default:
break;
};
};
}
public function deployEnemy_Lvl3(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl3++;
trace(wave_lvl3);
switch (wave_lvl3){
case 1:
attEnemy3(1);
break;
case 2:
attEnemy1(1);
attEnemy2(1);
attEnemyAmmo1BarrageFromTop();
break;
case 3:
attEnemy3(2);
break;
case 4:
attEnemy5(1);
attEnemyAmmo1BarrageFromTop();
break;
case 5:
attEnemy4(4, "left");
break;
case 6:
attEnemy2(2);
attEnemyAmmo1BarrageFromTop();
break;
case 7:
attHealth1();
attEnemy4(6, "right");
break;
case 8:
attPickupWeapon1();
attEnemyAmmo1BarrageFromTop();
attEnemy5(1);
break;
case 9:
attEnemy2(1);
break;
case 10:
attEnemy4(3, "right");
attEnemyAmmo1BarrageFromTop();
break;
case 11:
attSpecialRecharge();
attEnemy2(2);
break;
case 12:
attEnemy4(3, "right");
attEnemyAmmo1BarrageFromTop();
break;
case 13:
attEnemy5(1);
break;
case 14:
attHealth1();
attEnemy1(1);
attEnemyAmmo1BarrageFromTop();
break;
case 15:
attEnemy4(2, "left");
break;
case 16:
attPickupWeapon2();
attEnemy1(2);
attEnemyAmmo1BarrageFromTop();
break;
case 17:
attEnemy1(1);
break;
case 18:
attEnemy4(3, "right");
attEnemyAmmo1BarrageFromTop();
break;
case 19:
attEnemy1(2);
break;
case 20:
attEnemy1(1);
attEnemyAmmo1BarrageFromTop();
break;
case 21:
attEnemy5(1);
break;
case 22:
attEnemy2(1);
attEnemyAmmo1BarrageFromTop();
break;
default:
break;
};
};
}
public function panelToShow(){
if (panelCode == 1){
Tweener.addTween(weaponContainer_mc, {x:658.45, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(upgradesContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(specialContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(emergencyItemsContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
} else {
if (panelCode == 2){
Tweener.addTween(weaponContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(upgradesContainer_mc, {x:481.8, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(specialContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(emergencyItemsContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
} else {
if (panelCode == 3){
Tweener.addTween(weaponContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(upgradesContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(specialContainer_mc, {x:508.05, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(emergencyItemsContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
} else {
if (panelCode == 4){
Tweener.addTween(weaponContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(upgradesContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(specialContainer_mc, {x:1500, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(emergencyItemsContainer_mc, {x:535.35, time:0.5, transition:"easeOutStrong"});
};
};
};
};
currentPanelIndicator_mc.gotoAndStop(panelCode);
}
public function acquireEmergencyWeapon(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
emergencyItemsContainer_mc.itemDes_txt.textColor = 0xFFFF00;
switch (btn){
case emergencyItemsContainer_mc.emergeny1Buy_btn:
emergencyItemsContainer_mc.itemDes_txt.text = String(((emergency1_name + "\n") + emergency1_des));
break;
case emergencyItemsContainer_mc.emergeny2Buy_btn:
emergencyItemsContainer_mc.itemDes_txt.text = String(((emergency2_name + "\n") + emergency2_des));
break;
case emergencyItemsContainer_mc.emergeny3Buy_btn:
emergencyItemsContainer_mc.itemDes_txt.text = String(((emergency3_name + "\n") + emergency3_des));
break;
};
};
mout = function (_arg1:MouseEvent){
emergencyItemsContainer_mc.itemDes_txt.textColor = 0xFFFFFF;
emergencyItemsContainer_mc.itemDes_txt.text = "Item Description \nHover your mouse on an item to see its description.";
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case emergencyItemsContainer_mc.emergeny1Buy_btn:
if (emergency1Availability == "available"){
if (moneyOverall >= emergency1_price){
emergency1Availability = "sold";
selectedEmergencyWeapon = 1;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny1Buy_btn);
setTextColorToRed(emergencyItemsContainer_mc.emergency1price_txt);
updateMoney(moneyOverall, emergency1_price);
emergencyItemsContainer_mc.emergency1price_txt.text = String(emergency1Availability);
trace(("e1" + emergency1Availability));
};
} else {
selectedEmergencyWeapon = 1;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny1Buy_btn);
};
break;
case emergencyItemsContainer_mc.emergeny2Buy_btn:
if (emergency2Availability == "available"){
if (moneyOverall >= emergency2_price){
emergency2Availability = "sold";
selectedEmergencyWeapon = 2;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny2Buy_btn);
setTextColorToRed(emergencyItemsContainer_mc.emergency2price_txt);
updateMoney(moneyOverall, emergency2_price);
emergencyItemsContainer_mc.emergency2price_txt.text = String(emergency2Availability);
trace(("e2" + emergency2Availability));
};
} else {
selectedEmergencyWeapon = 2;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny2Buy_btn);
};
break;
case emergencyItemsContainer_mc.emergeny3Buy_btn:
if (emergency3Availability == "available"){
if (moneyOverall >= emergency3_price){
emergency3Availability = "sold";
selectedEmergencyWeapon = 3;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny3Buy_btn);
setTextColorToRed(emergencyItemsContainer_mc.emergency3price_txt);
updateMoney(moneyOverall, emergency3_price);
emergencyItemsContainer_mc.emergency3price_txt.text = String(emergency3Availability);
trace(("e3" + emergency3Availability));
};
} else {
selectedEmergencyWeapon = 3;
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny3Buy_btn);
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function attPlayerAmmo1(){
var _local1:Number;
var _local2:PlayerAmmo1;
playerAmmo1Rof--;
if (playerAmmo1Rof <= 0){
_local1 = 0;
while (_local1 < 2) {
_local2 = new PlayerAmmo1(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(265, 275));
levelContainer_mc.addChild(_local2);
playerAmmo1Array.push(_local2);
_local1++;
};
playerAmmo1Rof = 6;
};
}
public function attPlayerAmmo3(){
var _local1:Number;
var _local2:PlayerAmmo3;
playerAmmo3Rof--;
if (playerAmmo3Rof <= 0){
_local1 = 0;
while (_local1 < 3) {
_local2 = new PlayerAmmo3(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(260, 280));
levelContainer_mc.addChild(_local2);
playerAmmo3Array.push(_local2);
_local1++;
};
playerAmmo3Rof = 5;
};
}
public function attPlayerAmmo6(){
var _local1:PlayerAmmo6;
var _local2:PlayerAmmo6;
var _local3:PlayerAmmo6;
var _local4:PlayerAmmo6;
var _local5:PlayerAmmo6;
playerAmmo6Rof--;
if (playerAmmo6Rof <= 0){
_local1 = new PlayerAmmo6((levelContainer_mc.player_mc.x + 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local1);
playerAmmo5Array.push(_local1);
_local2 = new PlayerAmmo6((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local2);
playerAmmo5Array.push(_local2);
_local3 = new PlayerAmmo6(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local3);
playerAmmo5Array.push(_local3);
_local4 = new PlayerAmmo6((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local4);
playerAmmo5Array.push(_local4);
_local5 = new PlayerAmmo6((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local5);
playerAmmo5Array.push(_local5);
playerAmmo6Rof = 5;
};
}
public function attPlayerAmmo7(){
var _local1:PlayerAmmo7;
var _local2:PlayerAmmo7;
var _local3:PlayerAmmo7;
var _local4:PlayerAmmo7;
var _local5:PlayerAmmo7;
var _local6:PlayerAmmo7;
playerAmmo7Rof--;
if (playerAmmo7Rof <= 0){
_local1 = new PlayerAmmo7((levelContainer_mc.player_mc.x + 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local1);
playerAmmo5Array.push(_local1);
_local2 = new PlayerAmmo7((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local2);
playerAmmo5Array.push(_local2);
_local3 = new PlayerAmmo7(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local3);
playerAmmo5Array.push(_local3);
_local4 = new PlayerAmmo7((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local4);
playerAmmo5Array.push(_local4);
_local5 = new PlayerAmmo7((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local5);
playerAmmo5Array.push(_local5);
_local6 = new PlayerAmmo7((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local6);
playerAmmo5Array.push(_local6);
playerAmmo7Rof = 5;
};
}
public function attPlayerAmmo2(){
var _local1:Number;
var _local2:PlayerAmmo2;
playerAmmo2Rof--;
if (playerAmmo2Rof <= 0){
_local1 = 0;
while (_local1 < 2) {
_local2 = new PlayerAmmo2(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(265, 275));
levelContainer_mc.addChild(_local2);
playerAmmo2Array.push(_local2);
_local1++;
};
playerAmmo2Rof = 4;
};
}
public function attPlayerAmmo4(){
var _local1:PlayerAmmo4;
var _local2:Number;
var _local3:Number;
var _local4:PlayerAmmo4;
playerAmmo4Rof--;
if (playerAmmo4Rof <= 0){
_local1 = new PlayerAmmo4(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), 270);
levelContainer_mc.addChild(_local1);
playerAmmo4Array.push(_local1);
_local2 = 220;
_local3 = 0;
while (_local3 < 4) {
_local2 = (_local2 + (20 + randomGenerator(-5, 5)));
_local4 = new PlayerAmmo4(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), _local2);
levelContainer_mc.addChild(_local4);
playerAmmo4Array.push(_local4);
_local3++;
};
playerAmmo4Rof = 5;
};
}
public function attPlayerAmmo5(){
var _local1:PlayerAmmo5;
var _local2:PlayerAmmo5;
var _local3:PlayerAmmo5;
var _local4:PlayerAmmo5;
playerAmmo5Rof--;
if (playerAmmo5Rof <= 0){
_local1 = new PlayerAmmo5((levelContainer_mc.player_mc.x + 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(260, 280));
levelContainer_mc.addChild(_local1);
playerAmmo5Array.push(_local1);
_local2 = new PlayerAmmo5((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(260, 280));
levelContainer_mc.addChild(_local2);
playerAmmo5Array.push(_local2);
_local3 = new PlayerAmmo5((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(260, 280));
levelContainer_mc.addChild(_local3);
playerAmmo5Array.push(_local3);
_local4 = new PlayerAmmo5((levelContainer_mc.player_mc.x - 10), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(260, 280));
levelContainer_mc.addChild(_local4);
playerAmmo5Array.push(_local4);
playerAmmo5Rof = 5;
};
}
public function updateQualityAndMusicDisplay(){
switch (stage.quality){
case "LOW":
qualityShow_txt.text = "[Q] - QUALITY - LOW";
break;
case "MEDIUM":
qualityShow_txt.text = "[Q] - QUALITY - MEDIUM";
break;
case "HIGH":
qualityShow_txt.text = "[Q] - QUALITY - HIGH";
break;
};
if (musicCode == 1){
musicShow_txt.text = "[M] - MUSIC - OFF";
};
if (musicCode == 2){
musicShow_txt.text = "[M] - MUSIC - ON";
};
}
public function handleComplete(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
name1.text = _local2.data.name1;
score1.text = _local2.data.score1;
name2.text = _local2.data.name2;
score2.text = _local2.data.score2;
name3.text = _local2.data.name3;
score3.text = _local2.data.score3;
name4.text = _local2.data.name4;
score4.text = _local2.data.score4;
name5.text = _local2.data.name5;
score5.text = _local2.data.score5;
name6.text = _local2.data.name6;
score6.text = _local2.data.score6;
name7.text = _local2.data.name7;
score7.text = _local2.data.score7;
name8.text = _local2.data.name8;
score8.text = _local2.data.score8;
name9.text = _local2.data.name9;
score9.text = _local2.data.score9;
name10.text = _local2.data.name10;
score10.text = _local2.data.score10;
}
public function attEnemy1(_arg1:Number){
var _local3:Enemy1;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy1();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(10, 450);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy3(_arg1:Number){
var _local3:Enemy3;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy3();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(10, 450);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy4(_arg1:Number, _arg2:String){
var _local3:Enemy4;
var _local4:Number;
var _local5:Number;
var _local8:Number;
var _local9:Number;
var _local6:Number = 50;
var _local7:Number = 30;
_local5 = randomGenerator(0, 100);
if (_arg2 == "left"){
_local4 = -10;
_local8 = 0;
while (_local8 < _arg1) {
_local4 = (_local4 - _local6);
_local5 = (_local5 - _local7);
_local3 = new Enemy4(20);
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = _local4;
_local3.y = _local5;
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local8++;
};
} else {
_local4 = 650;
_local9 = 0;
while (_local9 < _arg1) {
_local4 = (_local4 + _local6);
_local5 = (_local5 - _local7);
_local3 = new Enemy4(160);
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = _local4;
_local3.y = _local5;
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local9++;
};
};
}
public function attEnemy5(_arg1:Number){
var _local3:Enemy5;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy5();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy6(_arg1:Number){
var _local3:Enemy6;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy6();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy8(_arg1:Number){
var _local3:Number;
var _local4:Number;
var _local5:Enemy8;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = randomGenerator(1, 3);
if (_local3 == 1){
_local4 = randomGenerator(-50, -10);
_local5 = new Enemy8(_local4);
} else {
_local4 = randomGenerator(600, 650);
_local5 = new Enemy8(_local4);
};
_local5.main = this;
_local5.target = levelContainer_mc.player_mc;
_local5.x = _local4;
_local5.y = randomGenerator(40, 110);
levelContainer_mc.addChild(_local5);
enemyArray.push(_local5);
_local2++;
};
}
public function attEnemy7(_arg1:Number){
var _local3:Enemy7;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy7();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function attEnemy2(_arg1:Number){
var _local3:Number;
var _local4:Number;
var _local5:Enemy2;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = randomGenerator(1, 3);
if (_local3 == 1){
_local4 = randomGenerator(-50, -10);
_local5 = new Enemy2(_local4);
} else {
_local4 = randomGenerator(600, 650);
_local5 = new Enemy2(_local4);
};
_local5.main = this;
_local5.target = levelContainer_mc.player_mc;
_local5.x = _local4;
_local5.y = randomGenerator(40, 110);
levelContainer_mc.addChild(_local5);
enemyArray.push(_local5);
_local2++;
};
}
public function attEnemy9(_arg1:Number){
var _local3:Enemy9;
var _local2:Number = 0;
while (_local2 < _arg1) {
_local3 = new Enemy9();
_local3.main = this;
_local3.target = levelContainer_mc.player_mc;
_local3.x = randomGenerator(100, 350);
_local3.y = randomGenerator(-100, 50);
levelContainer_mc.addChild(_local3);
enemyArray.push(_local3);
_local2++;
};
}
public function playSndStory1(){
SoundMixer.stopAll();
if (music == "on"){
sndStory1.play(0, int.MAX_VALUE);
};
}
public function playSndStory2(){
SoundMixer.stopAll();
if (music == "on"){
sndStory2.play(0, int.MAX_VALUE);
};
}
public function magExitSaGame(){
playBG1();
stage.removeEventListener(Event.ENTER_FRAME, looper);
waveTimer_lvl1.reset();
waveTimer_lvl2.reset();
waveTimer_lvl3.reset();
waveTimer_lvl4.reset();
waveTimer_lvl5.reset();
waveTimer_lvl6.reset();
waveTimer_lvl7.reset();
waveTimer_lvl8.reset();
waveTimer_lvl9.reset();
waveTimer_lvl10.reset();
waveTimer_lvl12.reset();
waveTimer_lvl12.reset();
toPostLevelTimer.reset();
endLevelCleanUpArray(playerAmmo1Array);
endLevelCleanUpArray(playerAmmo2Array);
endLevelCleanUpArray(playerAmmo3Array);
endLevelCleanUpArray(playerAmmo4Array);
endLevelCleanUpArray(playerAmmo5Array);
endLevelCleanUpArray(playerAmmo6Array);
endLevelCleanUpArray(playerAmmo7Array);
endLevelCleanUpArray(bossArray);
endLevelCleanUpArray(enemyArray);
endLevelCleanUpArray(enemyAmmo1Array);
endLevelCleanUpArray(enemyAmmo2Array);
endLevelCleanUpArray(enemyAmmo3Array);
endLevelCleanUpArray(enemyAmmo4Array);
endLevelCleanUpArray(enemyAmmo5Array);
endLevelCleanUpArray(enemyAmmo6Array);
endLevelCleanUpArray(playerSpecial1Array);
endLevelCleanUpArray(playerSpecial2Array);
endLevelCleanUpArray(playerSpecial3Array);
endLevelCleanUpArray(playerSpecial4Array);
endLevelCleanUpArray(playerSpecial5Array);
endLevelCleanUpArray(playerSpecial6Array);
endLevelCleanUpArray(emergencyItem3Array);
endLevelCleanUpArray(emergencyItem3aArray);
endLevelCleanUpArray(pickUpAmmo1Array);
endLevelCleanUpArray(pickUpAmmo2Array);
endLevelCleanUpArray(pickUpAmmo3Array);
endLevelCleanUpArray(pickUpAmmo4Array);
endLevelCleanUpArray(pickupWeaponArray);
endLevelCleanUpArray(moneyArray);
gotoAndStop("prelevel");
}
public function mUp(_arg1:MouseEvent){
trace("halt");
}
public function _setSelectedWeaponMarker(_arg1){
weaponContainer_mc.selectedWeapon_mc.x = _arg1.x;
weaponContainer_mc.selectedWeapon_mc.y = _arg1.y;
}
public function endLevelCleanUpArray(_arg1:Array){
var _local2:Number = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].stop();
_arg1[_local2].destruct("");
_local2--;
};
}
public function remEventListeners(){
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, mUp);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyIsUp);
}
public function acquireWeapons(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
weaponContainer_mc.weaponDes_txt.textColor = 0xFFFF00;
switch (btn){
case weaponContainer_mc.weapon1Buy_btn:
weaponContainer_mc.weaponDes_txt.text = String(((weapon2_name + "\n\n") + weapon2_des));
break;
case weaponContainer_mc.weapon2Buy_btn:
weaponContainer_mc.weaponDes_txt.text = String(((weapon3_name + "\n\n") + weapon3_des));
break;
case weaponContainer_mc.weapon3Buy_btn:
weaponContainer_mc.weaponDes_txt.text = String(((weapon4_name + "\n\n") + weapon4_des));
break;
case weaponContainer_mc.weapon4Buy_btn:
weaponContainer_mc.weaponDes_txt.text = String(((weapon5_name + "\n\n") + weapon5_des));
break;
};
};
mout = function (_arg1:MouseEvent){
weaponContainer_mc.weaponDes_txt.textColor = 0xFFFFFF;
weaponContainer_mc.weaponDes_txt.text = "Item Description \nHover your mouse on an item to see its description.";
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case weaponContainer_mc.weapon1Buy_btn:
selectedWeapon = 1;
_setSelectedWeaponMarker(weaponContainer_mc.weapon1Buy_btn);
break;
case weaponContainer_mc.weapon2Buy_btn:
if (weapon2Availability == "available"){
if (moneyOverall >= weapon2_price){
weapon2Availability = "sold";
selectedWeapon = 2;
_setSelectedWeaponMarker(weaponContainer_mc.weapon2Buy_btn);
setTextColorToRed(weaponContainer_mc.weapon2price_txt);
weaponContainer_mc.weapon2price_txt.text = String(weapon2Availability);
updateMoney(moneyOverall, weapon2_price);
};
} else {
selectedWeapon = 2;
_setSelectedWeaponMarker(weaponContainer_mc.weapon2Buy_btn);
};
break;
case weaponContainer_mc.weapon3Buy_btn:
if (weapon3Availability == "available"){
if (moneyOverall >= weapon3_price){
weapon3Availability = "sold";
selectedWeapon = 3;
_setSelectedWeaponMarker(weaponContainer_mc.weapon3Buy_btn);
setTextColorToRed(weaponContainer_mc.weapon3price_txt);
weaponContainer_mc.weapon3price_txt.text = String(weapon3Availability);
updateMoney(moneyOverall, weapon3_price);
};
} else {
selectedWeapon = 3;
_setSelectedWeaponMarker(weaponContainer_mc.weapon3Buy_btn);
};
break;
case weaponContainer_mc.weapon4Buy_btn:
if (weapon4Availability == "available"){
if (moneyOverall >= weapon4_price){
weapon4Availability = "sold";
selectedWeapon = 4;
_setSelectedWeaponMarker(weaponContainer_mc.weapon4Buy_btn);
setTextColorToRed(weaponContainer_mc.weapon4price_txt);
weaponContainer_mc.weapon4price_txt.text = String(weapon4Availability);
updateMoney(moneyOverall, weapon4_price);
};
} else {
selectedWeapon = 4;
_setSelectedWeaponMarker(weaponContainer_mc.weapon4Buy_btn);
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function initShop(){
map_mc.section_mc.gotoAndStop(level);
map_mc.section_txt.text = String(("SECTION: " + level));
weaponContainer_mc.weapon2price_txt.text = String(weapon2_price);
weaponContainer_mc.weapon3price_txt.text = String(weapon3_price);
weaponContainer_mc.weapon4price_txt.text = String(weapon4_price);
specialContainer_mc.special1price_txt.text = String(special1_price);
specialContainer_mc.special2price_txt.text = String(special2_price);
specialContainer_mc.special3price_txt.text = String(special3_price);
specialContainer_mc.special4price_txt.text = String(special4_price);
specialContainer_mc.special5price_txt.text = String(special5_price);
specialContainer_mc.special6price_txt.text = String(special6_price);
upgradesContainer_mc.upgrade1price_txt.text = String(upgrade1_price);
upgradesContainer_mc.upgrade2price_txt.text = String(upgrade2_price);
upgradesContainer_mc.upgrade3price_txt.text = String(upgrade3_price);
upgradesContainer_mc.upgrade4price_txt.text = String(upgrade4_price);
upgradesContainer_mc.upgrade5price_txt.text = String(upgrade5_price);
upgradesContainer_mc.upgrade6price_txt.text = String(upgrade6_price);
emergencyItemsContainer_mc.emergency1price_txt.text = String(emergency1_price);
emergencyItemsContainer_mc.emergency2price_txt.text = String(emergency2_price);
emergencyItemsContainer_mc.emergency3price_txt.text = String(emergency3_price);
upgradesContainer_mc.upgrade1Level_txt.text = String(upgrade1_name);
upgradesContainer_mc.upgrade2Level_txt.text = String(upgrade2_name);
upgradesContainer_mc.upgrade3Level_txt.text = String(upgrade3_name);
upgradesContainer_mc.upgrade4Level_txt.text = String(upgrade4_name);
upgradesContainer_mc.upgrade5Level_txt.text = String(upgrade5_name);
upgradesContainer_mc.upgrade6Level_txt.text = String(upgrade6_name);
upgradesContainer_mc.showUpgrade1Level_txt.text = String((upgrade1Level + " / 5"));
upgradesContainer_mc.showUpgrade2Level_txt.text = String((upgrade2Level + " / 5"));
upgradesContainer_mc.showUpgrade3Level_txt.text = String((upgrade3Level + " / 3"));
upgradesContainer_mc.showUpgrade4Level_txt.text = String((upgrade4Level + " / 5"));
upgradesContainer_mc.showUpgrade5Level_txt.text = String((upgrade5Level + " / 5"));
upgradesContainer_mc.showUpgrade6Level_txt.text = String((upgrade6Level + " / 5"));
if (selectedWeapon == 1){
_setSelectedWeaponMarker(weaponContainer_mc.weapon1Buy_btn);
} else {
if (selectedWeapon == 2){
_setSelectedWeaponMarker(weaponContainer_mc.weapon2Buy_btn);
} else {
if (selectedWeapon == 3){
_setSelectedWeaponMarker(weaponContainer_mc.weapon3Buy_btn);
} else {
if (selectedWeapon == 4){
_setSelectedWeaponMarker(weaponContainer_mc.weapon4Buy_btn);
};
};
};
};
if (selectedEmergencyWeapon == 1){
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny1Buy_btn);
} else {
if (selectedEmergencyWeapon == 2){
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny2Buy_btn);
} else {
if (selectedEmergencyWeapon == 3){
_setSelectedEmergencyWeaponMarker(emergencyItemsContainer_mc.emergeny3Buy_btn);
};
};
};
if (weapon2Availability == "sold"){
weaponContainer_mc.weapon2price_txt.text = String(weapon2Availability);
setTextColorToRed(weaponContainer_mc.weapon2price_txt);
};
if (weapon3Availability == "sold"){
weaponContainer_mc.weapon3price_txt.text = String(weapon3Availability);
setTextColorToRed(weaponContainer_mc.weapon3price_txt);
};
if (weapon4Availability == "sold"){
weaponContainer_mc.weapon4price_txt.text = String(weapon4Availability);
setTextColorToRed(weaponContainer_mc.weapon4price_txt);
};
if (special1Availability == "sold"){
specialContainer_mc.special1price_txt.text = String(special1Availability);
setTextColorToRed(specialContainer_mc.special1price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial1_mc, specialContainer_mc.special1Buy_btn);
};
if (special2Availability == "sold"){
specialContainer_mc.special2price_txt.text = String(special2Availability);
setTextColorToRed(specialContainer_mc.special2price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial2_mc, specialContainer_mc.special2Buy_btn);
};
if (special3Availability == "sold"){
specialContainer_mc.special3price_txt.text = String(special3Availability);
setTextColorToRed(specialContainer_mc.special3price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial3_mc, specialContainer_mc.special3Buy_btn);
};
if (special4Availability == "sold"){
specialContainer_mc.special4price_txt.text = String(special4Availability);
setTextColorToRed(specialContainer_mc.special4price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial4_mc, specialContainer_mc.special4Buy_btn);
};
if (special5Availability == "sold"){
specialContainer_mc.special5price_txt.text = String(special5Availability);
setTextColorToRed(specialContainer_mc.special5price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial5_mc, specialContainer_mc.special5Buy_btn);
};
if (special6Availability == "sold"){
specialContainer_mc.special6price_txt.text = String(special6Availability);
setTextColorToRed(specialContainer_mc.special6price_txt);
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial6_mc, specialContainer_mc.special6Buy_btn);
};
if (emergency1Availability == "sold"){
trace(("e1" + emergency1Availability));
emergencyItemsContainer_mc.emergency1price_txt.text = String(emergency1Availability);
setTextColorToRed(emergencyItemsContainer_mc.emergency1price_txt);
};
if (emergency2Availability == "sold"){
trace(("e2" + emergency2Availability));
emergencyItemsContainer_mc.emergency2price_txt.text = String(emergency2Availability);
setTextColorToRed(emergencyItemsContainer_mc.emergency2price_txt);
};
if (emergency3Availability == "sold"){
trace(("e3" + emergency3Availability));
emergencyItemsContainer_mc.emergency3price_txt.text = String(emergency3Availability);
setTextColorToRed(emergencyItemsContainer_mc.emergency3price_txt);
};
if (upgrade1Level == 5){
upgradesContainer_mc.upgrade1price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade1price_txt);
};
if (upgrade2Level == 5){
upgradesContainer_mc.upgrade2price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade2price_txt);
};
if (upgrade3Level == 3){
upgradesContainer_mc.upgrade3price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade3price_txt);
};
if (upgrade4Level == 5){
upgradesContainer_mc.upgrade4price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade4price_txt);
};
if (upgrade5Level == 5){
upgradesContainer_mc.upgrade5price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade5price_txt);
};
if (upgrade6Level == 5){
upgradesContainer_mc.upgrade6price_txt.text = "complete";
setTextColorToRed(upgradesContainer_mc.upgrade6price_txt);
};
money_txt.text = String(moneyOverall);
}
public function scroller(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:Number){
_arg1.y = (_arg1.y + _arg5);
_arg2.y = (_arg2.y + _arg5);
_arg3.y = (_arg3.y + _arg5);
_arg4.y = (_arg4.y + _arg5);
if (_arg1.y >= 1400){
_arg1.y = (_arg4.y - _arg4.height);
};
if (_arg2.y >= 1400){
_arg2.y = (_arg1.y - _arg1.height);
};
if (_arg3.y >= 1400){
_arg3.y = (_arg2.y - _arg2.height);
};
if (_arg4.y >= 1400){
_arg4.y = (_arg3.y - _arg3.height);
};
}
public function attBoss1(){
playBG3();
var _local1:Boss1 = new Boss1();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
public function attBoss5(){
playBG3();
var _local1:Boss5 = new Boss5();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
public function attBoss6(){
playBG3();
var _local1:Boss6 = new Boss6();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
public function attBoss3(){
playBG3();
var _local1:Boss3 = new Boss3();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
public function bubbleAnimation(_arg1:MovieClip){
_arg1.scaleX = 0;
_arg1.scaleY = 0;
Tweener.addTween(_arg1, {scaleX:1, scaleY:1, time:1, transition:"easeOutElastic"});
}
public function attBoss4(){
playBG3();
var _local1:Boss4 = new Boss4();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
function frame2(){
stop();
}
public function attBoss2(){
playBG3();
var _local1:Boss2 = new Boss2();
_local1.main = this;
_local1.target = levelContainer_mc.player_mc;
_local1.x = randomGenerator(100, 350);
_local1.y = randomGenerator(-200, -50);
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
}
public function attEnemyAmmo1BarrageFromTop(){
var _local3:EnemyAmmo1;
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < 8) {
_local3 = new EnemyAmmo1(_local1, -100, 90);
_local3.main = this;
levelContainer_mc.addChild(_local3);
enemyAmmo1Array.push(_local3);
_local1 = (_local1 + 75);
_local2++;
};
}
function frame6(){
stop();
}
function frame9(){
stop();
updateQualityAndMusicDisplay();
if (cbm_so.data.gameDataExist != undefined){
btn_garbage.x = 682.5;
navButtons(loadGame_btn, "prelevel");
loadGame_btn.gotoAndStop(1);
} else {
loadGame_btn.gotoAndStop(2);
};
navButtons(awards_btn, "awards");
navButtons(highscores_btn, "showScore");
newGameBtn(newGame_btn, "howTo");
newGameBtn(newGamePrompt_mc.yes_btn, "howTo");
newGameBtn(newGamePrompt_mc.no_btn, "");
this.addEventListener(Event.ENTER_FRAME, titleLooper);
fader();
sponsorLinkBtns(abTitle_btn);
sponsorLinkTemp(moreGames_btn);
getChildrenOfTitleAndAnimate(this.title_mc, 0);
}
function frame3(){
stage.quality = "HIGH";
music = "on";
musicCode = 0;
qualityCode = 0;
gameStateCode = 0;
introSnd = new IntroSnd();
outroSnd = new OutroSnd();
nonGameScreenSnd = new NonGameScreenSnd();
gameScreenSnd = new GameScreenSnd();
bossSnd = new BossSnd();
allowToPlayExplode = "yes";
explodeSnd = new ExplodeSnd();
explodeSndChannel = new SoundChannel();
allowToPlayCrystal = "yes";
crystalSnd = new CrystalSnd();
crystalSndChannel = new SoundChannel();
laserSnd = new LaserSnd();
blasterSnd = new BlasterSnd();
strikeSnd = new StrikeSnd();
flareSnd = new FlareSnd();
homingSnd = new HomingSnd();
acquireSnd = new AcquireSnd();
btnClickSnd = new BtnClickSnd();
btnHoverSnd = new BtnHoverSnd();
awardSnd = new AwardSnd();
bossWarningSnd = new BossWarningSnd();
buySnd = new BuySnd();
sndStory1 = new SndStory1();
sndStory2 = new SndStory2();
brixEntrance = new BrixEntrance();
}
function frame8(){
MochiBot.track(this, "98cc7cdf");
MochiBot.track(this, "3ec70177");
playBG1();
MouseWheel.capture();
stage.showDefaultContextMenu = false;
cbm_so = SharedObject.getLocal("cbmSavedData");
moneyOverall = 10000000000;
money_levels = 0;
levelComplete = false;
level = 1;
kills_levels = 0;
keyIsPressed = "false";
mouseFollowSpeed = 0.9;
weaponAccuracy = 0.9;
weaponDmg = 10;
fireWeapon = "cease";
lifeDenom = 100;
lifeNum = lifeDenom;
dead = "false";
pickupWeapon = "";
playerAmmo1Array = new Array();
playerAmmo2Array = new Array();
playerAmmo3Array = new Array();
playerAmmo4Array = new Array();
playerAmmo5Array = new Array();
playerAmmo6Array = new Array();
playerAmmo7Array = new Array();
pickUpAmmo1Array = new Array();
pickUpAmmo2Array = new Array();
pickUpAmmo3Array = new Array();
pickUpAmmo4Array = new Array();
ammo1Max = 170;
ammo2Max = 150;
ammo3Max = 200;
ammo4Max = 175;
pickupAmmo1Max = 50;
pickupAmmo2Max = 50;
pickupAmmo3Max = 50;
pickupAmmo4Max = 50;
ammo1Inventory = ammo1Max;
ammo2Inventory = ammo2Max;
ammo3Inventory = ammo3Max;
ammo4Inventory = ammo4Max;
pickupAmmo1Inventory = pickupAmmo1Max;
pickupAmmo2Inventory = pickupAmmo2Max;
pickupAmmo3Inventory = pickupAmmo3Max;
pickupAmmo4Inventory = pickupAmmo4Max;
ammo1Reload = 4;
ammo2Reload = 4;
ammo3Reload = 2;
ammo4Reload = 2;
ammo5Reload = 1;
ammo6Reload = 1;
ammo7Reload = 0.8;
playerSpecial1Array = new Array();
playerSpecial2Array = new Array();
playerSpecial3Array = new Array();
playerSpecial4Array = new Array();
playerSpecial5Array = new Array();
playerSpecial5aArray = new Array();
playerSpecial6Array = new Array();
playerSpecial6aArray = new Array();
pickupWeaponArray = new Array();
numOfMinion = 1;
emergencyItem3Array = new Array();
emergencyItem3aArray = new Array();
shieldInUse = "no";
shieldActivated = "no";
shieldEnergyDenom = 200;
shieldEnergyNum = shieldEnergyDenom;
EMPActivated = "no";
flareActivated = "no";
cloakActivated = "no";
cloakEnergyDenom = 200;
cloakEnergyNum = cloakEnergyDenom;
magnetRange = 0;
minionROF = 1000;
enemyArray = new Array();
bossArray = new Array();
enemyAmmo1Array = new Array();
enemyAmmo2Array = new Array();
enemyAmmo3Array = new Array();
enemyAmmo4Array = new Array();
enemyAmmo5Array = new Array();
enemyAmmo6Array = new Array();
explosionArray = new Array();
moneyArray = new Array();
selectedWeapon = 1;
selectedEmergencyWeapon = 1;
weapon2Availability = "available";
weapon3Availability = "available";
weapon4Availability = "available";
special1Availability = "available";
special2Availability = "available";
special3Availability = "available";
special4Availability = "available";
special5Availability = "available";
special6Availability = "available";
upgrade1Level = 1;
upgrade2Level = 1;
upgrade3Level = 1;
upgrade4Level = 1;
upgrade5Level = 1;
upgrade6Level = 1;
emergency1Availability = "available";
emergency2Availability = "available";
emergency3Availability = "available";
upgrade1_price = 80;
upgrade2_price = 100;
upgrade3_price = 120;
upgrade4_price = 120;
upgrade5_price = 115;
upgrade6_price = 100;
LSO_Checker();
stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyIsUp);
disFromBarrel = 30;
playerAmmo1Rof = 1;
playerAmmo2Rof = 1;
playerAmmo3Rof = 1;
playerAmmo4Rof = 1;
playerAmmo5Rof = 1;
playerAmmo6Rof = 1;
playerAmmo7Rof = 1;
playerSpecial2Rof = 1;
blasterEnergyMax = 150;
blasterEnergy = blasterEnergyMax;
playerSpecial4Rof = 1;
wireEnergy = 20;
flareTmrObject = new Timer(200, 20);
flareTmrObject.addEventListener(TimerEvent.TIMER, flareTmr);
flareTmrObject.addEventListener(TimerEvent.TIMER_COMPLETE, flareTmrComplete);
pickUpAmmo1Rof = 1;
pickUpAmmo2Rof = 1;
pickUpAmmo3Rof = 1;
pickUpAmmo4Rof = 1;
waveInterval = 2000;
wave_lvl1 = 0;
waveMax_lvl1 = 18;
waveTimer_lvl1 = new Timer(waveInterval, waveMax_lvl1);
waveTimer_lvl1.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl1);
wave_lvl2 = 0;
waveMax_lvl2 = 20;
waveTimer_lvl2 = new Timer(waveInterval, waveMax_lvl2);
waveTimer_lvl2.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl2);
wave_lvl3 = 0;
waveMax_lvl3 = 22;
waveTimer_lvl3 = new Timer(waveInterval, waveMax_lvl3);
waveTimer_lvl3.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl3);
wave_lvl4 = 0;
waveMax_lvl4 = 25;
waveTimer_lvl4 = new Timer(waveInterval, waveMax_lvl4);
waveTimer_lvl4.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl4);
wave_lvl5 = 0;
waveMax_lvl5 = 30;
waveTimer_lvl5 = new Timer(waveInterval, waveMax_lvl5);
waveTimer_lvl5.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl5);
wave_lvl6 = 0;
waveMax_lvl6 = 30;
waveTimer_lvl6 = new Timer(waveInterval, waveMax_lvl6);
waveTimer_lvl6.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl6);
wave_lvl7 = 0;
waveMax_lvl7 = 30;
waveTimer_lvl7 = new Timer(waveInterval, waveMax_lvl7);
waveTimer_lvl7.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl7);
wave_lvl8 = 0;
waveMax_lvl8 = 30;
waveTimer_lvl8 = new Timer(waveInterval, waveMax_lvl8);
waveTimer_lvl8.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl8);
wave_lvl9 = 0;
waveMax_lvl9 = 30;
waveTimer_lvl9 = new Timer(waveInterval, waveMax_lvl9);
waveTimer_lvl9.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl9);
wave_lvl10 = 0;
waveMax_lvl10 = 32;
waveTimer_lvl10 = new Timer(waveInterval, waveMax_lvl10);
waveTimer_lvl10.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl10);
wave_lvl11 = 0;
waveMax_lvl11 = 32;
waveTimer_lvl11 = new Timer(waveInterval, waveMax_lvl11);
waveTimer_lvl11.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl11);
wave_lvl12 = 0;
waveMax_lvl12 = 32;
waveTimer_lvl12 = new Timer(waveInterval, waveMax_lvl12);
waveTimer_lvl12.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl12);
award1_Name = "Brave Noob";
award2_Name = "First Boss Meeting";
award3_Name = "Kindergarten";
award4_Name = "Getting good";
award5_Name = "Challenge Accepted";
award6_Name = "Boss Battle 3";
award7_Name = "Masteral";
award8_Name = "Boss Major";
award9_Name = "FTW";
award10_Name = "Right Hand Man";
award11_Name = "One More Push";
award12_Name = "Biggy Boss Sucks";
award1Des = "Arriving at area 1";
award2Des = "Arriving at area 2";
award3Des = "Arriving at area 3";
award4Des = "Arriving at area 4";
award5Des = "Arriving at area 5";
award6Des = "Arriving at area 6";
award7Des = "Arriving at area 7";
award8Des = "Arriving at area 8";
award9Des = "Arriving at area 9";
award10Des = "Arriving at area 10";
award11Des = "Arriving at area 11";
award12Des = "Arriving at area 12";
this.blink = function (){
this.alpha = !(this.alpha);
};
this.blink2 = function (){
this.visible = !(this.visible);
};
gameRunning = true;
stage.addEventListener(Event.MOUSE_LEAVE, iPauseAngGame2);
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
load_delay = 0;
preloaderContainer_mc.gotoAndPlay(1);
}
public function setTextColorToRed(_arg1:TextField){
_arg1.textColor = 0xFF0000;
}
public function attPickUpAmmo1(){
var _local1:PickUpAmmo1;
var _local2:PickUpAmmo1;
var _local3:PickUpAmmo1;
var _local4:PickUpAmmo1;
pickUpAmmo1Rof--;
if (pickUpAmmo1Rof <= 0){
_local1 = new PickUpAmmo1((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local1);
pickUpAmmo1Array.push(_local1);
_local2 = new PickUpAmmo1((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local2);
pickUpAmmo1Array.push(_local2);
_local3 = new PickUpAmmo1((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local3);
pickUpAmmo1Array.push(_local3);
_local4 = new PickUpAmmo1((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local4);
pickUpAmmo1Array.push(_local4);
pickupAmmo1Inventory--;
if (pickupAmmo1Inventory <= 0){
pickupAmmo1Inventory = 0;
pickupWeapon = "";
};
pickUpAmmo1Rof = 4;
};
}
public function attPickUpAmmo2(){
var _local1:PickUpAmmo2;
var _local2:PickUpAmmo2;
var _local3:PickUpAmmo2;
var _local4:PickUpAmmo2;
var _local5:PickUpAmmo2;
pickUpAmmo2Rof--;
if (pickUpAmmo2Rof <= 0){
_local1 = new PickUpAmmo2((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local1);
pickUpAmmo2Array.push(_local1);
_local2 = new PickUpAmmo2((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local2);
pickUpAmmo2Array.push(_local2);
_local3 = new PickUpAmmo2((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local3);
pickUpAmmo2Array.push(_local3);
_local4 = new PickUpAmmo2((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local4);
pickUpAmmo2Array.push(_local4);
_local5 = new PickUpAmmo2((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local5);
pickUpAmmo2Array.push(_local5);
pickupAmmo2Inventory--;
if (pickupAmmo2Inventory <= 0){
pickupAmmo2Inventory = 0;
pickupWeapon = "";
};
pickUpAmmo2Rof = 4;
};
}
public function attPickUpAmmo3(){
var _local1:PickUpAmmo3;
var _local2:PickUpAmmo3;
var _local3:PickUpAmmo3;
var _local4:PickUpAmmo3;
var _local5:PickUpAmmo3;
var _local6:PickUpAmmo3;
pickUpAmmo3Rof--;
if (pickUpAmmo3Rof <= 0){
_local1 = new PickUpAmmo3((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local1);
pickUpAmmo3Array.push(_local1);
_local2 = new PickUpAmmo3((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local2);
pickUpAmmo3Array.push(_local2);
_local3 = new PickUpAmmo3((levelContainer_mc.player_mc.x + 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local3);
pickUpAmmo3Array.push(_local3);
_local4 = new PickUpAmmo3((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local4);
pickUpAmmo3Array.push(_local4);
_local5 = new PickUpAmmo3((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local5);
pickUpAmmo3Array.push(_local5);
_local6 = new PickUpAmmo3((levelContainer_mc.player_mc.x - 5), (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(230, 310));
levelContainer_mc.addChild(_local6);
pickUpAmmo3Array.push(_local6);
pickupAmmo3Inventory--;
if (pickupAmmo3Inventory <= 0){
pickupAmmo3Inventory = 0;
pickupWeapon = "";
};
pickUpAmmo3Rof = 4;
};
}
public function attPickUpAmmo4(){
var _local1:PickUpAmmo4;
pickUpAmmo4Rof--;
if (pickUpAmmo4Rof <= 0){
_local1 = new PickUpAmmo4(levelContainer_mc.player_mc);
_local1.main = this;
_local1.x = levelContainer_mc.player_mc.x;
_local1.y = levelContainer_mc.player_mc.y;
levelContainer_mc.addChild(_local1);
pickUpAmmo4Array.push(_local1);
pickupAmmo4Inventory--;
if (pickupAmmo4Inventory <= 0){
pickupAmmo4Inventory = 0;
pickupWeapon = "";
};
pickUpAmmo4Rof = 4;
};
}
function frame4(){
stop();
}
public function playCrystalSnd(){
if (allowToPlayCrystal == "yes"){
crystalSndChannel = crystalSnd.play();
crystalSndChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackCompleteCrystalSndChannel);
allowToPlayCrystal = "no";
};
}
public function initLevelButton(_arg1:MovieClip, _arg2:Number){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
var lvl = _arg2;
movr = function (_arg1:MouseEvent){
Tweener.addTween(map_mc, {x:298.4, time:0.4, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(map_mc, {x:-565.8, time:0.4, transition:"easeOutStrong"});
};
mclck = function (_arg1:MouseEvent){
if ((((((((((((lvl == 2)) || ((lvl == 4)))) || ((lvl == 6)))) || ((lvl == 8)))) || ((lvl == 10)))) || ((lvl == 12)))){
gotoAndStop("bossBio");
} else {
gotoAndStop(String(("level" + lvl)));
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function button2Pressed(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://hiscore.arcadebomb.com/bunker.php"), "_blank");
}
public function attCoin(_arg1:MovieClip){
var _local4:Number;
var _local5:Number;
var _local6:Coin;
var _local2:Number = randomGenerator(10, 20);
if ((((((((((((_arg1 is Boss1)) || ((_arg1 is Boss2)))) || ((_arg1 is Boss3)))) || ((_arg1 is Boss4)))) || ((_arg1 is Boss5)))) || ((_arg1 is Boss6)))){
_local2 = randomGenerator(30, 40);
};
var _local3:Number = 0;
while (_local3 < _local2) {
_local4 = (_arg1.x + randomGenerator(-50, 50));
_local5 = (_arg1.y + randomGenerator(-50, 50));
_local6 = new Coin(_local4, _local5, 90);
_local6.main = this;
levelContainer_mc.addChild(_local6);
moneyArray.push(_local6);
_local3++;
};
}
public function playBlasterSnd(){
if (music == "on"){
blasterSnd.play();
};
}
public function attBossPrompter(){
BossLifeUIContainer_mc.y = 20;
playBossWarningSnd();
var _local1:BossWarningPrompter = new BossWarningPrompter();
_local1.x = 200;
_local1.y = 350;
levelContainer_mc.addChild(_local1);
}
public function _setSelectedEmergencyWeaponMarker(_arg1){
emergencyItemsContainer_mc.selectedEmergency_mc.x = _arg1.x;
emergencyItemsContainer_mc.selectedEmergency_mc.y = _arg1.y;
}
public function attBossExplosion(_arg1:MovieClip){
var bossExplosionTImer:Timer;
var attRapidExplosion:Function;
var stopRapidExplosion:Function;
var mc = _arg1;
attRapidExplosion = function (_arg1:TimerEvent){
screenShake();
playExplodeSnd();
var _local2:Explosion = new Explosion();
_local2.x = (mc.x - randomGenerator(-100, 100));
_local2.y = (mc.y - randomGenerator(-60, 50));
_local2.rotation = randomGenerator(0, 360);
levelContainer_mc.addChild(_local2);
explosionArray.push(_local2);
};
stopRapidExplosion = function (_arg1:TimerEvent){
bossExplosionTImer.reset();
bossExplosionTImer.removeEventListener(TimerEvent.TIMER, attRapidExplosion);
bossExplosionTImer.removeEventListener(TimerEvent.TIMER_COMPLETE, stopRapidExplosion);
};
bossExplosionTImer = new Timer(100, 16);
bossExplosionTImer.addEventListener(TimerEvent.TIMER, attRapidExplosion);
bossExplosionTImer.addEventListener(TimerEvent.TIMER_COMPLETE, stopRapidExplosion);
bossExplosionTImer.start();
}
public function iPauseAngGame(){
switch (level){
case 1:
trace("fuck");
waveTimer_lvl1.stop();
break;
case 2:
waveTimer_lvl2.stop();
break;
case 3:
waveTimer_lvl3.stop();
break;
case 4:
waveTimer_lvl4.stop();
break;
case 5:
waveTimer_lvl5.stop();
break;
case 6:
waveTimer_lvl6.stop();
break;
case 7:
waveTimer_lvl7.stop();
break;
case 8:
waveTimer_lvl8.stop();
break;
case 9:
waveTimer_lvl9.stop();
break;
case 10:
waveTimer_lvl10.stop();
break;
case 11:
waveTimer_lvl11.stop();
break;
case 12:
waveTimer_lvl12.stop();
break;
default:
break;
};
var _local1:Number = (moneyArray.length - 1);
while (_local1 >= 0) {
if ((moneyArray[_local1] is Coin)){
moneyArray[_local1].animation_mc.stop();
};
_local1--;
};
gameRunning = false;
pausePrompt_mc.y = 262;
Tweener.pauseAllTweens();
}
public function playAwardSnd(){
if (music == "on"){
awardSnd.play();
};
}
public function initGame(){
gameCurrentLevel_txt.text = String(("LEVEL: " + level));
gameRunning = true;
pickupWeapon = "";
kills_levels = 0;
money_levels = 0;
updateQualityAndMusicDisplay();
playBG2();
stage.addEventListener(Event.ENTER_FRAME, looper);
levelAwards();
fader();
fireWeapon = "cease";
wireEnergy = 20;
blasterEnergy = blasterEnergyMax;
switch (upgrade1Level){
case 1:
lifeDenom = 100;
break;
case 2:
lifeDenom = 110;
break;
case 3:
lifeDenom = 120;
break;
case 4:
lifeDenom = 135;
break;
case 5:
lifeDenom = 150;
break;
};
levelComplete = false;
lifeNum = lifeDenom;
dead = "false";
wave_lvl1 = 0;
wave_lvl2 = 0;
wave_lvl3 = 0;
wave_lvl4 = 0;
wave_lvl5 = 0;
wave_lvl6 = 0;
wave_lvl7 = 0;
wave_lvl8 = 0;
wave_lvl9 = 0;
wave_lvl10 = 0;
wave_lvl11 = 0;
wave_lvl12 = 0;
switch (upgrade2Level){
case 1:
mouseFollowSpeed = 0.9;
break;
case 2:
mouseFollowSpeed = 0.8;
break;
case 3:
mouseFollowSpeed = 0.7;
break;
case 4:
mouseFollowSpeed = 0.6;
break;
case 5:
mouseFollowSpeed = 0.5;
break;
};
switch (upgrade3Level){
case 1:
numOfMinion = 1;
break;
case 2:
numOfMinion = 2;
break;
case 3:
numOfMinion = 3;
break;
};
switch (upgrade4Level){
case 1:
weaponDmg = 8;
break;
case 2:
weaponDmg = 8.1;
break;
case 3:
weaponDmg = 8.2;
break;
case 4:
weaponDmg = 8.3;
break;
case 5:
weaponDmg = 8.5;
break;
};
switch (upgrade5Level){
case 1:
minionROF = 1000;
break;
case 2:
minionROF = 800;
break;
case 3:
minionROF = 750;
break;
case 4:
minionROF = 700;
break;
case 5:
minionROF = 600;
break;
};
switch (upgrade6Level){
case 1:
magnetRange = 25;
break;
case 2:
magnetRange = 50;
break;
case 3:
magnetRange = 75;
break;
case 4:
magnetRange = 80;
break;
case 5:
magnetRange = 100;
break;
};
if (special6Availability == "sold"){
attPlayerSpecial6();
};
if (special1Availability == "sold"){
special1UIContainer_mc.gotoAndStop(2);
};
if (special3Availability == "sold"){
special3UIContainer_mc.gotoAndStop(2);
};
if (special4Availability == "sold"){
special4UIContainer_mc.gotoAndStop(2);
};
if (special5Availability == "sold"){
special5UIContainer_mc.gotoAndStop(2);
};
if (selectedEmergencyWeapon == 1){
EmergencyItemUIContainer.alpha = 1;
EmergencyItemUIContainer.icon_mc.gotoAndStop(1);
} else {
if (selectedEmergencyWeapon == 2){
EmergencyItemUIContainer.alpha = 1;
EmergencyItemUIContainer.icon_mc.gotoAndStop(2);
} else {
if (selectedEmergencyWeapon == 3){
EmergencyItemUIContainer.alpha = 1;
EmergencyItemUIContainer.icon_mc.gotoAndStop(3);
} else {
EmergencyItemUIContainer.alpha = 0;
};
};
};
trace(("level ---" + level));
switch (level){
case 1:
trace("fuck");
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl1.start();
break;
case 2:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl2.start();
break;
case 3:
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl3.start();
break;
case 4:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl4.start();
break;
case 5:
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl5.start();
break;
case 6:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl6.start();
break;
case 7:
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl7.start();
break;
case 8:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl8.start();
break;
case 9:
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl9.start();
break;
case 10:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl10.start();
break;
case 11:
toPostLevelTimer = new Timer(1000, 3);
waveTimer_lvl11.start();
break;
case 12:
toPostLevelTimer = new Timer(1000, 6);
waveTimer_lvl12.start();
break;
default:
break;
};
toPostLevelTimer.addEventListener(TimerEvent.TIMER_COMPLETE, toPostLevel);
shieldInUse = "no";
shieldActivated = "no";
EMPActivated = "no";
flareActivated = "no";
shieldEnergyNum = shieldEnergyDenom;
}
public function howToLooper(_arg1:Event){
if (currentFrame == 3){
} else {
this.removeEventListener(Event.ENTER_FRAME, howToLooper);
};
}
public function playBtnHoverSnd(){
if (music == "on"){
btnHoverSnd.play();
};
}
public function playBtnClickSnd(){
if (music == "on"){
btnClickSnd.play();
};
}
public function attExplosion(_arg1:MovieClip){
playExplodeSnd();
var _local2:Explosion = new Explosion();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
levelContainer_mc.addChild(_local2);
explosionArray.push(_local2);
}
public function updateMoney(_arg1:Number, _arg2:Number){
playBuySnd();
moneyOverall = (_arg1 - _arg2);
money_txt.text = String(("" + moneyOverall));
shopLogo_mc.scaleX = 0.5;
shopLogo_mc.scaleY = 0.5;
Tweener.addTween(shopLogo_mc, {scaleX:1, scaleY:1, time:0.8, transition:"easeOutElastic"});
}
public function attPlayerSpecial1(){
var _local3:PlayerSpecial1;
var _local1:Number = (levelContainer_mc.player_mc.x - 60);
var _local2:Number = 0;
while (_local2 < 6) {
_local1 = (_local1 + 20);
_local3 = new PlayerSpecial1(levelContainer_mc.player_mc);
_local3.main = this;
_local3.x = _local1;
_local3.y = levelContainer_mc.player_mc.y;
levelContainer_mc.addChild(_local3);
playerSpecial1Array.push(_local3);
_local2++;
};
}
public function attPlayerSpecial2(){
var _local1:PlayerSpecial2;
playerSpecial2Rof--;
if (playerSpecial2Rof <= 0){
_local1 = new PlayerSpecial2(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, randomGenerator(80, 100));
_local1.main = this;
levelContainer_mc.addChild(_local1);
playerSpecial2Array.push(_local1);
playerSpecial2Rof = 10;
};
}
public function attPlayerSpecial3(){
var _local5:Number;
var _local6:PlayerSpecial3;
playStrikeSnd();
var _local1:Number = 10;
var _local2:Number = 10;
var _local3:Number = 10;
var _local4:Number = 10;
var _local7:Number = 0;
while (_local7 < 21) {
if (_local7 < 6){
_local1 = (_local1 + (100 + randomGenerator(-70, 70)));
_local5 = (700 + randomGenerator(-50, 50));
_local6 = new PlayerSpecial3(_local1, _local5, 270);
_local6.main = this;
} else {
if (_local7 < 11){
_local2 = (_local2 + (100 + randomGenerator(-70, 70)));
_local5 = (900 + randomGenerator(-50, 50));
_local6 = new PlayerSpecial3(_local2, _local5, 270);
_local6.main = this;
} else {
if (_local7 < 16){
_local3 = (_local3 + (100 + randomGenerator(-70, 70)));
_local5 = (1100 + randomGenerator(-50, 50));
_local6 = new PlayerSpecial3(_local3, _local5, 270);
_local6.main = this;
} else {
if (_local7 < 21){
_local4 = (_local4 + (100 + randomGenerator(-70, 70)));
_local5 = (1300 + randomGenerator(-50, 50));
_local6 = new PlayerSpecial3(_local4, _local5, 270);
_local6.main = this;
};
};
};
};
levelContainer_mc.addChild(_local6);
playerSpecial3Array.push(_local6);
_local7++;
};
}
public function attPlayerSpecial4(){
var _local1:PlayerSpecial4;
playerSpecial4Rof--;
if (playerSpecial4Rof <= 0){
_local1 = new PlayerSpecial4(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, 270);
_local1.main = this;
levelContainer_mc.addChild(_local1);
playerSpecial4Array.push(_local1);
playerSpecial4Rof = 1;
};
}
public function attPlayerSpecial6(){
var _local3:PlayerSpecial6;
var _local1:Number = (levelContainer_mc.player_mc.x - 60);
trace(("num of minion-" + numOfMinion));
var _local2:Number = 0;
while (_local2 < numOfMinion) {
_local1 = (_local1 + 20);
_local3 = new PlayerSpecial6(levelContainer_mc.player_mc, minionROF);
_local3.x = _local1;
_local3.y = levelContainer_mc.player_mc.y;
levelContainer_mc.addChild(_local3);
playerSpecial6Array.push(_local3);
_local2++;
};
}
public function attPlayerSpecial5(){
initWireOnEnemies();
}
public function acquireSpecials(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnHoverSnd();
specialContainer_mc.specialDes_txt.textColor = 0xFFFF00;
switch (btn){
case specialContainer_mc.special1Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special1_name + "\n\n") + special1_des));
break;
case specialContainer_mc.special2Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special2_name + "\n\n") + special2_des));
break;
case specialContainer_mc.special3Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special3_name + "\n\n") + special3_des));
break;
case specialContainer_mc.special4Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special4_name + "\n\n") + special4_des));
break;
case specialContainer_mc.special5Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special5_name + "\n\n") + special5_des));
break;
case specialContainer_mc.special6Buy_btn:
specialContainer_mc.specialDes_txt.text = String(((special6_name + "\n\n") + special6_des));
break;
};
};
mout = function (_arg1:MouseEvent){
specialContainer_mc.specialDes_txt.textColor = 0xFFFFFF;
specialContainer_mc.specialDes_txt.text = "Item Description \nHover your mouse on an item to see its description.";
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case specialContainer_mc.special1Buy_btn:
if (special1Availability == "available"){
if (moneyOverall >= special1_price){
special1Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial1_mc, specialContainer_mc.special1Buy_btn);
updateMoney(moneyOverall, special1_price);
setTextColorToRed(specialContainer_mc.special1price_txt);
specialContainer_mc.special1price_txt.text = String(special1Availability);
};
};
break;
case specialContainer_mc.special2Buy_btn:
if (special2Availability == "available"){
if (moneyOverall >= special2_price){
special2Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial2_mc, specialContainer_mc.special2Buy_btn);
updateMoney(moneyOverall, special2_price);
setTextColorToRed(specialContainer_mc.special2price_txt);
specialContainer_mc.special2price_txt.text = String(special2Availability);
};
};
break;
case specialContainer_mc.special3Buy_btn:
if (special3Availability == "available"){
if (moneyOverall >= special3_price){
special3Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial3_mc, specialContainer_mc.special3Buy_btn);
updateMoney(moneyOverall, special3_price);
setTextColorToRed(specialContainer_mc.special3price_txt);
specialContainer_mc.special3price_txt.text = String(special3Availability);
};
};
break;
case specialContainer_mc.special4Buy_btn:
if (special4Availability == "available"){
if (moneyOverall >= special4_price){
special4Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial4_mc, specialContainer_mc.special4Buy_btn);
updateMoney(moneyOverall, special4_price);
setTextColorToRed(specialContainer_mc.special4price_txt);
specialContainer_mc.special4price_txt.text = String(special4Availability);
};
};
break;
case specialContainer_mc.special5Buy_btn:
if (special5Availability == "available"){
if (moneyOverall >= special5_price){
special5Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial5_mc, specialContainer_mc.special5Buy_btn);
updateMoney(moneyOverall, special5_price);
setTextColorToRed(specialContainer_mc.special5price_txt);
specialContainer_mc.special5price_txt.text = String(special5Availability);
};
};
break;
case specialContainer_mc.special6Buy_btn:
if (special6Availability == "available"){
if (moneyOverall >= special6_price){
special6Availability = "sold";
_setAcquiredSpecialMarker(specialContainer_mc.selectedSpecial6_mc, specialContainer_mc.special6Buy_btn);
updateMoney(moneyOverall, special6_price);
setTextColorToRed(specialContainer_mc.special6price_txt);
specialContainer_mc.special6price_txt.text = String(special6Availability);
};
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function attEnemyAmmo1BarrageFromBottom(){
var _local3:EnemyAmmo1;
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < 8) {
_local3 = new EnemyAmmo1(_local1, 650, 270);
_local3.main = this;
levelContainer_mc.addChild(_local3);
enemyAmmo1Array.push(_local3);
_local1 = (_local1 + 75);
_local2++;
};
}
public function goodjob(_arg1:Event):void{
trace(URLLoader(_arg1.target).data);
gotoAndStop("showScore");
}
public function LSO_Checker(){
if (cbm_so.data.gameDataExist != undefined){
level = cbm_so.data.level_so;
moneyOverall = cbm_so.data.moneyOverall_so;
killsOverall = cbm_so.data.killsOveralll_so;
selectedWeapon = cbm_so.data.selectedWeapon_so;
selectedEmergencyWeapon = cbm_so.data.selectedEmergencyWeapon_so;
weapon2Availability = cbm_so.data.weapon2Availability_so;
weapon3Availability = cbm_so.data.weapon3Availability_so;
weapon4Availability = cbm_so.data.weapon4Availability_so;
special1Availability = cbm_so.data.special1Availability_so;
special2Availability = cbm_so.data.special2Availability_so;
special3Availability = cbm_so.data.special3Availability_so;
special4Availability = cbm_so.data.special4Availability_so;
special5Availability = cbm_so.data.special5Availability_so;
special6Availability = cbm_so.data.special6Availability_so;
upgrade1Level = cbm_so.data.upgrade1Level_so;
upgrade2Level = cbm_so.data.upgrade2Level_so;
upgrade3Level = cbm_so.data.upgrade3Level_so;
upgrade4Level = cbm_so.data.upgrade4Level_so;
upgrade5Level = cbm_so.data.upgrade5Level_so;
upgrade6Level = cbm_so.data.upgrade6Level_so;
emergency1Availability = cbm_so.data.emergency1Availability_so;
emergency2Availability = cbm_so.data.emergency2Availability_so;
emergency3Availability = cbm_so.data.emergency3Availability_so;
upgrade1_price = cbm_so.data.upgrade1_price_so;
upgrade2_price = cbm_so.data.upgrade2_price_so;
upgrade3_price = cbm_so.data.upgrade3_price_so;
upgrade4_price = cbm_so.data.upgrade4_price_so;
upgrade5_price = cbm_so.data.upgrade5_price_so;
upgrade6_price = cbm_so.data.upgrade6_price_so;
} else {
level = 1;
kills_levels = 0;
money_levels = 0;
killsOverall = 0;
moneyOverall = 50;
selectedWeapon = 1;
selectedEmergencyWeapon = 0;
weapon2Availability = "available";
weapon3Availability = "available";
weapon4Availability = "available";
special1Availability = "available";
special2Availability = "available";
special3Availability = "available";
special4Availability = "available";
special5Availability = "available";
special6Availability = "available";
upgrade1Level = 1;
upgrade2Level = 1;
upgrade3Level = 1;
upgrade4Level = 1;
upgrade5Level = 1;
upgrade6Level = 1;
emergency1Availability = "available";
emergency2Availability = "available";
emergency3Availability = "available";
upgrade1_price = 70;
upgrade2_price = 80;
upgrade3_price = 120;
upgrade4_price = 100;
upgrade5_price = 115;
upgrade6_price = 40;
};
}
public function playFlareSnd(){
if (music == "on"){
flareSnd.play();
};
}
public function _setAwardsNameDesc(_arg1:MovieClip, _arg2:String, _arg3:String){
_arg1.name_txt.text = _arg2;
_arg1.desc_txt.text = _arg3;
switch (_arg1){
case award1_mc:
_arg1.icon_mc.gotoAndStop(1);
break;
case award2_mc:
_arg1.icon_mc.gotoAndStop(2);
break;
case award3_mc:
_arg1.icon_mc.gotoAndStop(3);
break;
case award4_mc:
_arg1.icon_mc.gotoAndStop(4);
break;
case award5_mc:
_arg1.icon_mc.gotoAndStop(5);
break;
case award6_mc:
_arg1.icon_mc.gotoAndStop(6);
break;
case award7_mc:
_arg1.icon_mc.gotoAndStop(7);
break;
case award8_mc:
_arg1.icon_mc.gotoAndStop(8);
break;
case award9_mc:
_arg1.icon_mc.gotoAndStop(9);
break;
case award10_mc:
_arg1.icon_mc.gotoAndStop(10);
break;
case award11_mc:
_arg1.icon_mc.gotoAndStop(11);
break;
case award12_mc:
_arg1.icon_mc.gotoAndStop(12);
break;
};
}
public function deleteLSO(){
delete cbm_so.data.gameDataExist;
delete cbm_so.data.level_so;
delete cbm_so.data.moneyOverall_so;
delete cbm_so.data.killsOveralll_so;
delete cbm_so.data.selectedWeapon_so;
delete cbm_so.data.selectedEmergencyWeapon_so;
delete cbm_so.data.weapon2Availability_so;
delete cbm_so.data.weapon3Availability_so;
delete cbm_so.data.weapon4Availability_so;
delete cbm_so.data.special1Availability_so;
delete cbm_so.data.special2Availability_so;
delete cbm_so.data.special3Availability_so;
delete cbm_so.data.special4Availability_so;
delete cbm_so.data.special5Availability_so;
delete cbm_so.data.special6Availability_so;
delete cbm_so.data.upgrade1Level_so;
delete cbm_so.data.upgrade2Level_so;
delete cbm_so.data.upgrade3Level_so;
delete cbm_so.data.upgrade4Level_so;
delete cbm_so.data.upgrade5Level_so;
delete cbm_so.data.upgrade6Level_so;
delete cbm_so.data.upgrade1_price_so;
delete cbm_so.data.upgrade2_price_so;
delete cbm_so.data.upgrade3_price_so;
delete cbm_so.data.upgrade4_price_so;
delete cbm_so.data.upgrade5_price_so;
delete cbm_so.data.upgrade6_price_so;
delete cbm_so.data.emergency1Availability_so;
delete cbm_so.data.emergency2Availability_so;
delete cbm_so.data.emergency3Availability_so;
}
public function countLevelKills(){
kills_levels++;
}
public function attPickupWeapon1(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:PickupWeapon1 = new PickupWeapon1(_local1, _local2, 90);
_local3.main = this;
levelContainer_mc.addChild(_local3);
pickupWeaponArray.push(_local3);
}
public function attPickupWeapon2(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:PickupWeapon2 = new PickupWeapon2(_local1, _local2, 90);
_local3.main = this;
levelContainer_mc.addChild(_local3);
pickupWeaponArray.push(_local3);
}
public function attPickupWeapon3(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:PickupWeapon3 = new PickupWeapon3(_local1, _local2, 90);
_local3.main = this;
levelContainer_mc.addChild(_local3);
pickupWeaponArray.push(_local3);
}
public function flareTmr(_arg1:TimerEvent){
playFlareSnd();
var _local2:EmergencyItem3 = new EmergencyItem3(levelContainer_mc.player_mc.x, (levelContainer_mc.player_mc.y - disFromBarrel), randomGenerator(240, 300));
levelContainer_mc.addChild(_local2);
emergencyItem3Array.push(_local2);
}
public function attPickupWeapon4(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:PickupWeapon4 = new PickupWeapon4(_local1, _local2, 90);
_local3.main = this;
levelContainer_mc.addChild(_local3);
pickupWeaponArray.push(_local3);
}
public function levelAwards(){
if (cbm_so.data.award1_so == undefined){
if (level == 1){
cbm_so.data.award1_so = 1;
promptAchievement(award1_Name);
};
};
if (cbm_so.data.award2_so == undefined){
if (level == 2){
cbm_so.data.award2_so = 2;
promptAchievement(award2_Name);
};
};
if (cbm_so.data.award3_so == undefined){
if (level == 3){
cbm_so.data.award3_so = 3;
promptAchievement(award3_Name);
};
};
if (cbm_so.data.award4_so == undefined){
if (level == 4){
cbm_so.data.award4_so = 4;
promptAchievement(award4_Name);
};
};
if (cbm_so.data.award5_so == undefined){
if (level == 5){
cbm_so.data.award4_so = 5;
promptAchievement(award5_Name);
};
};
if (cbm_so.data.award6_so == undefined){
if (level == 6){
cbm_so.data.award6_so = 6;
promptAchievement(award6_Name);
};
};
if (cbm_so.data.award7_so == undefined){
if (level == 7){
cbm_so.data.award7_so = 2;
promptAchievement(award7_Name);
};
};
if (cbm_so.data.award8_so == undefined){
if (level == 8){
cbm_so.data.award8_so = 1;
promptAchievement(award8_Name);
};
};
if (cbm_so.data.award9_so == undefined){
if (level == 9){
cbm_so.data.award9_so = 4;
promptAchievement(award9_Name);
};
};
if (cbm_so.data.award10_so == undefined){
if (level == 10){
cbm_so.data.award10_so = 10;
promptAchievement(award10_Name);
};
};
if (cbm_so.data.award11_so == undefined){
if (level == 11){
cbm_so.data.award11_so = 1;
promptAchievement(award11_Name);
};
};
if (cbm_so.data.award12_so == undefined){
if (level == 12){
cbm_so.data.award12_so = 2;
promptAchievement(award12_Name);
};
};
}
public function playBrixEntrance(){
if (music == "on"){
brixEntrance.play();
};
}
public function attEmegencyItem1(){
shieldActivated = "yes";
}
public function attEmegencyItem2(){
var _local1:Number = (enemyArray.length - 1);
while (_local1 >= 0) {
enemyArray[_local1].life = 0;
_local1--;
};
}
public function attEmegencyItem3(){
flareTmrObject.start();
}
public function playOutroSnd(){
if (music == "on"){
outroSnd.play();
};
}
public function _setAcquiredSpecialMarker(_arg1:MovieClip, _arg2:MovieClip){
_arg1.x = _arg2.x;
_arg1.y = _arg2.y;
}
public function deployEnemy_Lvl10(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl10++;
trace(wave_lvl10);
switch (wave_lvl10){
case 1:
attEnemyAmmo1BarrageFromLeft();
attEnemy3(1);
attEnemy12(1);
break;
case 2:
attEnemy10(1);
attEnemy4(4, "left");
break;
case 3:
attEnemy9(2);
break;
case 4:
attEnemy5(1);
break;
case 5:
attEnemyAmmo1BarrageFromRight();
attEnemy4(4, "left");
attEnemy7(1);
attEnemy9(2);
break;
case 6:
attEnemy11(2);
break;
case 7:
attEnemy4(4, "right");
attEnemy6(2);
break;
case 8:
attHealth1();
attEnemy8(2);
attEnemy11(1);
break;
case 9:
attEnemy12(2);
break;
case 10:
attEnemyAmmo1BarrageFromLeft();
attPickupWeapon3();
attEnemy4(3, "right");
attEnemy9(2);
attEnemy7(1);
attEnemy9(1);
break;
case 11:
attEnemy2(2);
attEnemy12(1);
break;
case 12:
attEnemy4(3, "right");
break;
case 13:
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy10(1);
attEnemy12(2);
break;
case 15:
attEnemyAmmo1BarrageFromRight();
attEnemy4(5, "left");
attEnemy7(1);
attEnemy9(1);
break;
case 16:
attHealth1();
attEnemy2(2);
attEnemy9(1);
break;
case 17:
attSpecialRecharge();
attEnemy10(1);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy12(1);
break;
case 20:
attEnemyAmmo1BarrageFromLeft();
attPickupWeapon4();
attEnemy11(2);
attEnemy7(1);
attEnemy9(1);
break;
case 21:
attEnemy5(1);
attEnemy8(2);
break;
case 22:
attEnemy9(2);
attEnemy10(1);
break;
case 23:
attEnemy6(2);
attEnemy11(1);
break;
case 24:
attEnemy12(1);
break;
case 25:
attEnemyAmmo1BarrageFromRight();
attEnemy9(2);
attEnemy7(2);
attEnemy9(1);
break;
case 26:
attEnemy5(1);
attEnemy11(1);
break;
case 27:
attEnemy12(1);
break;
case 28:
attHealth1();
attEnemy5(2);
break;
case 29:
attEnemy9(2);
attEnemy10(1);
attBossPrompter();
break;
case 30:
attEnemyAmmo1BarrageFromLeft();
attEnemy12(1);
attEnemy7(2);
attEnemy9(2);
attBoss5();
break;
default:
break;
};
};
}
public function deployEnemy_Lvl12(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl12++;
trace(wave_lvl12);
switch (wave_lvl12){
case 1:
attEnemyAmmo1BarrageFromTop();
attEnemy2(1);
attEnemy14(1);
break;
case 2:
attEnemy10(1);
attEnemy4(4, "left");
break;
case 3:
attEnemyAmmo1BarrageFromTop();
attEnemy9(2);
break;
case 4:
attHealth1();
attEnemy13(1);
break;
case 5:
attEnemyAmmo1BarrageFromTop();
attEnemy4(4, "left");
attEnemy7(1);
attEnemy9(2);
break;
case 6:
attEnemy14(1);
break;
case 7:
attEnemyAmmo1BarrageFromTop();
attEnemy4(4, "right");
attEnemy6(2);
break;
case 8:
attHealth1();
attEnemy8(2);
attEnemy14(1);
break;
case 9:
attEnemyAmmo1BarrageFromTop();
attEnemy12(2);
break;
case 10:
attPickupWeapon3();
attEnemy4(3, "right");
attEnemy13(1);
attEnemy7(1);
attEnemy9(1);
break;
case 11:
attEnemyAmmo1BarrageFromTop();
attEnemy2(2);
attEnemy12(1);
break;
case 12:
attHealth2();
attEnemy4(3, "right");
break;
case 13:
attEnemyAmmo1BarrageFromTop();
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy10(1);
attEnemy15(2);
break;
case 15:
attEnemyAmmo1BarrageFromTop();
attEnemy4(5, "left");
attEnemy7(1);
attEnemy9(2);
break;
case 16:
attHealth1();
attEnemy2(2);
attEnemy13(1);
break;
case 17:
attEnemyAmmo1BarrageFromTop();
attSpecialRecharge();
attEnemy10(1);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemyAmmo1BarrageFromTop();
attEnemy14(2);
break;
case 20:
attPickupWeapon4();
attHealth1();
attEnemy15(2);
attEnemy7(1);
attEnemy9(1);
break;
case 21:
attEnemyAmmo1BarrageFromTop();
attEnemy5(1);
attEnemy13(1);
break;
case 22:
attEnemy9(2);
attEnemy13(1);
break;
case 23:
attEnemyAmmo1BarrageFromBottom();
attEnemy6(2);
attEnemy11(1);
break;
case 24:
attHealth2();
attEnemy15(1);
attEnemy7(1);
attEnemy9(2);
break;
case 25:
attEnemyAmmo1BarrageFromBottom();
attEnemy9(2);
break;
case 26:
attEnemy5(1);
attEnemy15(1);
break;
case 27:
attEnemyAmmo1BarrageFromBottom();
attEnemy12(1);
break;
case 28:
attHealth1();
attEnemy5(2);
break;
case 29:
attEnemyAmmo1BarrageFromBottom();
attEnemy9(2);
attEnemy15(1);
break;
case 30:
attEnemy12(1);
attEnemy7(1);
attEnemy9(2);
break;
case 31:
attEnemyAmmo1BarrageFromBottom();
attEnemy9(2);
attEnemy14(1);
attBossPrompter();
break;
case 32:
attEnemy15(1);
attEnemy7(1);
attEnemy9(1);
attBoss6();
break;
default:
break;
};
};
}
public function titleLooper(_arg1:Event){
if (currentFrame == 2){
} else {
this.removeEventListener(Event.ENTER_FRAME, titleLooper);
};
}
public function deployEnemy_Lvl11(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
wave_lvl11++;
trace(wave_lvl11);
switch (wave_lvl11){
case 1:
attEnemyAmmo1BarrageFromBottom();
attEnemy3(1);
attEnemy13(1);
break;
case 2:
attEnemy10(1);
attEnemy4(4, "left");
break;
case 3:
attEnemy9(2);
break;
case 4:
attEnemyAmmo1BarrageFromBottom();
attEnemy13(1);
break;
case 5:
attEnemy4(4, "left");
attEnemy7(1);
attEnemy9(2);
break;
case 6:
attEnemy11(2);
break;
case 7:
attEnemy4(4, "right");
attEnemy6(2);
break;
case 8:
attEnemyAmmo1BarrageFromBottom();
attHealth1();
attEnemy8(2);
attEnemy11(1);
break;
case 9:
attEnemy12(2);
break;
case 10:
attPickupWeapon3();
attEnemy4(3, "right");
attEnemy13(1);
attEnemy7(1);
attEnemy9(1);
break;
case 11:
attEnemy2(2);
attEnemy12(1);
break;
case 12:
attEnemyAmmo1BarrageFromBottom();
attEnemy4(3, "right");
break;
case 13:
attEnemy2(1);
attEnemy6(2);
break;
case 14:
attEnemy10(1);
attEnemy12(2);
break;
case 15:
attEnemy4(5, "left");
attEnemy7(1);
attEnemy9(1);
break;
case 16:
attEnemyAmmo1BarrageFromBottom();
attEnemy2(2);
attEnemy13(1);
break;
case 17:
attSpecialRecharge();
attEnemy10(1);
break;
case 18:
attEnemy4(6, "right");
break;
case 19:
attEnemy12(1);
break;
case 20:
attEnemyAmmo1BarrageFromBottom();
attPickupWeapon4();
attHealth1();
attEnemy11(2);
attEnemy7(1);
attEnemy9(1);
break;
case 21:
attEnemy5(1);
attEnemy13(1);
break;
case 22:
attEnemy9(2);
attEnemy13(1);
break;
case 23:
attEnemy6(2);
attEnemy11(1);
break;
case 24:
attEnemyAmmo1BarrageFromBottom();
attEnemy12(1);
break;
case 25:
attEnemy9(2);
attEnemy7(1);
attEnemy9(1);
break;
case 26:
attEnemy5(1);
attEnemy13(1);
break;
case 27:
attEnemy12(1);
break;
case 28:
attEnemyAmmo1BarrageFromBottom();
attHealth1();
attEnemy5(2);
break;
case 29:
attEnemy9(2);
attEnemy13(1);
attEnemy7(1);
attEnemy9(1);
break;
case 30:
attEnemyAmmo1BarrageFromBottom();
attEnemy12(1);
break;
case 31:
attEnemy9(2);
attEnemy13(1);
break;
case 32:
attEnemy13(1);
attEnemy7(1);
attEnemy9(2);
break;
default:
break;
};
};
}
public function onPlaybackCompleteExplodeSndChannel(_arg1:Event){
allowToPlayExplode = "yes";
}
public function iPauseAngGame2(_arg1:Event){
var _local2:Number;
if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){
switch (level){
case 1:
trace("fuck");
waveTimer_lvl1.stop();
break;
case 2:
waveTimer_lvl2.stop();
break;
case 3:
waveTimer_lvl3.stop();
break;
case 4:
waveTimer_lvl4.stop();
break;
case 5:
waveTimer_lvl5.stop();
break;
case 6:
waveTimer_lvl6.stop();
break;
case 7:
waveTimer_lvl7.stop();
break;
case 8:
waveTimer_lvl8.stop();
break;
case 9:
waveTimer_lvl9.stop();
break;
case 10:
waveTimer_lvl10.stop();
break;
case 11:
waveTimer_lvl11.stop();
break;
case 12:
waveTimer_lvl12.stop();
break;
default:
break;
};
_local2 = (moneyArray.length - 1);
while (_local2 >= 0) {
if ((moneyArray[_local2] is Coin)){
moneyArray[_local2].animation_mc.stop();
};
_local2--;
};
gameRunning = false;
pausePrompt2_mc.y = 262;
Tweener.pauseAllTweens();
};
}
public function initAwardsScreen(){
award1_mc.icon_mc.alpha = 0.2;
award2_mc.icon_mc.alpha = 0.2;
award3_mc.icon_mc.alpha = 0.2;
award4_mc.icon_mc.alpha = 0.2;
award5_mc.icon_mc.alpha = 0.2;
award6_mc.icon_mc.alpha = 0.2;
award7_mc.icon_mc.alpha = 0.2;
award8_mc.icon_mc.alpha = 0.2;
award9_mc.icon_mc.alpha = 0.2;
award10_mc.icon_mc.alpha = 0.2;
award11_mc.icon_mc.alpha = 0.2;
award12_mc.icon_mc.alpha = 0.2;
if (cbm_so.data.award1_so != undefined){
award1_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award2_so != undefined){
award2_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award3_so != undefined){
award3_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award4_so != undefined){
award4_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award5_so != undefined){
award5_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award6_so != undefined){
award6_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award7_so != undefined){
award7_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award8_so != undefined){
award8_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award9_so != undefined){
award9_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award10_so != undefined){
award10_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award11_so != undefined){
award11_mc.icon_mc.alpha = 1;
};
if (cbm_so.data.award12_so != undefined){
award12_mc.icon_mc.alpha = 1;
};
}
public function promptAchievement(_arg1:String){
var _local2:AwardPrompt = new AwardPrompt();
_local2.name_txt.text = _arg1;
_local2.icon_mc.gotoAndStop(level);
_local2.x = 200;
_local2.y = 350;
levelContainer_mc.addChild(_local2);
}
public function attEnemyAmmo1BarrageFromLeft(){
var _local3:EnemyAmmo1;
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < 12) {
_local3 = new EnemyAmmo1(-100, _local1, 0);
_local3.main = this;
levelContainer_mc.addChild(_local3);
enemyAmmo1Array.push(_local3);
_local1 = (_local1 + 75);
_local2++;
};
}
public function instanceLooper(_arg1:Array){
var _local2:Number = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].looper();
_local2--;
};
}
public function newGameBtn(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
Tweener.addTween(btn.stars_mc, {x:-170, time:0.4, transition:"easeOutStrong"});
Tweener.addTween(btn.stars_mc, {alpha:1, time:0.4, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(btn.stars_mc, {x:0, time:0.4, transition:"easeOutStrong"});
Tweener.addTween(btn.stars_mc, {alpha:0, time:0.4, transition:"easeOutStrong"});
};
mclck = function (_arg1:MouseEvent){
if (btn == newGame_btn){
trace("why");
if (cbm_so.data.gameDataExist != undefined){
trace("data exist");
gotoAndStop("prelevel");
} else {
trace("no data exist");
LSO_Checker();
gotoAndStop(whereTo);
};
} else {
if (btn == newGamePrompt_mc.yes_btn){
delete cbm_so.data.award1_so;
delete cbm_so.data.award2_so;
delete cbm_so.data.award3_so;
delete cbm_so.data.award4_so;
delete cbm_so.data.award5_so;
delete cbm_so.data.award6_so;
delete cbm_so.data.award7_so;
delete cbm_so.data.award8_so;
delete cbm_so.data.award9_so;
delete cbm_so.data.award10_so;
delete cbm_so.data.award11_so;
delete cbm_so.data.award12_so;
deleteLSO();
LSO_Checker();
gotoAndStop(whereTo);
} else {
if (btn == newGamePrompt_mc.no_btn){
Tweener.addTween(newGamePrompt_mc, {x:-394.4, time:0.4, transition:"easeOutStrong"});
} else {
gotoAndStop(whereTo);
};
};
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function playerCheckHit(_arg1:Array, _arg2:Number){
var _local3:Number = (_arg1.length - 1);
while (_local3 >= 0) {
if (_arg1[_local3].hitBox_mc.hitTestObject(levelContainer_mc.player_mc.hitBox_mc)){
attExplosion(_arg1[_local3]);
redFlash_mc.gotoAndPlay(2);
if (shieldInUse == "yes"){
} else {
lifeNum = (lifeNum - _arg2);
levelContainer_mc.player_mc.flash_mc.gotoAndPlay(2);
screenShake();
trace(("lifeNum- " + lifeNum));
};
if (_arg1 == bossArray){
} else {
_arg1[_local3].destruct("");
};
break;
};
_local3--;
};
}
public function wireEraser(_arg1:MovieClip){
levelContainer_mc.removeChild(_arg1);
}
public function attHealth1(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:Health1 = new Health1(_local1, _local2, 90);
levelContainer_mc.addChild(_local3);
moneyArray.push(_local3);
}
public function attHealth2(){
var _local1:Number = randomGenerator(50, 500);
var _local2:Number = randomGenerator(-50, 0);
var _local3:Health2 = new Health2(_local1, _local2, 90);
levelContainer_mc.addChild(_local3);
moneyArray.push(_local3);
}
public function playStrikeSnd(){
if (music == "on"){
strikeSnd.play();
};
}
public function getChildrenOfTitleAndAnimate(_arg1:DisplayObjectContainer, _arg2:Number):Number{
var _local3:Array = [];
var _local4:Number = _arg2;
var _local5:Number = 0.2;
var _local6:uint;
while (_local6 < _arg1.numChildren) {
_local4 = (_local4 + _local5);
_local3.push(_arg1.getChildAt(_local6));
_local3[_local6].scaleX = 0;
_local3[_local6].scaleY = 0;
_local3[_local6].rotation = 40;
Tweener.addTween(_local3[_local6], {scaleX:1, scaleY:1, rotation:0, time:1, delay:_local4, transition:"easeOutElastic"});
_local6++;
};
_local4 = 0;
return (_local3.length);
}
public function saveToLSO(){
cbm_so.data.gameDataExist = "true";
cbm_so.data.level_so = level;
cbm_so.data.moneyOverall_so = moneyOverall;
cbm_so.data.killsOveralll_so = killsOverall;
cbm_so.data.selectedWeapon_so = selectedWeapon;
cbm_so.data.selectedEmergencyWeapon_so = selectedEmergencyWeapon;
cbm_so.data.weapon2Availability_so = weapon2Availability;
cbm_so.data.weapon3Availability_so = weapon3Availability;
cbm_so.data.weapon4Availability_so = weapon4Availability;
cbm_so.data.special1Availability_so = special1Availability;
cbm_so.data.special2Availability_so = special2Availability;
cbm_so.data.special3Availability_so = special3Availability;
cbm_so.data.special4Availability_so = special4Availability;
cbm_so.data.special5Availability_so = special5Availability;
cbm_so.data.special6Availability_so = special6Availability;
cbm_so.data.upgrade1Level_so = upgrade1Level;
cbm_so.data.upgrade2Level_so = upgrade2Level;
cbm_so.data.upgrade3Level_so = upgrade3Level;
cbm_so.data.upgrade4Level_so = upgrade4Level;
cbm_so.data.upgrade5Level_so = upgrade5Level;
cbm_so.data.upgrade6Level_so = upgrade6Level;
cbm_so.data.upgrade1_price_so = upgrade1_price;
cbm_so.data.upgrade2_price_so = upgrade2_price;
cbm_so.data.upgrade3_price_so = upgrade3_price;
cbm_so.data.upgrade4_price_so = upgrade4_price;
cbm_so.data.upgrade5_price_so = upgrade5_price;
cbm_so.data.upgrade6_price_so = upgrade6_price;
cbm_so.data.emergency1Availability_so = emergency1Availability;
cbm_so.data.emergency2Availability_so = emergency2Availability;
cbm_so.data.emergency3Availability_so = emergency3Availability;
cbm_so.flush();
}
public function playBossWarningSnd(){
if (music == "on"){
bossWarningSnd.play();
};
}
public function attWeaponPrompt(_arg1:MovieClip){
playAcquireSnd();
var _local2:WeaponPrompt = new WeaponPrompt();
if ((_arg1 is PickupWeapon1)){
_local2.display_mc.gotoAndStop(1);
} else {
if ((_arg1 is PickupWeapon2)){
_local2.display_mc.gotoAndStop(2);
} else {
if ((_arg1 is PickupWeapon3)){
_local2.display_mc.gotoAndStop(3);
} else {
if ((_arg1 is PickupWeapon4)){
_local2.display_mc.gotoAndStop(4);
} else {
if ((_arg1 is SpecialRecharge)){
_local2.display_mc.gotoAndStop(5);
};
};
};
};
};
_local2.x = 200;
_local2.y = 350;
levelContainer_mc.addChild(_local2);
}
public function button1Pressed(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 41
//mc_arrowLeftShop_155 (ComicBookMovie_Nowgamez_v2a_fla.mc_arrowLeftShop_155)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_arrowLeftShop_155 extends MovieClip {
public var main:MovieClip;
public function mc_arrowLeftShop_155(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
}
public function mDown(_arg1:MouseEvent){
main.panelCode--;
if (main.panelCode < 1){
main.panelCode = 1;
};
main.panelToShow();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 42
//mc_arrowRightShop_156 (ComicBookMovie_Nowgamez_v2a_fla.mc_arrowRightShop_156)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_arrowRightShop_156 extends MovieClip {
public var hitTest_mc:MovieClip;
public var main:MovieClip;
public function mc_arrowRightShop_156(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
}
public function mDown(_arg1:MouseEvent){
main.panelCode++;
if (main.panelCode > 4){
main.panelCode = 4;
};
main.panelToShow();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 43
//mc_awardIcon_230 (ComicBookMovie_Nowgamez_v2a_fla.mc_awardIcon_230)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_awardIcon_230 extends MovieClip {
public function mc_awardIcon_230(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 44
//mc_boss1Flash_279 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss1Flash_279)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss1Flash_279 extends MovieClip {
public function mc_boss1Flash_279(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 45
//mc_boss2Flash_276 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss2Flash_276)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss2Flash_276 extends MovieClip {
public function mc_boss2Flash_276(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 46
//mc_boss3FLash_273 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss3FLash_273)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss3FLash_273 extends MovieClip {
public function mc_boss3FLash_273(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 47
//mc_boss4Flash_270 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss4Flash_270)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss4Flash_270 extends MovieClip {
public function mc_boss4Flash_270(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 48
//mc_boss5Flash_267 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss5Flash_267)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss5Flash_267 extends MovieClip {
public function mc_boss5Flash_267(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 49
//mc_boss6Flash_263 (ComicBookMovie_Nowgamez_v2a_fla.mc_boss6Flash_263)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_boss6Flash_263 extends MovieClip {
public function mc_boss6Flash_263(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 50
//mc_bossBio_251 (ComicBookMovie_Nowgamez_v2a_fla.mc_bossBio_251)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_bossBio_251 extends MovieClip {
public function mc_bossBio_251(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 51
//mc_charactersWillAppear_250 (ComicBookMovie_Nowgamez_v2a_fla.mc_charactersWillAppear_250)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_charactersWillAppear_250 extends MovieClip {
public function mc_charactersWillAppear_250(){
addFrameScript(172, frame173);
}
function frame173(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 52
//mc_coinAnimation_260 (ComicBookMovie_Nowgamez_v2a_fla.mc_coinAnimation_260)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_coinAnimation_260 extends MovieClip {
public function mc_coinAnimation_260(){
addFrameScript(0, frame1, 139, frame140);
}
function frame140(){
stop();
}
function frame1(){
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 53
//mc_currentPanelIndicator_157 (ComicBookMovie_Nowgamez_v2a_fla.mc_currentPanelIndicator_157)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_currentPanelIndicator_157 extends MovieClip {
public function mc_currentPanelIndicator_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 54
//mc_display_257 (ComicBookMovie_Nowgamez_v2a_fla.mc_display_257)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_display_257 extends MovieClip {
public function mc_display_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 55
//mc_e10Flash_320 (ComicBookMovie_Nowgamez_v2a_fla.mc_e10Flash_320)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e10Flash_320 extends MovieClip {
public function mc_e10Flash_320(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 56
//mc_e11Flash_322 (ComicBookMovie_Nowgamez_v2a_fla.mc_e11Flash_322)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e11Flash_322 extends MovieClip {
public function mc_e11Flash_322(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 57
//mc_e12Flash_326 (ComicBookMovie_Nowgamez_v2a_fla.mc_e12Flash_326)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e12Flash_326 extends MovieClip {
public function mc_e12Flash_326(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 58
//mc_e13Flash_324 (ComicBookMovie_Nowgamez_v2a_fla.mc_e13Flash_324)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e13Flash_324 extends MovieClip {
public function mc_e13Flash_324(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 59
//mc_e14Flash_328 (ComicBookMovie_Nowgamez_v2a_fla.mc_e14Flash_328)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e14Flash_328 extends MovieClip {
public function mc_e14Flash_328(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 60
//mc_e15Flash_330 (ComicBookMovie_Nowgamez_v2a_fla.mc_e15Flash_330)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e15Flash_330 extends MovieClip {
public function mc_e15Flash_330(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 61
//mc_E1Flash_303 (ComicBookMovie_Nowgamez_v2a_fla.mc_E1Flash_303)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_E1Flash_303 extends MovieClip {
public function mc_E1Flash_303(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 62
//mc_e2Flash_306 (ComicBookMovie_Nowgamez_v2a_fla.mc_e2Flash_306)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e2Flash_306 extends MovieClip {
public function mc_e2Flash_306(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 63
//mc_e3Flash_308 (ComicBookMovie_Nowgamez_v2a_fla.mc_e3Flash_308)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e3Flash_308 extends MovieClip {
public function mc_e3Flash_308(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 64
//mc_e4FLash_338 (ComicBookMovie_Nowgamez_v2a_fla.mc_e4FLash_338)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e4FLash_338 extends MovieClip {
public function mc_e4FLash_338(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 65
//mc_e5Flash_310 (ComicBookMovie_Nowgamez_v2a_fla.mc_e5Flash_310)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e5Flash_310 extends MovieClip {
public function mc_e5Flash_310(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 66
//mc_e6Flash_312 (ComicBookMovie_Nowgamez_v2a_fla.mc_e6Flash_312)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e6Flash_312 extends MovieClip {
public function mc_e6Flash_312(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 67
//mc_e7Flash_314 (ComicBookMovie_Nowgamez_v2a_fla.mc_e7Flash_314)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e7Flash_314 extends MovieClip {
public function mc_e7Flash_314(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 68
//mc_e8Flash_316 (ComicBookMovie_Nowgamez_v2a_fla.mc_e8Flash_316)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e8Flash_316 extends MovieClip {
public function mc_e8Flash_316(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 69
//mc_e9Flash_318 (ComicBookMovie_Nowgamez_v2a_fla.mc_e9Flash_318)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_e9Flash_318 extends MovieClip {
public function mc_e9Flash_318(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 70
//mc_electricCharge_304 (ComicBookMovie_Nowgamez_v2a_fla.mc_electricCharge_304)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_electricCharge_304 extends MovieClip {
public function mc_electricCharge_304(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndPlay(2);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 71
//mc_EmergencyItemUI_186 (ComicBookMovie_Nowgamez_v2a_fla.mc_EmergencyItemUI_186)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_EmergencyItemUI_186 extends MovieClip {
public var electricCharge_mc:MovieClip;
public var special5UIContainer_mc:MovieClip;
public function mc_EmergencyItemUI_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 72
//mc_empCharging_175 (ComicBookMovie_Nowgamez_v2a_fla.mc_empCharging_175)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_empCharging_175 extends MovieClip {
public function mc_empCharging_175(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
MovieClip(parent.parent.parent).attEmegencyItem2();
MovieClip(parent.parent.parent).whiteFlash_mc.gotoAndPlay(2);
gotoAndPlay(1);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 73
//mc_fader_102 (ComicBookMovie_Nowgamez_v2a_fla.mc_fader_102)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_fader_102 extends MovieClip {
public function mc_fader_102(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 74
//mc_forceField_174 (ComicBookMovie_Nowgamez_v2a_fla.mc_forceField_174)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_forceField_174 extends MovieClip {
public function mc_forceField_174(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 75
//mc_heroPunchSplash_40 (ComicBookMovie_Nowgamez_v2a_fla.mc_heroPunchSplash_40)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class mc_heroPunchSplash_40 extends MovieClip {
public function mc_heroPunchSplash_40(){
addFrameScript(0, frame1, 120, frame121);
}
public function navBtn(_arg1:MovieClip, _arg2:String){
var mOver:Function;
var mOut:Function;
var klik:Function;
var btn = _arg1;
var whereTo = _arg2;
mOver = function (_arg1:MouseEvent){
};
mOut = function (_arg1:MouseEvent){
};
klik = function (_arg1:MouseEvent){
var _local2:String = String("http://www.heropunch.com");
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, mOver);
btn.addEventListener(MouseEvent.MOUSE_OUT, mOut);
btn.addEventListener(MouseEvent.CLICK, klik);
}
function frame121(){
stop();
MovieClip(parent).gotoAndPlay(2);
}
function frame1(){
navBtn(this, "reset");
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 76
//mc_laserWireElectricCurrentBig_264 (ComicBookMovie_Nowgamez_v2a_fla.mc_laserWireElectricCurrentBig_264)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_laserWireElectricCurrentBig_264 extends MovieClip {
public function mc_laserWireElectricCurrentBig_264(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndPlay(2);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 77
//mc_mutSprite_83 (ComicBookMovie_Nowgamez_v2a_fla.mc_mutSprite_83)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_mutSprite_83 extends MovieClip {
public function mc_mutSprite_83(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 78
//mc_outroStoryContainer_242 (ComicBookMovie_Nowgamez_v2a_fla.mc_outroStoryContainer_242)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_outroStoryContainer_242 extends MovieClip {
public function mc_outroStoryContainer_242(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
MovieClip(parent).gotoAndStop("title");
}
function frame1(){
MovieClip(parent).playOutroSnd();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 79
//mc_pickDisplay_255 (ComicBookMovie_Nowgamez_v2a_fla.mc_pickDisplay_255)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_pickDisplay_255 extends MovieClip {
public function mc_pickDisplay_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 80
//mc_playerFlash_172 (ComicBookMovie_Nowgamez_v2a_fla.mc_playerFlash_172)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_playerFlash_172 extends MovieClip {
public function mc_playerFlash_172(){
addFrameScript(0, frame1, 4, frame5);
}
function frame5(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 81
//mc_playerSprite_171 (ComicBookMovie_Nowgamez_v2a_fla.mc_playerSprite_171)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_playerSprite_171 extends MovieClip {
public function mc_playerSprite_171(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 82
//mc_promptAwardIcon_253 (ComicBookMovie_Nowgamez_v2a_fla.mc_promptAwardIcon_253)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_promptAwardIcon_253 extends MovieClip {
public function mc_promptAwardIcon_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 83
//mc_redFlash_196 (ComicBookMovie_Nowgamez_v2a_fla.mc_redFlash_196)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_redFlash_196 extends MovieClip {
public function mc_redFlash_196(){
addFrameScript(0, frame1, 7, frame8);
}
function frame8(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 84
//mc_scene1_prologue_42 (ComicBookMovie_Nowgamez_v2a_fla.mc_scene1_prologue_42)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_scene1_prologue_42 extends MovieClip {
public function mc_scene1_prologue_42(){
addFrameScript(196, frame197);
}
function frame197(){
stop();
MovieClip(parent).nextFrame();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 85
//mc_scene2_prologue_51 (ComicBookMovie_Nowgamez_v2a_fla.mc_scene2_prologue_51)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_scene2_prologue_51 extends MovieClip {
public function mc_scene2_prologue_51(){
addFrameScript(885, frame886);
}
function frame886(){
stop();
MovieClip(parent).nextFrame();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 86
//mc_scene3_prologue_53 (ComicBookMovie_Nowgamez_v2a_fla.mc_scene3_prologue_53)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_scene3_prologue_53 extends MovieClip {
public function mc_scene3_prologue_53(){
addFrameScript(16, frame17, 34, frame35, 484, frame485);
}
function frame17(){
MovieClip(root).playBrixEntrance();
}
function frame485(){
stop();
MovieClip(parent).nextFrame();
}
function frame35(){
MovieClip(root).playSndStory2();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 87
//mc_scene4_prologue_56 (ComicBookMovie_Nowgamez_v2a_fla.mc_scene4_prologue_56)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_scene4_prologue_56 extends MovieClip {
public function mc_scene4_prologue_56(){
addFrameScript(129, frame130);
}
function frame130(){
stop();
MovieClip(parent).nextFrame();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 88
//mc_scene5_prologue_57 (ComicBookMovie_Nowgamez_v2a_fla.mc_scene5_prologue_57)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_scene5_prologue_57 extends MovieClip {
public var flame_mc:MovieClip;
public function mc_scene5_prologue_57(){
addFrameScript(210, frame211);
}
function frame211(){
stop();
MovieClip(root).gotoAndPlay(2);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 89
//mc_shieldGfx_141 (ComicBookMovie_Nowgamez_v2a_fla.mc_shieldGfx_141)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_shieldGfx_141 extends MovieClip {
public function mc_shieldGfx_141(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndPlay(2);
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 90
//mc_special1UIContainer_181 (ComicBookMovie_Nowgamez_v2a_fla.mc_special1UIContainer_181)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_special1UIContainer_181 extends MovieClip {
public function mc_special1UIContainer_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 91
//mc_special3UIContainer_182 (ComicBookMovie_Nowgamez_v2a_fla.mc_special3UIContainer_182)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_special3UIContainer_182 extends MovieClip {
public function mc_special3UIContainer_182(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 92
//mc_special4UIContainer_183 (ComicBookMovie_Nowgamez_v2a_fla.mc_special4UIContainer_183)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_special4UIContainer_183 extends MovieClip {
public function mc_special4UIContainer_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 93
//mc_special5UIContainer_184 (ComicBookMovie_Nowgamez_v2a_fla.mc_special5UIContainer_184)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_special5UIContainer_184 extends MovieClip {
public function mc_special5UIContainer_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 94
//mc_storyBorder_prologue_48 (ComicBookMovie_Nowgamez_v2a_fla.mc_storyBorder_prologue_48)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_storyBorder_prologue_48 extends MovieClip {
public function mc_storyBorder_prologue_48(){
addFrameScript(0, frame1);
}
function frame1(){
alpha = 0;
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 95
//mc_storyContainer_prologue_41 (ComicBookMovie_Nowgamez_v2a_fla.mc_storyContainer_prologue_41)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mc_storyContainer_prologue_41 extends MovieClip {
public function mc_storyContainer_prologue_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
MovieClip(root).playSndStory1();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 96
//mc_systemMapLoc_161 (ComicBookMovie_Nowgamez_v2a_fla.mc_systemMapLoc_161)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_systemMapLoc_161 extends MovieClip {
public function mc_systemMapLoc_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 97
//mc_whiteFlash_195 (ComicBookMovie_Nowgamez_v2a_fla.mc_whiteFlash_195)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class mc_whiteFlash_195 extends MovieClip {
public function mc_whiteFlash_195(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
this.gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 98
//new_loaderbar_1 (ComicBookMovie_Nowgamez_v2a_fla.new_loaderbar_1)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class new_loaderbar_1 extends MovieClip {
public function new_loaderbar_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 99
//patchcopy_14 (ComicBookMovie_Nowgamez_v2a_fla.patchcopy_14)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class patchcopy_14 extends MovieClip {
public function patchcopy_14(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 100
//Playbt_18 (ComicBookMovie_Nowgamez_v2a_fla.Playbt_18)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class Playbt_18 extends MovieClip {
public function Playbt_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 101
//sprite500_34 (ComicBookMovie_Nowgamez_v2a_fla.sprite500_34)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class sprite500_34 extends MovieClip {
public function sprite500_34(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 102
//Symbol1_38 (ComicBookMovie_Nowgamez_v2a_fla.Symbol1_38)
package ComicBookMovie_Nowgamez_v2a_fla {
import flash.display.*;
public dynamic class Symbol1_38 extends MovieClip {
public function Symbol1_38(){
addFrameScript(97, frame98);
}
function frame98(){
stop();
}
}
}//package ComicBookMovie_Nowgamez_v2a_fla
Section 103
//MouseWheel (ru.etcs.ui.MouseWheel)
package ru.etcs.ui {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.errors.*;
public final class MouseWheel {
private static const _bytes:ByteArray = new ByteArray();
private static const _dataPart0:Array = new Array(1180128009, 671154176, 2013267295, 4000, 7937, 0x441100, 67, 50331647, 1057226240, 34908, 589932, 1660963951, 1667329091, 1869508197, 1668573551, 1845521507);
private static const _dataPart1:Array = new Array(6516590, 1852138356, 6513008, 1953854053, 5074805, 1935999073, 1684294761, 1937007982, 1701970034, 1701670774, 1699506547, 1952804453, 1912631150, 1299150195, 1700227173, 1701576854, 218105856, 100663296, 0, 524608, 496371968, 134350593, 8, 1873410, 525138, 395706880, 134225046, 33556484, 2383347712, 16778025, 161377, 1819632896, 939562498, 262674, 2634154009, 0x960900, 67176193, 8, 85759490, 525906, 395903488, 335582729, 262407, 16777216, 134552726, 33556487, 1377259414, 33556488, 2600796160, 0, 496371968, 83953409, 8, 1873410, 525394, 385892352);
private static const _connection:LocalConnection = new LocalConnection();
private static var _complete:Boolean = false;
private static var _loader:Loader;
private static var _captured:Boolean = false;
private static var _connectionID:uint;
public function MouseWheel(){
throw (new IllegalOperationError("do not instantiate MouseWheel"));
}
public static function capture():void{
var _local1:uint;
var _local2:ByteArray;
var _local3:Array;
var _local4:uint;
var _local5:uint;
if (MouseWheel._captured){
return;
};
if (!MouseWheel._bytes.length){
_local1 = Math.round((Math.random() * 100000));
while (_local1 < 10000) {
_local1 = Math.round((Math.random() * 100000));
};
MouseWheel._connectionID = _local1;
_local2 = MouseWheel._bytes;
_local3 = MouseWheel._dataPart0;
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
_local2.writeUnsignedInt(_local3[_local5]);
_local5++;
};
_local2.writeUTFBytes(("_" + MouseWheel._connectionID.toString()));
_local3 = MouseWheel._dataPart1;
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
_local2.writeUnsignedInt(_local3[_local5]);
_local5++;
};
_local2.writeShort(0);
};
MouseWheel._connection.addEventListener(StatusEvent.STATUS, MouseWheel.handler_status);
MouseWheel._connection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, MouseWheel.handler_asyncError);
MouseWheel._captured = true;
if (MouseWheel._loader){
MouseWheel.send();
} else {
MouseWheel._loader = new Loader();
MouseWheel._loader.loadBytes(MouseWheel._bytes);
MouseWheel._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, MouseWheel.handler_complete);
};
}
private static function handler_status(_arg1:StatusEvent):void{
if (_arg1.level == "error"){
MouseWheel.send();
};
}
public static function release():void{
if (!MouseWheel._captured){
return;
};
MouseWheel._captured = false;
MouseWheel.send();
}
private static function send(_arg1:Event=null):void{
if (!MouseWheel._complete){
return;
};
MouseWheel._connection.send(("lc_" + MouseWheel._connectionID), "capture", MouseWheel._captured);
}
private static function handler_asyncError(_arg1:AsyncErrorEvent):void{
}
private static function handler_complete(_arg1:Event):void{
MouseWheel._complete = true;
if (!MouseWheel._captured){
MouseWheel.send();
};
}
public static function get captured():Boolean{
return (MouseWheel._captured);
}
}
}//package ru.etcs.ui
Section 104
//AcquireSnd (AcquireSnd)
package {
import flash.media.*;
public dynamic class AcquireSnd extends Sound {
}
}//package
Section 105
//AwardPrompt (AwardPrompt)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.errors.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class AwardPrompt extends MovieClip {
public var icon_mc:MovieClip;
public var name_txt:TextField;
public function AwardPrompt(){
addFrameScript(0, frame1);
}
public function _goToPlayer(){
Tweener.addTween(this, {x:600, time:1, onComplete:_disappear, transition:"easeInBack"});
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
MovieClip(parent.parent).playAwardSnd();
this.scaleX = 0;
this.scaleY = 0;
this.rotation = 270;
Tweener.addTween(this, {scaleX:1, scaleY:1, time:1, onComplete:_goToPlayer, transition:"easeOutElastic"});
icon_mc.alpha = 0;
}
}
}//package
Section 106
//AwardSnd (AwardSnd)
package {
import flash.media.*;
public dynamic class AwardSnd extends Sound {
}
}//package
Section 107
//BlasterSnd (BlasterSnd)
package {
import flash.media.*;
public dynamic class BlasterSnd extends Sound {
}
}//package
Section 108
//Boss1 (Boss1)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss1 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
public var lifeDenom:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xSpd:Number;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Boss1(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 2000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
}
}//package
Section 109
//Boss2 (Boss2)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss2 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
public var lifeDenom:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var movCount:Number;// = 0
private var shootCounter:Number;// = 10
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xSpd:Number;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Boss2(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 3000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
movCount++;
if (movCount == 1){
Tweener.addTween(this, {x:randomGenerator(50, 52), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
Tweener.addTween(this, {x:randomGenerator(498, 500), y:randomGenerator(50, 150), time:2, transition:"linear"});
};
if (movCount > 2){
movCount = 0;
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
shootCounter--;
if (shootCounter <= 0){
MovieClip(parent.parent).attEnemyAmmo1(this);
shootCounter = 30;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
}
}//package
Section 110
//Boss3 (Boss3)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss3 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var shootCounter2:Number;// = 60
public var target:MovieClip;
private var minXpos:Number;
public var lifeDenom:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var movCount:Number;// = 0
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xSpd:Number;
private var shootCounter1:Number;// = 10
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Boss3(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 4000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
movCount++;
if (movCount == 1){
Tweener.addTween(this, {x:randomGenerator(50, 52), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 2){
Tweener.addTween(this, {x:randomGenerator(520, 525), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 3){
Tweener.addTween(this, {x:randomGenerator(520, 525), y:randomGenerator(300, 320), time:2, transition:"linear"});
} else {
if (movCount == 4){
Tweener.addTween(this, {x:randomGenerator(50, 52), y:randomGenerator(300, 320), time:2, transition:"linear"});
};
};
};
};
if (movCount > 4){
movCount = 0;
};
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
shootCounter1--;
if (shootCounter1 <= 0){
MovieClip(parent.parent).attEnemyAmmo1(this);
shootCounter1 = 30;
};
shootCounter2--;
if (shootCounter2 <= 0){
MovieClip(parent.parent).attEnemyAmmo6(this);
shootCounter2 = 60;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
}
}//package
Section 111
//Boss4 (Boss4)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss4 extends MovieClip {
public var life:Number;
public var lifeDenom:Number;
public var target:MovieClip;
private var xSpd:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var spd:Number;
public var drawingLine:MovieClip;
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var minXpos:Number;
private var movCount:Number;// = 0
private var maxXpos:Number;
private var shootTimer:Timer;
public var electricCharge_mc:MovieClip;
private var shootCounter1:Number;// = 10
private var shootCounter2:Number;// = 60
private var shootCounter3:Number;// = 100
private var xDir:String;
public var hitBox_mc:MovieClip;
public function Boss4(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 6000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
movCount++;
if (movCount == 4){
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(450, 500), time:2, transition:"linear"});
} else {
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
};
if (movCount > 5){
movCount = 0;
};
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
shootCounter1--;
if (shootCounter1 <= 0){
MovieClip(parent.parent).attEnemyAmmo1(this);
shootCounter1 = 30;
};
shootCounter2--;
if (shootCounter2 <= 0){
MovieClip(parent.parent).attEnemyAmmo6(this);
shootCounter2 = 60;
};
shootCounter3--;
if (shootCounter3 <= 0){
MovieClip(parent.parent).attEnemy11(2);
shootCounter3 = 100;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 112
//Boss5 (Boss5)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss5 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var shootCounter2:Number;// = 60
public var target:MovieClip;
private var minXpos:Number;
public var lifeDenom:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xSpd:Number;
private var shootCounter1:Number;// = 10
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Boss5(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 8000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
shootCounter1--;
if (shootCounter1 <= 0){
MovieClip(parent.parent).attEnemyAmmo1(this);
shootCounter1 = 30;
};
shootCounter2--;
if (shootCounter2 <= 0){
MovieClip(parent.parent).attEnemyAmmo6(this);
shootCounter2 = 60;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
}
}//package
Section 113
//Boss6 (Boss6)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Boss6 extends MovieClip {
public var life:Number;
public var lifeDenom:Number;
public var target:MovieClip;
private var xSpd:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var spd:Number;
public var drawingLine:MovieClip;
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var minXpos:Number;
private var movCount:Number;// = 0
private var maxXpos:Number;
private var shootTimer:Timer;
public var electricCharge_mc:MovieClip;
private var shootCounter1:Number;// = 10
private var shootCounter2:Number;// = 60
private var shootCounter3:Number;// = 100
private var xDir:String;
public var hitBox_mc:MovieClip;
public function Boss6(){
drawingLine = new MovieClip();
movTimer = new Timer(1000, 0);
super();
life = 10000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
movCount++;
if (movCount == 1){
Tweener.addTween(this, {x:randomGenerator(50, 100), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 2){
Tweener.addTween(this, {x:randomGenerator(400, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 3){
Tweener.addTween(this, {x:randomGenerator(50, 100), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 4){
Tweener.addTween(this, {x:randomGenerator(400, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 5){
Tweener.addTween(this, {x:randomGenerator(50, 100), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 6){
Tweener.addTween(this, {x:randomGenerator(400, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
} else {
if (movCount == 10){
Tweener.addTween(this, {x:randomGenerator(400, 450), y:randomGenerator(400, 450), time:2, transition:"linear"});
} else {
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:2, transition:"linear"});
};
};
};
};
};
};
};
if (movCount > 11){
movCount = 0;
};
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){
} else {
MovieClip(parent.parent).attEnemyAmmo3(this);
};
};
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).countLevelKills();
MovieClip(parent.parent).attBossExplosion(this);
destruct("hit");
} else {
MovieClip(parent.parent).BossLifeUIContainer_mc.lifeBar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
};
shootCounter1--;
if (shootCounter1 <= 0){
MovieClip(parent.parent).attEnemyAmmo1(this);
shootCounter1 = 30;
};
shootCounter2--;
if (shootCounter2 <= 0){
MovieClip(parent.parent).attEnemyAmmo6(this);
shootCounter2 = 60;
};
shootCounter3--;
if (shootCounter3 <= 0){
MovieClip(parent.parent).attEnemy11(2);
shootCounter3 = 100;
};
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 114
//BossSnd (BossSnd)
package {
import flash.media.*;
public dynamic class BossSnd extends Sound {
}
}//package
Section 115
//BossWarningPrompter (BossWarningPrompter)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public dynamic class BossWarningPrompter extends MovieClip {
public var bossIncomingText_mc:MovieClip;
public var i:Number;
public var timer:Timer;
public function BossWarningPrompter(){
addFrameScript(0, frame1);
}
public function removeMe(_arg1:TimerEvent){
MovieClip(parent).removeChild(this);
}
public function blinkMe(_arg1:TimerEvent){
i++;
if ((((((((i == 1)) || ((i == 3)))) || ((i == 5)))) || ((i == 7)))){
bossIncomingText_mc.alpha = 0;
} else {
bossIncomingText_mc.alpha = 1;
};
}
function frame1(){
i = 0;
timer = new Timer(500, 8);
timer.addEventListener(TimerEvent.TIMER, blinkMe);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, removeMe);
timer.start();
this.rotation = 270;
}
}
}//package
Section 116
//BossWarningSnd (BossWarningSnd)
package {
import flash.media.*;
public dynamic class BossWarningSnd extends Sound {
}
}//package
Section 117
//BrixEntrance (BrixEntrance)
package {
import flash.media.*;
public dynamic class BrixEntrance extends Sound {
}
}//package
Section 118
//BtnClickSnd (BtnClickSnd)
package {
import flash.media.*;
public dynamic class BtnClickSnd extends Sound {
}
}//package
Section 119
//BtnHoverSnd (BtnHoverSnd)
package {
import flash.media.*;
public dynamic class BtnHoverSnd extends Sound {
}
}//package
Section 120
//BuySnd (BuySnd)
package {
import flash.media.*;
public dynamic class BuySnd extends Sound {
}
}//package
Section 121
//Coin (Coin)
package {
import flash.events.*;
import flash.display.*;
public class Coin extends MovieClip {
public var hitBox_mc:MovieClip;
public var speed:int;
public var xSpd:Number;
public var angle:Number;
public var _angle:Number;
public var a_x:Number;
public var a_y:Number;
public var spd:Number;
public var ySpd:Number;
public var animation_mc:MovieClip;
public var followSpd:Number;
public var main:MovieClip;
public var pointer:Number;// = 0
public function Coin(_arg1:Number, _arg2:Number, _arg3:Number){
addFrameScript(0, frame1);
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (this.animation_mc.currentFrame == 140){
destruct("");
} else {
if (MovieClip(parent.parent).levelContainer_mc.player_mc.hitBox_mc.hitTestObject(this.hitBox_mc)){
this.stop();
MovieClip(parent.parent).playCrystalSnd();
MovieClip(parent.parent).money_levels++;
destruct("");
} else {
if (this.y > 600){
this.stop();
destruct("");
} else {
if (calDist(this.x, this.y, main.levelContainer_mc.player_mc.x, main.levelContainer_mc.player_mc.y) < MovieClip(parent.parent).magnetRange){
changeDirection();
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
} else {
angle = ((90 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
};
};
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).moneyArray, this);
}
public function init(){
followSpd = 8;
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = ((_arg1 - _arg3) * (_arg1 - _arg3));
var _local6:Number = ((_arg2 - _arg4) * (_arg2 - _arg4));
var _local7:Number = Math.sqrt((_local5 + _local6));
return (_local7);
}
function frame1(){
stop();
animation_mc.gotoAndPlay(randomGenerator(2, 15));
}
public function changeDirection(){
pointTowardPlayer(MovieClip(parent).player_mc);
angle = ((MovieClip(this).rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * followSpd);
ySpd = (Math.sin(angle) * followSpd);
}
public function pointTowardPlayer(_arg1:MovieClip){
a_x = (_arg1.x - this.x);
a_y = (_arg1.y - this.y);
_angle = ((180 * Math.atan2(a_y, a_x)) / Math.PI);
pointer = _angle;
this.rotation = pointer;
}
}
}//package
Section 122
//CrystalSnd (CrystalSnd)
package {
import flash.media.*;
public dynamic class CrystalSnd extends Sound {
}
}//package
Section 123
//Earthquake (Earthquake)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Earthquake {
private static const FRAME_RATE:int = 30;
private static var timer:Timer;
private static var originalX:int;
private static var originalY:int;
private static var intensityOffset:int;
private static var intensity:int;
private static var image:DisplayObject;
private static function cleanup():void{
timer = null;
image = null;
}
public static function go(_arg1:DisplayObject, _arg2:Number=10, _arg3:Number=1):void{
if (timer){
timer.stop();
};
image = _arg1;
originalX = 0;
originalY = 0;
intensity = _arg2;
intensityOffset = (intensity / 2);
var _local4:int = int((1000 / FRAME_RATE));
var _local5:int = int(((_arg3 * 1000) / _local4));
timer = new Timer(_local4, _local5);
timer.addEventListener(TimerEvent.TIMER, quake);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, resetImage);
timer.start();
}
public static function temp():void{
}
private static function quake(_arg1:TimerEvent):void{
var _local2:int = ((originalX + (Math.random() * intensity)) - intensityOffset);
var _local3:int = ((originalY + (Math.random() * intensity)) - intensityOffset);
image.x = _local2;
image.y = _local3;
}
private static function resetImage(_arg1:TimerEvent=null):void{
image.x = originalX;
image.y = originalY;
cleanup();
}
}
}//package
Section 124
//EmergencyItem3 (EmergencyItem3)
package {
import flash.events.*;
import flash.display.*;
public class EmergencyItem3 extends MovieClip {
public var yLimit:Number;
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EmergencyItem3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
yLimit = randomGenerator(60, 355);
trace(("ylimit" + yLimit));
init();
}
public function explode(){
var _local3:EmergencyItem3a;
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < 12) {
_local1 = (_local1 + 30);
_local3 = new EmergencyItem3a(this.x, this.y, _local1);
MovieClip(parent).addChild(_local3);
MovieClip(parent.parent).emergencyItem3aArray.push(_local3);
_local2++;
};
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).emergencyItem3Array, this);
}
public function looper(){
if (this.y < yLimit){
explode();
destruct("");
} else {
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
}
}//package
Section 125
//EmergencyItem3a (EmergencyItem3a)
package {
import flash.events.*;
import flash.display.*;
public class EmergencyItem3a extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EmergencyItem3a(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).emergencyItem3aArray, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 126
//Enemy1 (Enemy1)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy1 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy1(){
drawingLine = new MovieClip();
super();
life = 20;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.x < minXpos){
xDir = "right";
} else {
if (this.x > maxXpos){
xDir = "left";
};
};
if (xDir == "left"){
xSpd = ((Math.random() * (2 - 1)) + 1);
this.x = (this.x - xSpd);
} else {
if (xDir == "right"){
xSpd = ((Math.random() * (2 - 1)) + 1);
this.x = (this.x + xSpd);
};
};
this.y = (this.y + spd);
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((main.lifeNum <= 0)){
};
};
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 127
//Enemy10 (Enemy10)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy10 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy10(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
if (_animationSet == 1){
Tweener.addTween(this, {y:50, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 2){
Tweener.addTween(this, {y:75, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 3){
Tweener.addTween(this, {y:100, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 4){
Tweener.addTween(this, {y:150, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
};
};
};
};
}
private function shoot2(){
main.attEnemyAmmo6(this);
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo6(this);
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 128
//Enemy11 (Enemy11)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy11 extends MovieClip {
public var main:MovieClip;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var dir:Point;
public var target:MovieClip;
public var angle:Number;
public var xSpd:Number;
public var rot:Number;
public var mc:MovieClip;
public var spd:Number;
public var electricCharge_mc:MovieClip;
public var ySpd:Number;
public var grvty:Number;
public var drawingLine:MovieClip;
public var life:Number;// = 10
public var hitBox_mc:MovieClip;
public function Enemy11(_arg1:Number, _arg2:MovieClip){
drawingLine = new MovieClip();
dir = new Point(0, 0);
super();
mc = mc;
target = _arg2;
this.rotation = _arg1;
init();
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function init(){
spd = 5;
grvty = 0.25;
angle = ((MovieClip(this).rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
var _local1:Point;
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -500)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("");
} else {
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(6, 9));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
this.rotation = ((Math.atan2(dir.y, dir.x) * 180) / Math.PI);
drawWire();
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.removeFromArray(main.enemyArray, this);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 129
//Enemy12 (Enemy12)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy12 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy12(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
Tweener.addTween(this, {y:randomGenerator(50, 100), time:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:2, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:3, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:4, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:3, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"easeInOutStrong"});
}
private function shoot2(){
trace("ENEMY 3 projectile");
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo6(this);
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 130
//Enemy13 (Enemy13)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy13 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var rateOfShoot:Number;
public var origXposition:Number;
private var origYposition:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy13(_arg1:Number){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
origXposition = _arg1;
origYposition = this.y;
if (origXposition < 0){
Tweener.addTween(this, {x:650, time:4, onComplete:destruct, onCompleteParams:[""], transition:"easeInOutStrong"});
} else {
if (origXposition > 500){
Tweener.addTween(this, {x:-10, time:4, onComplete:destruct, onCompleteParams:[""], transition:"easeInOutStrong"});
};
};
Tweener.addTween(this, {y:randomGenerator(100, 250), time:2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:origYposition, time:2, delay:2, transition:"easeInOutStrong"});
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
drawWire();
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo4(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 131
//Enemy14 (Enemy14)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy14 extends MovieClip {
public var main:MovieClip;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
private var dir:Point;
public var target:MovieClip;
public var angle:Number;
public var xSpd:Number;
public var rot:Number;
public var mc:MovieClip;
public var spd:Number;
public var electricCharge_mc:MovieClip;
public var ySpd:Number;
public var grvty:Number;
public var drawingLine:MovieClip;
public var life:Number;// = 10
public var hitBox_mc:MovieClip;
public function Enemy14(_arg1:Number, _arg2:MovieClip){
drawingLine = new MovieClip();
dir = new Point(0, 0);
super();
mc = mc;
target = _arg2;
this.rotation = _arg1;
init();
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function init(){
spd = 5;
grvty = 0.25;
angle = ((MovieClip(this).rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
var _local1:Point;
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -500)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("");
} else {
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(6, 9));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
this.rotation = ((Math.atan2(dir.y, dir.x) * 180) / Math.PI);
drawWire();
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (((Math.random() * _arg2) - _arg1) + _arg1);
return (_local3);
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.removeFromArray(main.enemyArray, this);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 132
//Enemy15 (Enemy15)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy15 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy15(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (6 - 1))) + 1);
xSpd = ((Math.random() * (12 - 8)) + 8);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.x < minXpos){
xDir = "right";
} else {
if (this.x > maxXpos){
xDir = "left";
};
};
if (xDir == "left"){
xSpd = ((Math.random() * (12 - 8)) + 8);
this.x = (this.x - xSpd);
} else {
if (xDir == "right"){
xSpd = ((Math.random() * (12 - 8)) + 8);
this.x = (this.x + xSpd);
};
};
this.y = (this.y + spd);
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo3(this);
};
};
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 133
//Enemy2 (Enemy2)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy2 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var rateOfShoot:Number;
public var origXposition:Number;
private var origYposition:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy2(_arg1:Number){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
origXposition = _arg1;
origYposition = this.y;
if (origXposition < 0){
Tweener.addTween(this, {x:650, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"});
} else {
if (origXposition > 500){
Tweener.addTween(this, {x:-10, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"});
};
};
Tweener.addTween(this, {y:randomGenerator(100, 250), time:2, transition:"linear"});
Tweener.addTween(this, {y:origYposition, time:2, delay:2, transition:"linear"});
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
drawWire();
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo1(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 134
//Enemy3 (Enemy3)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy3 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy3(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1500 - 100))) + 100);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
if (_animationSet == 1){
Tweener.addTween(this, {y:250, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 2){
Tweener.addTween(this, {y:275, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 3){
Tweener.addTween(this, {y:300, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
} else {
if (_animationSet == 4){
Tweener.addTween(this, {y:350, time:2, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"easeInOutStrong"});
};
};
};
};
}
private function shoot2(){
main.attEnemyAmmo4(this);
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
Tweener.removeTweens(this);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 135
//Enemy4 (Enemy4)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy4 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
public var angle:Number;
public var xSpd:Number;
private var rateOfShoot:Number;
private var shootTimer:Timer;
public var spd:Number;
public var electricCharge_mc:MovieClip;
public var ySpd:Number;
public var grvty:Number;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy4(_arg1:Number){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
spd = 8;
grvty = 1;
angle = ((_arg1 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
private function shoot2(){
trace("ENEMY 4 projectile");
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo1(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 136
//Enemy5 (Enemy5)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy5 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy5(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
if (_animationSet == 1){
Tweener.addTween(this, {y:100, time:1, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:1, delay:1, transition:"easeInOutStrong"});
} else {
if (_animationSet == 2){
Tweener.addTween(this, {y:110, time:1, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:1, delay:1, transition:"easeInOutStrong"});
} else {
if (_animationSet == 3){
Tweener.addTween(this, {y:120, time:1, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:1, delay:1, transition:"easeInOutStrong"});
} else {
if (_animationSet == 4){
Tweener.addTween(this, {y:150, time:1, onComplete:shoot2, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:1, delay:1, transition:"easeInOutStrong"});
};
};
};
};
}
private function shoot2(){
main.attEnemyAmmo2(this);
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 137
//Enemy6 (Enemy6)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy6 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy6(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
Tweener.addTween(this, {y:randomGenerator(50, 100), time:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:2, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:3, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:4, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:3, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"easeInOutStrong"});
}
private function shoot2(){
trace("ENEMY 3 projectile");
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 550){
destruct("outBounds");
};
drawWire();
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo1(this);
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 138
//Enemy7 (Enemy7)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy7 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy7(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
if (_animationSet == 1){
Tweener.addTween(this, {y:200, time:2, onComplete:shoot2, transition:"linear"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"linear"});
} else {
if (_animationSet == 2){
Tweener.addTween(this, {y:250, time:2, onComplete:shoot2, transition:"linear"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"linear"});
} else {
if (_animationSet == 3){
Tweener.addTween(this, {y:275, time:2, onComplete:shoot2, transition:"linear"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"linear"});
} else {
if (_animationSet == 4){
Tweener.addTween(this, {y:300, time:2, onComplete:shoot2, transition:"linear"});
Tweener.addTween(this, {y:800, time:2, delay:2, transition:"linear"});
};
};
};
};
}
private function shoot2(){
main.attEnemyAmmo5(this);
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo5(this);
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 139
//Enemy8 (Enemy8)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy8 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var rateOfShoot:Number;
public var origXposition:Number;
private var origYposition:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy8(_arg1:Number){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
origXposition = _arg1;
origYposition = this.y;
if (origXposition < 0){
Tweener.addTween(this, {x:650, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"});
} else {
if (origXposition > 500){
Tweener.addTween(this, {x:-10, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"});
};
};
Tweener.addTween(this, {y:randomGenerator(100, 250), time:2, transition:"linear"});
Tweener.addTween(this, {y:origYposition, time:2, delay:2, transition:"linear"});
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function looper(){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
drawWire();
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo2(this);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
}
}//package
Section 140
//Enemy9 (Enemy9)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy9 extends MovieClip {
public var main:MovieClip;
public var typeOfDestruction:String;
public var wireOn:String;// = "no"
public var flash_mc:MovieClip;
public var target:MovieClip;
private var minXpos:Number;
private var xSpd:Number;
private var rateOfShoot:Number;
private var _animationSet:Number;
private var maxXpos:Number;
private var shootTimer:Timer;
private var spd:Number;
public var electricCharge_mc:MovieClip;
private var xDir:String;
public var drawingLine:MovieClip;
public var life:Number;
public var hitBox_mc:MovieClip;
public function Enemy9(){
drawingLine = new MovieClip();
super();
life = 30;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800);
shootTimer = new Timer(rateOfShoot, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
_animationSet = randomGenerator(1, 5);
Tweener.addTween(this, {y:randomGenerator(50, 100), time:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:1, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:2, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:3, transition:"easeInOutStrong"});
Tweener.addTween(this, {x:randomGenerator(50, 450), y:randomGenerator(50, 150), time:1, delay:4, transition:"easeInOutStrong"});
Tweener.addTween(this, {y:800, time:3, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"easeInOutStrong"});
}
private function shoot2(){
trace("ENEMY 3 projectile");
}
public function initWire(){
electricCharge_mc.gotoAndPlay(2);
MovieClip(parent).addChild(drawingLine);
wireOn = "yes";
}
public function looper(){
if (MovieClip(root).gameRunning == true){
if (life <= 0){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
main.attExplosion(this);
main.attCoin(this);
main.countLevelKills();
destruct("hit");
} else {
if (this.y >= 720){
destruct("outBounds");
};
drawWire();
};
};
}
private function shoot(_arg1:TimerEvent){
if (MovieClip(root).gameRunning == true){
if ((((main.lives <= 0)) && ((main.lifeNumerator <= 0)))){
} else {
main.attEnemyAmmo2(this);
};
};
}
public function destruct(_arg1:String){
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
wireOn = "no";
};
Tweener.removeTweens(this);
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
main.removeFromArray(main.enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function removeWire(){
electricCharge_mc.gotoAndStop(1);
if (wireOn == "yes"){
MovieClip(parent).removeChild(drawingLine);
};
}
function drawWire(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(1, 0xFFFFFF, 0.5);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
var _local5:GlowFilter = new GlowFilter();
_local5.inner = false;
_local5.color = 0xFF0000;
_local5.blurX = 20;
_local5.blurY = 20;
_local5.alpha = 0.8;
drawingLine.filters = [_local5];
}
}
}//package
Section 141
//EnemyAmmo1 (EnemyAmmo1)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo1 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EnemyAmmo1(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo1Array, this);
}
public function looper(){
if ((((((((this.y > 850)) || ((this.x > 850)))) || ((this.y < -300)))) || ((this.x < -300)))){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 6;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 142
//EnemyAmmo2 (EnemyAmmo2)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo2 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EnemyAmmo2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo2Array, this);
}
public function looper(){
if (this.y > 750){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 6;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 143
//EnemyAmmo3 (EnemyAmmo3)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo3 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EnemyAmmo3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo3Array, this);
}
public function looper(){
if ((((((this.x < 0)) || ((this.x > 600)))) || ((this.y > 750)))){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 4;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 144
//EnemyAmmo4 (EnemyAmmo4)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo4 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EnemyAmmo4(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo4Array, this);
}
public function looper(){
if ((((((this.x < 0)) || ((this.x > 600)))) || ((this.y > 750)))){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 4;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 145
//EnemyAmmo5 (EnemyAmmo5)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo5 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function EnemyAmmo5(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo5Array, this);
}
public function looper(){
if ((((((this.x < 0)) || ((this.x > 600)))) || ((this.y > 750)))){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 4;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 146
//EnemyAmmo6 (EnemyAmmo6)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class EnemyAmmo6 extends MovieClip {
private var dir:Point;
public var xSpd:Number;
public var target:MovieClip;
public var angle:Number;
public var mc:MovieClip;
public var rot:Number;
public var spd:Number;
public var ySpd:Number;
public var grvty:Number;
public var main:MovieClip;
public var life:Number;// = 10
public var hitBox_mc:MovieClip;
public function EnemyAmmo6(_arg1:Number, _arg2:MovieClip){
dir = new Point(0, 0);
super();
mc = mc;
target = _arg2;
this.rotation = _arg1;
init();
}
public function init(){
spd = 5;
grvty = 0.25;
angle = ((MovieClip(this).rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
var _local1:Point;
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -50)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).attExplosion(this);
destruct("");
} else {
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(6, 9));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
this.rotation = ((Math.atan2(dir.y, dir.x) * 180) / Math.PI);
};
};
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
}
}//package
Section 147
//ExplodeSnd (ExplodeSnd)
package {
import flash.media.*;
public dynamic class ExplodeSnd extends Sound {
}
}//package
Section 148
//Explosion (Explosion)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.geom.*;
import flash.errors.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Explosion extends MovieClip {
public function Explosion(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).explosionArray, this);
}
}
}//package
Section 149
//FlareSnd (FlareSnd)
package {
import flash.media.*;
public dynamic class FlareSnd extends Sound {
}
}//package
Section 150
//GameScreenSnd (GameScreenSnd)
package {
import flash.media.*;
public dynamic class GameScreenSnd extends Sound {
}
}//package
Section 151
//Health1 (Health1)
package {
import flash.events.*;
import flash.display.*;
public class Health1 extends MovieClip {
public var speed:int;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var ySpd:Number;
public function Health1(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).attHealth1Acquired(this);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).moneyArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (MovieClip(parent.parent).levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
MovieClip(parent.parent).attHealthPrompt(this);
MovieClip(parent.parent).lifeNum = (MovieClip(parent.parent).lifeNum + (MovieClip(parent.parent).lifeDenom * 0.25));
if (MovieClip(parent.parent).lifeNum >= MovieClip(parent.parent).lifeDenom){
MovieClip(parent.parent).lifeNum = MovieClip(parent.parent).lifeDenom;
};
MovieClip(parent.parent).didAcquireHealth = true;
MovieClip(parent.parent).bubbleAnimation(MovieClip(parent.parent).healthSymbol_mc);
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 152
//Health2 (Health2)
package {
import flash.events.*;
import flash.display.*;
public class Health2 extends MovieClip {
public var speed:int;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var ySpd:Number;
public function Health2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).attHealth2Acquired(this);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).moneyArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (MovieClip(parent.parent).levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
MovieClip(parent.parent).attHealthPrompt(this);
MovieClip(parent.parent).lifeNum = MovieClip(parent.parent).lifeDenom;
MovieClip(parent.parent).didAcquireHealth = true;
MovieClip(parent.parent).bubbleAnimation(MovieClip(parent.parent).healthSymbol_mc);
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 153
//HealthPrompt (HealthPrompt)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class HealthPrompt extends MovieClip {
public var display_mc:MovieClip;
public function HealthPrompt(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
Tweener.addTween(this, {scaleX:2, scaleY:2, time:2, transition:"easeOutStrong"});
Tweener.addTween(this, {alpha:0, time:3, onComplete:_disappear, transition:"linear"});
this.rotation = 270;
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
}
}//package
Section 154
//HomingSnd (HomingSnd)
package {
import flash.media.*;
public dynamic class HomingSnd extends Sound {
}
}//package
Section 155
//IntroSnd (IntroSnd)
package {
import flash.media.*;
public dynamic class IntroSnd extends Sound {
}
}//package
Section 156
//LaserSnd (LaserSnd)
package {
import flash.media.*;
public dynamic class LaserSnd extends Sound {
}
}//package
Section 157
//mc_health1Acquired (mc_health1Acquired)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class mc_health1Acquired extends MovieClip {
public function mc_health1Acquired(){
addFrameScript(0, frame1);
}
function frame1(){
Tweener.addTween(this, {scaleX:2.5, scaleY:2.5, time:0.5, transition:"easeInElastic"});
Tweener.addTween(this, {x:1000, scaleX:0.5, scaleY:0.5, delay:0.8, time:0.6, transition:"easeOutBack", onComplete:removeMe});
}
public function removeMe(){
MovieClip(parent).removeChild(this);
}
}
}//package
Section 158
//mc_health2Acquired (mc_health2Acquired)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class mc_health2Acquired extends MovieClip {
public function mc_health2Acquired(){
addFrameScript(0, frame1);
}
function frame1(){
Tweener.addTween(this, {scaleX:2.5, scaleY:2.5, time:0.5, transition:"easeInElastic"});
Tweener.addTween(this, {x:1000, scaleX:0.5, scaleY:0.5, delay:0.8, time:0.6, transition:"easeOutBack", onComplete:removeMe});
}
public function removeMe(){
MovieClip(parent).removeChild(this);
}
}
}//package
Section 159
//mc_shopBG (mc_shopBG)
package {
import flash.display.*;
public dynamic class mc_shopBG extends MovieClip {
}
}//package
Section 160
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 161
//NonGameScreenSnd (NonGameScreenSnd)
package {
import flash.media.*;
public dynamic class NonGameScreenSnd extends Sound {
}
}//package
Section 162
//OutroSnd (OutroSnd)
package {
import flash.media.*;
public dynamic class OutroSnd extends Sound {
}
}//package
Section 163
//PickUpAmmo1 (PickUpAmmo1)
package {
import flash.events.*;
import flash.display.*;
public class PickUpAmmo1 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PickUpAmmo1(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).pickUpAmmo1Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 164
//PickUpAmmo2 (PickUpAmmo2)
package {
import flash.events.*;
import flash.display.*;
public class PickUpAmmo2 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PickUpAmmo2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).pickUpAmmo2Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 165
//PickUpAmmo3 (PickUpAmmo3)
package {
import flash.events.*;
import flash.display.*;
public class PickUpAmmo3 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PickUpAmmo3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).pickUpAmmo3Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 166
//PickUpAmmo4 (PickUpAmmo4)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class PickUpAmmo4 extends MovieClip {
public var life:Number;// = 10
public var norm2:Number;
private var shootInterval:Number;
public var driftDX:Number;// = 0
public var dir:Number;// = 0
public var tangentialAcceleration:Number;// = 0.0174532925199433
public var target:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var mc:MovieClip;
public var vel:Point;
public var rotationalVelocity:Number;// = 0
public var myEnemyArr:Array;
public var maxDist:Number;
public var drawingLine:MovieClip;
public var traction;// = 3
public var main:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var distanceTravelled:Number;// = 0
public var smokeCounter:Number;// = 10
public var speed:Number;// = 0
public var fillThrustSpeed:Number;
private var _dir:Point;
public var thrustSpeed:Number;// = 0
public var pos:Point;
public var mini:MovieClip;
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var shootDist:Number;
public var direksyon_2:Point;
private var shootTimer:Timer;
public var s:Shape;
public var norm1:Number;
public var velMag:Number;
public var myBossArr:Array;
public var hitBox_mc:MovieClip;
public var driftDY:Number;// = 0
public function PickUpAmmo4(_arg1:MovieClip){
fillThrustSpeed = randomGenerator(2, 5);
direksyon_2 = new Point(0, 0);
norm1 = randomGenerator(1, 2);
norm2 = randomGenerator(5, 7);
pos = new Point();
vel = new Point();
mat = new Matrix();
s = new Shape();
drawingLine = new MovieClip();
_dir = new Point(0, 0);
myEnemyArr = new Array();
myBossArr = new Array();
super();
thrustSpeed = fillThrustSpeed;
maxDist = (Math.floor((Math.random() * (200 - 100))) + 100);
shootDist = 300;
pos.x = 250;
pos.y = 250;
vel.x = (Math.PI * 2);
vel.y = (Math.PI * 2);
velMag = 5;
if (myEnemyArr.length == 0){
dir = _arg1.rotation;
this.rotation = (_arg1.rotation + 270);
} else {
if (myBossArr.length == 0){
dir = _arg1.rotation;
this.rotation = (_arg1.rotation + 270);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = ((_arg1 - _arg3) * (_arg1 - _arg3));
var _local6:Number = ((_arg2 - _arg4) * (_arg2 - _arg4));
var _local7:Number = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function turn(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = dir;
_local1 = (_local1 - 90);
_local2 = ((_local1 * Math.PI) / 180);
speed = ((dx * dx) + (dy * dy));
_local3 = Math.cos(_local2);
_local4 = Math.sin(_local2);
_local3 = (_local3 * speed);
_local4 = (_local4 * speed);
_local5 = (thrustSpeed * Math.cos(_local2));
_local6 = (thrustSpeed * Math.sin(_local2));
dx = (dx + _local5);
dy = (dy + _local6);
dx = (dx * drag);
dy = (dy * drag);
}
public function initLine(){
MovieClip(parent).addChild(drawingLine);
}
public function followTarget(_arg1:MovieClip){
var _local2:Point = new Point((_arg1.x - this.x), (_arg1.y - this.y));
_local2.normalize(norm1);
direksyon_2 = direksyon_2.add(_local2);
direksyon_2.normalize(norm2);
var _local3:Number = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local3 + 90);
this.rotation = _local3;
}
public function rotateBody(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number = (_arg1.x - (this.x + _arg2.x));
var _local4:Number = (_arg1.y - (this.y + _arg2.y));
var _local5:Number = ((180 * Math.atan2(_local4, _local3)) / Math.PI);
_arg2.rotation = _local5;
}
public function shoot(_arg1:TimerEvent){
if (calDist(this.x, this.y, target.x, target.y) <= shootDist){
MovieClip(parent.parent).attEnemyAmmo1(this);
};
}
public function destruct(_arg1:String){
main.removeFromArray(main.pickUpAmmo4Array, this);
}
function drwLine(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(3);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
}
function movMinimapElement(){
mini.x = (this.x * 0.1);
mini.y = (this.y * 0.1);
}
public function looper(){
if (life <= 0){
destruct("");
} else {
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -50)))) || ((this.y > 750)))){
destruct("");
} else {
smokeCounter--;
if (smokeCounter <= 0){
smokeCounter = 10;
};
whichEnemyToEngage();
turn();
Move();
};
};
}
public function whichEnemyToEngage(){
var _local1:Number;
var _local2:Object;
var _local3:Number;
var _local4:Object;
if (MovieClip(parent.parent).enemyArray.length > 0){
_local1 = 0;
while (_local1 < MovieClip(parent.parent).enemyArray.length) {
_local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)};
myEnemyArr.push(_local2);
_local1++;
};
};
if (MovieClip(parent.parent).bossArray.length > 0){
_local3 = 0;
while (_local3 < MovieClip(parent.parent).bossArray.length) {
_local4 = {mc:MovieClip(parent.parent).bossArray[_local3], dis:calDist(MovieClip(parent.parent).bossArray[_local3].x, MovieClip(parent.parent).bossArray[_local3].y, this.x, this.y)};
myEnemyArr.push(_local4);
_local3++;
};
};
myEnemyArr.sortOn("dis", Array.NUMERIC);
if (myEnemyArr.length > 0){
followTarget(myEnemyArr[0].mc);
};
myEnemyArr.splice(0, myEnemyArr.length);
}
public function Move(){
this.x = (this.x + (driftDX * traction));
this.y = (this.y + (driftDY * traction));
this.x = (this.x + ((dx * 1) / traction));
this.y = (this.y + ((dy * 1) / traction));
}
}
}//package
Section 167
//PickupWeapon1 (PickupWeapon1)
package {
import flash.events.*;
import flash.display.*;
public class PickupWeapon1 extends MovieClip {
public var spd:Number;
public var xSpd:Number;
public var angle:Number;
public var speed:int;
public var main:MovieClip;
public var ySpd:Number;
public function PickupWeapon1(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.pickupWeaponArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (main.levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
main.attWeaponPrompt(this);
main.pickupAmmo1Inventory = main.pickupAmmo1Max;
main.pickupWeapon = "weapon5";
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 168
//PickupWeapon2 (PickupWeapon2)
package {
import flash.events.*;
import flash.display.*;
public class PickupWeapon2 extends MovieClip {
public var spd:Number;
public var xSpd:Number;
public var angle:Number;
public var speed:int;
public var main:MovieClip;
public var ySpd:Number;
public function PickupWeapon2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.pickupWeaponArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (main.levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
main.attWeaponPrompt(this);
main.pickupAmmo2Inventory = main.pickupAmmo2Max;
main.pickupWeapon = "weapon6";
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 169
//PickupWeapon3 (PickupWeapon3)
package {
import flash.events.*;
import flash.display.*;
public class PickupWeapon3 extends MovieClip {
public var spd:Number;
public var xSpd:Number;
public var angle:Number;
public var speed:int;
public var main:MovieClip;
public var ySpd:Number;
public function PickupWeapon3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.pickupWeaponArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (main.levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
main.attWeaponPrompt(this);
main.pickupAmmo3Inventory = main.pickupAmmo3Max;
main.pickupWeapon = "weapon7";
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 170
//PickupWeapon4 (PickupWeapon4)
package {
import flash.events.*;
import flash.display.*;
public class PickupWeapon4 extends MovieClip {
public var spd:Number;
public var xSpd:Number;
public var angle:Number;
public var speed:int;
public var main:MovieClip;
public var ySpd:Number;
public function PickupWeapon4(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.pickupWeaponArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (main.levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
main.attWeaponPrompt(this);
main.pickupAmmo4Inventory = main.pickupAmmo4Max;
main.pickupWeapon = "homingMiniMissile";
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 171
//PlayerAmmo1 (PlayerAmmo1)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo1 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo1(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo1Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 172
//PlayerAmmo2 (PlayerAmmo2)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo2 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo2Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 173
//PlayerAmmo3 (PlayerAmmo3)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo3 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo3Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 174
//PlayerAmmo4 (PlayerAmmo4)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo4 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo4(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo4Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 175
//PlayerAmmo5 (PlayerAmmo5)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo5 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo5(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo5Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 176
//PlayerAmmo6 (PlayerAmmo6)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo6 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo6(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo6Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 177
//PlayerAmmo7 (PlayerAmmo7)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo7 extends MovieClip {
public var speed:int;
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerAmmo7(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo7Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 35;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 178
//PlayerSpecial1 (PlayerSpecial1)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class PlayerSpecial1 extends MovieClip {
public var life:Number;// = 10
public var norm2:Number;
private var shootInterval:Number;
public var driftDX:Number;// = 0
public var dir:Number;// = 0
public var tangentialAcceleration:Number;// = 0.0174532925199433
public var target:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var mc:MovieClip;
public var vel:Point;
public var rotationalVelocity:Number;// = 0
public var myEnemyArr:Array;
public var maxDist:Number;
public var drawingLine:MovieClip;
public var traction;// = 3
public var main:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var distanceTravelled:Number;// = 0
public var smokeCounter:Number;// = 10
public var speed:Number;// = 0
public var fillThrustSpeed:Number;
private var _dir:Point;
public var thrustSpeed:Number;// = 0
public var pos:Point;
public var mini:MovieClip;
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var shootDist:Number;
public var direksyon_2:Point;
private var shootTimer:Timer;
public var s:Shape;
public var norm1:Number;
public var velMag:Number;
public var myBossArr:Array;
public var hitBox_mc:MovieClip;
public var driftDY:Number;// = 0
public function PlayerSpecial1(_arg1:MovieClip){
fillThrustSpeed = randomGenerator(2, 5);
direksyon_2 = new Point(0, 0);
norm1 = randomGenerator(1, 2);
norm2 = randomGenerator(5, 7);
pos = new Point();
vel = new Point();
mat = new Matrix();
s = new Shape();
drawingLine = new MovieClip();
_dir = new Point(0, 0);
myEnemyArr = new Array();
myBossArr = new Array();
super();
thrustSpeed = fillThrustSpeed;
maxDist = (Math.floor((Math.random() * (200 - 100))) + 100);
shootDist = 300;
pos.x = 250;
pos.y = 250;
vel.x = (Math.PI * 2);
vel.y = (Math.PI * 2);
velMag = 5;
if (myEnemyArr.length == 0){
dir = _arg1.rotation;
this.rotation = (_arg1.rotation + 270);
} else {
if (myBossArr.length == 0){
dir = _arg1.rotation;
this.rotation = (_arg1.rotation + 270);
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = ((_arg1 - _arg3) * (_arg1 - _arg3));
var _local6:Number = ((_arg2 - _arg4) * (_arg2 - _arg4));
var _local7:Number = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function turn(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = dir;
_local1 = (_local1 - 90);
_local2 = ((_local1 * Math.PI) / 180);
speed = ((dx * dx) + (dy * dy));
_local3 = Math.cos(_local2);
_local4 = Math.sin(_local2);
_local3 = (_local3 * speed);
_local4 = (_local4 * speed);
_local5 = (thrustSpeed * Math.cos(_local2));
_local6 = (thrustSpeed * Math.sin(_local2));
dx = (dx + _local5);
dy = (dy + _local6);
dx = (dx * drag);
dy = (dy * drag);
}
public function initLine(){
MovieClip(parent).addChild(drawingLine);
}
public function followTarget(_arg1:MovieClip){
var _local2:Point = new Point((_arg1.x - this.x), (_arg1.y - this.y));
_local2.normalize(norm1);
direksyon_2 = direksyon_2.add(_local2);
direksyon_2.normalize(norm2);
var _local3:Number = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local3 + 90);
this.rotation = _local3;
}
public function rotateBody(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number = (_arg1.x - (this.x + _arg2.x));
var _local4:Number = (_arg1.y - (this.y + _arg2.y));
var _local5:Number = ((180 * Math.atan2(_local4, _local3)) / Math.PI);
_arg2.rotation = _local5;
}
public function shoot(_arg1:TimerEvent){
if (calDist(this.x, this.y, target.x, target.y) <= shootDist){
MovieClip(parent.parent).attEnemyAmmo1(this);
};
}
public function destruct(_arg1:String){
main.removeFromArray(main.playerSpecial1Array, this);
}
function drwLine(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(3);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
}
function movMinimapElement(){
mini.x = (this.x * 0.1);
mini.y = (this.y * 0.1);
}
public function looper(){
if (life <= 0){
destruct("");
} else {
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -50)))) || ((this.y > 750)))){
destruct("");
} else {
smokeCounter--;
if (smokeCounter <= 0){
smokeCounter = 10;
};
whichEnemyToEngage();
turn();
Move();
};
};
}
public function whichEnemyToEngage(){
var _local1:Number;
var _local2:Object;
var _local3:Number;
var _local4:Object;
if (MovieClip(parent.parent).enemyArray.length > 0){
_local1 = 0;
while (_local1 < MovieClip(parent.parent).enemyArray.length) {
_local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)};
myEnemyArr.push(_local2);
_local1++;
};
};
if (MovieClip(parent.parent).bossArray.length > 0){
_local3 = 0;
while (_local3 < MovieClip(parent.parent).bossArray.length) {
_local4 = {mc:MovieClip(parent.parent).bossArray[_local3], dis:calDist(MovieClip(parent.parent).bossArray[_local3].x, MovieClip(parent.parent).bossArray[_local3].y, this.x, this.y)};
myEnemyArr.push(_local4);
_local3++;
};
};
myEnemyArr.sortOn("dis", Array.NUMERIC);
if (myEnemyArr.length > 0){
followTarget(myEnemyArr[0].mc);
};
myEnemyArr.splice(0, myEnemyArr.length);
}
public function Move(){
this.x = (this.x + (driftDX * traction));
this.y = (this.y + (driftDY * traction));
this.x = (this.x + ((dx * 1) / traction));
this.y = (this.y + ((dy * 1) / traction));
}
}
}//package
Section 179
//PlayerSpecial2 (PlayerSpecial2)
package {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
public class PlayerSpecial2 extends MovieClip {
public var spd:Number;
public var xSpd:Number;
public var grvty:Number;
public var angle:Number;
public var ySpd:Number;
public var mc:MovieClip;
public var rot:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerSpecial2(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
spd = 18;
grvty = 1.5;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function destruct(_arg1:String){
main.removeFromArray(main.playerSpecial2Array, this);
}
public function looper(){
if (this.y < 0){
destruct("");
} else {
if ((((this.x < 0)) || ((this.x > 550)))){
destruct("");
} else {
ySpd = (ySpd - grvty);
this.x = (this.x - xSpd);
this.y = (this.y + ySpd);
};
};
}
}
}//package
Section 180
//PlayerSpecial3 (PlayerSpecial3)
package {
import flash.events.*;
import flash.display.*;
public class PlayerSpecial3 extends MovieClip {
public var soundPlayed:String;// = "no"
public var speed:int;
public var smokeCounter:Number;// = 3
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerSpecial3(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.playerSpecial3Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
smokeCounter--;
if (smokeCounter <= 0){
smokeCounter = 4;
};
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 181
//PlayerSpecial4 (PlayerSpecial4)
package {
import flash.events.*;
import flash.display.*;
public class PlayerSpecial4 extends MovieClip {
public var speed:int;
public var smokeCounter:Number;// = 3
public var ySpd:Number;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var main:MovieClip;
public var hitBox_mc:MovieClip;
public function PlayerSpecial4(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
main.removeFromArray(main.playerSpecial4Array, this);
}
public function looper(){
if (this.y < -10){
destruct("");
} else {
smokeCounter--;
if (smokeCounter <= 0){
smokeCounter = 4;
};
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
this.x = MovieClip(parent).player_mc.x;
};
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
}
}//package
Section 182
//PlayerSpecial6 (PlayerSpecial6)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class PlayerSpecial6 extends MovieClip {
public var life:Number;// = 100
public var norm2:Number;
private var shootInterval:Number;
public var driftDX:Number;// = 0
public var dir:Number;// = 0
public var tangentialAcceleration:Number;// = 0.0174532925199433
public var target:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var vel:Point;
public var rotationalVelocity:Number;// = 0
public var myEnemyArr:Array;
public var maxDist:Number;
public var drawingLine:MovieClip;
public var traction;// = 3
public var main:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var distanceTravelled:Number;// = 0
public var speed:Number;// = 0
public var fillThrustSpeed:Number;
private var _dir:Point;
public var thrustSpeed:Number;// = 0
public var pos:Point;
public var mini:MovieClip;
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var player:MovieClip;
public var shootDist:Number;
public var direksyon_2:Point;
private var shootTimer:Timer;
public var s:Shape;
public var norm1:Number;
public var velMag:Number;
public var hitBox_mc:MovieClip;
public var driftDY:Number;// = 0
public function PlayerSpecial6(_arg1:MovieClip, _arg2:Number){
fillThrustSpeed = randomGenerator(2, 5);
direksyon_2 = new Point(0, 0);
norm1 = randomGenerator(1, 2);
norm2 = randomGenerator(5, 7);
pos = new Point();
vel = new Point();
mat = new Matrix();
s = new Shape();
drawingLine = new MovieClip();
_dir = new Point(0, 0);
myEnemyArr = new Array();
super();
thrustSpeed = fillThrustSpeed;
maxDist = (Math.floor((Math.random() * (200 - 100))) + 100);
shootDist = 300;
pos.x = 250;
pos.y = 250;
vel.x = (Math.PI * 2);
vel.y = (Math.PI * 2);
velMag = 5;
player = _arg1;
shootInterval = _arg2;
shootTimer = new Timer(shootInterval, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecial6Array, this);
}
public function calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = ((_arg1 - _arg3) * (_arg1 - _arg3));
var _local6:Number = ((_arg2 - _arg4) * (_arg2 - _arg4));
var _local7:Number = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function turn(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = dir;
_local1 = (_local1 - 90);
_local2 = ((_local1 * Math.PI) / 180);
speed = ((dx * dx) + (dy * dy));
_local3 = Math.cos(_local2);
_local4 = Math.sin(_local2);
_local3 = (_local3 * speed);
_local4 = (_local4 * speed);
_local5 = (thrustSpeed * Math.cos(_local2));
_local6 = (thrustSpeed * Math.sin(_local2));
dx = (dx + _local5);
dy = (dy + _local6);
dx = (dx * drag);
dy = (dy * drag);
}
public function initLine(){
MovieClip(parent).addChild(drawingLine);
}
public function followTarget(_arg1:MovieClip){
var _local2:Point = new Point((_arg1.x - this.x), (_arg1.y - this.y));
_local2.normalize(norm1);
direksyon_2 = direksyon_2.add(_local2);
direksyon_2.normalize(norm2);
var _local3:Number = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local3 + 90);
}
public function rotateBody(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number = (_arg1.x - (this.x + _arg2.x));
var _local4:Number = (_arg1.y - (this.y + _arg2.y));
var _local5:Number = ((180 * Math.atan2(_local4, _local3)) / Math.PI);
_arg2.rotation = _local5;
}
public function shoot(_arg1:TimerEvent){
if ((((MovieClip(parent.parent).enemyArray.length > 0)) || ((MovieClip(parent.parent).bossArray.length > 0)))){
MovieClip(parent.parent).attPlayerSpecial6Ammo(this);
};
}
function drwLine(){
var _local1:Number = 10;
var _local2:Number = this.rotation;
var _local3:Number = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
var _local4:Number = (this.y + (_local1 * Math.sin(((_local2 * Math.PI) / 180))));
drawingLine.graphics.clear();
drawingLine.graphics.lineStyle(3);
drawingLine.graphics.moveTo(_local3, _local4);
drawingLine.graphics.lineTo(target.x, target.y);
}
function movMinimapElement(){
mini.x = (this.x * 0.1);
mini.y = (this.y * 0.1);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
destruct("");
} else {
if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -50)))) || ((this.y > 750)))){
destruct("");
} else {
turn();
Move();
followTarget(player);
};
};
}
public function whichEnemyToEngage(){
var _local2:Object;
var _local1:Number = 0;
while (_local1 < MovieClip(parent.parent).enemyArray.length) {
_local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)};
myEnemyArr.push(_local2);
_local1++;
};
myEnemyArr.sortOn("dis", Array.NUMERIC);
if (myEnemyArr.length > 0){
followTarget(player);
};
myEnemyArr.splice(0, myEnemyArr.length);
}
public function Move(){
this.x = (this.x + (driftDX * traction));
this.y = (this.y + (driftDY * traction));
this.x = (this.x + ((dx * 1) / traction));
this.y = (this.y + ((dy * 1) / traction));
}
}
}//package
Section 183
//SndStory1 (SndStory1)
package {
import flash.media.*;
public dynamic class SndStory1 extends Sound {
}
}//package
Section 184
//SndStory2 (SndStory2)
package {
import flash.media.*;
public dynamic class SndStory2 extends Sound {
}
}//package
Section 185
//SpecialRecharge (SpecialRecharge)
package {
import flash.events.*;
import flash.display.*;
public class SpecialRecharge extends MovieClip {
public var speed:int;
public var xSpd:Number;
public var angle:Number;
public var spd:Number;
public var ySpd:Number;
public function SpecialRecharge(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).moneyArray, this);
}
public function init(){
spd = 1.5;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if (MovieClip(parent.parent).levelContainer_mc.player_mc.hitboxForPickUps_mc.hitTestObject(this)){
MovieClip(parent.parent).playAcquireSnd();
if (MovieClip(parent.parent).special1Availability == "sold"){
MovieClip(parent.parent).special1UIContainer_mc.gotoAndStop(2);
MovieClip(parent.parent).special1Activated = "false";
};
if (MovieClip(parent.parent).special3Availability == "sold"){
MovieClip(parent.parent).special3UIContainer_mc.gotoAndStop(2);
MovieClip(parent.parent).special3Activated = "false";
};
if (MovieClip(parent.parent).special4Availability == "sold"){
MovieClip(parent.parent).blasterEnergy = MovieClip(parent.parent).blasterEnergyMax;
MovieClip(parent.parent).levelContainer_mc.superBlaster_mc.stop();
MovieClip(parent.parent).levelContainer_mc.superBlaster_mc.x = -200;
MovieClip(parent.parent).special4UIContainer_mc.gotoAndStop(2);
MovieClip(parent.parent).special4Activated = "false";
};
if (MovieClip(parent.parent).special5Availability == "sold"){
MovieClip(parent.parent).wireEnergy = 20;
MovieClip(parent.parent).special5UIContainer_mc.gotoAndStop(2);
MovieClip(parent.parent).special5Activated = "false";
};
MovieClip(parent.parent).attWeaponPrompt(this);
destruct("");
} else {
if (this.y > 600){
destruct("");
} else {
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
}
}//package
Section 186
//StrikeSnd (StrikeSnd)
package {
import flash.media.*;
public dynamic class StrikeSnd extends Sound {
}
}//package
Section 187
//WeaponPrompt (WeaponPrompt)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class WeaponPrompt extends MovieClip {
public var display_mc:MovieClip;
public function WeaponPrompt(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
Tweener.addTween(this, {scaleX:2, scaleY:2, time:2, transition:"easeOutStrong"});
Tweener.addTween(this, {alpha:0, time:3, onComplete:_disappear, transition:"linear"});
this.rotation = 270;
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
}
}//package