Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
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 _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
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 _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(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;
_local6 = (((!(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;
_local6 = (((!(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;
_local6 = (((!(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 _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(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 _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(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 originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
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:String;
_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;
_local1 = 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 preProcess:Function;
public var setValue:Function;
public var getValue: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:String;
_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:String;
_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:String;
_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{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = 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 _local5:Object;
var _local6:Number;
var _local7:Number;
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];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (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 _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
_local3 = 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 _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _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;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = 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{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
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 cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = 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 _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_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 _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_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 _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
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];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {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};
_local12 = 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 _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
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;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = 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;
_local2 = _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;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 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 removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _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{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = 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 _local3:Array;
var _local4:uint;
_local3 = 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 _local3:Array;
var _local4:uint;
_local3 = 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 onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count: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 transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
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 _local2:TweenListObj;
var _local3:String;
_local2 = 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 _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
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 _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _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
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 10
//ag_intro_mc_4 (intergalacticRumble_viral_v1_fla.ag_intro_mc_4)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class ag_intro_mc_4 extends MovieClip {
public function ag_intro_mc_4(){
addFrameScript(0, frame1, 217, frame218);
}
function frame218(){
MovieClip(parent).gotoAndPlay(3);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
MovieClip(parent).stop();
gotoAndPlay(2);
}
public function clck(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://armorgames.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
}
}//package intergalacticRumble_viral_v1_fla
Section 11
//btn__moreGames_32 (intergalacticRumble_viral_v1_fla.btn__moreGames_32)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class btn__moreGames_32 extends MovieClip {
public var hitBox_mc:MovieClip;
public function btn__moreGames_32(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
}
public function clck(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://armorgames.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
}
}//package intergalacticRumble_viral_v1_fla
Section 12
//btn_ammo1_77 (intergalacticRumble_viral_v1_fla.btn_ammo1_77)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo1_77 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 13
//btn_ammo10_85 (intergalacticRumble_viral_v1_fla.btn_ammo10_85)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo10_85 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 14
//btn_ammo2_78 (intergalacticRumble_viral_v1_fla.btn_ammo2_78)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo2_78 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 15
//btn_ammo3_79 (intergalacticRumble_viral_v1_fla.btn_ammo3_79)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo3_79 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 16
//btn_ammo4_80 (intergalacticRumble_viral_v1_fla.btn_ammo4_80)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo4_80 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 17
//btn_ammo5_88 (intergalacticRumble_viral_v1_fla.btn_ammo5_88)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo5_88 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 18
//btn_ammo6_81 (intergalacticRumble_viral_v1_fla.btn_ammo6_81)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo6_81 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 19
//btn_ammo7_82 (intergalacticRumble_viral_v1_fla.btn_ammo7_82)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo7_82 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 20
//btn_ammo8_83 (intergalacticRumble_viral_v1_fla.btn_ammo8_83)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo8_83 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 21
//btn_ammo9_84 (intergalacticRumble_viral_v1_fla.btn_ammo9_84)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ammo9_84 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 22
//btn_awards_36 (intergalacticRumble_viral_v1_fla.btn_awards_36)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_awards_36 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 23
//btn_back_49 (intergalacticRumble_viral_v1_fla.btn_back_49)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_back_49 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 24
//btn_backToMain_130 (intergalacticRumble_viral_v1_fla.btn_backToMain_130)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_backToMain_130 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 25
//btn_buy_86 (intergalacticRumble_viral_v1_fla.btn_buy_86)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_buy_86 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 26
//btn_credits_40 (intergalacticRumble_viral_v1_fla.btn_credits_40)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_credits_40 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 27
//btn_highscores_35 (intergalacticRumble_viral_v1_fla.btn_highscores_35)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_highscores_35 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 28
//btn_itemBulletBarrage_73 (intergalacticRumble_viral_v1_fla.btn_itemBulletBarrage_73)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_itemBulletBarrage_73 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 29
//btn_itemHealthNano_72 (intergalacticRumble_viral_v1_fla.btn_itemHealthNano_72)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_itemHealthNano_72 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 30
//btn_itemMinnion_75 (intergalacticRumble_viral_v1_fla.btn_itemMinnion_75)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_itemMinnion_75 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 31
//btn_itemNuke_76 (intergalacticRumble_viral_v1_fla.btn_itemNuke_76)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_itemNuke_76 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 32
//btn_itemVoltageJammer_74 (intergalacticRumble_viral_v1_fla.btn_itemVoltageJammer_74)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_itemVoltageJammer_74 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 33
//btn_justAline_30 (intergalacticRumble_viral_v1_fla.btn_justAline_30)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_justAline_30 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 34
//btn_loadGame_31 (intergalacticRumble_viral_v1_fla.btn_loadGame_31)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_loadGame_31 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 35
//btn_lvl1_56 (intergalacticRumble_viral_v1_fla.btn_lvl1_56)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl1_56 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 36
//btn_lvl10_65 (intergalacticRumble_viral_v1_fla.btn_lvl10_65)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl10_65 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 37
//btn_lvl11_66 (intergalacticRumble_viral_v1_fla.btn_lvl11_66)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl11_66 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 38
//btn_lvl12_67 (intergalacticRumble_viral_v1_fla.btn_lvl12_67)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl12_67 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 39
//btn_lvl13_68 (intergalacticRumble_viral_v1_fla.btn_lvl13_68)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl13_68 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 40
//btn_lvl14_69 (intergalacticRumble_viral_v1_fla.btn_lvl14_69)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl14_69 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 41
//btn_lvl15_70 (intergalacticRumble_viral_v1_fla.btn_lvl15_70)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl15_70 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 42
//btn_lvl2_57 (intergalacticRumble_viral_v1_fla.btn_lvl2_57)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl2_57 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 43
//btn_lvl3_58 (intergalacticRumble_viral_v1_fla.btn_lvl3_58)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl3_58 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 44
//btn_lvl4_59 (intergalacticRumble_viral_v1_fla.btn_lvl4_59)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl4_59 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 45
//btn_lvl5_60 (intergalacticRumble_viral_v1_fla.btn_lvl5_60)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl5_60 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 46
//btn_lvl6_61 (intergalacticRumble_viral_v1_fla.btn_lvl6_61)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl6_61 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 47
//btn_lvl7_62 (intergalacticRumble_viral_v1_fla.btn_lvl7_62)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl7_62 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 48
//btn_lvl8_63 (intergalacticRumble_viral_v1_fla.btn_lvl8_63)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl8_63 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 49
//btn_lvl9_64 (intergalacticRumble_viral_v1_fla.btn_lvl9_64)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_lvl9_64 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 50
//btn_mainMenu_90 (intergalacticRumble_viral_v1_fla.btn_mainMenu_90)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_mainMenu_90 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 51
//btn_newGames_29 (intergalacticRumble_viral_v1_fla.btn_newGames_29)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_newGames_29 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 52
//btn_next_122 (intergalacticRumble_viral_v1_fla.btn_next_122)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_next_122 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 53
//btn_no_44 (intergalacticRumble_viral_v1_fla.btn_no_44)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_no_44 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 54
//btn_ok_117 (intergalacticRumble_viral_v1_fla.btn_ok_117)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_ok_117 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 55
//btn_skip_15 (intergalacticRumble_viral_v1_fla.btn_skip_15)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_skip_15 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 56
//btn_startLevelMode_37 (intergalacticRumble_viral_v1_fla.btn_startLevelMode_37)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_startLevelMode_37 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 57
//btn_submitScores_129 (intergalacticRumble_viral_v1_fla.btn_submitScores_129)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_submitScores_129 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 58
//btn_survivalMode_34 (intergalacticRumble_viral_v1_fla.btn_survivalMode_34)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_survivalMode_34 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 59
//btn_yes_43 (intergalacticRumble_viral_v1_fla.btn_yes_43)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class btn_yes_43 extends MovieClip {
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 60
//MainTimeline (intergalacticRumble_viral_v1_fla.MainTimeline)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import fl.motion.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var uiNuke_mc:MovieClip;
public var award5name:String;
public var redFlash_mc:MovieClip;
public var kills_txt:TextField;
public var _player:MovieClip;
public var loader:Loader;
public var kills_levels:Number;
public var item2Des:String;
public var level2EnemiesArray:Array;
public var maxEnemies:Number;
public var level5EnemiesArrayContent:Array;
public var playerAmmo3aArray:Array;
public var level12EnemiesArrayContent:Array;
public var loader_txt:TextField;
public var bgStars1a_mc:MovieClip;
public var award13name:String;
public var points_levels:Number;
public var level7EnemyDeploymentTimerObj:Timer;
public var award18des:String;
public var award7des:String;
public var voltageJammerCountValue:Number;
public var notEnoughMoney:String;
public var itemNuke_price:Number;
public var creditsPanel_mc:MovieClip;
public var ammo1Name:String;
public var timeLeft:Number;
public var survivalModeEnemiesArray:Array;
public var inGamePlanet2_mc:MovieClip;
public var award4name:String;
public var ammo8Des:String;
public var toPostSec:Number;
public var uiVoltageJammer_mc:MovieClip;
public var level7EnemiesArray:Array;
public var itemVoltageJammer:String;
public var gameMode:String;
public var animSpeed:Number;
public var award12name:String;
public var playerAmmo3bRof:Number;
public var item4Des:String;
public var playerAmmo3bArray:Array;
public var title_mc:MovieClip;
public var itemNukeUsed:String;
public var duraLevel:Number;
public var lostPanel_mc:MovieClip;
public var start_btn:MovieClip;
public var award3name:String;
public var lifeDenom:Number;
public var agi;
public var level12EnemiesArray:Array;
public var toolTipUpgrades_mc:MovieClip;
public var award9des:String;
public var toPostLevelTimerObj:Timer;
public var ammo1_price:Number;
public var land2_mc:MovieClip;
public var inGamePlanet4_mc:MovieClip;
public var toolTipLevel_mc:MovieClip;
public var cashSnd:Sound;
public var level15EnemyDeploymentTimerObj:Timer;
public var bar_mc:MovieClip;
public var award11name:String;
public var playerAmmo2bRof:Number;
public var survivalModeEnemiesArrayContent:Array;
public var btnSnd:Sound;
public var ammo6_price:Number;
public var ammo10:String;
public var moneyArray:Array;
public var playerAmmo3cArray:Array;
public var level6EnemyDeploymentTimerObj:Timer;
public var award2name:String;
public var awardsPanel_mc:MovieClip;
public var playerAmmo3dRof:Number;
public var ammo10Name:String;
public var level1EnemiesArray:Array;
public var selectedLevel:Number;
public var gamePlayDurationLevel:Number;
public var level9EnemiesArrayContent:Array;
public var uiBulletBarrage_mc:MovieClip;
public var award11des:String;
public var killsOverall:Number;
public var award10name:String;
public var awardSnd:Sound;
public var money_levels:Number;
public var playerAmmo1aArray:Array;
public var level4EnemiesArrayContent:Array;
public var playerAmmo1bRof:Number;
public var bgStars2_mc:MovieClip;
public var level11EnemiesArrayContent:Array;
public var ammo1Des:String;
public var pointsOverall:Number;
public var award1name:String;
public var shotSnd1:Sound;
public var shotSnd2:Sound;
public var shotSnd3:Sound;
public var shotSnd4:Sound;
public var speedLevel_price:Number;
public var playerAmmo2dRof:Number;
public var intructionLevel_mc:MovieClip;
public var urlRequest:URLRequest;
public var level6EnemiesArray:Array;
public var rechargeRateLevel_price:Number;
public var duraLevel_price:Number;
public var itemVoltageJammerMax:Number;
public var level14EnemyDeploymentTimerObj:Timer;
public var playerAmmo1bArray:Array;
public var planet2_mc:MovieClip;
public var award20name:String;
public var introTextContainer_mc:MovieClip;
public var award13des:String;
public var minnionsLevel_price:Number;
public var award2des:String;
public var spaceShip_mc:MovieClip;
public var level5EnemyDeploymentTimerObj:Timer;
public var level11EnemiesArray:Array;
public var voltageJammerLevel_price:Number;
public var itemHealthNanoPack_price:Number;
public var ammo3Des:String;
public var backToMain_btn:MovieClip;
public var acquiredCrystal_txt:TextField;
public var lifeNum:Number;
public var bossArray:Array;
public var ammo4_price:Number;
public var playerAmmo1cArray:Array;
public var building_mc:MovieClip;
public var itemNuke:String;
public var planet4_mc:MovieClip;
public var gameBG_mc:MovieClip;
public var ammo1:String;
public var ammo2:String;
public var ammo3:String;
public var introSpaceShip_mc:MovieClip;
public var ammo5:String;
public var ammo7:String;
public var ammo8:String;
public var ammo9:String;
public var ammo4:String;
public var ammo6:String;
public var BossLifeUIContainer_mc:MovieClip;
public var ammo9_price:Number;
public var disFromBarrel:Number;
public var levelGameTimerObj:Timer;
public var award15des:String;
public var itemBulletBarrageMax:Number;
public var award4des:String;
public var lifebar_mc:MovieClip;
public var toolTipAmmo_mc:MovieClip;
public var justAline_mc:MovieClip;
public var gamePlayDurationSurvival:Number;
public var level8EnemiesArrayContent:Array;
public var itemHealthNanoPack:String;
public var level15EnemiesArrayContent:Array;
public var bulletBarrageTimer:Timer;
public var moneyOverall:Number;
public var itemBulletBarrageInventory:Number;
public var level3EnemiesArrayContent:Array;
public var level13EnemyDeploymentTimerObj:Timer;
public var bossWarningSnd:Sound;
public var level10EnemiesArrayContent:Array;
public var level:Number;
public var ammo5Des:String;
public var whiteFlash_mc:MovieClip;
public var qualityCode:Number;
public var loadGame_btn:MovieClip;
public var inGamePlanet2a_mc:MovieClip;
public var skip_btn:MovieClip;
public var level5EnemiesArray:Array;
public var level4EnemyDeploymentTimerObj:Timer;
public var itemVoltageJammerRecharging:String;
public var levelContainer_mc:MovieClip;
public var item1Des:String;
public var suvivalModeEnemyDeploymentTimerObj:Timer;
public var survivalGameTimerObj;
public var upgradePanel_mc:MovieClip;
public var award17des:String;
public var award6des:String;
public var itemMinnions:String;
public var moreGames_btn:MovieClip;
public var inGamePlanet1_mc:MovieClip;
public var level10EnemiesArray:Array;
public var ammo7Des:String;
public var agi_url:String;
public var qualityShow_txt:TextField;
public var awards_btn:MovieClip;
public var ammo9Name:String;
public var highscores_btn:MovieClip;
public var iRumble_so:SharedObject;
public var playerAmmo3aRof:Number;
public var ammo2_price:Number;
public var item3Des:String;
public var level12EnemyDeploymentTimerObj:Timer;
public var level15EnemiesArray:Array;
public var award19des:String;
public var ammo7_price:Number;
public var award8des:String;
public var bossWarningToBossArrivalTimerObj:Timer;
public var newGamePrompt_mc:MovieClip;
public var itemMinnions_price:Number;
public var nukeFlash_mc:MovieClip;
public var explodeSnd:Sound;
public var land1_mc:MovieClip;
public var level3EnemyDeploymentTimerObj:Timer;
public var inGamePlanet3_mc:MovieClip;
public var award20des:String;
public var ammo8Name:String;
public var levelComplete:Boolean;
public var toolTipItem_mc:MovieClip;
public var titleArmorLogo_mc:MovieClip;
public var playerAmmo2aRof:Number;
public var ammo9Des:String;
public var level7EnemiesArrayContent:Array;
public var fader_mc:MovieClip;
public var playerAmmo2aArray:Array;
public var level14EnemiesArrayContent:Array;
public var gameKey:String;
public var level2EnemiesArrayContent:Array;
public var level4EnemiesArray:Array;
public var playerAmmo3cRof:Number;
public var voltageJammerCount:Number;
public var trackPlayDurationSurvivalTmr:Timer;
public var item5Des:String;
public var bulletBarrageCount:Number;
public var credits_btn:MovieClip;
public var mouseFollowSpeed:Number;
public var charInSpaceShip_mc:MovieClip;
public var award19name:String;
public var ammo7Name:String;
public var levelPanel_mc:MovieClip;
public var award10des:String;
public var playerAmmo1aRof:Number;
public var itemVoltageJammerInventory:Number;
public var bgStars1_mc:MovieClip;
public var playerAmmo2bArray:Array;
public var level9EnemiesArray:Array;
public var winPanel_mc:MovieClip;
public var playerAmmo2cRof:Number;
public var musicCode:Number;
public var itemVoltageJammer_price:Number;
public var level11EnemyDeploymentTimerObj:Timer;
public var bgSnd1:Sound;
public var bgSnd2:Sound;
public var bgSnd3:Sound;
public var bgSnd4:Sound;
public var bgSnd5:Sound;
public var ammo6Name:String;
public var award18name:String;
public var trackPlayDurationLevelTmr:Timer;
public var level2EnemyDeploymentTimerObj:Timer;
public var planet1_mc:MovieClip;
public var award9name:String;
public var devKey:String;
public var level14EnemiesArray:Array;
public var award12des:String;
public var award1des:String;
public var level9EnemyDeploymentTimerObj:Timer;
public var music:String;
public var itemBulletBarrage:String;
public var ammo5_price:Number;
public var itemBulletBarrage_price:Number;
public var itemBulletBarrageRecharging:String;
public var intructionSurvival_mc:MovieClip;
public var bgStars3_mc:MovieClip;
public var voltageJammerInUse:String;
public var uiMinnion_mc:MovieClip;
public var armorRepairSpeedLevel:Number;
public var award17name:String;
public var newGame_btn:MovieClip;
public var crystalSnd:Sound;
public var ammo5Name:String;
public var playerSpecialMinnionArray:Array;
public var surFinPanel_mc:MovieClip;
public var ammo2Des:String;
public var timer_txt:TextField;
public var ship_mc:MovieClip;
public var playerAmmo2cArray:Array;
public var award8name:String;
public var anchorShip:String;
public var level6EnemiesArrayContent:Array;
public var enemyAmmo1Array:Array;
public var level13EnemiesArrayContent:Array;
public var level3EnemiesArray:Array;
public var level1EnemiesArrayContent:Array;
public var planet3_mc:MovieClip;
public var award16name:String;
public var ammo4Name:String;
public var award14des:String;
public var crosshair_mc:MovieClip;
public var itemMinnionsUsed:String;
public var award3des:String;
public var titleAdoboLogo_mc:MovieClip;
public var level10EnemyDeploymentTimerObj:Timer;
public var survivalDuration:Number;
public var award7name:String;
public var ammo4Des:String;
public var level1EnemyDeploymentTimerObj:Timer;
public var survivalMode_btn:MovieClip;
public var level8EnemiesArray:Array;
public var level8EnemyDeploymentTimerObj:Timer;
public var toPostText_txt:TextField;
public var enemyAmmo2Array:Array;
public var bgStars3a_mc:MovieClip;
public var award15name:String;
public var ammo3Name:String;
public var introSnd:Sound;
public var color:Color;
public var bulletBarrageLevel_price:Number;
public var planet5_mc:MovieClip;
public var speedLevel:Number;
public var award6name:String;
public var ammo10Des:String;
public var ammoSelected:Number;
public var award16des:String;
public var level13EnemiesArray:Array;
public var award5des:String;
public var rechargeRateLevel:Number;
public var voltageJammerLevel:Number;
public var bulletBarrageLevel:Number;
public var ammo3_price:Number;
public var enemyArray:Array;
public var bgStars2a_mc:MovieClip;
public var morning:MovieClip;
public var ammo2Name:String;
public var ammo6Des:String;
public var award14name:String;
public var armorRepairSpeedLevel_price:Number;
public var enemyAmmo3Array:Array;
public var ammo8_price:Number;
public var ammo10_price:Number;
public var keyIsPressed:String;
public var minnionsLevel:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 5, frame6, 6, frame7, 7, frame8, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15);
}
public function level4EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 4){
_local2 = Math.floor((Math.random() * level4EnemiesArray.length));
_local3 = level4EnemiesArray[_local2];
deployEnemy(_local3);
level4EnemiesArray.splice(_local2, 1);
};
if (level4EnemiesArray.length <= 0){
level4EnemiesArray = level4EnemiesArrayContent.concat();
};
}
public function keyIsDown(_arg1:KeyboardEvent){
var _local2:PromptSpecialBullet;
var _local3:PromptSpecialNuke;
var _local4:VoltageJammerAni;
var _local5:PromptSpecialVoltage;
if (_arg1.keyCode == 81){
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 == 83){
musicCode++;
if (musicCode == 1){
SoundMixer.stopAll();
music = "off";
};
if (musicCode == 2){
music = "on";
if (currentFrame == 5){
if (bossArray.length > 0){
playBG3Snd();
} else {
switch (selectedLevel){
case 1:
playBG5Snd();
break;
case 2:
playBG4Snd();
break;
case 3:
playBG1Snd();
break;
case 4:
playBG5Snd();
break;
case 5:
playBG4Snd();
break;
case 6:
playBG1Snd();
break;
case 7:
playBG5Snd();
break;
case 8:
playBG4Snd();
break;
case 9:
playBG1Snd();
break;
case 10:
playBG5Snd();
break;
case 11:
playBG4Snd();
break;
case 12:
playBG1Snd();
break;
case 13:
playBG5Snd();
break;
case 14:
playBG4Snd();
break;
case 15:
playBG1Snd();
break;
};
};
} else {
trace("title");
playIntroSnd();
};
musicCode = 0;
};
};
if (currentFrame == 5){
if (keyIsPressed == "false"){
if (_arg1.keyCode == 66){
if (itemBulletBarrage == "sold"){
if (itemBulletBarrageRecharging == "false"){
_local2 = new PromptSpecialBullet();
_local2.x = 340;
_local2.y = 210;
levelContainer_mc.addChild(_local2);
bulletBarrageTimer.start();
itemBulletBarrageInventory = 0;
itemBulletBarrageRecharging = "true";
};
};
keyIsPressed = "true";
};
if (_arg1.keyCode == 78){
if (itemNuke == "sold"){
if (itemNukeUsed == "false"){
_local3 = new PromptSpecialNuke();
_local3.x = 340;
_local3.y = 210;
levelContainer_mc.addChild(_local3);
uiNuke_mc.bar_mc.scaleX = 0;
specialAttackAward("nuke");
AttPlayersSpecialNuke();
itemNukeUsed = "true";
};
};
keyIsPressed = "true";
};
if (_arg1.keyCode == 77){
keyIsPressed = "true";
};
if (_arg1.keyCode == 86){
if (itemVoltageJammer == "sold"){
if (itemVoltageJammerRecharging == "false"){
_local4 = new VoltageJammerAni();
_local4.x = levelContainer_mc.player_mc.x;
_local4.y = levelContainer_mc.player_mc.y;
levelContainer_mc.addChild(_local4);
_local5 = new PromptSpecialVoltage();
_local5.x = 340;
_local5.y = 210;
levelContainer_mc.addChild(_local5);
voltageJammerInUse = "yes";
itemVoltageJammerInventory = 0;
itemVoltageJammerRecharging = "true";
};
};
keyIsPressed = "true";
};
if (_arg1.keyCode == 32){
keyIsPressed = "true";
};
};
};
}
public function acquireAmmos(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var _setToolTipAmmo:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
switch (btn){
case upgradePanel_mc.ammo1_btn:
_setToolTipAmmo(ammo1Name, ammo1Des, ammo1_price, ammo1);
break;
case upgradePanel_mc.ammo2_btn:
_setToolTipAmmo(ammo2Name, ammo2Des, ammo2_price, ammo2);
break;
case upgradePanel_mc.ammo3_btn:
_setToolTipAmmo(ammo3Name, ammo3Des, ammo3_price, ammo3);
break;
case upgradePanel_mc.ammo4_btn:
_setToolTipAmmo(ammo4Name, ammo4Des, ammo4_price, ammo4);
break;
case upgradePanel_mc.ammo5_btn:
_setToolTipAmmo(ammo5Name, ammo5Des, ammo5_price, ammo5);
break;
case upgradePanel_mc.ammo6_btn:
_setToolTipAmmo(ammo6Name, ammo6Des, ammo6_price, ammo6);
break;
case upgradePanel_mc.ammo7_btn:
_setToolTipAmmo(ammo7Name, ammo7Des, ammo7_price, ammo7);
break;
case upgradePanel_mc.ammo8_btn:
_setToolTipAmmo(ammo8Name, ammo8Des, ammo8_price, ammo8);
break;
case upgradePanel_mc.ammo9_btn:
_setToolTipAmmo(ammo9Name, ammo9Des, ammo9_price, ammo9);
break;
case upgradePanel_mc.ammo10_btn:
_setToolTipAmmo(ammo10Name, ammo10Des, ammo10_price, ammo10);
break;
};
Tweener.addTween(toolTipAmmo_mc, {x:212.2, time:animSpeed, transition:"easeInStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(toolTipAmmo_mc, {x:-135.8, time:animSpeed, transition:"easeOutStrong"});
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case upgradePanel_mc.ammo1_btn:
if (ammo1 == "sold"){
ammoSelected = 1;
_setSelectedAmmoMarker(-240.9, -122.1);
} else {
if (moneyOverall >= ammo1_price){
ammo1 = "sold";
ammoSelected = 1;
_setSelectedAmmoMarker(-240.9, -122.1);
_setToolTipAmmo(ammo1Name, ammo1Des, ammo1_price, ammo1);
updateMoney(moneyOverall, ammo1_price);
} else {
_setToolTipAmmo(ammo1Name, ammo1Des, ammo1_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo2_btn:
if (ammo2 == "sold"){
ammoSelected = 2;
_setSelectedAmmoMarker(-188.4, -122.1);
} else {
if (moneyOverall >= ammo2_price){
ammo2 = "sold";
ammoSelected = 2;
_setSelectedAmmoMarker(-188.4, -122.1);
_setToolTipAmmo(ammo2Name, ammo2Des, ammo2_price, ammo2);
updateMoney(moneyOverall, ammo2_price);
} else {
_setToolTipAmmo(ammo2Name, ammo2Des, ammo2_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo3_btn:
if (ammo3 == "sold"){
ammoSelected = 3;
_setSelectedAmmoMarker(-136.4, -122.1);
} else {
if (moneyOverall >= ammo3_price){
ammo3 = "sold";
ammoSelected = 3;
_setSelectedAmmoMarker(-136.4, -122.1);
_setToolTipAmmo(ammo3Name, ammo3Des, ammo3_price, ammo3);
updateMoney(moneyOverall, ammo3_price);
} else {
_setToolTipAmmo(ammo3Name, ammo3Des, ammo3_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo4_btn:
if (ammo4 == "sold"){
ammoSelected = 4;
_setSelectedAmmoMarker(-83.9, -122.1);
} else {
if (moneyOverall >= ammo4_price){
ammo4 = "sold";
ammoSelected = 4;
_setSelectedAmmoMarker(-83.9, -122.1);
_setToolTipAmmo(ammo4Name, ammo4Des, ammo4_price, ammo4);
updateMoney(moneyOverall, ammo4_price);
} else {
_setToolTipAmmo(ammo4Name, ammo4Des, ammo4_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo5_btn:
if (ammo5 == "sold"){
ammoSelected = 5;
_setSelectedAmmoMarker(-31.9, -122.1);
} else {
if (moneyOverall >= ammo5_price){
ammo5 = "sold";
ammoSelected = 5;
_setSelectedAmmoMarker(-31.9, -122.1);
_setToolTipAmmo(ammo5Name, ammo5Des, ammo5_price, ammo5);
updateMoney(moneyOverall, ammo5_price);
} else {
_setToolTipAmmo(ammo5Name, ammo5Des, ammo5_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo6_btn:
if (ammo6 == "sold"){
ammoSelected = 6;
_setSelectedAmmoMarker(-240.9, -69.6);
} else {
if (moneyOverall >= ammo6_price){
ammo6 = "sold";
ammoSelected = 6;
_setSelectedAmmoMarker(-240.9, -69.6);
_setToolTipAmmo(ammo6Name, ammo6Des, ammo6_price, ammo6);
updateMoney(moneyOverall, ammo6_price);
} else {
_setToolTipAmmo(ammo6Name, ammo6Des, ammo6_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo7_btn:
if (ammo7 == "sold"){
ammoSelected = 7;
_setSelectedAmmoMarker(-188.4, -69.6);
} else {
if (moneyOverall >= ammo7_price){
ammo7 = "sold";
ammoSelected = 7;
_setSelectedAmmoMarker(-188.4, -69.6);
_setToolTipAmmo(ammo7Name, ammo7Des, ammo7_price, ammo7);
updateMoney(moneyOverall, ammo7_price);
} else {
_setToolTipAmmo(ammo7Name, ammo7Des, ammo7_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo8_btn:
if (ammo8 == "sold"){
ammoSelected = 8;
_setSelectedAmmoMarker(-136.4, -69.6);
} else {
if (moneyOverall >= ammo8_price){
ammo8 = "sold";
ammoSelected = 8;
_setSelectedAmmoMarker(-136.4, -69.6);
_setToolTipAmmo(ammo8Name, ammo8Des, ammo8_price, ammo8);
updateMoney(moneyOverall, ammo8_price);
} else {
_setToolTipAmmo(ammo8Name, ammo8Des, ammo8_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo9_btn:
if (ammo9 == "sold"){
ammoSelected = 9;
_setSelectedAmmoMarker(-83.9, -69.6);
} else {
if (moneyOverall >= ammo9_price){
ammo9 = "sold";
ammoSelected = 9;
_setSelectedAmmoMarker(-83.9, -69.6);
_setToolTipAmmo(ammo9Name, ammo9Des, ammo9_price, ammo9);
updateMoney(moneyOverall, ammo9_price);
} else {
_setToolTipAmmo(ammo9Name, ammo9Des, ammo9_price, notEnoughMoney);
};
};
break;
case upgradePanel_mc.ammo10_btn:
if (ammo10 == "sold"){
ammoSelected = 10;
_setSelectedAmmoMarker(-31.9, -69.6);
} else {
if (moneyOverall >= ammo10_price){
ammo10 = "sold";
ammoSelected = 10;
_setSelectedAmmoMarker(-31.9, -69.6);
_setToolTipAmmo(ammo10Name, ammo10Des, ammo10_price, ammo10);
updateMoney(moneyOverall, ammo10_price);
} else {
_setToolTipAmmo(ammo10Name, ammo10Des, ammo10_price, notEnoughMoney);
};
};
break;
};
saveToLSO();
};
_setToolTipAmmo = function (_arg1:String, _arg2:String, _arg3:Number, _arg4:String){
toolTipAmmo_mc.ammoName_txt.text = String(_arg1);
toolTipAmmo_mc.description_txt.text = String(_arg2);
toolTipAmmo_mc.amount_txt.text = String(_arg3);
toolTipAmmo_mc.status_txt.text = String(_arg4);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
function frame11(){
stop();
bossDefeatAwards(level);
faderPlay();
updateQualityDisplay();
winPanel_mc.y = -232.5;
Tweener.addTween(winPanel_mc, {y:232.5, time:1, transition:"easeOutStrong"});
winPanel_mc.money_txt.text = String(("OBTAINED CRYSTAL: " + money_levels));
winPanel_mc.kill_txt.text = String(("DESTROYED ENEMIES: " + kills_levels));
winPanel_mc.overallMoney_txt.text = String(("OVERALL OBTAINED CRYSTALS: " + moneyOverall));
winPanel_mc.overallKill_txt.text = String(("OVERALL DESTROYED ENEMIES: " + killsOverall));
winPanel_mc.points_txt.text = String(("OVERALL POINTS: " + pointsOverall));
navButtons(winPanel_mc.next_btn, "upgrade");
}
function frame14(){
stop();
initPostSurFin();
navButtons(surFinPanel_mc.submitScore_btn, "submitScores");
}
function frame15(){
stop();
addChild(agi);
agi.showScoreboardSubmit(iRumble_so.data.pointsOverall_so);
navButtons(backToMain_btn, "title");
}
function frame10(){
stop();
gameBG_mc.gotoAndStop(selectedLevel);
initUI();
faderPlay();
updateQualityDisplay();
okBtn(intructionLevel_mc.ok_btn, "");
okBtn(intructionSurvival_mc.ok_btn, "");
}
public function keyIsUp(_arg1:KeyboardEvent){
if (_arg1.keyCode == 32){
keyIsPressed = "false";
};
if ((((((((((_arg1.keyCode == 66)) || ((_arg1.keyCode == 78)))) || ((_arg1.keyCode == 77)))) || ((_arg1.keyCode == 86)))) || ((_arg1.keyCode == 82)))){
keyIsPressed = "false";
};
}
function frame13(){
stop();
initPostLevelFin();
navButtons(winPanel_mc.next_btn, "title");
}
function frame12(){
stop();
initPostLevel();
navButtons(lostPanel_mc.next_btn, "upgrade");
}
public function trackLevelPlayDuration(_arg1:TimerEvent){
if (iRumble_so.data.gamePlayDurationLevel_so == undefined){
gamePlayDurationLevel = 0;
iRumble_so.data.gamePlayDurationLevel_so = gamePlayDurationLevel;
} else {
gamePlayDurationLevel = iRumble_so.data.gamePlayDurationLevel_so;
};
gamePlayDurationLevel++;
iRumble_so.data.gamePlayDurationLevel_so = gamePlayDurationLevel;
if ((((gamePlayDurationLevel == 600)) && ((iRumble_so.data.award10_so == undefined)))){
iRumble_so.data.award10_so = 1;
promptAward(award10name, 8);
};
}
public function level7EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 4){
_local2 = Math.floor((Math.random() * level7EnemiesArray.length));
_local3 = level7EnemiesArray[_local2];
deployEnemy(_local3);
level7EnemiesArray.splice(_local2, 1);
};
if (level7EnemiesArray.length <= 0){
level7EnemiesArray = level7EnemiesArrayContent.concat();
};
}
public function removeFromArray(_arg1:Array, _arg2:MovieClip){
var _local3:Number;
_local3 = 0;
while (_local3 < _arg1.length) {
if (_arg1[_local3] == _arg2){
_arg1.splice(_local3, 1);
levelContainer_mc.removeChild(_arg2);
break;
};
_local3++;
};
}
public function attPlayerSpecialMinnion(){
var _local1:Number;
var _local2:MinnionCrosshair;
var _local3:PlayerSpecialMinnion;
_local1 = 0;
while (_local1 < minnionsLevel) {
_local2 = new MinnionCrosshair();
levelContainer_mc.addChild(_local2);
_local3 = new PlayerSpecialMinnion(levelContainer_mc.player_mc);
_local3.crosshair_mc = _local2;
levelContainer_mc.addChild(_local3);
playerSpecialMinnionArray.push(_local3);
_local1++;
};
uiMinnion_mc.minNum_txt.text = String(playerSpecialMinnionArray.length);
}
public function attTeleFlash(_arg1:MovieClip){
var _local2:TeleportFlash;
_local2 = new TeleportFlash();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
levelContainer_mc.addChild(_local2);
}
public function newGamePromptBtn(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (btn == newGamePrompt_mc.yes_btn){
deleteLSO();
LSO_Checker();
level = 1;
selectedLevel = 1;
gameMode = "levelMode";
gotoAndStop("gameScreen");
} else {
Tweener.addTween(newGamePrompt_mc, {y:-290, time:1, transition:"easeOutStrong"});
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function awardsBtn(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (btn == awards_btn){
Tweener.addTween(awardsPanel_mc, {x:0, time:1, transition:"easeOutStrong"});
} else {
if (btn == awardsPanel_mc.back_btn){
Tweener.addTween(awardsPanel_mc, {x:700, time:1, transition:"easeOutStrong"});
};
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function get_brightness():Number{
return (color.brightness);
}
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){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (btn == survivalMode_btn){
gameMode = "survivalMode";
} else {
if (btn == start_btn){
level = 1;
selectedLevel = 1;
gameMode = "levelMode";
};
};
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function bossDefeatAwards(_arg1:Number){
switch (_arg1){
case 4:
if (iRumble_so.data.award1_so == undefined){
promptAward(award1name, 4);
iRumble_so.data.award1_so = 1;
};
break;
case 7:
if (iRumble_so.data.award2_so == undefined){
promptAward(award2name, 4);
iRumble_so.data.award2_so = 1;
};
break;
case 10:
if (iRumble_so.data.award3_so == undefined){
promptAward(award3name, 4);
iRumble_so.data.award3_so = 1;
};
break;
case 13:
if (iRumble_so.data.award4_so == undefined){
promptAward(award4name, 4);
iRumble_so.data.award4_so = 1;
};
break;
case 15:
if (iRumble_so.data.award5_so == undefined){
promptAward(award5name, 4);
iRumble_so.data.award5_so = 1;
};
break;
};
}
public function attPlayerAmmo10(_arg1:Number){
var _local2:Number;
var _local3:Number;
var _local4:PlayerAmmo3a;
var _local5:PlayerAmmo3a;
var _local6:PlayerAmmo3b;
var _local7:PlayerAmmo3b;
var _local8:PlayerAmmo3c;
_local2 = 10;
_local3 = 4;
playerAmmo3dRof--;
if (playerAmmo3dRof <= 0){
_local4 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local4);
playerAmmo3aArray.push(_local4);
_local5 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local5);
playerAmmo3aArray.push(_local5);
_local6 = new PlayerAmmo3b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local3));
levelContainer_mc.addChild(_local6);
playerAmmo3bArray.push(_local6);
_local7 = new PlayerAmmo3b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local3));
levelContainer_mc.addChild(_local7);
playerAmmo3bArray.push(_local7);
_local8 = new PlayerAmmo3c(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], _arg1);
levelContainer_mc.addChild(_local8);
playerAmmo3cArray.push(_local8);
playerAmmo3dRof = 3;
};
}
public function AttPlayersSpecialNuke(){
var _local1:Number;
_local1 = (enemyArray.length - 1);
while (_local1 >= 0) {
enemyArray[_local1].life = -1;
_local1--;
};
if (bossArray.length != 0){
bossArray[0].life = (bossArray[0].life - (bossArray[0].life * 0.25));
};
nukeFlash_mc.gotoAndPlay(2);
}
public function playShot2Snd(){
if (music == "on"){
shotSnd2.play();
};
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
bar_mc.innerBar_mc.scaleX = (_local3 / _local2);
loader_txt.text = (Math.floor(((_local3 / _local2) * 100)) + "%");
if (_local2 == _local3){
this.removeEventListener(Event.ENTER_FRAME, loading);
gotoAndPlay(2);
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function checkHit(_arg1:Array, _arg2:Array, _arg3:Number){
var _local4:Number;
var _local5:Number;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = (_arg2.length - 1);
while (_local5 >= 0) {
if (_arg1[_local4].hitBox_mc.hitTestObject(_arg2[_local5].hitBox_mc)){
_arg1[_local4].destruct("");
_arg2[_local5].life = (_arg2[_local5].life - _arg3);
break;
};
_local5--;
};
_local4--;
};
}
public function firstTimeDyingAwards(){
if (iRumble_so.data.award20_so == undefined){
iRumble_so.data.award20_so = 1;
promptAward(award20name, 5);
};
}
public function level11EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 6){
_local2 = Math.floor((Math.random() * level11EnemiesArray.length));
_local3 = level11EnemiesArray[_local2];
deployEnemy(_local3);
level11EnemiesArray.splice(_local2, 1);
};
if (level11EnemiesArray.length <= 0){
level11EnemiesArray = level11EnemiesArrayContent.concat();
};
}
public function levelSelect(_arg1:MovieClip, _arg2:Number){
var movr:Function;
var mout:Function;
var mclck:Function;
var _setToolTipLevel:Function;
var grayOut:Function;
var btn = _arg1;
var lvl = _arg2;
movr = function (_arg1:MouseEvent){
playBtnSnd();
switch (btn){
case levelPanel_mc.level1_btn:
_setToolTipLevel(1);
break;
case levelPanel_mc.level2_btn:
_setToolTipLevel(2);
break;
case levelPanel_mc.level3_btn:
_setToolTipLevel(3);
break;
case levelPanel_mc.level4_btn:
_setToolTipLevel(4);
break;
case levelPanel_mc.level5_btn:
_setToolTipLevel(5);
break;
case levelPanel_mc.level6_btn:
_setToolTipLevel(6);
break;
case levelPanel_mc.level7_btn:
_setToolTipLevel(7);
break;
case levelPanel_mc.level8_btn:
_setToolTipLevel(8);
break;
case levelPanel_mc.level9_btn:
_setToolTipLevel(9);
break;
case levelPanel_mc.level10_btn:
_setToolTipLevel(10);
break;
case levelPanel_mc.level11_btn:
_setToolTipLevel(11);
break;
case levelPanel_mc.level12_btn:
_setToolTipLevel(12);
break;
case levelPanel_mc.level13_btn:
_setToolTipLevel(13);
break;
case levelPanel_mc.level14_btn:
_setToolTipLevel(14);
break;
case levelPanel_mc.level15_btn:
_setToolTipLevel(15);
break;
};
Tweener.addTween(toolTipLevel_mc, {x:500, time:animSpeed, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(toolTipLevel_mc, {x:840, time:animSpeed, transition:"easeOutStrong"});
};
mclck = function (_arg1:MouseEvent){
gameMode = "levelMode";
switch (btn){
case levelPanel_mc.level1_btn:
selectedLevel = 1;
break;
case levelPanel_mc.level2_btn:
selectedLevel = 2;
break;
case levelPanel_mc.level3_btn:
selectedLevel = 3;
break;
case levelPanel_mc.level4_btn:
selectedLevel = 4;
break;
case levelPanel_mc.level5_btn:
selectedLevel = 5;
break;
case levelPanel_mc.level6_btn:
selectedLevel = 6;
break;
case levelPanel_mc.level7_btn:
selectedLevel = 7;
break;
case levelPanel_mc.level8_btn:
selectedLevel = 8;
break;
case levelPanel_mc.level9_btn:
selectedLevel = 9;
break;
case levelPanel_mc.level10_btn:
selectedLevel = 10;
break;
case levelPanel_mc.level11_btn:
selectedLevel = 11;
break;
case levelPanel_mc.level12_btn:
selectedLevel = 12;
break;
case levelPanel_mc.level13_btn:
selectedLevel = 13;
break;
case levelPanel_mc.level14_btn:
selectedLevel = 14;
break;
case levelPanel_mc.level15_btn:
selectedLevel = 15;
break;
};
if (selectedLevel <= level){
gotoAndStop("gameScreen");
};
trace(selectedLevel);
};
_setToolTipLevel = function (_arg1:Number){
toolTipLevel_mc.level_txt.text = String(("level: " + lvl));
if (_arg1 <= level){
toolTipLevel_mc.status_txt.text = "unlocked";
} else {
toolTipLevel_mc.status_txt.text = "locked";
};
};
grayOut = function (_arg1:Number){
if (_arg1 > level){
btn.transform.colorTransform = set_brightness(-0.4);
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
switch (btn){
case levelPanel_mc.level1_btn:
grayOut(1);
break;
case levelPanel_mc.level2_btn:
grayOut(2);
break;
case levelPanel_mc.level3_btn:
grayOut(3);
break;
case levelPanel_mc.level4_btn:
grayOut(4);
break;
case levelPanel_mc.level5_btn:
grayOut(5);
break;
case levelPanel_mc.level6_btn:
grayOut(6);
break;
case levelPanel_mc.level7_btn:
grayOut(7);
break;
case levelPanel_mc.level8_btn:
grayOut(8);
break;
case levelPanel_mc.level9_btn:
grayOut(9);
break;
case levelPanel_mc.level10_btn:
grayOut(10);
break;
case levelPanel_mc.level11_btn:
grayOut(11);
break;
case levelPanel_mc.level12_btn:
grayOut(12);
break;
case levelPanel_mc.level13_btn:
grayOut(13);
break;
case levelPanel_mc.level14_btn:
grayOut(14);
break;
case levelPanel_mc.level15_btn:
grayOut(15);
break;
};
}
public function attMinnionAmmo(_arg1:MovieClip, _arg2:Number){
var _local3:PlayerAmmo1a;
_local3 = new PlayerAmmo1a(_arg1.x, _arg1.y, _arg2);
levelContainer_mc.addChild(_local3);
playerAmmo1aArray.push(_local3);
}
public function playBtnSnd(){
if (music == "on"){
btnSnd.play();
};
}
public function attEnemy10(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy10;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy10(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy12(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy12;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy12(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function playBG2Snd(){
SoundMixer.stopAll();
if (music == "on"){
bgSnd2.play(0, int.MAX_VALUE);
};
}
public function initTitlePage(){
faderPlay();
updateQualityDisplay();
title_mc.y = -300;
start_btn.y = 700;
newGame_btn.y = 700;
loadGame_btn.y = 700;
justAline_mc.y = 700;
survivalMode_btn.y = 700;
highscores_btn.y = 700;
moreGames_btn.y = 700;
spaceShip_mc.scaleX = 0;
spaceShip_mc.scaleY = 0;
Tweener.addTween(title_mc, {y:196.9, time:1, transition:"easeOutStrong"});
Tweener.addTween(spaceShip_mc, {scaleX:1, scaleY:1, delay:0.5, time:2, transition:"easeOutStrong"});
if (iRumble_so.data.gameDataExist != undefined){
Tweener.addTween(newGame_btn, {y:307.9, delay:0.6, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(loadGame_btn, {y:366.9, delay:0.7, time:0.5, transition:"easeOutStrong"});
navButtons(loadGame_btn, "upgrade");
} else {
Tweener.addTween(start_btn, {y:337.6, delay:0.6, time:0.5, transition:"easeOutStrong"});
};
Tweener.addTween(justAline_mc, {y:379.5, delay:0.75, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(survivalMode_btn, {y:428.9, delay:0.8, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(highscores_btn, {y:489.9, delay:0.9, time:0.5, transition:"easeOutStrong"});
Tweener.addTween(moreGames_btn, {y:541, delay:1, time:0.5, transition:"easeOutStrong"});
stage.addEventListener(Event.ENTER_FRAME, titleLooper);
}
public function upgrades(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
switch (btn){
case upgradePanel_mc.upgrade1_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + speedLevel_price));
if (speedLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade2_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + duraLevel_price));
if (duraLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade3_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + armorRepairSpeedLevel_price));
if (armorRepairSpeedLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade4_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + bulletBarrageLevel_price));
if (bulletBarrageLevel >= 3){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade5_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + voltageJammerLevel_price));
if (voltageJammerLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade6_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + minnionsLevel_price));
if (minnionsLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
case upgradePanel_mc.upgrade7_btn:
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + rechargeRateLevel_price));
if (rechargeRateLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
toolTipUpgrades_mc.status_txt.text = String("upgradable");
};
break;
};
Tweener.addTween(toolTipUpgrades_mc, {y:444.3, time:animSpeed, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(toolTipUpgrades_mc, {y:-105.7, time:animSpeed, transition:"easeInStrong"});
};
mclck = function (_arg1:MouseEvent){
trace("upgrade");
switch (btn){
case upgradePanel_mc.upgrade1_btn:
if (speedLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= speedLevel_price){
speedLevel++;
upgradePanel_mc.showSpeedLevel_txt.text = String((speedLevel + "/5"));
updateMoney(moneyOverall, speedLevel_price);
speedLevel_price = (speedLevel_price + speedLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + speedLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade2_btn:
if (duraLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= duraLevel_price){
duraLevel++;
upgradePanel_mc.showArmorLevel_txt.text = String((duraLevel + "/5"));
updateMoney(moneyOverall, duraLevel_price);
duraLevel_price = (duraLevel_price + duraLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + duraLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade3_btn:
if (armorRepairSpeedLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= armorRepairSpeedLevel_price){
armorRepairSpeedLevel++;
upgradePanel_mc.repairLevel_txt.text = String((armorRepairSpeedLevel + "/5"));
updateMoney(moneyOverall, armorRepairSpeedLevel_price);
armorRepairSpeedLevel_price = (armorRepairSpeedLevel_price + armorRepairSpeedLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + armorRepairSpeedLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade4_btn:
if (bulletBarrageLevel >= 3){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= bulletBarrageLevel_price){
bulletBarrageLevel++;
upgradePanel_mc.bulletBarrageLevel_txt.text = String((bulletBarrageLevel + "/3"));
updateMoney(moneyOverall, bulletBarrageLevel_price);
bulletBarrageLevel_price = (bulletBarrageLevel_price + bulletBarrageLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + bulletBarrageLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade5_btn:
if (voltageJammerLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= voltageJammerLevel_price){
voltageJammerLevel++;
upgradePanel_mc.voltageJammerLevel_txt.text = String((voltageJammerLevel + "/5"));
updateMoney(moneyOverall, voltageJammerLevel_price);
voltageJammerLevel_price = (voltageJammerLevel_price + voltageJammerLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + voltageJammerLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade6_btn:
if (minnionsLevel >= 4){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= minnionsLevel_price){
minnionsLevel++;
upgradePanel_mc.minnionLevel_txt.text = String((minnionsLevel + "/4"));
updateMoney(moneyOverall, minnionsLevel_price);
minnionsLevel_price = (minnionsLevel_price + minnionsLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + minnionsLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.upgrade7_btn:
if (rechargeRateLevel >= 5){
toolTipUpgrades_mc.status_txt.text = String("upgrade complete");
} else {
if (moneyOverall >= rechargeRateLevel_price){
rechargeRateLevel++;
upgradePanel_mc.rechargeLevel_txt.text = String((rechargeRateLevel + "/5"));
updateMoney(moneyOverall, rechargeRateLevel_price);
rechargeRateLevel_price = (rechargeRateLevel_price + rechargeRateLevel_price);
toolTipUpgrades_mc.amount_txt.text = String(("AMOUNT: " + rechargeRateLevel_price));
} else {
toolTipUpgrades_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function playShot4Snd(){
if (music == "on"){
shotSnd4.play();
};
}
public function backToInit(){
introSpaceShip_mc.scaleX = 1;
introSpaceShip_mc.scaleY = 1;
introSpaceShip_mc.x = -1000;
}
public function attEnemy11(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy11;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy11(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function screenShake(){
Earthquake.go(this, 6, 0.3);
}
public function attEnemyAmmo1(_arg1:MovieClip, _arg2:Number){
var _local3:EnemyAmmo1;
_local3 = new EnemyAmmo1(_arg1.x, _arg1.y, _arg2);
levelContainer_mc.addChild(_local3);
enemyAmmo1Array.push(_local3);
}
public function attEnemyAmmo2(_arg1:MovieClip, _arg2:Number){
var _local3:EnemyAmmo2;
_local3 = new EnemyAmmo2(_arg1.x, _arg1.y, _arg2);
levelContainer_mc.addChild(_local3);
enemyAmmo2Array.push(_local3);
}
public function level14EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 8){
_local2 = Math.floor((Math.random() * level14EnemiesArray.length));
_local3 = level14EnemiesArray[_local2];
deployEnemy(_local3);
level14EnemiesArray.splice(_local2, 1);
};
if (level14EnemiesArray.length <= 0){
level14EnemiesArray = level14EnemiesArrayContent.concat();
};
}
public function resetSpecialBulletBarrage(_arg1:TimerEvent){
bulletBarrageTimer.reset();
}
public function toPostLevelTimer(_arg1:TimerEvent){
bulletBarrageTimer.reset();
toPostSec = 3;
playIntroSnd();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, looper);
toPostLevelTimerObj.reset();
levelGameTimerObj.reset();
level1EnemyDeploymentTimerObj.reset();
level2EnemyDeploymentTimerObj.reset();
level3EnemyDeploymentTimerObj.reset();
level4EnemyDeploymentTimerObj.reset();
level5EnemyDeploymentTimerObj.reset();
level6EnemyDeploymentTimerObj.reset();
level7EnemyDeploymentTimerObj.reset();
level8EnemyDeploymentTimerObj.reset();
level9EnemyDeploymentTimerObj.reset();
level10EnemyDeploymentTimerObj.reset();
level11EnemyDeploymentTimerObj.reset();
level12EnemyDeploymentTimerObj.reset();
level13EnemyDeploymentTimerObj.reset();
level14EnemyDeploymentTimerObj.reset();
level15EnemyDeploymentTimerObj.reset();
endLevelCleanUpArray(moneyArray);
endLevelCleanUpArray(playerAmmo1aArray);
endLevelCleanUpArray(playerAmmo1bArray);
endLevelCleanUpArray(playerAmmo1cArray);
endLevelCleanUpArray(playerAmmo2aArray);
endLevelCleanUpArray(playerAmmo2bArray);
endLevelCleanUpArray(playerAmmo2cArray);
endLevelCleanUpArray(playerAmmo3aArray);
endLevelCleanUpArray(playerAmmo3bArray);
endLevelCleanUpArray(playerAmmo3cArray);
endLevelCleanUpArray(playerSpecialMinnionArray);
endLevelCleanUpArray(bossArray);
endLevelCleanUpArray(enemyArray);
endLevelCleanUpArray(enemyAmmo1Array);
endLevelCleanUpArray(enemyAmmo2Array);
endLevelCleanUpArray(enemyAmmo3Array);
if (gameMode == "levelMode"){
trackPlayDurationLevelTmr.reset();
if (lifeNum > 0){
if (selectedLevel == level){
level++;
if (level >= 15){
level = 15;
};
};
killsOverall = (killsOverall + kills_levels);
moneyOverall = (moneyOverall + money_levels);
saveToLSO();
lifeAwards();
if (selectedLevel >= 15){
gotoAndStop("postLevelFin");
} else {
gotoAndStop("postWin");
};
} else {
gotoAndStop("postLost");
};
} else {
trackPlayDurationSurvivalTmr.reset();
survivalGameTimerObj.reset();
suvivalModeEnemyDeploymentTimerObj.reset();
if (iRumble_so.data.pointsOverall_so == undefined){
iRumble_so.data.pointsOverall_so = points_levels;
} else {
if (points_levels > iRumble_so.data.pointsOverall_so){
iRumble_so.data.pointsOverall_so = points_levels;
};
};
gotoAndStop("postSurFin");
};
}
public function attEnemyAmmo3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:EnemyAmmo3;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new EnemyAmmo3(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyAmmo3Array.push(_local7);
_local6++;
};
}
public function looper(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
if ((((levelComplete == false)) && ((lifeNum <= 0)))){
toPostLevelTimerObj.start();
attExplosion(levelContainer_mc.player_mc);
levelContainer_mc.player_mc.x = -2000;
levelContainer_mc.player_mc.y = -2000;
levelComplete = true;
};
instanceLooper(moneyArray);
levelContainer_mc.player_mc.looper();
instanceLooper(playerAmmo1aArray);
instanceLooper(playerAmmo1bArray);
instanceLooper(playerAmmo1cArray);
instanceLooper(playerAmmo2aArray);
instanceLooper(playerAmmo2bArray);
instanceLooper(playerAmmo2cArray);
instanceLooper(playerAmmo3aArray);
instanceLooper(playerAmmo3bArray);
instanceLooper(playerAmmo3cArray);
instanceLooper(playerSpecialMinnionArray);
instanceLooper(enemyArray);
instanceLooper(bossArray);
if (voltageJammerInUse == "no"){
} else {
if (voltageJammerInUse == "yes"){
voltageJammerCount--;
if (voltageJammerCount <= 0){
voltageJammerInUse = "no";
};
};
};
instanceLooper(enemyAmmo1Array);
instanceLooper(enemyAmmo2Array);
instanceLooper(enemyAmmo3Array);
checkHit(playerAmmo1aArray, enemyArray, 1);
checkHit(playerAmmo1bArray, enemyArray, 1);
checkHit(playerAmmo1cArray, enemyArray, 1);
checkHit(playerAmmo2aArray, enemyArray, 2);
checkHit(playerAmmo2bArray, enemyArray, 2);
checkHit(playerAmmo2cArray, enemyArray, 2);
checkHit(playerAmmo3aArray, enemyArray, 3);
checkHit(playerAmmo3bArray, enemyArray, 3);
checkHit(playerAmmo3cArray, enemyArray, 3);
checkHit(playerAmmo1aArray, enemyAmmo3Array, 1);
checkHit(playerAmmo1bArray, enemyAmmo3Array, 1);
checkHit(playerAmmo1cArray, enemyAmmo3Array, 1);
checkHit(playerAmmo2aArray, enemyAmmo3Array, 1);
checkHit(playerAmmo2bArray, enemyAmmo3Array, 1);
checkHit(playerAmmo2cArray, enemyAmmo3Array, 1);
checkHit(playerAmmo3aArray, enemyAmmo3Array, 1);
checkHit(playerAmmo3bArray, enemyAmmo3Array, 1);
checkHit(playerAmmo3cArray, enemyAmmo3Array, 1);
checkHit(playerAmmo1aArray, bossArray, 1);
checkHit(playerAmmo1bArray, bossArray, 1);
checkHit(playerAmmo1cArray, bossArray, 1);
checkHit(playerAmmo2aArray, bossArray, 2);
checkHit(playerAmmo2bArray, bossArray, 2);
checkHit(playerAmmo2cArray, bossArray, 2);
checkHit(playerAmmo3aArray, bossArray, 3);
checkHit(playerAmmo3bArray, bossArray, 3);
checkHit(playerAmmo3cArray, bossArray, 3);
pCheckHit(bossArray, 10);
pCheckHit(enemyArray, 10);
pCheckHit(enemyAmmo1Array, 10);
pCheckHit(enemyAmmo2Array, 10);
pCheckHit(enemyAmmo3Array, 10);
if (lifeNum > 0){
firingFunction();
};
if (levelComplete == false){
crosshair_mc.x = mouseX;
crosshair_mc.y = mouseY;
_local4 = 20;
if ((((((((mouseX > (levelContainer_mc.player_mc.x + _local4))) || ((mouseX < (levelContainer_mc.player_mc.x - _local4))))) || ((mouseY > (levelContainer_mc.player_mc.y + _local4))))) || ((mouseY < (levelContainer_mc.player_mc.y - _local4))))){
levelContainer_mc.player_mc.x = ((mouseFollowSpeed * (levelContainer_mc.player_mc.x - mouseX)) + mouseX);
levelContainer_mc.player_mc.y = ((mouseFollowSpeed * (levelContainer_mc.player_mc.y - mouseY)) + mouseY);
};
levelContainer_mc.player_mc.bulbs_mc.rotation = (levelContainer_mc.player_mc.bulbs_mc.rotation - 0);
crosshair_mc.ui_mc.rotation = (crosshair_mc.ui_mc.rotation + 4);
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)){
levelContainer_mc.player_mc.y = (levelContainer_mc.player_mc.height / 2);
};
if (levelContainer_mc.player_mc.x >= (680 - (levelContainer_mc.player_mc.width / 2))){
levelContainer_mc.player_mc.x = (680 - (levelContainer_mc.player_mc.width / 2));
};
if (levelContainer_mc.player_mc.y >= (580 - (levelContainer_mc.player_mc.height / 2))){
levelContainer_mc.player_mc.y = (580 - (levelContainer_mc.player_mc.height / 2));
};
};
inGamePlanet1_mc.x = (inGamePlanet1_mc.x - 4);
if (inGamePlanet1_mc.x <= -200){
inGamePlanet1_mc.x = 880;
inGamePlanet1_mc.y = randomGenerator(50, 550);
};
inGamePlanet2_mc.x = (inGamePlanet2_mc.x - 3);
if (inGamePlanet2_mc.x <= -200){
inGamePlanet2_mc.x = 880;
inGamePlanet2_mc.y = randomGenerator(50, 550);
};
inGamePlanet2a_mc.x = (inGamePlanet2a_mc.x - 3);
if (inGamePlanet2a_mc.x <= -200){
inGamePlanet2a_mc.x = 880;
inGamePlanet2a_mc.y = randomGenerator(50, 550);
};
inGamePlanet3_mc.x = (inGamePlanet3_mc.x - 2);
if (inGamePlanet3_mc.x <= -200){
inGamePlanet3_mc.x = 880;
inGamePlanet3_mc.y = randomGenerator(50, 550);
};
inGamePlanet4_mc.x = (inGamePlanet4_mc.x - 1);
if (inGamePlanet4_mc.x <= -200){
inGamePlanet4_mc.x = 880;
inGamePlanet4_mc.y = randomGenerator(50, 550);
};
_local2 = 1;
bgStars1_mc.x = (bgStars1_mc.x - _local2);
if (bgStars1_mc.x <= -680){
bgStars1_mc.x = 700;
};
bgStars2_mc.x = (bgStars2_mc.x - _local2);
if (bgStars2_mc.x <= -680){
bgStars2_mc.x = 700;
};
bgStars3_mc.x = (bgStars3_mc.x - _local2);
if (bgStars3_mc.x <= -680){
bgStars3_mc.x = 700;
};
_local3 = 0.5;
bgStars1a_mc.x = (bgStars1a_mc.x - _local3);
if (bgStars1a_mc.x <= -680){
bgStars1a_mc.x = 700;
};
bgStars2a_mc.x = (bgStars2a_mc.x - _local3);
if (bgStars2a_mc.x <= -680){
bgStars2a_mc.x = 700;
};
bgStars3a_mc.x = (bgStars3a_mc.x - _local3);
if (bgStars3a_mc.x <= -680){
bgStars3a_mc.x = 700;
};
if (itemHealthNanoPack == "sold"){
if (levelComplete == false){
switch (armorRepairSpeedLevel){
case 1:
lifeNum = (lifeNum + 0.02);
break;
case 2:
lifeNum = (lifeNum + 0.03);
break;
case 3:
lifeNum = (lifeNum + 0.04);
break;
case 4:
lifeNum = (lifeNum + 0.05);
break;
case 5:
lifeNum = (lifeNum + 0.06);
break;
};
};
if (lifeNum >= lifeDenom){
lifeNum = lifeDenom;
};
};
if (lifeNum <= 0){
lifeNum = 0;
};
lifebar_mc.scaleX = (lifeNum / lifeDenom);
kills_txt.text = String(("KILLS: " + kills_levels));
if (itemBulletBarrageRecharging == "true"){
switch (rechargeRateLevel){
case 1:
itemBulletBarrageInventory = (itemBulletBarrageInventory + 0.08);
break;
case 2:
itemBulletBarrageInventory = (itemBulletBarrageInventory + 0.1);
break;
case 3:
itemBulletBarrageInventory = (itemBulletBarrageInventory + 0.12);
break;
case 4:
itemBulletBarrageInventory = (itemBulletBarrageInventory + 0.13);
break;
case 5:
itemBulletBarrageInventory = (itemBulletBarrageInventory + 0.14);
break;
};
if (itemBulletBarrageInventory > itemBulletBarrageMax){
itemBulletBarrageInventory = itemBulletBarrageMax;
itemBulletBarrageRecharging = "false";
};
uiBulletBarrage_mc.bar_mc.scaleX = (itemBulletBarrageInventory / itemBulletBarrageMax);
};
if (itemVoltageJammerRecharging == "true"){
switch (rechargeRateLevel){
case 1:
itemVoltageJammerInventory = (itemVoltageJammerInventory + 0.1);
break;
case 2:
itemVoltageJammerInventory = (itemVoltageJammerInventory + 0.12);
break;
case 3:
itemVoltageJammerInventory = (itemVoltageJammerInventory + 0.13);
break;
case 4:
itemVoltageJammerInventory = (itemVoltageJammerInventory + 0.14);
break;
case 5:
itemVoltageJammerInventory = (itemVoltageJammerInventory + 0.15);
break;
};
if (itemVoltageJammerInventory >= itemVoltageJammerMax){
voltageJammerInUse = "no";
voltageJammerCount = voltageJammerCountValue;
itemVoltageJammerInventory = 100;
itemVoltageJammerRecharging = "false";
itemVoltageJammerInventory = itemVoltageJammerMax;
};
uiVoltageJammer_mc.bar_mc.scaleX = (itemVoltageJammerInventory / itemVoltageJammerMax);
};
killAwards();
moneyAwards();
}
public function firingFunction(){
switch (ammoSelected){
case 1:
attPlayerAmmo1(levelContainer_mc.player_mc.pointer);
break;
case 2:
attPlayerAmmo2(levelContainer_mc.player_mc.pointer);
break;
case 3:
attPlayerAmmo3(levelContainer_mc.player_mc.pointer);
break;
case 4:
attPlayerAmmo4(levelContainer_mc.player_mc.pointer);
break;
case 5:
attPlayerAmmo5(levelContainer_mc.player_mc.pointer);
break;
case 6:
attPlayerAmmo6(levelContainer_mc.player_mc.pointer);
break;
case 7:
attPlayerAmmo7(levelContainer_mc.player_mc.pointer);
break;
case 8:
attPlayerAmmo8(levelContainer_mc.player_mc.pointer);
break;
case 9:
attPlayerAmmo9(levelContainer_mc.player_mc.pointer);
break;
case 10:
attPlayerAmmo10(levelContainer_mc.player_mc.pointer);
break;
};
}
public function specialAttackAward(_arg1:String){
if (_arg1 == "nuke"){
if (enemyArray.length > 8){
if (iRumble_so.data.award8_so == undefined){
promptAward(award8name, 4);
iRumble_so.data.award8_so = 1;
};
};
};
if (_arg1 == "minions"){
if (minnionsLevel > 2){
if (iRumble_so.data.award9_so == undefined){
promptAward(award9name, 2);
iRumble_so.data.award9_so = 1;
};
};
};
}
public function playBG4Snd(){
SoundMixer.stopAll();
if (music == "on"){
bgSnd4.play(0, int.MAX_VALUE);
};
}
public function backToMain(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function achieverAward(){
if (iRumble_so.data.pointsOverall_so > 100){
if (iRumble_so.data.pointsBeaten_so == undefined){
iRumble_so.data.pointsBeaten_so = 1;
} else {
iRumble_so.data.pointsBeaten_so++;
};
if (iRumble_so.data.pointsBeaten_so == 3){
if ((iRumble_so.data.award12_so == undefined)){
promptAward(award12name, 1);
iRumble_so.data.award12_so = 1;
};
};
};
}
public function level3EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 6){
_local2 = Math.floor((Math.random() * level3EnemiesArray.length));
_local3 = level3EnemiesArray[_local2];
deployEnemy(_local3);
level3EnemiesArray.splice(_local2, 1);
};
if (level3EnemiesArray.length <= 0){
level3EnemiesArray = level3EnemiesArrayContent.concat();
};
}
public function mDown(_arg1:MouseEvent){
anchorShip = "true";
}
public function playIntroSnd(){
SoundMixer.stopAll();
if (music == "on"){
introSnd.play(0, int.MAX_VALUE);
};
}
public function killAwards(){
if (gameMode == "survivalMode"){
if ((((kills_levels >= 250)) && ((iRumble_so.data.award15_so == undefined)))){
iRumble_so.data.award15_so = 1;
promptAward(award15name, 4);
} else {
if ((((kills_levels >= 100)) && ((iRumble_so.data.award14_so == undefined)))){
iRumble_so.data.award14_so = 1;
promptAward(award14name, 4);
} else {
if ((((kills_levels >= 50)) && ((iRumble_so.data.award13_so == undefined)))){
iRumble_so.data.award13_so = 1;
promptAward(award13name, 4);
};
};
};
};
}
public function _setSelectedAmmoMarker(_arg1:Number, _arg2:Number){
upgradePanel_mc.selectedAmmo_mc.x = _arg1;
upgradePanel_mc.selectedAmmo_mc.y = _arg2;
}
public function initAwardsPanel(){
_setAwardsNameDesc(awardsPanel_mc.award1_mc, award1name, award1des);
_setAwardsNameDesc(awardsPanel_mc.award2_mc, award2name, award2des);
_setAwardsNameDesc(awardsPanel_mc.award3_mc, award3name, award3des);
_setAwardsNameDesc(awardsPanel_mc.award4_mc, award4name, award4des);
_setAwardsNameDesc(awardsPanel_mc.award5_mc, award5name, award5des);
_setAwardsNameDesc(awardsPanel_mc.award6_mc, award6name, award6des);
_setAwardsNameDesc(awardsPanel_mc.award7_mc, award7name, award7des);
_setAwardsNameDesc(awardsPanel_mc.award8_mc, award8name, award8des);
_setAwardsNameDesc(awardsPanel_mc.award9_mc, award9name, award9des);
_setAwardsNameDesc(awardsPanel_mc.award10_mc, award10name, award10des);
_setAwardsNameDesc(awardsPanel_mc.award11_mc, award11name, award11des);
_setAwardsNameDesc(awardsPanel_mc.award12_mc, award12name, award12des);
_setAwardsNameDesc(awardsPanel_mc.award13_mc, award13name, award13des);
_setAwardsNameDesc(awardsPanel_mc.award14_mc, award14name, award14des);
_setAwardsNameDesc(awardsPanel_mc.award15_mc, award15name, award15des);
_setAwardsNameDesc(awardsPanel_mc.award16_mc, award16name, award16des);
_setAwardsNameDesc(awardsPanel_mc.award17_mc, award17name, award17des);
_setAwardsNameDesc(awardsPanel_mc.award18_mc, award18name, award18des);
_setAwardsNameDesc(awardsPanel_mc.award19_mc, award19name, award19des);
_setAwardsNameDesc(awardsPanel_mc.award20_mc, award20name, award20des);
if (iRumble_so.data.award1_so != undefined){
awardsPanel_mc.award1_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award2_so != undefined){
awardsPanel_mc.award2_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award3_so != undefined){
awardsPanel_mc.award3_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award4_so != undefined){
awardsPanel_mc.award4_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award5_so != undefined){
awardsPanel_mc.award5_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award6_so != undefined){
awardsPanel_mc.award6_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award7_so != undefined){
awardsPanel_mc.award7_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award8_so != undefined){
awardsPanel_mc.award8_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award9_so != undefined){
awardsPanel_mc.award9_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award10_so != undefined){
awardsPanel_mc.award10_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award11_so != undefined){
awardsPanel_mc.award11_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award12_so != undefined){
awardsPanel_mc.award12_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award13_so != undefined){
awardsPanel_mc.award13_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award14_so != undefined){
awardsPanel_mc.award14_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award15_so != undefined){
awardsPanel_mc.award15_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award16_so != undefined){
awardsPanel_mc.award16_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award17_so != undefined){
awardsPanel_mc.award17_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award18_so != undefined){
awardsPanel_mc.award18_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award19_so != undefined){
awardsPanel_mc.award19_mc.awardIcon.gotoAndStop(2);
};
if (iRumble_so.data.award20_so != undefined){
awardsPanel_mc.award20_mc.awardIcon.gotoAndStop(2);
};
}
public function okBtn(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var mclck:Function;
var _btn = _arg1;
var _mode = _arg2;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (_btn == intructionLevel_mc.ok_btn){
Tweener.addTween(intructionLevel_mc, {y:-1000, time:0.6, transition:"easeOutStrong"});
initLevelMode();
} else {
if (_btn == intructionSurvival_mc.ok_btn){
Tweener.addTween(intructionSurvival_mc, {y:-1000, time:0.6, transition:"easeOutStrong"});
initSurvivalMode();
};
};
};
_btn.buttonMode = true;
_btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
_btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
_btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function playExplodeSnd(){
if (music == "on"){
explodeSnd.play();
};
}
public function level6EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 5){
_local2 = Math.floor((Math.random() * level6EnemiesArray.length));
_local3 = level6EnemiesArray[_local2];
deployEnemy(_local3);
level6EnemiesArray.splice(_local2, 1);
};
if (level6EnemiesArray.length <= 0){
level6EnemiesArray = level6EnemiesArrayContent.concat();
};
}
public function initSurvivalMode(){
var _local1:PromptSpecialMinnion;
trackPlayDurationSurvivalTmr.start();
survivalDuration = 0;
maxEnemies = 3;
points_levels = 0;
playBG4Snd();
levelComplete = false;
money_levels = 0;
kills_levels = 0;
lifeNum = lifeDenom;
_player = levelContainer_mc.player_mc;
itemMinnionsUsed = "false";
itemNukeUsed = "false";
voltageJammerInUse = "no";
voltageJammerCount = voltageJammerCountValue;
itemVoltageJammerInventory = 100;
itemVoltageJammerRecharging = "false";
itemBulletBarrageInventory = itemBulletBarrageMax;
itemBulletBarrageRecharging = "false";
survivalModeEnemiesArray = survivalModeEnemiesArrayContent.concat();
survivalGameTimerObj.start();
suvivalModeEnemyDeploymentTimerObj.start();
toPostText_txt.text = "";
uiVoltageJammer_mc.y = -200;
uiBulletBarrage_mc.y = -200;
uiNuke_mc.y = -200;
uiMinnion_mc.y = -200;
if (itemVoltageJammer == "sold"){
uiVoltageJammer_mc.y = 8;
};
if (itemBulletBarrage == "sold"){
uiBulletBarrage_mc.y = 28;
};
if (itemNuke == "sold"){
uiNuke_mc.y = 8;
};
if (itemMinnions == "sold"){
uiMinnion_mc.y = 28;
};
switch (speedLevel){
case 0:
mouseFollowSpeed = 0.9;
break;
case 1:
mouseFollowSpeed = 0.8;
break;
case 2:
mouseFollowSpeed = 0.75;
break;
case 3:
mouseFollowSpeed = 0.7;
break;
case 4:
mouseFollowSpeed = 0.65;
break;
case 5:
mouseFollowSpeed = 0.6;
break;
};
switch (duraLevel){
case 0:
lifeDenom = 100;
break;
case 1:
lifeDenom = 110;
break;
case 2:
lifeDenom = 125;
break;
case 3:
lifeDenom = 140;
break;
case 4:
lifeDenom = 145;
break;
case 5:
lifeDenom = 150;
break;
};
if (ammo10 == "sold"){
ammoSelected = 10;
} else {
if (ammo9 == "sold"){
ammoSelected = 9;
} else {
if (ammo8 == "sold"){
ammoSelected = 8;
} else {
if (ammo7 == "sold"){
ammoSelected = 7;
} else {
if (ammo6 == "sold"){
ammoSelected = 6;
} else {
if (ammo5 == "sold"){
ammoSelected = 5;
} else {
if (ammo4 == "sold"){
ammoSelected = 4;
} else {
if (ammo3 == "sold"){
ammoSelected = 3;
} else {
if (ammo2 == "sold"){
ammoSelected = 2;
} else {
if (ammo1 == "sold"){
ammoSelected = 1;
};
};
};
};
};
};
};
};
};
};
Mouse.hide();
stage.addEventListener(Event.ENTER_FRAME, looper);
if (itemMinnions == "sold"){
if (itemMinnionsUsed == "false"){
_local1 = new PromptSpecialMinnion();
_local1.x = 340;
_local1.y = 210;
levelContainer_mc.addChild(_local1);
uiMinnion_mc.bar_mc.scaleX = 0;
attPlayerSpecialMinnion();
specialAttackAward("minions");
itemMinnionsUsed = "true";
};
};
}
public function levelGameTimer(_arg1:TimerEvent){
timeLeft--;
if ((((((((((((((((((((selectedLevel == 1)) || ((selectedLevel == 2)))) || ((selectedLevel == 4)))) || ((selectedLevel == 5)))) || ((selectedLevel == 7)))) || ((selectedLevel == 8)))) || ((selectedLevel == 11)))) || ((selectedLevel == 12)))) || ((selectedLevel == 13)))) || ((selectedLevel == 14)))){
timer_txt.text = String(("TIME LEFT: " + timeLeft));
} else {
timer_txt.text = String(("TIME LEFT FOR SHOTDOWN: " + timeLeft));
};
}
public function showHighscoresBtn(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
addChild(agi);
agi.showScoreboardList();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function playCashSnd(){
if (music == "on"){
cashSnd.play();
};
}
public function attPlayerAmmo3(_arg1:Number){
var _local2:PlayerAmmo1b;
var _local3:PlayerAmmo1b;
var _local4:PlayerAmmo1c;
playerAmmo3cRof--;
if (playerAmmo3cRof <= 0){
_local2 = new PlayerAmmo1b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - 2));
levelContainer_mc.addChild(_local2);
playerAmmo1bArray.push(_local2);
_local3 = new PlayerAmmo1b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + 2));
levelContainer_mc.addChild(_local3);
playerAmmo1bArray.push(_local3);
_local4 = new PlayerAmmo1c(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], _arg1);
levelContainer_mc.addChild(_local4);
playerAmmo1cArray.push(_local4);
playerAmmo3cRof = 4;
};
}
public function attPlayerAmmo5(_arg1:Number){
var _local2:Number;
var _local3:PlayerAmmo2b;
var _local4:PlayerAmmo2b;
_local2 = 4;
playerAmmo2bRof--;
if (playerAmmo2bRof <= 0){
_local3 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local3);
playerAmmo2bArray.push(_local3);
_local4 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local4);
playerAmmo2bArray.push(_local4);
playerAmmo2bRof = 3;
};
}
public function attPlayerAmmo6(_arg1:Number){
var _local2:Number;
var _local3:PlayerAmmo2b;
var _local4:PlayerAmmo2b;
var _local5:PlayerAmmo2c;
_local2 = 4;
playerAmmo2cRof--;
if (playerAmmo2cRof <= 0){
_local3 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local3);
playerAmmo2bArray.push(_local3);
_local4 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local4);
playerAmmo2bArray.push(_local4);
_local5 = new PlayerAmmo2c(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], _arg1);
levelContainer_mc.addChild(_local5);
playerAmmo2cArray.push(_local5);
playerAmmo2cRof = 4;
};
}
public function attPlayerAmmo8(_arg1:Number){
var _local2:Number;
var _local3:PlayerAmmo3a;
var _local4:PlayerAmmo3a;
var _local5:PlayerAmmo3b;
_local2 = 4;
playerAmmo3aRof--;
if (playerAmmo3aRof <= 0){
_local3 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local3);
playerAmmo3aArray.push(_local3);
_local4 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local4);
playerAmmo3aArray.push(_local4);
_local5 = new PlayerAmmo3b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], _arg1);
levelContainer_mc.addChild(_local5);
playerAmmo3bArray.push(_local5);
playerAmmo3aRof = 5;
};
}
public function attPlayerAmmo4(_arg1:Number){
var _local2:Number;
var _local3:PlayerAmmo2a;
var _local4:PlayerAmmo2a;
_local2 = 4;
playerAmmo2aRof--;
if (playerAmmo2aRof <= 0){
_local3 = new PlayerAmmo2a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local3);
playerAmmo2aArray.push(_local3);
_local4 = new PlayerAmmo2a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local4);
playerAmmo2aArray.push(_local4);
playerAmmo2aRof = 5;
};
}
public function attPlayerAmmo7(_arg1:Number){
var _local2:Number;
var _local3:Number;
var _local4:PlayerAmmo2b;
var _local5:PlayerAmmo2b;
var _local6:PlayerAmmo2c;
var _local7:PlayerAmmo2c;
_local2 = 6;
_local3 = 2;
playerAmmo2dRof--;
if (playerAmmo2dRof <= 0){
_local4 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local4);
playerAmmo2bArray.push(_local4);
_local5 = new PlayerAmmo2b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local5);
playerAmmo2bArray.push(_local5);
_local6 = new PlayerAmmo2c(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local3));
levelContainer_mc.addChild(_local6);
playerAmmo2cArray.push(_local6);
_local7 = new PlayerAmmo2c(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local3));
levelContainer_mc.addChild(_local7);
playerAmmo2cArray.push(_local7);
playerAmmo2dRof = 4;
};
}
public function attPlayerAmmo9(_arg1:Number){
var _local2:Number;
var _local3:Number;
var _local4:PlayerAmmo3a;
var _local5:PlayerAmmo3a;
var _local6:PlayerAmmo3b;
var _local7:PlayerAmmo3b;
_local2 = 10;
_local3 = 4;
playerAmmo3bRof--;
if (playerAmmo3bRof <= 0){
_local4 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local2));
levelContainer_mc.addChild(_local4);
playerAmmo3aArray.push(_local4);
_local5 = new PlayerAmmo3a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local2));
levelContainer_mc.addChild(_local5);
playerAmmo3aArray.push(_local5);
_local6 = new PlayerAmmo3b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - _local3));
levelContainer_mc.addChild(_local6);
playerAmmo3bArray.push(_local6);
_local7 = new PlayerAmmo3b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + _local3));
levelContainer_mc.addChild(_local7);
playerAmmo3bArray.push(_local7);
playerAmmo3bRof = 4;
};
}
public function attPlayerAmmo2(_arg1:Number){
var _local2:PlayerAmmo1b;
var _local3:PlayerAmmo1b;
playerAmmo1bRof--;
if (playerAmmo1bRof <= 0){
_local2 = new PlayerAmmo1b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - 2));
levelContainer_mc.addChild(_local2);
playerAmmo1bArray.push(_local2);
_local3 = new PlayerAmmo1b(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + 2));
levelContainer_mc.addChild(_local3);
playerAmmo1bArray.push(_local3);
playerAmmo1bRof = 6;
};
}
public function initPostLevel(){
faderPlay();
updateQualityDisplay();
lostPanel_mc.y = (162 - 100);
building_mc.y = (432.2 + 50);
land2_mc.y = (492.8 - 50);
land1_mc.y = (530.4 - 50);
Tweener.addTween(lostPanel_mc, {y:162, time:1, transition:"easeOutStrong"});
Tweener.addTween(building_mc, {y:432.2, time:1, transition:"easeOutStrong"});
Tweener.addTween(land2_mc, {y:492.8, time:1, transition:"easeOutStrong"});
Tweener.addTween(land1_mc, {y:530.4, time:1, transition:"easeOutStrong"});
}
public function creditsBtn(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (btn == credits_btn){
Tweener.addTween(creditsPanel_mc, {x:0, time:1, transition:"easeOutStrong"});
} else {
if (btn == creditsPanel_mc.back_btn){
Tweener.addTween(creditsPanel_mc, {x:-700, time:1, transition:"easeOutStrong"});
};
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function suvivalModeEnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:Number;
if (enemyArray.length < maxEnemies){
_local2 = survivalModeEnemiesArray[0];
trace(_local2);
deployEnemy(_local2);
survivalModeEnemiesArray.splice(0, 1);
};
if (survivalModeEnemiesArray.length <= 0){
maxEnemies++;
survivalModeEnemiesArray = survivalModeEnemiesArrayContent.concat();
};
}
public function attEnemy1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy1;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy1(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function level9EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 5){
_local2 = Math.floor((Math.random() * level9EnemiesArray.length));
_local3 = level9EnemiesArray[_local2];
deployEnemy(_local3);
level9EnemiesArray.splice(_local2, 1);
};
if (level9EnemiesArray.length <= 0){
level9EnemiesArray = level9EnemiesArrayContent.concat();
};
}
public function attEnemy5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy5;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy5(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy7(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Enemy7;
_local4 = 0;
while (_local4 < _arg3) {
_local5 = new Enemy7(_arg1, _arg2, levelContainer_mc.player_mc);
levelContainer_mc.addChild(_local5);
enemyArray.push(_local5);
attTeleFlash(_local5);
_local4++;
};
}
public function attEnemy8(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy8;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy8(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy2;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy2(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy4;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy4(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attPlayerAmmo1(_arg1:Number){
var _local2:PlayerAmmo1a;
var _local3:PlayerAmmo1a;
playerAmmo1aRof--;
if (playerAmmo1aRof <= 0){
_local2 = new PlayerAmmo1a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 - 2));
levelContainer_mc.addChild(_local2);
playerAmmo1aArray.push(_local2);
_local3 = new PlayerAmmo1a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], (_arg1 + 2));
levelContainer_mc.addChild(_local3);
playerAmmo1aArray.push(_local3);
playerAmmo1aRof = 6;
};
}
public function attEnemy6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy6;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy6(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){
var _local6:Number;
var _local7:Enemy9;
_local6 = 0;
while (_local6 < _arg5) {
_local7 = new Enemy9(_arg1, _arg2, _arg3, _arg4);
levelContainer_mc.addChild(_local7);
enemyArray.push(_local7);
attTeleFlash(_local7);
_local6++;
};
}
public function attEnemy3(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Enemy3;
_local4 = 0;
while (_local4 < _arg3) {
_local5 = new Enemy3(_arg1, _arg2, levelContainer_mc.player_mc);
levelContainer_mc.addChild(_local5);
enemyArray.push(_local5);
attTeleFlash(_local5);
_local4++;
};
}
public function initUI(){
toPostText_txt.text = "";
timer_txt.text = "TIME LEFT: ";
uiVoltageJammer_mc.y = -200;
uiBulletBarrage_mc.y = -200;
uiNuke_mc.y = -200;
uiMinnion_mc.y = -200;
intructionLevel_mc.y = -1000;
intructionSurvival_mc.y = -1000;
trace(("gameMode" + gameMode));
if (gameMode == "levelMode"){
kills_txt.text = "";
kills_txt.y = 2000;
intructionLevel_mc.y = 201.6;
if ((((((((((((((((((((selectedLevel == 1)) || ((selectedLevel == 2)))) || ((selectedLevel == 4)))) || ((selectedLevel == 5)))) || ((selectedLevel == 7)))) || ((selectedLevel == 8)))) || ((selectedLevel == 11)))) || ((selectedLevel == 12)))) || ((selectedLevel == 13)))) || ((selectedLevel == 14)))){
timer_txt.text = String(("TIME LEFT: " + 0));
} else {
timer_txt.text = String(("TIME LEFT FOR SHOTDOWN: " + 0));
};
} else {
kills_txt.text = "KILLS: 0";
intructionSurvival_mc.y = 201.6;
timer_txt.text = String(("SURVIVAL TIME: " + 0));
};
}
public function AttPlayersSpecialBulletBarrage(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:PlayerAmmo2a;
var _local8:Number;
var _local9:PlayerAmmo2a;
var _local10:Number;
var _local11:PlayerAmmo2a;
var _local12:Number;
var _local13:PlayerAmmo2a;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
switch (bulletBarrageLevel){
case 0:
trace(("BULLET BARRAGE LEVEL: " + bulletBarrageLevel));
_local6 = 0;
while (_local6 < 9) {
_local2 = (_local2 + 45);
_local7 = new PlayerAmmo2a(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, _local2);
levelContainer_mc.addChild(_local7);
playerAmmo2aArray.push(_local7);
_local6++;
};
break;
case 1:
trace(("BULLET BARRAGE LEVEL: " + bulletBarrageLevel));
_local8 = 0;
while (_local8 < 17) {
_local3 = (_local3 + 22.5);
_local9 = new PlayerAmmo2a(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, _local3);
levelContainer_mc.addChild(_local9);
playerAmmo2aArray.push(_local9);
_local8++;
};
break;
case 2:
trace(("BULLET BARRAGE LEVEL: " + bulletBarrageLevel));
_local10 = 0;
while (_local10 < 33) {
_local4 = (_local4 + 11.25);
_local11 = new PlayerAmmo2a(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, _local4);
levelContainer_mc.addChild(_local11);
playerAmmo2aArray.push(_local11);
_local10++;
};
break;
case 3:
trace(("BULLET BARRAGE LEVEL: " + bulletBarrageLevel));
_local12 = 0;
while (_local12 < 65) {
_local5 = (_local5 + 5.6);
_local13 = new PlayerAmmo2a(levelContainer_mc.player_mc.x, levelContainer_mc.player_mc.y, _local5);
levelContainer_mc.addChild(_local13);
playerAmmo2aArray.push(_local13);
_local12++;
};
break;
};
}
public function mUp(_arg1:MouseEvent){
anchorShip = "false";
}
public function updateQualityDisplay(){
switch (stage.quality){
case "LOW":
qualityShow_txt.text = "[ Q ] - Quality Toggle: LOW";
break;
case "MEDIUM":
qualityShow_txt.text = "[ Q ] - Quality Toggle: MEDIUM";
break;
case "HIGH":
qualityShow_txt.text = "[ Q ] - Quality Toggle: HIGH";
break;
};
}
public function endLevelCleanUpArray(_arg1:Array){
var _local2:Number;
_local2 = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].destruct("");
_local2--;
};
}
public function initLevelMode(){
var _local1:PromptSpecialMinnion;
trackPlayDurationLevelTmr.start();
levelComplete = false;
money_levels = 0;
kills_levels = 0;
lifeNum = lifeDenom;
_player = levelContainer_mc.player_mc;
itemMinnionsUsed = "false";
itemNukeUsed = "false";
voltageJammerInUse = "no";
voltageJammerCount = voltageJammerCountValue;
itemVoltageJammerInventory = 100;
itemVoltageJammerRecharging = "false";
itemBulletBarrageInventory = itemBulletBarrageMax;
itemBulletBarrageRecharging = "false";
switch (selectedLevel){
case 1:
playBG5Snd();
timeLeft = 30;
level1EnemyDeploymentTimerObj.start();
break;
case 2:
playBG4Snd();
timeLeft = 40;
level2EnemyDeploymentTimerObj.start();
break;
case 3:
playBG1Snd();
timeLeft = 60;
level3EnemyDeploymentTimerObj.start();
break;
case 4:
playBG5Snd();
timeLeft = 80;
level4EnemyDeploymentTimerObj.start();
break;
case 5:
playBG4Snd();
timeLeft = 80;
level5EnemyDeploymentTimerObj.start();
break;
case 6:
playBG1Snd();
timeLeft = 80;
level6EnemyDeploymentTimerObj.start();
break;
case 7:
playBG5Snd();
timeLeft = 100;
level7EnemyDeploymentTimerObj.start();
break;
case 8:
playBG4Snd();
timeLeft = 100;
level8EnemyDeploymentTimerObj.start();
break;
case 9:
playBG1Snd();
timeLeft = 100;
level9EnemyDeploymentTimerObj.start();
break;
case 10:
playBG5Snd();
timeLeft = 120;
level10EnemyDeploymentTimerObj.start();
break;
case 11:
playBG4Snd();
timeLeft = 120;
level11EnemyDeploymentTimerObj.start();
break;
case 12:
playBG1Snd();
timeLeft = 120;
level12EnemyDeploymentTimerObj.start();
break;
case 13:
playBG5Snd();
timeLeft = 140;
level13EnemyDeploymentTimerObj.start();
break;
case 14:
playBG4Snd();
timeLeft = 120;
level14EnemyDeploymentTimerObj.start();
break;
case 15:
playBG1Snd();
timeLeft = 120;
level15EnemyDeploymentTimerObj.start();
break;
};
levelGameTimerObj = new Timer(1000, timeLeft);
levelGameTimerObj.addEventListener(TimerEvent.TIMER, levelGameTimer);
levelGameTimerObj.addEventListener(TimerEvent.TIMER_COMPLETE, levelGameTimerFinish);
levelGameTimerObj.start();
toPostText_txt.text = "";
if ((((((((((((((((((((selectedLevel == 1)) || ((selectedLevel == 2)))) || ((selectedLevel == 4)))) || ((selectedLevel == 5)))) || ((selectedLevel == 7)))) || ((selectedLevel == 8)))) || ((selectedLevel == 10)))) || ((selectedLevel == 11)))) || ((selectedLevel == 13)))) || ((selectedLevel == 14)))){
timer_txt.text = String(("TIME LEFT: " + timeLeft));
} else {
timer_txt.text = String(("TIME LEFT FOR SHOTDOWN: " + timeLeft));
};
uiVoltageJammer_mc.y = -200;
uiBulletBarrage_mc.y = -200;
uiNuke_mc.y = -200;
uiMinnion_mc.y = -200;
if (itemVoltageJammer == "sold"){
uiVoltageJammer_mc.y = 8;
};
if (itemBulletBarrage == "sold"){
uiBulletBarrage_mc.y = 28;
};
if (itemNuke == "sold"){
uiNuke_mc.y = 8;
};
if (itemMinnions == "sold"){
uiMinnion_mc.y = 28;
};
switch (speedLevel){
case 0:
mouseFollowSpeed = 0.9;
break;
case 1:
mouseFollowSpeed = 0.8;
break;
case 2:
mouseFollowSpeed = 0.75;
break;
case 3:
mouseFollowSpeed = 0.7;
break;
case 4:
mouseFollowSpeed = 0.65;
break;
case 5:
mouseFollowSpeed = 0.6;
break;
};
switch (duraLevel){
case 0:
lifeDenom = 100;
break;
case 1:
lifeDenom = 110;
break;
case 2:
lifeDenom = 125;
break;
case 3:
lifeDenom = 140;
break;
case 4:
lifeDenom = 145;
break;
case 5:
lifeDenom = 150;
break;
};
switch (voltageJammerLevel){
case 1:
itemVoltageJammerMax = 100;
break;
case 2:
itemVoltageJammerMax = 125;
break;
case 3:
itemVoltageJammerMax = 140;
break;
case 4:
itemVoltageJammerMax = 145;
break;
case 5:
itemVoltageJammerMax = 150;
break;
};
Mouse.hide();
stage.addEventListener(Event.ENTER_FRAME, looper);
if (itemMinnions == "sold"){
if (itemMinnionsUsed == "false"){
_local1 = new PromptSpecialMinnion();
_local1.x = 340;
_local1.y = 210;
levelContainer_mc.addChild(_local1);
uiMinnion_mc.bar_mc.scaleX = 0;
attPlayerSpecialMinnion();
specialAttackAward("minions");
itemMinnionsUsed = "true";
};
};
}
public function level10EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 6){
_local2 = Math.floor((Math.random() * level10EnemiesArray.length));
_local3 = level10EnemiesArray[_local2];
deployEnemy(_local3);
level10EnemiesArray.splice(_local2, 1);
};
if (level10EnemiesArray.length <= 0){
level10EnemiesArray = level10EnemiesArrayContent.concat();
};
}
public function loadComplete(_arg1:Event):void{
agi = _arg1.currentTarget.content;
addChild(agi);
agi.init(devKey, gameKey);
}
public function attBoss1(){
var _local1:Boss1;
_local1 = new Boss1();
_local1.x = enemyRandomPositioning()[0];
_local1.y = -300;
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
BossLifeUIContainer_mc.y = 560;
}
public function attBoss2(){
var _local1:Boss2;
_local1 = new Boss2();
_local1.x = enemyRandomPositioning()[0];
_local1.y = -300;
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
BossLifeUIContainer_mc.y = 560;
}
public function attBoss3(){
var _local1:Boss3;
_local1 = new Boss3();
_local1.x = enemyRandomPositioning()[0];
_local1.y = -300;
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
BossLifeUIContainer_mc.y = 560;
}
public function attBoss4(){
var _local1:Boss4;
_local1 = new Boss4();
_local1.x = enemyRandomPositioning()[0];
_local1.y = -300;
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
BossLifeUIContainer_mc.y = 560;
}
public function attBoss5(){
var _local1:Boss5;
_local1 = new Boss5();
_local1.x = enemyRandomPositioning()[0];
_local1.y = -300;
levelContainer_mc.addChild(_local1);
bossArray.push(_local1);
BossLifeUIContainer_mc.y = 560;
}
public function set_brightness(_arg1:Number=0):Color{
if ((((_arg1 >= 0)) && ((_arg1 <= 1)))){
};
color.brightness = _arg1;
return (color);
}
function frame2(){
stage.frameRate = 45;
stage.showDefaultContextMenu = false;
stage.quality = "medium";
musicCode = 0;
music = "on";
qualityCode = 0;
iRumble_so = SharedObject.getLocal("iRumbleSavedData");
bgSnd1 = new BG1();
bgSnd2 = new BG2();
bgSnd3 = new BG3();
bgSnd4 = new BG4();
bgSnd5 = new BG5();
shotSnd1 = new Shot1();
shotSnd2 = new Shot2();
shotSnd3 = new Shot3();
shotSnd4 = new Shot4();
explodeSnd = new ExplodeSnd();
cashSnd = new CashSnd();
btnSnd = new BtnSnd();
introSnd = new IntroSnd();
crystalSnd = new CrystalSnd();
awardSnd = new AwardSnd();
bossWarningSnd = new BossWarningSnd();
}
function frame3(){
stage.frameRate = 30;
}
function frame4(){
stop();
playIntroSnd();
introSpaceShip_mc.scaleX = 0;
introSpaceShip_mc.scaleY = 0;
charInSpaceShip_mc.alpha = 0;
whiteFlash_mc.alpha = 0;
Tweener.addTween(introTextContainer_mc, {y:-705.6, time:30, transition:"linear"});
Tweener.addTween(introSpaceShip_mc, {scaleX:1, scaleY:1, delay:28, time:1, transition:"easeOutStrong"});
Tweener.addTween(introSpaceShip_mc, {alpha:0, scaleX:8, scaleY:8, delay:30, time:0.2, onComplete:backToInit, transition:"easeInBack"});
Tweener.addTween(whiteFlash_mc, {alpha:1, delay:30.3, time:0.3, transition:"easeOutStrong"});
Tweener.addTween(whiteFlash_mc, {alpha:0, delay:30.7, time:0.2, transition:"easeOutStrong"});
Tweener.addTween(charInSpaceShip_mc, {alpha:1, delay:30.5, time:1, transition:"easeOutStrong"});
Tweener.addTween(this, {alpha:1, delay:36, time:0.6, onComplete:introFinished, transition:"easeOutStrong"});
skipButton(skip_btn);
}
function frame6(){
MochiBot.track(this, "81ee312b");
color = new Color();
stage.showDefaultContextMenu = false;
award1name = "Hunter";
award2name = "Predator";
award3name = "Paladin";
award4name = "Warrior";
award5name = "Champion";
award6name = "Kick-ass";
award7name = "Heavy Damage";
award8name = "Bye Bye Suckers";
award9name = "Slave Driver";
award10name = "Eyes to the screen";
award11name = "Death Dodger";
award12name = "Achiever";
award13name = "Messenger of Disaster";
award14name = "Agent of Chaos";
award15name = "Death Bringer";
award16name = "Crystalatic";
award17name = "Crystalholic";
award18name = "Crystalmaniac";
award19name = "Allergic to Crystal";
award20name = "Ass-kicked";
award1des = "Defeated first boss.";
award2des = "Defeated Second boss.";
award3des = "Defeated Third boss.";
award4des = "Defeated fourth boss.";
award5des = "Defeated fifth boss.";
award6des = "Finishing a level with full health.";
award7des = "Finishing a level with 5% or less health.";
award8des = "Killing 8 or more enemies using Nuke in level mode.";
award9des = "Deploying 3 minions for the first time.";
award10des = "Playing level mode for 10 minutes.";
award11des = "Not dying for 7 minutes in survival mode.";
award12des = "Beating your best score 3 times. (Only applicable if initial score is 100+).";
award13des = "Killing 50 enemies in survival mode. ";
award14des = "Killing 100 enemies in survival mode.";
award15des = "Killing 250 enemies in survival mode.";
award16des = "Acquiring 75 crystals in survival mode.";
award17des = "Acquiring 150 crystals in survival mode. ";
award18des = "Acquiring 150 crystals in survival mode. ";
award19des = "Dying with out acquiring any crystals with 5 kills or more in survival mode. ";
award20des = "Dying for the first time in survival mode.";
gameMode = "levelMode";
levelComplete = false;
kills_levels = 0;
killsOverall = 0;
money_levels = 0;
moneyOverall = 0;
points_levels = 0;
pointsOverall = 0;
moneyOverall = 40;
level = 1;
selectedLevel = 1;
ammo1 = "available";
ammo2 = "available";
ammo3 = "available";
ammo4 = "available";
ammo5 = "available";
ammo6 = "available";
ammo7 = "available";
ammo8 = "available";
ammo9 = "available";
ammo10 = "available";
ammoSelected = 1;
itemHealthNanoPack = "available";
itemBulletBarrage = "available";
itemVoltageJammer = "available";
itemMinnions = "available";
itemNuke = "available";
itemBulletBarrageRecharging = "false";
itemVoltageJammerRecharging = "false";
itemMinnionsUsed = "false";
itemNukeUsed = "false";
itemBulletBarrageMax = 100;
itemBulletBarrageInventory = itemBulletBarrageMax;
itemVoltageJammerMax = 100;
itemVoltageJammerInventory = itemVoltageJammerMax;
ammo1_price = 0;
ammo2_price = 50;
ammo3_price = 150;
ammo4_price = 350;
ammo5_price = 625;
ammo6_price = 1200;
ammo7_price = 2100;
ammo8_price = 2800;
ammo9_price = 3750;
ammo10_price = 4000;
itemHealthNanoPack_price = 50;
itemBulletBarrage_price = 280;
itemVoltageJammer_price = 250;
itemMinnions_price = 500;
itemNuke_price = 200;
speedLevel_price = 100;
duraLevel_price = 100;
armorRepairSpeedLevel_price = 100;
bulletBarrageLevel_price = 100;
voltageJammerLevel_price = 100;
minnionsLevel_price = 100;
rechargeRateLevel_price = 100;
speedLevel = 1;
duraLevel = 1;
armorRepairSpeedLevel = 1;
bulletBarrageLevel = 1;
voltageJammerLevel = 1;
minnionsLevel = 1;
rechargeRateLevel = 1;
moneyArray = new Array();
bossArray = new Array();
enemyArray = new Array();
enemyAmmo1Array = new Array();
enemyAmmo2Array = new Array();
enemyAmmo3Array = new Array();
playerAmmo1aArray = new Array();
playerAmmo1bArray = new Array();
playerAmmo1cArray = new Array();
playerAmmo2aArray = new Array();
playerAmmo2bArray = new Array();
playerAmmo2cArray = new Array();
playerAmmo3aArray = new Array();
playerAmmo3bArray = new Array();
playerAmmo3cArray = new Array();
playerSpecialMinnionArray = new Array();
bulletBarrageCount = 4;
bulletBarrageTimer = new Timer(500, bulletBarrageCount);
bulletBarrageTimer.addEventListener(TimerEvent.TIMER, AttPlayersSpecialBulletBarrage);
bulletBarrageTimer.addEventListener(TimerEvent.TIMER_COMPLETE, resetSpecialBulletBarrage);
voltageJammerCountValue = 150;
voltageJammerCount = voltageJammerCountValue;
voltageJammerInUse = "no";
lifeDenom = 100;
lifeNum = lifeDenom;
keyIsPressed = "false";
anchorShip = "false";
mouseFollowSpeed = 0.9;
delete iRumble_so.data.pointsOverall_so;
LSO_Checker();
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyIsUp);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
level1EnemiesArrayContent = new Array(1, 1, 1, 1, 2);
level1EnemiesArray = level1EnemiesArrayContent.concat();
level2EnemiesArrayContent = new Array(1, 1, 1, 1, 2, 2, 3);
level2EnemiesArray = level2EnemiesArrayContent.concat();
level3EnemiesArrayContent = new Array(1, 1, 1, 2, 2, 2, 3, 3);
level3EnemiesArray = level3EnemiesArrayContent.concat();
level4EnemiesArrayContent = new Array(1, 1, 2, 2, 2, 3, 3, 4);
level4EnemiesArray = level4EnemiesArrayContent.concat();
level5EnemiesArrayContent = new Array(2, 2, 2, 3, 3, 4, 4, 5);
level5EnemiesArray = level5EnemiesArrayContent.concat();
level6EnemiesArrayContent = new Array(2, 3, 3, 4, 4, 5, 5, 6);
level6EnemiesArray = level6EnemiesArrayContent.concat();
level7EnemiesArrayContent = new Array(3, 4, 4, 5, 5, 6, 6, 7);
level7EnemiesArray = level7EnemiesArrayContent.concat();
level8EnemiesArrayContent = new Array(4, 5, 5, 6, 6, 7, 7, 8);
level8EnemiesArray = level8EnemiesArrayContent.concat();
level9EnemiesArrayContent = new Array(5, 6, 6, 7, 7, 7, 8, 9);
level9EnemiesArray = level9EnemiesArrayContent.concat();
level10EnemiesArrayContent = new Array(5, 6, 6, 6, 8, 9, 9, 10);
level10EnemiesArray = level10EnemiesArrayContent.concat();
level11EnemiesArrayContent = new Array(6, 7, 7, 9, 9, 10, 10, 11);
level11EnemiesArray = level11EnemiesArrayContent.concat();
level12EnemiesArrayContent = new Array(8, 9, 9, 10, 10, 11, 11, 12);
level12EnemiesArray = level12EnemiesArrayContent.concat();
level13EnemiesArrayContent = new Array(8, 9, 10, 10, 11, 11, 12, 12);
level13EnemiesArray = level13EnemiesArrayContent.concat();
level14EnemiesArrayContent = new Array(8, 9, 10, 10, 11, 11, 12, 12);
level14EnemiesArray = level14EnemiesArrayContent.concat();
level15EnemiesArrayContent = new Array(8, 9, 10, 10, 11, 11, 12, 12);
level15EnemiesArray = level15EnemiesArrayContent.concat();
levelGameTimerObj = new Timer(0);
level1EnemyDeploymentTimerObj = new Timer(1000, 0);
level1EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level1EnemyDeploymentTimer);
level2EnemyDeploymentTimerObj = new Timer(500, 0);
level2EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level2EnemyDeploymentTimer);
level3EnemyDeploymentTimerObj = new Timer(500, 0);
level3EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level3EnemyDeploymentTimer);
level4EnemyDeploymentTimerObj = new Timer(500, 0);
level4EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level4EnemyDeploymentTimer);
level5EnemyDeploymentTimerObj = new Timer(500, 0);
level5EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level5EnemyDeploymentTimer);
level6EnemyDeploymentTimerObj = new Timer(500, 0);
level6EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level6EnemyDeploymentTimer);
level7EnemyDeploymentTimerObj = new Timer(500, 0);
level7EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level7EnemyDeploymentTimer);
level8EnemyDeploymentTimerObj = new Timer(500, 0);
level8EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level8EnemyDeploymentTimer);
level9EnemyDeploymentTimerObj = new Timer(500, 0);
level9EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level9EnemyDeploymentTimer);
level10EnemyDeploymentTimerObj = new Timer(500, 0);
level10EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level10EnemyDeploymentTimer);
level11EnemyDeploymentTimerObj = new Timer(500, 0);
level11EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level11EnemyDeploymentTimer);
level12EnemyDeploymentTimerObj = new Timer(500, 0);
level12EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level12EnemyDeploymentTimer);
level13EnemyDeploymentTimerObj = new Timer(500, 0);
level13EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level13EnemyDeploymentTimer);
level14EnemyDeploymentTimerObj = new Timer(500, 0);
level14EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level14EnemyDeploymentTimer);
level15EnemyDeploymentTimerObj = new Timer(500, 0);
level15EnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, level15EnemyDeploymentTimer);
toPostSec = 3;
toPostLevelTimerObj = new Timer(1000, 5);
toPostLevelTimerObj.addEventListener(TimerEvent.TIMER, toPostLevelCounter);
toPostLevelTimerObj.addEventListener(TimerEvent.TIMER_COMPLETE, toPostLevelTimer);
bossWarningToBossArrivalTimerObj = new Timer(1000, 5);
bossWarningToBossArrivalTimerObj.addEventListener(TimerEvent.TIMER_COMPLETE, bossWarningToBossArrivalTimer);
maxEnemies = 12;
survivalModeEnemiesArrayContent = new Array(2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 3, 1, 1, 1, 2, 2, 2, 3, 3, 1, 1, 2, 2, 2, 3, 3, 4, 2, 2, 2, 3, 3, 4, 4, 5, 2, 3, 3, 4, 4, 5, 5, 6, 3, 4, 4, 5, 5, 6, 6, 7, 4, 5, 5, 6, 6, 7, 7, 8, 5, 6, 6, 7, 7, 8, 8, 9, 5, 6, 6, 8, 8, 9, 9, 10, 6, 7, 7, 9, 9, 10, 10, 11, 8, 9, 9, 10, 10, 11, 11, 12, 8, 9, 10, 10, 11, 11, 12, 12, 8, 9, 10, 10, 11, 11, 12, 12, 8, 9, 10, 10, 11, 11, 12, 12);
survivalModeEnemiesArray = survivalModeEnemiesArrayContent.concat();
survivalDuration = 0;
survivalGameTimerObj = new Timer(1000, 0);
survivalGameTimerObj.addEventListener(TimerEvent.TIMER, survivalGameTimer);
suvivalModeEnemyDeploymentTimerObj = new Timer(500, 0);
suvivalModeEnemyDeploymentTimerObj.addEventListener(TimerEvent.TIMER, suvivalModeEnemyDeploymentTimer);
disFromBarrel = 30;
playerAmmo1aRof = 1;
playerAmmo1bRof = 1;
playerAmmo3cRof = 1;
playerAmmo2aRof = 1;
playerAmmo2bRof = 1;
playerAmmo2cRof = 1;
playerAmmo2dRof = 1;
playerAmmo3aRof = 1;
playerAmmo3bRof = 1;
playerAmmo3dRof = 1;
trackPlayDurationLevelTmr = new Timer(1000, 0);
trackPlayDurationLevelTmr.addEventListener(TimerEvent.TIMER, trackLevelPlayDuration);
trackPlayDurationSurvivalTmr = new Timer(1000, 0);
trackPlayDurationSurvivalTmr.addEventListener(TimerEvent.TIMER, trackSurvivalPlayDuration);
}
function frame1(){
stop();
stage.showDefaultContextMenu = false;
agi_url = "http://agi.armorgames.com/assets/agi/AGI.swf";
Security.allowDomain(agi_url);
devKey = "6a6fb5c11bfb9abc84294050d244b4b4";
gameKey = "intergalactic-rumble";
urlRequest = new URLRequest(agi_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
this.addEventListener(Event.ENTER_FRAME, loading);
}
function frame7(){
stop();
initTitlePage();
navButtons(start_btn, "gameScreen");
navButtons(survivalMode_btn, "gameScreen");
newGameBtn(newGame_btn);
newGamePromptBtn(newGamePrompt_mc.yes_btn);
newGamePromptBtn(newGamePrompt_mc.no_btn);
awardsBtn(awards_btn);
awardsBtn(awardsPanel_mc.back_btn);
showHighscoresBtn(highscores_btn);
creditsBtn(credits_btn);
creditsBtn(creditsPanel_mc.back_btn);
initAwardsPanel();
}
function frame8(){
stop();
notEnoughMoney = "Not enough money";
ammo1Name = "Sabaw";
ammo2Name = "Bopis";
ammo3Name = "Paksiw";
ammo4Name = "Tilapia";
ammo5Name = "Pakbet";
ammo6Name = "Torta";
ammo7Name = "Bihon";
ammo8Name = "Lomi";
ammo9Name = "Tinola";
ammo10Name = "Kare x2";
ammo1Des = "Your free cannon. This won't be too helpful for long.";
ammo2Des = "The most affordable 2 barrel cannon. Not so powerful but can get the job done. ";
ammo3Des = "The best of the 3 light weapons. You can count on its fast rate of fire.";
ammo4Des = "The first of the four medium cannons. Slow rate of fire but with enough power.";
ammo5Des = "The combination of fast rate of fire and explosive rounds. Makes it a very dangerous weapon.";
ammo6Des = "Decent rate of fire but spews 3 projectiles.";
ammo7Des = "The fourth of the medium cannons. Spits 4 projectiles a second enough to cover wide area.";
ammo8Des = "A heavy weapon with slow rate of fire ;Capable of spewing 3 projectiles.";
ammo9Des = "4 Projectiles and descent rate of fire make this weapon a valuable item in your inventory.";
ammo10Des = "Obviously the powerful of all weapons. Capable of firing 5 explosive rounds simultaneously, meaning extreme damage to all nearby and far enemies.";
item1Des = "A must have item; This device repairs your ship's armor.";
item2Des = "Enables you to release large amount of bullets around your ship. \n\nPress B to activate.";
item3Des = "This allows you to paralize your enemies temporarily.\n\nPress V to activate.";
item4Des = "Activates an ever indispensable slave ship. Having 3 minions is very useful. To increase number of minions. You might want to buy upgrade no#6. \n\nAutomatically deployed at the beginning of each level.";
item5Des = "An important item for emergency situations; Can wipe out any enemy ships with just a push of a button.\n\nPress N to activate.";
animSpeed = 0;
backToMain(ship_mc, "title");
prelevelInit();
levelSelect(levelPanel_mc.level1_btn, 1);
levelSelect(levelPanel_mc.level2_btn, 2);
levelSelect(levelPanel_mc.level3_btn, 3);
levelSelect(levelPanel_mc.level4_btn, 4);
levelSelect(levelPanel_mc.level5_btn, 5);
levelSelect(levelPanel_mc.level6_btn, 6);
levelSelect(levelPanel_mc.level7_btn, 7);
levelSelect(levelPanel_mc.level8_btn, 8);
levelSelect(levelPanel_mc.level9_btn, 9);
levelSelect(levelPanel_mc.level10_btn, 10);
levelSelect(levelPanel_mc.level11_btn, 11);
levelSelect(levelPanel_mc.level12_btn, 12);
levelSelect(levelPanel_mc.level13_btn, 13);
levelSelect(levelPanel_mc.level14_btn, 14);
levelSelect(levelPanel_mc.level15_btn, 15);
acquireAmmos(upgradePanel_mc.ammo1_btn);
acquireAmmos(upgradePanel_mc.ammo2_btn);
acquireAmmos(upgradePanel_mc.ammo3_btn);
acquireAmmos(upgradePanel_mc.ammo4_btn);
acquireAmmos(upgradePanel_mc.ammo5_btn);
acquireAmmos(upgradePanel_mc.ammo6_btn);
acquireAmmos(upgradePanel_mc.ammo7_btn);
acquireAmmos(upgradePanel_mc.ammo8_btn);
acquireAmmos(upgradePanel_mc.ammo9_btn);
acquireAmmos(upgradePanel_mc.ammo10_btn);
upgrades(upgradePanel_mc.upgrade1_btn);
upgrades(upgradePanel_mc.upgrade2_btn);
upgrades(upgradePanel_mc.upgrade3_btn);
upgrades(upgradePanel_mc.upgrade4_btn);
upgrades(upgradePanel_mc.upgrade5_btn);
upgrades(upgradePanel_mc.upgrade6_btn);
upgrades(upgradePanel_mc.upgrade7_btn);
acquireItems(upgradePanel_mc.itemHealthPack_btn);
acquireItems(upgradePanel_mc.itemBulletBarrage_btn);
acquireItems(upgradePanel_mc.itemVoltageJammer_btn);
acquireItems(upgradePanel_mc.itemMinnion_btn);
acquireItems(upgradePanel_mc.itemNuke_btn);
}
public function acquireItems(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
switch (btn){
case upgradePanel_mc.itemHealthPack_btn:
toolTipItem_mc.amount_txt.text = String(itemHealthNanoPack_price);
toolTipItem_mc.status_txt.text = String(itemHealthNanoPack);
toolTipItem_mc.description_txt.text = String(item1Des);
break;
case upgradePanel_mc.itemBulletBarrage_btn:
toolTipItem_mc.amount_txt.text = String(itemBulletBarrage_price);
toolTipItem_mc.status_txt.text = String(itemBulletBarrage);
toolTipItem_mc.description_txt.text = String(item2Des);
break;
case upgradePanel_mc.itemVoltageJammer_btn:
toolTipItem_mc.amount_txt.text = String(itemVoltageJammer_price);
toolTipItem_mc.status_txt.text = String(itemVoltageJammer);
toolTipItem_mc.description_txt.text = String(item3Des);
break;
case upgradePanel_mc.itemMinnion_btn:
toolTipItem_mc.amount_txt.text = String(itemMinnions_price);
toolTipItem_mc.status_txt.text = String(itemMinnions);
toolTipItem_mc.description_txt.text = String(item4Des);
break;
case upgradePanel_mc.itemNuke_btn:
toolTipItem_mc.amount_txt.text = String(itemNuke_price);
toolTipItem_mc.status_txt.text = String(itemNuke);
toolTipItem_mc.description_txt.text = String(item5Des);
break;
};
Tweener.addTween(toolTipItem_mc, {y:414.8, time:animSpeed, transition:"easeOutStrong"});
};
mout = function (_arg1:MouseEvent){
Tweener.addTween(toolTipItem_mc, {y:-105.2, time:animSpeed, transition:"easeInStrong"});
};
mclck = function (_arg1:MouseEvent){
switch (btn){
case upgradePanel_mc.itemHealthPack_btn:
if (itemHealthNanoPack == "available"){
if (moneyOverall >= itemHealthNanoPack_price){
itemHealthNanoPack = "sold";
toolTipItem_mc.status_txt.text = String(itemHealthNanoPack);
toolTipItem_mc.description_txt.text = String(item1Des);
updateMoney(moneyOverall, itemHealthNanoPack_price);
upgradePanel_mc.item1Marker_mc.alpha = 1;
} else {
toolTipItem_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.itemBulletBarrage_btn:
if (itemBulletBarrage == "available"){
if (moneyOverall >= itemBulletBarrage_price){
itemBulletBarrage = "sold";
toolTipItem_mc.status_txt.text = String(itemBulletBarrage);
toolTipItem_mc.description_txt.text = String(item2Des);
updateMoney(moneyOverall, itemBulletBarrage_price);
upgradePanel_mc.item2Marker_mc.alpha = 1;
} else {
toolTipItem_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.itemVoltageJammer_btn:
if (itemVoltageJammer == "available"){
if (moneyOverall >= itemVoltageJammer_price){
itemVoltageJammer = "sold";
toolTipItem_mc.status_txt.text = String(itemVoltageJammer);
toolTipItem_mc.description_txt.text = String(item3Des);
updateMoney(moneyOverall, itemVoltageJammer_price);
upgradePanel_mc.item3Marker_mc.alpha = 1;
} else {
toolTipItem_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.itemMinnion_btn:
if (itemMinnions == "available"){
if (moneyOverall >= itemMinnions_price){
itemMinnions = "sold";
toolTipItem_mc.status_txt.text = String(itemMinnions);
toolTipItem_mc.description_txt.text = String(item4Des);
updateMoney(moneyOverall, itemMinnions_price);
upgradePanel_mc.item4Marker_mc.alpha = 1;
} else {
toolTipItem_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
case upgradePanel_mc.itemNuke_btn:
if (itemNuke == "available"){
if (moneyOverall >= itemNuke_price){
itemNuke = "sold";
toolTipItem_mc.status_txt.text = String(itemNuke);
toolTipItem_mc.description_txt.text = String(item5Des);
updateMoney(moneyOverall, itemNuke_price);
upgradePanel_mc.item5Marker_mc.alpha = 1;
} else {
toolTipItem_mc.status_txt.text = String(notEnoughMoney);
};
};
break;
};
saveToLSO();
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function level13EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 8){
_local2 = Math.floor((Math.random() * level13EnemiesArray.length));
_local3 = level13EnemiesArray[_local2];
deployEnemy(_local3);
level13EnemiesArray.splice(_local2, 1);
};
if (level13EnemiesArray.length <= 0){
level13EnemiesArray = level13EnemiesArrayContent.concat();
};
}
public function playCrystalSnd(){
if (music == "on"){
crystalSnd.play();
};
}
public function updatePurchaseButton(){
if (moneyOverall < ammo1_price){
if (ammo1 == "available"){
upgradePanel_mc.ammo1_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo2_price){
if (ammo2 == "available"){
upgradePanel_mc.ammo2_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo3_price){
if (ammo3 == "available"){
upgradePanel_mc.ammo3_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo4_price){
if (ammo4 == "available"){
upgradePanel_mc.ammo4_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo5_price){
if (ammo5 == "available"){
upgradePanel_mc.ammo5_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo6_price){
if (ammo6 == "available"){
upgradePanel_mc.ammo6_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo7_price){
if (ammo7 == "available"){
upgradePanel_mc.ammo7_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo8_price){
if (ammo8 == "available"){
upgradePanel_mc.ammo8_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo9_price){
if (ammo9 == "available"){
upgradePanel_mc.ammo9_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < ammo10_price){
if (ammo10 == "available"){
upgradePanel_mc.ammo10_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < speedLevel_price){
if (speedLevel < 5){
upgradePanel_mc.upgrade1_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < duraLevel_price){
if (duraLevel < 5){
upgradePanel_mc.upgrade2_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < armorRepairSpeedLevel_price){
if (armorRepairSpeedLevel < 5){
upgradePanel_mc.upgrade3_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < bulletBarrageLevel_price){
if (bulletBarrageLevel < 3){
upgradePanel_mc.upgrade4_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < voltageJammerLevel_price){
if (voltageJammerLevel < 5){
upgradePanel_mc.upgrade5_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < minnionsLevel_price){
if (voltageJammerLevel < 4){
upgradePanel_mc.upgrade6_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < rechargeRateLevel_price){
if (rechargeRateLevel < 5){
upgradePanel_mc.upgrade7_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < itemHealthNanoPack_price){
if (itemHealthNanoPack == "available"){
upgradePanel_mc.itemHealthPack_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < itemBulletBarrage_price){
if (itemBulletBarrage == "available"){
upgradePanel_mc.itemBulletBarrage_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < itemVoltageJammer_price){
if (itemVoltageJammer == "available"){
upgradePanel_mc.itemVoltageJammer_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < itemMinnions_price){
if (itemMinnions == "available"){
upgradePanel_mc.itemMinnion_btn.transform.colorTransform = set_brightness(-0.4);
};
};
if (moneyOverall < itemNuke_price){
if (itemNuke == "available"){
upgradePanel_mc.itemNuke_btn.transform.colorTransform = set_brightness(-0.4);
};
};
}
public function levelGameTimerFinish(_arg1:TimerEvent){
var attBossPrompter:Function;
var event = _arg1;
attBossPrompter = function (){
var _local1:BossWarningPrompter;
playBG3Snd();
playBossWarningSnd();
_local1 = new BossWarningPrompter();
_local1.x = 340;
_local1.y = 237;
addChild(_local1);
};
switch (selectedLevel){
case 3:
trace("BOSS");
attBossPrompter();
level3EnemyDeploymentTimerObj.reset();
bossWarningToBossArrivalTimerObj.start();
break;
case 6:
attBossPrompter();
level6EnemyDeploymentTimerObj.reset();
bossWarningToBossArrivalTimerObj.start();
break;
case 9:
attBossPrompter();
level9EnemyDeploymentTimerObj.reset();
bossWarningToBossArrivalTimerObj.start();
break;
case 12:
attBossPrompter();
level12EnemyDeploymentTimerObj.reset();
bossWarningToBossArrivalTimerObj.start();
break;
case 15:
attBossPrompter();
level15EnemyDeploymentTimerObj.reset();
bossWarningToBossArrivalTimerObj.start();
break;
};
if ((((((((((((((((((((selectedLevel == 1)) || ((selectedLevel == 2)))) || ((selectedLevel == 4)))) || ((selectedLevel == 5)))) || ((selectedLevel == 7)))) || ((selectedLevel == 8)))) || ((selectedLevel == 10)))) || ((selectedLevel == 11)))) || ((selectedLevel == 13)))) || ((selectedLevel == 14)))){
toPostLevelTimerObj.start();
};
}
public function playShot1Snd(){
if (music == "on"){
shotSnd1.play();
};
}
public function attCoin(_arg1:MovieClip){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Coin;
if ((_arg1 is Enemy1)){
_local2 = 4;
} else {
if ((_arg1 is Enemy2)){
_local2 = 4;
} else {
if ((_arg1 is Enemy3)){
_local2 = 6;
} else {
if ((_arg1 is Enemy4)){
_local2 = 6;
} else {
if ((_arg1 is Enemy5)){
_local2 = 6;
} else {
if ((_arg1 is Enemy6)){
_local2 = 8;
} else {
if ((_arg1 is Enemy7)){
_local2 = 8;
} else {
if ((_arg1 is Enemy8)){
_local2 = 8;
} else {
if ((_arg1 is Enemy9)){
_local2 = 10;
} else {
if ((_arg1 is Enemy10)){
_local2 = 10;
} else {
if ((_arg1 is Enemy11)){
_local2 = 10;
} else {
if ((_arg1 is Enemy12)){
_local2 = 10;
} else {
if ((_arg1 is Boss1)){
_local2 = 100;
} else {
if ((_arg1 is Boss2)){
_local2 = 120;
} else {
if ((_arg1 is Boss3)){
_local2 = 150;
} else {
if ((_arg1 is Boss4)){
_local2 = 175;
} else {
if ((_arg1 is Boss5)){
_local2 = 200;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local3 = 0;
while (_local3 < _local2) {
_local4 = (_arg1.x + randomGenerator(-50, 50));
_local5 = (_arg1.y + randomGenerator(-50, 50));
_local6 = new Coin(_local4, _local5, 90);
levelContainer_mc.addChild(_local6);
moneyArray.push(_local6);
_local3++;
};
}
public function survivalGameTimer(_arg1:TimerEvent){
survivalDuration++;
timer_txt.text = String(("SURVIVAL TIME: " + survivalDuration));
}
public function attBossExplosion(_arg1:MovieClip){
var bossExplosionTImer:Timer;
var attRapidExplosion:Function;
var stopRapidExplosion:Function;
var mc = _arg1;
attRapidExplosion = function (_arg1:TimerEvent){
var _local2:Explosion;
playExplodeSnd();
_local2 = new Explosion();
_local2.x = (mc.x - randomGenerator(-20, 20));
_local2.y = (mc.y - randomGenerator(-20, 20));
_local2.rotation = randomGenerator(0, 360);
levelContainer_mc.addChild(_local2);
};
stopRapidExplosion = function (_arg1:TimerEvent){
bossExplosionTImer.reset();
bossExplosionTImer.removeEventListener(TimerEvent.TIMER, attRapidExplosion);
bossExplosionTImer.removeEventListener(TimerEvent.TIMER_COMPLETE, stopRapidExplosion);
};
bossExplosionTImer = new Timer(200, 8);
bossExplosionTImer.addEventListener(TimerEvent.TIMER, attRapidExplosion);
bossExplosionTImer.addEventListener(TimerEvent.TIMER_COMPLETE, stopRapidExplosion);
bossExplosionTImer.start();
}
public function playAwardSnd(){
if (music == "on"){
awardSnd.play();
};
}
public function level2EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 5){
_local2 = Math.floor((Math.random() * level2EnemiesArray.length));
_local3 = level2EnemiesArray[_local2];
deployEnemy(_local3);
level2EnemiesArray.splice(_local2, 1);
};
if (level2EnemiesArray.length <= 0){
level2EnemiesArray = level2EnemiesArrayContent.concat();
};
}
public function bossWarningToBossArrivalTimer(_arg1:TimerEvent){
playBG3Snd();
switch (selectedLevel){
case 3:
attBoss1();
break;
case 6:
attBoss2();
break;
case 9:
attBoss3();
break;
case 12:
attBoss4();
break;
case 15:
attBoss5();
break;
};
bossWarningToBossArrivalTimerObj.reset();
}
public function trackSurvivalPlayDuration(_arg1:TimerEvent){
if (iRumble_so.data.gamePlayDurationSurvival_so == undefined){
gamePlayDurationSurvival = 0;
iRumble_so.data.gamePlayDurationSurvival_so = gamePlayDurationSurvival;
} else {
gamePlayDurationSurvival = iRumble_so.data.gamePlayDurationSurvival_so;
};
gamePlayDurationSurvival++;
iRumble_so.data.gamePlayDurationSurvival_so = gamePlayDurationSurvival;
if ((((gamePlayDurationSurvival == 420)) && ((iRumble_so.data.award11_so == undefined)))){
iRumble_so.data.award11_so = 1;
promptAward(award11name, 8);
};
}
public function playBG1Snd(){
SoundMixer.stopAll();
if (music == "on"){
bgSnd1.play(0, int.MAX_VALUE);
};
}
public function updateMoney(_arg1:Number, _arg2:Number){
playCashSnd();
moneyOverall = (_arg1 - _arg2);
upgradePanel_mc.showMoney_txt.text = String(moneyOverall);
updatePurchaseButton();
}
public function attExplosion(_arg1:MovieClip){
var _local2:Explosion;
playExplodeSnd();
_local2 = new Explosion();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
levelContainer_mc.addChild(_local2);
}
public function playShot3Snd(){
if (music == "on"){
shotSnd3.play();
};
}
public function initPostSurFin(){
var _local1:Number;
faderPlay();
updateQualityDisplay();
dyingWithNoMoneyAwards();
firstTimeDyingAwards();
achieverAward();
surFinPanel_mc.y = -500;
Tweener.addTween(surFinPanel_mc, {y:289.8, time:1, transition:"easeOutStrong"});
_local1 = ((kills_levels + money_levels) + survivalDuration);
if (iRumble_so.data.pointsOverall_so == undefined){
iRumble_so.data.pointsOverall_so = _local1;
} else {
if (_local1 > iRumble_so.data.pointsOverall_so){
iRumble_so.data.pointsOverall_so = _local1;
} else {
surFinPanel_mc.new_txt.text = String("");
};
};
surFinPanel_mc.killScore_txt.text = String(kills_levels);
surFinPanel_mc.crystalObtained_txt.text = String(money_levels);
surFinPanel_mc.timeBonus_txt.text = String(survivalDuration);
surFinPanel_mc.bestScore_txt.text = String(iRumble_so.data.pointsOverall_so);
surFinPanel_mc.lastScore_txt.text = String(_local1);
}
public function skipButton(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
Tweener.removeAllTweens();
gotoAndPlay("skipIntro");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function level5EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 4){
_local2 = Math.floor((Math.random() * level5EnemiesArray.length));
_local3 = level5EnemiesArray[_local2];
deployEnemy(_local3);
level5EnemiesArray.splice(_local2, 1);
};
if (level5EnemiesArray.length <= 0){
level5EnemiesArray = level5EnemiesArrayContent.concat();
};
}
public function faderPlay(){
fader_mc.gotoAndPlay(2);
}
public function pCheckHit(_arg1:Array, _arg2:Number){
var _local3:Number;
_local3 = (_arg1.length - 1);
while (_local3 >= 0) {
if (levelContainer_mc.player_mc.hitBox_mc.hitTestObject(_arg1[_local3].hitBox_mc)){
lifeNum = (lifeNum - _arg2);
if (_arg1 == bossArray){
_arg1[_local3].life = (_arg1[_local3].life - 1);
} else {
attExplosion(_arg1[_local3]);
_arg1[_local3].destruct("");
};
redFlash_mc.gotoAndPlay(2);
screenShake();
};
_local3--;
};
}
public function LSO_Checker(){
if (iRumble_so.data.gameDataExist != undefined){
level = iRumble_so.data.level_so;
moneyOverall = iRumble_so.data.moneyOverall_so;
killsOverall = iRumble_so.data.killsOveralll_so;
pointsOverall = iRumble_so.data.pointsOverall_so;
ammoSelected = iRumble_so.data.ammoSelected_so;
ammo1 = iRumble_so.data.ammo1_so;
ammo2 = iRumble_so.data.ammo2_so;
ammo3 = iRumble_so.data.ammo3_so;
ammo4 = iRumble_so.data.ammo4_so;
ammo5 = iRumble_so.data.ammo5_so;
ammo6 = iRumble_so.data.ammo6_so;
ammo7 = iRumble_so.data.ammo7_so;
ammo8 = iRumble_so.data.ammo8_so;
ammo9 = iRumble_so.data.ammo9_so;
ammo10 = iRumble_so.data.ammo10_so;
itemHealthNanoPack = iRumble_so.data.itemHealthNanoPack_so;
itemBulletBarrage = iRumble_so.data.itemBulletBarrage_so;
itemVoltageJammer = iRumble_so.data.itemVoltageJammer_so;
itemMinnions = iRumble_so.data.itemMinnions_so;
itemNuke = iRumble_so.data.itemNuke_so;
speedLevel_price = iRumble_so.data.speedLevel_price_so;
duraLevel_price = iRumble_so.data.duraLevel_price_so;
armorRepairSpeedLevel_price = iRumble_so.data.armorRepairSpeedLevel_price_so;
bulletBarrageLevel_price = iRumble_so.data.bulletBarrageLevel_price_so;
voltageJammerLevel_price = iRumble_so.data.voltageJammerLevel_price_so;
minnionsLevel_price = iRumble_so.data.minnionsLevel_price_so;
rechargeRateLevel_price = iRumble_so.data.rechargeRateLevel_price_so;
speedLevel = iRumble_so.data.speedLevel_so;
duraLevel = iRumble_so.data.duraLevel_so;
armorRepairSpeedLevel = iRumble_so.data.armorRepairSpeedLevel_so;
bulletBarrageLevel = iRumble_so.data.bulletBarrageLevel_so;
voltageJammerLevel = iRumble_so.data.voltageJammerLevel_so;
minnionsLevel = iRumble_so.data.minnionsLevel_so;
rechargeRateLevel = iRumble_so.data.rechargeRateLevel_so;
} else {
level = 1;
moneyOverall = 0;
killsOverall = 0;
pointsOverall = 0;
ammoSelected = 1;
ammo1 = "sold";
ammo2 = "available";
ammo3 = "available";
ammo4 = "available";
ammo5 = "available";
ammo6 = "available";
ammo7 = "available";
ammo8 = "available";
ammo9 = "available";
ammo10 = "available";
itemHealthNanoPack = "available";
itemBulletBarrage = "available";
itemVoltageJammer = "available";
itemMinnions = "available";
itemNuke = "available";
speedLevel_price = 95;
duraLevel_price = 110;
armorRepairSpeedLevel_price = 90;
bulletBarrageLevel_price = 150;
voltageJammerLevel_price = 90;
minnionsLevel_price = 120;
rechargeRateLevel_price = 85;
speedLevel = 1;
duraLevel = 1;
armorRepairSpeedLevel = 1;
bulletBarrageLevel = 1;
voltageJammerLevel = 1;
minnionsLevel = 1;
rechargeRateLevel = 1;
};
}
public function _setAwardsNameDesc(_arg1:MovieClip, _arg2:String, _arg3:String){
var seeDes:Function;
var awards = _arg1;
var awardsName = _arg2;
var awardsDescription = _arg3;
seeDes = function (_arg1:MouseEvent){
awardsPanel_mc.aDes_txt.text = awardsDescription;
};
awards.aName_txt.text = awardsName;
awards.buttonMode = true;
awards.addEventListener(MouseEvent.CLICK, seeDes);
}
public function deleteLSO(){
delete iRumble_so.data.gameDataExist;
delete iRumble_so.data.level_so;
delete iRumble_so.data.moneyOverall_so;
delete iRumble_so.data.killsOveralll_so;
delete iRumble_so.data.pointsOverall_so;
delete iRumble_so.data.ammoSelected_so;
delete iRumble_so.data.ammo1_so;
delete iRumble_so.data.ammo2_so;
delete iRumble_so.data.ammo3_so;
delete iRumble_so.data.ammo4_so;
delete iRumble_so.data.ammo5_so;
delete iRumble_so.data.ammo6_so;
delete iRumble_so.data.ammo7_so;
delete iRumble_so.data.ammo8_so;
delete iRumble_so.data.ammo9_so;
delete iRumble_so.data.ammo10_so;
delete iRumble_so.data.itemHealthNanoPack_so;
delete iRumble_so.data.itemBulletBarrage_so;
delete iRumble_so.data.itemVoltageJammer_so;
delete iRumble_so.data.itemMinnions_so;
delete iRumble_so.data.itemNuke_so;
delete iRumble_so.data.speedLevel_price_so;
delete iRumble_so.data.duraLevel_price_so;
delete iRumble_so.data.armorRepairSpeedLevel_price_so;
delete iRumble_so.data.bulletBarrageLevel_price_so;
delete iRumble_so.data.voltageJammerLevel_price_so;
delete iRumble_so.data.minnionsLevel_price_so;
delete iRumble_so.data.rechargeRateLevel_price_so;
delete iRumble_so.data.speedLevel_so;
delete iRumble_so.data.duraLevel_so;
delete iRumble_so.data.armorRepairSpeedLevel_so;
delete iRumble_so.data.bulletBarrageLevel_sol;
delete iRumble_so.data.voltageJammerLevel_so;
delete iRumble_so.data.minnionsLevel_so;
delete iRumble_so.data.rechargeRateLevel_so;
}
public function level8EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 4){
_local2 = Math.floor((Math.random() * level8EnemiesArray.length));
_local3 = level8EnemiesArray[_local2];
deployEnemy(_local3);
level8EnemiesArray.splice(_local2, 1);
};
if (level8EnemiesArray.length <= 0){
level8EnemiesArray = level8EnemiesArrayContent.concat();
};
}
public function playBG3Snd(){
SoundMixer.stopAll();
if (music == "on"){
bgSnd3.play(0, int.MAX_VALUE);
};
}
public function moneyAwards(){
if (gameMode == "survivalMode"){
if ((((money_levels >= 300)) && ((iRumble_so.data.award18_so == undefined)))){
iRumble_so.data.award18_so = 1;
promptAward(award18name, 7);
} else {
if ((((money_levels >= 100)) && ((iRumble_so.data.award17_so == undefined)))){
iRumble_so.data.award17_so = 1;
promptAward(award17name, 7);
} else {
if ((((money_levels >= 50)) && ((iRumble_so.data.award16_so == undefined)))){
iRumble_so.data.award16_so = 1;
promptAward(award16name, 7);
};
};
};
};
}
public function enemyRandomPositioning():Array{
var xposAndYpos:Array;
var sq1:Array;
var sq2:Array;
var sq3:Array;
var sq4:Array;
var sq5:Array;
var sq6:Array;
var sq7:Array;
var sq8:Array;
var sq9:Array;
var randomElement:Number;
var xpos:Number;
var ypos:Number;
var _determineEnemyPosition:Function;
_determineEnemyPosition = function (_arg1:Number){
switch (_arg1){
case 1:
xpos = randomGenerator(0, 72);
ypos = randomGenerator(0, 72);
break;
case 2:
xpos = randomGenerator(292, 388);
ypos = randomGenerator(0, 72);
break;
case 3:
xpos = randomGenerator(606, 680);
ypos = randomGenerator(0, 72);
break;
case 4:
xpos = randomGenerator(0, 72);
ypos = randomGenerator(252, 328);
break;
case 5:
xpos = randomGenerator(292, 388);
ypos = randomGenerator(252, 328);
break;
case 6:
xpos = randomGenerator(606, 680);
ypos = randomGenerator(193, 386);
break;
case 7:
xpos = randomGenerator(0, 72);
ypos = randomGenerator(0x0200, 580);
break;
case 8:
xpos = randomGenerator(292, 388);
ypos = randomGenerator(0x0200, 580);
break;
case 9:
xpos = randomGenerator(606, 680);
ypos = randomGenerator(0x0200, 580);
break;
};
};
xposAndYpos = new Array();
sq1 = [2, 3, 4, 5, 6, 7, 8, 9];
sq2 = [1, 3, 4, 5, 6, 7, 8, 9];
sq3 = [2, 1, 4, 5, 6, 7, 8, 9];
sq4 = [2, 3, 1, 5, 6, 7, 8, 9];
sq5 = [2, 3, 4, 1, 6, 7, 8, 9];
sq6 = [2, 3, 4, 5, 1, 7, 8, 9];
sq7 = [2, 3, 4, 5, 6, 1, 8, 9];
sq8 = [2, 3, 4, 5, 6, 7, 1, 9];
sq9 = [2, 3, 4, 5, 6, 7, 8, 1];
if ((((_player.x < 226)) && ((_player.y < 193)))){
randomElement = Math.floor((Math.random() * sq1.length));
_determineEnemyPosition(sq1[randomElement]);
} else {
if ((((((_player.x > 226)) && ((_player.x < 453)))) && ((_player.y < 193)))){
randomElement = Math.floor((Math.random() * sq2.length));
_determineEnemyPosition(sq2[randomElement]);
} else {
if ((((_player.x > 453)) && ((_player.y < 193)))){
randomElement = Math.floor((Math.random() * sq3.length));
_determineEnemyPosition(sq3[randomElement]);
} else {
if ((((((_player.x < 226)) && ((_player.y > 193)))) && ((_player.y < 386)))){
randomElement = Math.floor((Math.random() * sq4.length));
_determineEnemyPosition(sq4[randomElement]);
} else {
if ((((((((_player.x > 226)) && ((_player.x < 453)))) && ((_player.y > 193)))) && ((_player.y < 386)))){
randomElement = Math.floor((Math.random() * sq5.length));
_determineEnemyPosition(sq5[randomElement]);
} else {
if ((((((_player.x > 453)) && ((_player.y > 193)))) && ((_player.y < 386)))){
randomElement = Math.floor((Math.random() * sq6.length));
_determineEnemyPosition(sq6[randomElement]);
} else {
if ((((_player.x < 226)) && ((_player.y > 386)))){
randomElement = Math.floor((Math.random() * sq7.length));
_determineEnemyPosition(sq7[randomElement]);
} else {
if ((((((_player.x > 226)) && ((_player.x < 453)))) && ((_player.y > 386)))){
randomElement = Math.floor((Math.random() * sq8.length));
_determineEnemyPosition(sq8[randomElement]);
} else {
if ((((_player.x > 453)) && ((_player.y > 386)))){
randomElement = Math.floor((Math.random() * sq9.length));
_determineEnemyPosition(sq9[randomElement]);
};
};
};
};
};
};
};
};
};
xposAndYpos[0] = xpos;
xposAndYpos[1] = ypos;
return (xposAndYpos);
}
public function titleLooper(_arg1:Event){
var movPlanet:Function;
var movStar:Function;
var event = _arg1;
if (currentFrame == 2){
movPlanet = function (_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number){
_arg1.x = (_arg1.x - _arg4);
if (_arg1.x <= _arg3){
_arg1.x = _arg2;
_arg1.y = randomGenerator(50, 550);
};
};
movStar = function (_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number){
_arg1.x = (_arg1.x - _arg4);
if (_arg1.x <= _arg3){
_arg1.x = _arg2;
};
};
movStar(planet1_mc, 880, -200, 5);
movStar(planet2_mc, 880, -200, 4);
movStar(planet3_mc, 880, -200, 3);
movStar(planet4_mc, 880, -200, 2);
movStar(planet5_mc, 880, -200, 1);
movStar(bgStars1_mc, 1360, -290, 2);
movStar(bgStars2_mc, 1360, -290, 2);
movStar(bgStars3_mc, 1360, -290, 2);
movStar(bgStars1a_mc, 1360, -290, 1);
movStar(bgStars2a_mc, 1360, -290, 1);
movStar(bgStars3a_mc, 1360, -290, 1);
} else {
trace("remove");
stage.removeEventListener(Event.ENTER_FRAME, titleLooper);
};
}
public function deployEnemy(_arg1:Number){
switch (_arg1){
case 1:
attEnemy1(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 2:
attEnemy2(enemyRandomPositioning()[0], enemyRandomPositioning()[1], 0, levelContainer_mc.player_mc, 1);
break;
case 3:
attEnemy3(enemyRandomPositioning()[0], enemyRandomPositioning()[1], 1);
break;
case 4:
attEnemy4(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 5:
attEnemy5(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 6:
attEnemy6(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 7:
attEnemy7(enemyRandomPositioning()[0], enemyRandomPositioning()[1], 1);
break;
case 8:
attEnemy8(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 9:
attEnemy9(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 10:
attEnemy10(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 11:
attEnemy11(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
case 12:
attEnemy12(enemyRandomPositioning()[0], enemyRandomPositioning()[1], randomGenerator(200, 300), levelContainer_mc.player_mc, 1);
break;
};
}
public function playBG5Snd(){
SoundMixer.stopAll();
if (music == "on"){
bgSnd5.play(0, int.MAX_VALUE);
};
}
public function introFinished(){
Tweener.removeAllTweens();
gotoAndPlay("skipIntro");
}
public function level12EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 6){
_local2 = Math.floor((Math.random() * level12EnemiesArray.length));
_local3 = level12EnemiesArray[_local2];
deployEnemy(_local3);
level12EnemiesArray.splice(_local2, 1);
};
if (level12EnemiesArray.length <= 0){
level12EnemiesArray = level12EnemiesArrayContent.concat();
};
}
public function toPostLevelCounter(_arg1:TimerEvent){
toPostText_txt.text = String((("RETURNING TO MOTHERSHIP in " + toPostSec) + " SECS."));
toPostSec--;
}
public function dyingWithNoMoneyAwards(){
if ((((kills_levels > 4)) && ((money_levels == 0)))){
if (iRumble_so.data.award19_so == undefined){
iRumble_so.data.award19_so = 1;
promptAward(award19name, 1);
};
};
}
public function instanceLooper(_arg1:Array){
var _local2:Number;
_local2 = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].looper();
_local2--;
};
}
public function promptAward(_arg1:String, _arg2:Number){
var _local3:PromptAward;
playAwardSnd();
_local3 = new PromptAward();
_local3.aName_txt.text = _arg1;
switch (_arg2){
case 1:
_local3.x = 84;
_local3.y = 172.5;
break;
case 2:
_local3.x = 84;
_local3.y = 292.5;
break;
case 3:
_local3.x = 84;
_local3.y = 412.5;
break;
case 4:
_local3.x = 84;
_local3.y = 522.5;
break;
case 5:
_local3.x = 556;
_local3.y = 172.5;
break;
case 6:
_local3.x = 556;
_local3.y = 292.5;
break;
case 7:
_local3.x = 556;
_local3.y = 412.5;
break;
case 8:
_local3.x = 556;
_local3.y = 522.5;
break;
};
addChild(_local3);
}
public function newGameBtn(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var mclck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
playBtnSnd();
};
mout = function (_arg1:MouseEvent){
};
mclck = function (_arg1:MouseEvent){
if (iRumble_so.data.gameDataExist != undefined){
Tweener.addTween(newGamePrompt_mc, {y:290, time:1, transition:"easeOutStrong"});
} else {
gameMode = "levelMode";
gotoAndStop("gameScreen");
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, mclck);
}
public function prelevelInit(){
faderPlay();
updateQualityDisplay();
ship_mc.x = -200;
levelPanel_mc.y = -600;
upgradePanel_mc.y = -500;
Tweener.addTween(ship_mc, {x:76, time:1, transition:"easeOutStrong"});
Tweener.addTween(levelPanel_mc, {y:102.7, time:1, transition:"easeOutStrong"});
Tweener.addTween(upgradePanel_mc, {y:380.6, time:1, transition:"easeOutStrong"});
if (itemHealthNanoPack == "available"){
upgradePanel_mc.item1Marker_mc.alpha = 0;
};
if (itemBulletBarrage == "available"){
upgradePanel_mc.item2Marker_mc.alpha = 0;
};
if (itemVoltageJammer == "available"){
upgradePanel_mc.item3Marker_mc.alpha = 0;
};
if (itemMinnions == "available"){
upgradePanel_mc.item4Marker_mc.alpha = 0;
};
if (itemNuke == "available"){
upgradePanel_mc.item5Marker_mc.alpha = 0;
};
switch (ammoSelected){
case 1:
_setSelectedAmmoMarker(-240.9, -122.1);
break;
case 2:
_setSelectedAmmoMarker(-188.4, -122.1);
break;
case 3:
_setSelectedAmmoMarker(-136.4, -122.1);
break;
case 4:
_setSelectedAmmoMarker(-83.9, -122.1);
break;
case 5:
_setSelectedAmmoMarker(-31.9, -122.1);
break;
case 6:
_setSelectedAmmoMarker(-240.9, -69.6);
break;
case 7:
_setSelectedAmmoMarker(-188.4, -69.6);
break;
case 8:
_setSelectedAmmoMarker(-136.4, -69.6);
break;
case 9:
_setSelectedAmmoMarker(-83.9, -69.6);
break;
case 10:
_setSelectedAmmoMarker(-31.9, -69.6);
break;
};
upgradePanel_mc.showSpeedLevel_txt.text = String((speedLevel + "/5"));
upgradePanel_mc.showArmorLevel_txt.text = String((duraLevel + "/5"));
upgradePanel_mc.repairLevel_txt.text = String((armorRepairSpeedLevel + "/5"));
upgradePanel_mc.bulletBarrageLevel_txt.text = String((bulletBarrageLevel + "/3"));
upgradePanel_mc.voltageJammerLevel_txt.text = String((voltageJammerLevel + "/5"));
upgradePanel_mc.minnionLevel_txt.text = String((minnionsLevel + "/4"));
upgradePanel_mc.rechargeLevel_txt.text = String((rechargeRateLevel + "/5"));
upgradePanel_mc.showMoney_txt.text = String(moneyOverall);
updatePurchaseButton();
}
public function _setDistanceFromCenter(_arg1:MovieClip):Array{
var _local2:Array;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = new Array();
_local3 = 50;
_local4 = _arg1.pointer;
_local5 = (_arg1.x + (_local3 * Math.cos(((_local4 * Math.PI) / 180))));
_local6 = (_arg1.y + (_local3 * Math.sin(((_local4 * Math.PI) / 180))));
_local2[0] = _local5;
_local2[1] = _local6;
return (_local2);
}
public function level15EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 8){
_local2 = Math.floor((Math.random() * level15EnemiesArray.length));
_local3 = level15EnemiesArray[_local2];
deployEnemy(_local3);
level15EnemiesArray.splice(_local2, 1);
};
if (level15EnemiesArray.length <= 0){
level15EnemiesArray = level15EnemiesArrayContent.concat();
};
}
public function level1EnemyDeploymentTimer(_arg1:TimerEvent){
var _local2:*;
var _local3:Number;
if (enemyArray.length < 4){
_local2 = Math.floor((Math.random() * level1EnemiesArray.length));
_local3 = level1EnemiesArray[_local2];
deployEnemy(_local3);
level1EnemiesArray.splice(_local2, 1);
};
if (level1EnemiesArray.length <= 0){
level1EnemiesArray = level1EnemiesArrayContent.concat();
};
}
public function playBossWarningSnd(){
if (music == "on"){
bossWarningSnd.play();
};
}
public function saveToLSO(){
iRumble_so.data.gameDataExist = "true";
iRumble_so.data.level_so = level;
iRumble_so.data.moneyOverall_so = moneyOverall;
iRumble_so.data.killsOveralll_so = killsOverall;
iRumble_so.data.pointsOverall_so = pointsOverall;
iRumble_so.data.ammoSelected_so = ammoSelected;
iRumble_so.data.ammo1_so = ammo1;
iRumble_so.data.ammo2_so = ammo2;
iRumble_so.data.ammo3_so = ammo3;
iRumble_so.data.ammo4_so = ammo4;
iRumble_so.data.ammo5_so = ammo5;
iRumble_so.data.ammo6_so = ammo6;
iRumble_so.data.ammo7_so = ammo7;
iRumble_so.data.ammo8_so = ammo8;
iRumble_so.data.ammo9_so = ammo9;
iRumble_so.data.ammo10_so = ammo10;
iRumble_so.data.itemHealthNanoPack_so = itemHealthNanoPack;
iRumble_so.data.itemBulletBarrage_so = itemBulletBarrage;
iRumble_so.data.itemVoltageJammer_so = itemVoltageJammer;
iRumble_so.data.itemMinnions_so = itemMinnions;
iRumble_so.data.itemNuke_so = itemNuke;
iRumble_so.data.speedLevel_price_so = speedLevel_price;
iRumble_so.data.duraLevel_price_so = duraLevel_price;
iRumble_so.data.armorRepairSpeedLevel_price_so = armorRepairSpeedLevel_price;
iRumble_so.data.bulletBarrageLevel_price_so = bulletBarrageLevel_price;
iRumble_so.data.voltageJammerLevel_price_so = voltageJammerLevel_price;
iRumble_so.data.minnionsLevel_price_so = minnionsLevel_price;
iRumble_so.data.rechargeRateLevel_price_so = rechargeRateLevel_price;
iRumble_so.data.speedLevel_so = speedLevel;
iRumble_so.data.duraLevel_so = duraLevel;
iRumble_so.data.armorRepairSpeedLevel_so = armorRepairSpeedLevel;
iRumble_so.data.bulletBarrageLevel_so = bulletBarrageLevel;
iRumble_so.data.voltageJammerLevel_so = voltageJammerLevel;
iRumble_so.data.minnionsLevel_so = minnionsLevel;
iRumble_so.data.rechargeRateLevel_so = rechargeRateLevel;
iRumble_so.flush();
}
public function initPostLevelFin(){
winPanel_mc.y = -500;
Tweener.addTween(winPanel_mc, {y:293.6, time:1, transition:"easeOutStrong"});
}
public function lifeAwards(){
if (lifeNum >= lifeDenom){
if (iRumble_so.data.award6_so == undefined){
promptAward(award5name, 3);
iRumble_so.data.award6_so = 1;
};
};
if (lifeNum <= (lifeDenom * 0.05)){
if (iRumble_so.data.award7_so == undefined){
promptAward(award7name, 3);
iRumble_so.data.award7_so = 1;
};
};
}
}
}//package intergalacticRumble_viral_v1_fla
Section 61
//mc_adoboPaperLogo_39 (intergalacticRumble_viral_v1_fla.mc_adoboPaperLogo_39)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class mc_adoboPaperLogo_39 extends MovieClip {
public function mc_adoboPaperLogo_39(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
}
public function clck(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://adobogames.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
}
}//package intergalacticRumble_viral_v1_fla
Section 62
//mc_ArmorTitleLogo_38 (intergalacticRumble_viral_v1_fla.mc_ArmorTitleLogo_38)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class mc_ArmorTitleLogo_38 extends MovieClip {
public function mc_ArmorTitleLogo_38(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clck);
}
public function clck(_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://armorgames.com/";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_new");
}
}
}//package intergalacticRumble_viral_v1_fla
Section 63
//mc_awardIcon_48 (intergalacticRumble_viral_v1_fla.mc_awardIcon_48)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_awardIcon_48 extends MovieClip {
public function mc_awardIcon_48(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package intergalacticRumble_viral_v1_fla
Section 64
//mc_awardsPanel_45 (intergalacticRumble_viral_v1_fla.mc_awardsPanel_45)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_awardsPanel_45 extends MovieClip {
public var award20_mc:MovieClip;
public var award14_mc:MovieClip;
public var back_btn:MovieClip;
public var award17_mc:MovieClip;
public var award6_mc:MovieClip;
public var award11_mc:MovieClip;
public var aDes_txt:TextField;
public var award12_mc:MovieClip;
public var award1_mc:MovieClip;
public var aName_txt:TextField;
public var award15_mc:MovieClip;
public var award18_mc:MovieClip;
public var award4_mc:MovieClip;
public var award7_mc:MovieClip;
public var award9_mc:MovieClip;
public var award13_mc:MovieClip;
public var award10_mc:MovieClip;
public var award2_mc:MovieClip;
public var award16_mc:MovieClip;
public var award5_mc:MovieClip;
public var award19_mc:MovieClip;
public var award8_mc:MovieClip;
public var award3_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 65
//mc_awarsBlock_47 (intergalacticRumble_viral_v1_fla.mc_awarsBlock_47)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_awarsBlock_47 extends MovieClip {
public var aName_txt:TextField;
public var awardIcon:MovieClip;
public var hitBox_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 66
//mc_bossUIbarContainer_114 (intergalacticRumble_viral_v1_fla.mc_bossUIbarContainer_114)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_bossUIbarContainer_114 extends MovieClip {
public var bar_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 67
//mc_creditsPanel_50 (intergalacticRumble_viral_v1_fla.mc_creditsPanel_50)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_creditsPanel_50 extends MovieClip {
public var back_btn:MovieClip;
public var titleArmorLogo_mc:MovieClip;
public var aName_txt:TextField;
public var titleAdoboLogo_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 68
//mc_crosshair_105 (intergalacticRumble_viral_v1_fla.mc_crosshair_105)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_crosshair_105 extends MovieClip {
public var ui_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 69
//mc_fader_51 (intergalacticRumble_viral_v1_fla.mc_fader_51)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_fader_51 extends MovieClip {
public function mc_fader_51(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
stop();
}
}
}//package intergalacticRumble_viral_v1_fla
Section 70
//mc_flashRed_119 (intergalacticRumble_viral_v1_fla.mc_flashRed_119)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_flashRed_119 extends MovieClip {
public function mc_flashRed_119(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package intergalacticRumble_viral_v1_fla
Section 71
//mc_gameBG_95 (intergalacticRumble_viral_v1_fla.mc_gameBG_95)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_gameBG_95 extends MovieClip {
public function mc_gameBG_95(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package intergalacticRumble_viral_v1_fla
Section 72
//mc_instructionLevel_118 (intergalacticRumble_viral_v1_fla.mc_instructionLevel_118)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_instructionLevel_118 extends MovieClip {
public var ok_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 73
//mc_instructionSurvival_116 (intergalacticRumble_viral_v1_fla.mc_instructionSurvival_116)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_instructionSurvival_116 extends MovieClip {
public var ok_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 74
//mc_introTextContainer_11 (intergalacticRumble_viral_v1_fla.mc_introTextContainer_11)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_introTextContainer_11 extends MovieClip {
public var intro_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 75
//mc_levelContainer_101 (intergalacticRumble_viral_v1_fla.mc_levelContainer_101)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_levelContainer_101 extends MovieClip {
public var player_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 76
//mc_newGamePrompt_41 (intergalacticRumble_viral_v1_fla.mc_newGamePrompt_41)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_newGamePrompt_41 extends MovieClip {
public var yes_btn:MovieClip;
public var no_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 77
//mc_nukeFlash_120 (intergalacticRumble_viral_v1_fla.mc_nukeFlash_120)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_nukeFlash_120 extends MovieClip {
public function mc_nukeFlash_120(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package intergalacticRumble_viral_v1_fla
Section 78
//mc_panelsLevel_55 (intergalacticRumble_viral_v1_fla.mc_panelsLevel_55)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_panelsLevel_55 extends MovieClip {
public var level13_btn:MovieClip;
public var level15_btn:MovieClip;
public var level11_btn:MovieClip;
public var level3_btn:MovieClip;
public var level7_btn:MovieClip;
public var level5_btn:MovieClip;
public var level9_btn:MovieClip;
public var level1_btn:MovieClip;
public var level12_btn:MovieClip;
public var level4_btn:MovieClip;
public var level6_btn:MovieClip;
public var level8_btn:MovieClip;
public var level2_btn:MovieClip;
public var level14_btn:MovieClip;
public var level10_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 79
//mc_player_102 (intergalacticRumble_viral_v1_fla.mc_player_102)
package intergalacticRumble_viral_v1_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mc_player_102 extends MovieClip {
public var pointer_mc:MovieClip;
public var a_x:Number;
public var a_y:Number;
public var pointer:Number;
public var bulbs_mc:MovieClip;
public var crosshair_mc:MovieClip;
public var _angle:Number;
public var hitBox_mc:MovieClip;
public function mc_player_102(){
addFrameScript(0, frame1);
}
public function looper(){
if (MovieClip(parent.parent).anchorShip == "false"){
rotatePart(crosshair_mc, this);
};
}
function frame1(){
pointer = 0;
crosshair_mc = MovieClip(parent.parent).crosshair_mc;
}
public function rotatePart(_arg1:MovieClip, _arg2: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 - 180);
pointer_mc.rotation = pointer;
}
}
}//package intergalacticRumble_viral_v1_fla
Section 80
//mc_postFinPanel_127 (intergalacticRumble_viral_v1_fla.mc_postFinPanel_127)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_postFinPanel_127 extends MovieClip {
public var titleArmorLogo_mc:MovieClip;
public var next_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 81
//mc_postLostPanel_125 (intergalacticRumble_viral_v1_fla.mc_postLostPanel_125)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_postLostPanel_125 extends MovieClip {
public var next_btn:MovieClip;
public var money_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 82
//mc_postSurFinPanel_128 (intergalacticRumble_viral_v1_fla.mc_postSurFinPanel_128)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_postSurFinPanel_128 extends MovieClip {
public var submitScore_btn:MovieClip;
public var crystalObtained_txt:TextField;
public var timeBonus_txt:TextField;
public var new_txt:TextField;
public var killScore_txt:TextField;
public var lastScore_txt:TextField;
public var bestScore_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 83
//mc_postWinPanel_121 (intergalacticRumble_viral_v1_fla.mc_postWinPanel_121)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_postWinPanel_121 extends MovieClip {
public var next_btn:MovieClip;
public var points_txt:TextField;
public var kill_txt:TextField;
public var money_txt:TextField;
public var overallKill_txt:TextField;
public var overallMoney_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 84
//mc_preloaderBar_2 (intergalacticRumble_viral_v1_fla.mc_preloaderBar_2)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_preloaderBar_2 extends MovieClip {
public var innerBar_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 85
//mc_toolTipAmmo_91 (intergalacticRumble_viral_v1_fla.mc_toolTipAmmo_91)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_toolTipAmmo_91 extends MovieClip {
public var amount_txt:TextField;
public var description_txt:TextField;
public var ammoName_txt:TextField;
public var status_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 86
//mc_toolTipItems_92 (intergalacticRumble_viral_v1_fla.mc_toolTipItems_92)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_toolTipItems_92 extends MovieClip {
public var amount_txt:TextField;
public var description_txt:TextField;
public var status_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 87
//mc_toolTipLevel_94 (intergalacticRumble_viral_v1_fla.mc_toolTipLevel_94)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_toolTipLevel_94 extends MovieClip {
public var level_txt:TextField;
public var status_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 88
//mc_toolTipUpgrades_93 (intergalacticRumble_viral_v1_fla.mc_toolTipUpgrades_93)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_toolTipUpgrades_93 extends MovieClip {
public var amount_txt:TextField;
public var status_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 89
//mc_UIBulletBarrage_111 (intergalacticRumble_viral_v1_fla.mc_UIBulletBarrage_111)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_UIBulletBarrage_111 extends MovieClip {
public var bar_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 90
//mc_UIMInnions_113 (intergalacticRumble_viral_v1_fla.mc_UIMInnions_113)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_UIMInnions_113 extends MovieClip {
public var bar_mc:MovieClip;
public var minNum_txt:TextField;
}
}//package intergalacticRumble_viral_v1_fla
Section 91
//mc_UINUKE_112 (intergalacticRumble_viral_v1_fla.mc_UINUKE_112)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_UINUKE_112 extends MovieClip {
public var bar_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 92
//mc_UIVoltagejammer_109 (intergalacticRumble_viral_v1_fla.mc_UIVoltagejammer_109)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
public dynamic class mc_UIVoltagejammer_109 extends MovieClip {
public var bar_mc:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 93
//mc_upgradesPanel_71 (intergalacticRumble_viral_v1_fla.mc_upgradesPanel_71)
package intergalacticRumble_viral_v1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_upgradesPanel_71 extends MovieClip {
public var showSpeedLevel_txt:TextField;
public var showArmorLevel_txt:TextField;
public var item3Marker_mc:MovieClip;
public var item2Marker_mc:MovieClip;
public var upgrade2_btn:MovieClip;
public var upgrade4_btn:MovieClip;
public var upgrade6_btn:MovieClip;
public var ammo5_btn:MovieClip;
public var ammo9_btn:MovieClip;
public var bulletBarrageLevel_txt:TextField;
public var rechargeLevel_txt:TextField;
public var itemBulletBarrage_btn:MovieClip;
public var voltageJammerLevel_txt:TextField;
public var ammo1_btn:MovieClip;
public var item5Marker_mc:MovieClip;
public var repairLevel_txt:TextField;
public var ammo7_btn:MovieClip;
public var item4Marker_mc:MovieClip;
public var ammo3_btn:MovieClip;
public var ammo10_btn:MovieClip;
public var minnionLevel_txt:TextField;
public var itemNuke_btn:MovieClip;
public var upgrade3_btn:MovieClip;
public var itemMinnion_btn:MovieClip;
public var upgrade1_btn:MovieClip;
public var ammo4_btn:MovieClip;
public var ammo6_btn:MovieClip;
public var itemVoltageJammer_btn:MovieClip;
public var ammo8_btn:MovieClip;
public var showMoney_txt:TextField;
public var upgrade7_btn:MovieClip;
public var ammo2_btn:MovieClip;
public var item1Marker_mc:MovieClip;
public var itemHealthPack_btn:MovieClip;
public var selectedAmmo_mc:MovieClip;
public var upgrade5_btn:MovieClip;
}
}//package intergalacticRumble_viral_v1_fla
Section 94
//AwardSnd (AwardSnd)
package {
import flash.media.*;
public dynamic class AwardSnd extends Sound {
}
}//package
Section 95
//BG1 (BG1)
package {
import flash.media.*;
public dynamic class BG1 extends Sound {
}
}//package
Section 96
//BG2 (BG2)
package {
import flash.media.*;
public dynamic class BG2 extends Sound {
}
}//package
Section 97
//BG3 (BG3)
package {
import flash.media.*;
public dynamic class BG3 extends Sound {
}
}//package
Section 98
//BG4 (BG4)
package {
import flash.media.*;
public dynamic class BG4 extends Sound {
}
}//package
Section 99
//BG5 (BG5)
package {
import flash.media.*;
public dynamic class BG5 extends Sound {
}
}//package
Section 100
//Boss1 (Boss1)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public class Boss1 extends MovieClip {
private var xDir:String;
public var life:Number;
public var lifeDenom:Number;
private var xSpd:Number;
private var pointer:Number;// = 0
public var typeOfDestruction:String;
private var shootCounter1:Number;// = 10
private var shootTimer:Timer;
private var minXpos:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var spd:Number;
public var hitBox_mc:MovieClip;
public function Boss1(){
movTimer = new Timer(1000, 0);
shootCounter1 = 10;
pointer = 0;
super();
life = 150;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = 400;
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(parent.parent).voltageJammerInUse == "no"){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
};
}
private function shoot(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
_local2 = 100;
pointer = (pointer + 45);
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer + _local3) + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer - _local3) - _local3));
};
if (pointer >= 360){
pointer = 0;
};
};
}
public function shoot_a(){
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attBossExplosion(this);
MovieClip(parent.parent).toPostLevelTimerObj.start();
destruct("hit");
} else {
shootCounter1--;
if (shootCounter1 <= 0){
trace(shootCounter1);
shoot_a();
shootCounter1 = 20;
};
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
};
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
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);
}
}
}//package
Section 101
//Boss2 (Boss2)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public class Boss2 extends MovieClip {
private var xDir:String;
public var life:Number;
private var currentPos:Number;// = 0
public var lifeDenom:Number;
private var xSpd:Number;
private var pointer:Number;// = 0
public var typeOfDestruction:String;
private var shootCounter1:Number;// = 10
private var shootTimer:Timer;
private var minXpos:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var spd:Number;
public var hitBox_mc:MovieClip;
public function Boss2(){
movTimer = new Timer(2500, 0);
shootCounter1 = 10;
pointer = 0;
currentPos = 0;
super();
life = 300;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = 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(parent.parent).voltageJammerInUse == "no"){
if (currentPos == 0){
Tweener.addTween(this, {x:46, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 1){
Tweener.addTween(this, {x:606, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 2){
Tweener.addTween(this, {x:606, y:478, time:2, transition:"linear"});
} else {
if (currentPos == 3){
Tweener.addTween(this, {x:46, y:478, time:2, transition:"linear"});
};
};
};
};
currentPos++;
if (currentPos == 4){
currentPos = 0;
};
};
}
private function shoot(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
_local2 = 100;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, (0 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (0 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 - _local3));
};
};
}
public function shoot_a(){
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attBossExplosion(this);
MovieClip(parent.parent).toPostLevelTimerObj.start();
destruct("hit");
} else {
shootCounter1--;
if (shootCounter1 <= 0){
trace(shootCounter1);
shoot_a();
shootCounter1 = 20;
};
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
};
};
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
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);
}
}
}//package
Section 102
//Boss3 (Boss3)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public class Boss3 extends MovieClip {
private var xDir:String;
public var life:Number;
private var a_x:Number;
private var a_y:Number;
public var lifeDenom:Number;
private var xSpd:Number;
private var currentPos:Number;// = 0
private var pointer:Number;// = 0
public var typeOfDestruction:String;
private var shootCounter1:Number;// = 10
private var minXpos:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var shootTimer1:Timer;
private var spd:Number;
private var shootTimer2:Timer;
private var _angle:Number;
public var hitBox_mc:MovieClip;
public function Boss3(){
movTimer = new Timer(2500, 0);
shootCounter1 = 10;
pointer = 0;
currentPos = 0;
super();
life = 600;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = 800;
shootTimer1 = new Timer(rateOfShoot, 10);
shootTimer1.addEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.addEventListener(TimerEvent.TIMER_COMPLETE, shoot1_done);
shootTimer1.start();
shootTimer2 = new Timer(rateOfShoot, 1);
shootTimer2.addEventListener(TimerEvent.TIMER, shoot2);
shootTimer2.addEventListener(TimerEvent.TIMER_COMPLETE, shoot2_done);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
if (currentPos == 0){
Tweener.addTween(this, {x:46, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 1){
Tweener.addTween(this, {x:606, y:478, time:2, transition:"linear"});
} else {
if (currentPos == 2){
Tweener.addTween(this, {x:606, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 3){
Tweener.addTween(this, {x:46, y:478, time:2, transition:"linear"});
};
};
};
};
currentPos++;
if (currentPos == 4){
currentPos = 0;
};
};
}
private function shoot2(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
_local2 = 100;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, (0 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (0 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 - _local3));
};
};
}
public function shoot_a(){
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attBossExplosion(this);
MovieClip(parent.parent).toPostLevelTimerObj.start();
destruct("hit");
} else {
shootCounter1--;
if (shootCounter1 <= 0){
trace(shootCounter1);
shoot_a();
shootCounter1 = 20;
};
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
};
};
}
private function shoot2_done(_arg1:TimerEvent){
shootTimer1.reset();
shootTimer1.start();
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
Tweener.removeTweens(this);
shootTimer1.stop();
shootTimer1.removeEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot1_done);
shootTimer2.stop();
shootTimer2.removeEventListener(TimerEvent.TIMER, shoot2);
shootTimer2.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot2_done);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot1_done(_arg1:TimerEvent){
shootTimer2.reset();
shootTimer2.start();
}
private function shoot1(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
rotatePointer(MovieClip(parent.parent).levelContainer_mc.player_mc);
_local2 = 100;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer + _local3) + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer - _local3) - _local3));
};
};
}
}
}//package
Section 103
//Boss4 (Boss4)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public class Boss4 extends MovieClip {
private var xDir:String;
public var life:Number;
private var currentPos:Number;// = 0
public var lifeDenom:Number;
private var xSpd:Number;
private var pointer:Number;// = 0
public var typeOfDestruction:String;
private var shootCounter1:Number;// = 10
private var minXpos:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var shootTimer1:Timer;
private var spd:Number;
private var shootTimer2:Timer;
public var hitBox_mc:MovieClip;
public function Boss4(){
movTimer = new Timer(3000, 0);
shootCounter1 = 10;
pointer = 0;
currentPos = 0;
super();
life = 1000;
lifeDenom = life;
spd = (Math.floor((Math.random() * (3 - 1))) + 1);
xSpd = ((Math.random() * (2 - 1)) + 1);
minXpos = 25;
maxXpos = 475;
xDir = "left";
rateOfShoot = 400;
shootTimer1 = new Timer(rateOfShoot, 8);
shootTimer1.addEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.addEventListener(TimerEvent.TIMER_COMPLETE, shoot1_done);
shootTimer1.start();
shootTimer2 = new Timer(rateOfShoot, 1);
shootTimer2.addEventListener(TimerEvent.TIMER, shoot2);
shootTimer2.addEventListener(TimerEvent.TIMER_COMPLETE, shoot2_done);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
if (currentPos == 0){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 1){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 2){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 3){
Tweener.addTween(this, {x:46, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 4){
Tweener.addTween(this, {x:606, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 5){
Tweener.addTween(this, {x:606, y:478, time:2, transition:"linear"});
} else {
if (currentPos == 6){
Tweener.addTween(this, {x:46, y:478, time:2, transition:"linear"});
};
};
};
};
};
};
};
currentPos++;
if (currentPos == 7){
currentPos = 0;
};
};
}
private function shoot2(_arg1:TimerEvent){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo3(this.x, this.x, 0, MovieClip(parent.parent).levelContainer_mc.player_mc, 2);
};
};
}
public function shoot_a(){
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attBossExplosion(this);
MovieClip(parent.parent).toPostLevelTimerObj.start();
destruct("hit");
} else {
shootCounter1--;
if (shootCounter1 <= 0){
trace(shootCounter1);
shoot_a();
shootCounter1 = 20;
};
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
};
};
}
private function shoot2_done(_arg1:TimerEvent){
shootTimer1.reset();
shootTimer1.start();
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
Tweener.removeTweens(this);
shootTimer1.stop();
shootTimer1.removeEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot1_done);
shootTimer2.stop();
shootTimer2.removeEventListener(TimerEvent.TIMER, shoot2);
shootTimer2.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot2_done);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot1_done(_arg1:TimerEvent){
shootTimer2.reset();
shootTimer2.start();
}
private function shoot1(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
_local2 = 100;
pointer = (pointer + 45);
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer + _local3) + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, ((pointer - _local3) - _local3));
};
if (pointer >= 360){
pointer = 0;
};
};
}
}
}//package
Section 104
//Boss5 (Boss5)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public class Boss5 extends MovieClip {
private var xDir:String;
public var life:Number;
private var a_x:Number;
private var a_y:Number;
public var lifeDenom:Number;
private var xSpd:Number;
private var currentPos:Number;// = 0
private var pointer:Number;// = 0
public var typeOfDestruction:String;
private var shootCounter1:Number;// = 10
private var minXpos:Number;
private var rateOfShoot:Number;
private var movTimer:Timer;
private var maxXpos:Number;
private var shootTimer1:Timer;
private var spd:Number;
private var shootTimer2:Timer;
private var _angle:Number;
public var hitBox_mc:MovieClip;
public function Boss5(){
movTimer = new Timer(1000, 0);
shootCounter1 = 10;
pointer = 0;
currentPos = 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 = 800;
shootTimer1 = new Timer(rateOfShoot, 5);
shootTimer1.addEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.addEventListener(TimerEvent.TIMER, shoot1_done);
shootTimer1.start();
shootTimer2 = new Timer(rateOfShoot, 1);
shootTimer2.addEventListener(TimerEvent.TIMER, shoot1);
shootTimer2.addEventListener(TimerEvent.TIMER, shoot1_done);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
if (currentPos == 0){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 1){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 2){
Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 550), time:2, transition:"linear"});
} else {
if (currentPos == 3){
Tweener.addTween(this, {x:46, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 4){
Tweener.addTween(this, {x:606, y:61, time:2, transition:"linear"});
} else {
if (currentPos == 5){
Tweener.addTween(this, {x:606, y:478, time:2, transition:"linear"});
} else {
if (currentPos == 6){
Tweener.addTween(this, {x:46, y:478, time:2, transition:"linear"});
};
};
};
};
};
};
};
currentPos++;
if (currentPos == 7){
currentPos = 0;
};
};
}
private function shoot2(_arg1:TimerEvent){
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo3(this.x, this.x, 0, MovieClip(parent.parent).levelContainer_mc.player_mc, 2);
};
};
}
public function shoot_a(){
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
MovieClip(parent.parent).kills_levels++;
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attBossExplosion(this);
MovieClip(parent.parent).toPostLevelTimerObj.start();
destruct("hit");
} else {
shootCounter1--;
if (shootCounter1 <= 0){
trace(shootCounter1);
shoot_a();
shootCounter1 = 20;
};
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
if (life < 0){
life = 0;
MovieClip(parent.parent).BossLifeUIContainer_mc.bar_mc.scaleX = (life / lifeDenom);
};
};
}
private function shoot2_done(_arg1:TimerEvent){
shootTimer1.reset();
shootTimer1.start();
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
if (_arg1 == "hit"){
} else {
if (_arg1 == "outBounds"){
};
};
Tweener.removeTweens(this);
shootTimer1.stop();
shootTimer1.removeEventListener(TimerEvent.TIMER, shoot1);
shootTimer1.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot1_done);
shootTimer2.stop();
shootTimer2.removeEventListener(TimerEvent.TIMER, shoot2);
shootTimer2.removeEventListener(TimerEvent.TIMER_COMPLETE, shoot2_done);
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).bossArray, this);
}
private function shoot1_done(_arg1:TimerEvent){
shootTimer2.reset();
shootTimer2.start();
}
private function shoot1(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNum <= 0)))){
} else {
rotatePointer(MovieClip(parent.parent).levelContainer_mc.player_mc);
_local2 = 100;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local3 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, (0 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (0 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (45 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (90 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (135 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (180 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (225 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (270 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (315 - _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local3));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local3));
};
};
}
}
}//package
Section 105
//BossWarningPrompter (BossWarningPrompter)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
public dynamic class BossWarningPrompter extends MovieClip {
public var prompt_txt:TextField;
public var timer:Timer;
public var i:Number;
public function BossWarningPrompter(){
addFrameScript(0, frame1);
}
public function blinkMe(_arg1:TimerEvent){
i++;
if ((((((((i == 1)) || ((i == 3)))) || ((i == 5)))) || ((i == 7)))){
prompt_txt.alpha = 0;
} else {
prompt_txt.alpha = 1;
};
}
public function removeMe(_arg1:TimerEvent){
MovieClip(parent).removeChild(this);
}
function frame1(){
i = 0;
timer = new Timer(500, 8);
timer.addEventListener(TimerEvent.TIMER, blinkMe);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, removeMe);
timer.start();
}
}
}//package
Section 106
//BossWarningSnd (BossWarningSnd)
package {
import flash.media.*;
public dynamic class BossWarningSnd extends Sound {
}
}//package
Section 107
//BtnSnd (BtnSnd)
package {
import flash.media.*;
public dynamic class BtnSnd extends Sound {
}
}//package
Section 108
//CashSnd (CashSnd)
package {
import flash.media.*;
public dynamic class CashSnd extends Sound {
}
}//package
Section 109
//Coin (Coin)
package {
import flash.events.*;
import flash.display.*;
public class Coin extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var readyToDisappear:Boolean;// = false
public var angle:Number;
public var disappearCounter:Number;
public function Coin(_arg1:Number, _arg2:Number, _arg3:Number){
readyToDisappear = false;
super();
addFrameScript(0, frame1, 1, frame2);
this.x = _arg1;
this.y = _arg2;
init();
}
public function init(){
var _local1:Number;
_local1 = randomGenerator(90, 270);
disappearCounter = randomGenerator(100, 150);
spd = 1.5;
angle = ((_local1 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function looper(){
if (MovieClip(parent.parent).levelContainer_mc.player_mc.hitTestObject(this)){
MovieClip(parent.parent).playCrystalSnd();
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 1);
MovieClip(parent.parent).money_levels++;
MovieClip(parent.parent).acquiredCrystal_txt.text = String((": " + MovieClip(parent.parent).money_levels));
destruct("");
} else {
if ((((((((this.x > 680)) || ((this.y > 680)))) || ((this.x < 0)))) || ((this.y < 0)))){
this.stop();
destruct("");
} else {
disappearCounter--;
if (disappearCounter <= 30){
if (readyToDisappear == false){
this.gotoAndStop(2);
readyToDisappear = true;
};
};
if (disappearCounter <= 0){
this.stop();
destruct("");
};
this.x = (this.x + xSpd);
this.y = (this.y + ySpd);
this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI);
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).moneyArray, this);
}
}
}//package
Section 110
//CrystalSnd (CrystalSnd)
package {
import flash.media.*;
public dynamic class CrystalSnd extends Sound {
}
}//package
Section 111
//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{
var _local4:int;
var _local5:int;
if (timer){
timer.stop();
};
image = _arg1;
originalX = 0;
originalY = 0;
intensity = _arg2;
intensityOffset = (intensity / 2);
_local4 = int((1000 / FRAME_RATE));
_local5 = 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;
var _local3:int;
_local2 = ((originalX + (Math.random() * intensity)) - intensityOffset);
_local3 = ((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 112
//Enemy1 (Enemy1)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy1 extends MovieClip {
public var life:Number;
public var xSpd:Number;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
super();
life = 3;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
init();
spd = 5;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 1);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(5, 7));
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);
}
}
}//package
Section 113
//Enemy10 (Enemy10)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy10 extends MovieClip {
public var life:Number;
public var xSpd:Number;
public var ySpd:Number;
public var target:MovieClip;
private var movTimer:Timer;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy10(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
movTimer = new Timer(2200, 0);
super();
life = 12;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
init();
spd = 5;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo3(this.x, this.y, 0, MovieClip(parent.parent).levelContainer_mc.player_mc, 1);
Tweener.addTween(this, {x:randomGenerator(50, 600), y:randomGenerator(50, 500), time:2, transition:"linear"});
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 3);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
};
};
}
public function destruct(_arg1:String){
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 114
//Enemy11 (Enemy11)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy11 extends MovieClip {
public var life:Number;
public var xSpd:Number;
public var ySpd:Number;
public var target:MovieClip;
private var movTimer:Timer;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy11(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
movTimer = new Timer(2000, 0);
super();
life = 12;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
init();
spd = 5;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo2(this, 0);
MovieClip(parent.parent).attEnemyAmmo2(this, 45);
MovieClip(parent.parent).attEnemyAmmo2(this, 90);
MovieClip(parent.parent).attEnemyAmmo2(this, 135);
MovieClip(parent.parent).attEnemyAmmo2(this, 180);
MovieClip(parent.parent).attEnemyAmmo2(this, 225);
MovieClip(parent.parent).attEnemyAmmo2(this, 270);
MovieClip(parent.parent).attEnemyAmmo2(this, 315);
Tweener.addTween(this, {x:randomGenerator(50, 600), y:randomGenerator(50, 500), time:3, transition:"easeInOutStrong"});
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 3);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
};
};
}
public function destruct(_arg1:String){
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 115
//Enemy12 (Enemy12)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy12 extends MovieClip {
public var life:Number;
private var a_y:Number;
public var xSpd:Number;
private var a_x:Number;
private var pointer:Number;// = 0
private var shootTimer:Timer;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
private var _angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy12(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
pointer = 0;
shootTimer = new Timer(1500, 0);
super();
life = 15;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo1(this, pointer);
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 3);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(2, 4));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
rotatePointer(target);
};
};
};
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 116
//Enemy2 (Enemy2)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class Enemy2 extends MovieClip {
public var life:Number;
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var target:MovieClip;
public var spd:Number;
private var dir:Point;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function Enemy2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
super();
life = 3;
target = _arg4;
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
rotat();
init();
}
public function init(){
}
public function mov(){
dir.normalize(6);
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 1);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
if ((((((((this.y < 0)) || ((this.y > 580)))) || ((this.x < 0)))) || ((this.x > 680)))){
rotat();
};
mov();
};
};
}
public function rotat(){
dir = new Point(((target.x + randomGenerator(-100, 100)) - this.x), ((target.y + randomGenerator(-100, 100)) - this.y));
}
function bounce(){
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 117
//Enemy3 (Enemy3)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy3 extends MovieClip {
private var shootInterval:Number;
public var hitBox_mc:MovieClip;
public var tangentialAcceleration:Number;// = 0.0174532925199433
public var rotationalVelocity:Number;// = 0
public var traction;// = 2
public var distanceTravelled:Number;// = 0
public var mini:MovieClip;
public var pos:Point;
public var speed:Number;// = 0
public var shootDist:Number;
private var shootTimer:Timer;
public var s:Shape;
public var velMag:Number;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var dir:Number;// = 0
public var thrustSpeed:Number;// = 0
public var direksyon_2:Point;
public var life:Number;// = 6
public var maxDist:Number;
public var drawingLine:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var fillThrustSpeed:Number;// = 2
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var target:MovieClip;
public var vel:Point;
public var mc:MovieClip;
private var _dir:Point;
public var norm1:Number;
public var norm2:Number;
public var driftDX:Number;// = 0
public var driftDY:Number;// = 0
public function Enemy3(_arg1:Number, _arg2:Number, _arg3:MovieClip){
dx = 0;
dy = 0;
speed = 0;
dir = 0;
drag = 0.9;
traction = 2;
thrustSpeed = 0;
distanceTravelled = 0;
fillThrustSpeed = 2;
emptyThrustSpeed = 0;
driftDX = 0;
driftDY = 0;
direksyon_2 = new Point(0, 0);
norm1 = randomGenerator(0, 1);
norm2 = randomGenerator(1, 6);
pos = new Point();
vel = new Point();
mat = new Matrix();
s = new Shape();
rotationalVelocity = 0;
rotationalVelocityMax = ((Math.PI / 180) * 5);
tangentialAcceleration = ((Math.PI / 180) * 1);
drawingLine = new MovieClip();
life = 6;
_dir = new Point(0, 0);
super();
this.x = _arg1;
this.y = _arg2;
thrustSpeed = fillThrustSpeed;
target = _arg3;
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;
shootInterval = ((Math.random() * (3000 - 1500)) + 1500);
shootTimer = new Timer(shootInterval, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
}
public function looper(){
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 1);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
followTarget();
turn();
Move();
};
};
}
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 calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local5 = ((_arg1 - _arg3) * (_arg1 - _arg3));
_local6 = ((_arg2 - _arg4) * (_arg2 - _arg4));
_local7 = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function followTarget(){
var _local1:Point;
var _local2:Number;
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 1));
direksyon_2 = direksyon_2.add(_local1);
direksyon_2.normalize(randomGenerator(1, 6));
_local2 = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local2 + 90);
this.rotation = _local2;
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
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 118
//Enemy4 (Enemy4)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy4 extends MovieClip {
public var life:Number;
private var a_y:Number;
public var xSpd:Number;
private var a_x:Number;
private var pointer:Number;// = 0
private var shootTimer:Timer;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
private var _angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
pointer = 0;
shootTimer = new Timer(1500, 0);
super();
life = 6;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo1(this, pointer);
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 1);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(5, 7));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
rotatePointer(target);
};
};
};
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 119
//Enemy5 (Enemy5)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy5 extends MovieClip {
public var life:Number;
private var a_y:Number;
public var xSpd:Number;
private var a_x:Number;
private var pointer:Number;// = 0
private var shootTimer:Timer;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
private var _angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
pointer = 0;
shootTimer = new Timer(1500, 0);
super();
life = 8;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
var _local2:Number;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local2 = 2;
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local2));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local2));
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 2);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(2, 3));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
rotatePointer(target);
};
};
};
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 120
//Enemy6 (Enemy6)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy6 extends MovieClip {
public var life:Number;
private var a_y:Number;
public var xSpd:Number;
private var a_x:Number;
private var pointer:Number;// = 0
private var shootTimer:Timer;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
private var _angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
pointer = 0;
shootTimer = new Timer(1500, 0);
super();
life = 8;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
var _local2:Number;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local2 = 2;
MovieClip(parent.parent).attEnemyAmmo2(this, (pointer + _local2));
MovieClip(parent.parent).attEnemyAmmo2(this, (pointer - _local2));
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 2);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
rotatePointer(target);
};
};
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 121
//Enemy7 (Enemy7)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy7 extends MovieClip {
private var shootInterval:Number;
public var hitBox_mc:MovieClip;
public var tangentialAcceleration:Number;// = 0.0174532925199433
private var a_x:Number;
private var a_y:Number;
public var rotationalVelocity:Number;// = 0
public var traction;// = 2
public var distanceTravelled:Number;// = 0
private var pointer:Number;// = 0
public var mini:MovieClip;
public var pos:Point;
public var speed:Number;// = 0
public var shootDist:Number;
private var shootTimer:Timer;
public var s:Shape;
public var velMag:Number;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var dir:Number;// = 0
public var thrustSpeed:Number;// = 0
public var direksyon_2:Point;
public var life:Number;// = 10
public var maxDist:Number;
public var drawingLine:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var fillThrustSpeed:Number;
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var target:MovieClip;
public var vel:Point;
public var mc:MovieClip;
private var _dir:Point;
private var _angle:Number;
public var norm1:Number;
public var norm2:Number;
public var driftDX:Number;// = 0
public var driftDY:Number;// = 0
public function Enemy7(_arg1:Number, _arg2:Number, _arg3:MovieClip){
dx = 0;
dy = 0;
speed = 0;
dir = 0;
drag = 0.9;
traction = 2;
thrustSpeed = 0;
distanceTravelled = 0;
fillThrustSpeed = randomGenerator(1, 2);
emptyThrustSpeed = 0;
driftDX = 0;
driftDY = 0;
direksyon_2 = new Point(0, 0);
norm1 = randomGenerator(0, 1);
norm2 = randomGenerator(1, 6);
pos = new Point();
vel = new Point();
mat = new Matrix();
s = new Shape();
rotationalVelocity = 0;
rotationalVelocityMax = ((Math.PI / 180) * 5);
tangentialAcceleration = ((Math.PI / 180) * 1);
drawingLine = new MovieClip();
life = 10;
_dir = new Point(0, 0);
pointer = 0;
super();
this.x = _arg1;
this.y = _arg2;
thrustSpeed = fillThrustSpeed;
target = _arg3;
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;
shootInterval = ((Math.random() * (3000 - 2000)) + 2000);
shootTimer = new Timer(shootInterval, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
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));
}
public function shoot(_arg1:TimerEvent){
var _local2:Number;
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local2 = 4;
MovieClip(parent.parent).attEnemyAmmo1(this, pointer);
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer - _local2));
MovieClip(parent.parent).attEnemyAmmo1(this, (pointer + _local2));
};
}
public function looper(){
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 2);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
rotatePointer(target);
followTarget();
turn();
Move();
};
};
}
function rotatePointer(_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;
}
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 calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local5 = ((_arg1 - _arg3) * (_arg1 - _arg3));
_local6 = ((_arg2 - _arg4) * (_arg2 - _arg4));
_local7 = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function followTarget(){
var _local1:Point;
var _local2:Number;
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 1));
direksyon_2 = direksyon_2.add(_local1);
direksyon_2.normalize(randomGenerator(1, 6));
_local2 = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local2 + 90);
this.rotation = _local2;
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 122
//Enemy8 (Enemy8)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy8 extends MovieClip {
public var life:Number;
public var xSpd:Number;
public var ySpd:Number;
public var target:MovieClip;
private var movTimer:Timer;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy8(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
movTimer = new Timer(2500, 0);
super();
life = 10;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
init();
spd = 5;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
movTimer.addEventListener(TimerEvent.TIMER, mov);
movTimer.start();
}
public function mov(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo1(this, 0);
MovieClip(parent.parent).attEnemyAmmo1(this, 45);
MovieClip(parent.parent).attEnemyAmmo1(this, 90);
MovieClip(parent.parent).attEnemyAmmo1(this, 135);
MovieClip(parent.parent).attEnemyAmmo1(this, 180);
MovieClip(parent.parent).attEnemyAmmo1(this, 225);
MovieClip(parent.parent).attEnemyAmmo1(this, 270);
MovieClip(parent.parent).attEnemyAmmo1(this, 315);
Tweener.addTween(this, {x:randomGenerator(50, 600), y:randomGenerator(50, 500), time:2, transition:"linear"});
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 2);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
};
};
}
public function destruct(_arg1:String){
movTimer.stop();
movTimer.removeEventListener(TimerEvent.TIMER, mov);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 123
//Enemy9 (Enemy9)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class Enemy9 extends MovieClip {
public var life:Number;
private var a_y:Number;
public var xSpd:Number;
private var a_x:Number;
private var pointer:Number;// = 0
private var shootTimer:Timer;
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
private var _angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function Enemy9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
pointer = 0;
shootTimer = new Timer(1500, 0);
super();
life = 10;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
public function shoot(_arg1:TimerEvent){
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
MovieClip(parent.parent).attEnemyAmmo2(this, (pointer - 4));
MovieClip(parent.parent).attEnemyAmmo2(this, (pointer + 4));
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((this.y > 750)))){
destruct("");
} else {
if (life <= 0){
MovieClip(parent.parent).points_levels = (MovieClip(parent.parent).points_levels + 3);
MovieClip(parent.parent).attCoin(this);
MovieClip(parent.parent).attExplosion(this);
MovieClip(parent.parent).kills_levels++;
destruct("");
} else {
if (MovieClip(parent.parent).voltageJammerInUse == "no"){
_local1 = new Point((target.x - this.x), (target.y - this.y));
_local1.normalize(randomGenerator(0, 2));
dir = dir.add(_local1);
dir.normalize(randomGenerator(5, 7));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
rotatePointer(target);
};
};
};
}
function rotatePointer(_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;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this);
}
}
}//package
Section 124
//EnemyAmmo1 (EnemyAmmo1)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo1 extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
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 init(){
spd = 8;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).enemyAmmo1Array, this);
}
}
}//package
Section 125
//EnemyAmmo2 (EnemyAmmo2)
package {
import flash.events.*;
import flash.display.*;
public class EnemyAmmo2 extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
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 init(){
spd = 6;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).enemyAmmo2Array, this);
}
}
}//package
Section 126
//EnemyAmmo3 (EnemyAmmo3)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class EnemyAmmo3 extends MovieClip {
public var life:Number;
public var xSpd:Number;
private var turnDelayCounter:Number;// = 0
public var ySpd:Number;
public var target:MovieClip;
public var mc:MovieClip;
public var spd:Number;
private var dir:Point;
public var grvty:Number;
public var angle:Number;
public var rot:Number;
public var hitBox_mc:MovieClip;
public function EnemyAmmo3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
dir = new Point(0, 0);
turnDelayCounter = 0;
super();
life = 1;
this.x = _arg1;
this.y = _arg2;
target = _arg4;
init();
spd = 6;
angle = ((_arg3 / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function looper(){
var _local1:Point;
if ((((((this.x < -200)) || ((this.x > 1020)))) || ((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(8, 10));
this.x = (this.x + dir.x);
this.y = (this.y + dir.y);
};
};
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo3Array, this);
}
}
}//package
Section 127
//ExplodeSnd (ExplodeSnd)
package {
import flash.media.*;
public dynamic class ExplodeSnd extends Sound {
}
}//package
Section 128
//Explosion (Explosion)
package {
import flash.display.*;
public dynamic class Explosion extends MovieClip {
public function Explosion(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 129
//IntroSnd (IntroSnd)
package {
import flash.media.*;
public dynamic class IntroSnd extends Sound {
}
}//package
Section 130
//MinnionCrosshair (MinnionCrosshair)
package {
import flash.display.*;
public dynamic class MinnionCrosshair extends MovieClip {
public var ui_mc:MovieClip;
}
}//package
Section 131
//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{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 132
//PlayerAmmo1a (PlayerAmmo1a)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo1a extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo1a(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 18;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo1aArray, this);
}
}
}//package
Section 133
//PlayerAmmo1b (PlayerAmmo1b)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo1b extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo1b(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo1bArray, this);
}
}
}//package
Section 134
//PlayerAmmo1c (PlayerAmmo1c)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo1c extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo1c(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 18;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo1cArray, this);
}
}
}//package
Section 135
//PlayerAmmo2a (PlayerAmmo2a)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo2a extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo2a(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo2aArray, this);
}
}
}//package
Section 136
//PlayerAmmo2b (PlayerAmmo2b)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo2b extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo2b(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo2bArray, this);
}
}
}//package
Section 137
//PlayerAmmo2c (PlayerAmmo2c)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo2c extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo2c(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 18;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo2cArray, this);
}
}
}//package
Section 138
//PlayerAmmo3a (PlayerAmmo3a)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo3a extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo3a(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 20;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo3aArray, this);
}
}
}//package
Section 139
//PlayerAmmo3b (PlayerAmmo3b)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo3b extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo3b(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 18;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo3bArray, this);
}
}
}//package
Section 140
//PlayerAmmo3c (PlayerAmmo3c)
package {
import flash.events.*;
import flash.display.*;
public class PlayerAmmo3c extends MovieClip {
public var xSpd:Number;
public var speed:int;
public var ySpd:Number;
public var spd:Number;
public var angle:Number;
public var hitBox_mc:MovieClip;
public function PlayerAmmo3c(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.rotation = _arg3;
init();
}
public function init(){
spd = 14;
angle = ((this.rotation / 180) * Math.PI);
xSpd = (Math.cos(angle) * spd);
ySpd = (Math.sin(angle) * spd);
}
public function looper(){
if ((((((((this.y < -10)) || ((this.y > 590)))) || ((this.x < -10)))) || ((this.x > 690)))){
destruct("");
} else {
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).playerAmmo3cArray, this);
}
}
}//package
Section 141
//PlayerSpecialMinnion (PlayerSpecialMinnion)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
public class PlayerSpecialMinnion extends MovieClip {
private var shootInterval:Number;
public var hitBox_mc:MovieClip;
public var tangentialAcceleration:Number;// = 0.0174532925199433
public var rotationalVelocity:Number;// = 0
public var traction;// = 3
public var distanceTravelled:Number;// = 0
public var mini:MovieClip;
public var pos:Point;
public var speed:Number;// = 0
public var shootDist:Number;
private var shootTimer:Timer;
public var s:Shape;
public var velMag:Number;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var dir:Number;// = 0
public var thrustSpeed:Number;// = 0
public var crosshair_mc:MovieClip;
public var pointer_mc:MovieClip;
public var direksyon_2:Point;
public var life:Number;// = 100
public var maxDist:Number;
public var drawingLine:MovieClip;
public var drag;// = 0.9
public var emptyThrustSpeed:Number;// = 0
public var fillThrustSpeed:Number;
public var body_mc:MovieClip;
public var rotationalVelocityMax:Number;// = 0.0872664625997165
public var mat:Matrix;
public var myEnemyArr:Array;
public var target:MovieClip;
public var vel:Point;
public var mc:MovieClip;
private var _dir:Point;
public var norm1:Number;
public var norm2:Number;
public var driftDX:Number;// = 0
public var driftDY:Number;// = 0
public function PlayerSpecialMinnion(_arg1:MovieClip){
dx = 0;
dy = 0;
speed = 0;
dir = 0;
drag = 0.9;
traction = 3;
thrustSpeed = 0;
distanceTravelled = 0;
fillThrustSpeed = randomGenerator(1, 3);
emptyThrustSpeed = 0;
driftDX = 0;
driftDY = 0;
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();
rotationalVelocity = 0;
rotationalVelocityMax = ((Math.PI / 180) * 5);
tangentialAcceleration = ((Math.PI / 180) * 1);
drawingLine = new MovieClip();
life = 100;
_dir = new Point(0, 0);
myEnemyArr = new Array();
body_mc = new MovieClip();
crosshair_mc = new MovieClip();
super();
this.x = _arg1.x;
this.y = _arg1.y;
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 + 90);
this.rotation = _arg1.rotation;
};
shootInterval = ((Math.random() * (1000 - 500)) + 500);
shootTimer = new Timer(shootInterval, 0);
shootTimer.addEventListener(TimerEvent.TIMER, shoot);
shootTimer.start();
}
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));
}
public function shoot(_arg1:TimerEvent){
if ((((MovieClip(parent.parent).enemyArray.length > 0)) || ((MovieClip(parent.parent).bossArray.length > 0)))){
MovieClip(parent.parent).attMinnionAmmo(this, this.rotation);
};
}
public function looper(){
if (life <= 0){
destruct("");
} else {
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);
myEnemyArr.sortOn("dis", Array.NUMERIC);
_local1++;
};
} else {
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);
myEnemyArr.sortOn("dis", Array.NUMERIC);
_local3++;
};
};
};
if (myEnemyArr.length > 0){
crosshair_mc.x = myEnemyArr[0].mc.x;
crosshair_mc.y = myEnemyArr[0].mc.y;
followTarget(myEnemyArr[0].mc);
rotateBody(myEnemyArr[0].mc, body_mc);
} else {
crosshair_mc.x = -100;
crosshair_mc.y = -100;
};
myEnemyArr.splice(0, myEnemyArr.length);
}
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 calDist(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local5 = ((_arg1 - _arg3) * (_arg1 - _arg3));
_local6 = ((_arg2 - _arg4) * (_arg2 - _arg4));
_local7 = Math.sqrt((_local5 + _local6));
return (_local7);
}
public function followTarget(_arg1:MovieClip){
var _local2:Point;
var _local3:Number;
_local2 = new Point((_arg1.x - this.x), (_arg1.y - this.y));
_local2.normalize(norm1);
direksyon_2 = direksyon_2.add(_local2);
direksyon_2.normalize(norm2);
_local3 = ((Math.atan2(direksyon_2.y, direksyon_2.x) * 180) / Math.PI);
dir = (_local3 + 90);
this.rotation = _local3;
}
public function initLine(){
MovieClip(parent).addChild(drawingLine);
}
function drwLine(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = 10;
_local2 = this.rotation;
_local3 = (this.x + (_local1 * Math.cos(((_local2 * Math.PI) / 180))));
_local4 = (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);
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function rotateBody(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = (_arg1.x - (this.x + _arg2.x));
_local4 = (_arg1.y - (this.y + _arg2.y));
_local5 = ((180 * Math.atan2(_local4, _local3)) / Math.PI);
_arg2.rotation = _local5;
}
public function destruct(_arg1:String){
shootTimer.stop();
shootTimer.removeEventListener(TimerEvent.TIMER, shoot);
MovieClip(parent).removeChild(crosshair_mc);
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecialMinnionArray, this);
}
function movMinimapElement(){
mini.x = (this.x * 0.1);
mini.y = (this.y * 0.1);
}
}
}//package
Section 142
//PromptAward (PromptAward)
package {
import caurina.transitions.*;
import flash.display.*;
import flash.text.*;
public dynamic class PromptAward extends MovieClip {
public var aName_txt:TextField;
public function PromptAward(){
addFrameScript(0, frame1);
}
public function _goUpAgain(){
Tweener.addTween(this, {scaleX:0, scaleY:0, time:1, onComplete:_disappear, transition:"easeInBack"});
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
this.scaleX = 0;
this.scaleY = 0;
Tweener.addTween(this, {scaleX:1, scaleY:1, time:0.4, onComplete:_goUp, transition:"easeOutBack"});
}
public function _goUp(){
Tweener.addTween(this, {y:(this.y - 10), time:1, onComplete:_goUpAgain, transition:"easeOutBack"});
}
}
}//package
Section 143
//PromptSpecialBullet (PromptSpecialBullet)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class PromptSpecialBullet extends MovieClip {
public function PromptSpecialBullet(){
addFrameScript(0, frame1);
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
Tweener.addTween(this, {alpha:0, scaleX:2, scaleY:2, time:2, onComplete:_disappear, transition:"easeOutStrong"});
}
}
}//package
Section 144
//PromptSpecialMinnion (PromptSpecialMinnion)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class PromptSpecialMinnion extends MovieClip {
public function PromptSpecialMinnion(){
addFrameScript(0, frame1);
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
Tweener.addTween(this, {alpha:0, scaleX:2, scaleY:2, time:2, onComplete:_disappear, transition:"easeOutStrong"});
}
}
}//package
Section 145
//PromptSpecialNuke (PromptSpecialNuke)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class PromptSpecialNuke extends MovieClip {
public function PromptSpecialNuke(){
addFrameScript(0, frame1);
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
Tweener.addTween(this, {alpha:0, scaleX:2, scaleY:2, time:2, onComplete:_disappear, transition:"easeOutStrong"});
}
}
}//package
Section 146
//PromptSpecialVoltage (PromptSpecialVoltage)
package {
import caurina.transitions.*;
import flash.display.*;
public dynamic class PromptSpecialVoltage extends MovieClip {
public function PromptSpecialVoltage(){
addFrameScript(0, frame1);
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
Tweener.addTween(this, {alpha:0, scaleX:2, scaleY:2, time:2, onComplete:_disappear, transition:"easeOutStrong"});
}
}
}//package
Section 147
//Shot1 (Shot1)
package {
import flash.media.*;
public dynamic class Shot1 extends Sound {
}
}//package
Section 148
//Shot2 (Shot2)
package {
import flash.media.*;
public dynamic class Shot2 extends Sound {
}
}//package
Section 149
//Shot3 (Shot3)
package {
import flash.media.*;
public dynamic class Shot3 extends Sound {
}
}//package
Section 150
//Shot4 (Shot4)
package {
import flash.media.*;
public dynamic class Shot4 extends Sound {
}
}//package
Section 151
//TeleportFlash (TeleportFlash)
package {
import flash.display.*;
public dynamic class TeleportFlash extends MovieClip {
public function TeleportFlash(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 152
//VoltageJammerAni (VoltageJammerAni)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class VoltageJammerAni extends MovieClip {
public function VoltageJammerAni(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
looper();
}
public function looper(){
if (MovieClip(parent.parent).voltageJammerInUse == "yes"){
trace("VJ");
this.x = MovieClip(parent.parent).levelContainer_mc.player_mc.x;
this.y = MovieClip(parent.parent).levelContainer_mc.player_mc.y;
} else {
stop();
MovieClip(parent).removeChild(this);
};
}
function frame1(){
}
function frame4(){
looper();
}
function frame5(){
looper();
}
function frame2(){
looper();
}
}
}//package