STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Stitchland Conflict - action shooter game made out of Stitch art graphics.swf

This is the info page for
Flash #92903

(Click the ID number above for more basic data on this flash file.)


Text
AWARD NAME

100

+  +  +  +  +  +  +  +

+  +  +  +  +  +  +  +

00%

<p align="center"><font face="Kingthings Xstitch" size="32" color="#003300" letterSpacing="4.000000" kerning="0"><b>PLAY&gt;</b></font></p>

+  +  +  +  +  +  +  +

+  +  +  +  +  +  +  +

+

+

+

+

<< STITCHLAND >>

+  +  +  CONFLICT  +  +  +

An Adobo Games Studio Production

Toggle Quality - (Q)
-Medium

<p align="left"><font face="Kingthings Xstitch" size="32" color="#003300" letterSpacing="4.000000" kerning="0"><b>CREDITS</b></font></p>

viral version 1.3

WALKTHROUGH

WARNING ! ! ! !

Previous saved game will be deleted.

CONTINUE ?

CONTROLS

A-(MOVE LEFT)
D-(MOVE RIGHT)
W-(JUMP) if Booster is acquired
F-(SHIELD) if Shield is acquired
SPACEBAR - (SPECIALS)

Mouse - Aim and Shoot

The peaceful nation of TAHI is in the brink of invasion from PUNIT country. Several machines from PUNIT were deployed to ensure a successful intrusion. The only defensive stance that TAHI has is an Advance weapon platform known as "KARAYOM". Tahi's victory against Punit lies on your hands. Repel the enemies back to their country and end the act of war that rises between them.

Toggle Quality - (Q)
-Medium

AVAILABLE WEAPONS

SPECIAL ATTACKS

Weapon Name

Weapon Description

ITEMS

UPGRADES

Money: $ 200

Next Level: 1/12

ARMOR

SPEED

0/5

0/5

Booster

Shield

Air Cav

Air Strike

Homing

Proton Gun

Shockwave

Paratroopers

(  )

(  )

(  )

(  )

(  )

(  )

(  )

$ 300

$ 300

$ 300

$ 300

$ 300

$ 300

$ 300

$ 300

1/5

1/5

Weapon Name

Weapon Description

NEW WEAPON ! ! ! !

Toggle Quality - (Q)
-Medium

[ 1. MAHINA ]

SPECIAL >>

LIFE >>

SHIELD [ F ]

Money: $200

LEVEL CLEAR

MISSION FAILED

BOSS >>

Toggle Quality - (Q)
-Medium

KILLS

00

PLAY MORE GAMES @ ARMORGAMES

MISSION
ACCOMPLISHED

KILLS

MONEY

Toggle Quality - (Q)
-Medium

SUBMIT SCORE >>

MISSION
FAILED

Toggle Quality - (Q)
-Medium

WELL DONE!!!
You made us proud!!!

Buy your self some tea and Enjoy!
and Btw..Thanks for Playing!

Toggle Quality - (Q)
-Medium

AWARDS

Exterminator

Finishing a level with 10% or low health

Toggle Quality - (Q)
-Medium

SPONSORED BY

DEVELOPED BY

ARGENE TANYONG
(PROGAMMING & ADDITIONAL GRAPHICS)

AILA
(GRAPHICS)

+

+

+

+

SUBMIT HIGHSCORE

HIGHSCORE BOARD

ActionScript [AS3]

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.display.*; import flash.events.*; 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
//AdLoader (CPMStar.AdLoader) package CPMStar { import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; public class AdLoader extends Sprite { private var contentspotid:String; private var cpmstarLoader:Loader; public function AdLoader(_arg1:String){ this.contentspotid = _arg1; addEventListener(Event.ADDED, addedHandler); } private function addedHandler(_arg1:Event):void{ var _local2:String; var _local3:DisplayObjectContainer; removeEventListener(Event.ADDED, addedHandler); Security.allowDomain("server.cpmstar.com"); _local2 = "http://server.cpmstar.com/adviewas3.swf"; _local3 = parent; cpmstarLoader = new Loader(); cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler); cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler); cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid))); addChild(cpmstarLoader); } private function dispatchHandler(_arg1:Event):void{ dispatchEvent(_arg1); } } }//package CPMStar
Section 10
//BaseButton (fl.controls.BaseButton) package fl.controls { import flash.display.*; import fl.core.*; import flash.events.*; import flash.utils.*; import fl.events.*; public class BaseButton extends UIComponent { protected var pressTimer:Timer; protected var _autoRepeat:Boolean;// = false protected var _selected:Boolean;// = false protected var background:DisplayObject; private var unlockedMouseState:String; protected var mouseState:String; private var _mouseStateLocked:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } override public function get enabled():Boolean{ return (super.enabled); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function drawLayout():void{ background.width = width; background.height = height; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } protected function drawBackground():void{ var _local1:String = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); var _local2:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public function get selected():Boolean{ return (_selected); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 11
//Button (fl.controls.Button) package fl.controls { import flash.display.*; import fl.core.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var _emphasized:Boolean;// = false protected var emphasizedBorder:DisplayObject; private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; var _local1:Object = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 12
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 13
//LabelButton (fl.controls.LabelButton) package fl.controls { import flash.display.*; import fl.core.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _toggle:Boolean;// = false public var textField:TextField; protected var mode:String;// = "center" protected var _labelPlacement:String;// = "right" protected var oldMouseState:String; protected var _label:String;// = "Label" protected var icon:DisplayObject; private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override protected function drawLayout():void{ var _local7:Number; var _local8:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); var _local3:Number = (textField.textWidth + 4); var _local4:Number = (textField.textHeight + 4); var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1); var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } public function get labelPlacement():String{ return (_labelPlacement); } public function get toggle():Boolean{ return (_toggle); } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } protected function drawIcon():void{ var _local1:DisplayObject = icon; var _local2:String = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); var _local3:Object = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public function get label():String{ return (_label); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 14
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 15
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 16
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import flash.utils.*; import fl.events.*; import flash.text.*; import flash.system.*; public class UIComponent extends Sprite { protected var _x:Number; protected var _enabled:Boolean;// = true protected var callLaterMethods:Dictionary; private var _mouseFocusEnabled:Boolean;// = true private var tempText:TextField; private var _focusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var invalidateFlag:Boolean;// = false protected var _oldIMEMode:String;// = null protected var _inspector:Boolean;// = false protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var invalidHash:Object; protected var sharedStyles:Object; protected var uiFocusRect:DisplayObject; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var _width:Number; protected var instanceStyles:Object; public var version:String;// = "3.0.0.16" protected var isFocused:Boolean;// = false protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } private function callLaterDispatcher(_arg1:Event):void{ var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; var _local2:Dictionary = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } protected function validate():void{ invalidHash = {}; } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } override public function get height():Number{ return (_height); } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } override public function get scaleY():Number{ return ((height / startHeight)); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function configUI():void{ isLivePreview = checkLivePreview(); var _local1:Number = rotation; rotation = 0; var _local2:Number = super.width; var _local3:Number = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } override public function get scaleX():Number{ return ((width / startWidth)); } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var skin = _arg1; var classDef:Object; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } override public function set visible(_arg1:Boolean):void{ if (super.visible == _arg1){ return; }; super.visible = _arg1; var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set y(_arg1:Number):void{ move(_x, _arg1); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local5:Object; var _local6:String; var _local2:Object = {}; var _local3:uint = _args.length; var _local4:uint; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 17
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 18
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.controls.*; import flash.display.*; import fl.core.*; import flash.events.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; var _local5:int = focusableCandidates.length; var _local6:int = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } private function setFocusToNextObject(_arg1:FocusEvent):void{ if (!hasFocusableObjects()){ return; }; var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local3:TextField; var _local4:SimpleButton; var _local2:DisplayObjectContainer = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } private function tabChildrenChangeHandler(_arg1:Event):void{ if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } public function getFocus():InteractiveObject{ var _local1:InteractiveObject = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } public function set defaultButton(_arg1:Button):void{ var _local2:Button = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int = focusableCandidates.length; var _local3:int; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local4:InteractiveObject; var _local3:DisplayObject = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local5:int; var _local6:String; var _local7:String; var _local3 = ""; var _local4 = ""; var _local8 = "0000"; var _local9:DisplayObject = DisplayObject(_arg1); var _local10:DisplayObject = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; var _local2:DisplayObject = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); var _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; var _local4:int = getIndexOfFocusedObject(_local2); var _local5:Boolean; var _local6:int = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ if (_arg1.isDefaultPrevented()){ return; }; var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local3:Button; var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ calculateCandidates = true; var _local2:InteractiveObject = InteractiveObject(_arg1.target); var _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } } }//package fl.managers
Section 19
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function hideFocus():void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function setFocus(_arg1:InteractiveObject):void; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 20
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package fl.managers
Section 21
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function get groupName():String; function get selected():Boolean; function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; } }//package fl.managers
Section 22
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var classToInstancesDict:Dictionary; private var globalStyles:Object; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToDefaultStylesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class = getClassDef(_arg1); var _local5:Object = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local5:String; var _local2:StyleManager = getInstance(); var _local3:Class = getClassDef(_arg1); var _local4:Object = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local4:Object; var _local5:UIComponent; var _local3:Dictionary = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local3:Object; var _local2:Dictionary = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; var inst:StyleManager = getInstance(); var classDef:Class = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; if (inst.classToStylesDict[classDef] == null){ inst.classToStylesDict[classDef] = {}; }; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:StyleManager = getInstance(); var _local5:Object = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 23
//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 24
//MouseWheel (ru.etcs.ui.MouseWheel) package ru.etcs.ui { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.errors.*; public final class MouseWheel { private static const _bytes:ByteArray = new ByteArray(); private static const _dataPart0:Array = new Array(1180128009, 671154176, 2013267295, 4000, 7937, 0x441100, 67, 50331647, 1057226240, 34908, 589932, 1660963951, 1667329091, 1869508197, 1668573551, 1845521507); private static const _dataPart1:Array = new Array(6516590, 1852138356, 6513008, 1953854053, 5074805, 1935999073, 1684294761, 1937007982, 1701970034, 1701670774, 1699506547, 1952804453, 1912631150, 1299150195, 1700227173, 1701576854, 218105856, 100663296, 0, 524608, 496371968, 134350593, 8, 1873410, 525138, 395706880, 134225046, 33556484, 2383347712, 16778025, 161377, 1819632896, 939562498, 262674, 2634154009, 0x960900, 67176193, 8, 85759490, 525906, 395903488, 335582729, 262407, 16777216, 134552726, 33556487, 1377259414, 33556488, 2600796160, 0, 496371968, 83953409, 8, 1873410, 525394, 385892352); private static const _connection:LocalConnection = new LocalConnection(); private static var _complete:Boolean = false; private static var _loader:Loader; private static var _captured:Boolean = false; private static var _connectionID:uint; public function MouseWheel(){ throw (new IllegalOperationError("do not instantiate MouseWheel")); } public static function capture():void{ var _local1:uint; var _local2:ByteArray; var _local3:Array; var _local4:uint; var _local5:uint; if (MouseWheel._captured){ return; }; if (!MouseWheel._bytes.length){ _local1 = Math.round((Math.random() * 100000)); while (_local1 < 10000) { _local1 = Math.round((Math.random() * 100000)); }; MouseWheel._connectionID = _local1; _local2 = MouseWheel._bytes; _local3 = MouseWheel._dataPart0; _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local2.writeUnsignedInt(_local3[_local5]); _local5++; }; _local2.writeUTFBytes(("_" + MouseWheel._connectionID.toString())); _local3 = MouseWheel._dataPart1; _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local2.writeUnsignedInt(_local3[_local5]); _local5++; }; _local2.writeShort(0); }; MouseWheel._connection.addEventListener(StatusEvent.STATUS, MouseWheel.handler_status); MouseWheel._connection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, MouseWheel.handler_asyncError); MouseWheel._captured = true; if (MouseWheel._loader){ MouseWheel.send(); } else { MouseWheel._loader = new Loader(); MouseWheel._loader.loadBytes(MouseWheel._bytes); MouseWheel._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, MouseWheel.handler_complete); }; } private static function handler_status(_arg1:StatusEvent):void{ if (_arg1.level == "error"){ MouseWheel.send(); }; } public static function release():void{ if (!MouseWheel._captured){ return; }; MouseWheel._captured = false; MouseWheel.send(); } private static function send(_arg1:Event=null):void{ if (!MouseWheel._complete){ return; }; MouseWheel._connection.send(("lc_" + MouseWheel._connectionID), "capture", MouseWheel._captured); } private static function handler_asyncError(_arg1:AsyncErrorEvent):void{ } private static function handler_complete(_arg1:Event):void{ MouseWheel._complete = true; if (!MouseWheel._captured){ MouseWheel.send(); }; } public static function get captured():Boolean{ return (MouseWheel._captured); } } }//package ru.etcs.ui
Section 25
//ag_intro_mc_6 (StitchedWar_viral_v1_fla.ag_intro_mc_6) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class ag_intro_mc_6 extends MovieClip { public function ag_intro_mc_6(){ 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 StitchedWar_viral_v1_fla
Section 26
//btn_adoboGamesFacebook_109 (StitchedWar_viral_v1_fla.btn_adoboGamesFacebook_109) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_adoboGamesFacebook_109 extends MovieClip { public function btn_adoboGamesFacebook_109(){ 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://www.facebook.com/pages/bowl-Kitchen/Adobo-Games/366654095353"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 27
//btn_adoboTitleLogo_21 (StitchedWar_viral_v1_fla.btn_adoboTitleLogo_21) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_adoboTitleLogo_21 extends MovieClip { public var hitBox_mc:MovieClip; public function btn_adoboTitleLogo_21(){ 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://www.facebook.com/pages/bowl-Kitchen/Adobo-Games/366654095353"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 28
//btn_credits_27 (StitchedWar_viral_v1_fla.btn_credits_27) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class btn_credits_27 extends MovieClip { public var hitBox_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 29
//btn_facebook_29 (StitchedWar_viral_v1_fla.btn_facebook_29) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_facebook_29 extends MovieClip { public function btn_facebook_29(){ 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://www.facebook.com/pages/Armor-Games/19522089061"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 30
//btn_inGameArmorgameLogo_92 (StitchedWar_viral_v1_fla.btn_inGameArmorgameLogo_92) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_inGameArmorgameLogo_92 extends MovieClip { public var hitBox_mc:MovieClip; public function btn_inGameArmorgameLogo_92(){ 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 StitchedWar_viral_v1_fla
Section 31
//btn_moreGames_18 (StitchedWar_viral_v1_fla.btn_moreGames_18) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_moreGames_18 extends MovieClip { public function btn_moreGames_18(){ 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 StitchedWar_viral_v1_fla
Section 32
//btn_play_4 (StitchedWar_viral_v1_fla.btn_play_4) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class btn_play_4 extends MovieClip { public var hitBox_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 33
//btn_sponsorLogoOnTitle_19 (StitchedWar_viral_v1_fla.btn_sponsorLogoOnTitle_19) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_sponsorLogoOnTitle_19 extends MovieClip { public function btn_sponsorLogoOnTitle_19(){ 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 StitchedWar_viral_v1_fla
Section 34
//btn_submitScore_103 (StitchedWar_viral_v1_fla.btn_submitScore_103) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class btn_submitScore_103 extends MovieClip { public var hitBox_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 35
//btn_twitter_28 (StitchedWar_viral_v1_fla.btn_twitter_28) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_twitter_28 extends MovieClip { public function btn_twitter_28(){ 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://twitter.com/armorgames"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 36
//btn_walkthrough_30 (StitchedWar_viral_v1_fla.btn_walkthrough_30) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class btn_walkthrough_30 extends MovieClip { public var hitBox_mc:MovieClip; public function btn_walkthrough_30(){ 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/guide/Stitchland-Conflict-Game-Guide"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 37
//MainTimeline (StitchedWar_viral_v1_fla.MainTimeline) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import caurina.transitions.*; import fl.motion.*; import flash.geom.*; import flash.utils.*; import ru.etcs.ui.*; import flash.media.*; import flash.text.*; import CPMStar.*; import flash.net.*; import flash.errors.*; import flash.ui.*; import flash.system.*; import flash.filters.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var redFlash_mc:MovieClip; public var loader:Loader; public var bullet3Snd:Sound; public var loader_txt:TextField; public var spec2Reload:Number; public var firstHalf_mc:MovieClip; public var ammo5ui_mc:MovieClip; public var playerSpecial6Array:Array; public var ammo1Name:String; public var waveMax_lvl1:Number; public var waveMax_lvl2:Number; public var ammo4Max:Number; public var waveMax_lvl5:Number; public var waveMax_lvl6:Number; public var waveMax_lvl7:Number; public var waveMax_lvl8:Number; public var item1Price:Number; public var waveMax_lvl3:Number; public var gameBG3Snd:Sound; public var award4_Name:String; public var award11_Name:String; public var waveMax_lvl9:Number; public var enemyAmmo4Array:Array; public var upgradeSpeedPrice:Number; public var playerAmmo8aArray:Array; public var waveMax_lvl4:Number; public var playerAmmo4Array:Array; public var award13_mc:MovieClip; public var specialInventory:Number; public var award2_mc:MovieClip; public var lifeUIContainer_mc:MovieClip; public var ammo4Inventory:Number; public var waveTimer_lvl2:Timer; public var ammo2Reloading:String; public var waveTimer_lvl6:Timer; public var waveTimer_lvl8:Timer; public var waveTimer_lvl9:Timer; public var waveTimer_lvl3:Timer; public var waveTimer_lvl4:Timer; public var waveTimer_lvl5:Timer; public var waveTimer_lvl7:Timer; public var waveTimer_lvl1:Timer; public var ammo6ui_mc:MovieClip; public var wave_lvl12:Number; public var shockFlash_mc:MovieClip; public var wave_lvl11:Number; public var award12_Name:String; public var lifeDenom:Number; public var item2Price:Number; public var agi; public var wave_lvl10:Number; public var playerMoveSpeed:Number; public var award5_Name:String; public var enemyAmmo5Array:Array; public var ammo6Max:Number; public var ammo3Reload:Number; public var gameBG5Snd:Sound; public var gameWidth:Number; public var incomingSnd2:Sound; public var playerAmmo5Array:Array; public var cashSnd:Sound; public var bar_mc:MovieClip; public var mc_bg2_a:MovieClip; public var music_btn:MovieClip; public var award15_mc:MovieClip; public var shieldUI_mc:MovieClip; public var ammo8Reload:Number; public var award4_mc:MovieClip; public var btnSnd:Sound; public var award_btn:MovieClip; public var armorLevel:Number; public var ui_showMoney_txt:TextField; public var special1Price:Number; public var ammo7ui_mc:MovieClip; public var weaponArray:Array; public var selectedSpecial:String; public var showWep1:String; public var showWep2:String; public var showWep3:String; public var showWep4:String; public var showWep5:String; public var award6_Name:String; public var award13_Name:String; public var showWep6:String; public var enemyAmmo6Array:Array; public var showWep8:String; public var killsOverall:Number; public var showWep7:String; public var playerAmmo6Array:Array; public var wave_lvl1:Number; public var wave_lvl2:Number; public var wave_lvl3:Number; public var hsShowNext_btn:MovieClip; public var ammo8Max:Number; public var wave_lvl7:Number; public var wave_lvl8:Number; public var wave_lvl9:Number; public var wave_lvl4:Number; public var wave_lvl5:Number; public var wave_lvl6:Number; public var titlebg2Snd:Sound; public var ammo5Inventory:Number; public var ammo3Reloading:String; public var playerAmmo2Rof:Number; public var award17_mc:MovieClip; public var spec5Reload:Number; public var award6_mc:MovieClip; public var secondHalf_mc:MovieClip; public var urlRequest:URLRequest; public var special2Price:Number; public var stitchlandConflict_so:SharedObject; public var ammo8ui_mc:MovieClip; public var toPostLevelTimer:Timer; public var award14_Name:String; public var award7_Name:String; public var gravity:Number; public var missileSnd:Sound; public var showSelectedWep_mc:MovieClip; public var playerAmmo7Array:Array; public var showKillsBox_mc:MovieClip; public var upgradeArmorPrice:Number; public var ammo1Reload:Number; public var adBox:MovieClip; public var playerJump:Boolean; public var sahigArray:Array; public var playerAmmo4Rof:Number; public var playerShieldArray:Array; public var award19_mc:MovieClip; public var special3Price:Number; public var award8_mc:MovieClip; public var waveInterval:Number; public var playerJumpSpeed:Number; public var ammo6Reload:Number; public var award15_Name:String; public var lifeNum:Number; public var bossArray:Array; public var award8_Name:String; public var playerMoveRight:Boolean; public var award20_mc:MovieClip; public var playerAmmo8Array:Array; public var postLostNext_btn:MovieClip; public var howToBack_btn:MovieClip; public var howToNext_btn:MovieClip; public var award20_Name:String; public var ammo4Reloading:String; public var ammo6Inventory:Number; public var BossLifeUIContainer_mc:MovieClip; public var postWinSubmitScore_btn:MovieClip; public var ammo1Max:Number; public var shieldEnergy:Number; public var fireSnd:Sound; public var incomingSnd:Sound; public var moneyOverall:Number; public var special4Price:Number; public var prelevelContainer_mc:MovieClip; public var mc_c1:MovieClip; public var mc_c2:MovieClip; public var award10_mc:MovieClip; public var mc_c5:MovieClip; public var mc_c6:MovieClip; public var mc_c3:MovieClip; public var mc_c4:MovieClip; public var playerAmmo6Rof:Number; public var level:Number; public var award9_Name:String; public var award16_Name:String; public var waveTimer_lvl12:Timer; public var spec3Reload:Number; public var qualityCode:Number; public var loadGame_btn:MovieClip; public var kills_level:Number; public var waveTimer_lvl10:Timer; public var waveTimer_lvl11:Timer; public var award21_Name:String; public var waveSnd:Sound; public var powerUpArray:Array; public var levelContainer_mc:MovieClip; public var gameHeight:Number; public var shieldDepleted:String; public var bullet2Snd:Sound; public var fireWeapon:String; public var ammo3Max:Number; public var moreGames_btn:MovieClip; public var special5Price:Number; public var gameBG2Snd:Sound; public var credit_btn:MovieClip; public var wheelUpOrDown:Number; public var endLevelPromptLost_txt:TextField; public var ad:DisplayObject; public var award17_Name:String; public var waveMax_lvl10:Number; public var waveMax_lvl11:Number; public var waveMax_lvl12:Number; public var agi_url:String; public var award12_mc:MovieClip; public var shieldInUse:String; public var ammo7Inventory:Number; public var award1_mc:MovieClip; public var ammo5Reloading:String; public var explosionArray:Array; public var weaponCounter:Number; public var qualityShow_txt:TextField; public var playerAmmo8Rof:Number; public var playerSpecial1aArray:Array; public var ammo4Reload:Number; public var highscores_btn:MovieClip; public var dead:String; public var explodeSnd1:Sound; public var explodeSnd2:Sound; public var dy:Number; public var playerSpecial6aArray:Array; public var bullet4Snd:Sound; public var endLevelPromptWin_txt:TextField; public var CPMStarContentSpotID:String; public var special6Price:Number; public var postFintNext_btn:MovieClip; public var ammo5Max:Number; public var newGamePrompt_mc:MovieClip; public var postShowKills_txt:TextField; public var gameBG4Snd:Sound; public var explodeSnd:Sound; public var award18_Name:String; public var ammo8Name:String; public var levelComplete:Boolean; public var award14_mc:MovieClip; public var award3_mc:MovieClip; public var mc_bg3_a:MovieClip; public var gameKey:String; public var lives:Number; public var spec1Reload:Number; public var creditNext_btn:MovieClip; public var hsSubmitNext_btn:MovieClip; public var playerSpecial1Array:Array; public var ammo8Inventory:Number; public var ammo7Name:String; public var spec6Reload:Number; public var ammo6Reloading:String; public var award19_Name:String; public var playerMoveLeft:Boolean; public var ammo7Max:Number; public var mc_bg1_a:MovieClip; public var ammo1Inventory:Number; public var titlebg1Snd:Sound; public var playerAmmo1Rof:Number; public var musicCode:Number; public var award16_mc:MovieClip; public var award5_mc:MovieClip; public var ammo6Name:String; public var ammo2Reload:Number; public var ammo1ui_mc:MovieClip; public var playerSpecial2Array:Array; public var specialMax:Number; public var gamePlayDuration:Number; public var specialui_mc:MovieClip; public var devKey:String; public var playerSpecial4aArray:Array; public var ammo7Reload:Number; public var music:String; public var postWinNext_btn:MovieClip; public var newGame_btn:MovieClip; public var ammo5Name:String; public var trackPlayDurationTmr:Timer; public var mc_bg1:MovieClip; public var mc_bg2:MovieClip; public var mc_bg3:MovieClip; public var playerAmmo3Rof:Number; public var award18_mc:MovieClip; public var award7_mc:MovieClip; public var ammo2ui_mc:MovieClip; public var playerSpecial3Array:Array; public var ammo7Reloading:String; public var lastTime:Number; public var roamingSnd:Sound; public var award1_Name:String; public var special1:String; public var special2:String; public var special3:String; public var special4:String; public var special5:String; public var special6:String; public var laserSnd:Sound; public var ammo2Inventory:Number; public var enemyAmmo1Array:Array; public var crossHair_mc:MovieClip; public var playerAmmo1Array:Array; public var rpgSnd:Sound; public var newWepPrompt_mc:MovieClip; public var ammo4Name:String; public var spec4Reload:Number; public var powerupSnd:Sound; public var ammo3ui_mc:MovieClip; public var playerSpecial4Array:Array; public var postFinSubmitScore_btn:MovieClip; public var protonGunSnd:Sound; public var playerAmmo5Rof:Number; public var postShowMoney_txt:TextField; public var award2_Name:String; public var award9_mc:MovieClip; public var enemyAmmo2Array:Array; public var specialRecharging:String; public var money_level:Number; public var ammo3Name:String; public var playerAmmo2Array:Array; public var closeButton:MovieClip; public var color:Color; public var award21_mc:MovieClip; public var bullet1Snd:Sound; public var speedLevel:Number; public var item2:String; public var playerInAir:Boolean; public var item1:String; public var ammo8Reloading:String; public var ammo2Max:Number; public var shieldMaxEnergy:Number; public var ammo5Reload:Number; public var gameBG1Snd:Sound; public var enemyArray:Array; public var ammo4ui_mc:MovieClip; public var playerSpecial5Array:Array; public var ammo3Inventory:Number; public var toPostCounter:Number; public var ammo1Reloading:String; public var award10_Name:String; public var ammo2Name:String; public var award3_Name:String; public var award11_mc:MovieClip; public var enemyAmmo3Array:Array; public var playerAmmo7Rof:Number; public var playerAmmo3Array:Array; public var keyIsPressed:String; public var postWinDesign_mc:TextField; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26); } public function updateAmmoUI(_arg1:MovieClip, _arg2, _arg3){ _arg1.barMasker_mc.scaleX = (_arg2 / _arg3); } public function toPostCount(_arg1:TimerEvent){ toPostCounter++; if (toPostCounter == 3){ Tweener.addTween(firstHalf_mc, {y:262.5, time:1, transition:"easeOutBounce"}); Tweener.addTween(secondHalf_mc, {y:262.5, time:1, transition:"easeOutBounce"}); }; } public function updateLevel(){ Tweener.addTween(endLevelPromptWin_txt, {y:164, time:1.2, transition:"linear"}); toPostLevelTimer.start(); levelComplete = true; } function frame10(){ stop(); init(); } public function updateMoneyLevel(_arg1:Number){ var _local2:Number; _local2 = moneyOverall; money_level = (money_level + _arg1); ui_showMoney_txt.text = String(("Money: $" + (moneyOverall + money_level))); } function frame15(){ stop(); init(); } function frame14(){ stop(); init(); } function frame16(){ stop(); init(); } function frame17(){ stop(); init(); } function frame11(){ stop(); init(); } function frame13(){ stop(); init(); } function frame19(){ stop(); init(); } function frame22(){ stop(); updateQualityDisplay(); initialPosAndAnimationOfCurtains(); navBtn(postFintNext_btn, "title"); navBtn(postFinSubmitScore_btn, "highscoreSubmit"); } function frame23(){ stop(); updateQualityDisplay(); initialPosAndAnimationOfCurtains(); initAwardsScreen(); } function frame25(){ stop(); initialPosAndAnimationOfCurtains(); addChild(agi); agi.showScoreboardSubmit(killsOverall); navBtn(hsSubmitNext_btn, "title"); } public function playProtonGunSnd(){ if (music == "on"){ protonGunSnd.play(); }; } function frame26(){ stop(); initialPosAndAnimationOfCurtains(); addChild(agi); agi.showScoreboardList(); navBtn(hsShowNext_btn, "title"); } function frame18(){ stop(); init(); } function frame21(){ stop(); updateQualityDisplay(); initialPosAndAnimationOfCurtains(); navBtn(postLostNext_btn, "prelevel"); } function frame24(){ stop(); initialPosAndAnimationOfCurtains(); navBtn(creditNext_btn, "title"); } public function playExplodeSnd1(){ if (music == "on"){ explodeSnd1.play(); }; } function frame20(){ stop(); stop(); trace(moneyOverall); iniPostWin(); } public function playExplodeSnd2(){ if (music == "on"){ explodeSnd2.play(); }; } public function clickHandler(_arg1:Event):void{ gotoAndPlay(2); } function frame12(){ stop(); init(); } public function playMissileSnd(){ if (music == "on"){ missileSnd.play(); }; } public function removeFromArray(_arg1:Array, _arg2:MovieClip){ var _local3:Number; _local3 = (_arg1.length - 1); while (_local3 >= 0) { if (_arg1[_local3] == _arg2){ _arg1.splice(_local3, 1); levelContainer_mc.removeChild(_arg2); break; }; _local3--; }; } public function playBossSnd(){ SoundMixer.stopAll(); if (music == "on"){ gameBG1Snd.play(0, int.MAX_VALUE); }; } 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); bar_mc.y = 700; loader_txt.y = 700; closeButton.y = 360; }; } public function randomGenerator(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function weaponInUse(){ switch (weaponCounter){ case 1: showSelectedWep_mc.x = 4; break; case 2: showSelectedWep_mc.x = 92.3; break; case 3: showSelectedWep_mc.x = 180.5; break; case 4: showSelectedWep_mc.x = 268.5; break; case 5: showSelectedWep_mc.x = 357.3; break; case 6: showSelectedWep_mc.x = 445.5; break; case 7: showSelectedWep_mc.x = 533.8; break; case 8: showSelectedWep_mc.x = 622; break; }; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); } 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)){ if (_arg1 == playerAmmo6Array){ } else { _arg1[_local4].destruct(""); }; if ((((_arg2 == enemyArray)) || ((_arg2 == bossArray)))){ _arg2[_local5].flash_mc.gotoAndPlay(2); }; _arg2[_local5].life = (_arg2[_local5].life - _arg3); if (_arg2[_local5].life <= 0){ }; break; }; _local5--; }; _local4--; }; } public function newGameButtons(_arg1:MovieClip, _arg2:String){ var movr:Function; var mout:Function; var mclck:Function; var btn = _arg1; var whereTo = _arg2; movr = function (_arg1:MouseEvent){ playBtnSnd(); Tweener.addTween(btn, {x:(btn.x - 2), time:0.5, transition:"easeOutStrong"}); }; mout = function (_arg1:MouseEvent){ Tweener.addTween(btn, {x:(btn.x + 2), time:0.5, transition:"easeOutStrong"}); }; mclck = function (_arg1:MouseEvent){ if (btn == newGame_btn){ if (stitchlandConflict_so.data.gameDataExist != undefined){ Tweener.addTween(newGamePrompt_mc, {y:270, time:0.4, transition:"easeOutStrong"}); } else { LSO_Checker(); animateCutains(whereTo); }; } else { if (btn == newGamePrompt_mc.yes_btn){ deleteLSO(); LSO_Checker(); animateCutains(whereTo); } else { if (btn == newGamePrompt_mc.no_btn){ Tweener.addTween(newGamePrompt_mc, {y:-500, time:0.4, transition:"easeOutStrong"}); } else { animateCutains(whereTo); }; }; }; }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function getDistance(_arg1:Number, _arg2:Number, _arg3:MovieClip):Number{ var _local4:Number; var _local5:Number; var _local6:Number; _local4 = ((_arg1 - _arg3.x) * (_arg1 - _arg3.x)); _local5 = ((_arg2 - _arg3.y) * (_arg2 - _arg3.y)); _local6 = Math.sqrt((_local4 + _local5)); return (_local6); } public function cloudMover(_arg1:MovieClip){ _arg1.x = (_arg1.x - 1); if (_arg1.x < -100){ _arg1.x = randomGenerator(700, 800); _arg1.y = randomGenerator(50, 100); }; } public function playBtnSnd(){ if (music == "on"){ btnSnd.play(); }; } public function attEnemy11(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy11; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy11(); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 70); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); _local2++; }; } public function attEnemy10(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy10; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy10(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 250); _local2++; }; } public function playLaserSnd(){ if (music == "on"){ laserSnd.play(); }; } public function attEnemyAmmo1(_arg1:MovieClip, _arg2:Number, _arg3:Number){ var _local4:EnemyAmmo1; makeIncomingSound(); _local4 = new EnemyAmmo1(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyAmmo1Array.push(_local4); } public function attEnemyAmmo2(_arg1:MovieClip, _arg2:Number, _arg3:Number){ var _local4:EnemyAmmo2; makeIncomingSound(); _local4 = new EnemyAmmo2(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyAmmo2Array.push(_local4); } public function attPlayerAmmo8a(_arg1:MovieClip){ var _local2:Explosion; var _local3:Number; var _local4:Number; var _local5:PlayerAmmo8a; playExplodeSnd2(); _local2 = new Explosion(); _local2.x = _arg1.x; _local2.y = _arg1.y; _local2.rotation = randomGenerator(0, 360); _local2.gotoAndPlay(5); levelContainer_mc.addChild(_local2); explosionArray.push(_local2); _local3 = randomGenerator(1, 20); _local4 = 0; while (_local4 < 20) { _local3 = (_local3 + 18); _local5 = new PlayerAmmo8a(_arg1.x, _arg1.y, _local3); levelContainer_mc.addChild(_local5); playerAmmo8aArray.push(_local5); _local4++; }; } public function attEnemyAmmo6(_arg1:MovieClip, _arg2:Number, _arg3:Number){ var _local4:EnemyAmmo6; makeIncomingSound(); _local4 = new EnemyAmmo6(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyAmmo6Array.push(_local4); } public function attEnemyAmmo3(_arg1:MovieClip, _arg2:Number, _arg3:Number){ var _local4:EnemyAmmo3; _local4 = new EnemyAmmo3(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyAmmo3Array.push(_local4); } public function attEnemyAmmo5(_arg1:MovieClip, _arg2:Number, _arg3:MovieClip){ var _local4:EnemyAmmo5; makeIncomingSound(); _local4 = new EnemyAmmo5(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyArray.push(_local4); } public function screenShake(){ Earthquake.go(this, 6, 0.3); } public function attEnemyAmmo4(_arg1:MovieClip, _arg2:Number, _arg3:Number){ var _local4:EnemyAmmo4; makeIncomingSound(); _local4 = new EnemyAmmo4(_arg1.x, _arg1.y, _arg2, _arg3); levelContainer_mc.addChild(_local4); enemyAmmo4Array.push(_local4); } public function playBullet2Snd(){ if (music == "on"){ bullet2Snd.play(); }; } public function looper(_arg1:Event){ var _local2:Number; var _local3:int; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:int; var _local8:Number; if ((((kills_level >= 120)) && ((stitchlandConflict_so.data.killOff == undefined)))){ stitchlandConflict_so.data.killOff = 1; promptAchievement(award4_Name); } else { if ((((kills_level >= 90)) && ((stitchlandConflict_so.data.terminator == undefined)))){ stitchlandConflict_so.data.terminator = 1; promptAchievement(award3_Name); } else { if ((((kills_level >= 60)) && ((stitchlandConflict_so.data.eradicator == undefined)))){ stitchlandConflict_so.data.eradicator = 1; promptAchievement(award2_Name); } else { if ((((kills_level >= 30)) && ((stitchlandConflict_so.data.exterminator == undefined)))){ stitchlandConflict_so.data.exterminator = 1; promptAchievement(award1_Name); }; }; }; }; if ((((level == 1)) && ((levelComplete == false)))){ if ((((wave_lvl1 >= waveMax_lvl1)) && ((enemyArray.length == 0)))){ trace("Game OVER 1"); updateLevel(); }; }; if ((((level == 2)) && ((levelComplete == false)))){ if ((((wave_lvl2 >= waveMax_lvl2)) && ((enemyArray.length == 0)))){ trace("Game OVER 2"); updateLevel(); }; }; if ((((level == 3)) && ((levelComplete == false)))){ if ((((((wave_lvl3 >= waveMax_lvl3)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){ trace("Game OVER 3"); updateLevel(); }; }; if ((((level == 4)) && ((levelComplete == false)))){ if ((((wave_lvl4 >= waveMax_lvl4)) && ((enemyArray.length == 0)))){ trace("Game OVER 4"); updateLevel(); }; }; if ((((level == 5)) && ((levelComplete == false)))){ if ((((wave_lvl5 >= waveMax_lvl5)) && ((enemyArray.length == 0)))){ trace("Game OVER 5"); updateLevel(); }; }; if ((((level == 6)) && ((levelComplete == false)))){ if ((((((wave_lvl6 >= waveMax_lvl6)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){ trace("Game OVER 6"); updateLevel(); }; }; if ((((level == 7)) && ((levelComplete == false)))){ if ((((wave_lvl7 >= waveMax_lvl7)) && ((enemyArray.length == 0)))){ trace("Game OVER 7"); updateLevel(); }; }; if ((((level == 8)) && ((levelComplete == false)))){ if ((((wave_lvl8 >= waveMax_lvl8)) && ((enemyArray.length == 0)))){ trace("Game OVER 8"); updateLevel(); }; }; if ((((level == 9)) && ((levelComplete == false)))){ if ((((((wave_lvl9 >= waveMax_lvl9)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){ trace("Game OVER 9"); updateLevel(); }; }; if ((((level == 10)) && ((levelComplete == false)))){ if ((((wave_lvl10 >= waveMax_lvl10)) && ((enemyArray.length == 0)))){ trace("Game OVER 9"); updateLevel(); }; }; if ((((level == 11)) && ((levelComplete == false)))){ if ((((wave_lvl11 >= waveMax_lvl11)) && ((enemyArray.length == 0)))){ trace("Game OVER 9"); updateLevel(); }; }; if ((((level == 12)) && ((levelComplete == false)))){ if ((((((wave_lvl12 >= waveMax_lvl12)) && ((enemyArray.length == 0)))) && ((bossArray.length == 0)))){ trace("Game OVER 9"); updateLevel(); }; }; if (lifeNum <= 0){ if (dead == "false"){ Tweener.addTween(endLevelPromptLost_txt, {y:164, time:1.2, transition:"linear"}); dead = "true"; attExplosion(levelContainer_mc.player_mc); levelContainer_mc.iCrosshair_mc.x = -500; levelContainer_mc.player_mc.x = -500; toPostLevelTimer.start(); }; }; instanceLooper(bossArray); instanceLooper(enemyArray); instanceLooper(enemyAmmo1Array); instanceLooper(enemyAmmo2Array); instanceLooper(enemyAmmo3Array); instanceLooper(enemyAmmo4Array); instanceLooper(enemyAmmo5Array); instanceLooper(enemyAmmo6Array); instanceLooper(playerAmmo1Array); instanceLooper(playerAmmo2Array); instanceLooper(playerAmmo3Array); instanceLooper(playerAmmo4Array); instanceLooper(playerAmmo5Array); instanceLooper(playerAmmo6Array); instanceLooper(playerAmmo7Array); instanceLooper(playerAmmo8Array); instanceLooper(playerAmmo8aArray); instanceLooper(playerSpecial1Array); instanceLooper(playerSpecial1aArray); instanceLooper(playerSpecial2Array); instanceLooper(playerSpecial3Array); instanceLooper(playerSpecial4Array); instanceLooper(playerSpecial4aArray); instanceLooper(playerSpecial5Array); instanceLooper(playerSpecial6Array); instanceLooper(playerSpecial6aArray); instanceLooper(playerShieldArray); instanceLooper(powerUpArray); instanceLooper(explosionArray); _local2 = 1; while (_local2 < 7) { cloudMover(this[("mc_c" + _local2)]); _local2++; }; checkHit(playerAmmo1Array, enemyArray, 8); checkHit(playerAmmo2Array, enemyArray, 3); checkHit(playerAmmo3Array, enemyArray, 7); checkHit(playerAmmo4Array, enemyArray, 50); checkHit(playerAmmo5Array, enemyArray, 6); checkHit(playerAmmo6Array, enemyArray, 50); checkHit(playerAmmo7Array, enemyArray, 10); checkHit(playerAmmo8aArray, enemyArray, 8); checkHit(playerSpecial1aArray, enemyArray, 5); checkHit(playerSpecial2Array, enemyArray, 100); checkHit(playerSpecial3Array, enemyArray, 100); checkHit(playerSpecial4aArray, enemyArray, 100); checkHit(playerSpecial6aArray, enemyArray, 100); checkHit(playerAmmo1Array, bossArray, 10); checkHit(playerAmmo2Array, bossArray, 5); checkHit(playerAmmo3Array, bossArray, 9); checkHit(playerAmmo4Array, bossArray, 52); checkHit(playerAmmo5Array, bossArray, 8); checkHit(playerAmmo6Array, bossArray, 10); checkHit(playerAmmo7Array, bossArray, 10); checkHit(playerAmmo8aArray, bossArray, 10); checkHit(playerSpecial1aArray, bossArray, 50); checkHit(playerSpecial2Array, bossArray, 100); checkHit(playerSpecial3Array, bossArray, 100); checkHit(playerSpecial4aArray, bossArray, 10); checkHit(playerSpecial6aArray, bossArray, 100); pCheckHit(enemyArray, 10); pCheckHit(enemyAmmo1Array, 2); pCheckHit(enemyAmmo2Array, 2); pCheckHit(enemyAmmo3Array, 1); pCheckHit(enemyAmmo4Array, 5); pCheckHit(enemyAmmo5Array, 10); pCheckHit(enemyAmmo6Array, 5); if (dead == "false"){ if (lastTime == 0){ lastTime = getTimer(); }; _local3 = (getTimer() - lastTime); lastTime = (lastTime + _local3); _local4 = 0; _local5 = ((dy * _local3) + (_local3 * gravity)); if (_local5 > 15){ _local5 = 15; }; dy = (dy + (_local3 * gravity)); if (playerMoveLeft){ _local4 = (-(playerMoveSpeed) * _local3); } else { if (playerMoveRight){ _local4 = (playerMoveSpeed * _local3); }; }; if (playerJump){ playerJump = false; dy = -(playerJumpSpeed); _local5 = -(playerJumpSpeed); }; _local6 = (levelContainer_mc.player_mc.y + _local5); playerInAir = true; _local7 = (sahigArray.length - 1); while (_local7 >= 0) { if (((((levelContainer_mc.player_mc.x + (levelContainer_mc.player_mc.width / 2)) > (sahigArray[_local7].x - (sahigArray[_local7].width / 2)))) && (((levelContainer_mc.player_mc.x - (levelContainer_mc.player_mc.width / 2)) < (sahigArray[_local7].x + (sahigArray[_local7].width / 2)))))){ if ((((levelContainer_mc.player_mc.y <= (sahigArray[_local7].y - (sahigArray[_local7].height / 2)))) && ((_local6 > (sahigArray[_local7].y - (sahigArray[_local7].height / 2)))))){ _local6 = (sahigArray[_local7].y - (sahigArray[_local7].height / 2)); dy = 0; playerInAir = false; levelContainer_mc.player_mc.body_mc.gotoAndStop(1); break; }; }; _local7--; }; _local8 = (levelContainer_mc.player_mc.x + _local4); levelContainer_mc.player_mc.x = _local8; levelContainer_mc.player_mc.y = _local6; if ((levelContainer_mc.player_mc.x - (levelContainer_mc.player_mc.width / 2)) < levelContainer_mc.x){ levelContainer_mc.player_mc.x = (levelContainer_mc.x + (levelContainer_mc.player_mc.width / 2)); }; if ((levelContainer_mc.player_mc.x + (levelContainer_mc.player_mc.width / 2)) > gameWidth){ levelContainer_mc.player_mc.x = (gameWidth - (levelContainer_mc.player_mc.width / 2)); }; levelContainer_mc.iCrosshair_mc.x = mouseX; levelContainer_mc.iCrosshair_mc.y = mouseY; crossHair_mc.x = mouseX; crossHair_mc.y = mouseY; levelContainer_mc.player_mc.looper(); firingFunction(); }; if (ammo1Reloading == "true"){ ammo1ui_mc.bar_mc.gotoAndStop(2); ammo1Inventory = (ammo1Inventory + ammo1Reload); if (ammo1Inventory > ammo1Max){ ammo1Inventory = ammo1Max; ammo1Reloading = "false"; }; updateAmmoUI(ammo1ui_mc.bar_mc, ammo1Inventory, ammo1Max); } else { if (ammo1Reloading == "false"){ ammo1ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 1){ ammo1Inventory = (ammo1Inventory + ammo1Reload); if (ammo1Inventory > ammo1Max){ ammo1Inventory = ammo1Max; ammo1Reloading = "false"; }; updateAmmoUI(ammo1ui_mc.bar_mc, ammo1Inventory, ammo1Max); }; } else { if (fireWeapon == "cease"){ ammo1Inventory = (ammo1Inventory + ammo1Reload); if (ammo1Inventory > ammo1Max){ ammo1Inventory = ammo1Max; ammo1Reloading = "false"; }; updateAmmoUI(ammo1ui_mc.bar_mc, ammo1Inventory, ammo1Max); }; }; }; }; if (ammo2Reloading == "true"){ ammo2ui_mc.bar_mc.gotoAndStop(2); ammo2Inventory = (ammo2Inventory + ammo2Reload); if (ammo2Inventory > ammo2Max){ ammo2Inventory = ammo2Max; ammo2Reloading = "false"; }; updateAmmoUI(ammo2ui_mc.bar_mc, ammo2Inventory, ammo2Max); } else { if (ammo2Reloading == "false"){ ammo2ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 2){ ammo2Inventory = (ammo2Inventory + ammo2Reload); if (ammo2Inventory > ammo2Max){ ammo2Inventory = ammo2Max; ammo2Reloading = "false"; }; updateAmmoUI(ammo2ui_mc.bar_mc, ammo2Inventory, ammo2Max); }; } else { if (fireWeapon == "cease"){ ammo2Inventory = (ammo2Inventory + ammo2Reload); if (ammo2Inventory > ammo2Max){ ammo2Inventory = ammo2Max; ammo2Reloading = "false"; }; updateAmmoUI(ammo2ui_mc.bar_mc, ammo2Inventory, ammo2Max); }; }; }; }; if (ammo3Reloading == "true"){ ammo3ui_mc.bar_mc.gotoAndStop(2); ammo3Inventory = (ammo3Inventory + ammo3Reload); if (ammo3Inventory > ammo3Max){ ammo3Inventory = ammo3Max; ammo3Reloading = "false"; }; updateAmmoUI(ammo3ui_mc.bar_mc, ammo3Inventory, ammo3Max); } else { if (ammo3Reloading == "false"){ ammo3ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 3){ ammo3Inventory = (ammo3Inventory + ammo3Reload); if (ammo3Inventory > ammo3Max){ ammo3Inventory = ammo3Max; ammo3Reloading = "false"; }; updateAmmoUI(ammo3ui_mc.bar_mc, ammo3Inventory, ammo3Max); }; } else { if (fireWeapon == "cease"){ ammo3Inventory = (ammo3Inventory + ammo3Reload); if (ammo3Inventory > ammo3Max){ ammo3Inventory = ammo3Max; ammo3Reloading = "false"; }; updateAmmoUI(ammo3ui_mc.bar_mc, ammo3Inventory, ammo3Max); }; }; }; }; if (ammo4Reloading == "true"){ ammo4ui_mc.bar_mc.gotoAndStop(2); ammo4Inventory = (ammo4Inventory + ammo4Reload); if (ammo4Inventory > ammo4Max){ ammo4Inventory = ammo4Max; ammo4Reloading = "false"; }; updateAmmoUI(ammo4ui_mc.bar_mc, ammo4Inventory, ammo4Max); } else { if (ammo4Reloading == "false"){ ammo4ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 4){ ammo4Inventory = (ammo4Inventory + ammo4Reload); if (ammo4Inventory > ammo4Max){ ammo4Inventory = ammo4Max; ammo4Reloading = "false"; }; updateAmmoUI(ammo4ui_mc.bar_mc, ammo4Inventory, ammo4Max); }; } else { if (fireWeapon == "cease"){ ammo4Inventory = (ammo4Inventory + ammo4Reload); if (ammo4Inventory > ammo4Max){ ammo4Inventory = ammo4Max; ammo4Reloading = "false"; }; updateAmmoUI(ammo4ui_mc.bar_mc, ammo4Inventory, ammo4Max); }; }; }; }; if (ammo5Reloading == "true"){ ammo5ui_mc.bar_mc.gotoAndStop(2); ammo5Inventory = (ammo5Inventory + ammo5Reload); if (ammo5Inventory > ammo5Max){ ammo5Inventory = ammo5Max; ammo5Reloading = "false"; }; updateAmmoUI(ammo5ui_mc.bar_mc, ammo5Inventory, ammo5Max); } else { if (ammo5Reloading == "false"){ ammo5ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 5){ ammo5Inventory = (ammo5Inventory + ammo5Reload); if (ammo5Inventory > ammo5Max){ ammo5Inventory = ammo5Max; ammo5Reloading = "false"; }; updateAmmoUI(ammo5ui_mc.bar_mc, ammo5Inventory, ammo5Max); }; } else { if (fireWeapon == "cease"){ ammo5Inventory = (ammo5Inventory + ammo5Reload); if (ammo5Inventory > ammo5Max){ ammo5Inventory = ammo5Max; ammo5Reloading = "false"; }; updateAmmoUI(ammo5ui_mc.bar_mc, ammo5Inventory, ammo5Max); }; }; }; }; if (ammo6Reloading == "true"){ ammo6ui_mc.bar_mc.gotoAndStop(2); ammo6Inventory = (ammo6Inventory + ammo6Reload); if (ammo6Inventory > ammo6Max){ ammo6Inventory = ammo6Max; ammo6Reloading = "false"; }; updateAmmoUI(ammo6ui_mc.bar_mc, ammo6Inventory, ammo6Max); } else { if (ammo6Reloading == "false"){ ammo6ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 6){ ammo6Inventory = (ammo6Inventory + ammo6Reload); if (ammo6Inventory > ammo6Max){ ammo6Inventory = ammo6Max; ammo6Reloading = "false"; }; updateAmmoUI(ammo6ui_mc.bar_mc, ammo6Inventory, ammo6Max); }; } else { if (fireWeapon == "cease"){ ammo6Inventory = (ammo6Inventory + ammo6Reload); if (ammo6Inventory > ammo6Max){ ammo6Inventory = ammo6Max; ammo6Reloading = "false"; }; updateAmmoUI(ammo6ui_mc.bar_mc, ammo6Inventory, ammo6Max); }; }; }; }; if (ammo7Reloading == "true"){ ammo7ui_mc.bar_mc.gotoAndStop(2); ammo7Inventory = (ammo7Inventory + ammo7Reload); if (ammo7Inventory > ammo7Max){ ammo7Inventory = ammo7Max; ammo7Reloading = "false"; }; updateAmmoUI(ammo7ui_mc.bar_mc, ammo7Inventory, ammo7Max); } else { if (ammo7Reloading == "false"){ ammo7ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 7){ ammo7Inventory = (ammo7Inventory + ammo7Reload); if (ammo7Inventory > ammo7Max){ ammo7Inventory = ammo7Max; ammo7Reloading = "false"; }; updateAmmoUI(ammo7ui_mc.bar_mc, ammo7Inventory, ammo7Max); }; } else { if (fireWeapon == "cease"){ ammo7Inventory = (ammo7Inventory + ammo7Reload); if (ammo7Inventory > ammo7Max){ ammo7Inventory = ammo7Max; ammo7Reloading = "false"; }; updateAmmoUI(ammo7ui_mc.bar_mc, ammo7Inventory, ammo7Max); }; }; }; }; if (ammo8Reloading == "true"){ ammo8ui_mc.bar_mc.gotoAndStop(2); ammo8Inventory = (ammo8Inventory + ammo8Reload); if (ammo8Inventory > ammo8Max){ ammo8Inventory = ammo8Max; ammo8Reloading = "false"; }; updateAmmoUI(ammo8ui_mc.bar_mc, ammo8Inventory, ammo8Max); } else { if (ammo8Reloading == "false"){ ammo8ui_mc.bar_mc.gotoAndStop(1); if (fireWeapon == "open"){ if (weaponCounter != 8){ ammo8Inventory = (ammo8Inventory + ammo8Reload); if (ammo8Inventory > ammo8Max){ ammo8Inventory = ammo8Max; ammo8Reloading = "false"; }; updateAmmoUI(ammo8ui_mc.bar_mc, ammo8Inventory, ammo8Max); }; } else { if (fireWeapon == "cease"){ ammo8Inventory = (ammo8Inventory + ammo8Reload); if (ammo8Inventory > ammo8Max){ ammo8Inventory = ammo8Max; ammo8Reloading = "false"; }; updateAmmoUI(ammo8ui_mc.bar_mc, ammo8Inventory, ammo8Max); }; }; }; }; if (shieldDepleted == "yes"){ shieldEnergy = (shieldEnergy + 0.2); updateAmmoUI(shieldUI_mc, shieldEnergy, shieldMaxEnergy); if (shieldEnergy >= shieldMaxEnergy){ shieldDepleted = "no"; }; }; if (specialRecharging == "true"){ switch (selectedSpecial){ case "1": specialInventory = (specialInventory + spec1Reload); break; case "2": specialInventory = (specialInventory + spec2Reload); break; case "3": specialInventory = (specialInventory + spec3Reload); break; case "4": specialInventory = (specialInventory + spec4Reload); break; case "5": specialInventory = (specialInventory + spec5Reload); break; case "6": specialInventory = (specialInventory + spec6Reload); break; }; if (specialInventory > specialMax){ specialInventory = specialMax; specialRecharging = "false"; }; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; if (lifeNum <= 0){ lifeNum = 0; }; if (lifeNum > lifeDenom){ lifeNum = lifeDenom; }; lifeUIContainer_mc.bar_mc.scaleX = (lifeNum / lifeDenom); bgScroller(mc_bg1, mc_bg2, mc_bg3, 0.5); bgScroller(mc_bg1_a, mc_bg2_a, mc_bg3_a, 0.2); levelContainer_mc.setChildIndex(levelContainer_mc.player_mc, (levelContainer_mc.numChildren - 1)); } public function firingFunction(){ if (fireWeapon == "open"){ if (weaponCounter == 1){ if (ammo1Reloading == "false"){ attPlayerAmmo1(); }; } else { if (weaponCounter == 2){ if (ammo2Reloading == "false"){ attPlayerAmmo2(); }; } else { if (weaponCounter == 3){ if (ammo3Reloading == "false"){ attPlayerAmmo3(); }; } else { if (weaponCounter == 4){ if (ammo4Reloading == "false"){ attPlayerAmmo4(); }; } else { if (weaponCounter == 5){ if (ammo5Reloading == "false"){ attPlayerAmmo5(); }; } else { if (weaponCounter == 6){ if (ammo6Reloading == "false"){ attPlayerAmmo6(); }; } else { if (weaponCounter == 7){ if (ammo7Reloading == "false"){ attPlayerAmmo7(); }; } else { if (weaponCounter == 8){ if (ammo8Reloading == "false"){ attPlayerAmmo8(); }; }; }; }; }; }; }; }; }; }; } public function playIncomingSnd2(){ if (music == "on"){ incomingSnd2.play(); }; } public function toPostLevel(_arg1:TimerEvent){ specialInventory = specialMax; specialRecharging = "false"; wave_lvl1 = 0; wave_lvl2 = 0; wave_lvl3 = 0; wave_lvl4 = 0; wave_lvl5 = 0; wave_lvl6 = 0; wave_lvl7 = 0; wave_lvl8 = 0; wave_lvl9 = 0; wave_lvl10 = 0; wave_lvl11 = 0; wave_lvl12 = 0; toPostCounter = 0; playTitleBGSnd(); stage.removeEventListener(Event.ENTER_FRAME, looper); toPostLevelTimer.reset(); trackPlayDurationTmr.stop(); endLevelCleanUpArray(playerAmmo1Array); endLevelCleanUpArray(playerAmmo2Array); endLevelCleanUpArray(playerAmmo3Array); endLevelCleanUpArray(playerAmmo4Array); endLevelCleanUpArray(playerAmmo5Array); endLevelCleanUpArray(playerAmmo6Array); endLevelCleanUpArray(playerAmmo7Array); endLevelCleanUpArray(playerAmmo8Array); endLevelCleanUpArray(playerSpecial1Array); endLevelCleanUpArray(playerSpecial2Array); endLevelCleanUpArray(playerSpecial3Array); endLevelCleanUpArray(playerSpecial4Array); endLevelCleanUpArray(playerSpecial5Array); endLevelCleanUpArray(playerSpecial6Array); endLevelCleanUpArray(enemyAmmo1Array); endLevelCleanUpArray(enemyAmmo2Array); endLevelCleanUpArray(enemyAmmo3Array); endLevelCleanUpArray(enemyAmmo4Array); endLevelCleanUpArray(enemyAmmo5Array); endLevelCleanUpArray(enemyAmmo6Array); endLevelCleanUpArray(enemyArray); endLevelCleanUpArray(bossArray); endLevelCleanUpArray(explosionArray); if (lifeNum > 0){ moneyOverall = (moneyOverall + money_level); killsOverall = (killsOverall + kills_level); level++; switch (level){ case 2: showWep2 = "show"; weaponArray = ["1", "2"]; break; case 3: showWep3 = "show"; weaponArray = ["1", "2", "3"]; break; case 4: showWep4 = "show"; weaponArray = ["1", "2", "3", "4"]; break; case 5: showWep5 = "show"; weaponArray = ["1", "2", "3", "4", "5"]; break; case 6: showWep6 = "show"; weaponArray = ["1", "2", "3", "4", "5", "6"]; break; case 7: showWep7 = "show"; weaponArray = ["1", "2", "3", "4", "5", "6", "7"]; break; case 8: showWep8 = "show"; weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; break; case 9: weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; break; case 10: weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; break; case 11: weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; break; case 12: weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; break; }; if ((((level == 13)) && ((stitchlandConflict_so.data.greenyland == undefined)))){ stitchlandConflict_so.data.greenyland = 1; promptAchievement(award12_Name); }; if ((((level == 10)) && ((stitchlandConflict_so.data.mountyland == undefined)))){ stitchlandConflict_so.data.mountyland = 1; promptAchievement(award11_Name); }; if ((((level == 7)) && ((stitchlandConflict_so.data.scorchedland == undefined)))){ stitchlandConflict_so.data.scorchedland = 1; promptAchievement(award10_Name); }; if ((((level == 4)) && ((stitchlandConflict_so.data.freezeland == undefined)))){ stitchlandConflict_so.data.freezeland = 1; promptAchievement(award9_Name); }; if ((((lifeNum >= lifeDenom)) && ((stitchlandConflict_so.data.noProblem == undefined)))){ stitchlandConflict_so.data.noProblem = 1; promptAchievement(award17_Name); }; if (((((lifeNum / lifeDenom) <= 0.1)) && ((stitchlandConflict_so.data.soClose == undefined)))){ stitchlandConflict_so.data.soClose = 1; promptAchievement(award18_Name); }; if (level > 12){ level = 12; gotoAndStop("postLevelFinish"); } else { gotoAndStop("postLevelWin"); }; Mouse.show(); saveToLSO(); } else { switch (level){ case 1: waveTimer_lvl1.reset(); break; case 2: waveTimer_lvl2.reset(); break; case 3: waveTimer_lvl3.reset(); break; case 4: waveTimer_lvl4.reset(); break; case 5: waveTimer_lvl5.reset(); break; case 6: waveTimer_lvl6.reset(); break; case 7: waveTimer_lvl7.reset(); break; case 8: waveTimer_lvl8.reset(); break; case 9: waveTimer_lvl9.reset(); break; case 10: waveTimer_lvl10.reset(); break; case 11: waveTimer_lvl11.reset(); break; case 12: waveTimer_lvl12.reset(); break; default: break; }; Mouse.show(); gotoAndStop("postLevelLost"); }; } public function upgradeBattleVehicle(_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){ trace("upgrade"); switch (btn){ case prelevelContainer_mc.upgradeSpd_btn: if (speedLevel >= 5){ trace("UPGRADE COMPLETE"); } else { if (moneyOverall >= upgradeSpeedPrice){ updateMoney(moneyOverall, upgradeSpeedPrice); speedLevel++; prelevelContainer_mc.showSpeedLevel_txt.text = String((speedLevel + "/5")); upgradeSpeedPrice = (upgradeSpeedPrice + upgradeSpeedPrice); prelevelContainer_mc.speedPrice_txt.text = upgradeSpeedPrice; if (speedLevel == 5){ prelevelContainer_mc.upgradeSpd_btn.x = -500; }; } else { trace("not enough money"); }; }; break; case prelevelContainer_mc.upgradeArmor_btn: if (armorLevel >= 5){ trace("UPGRADE COMPLETE"); } else { if (moneyOverall >= upgradeArmorPrice){ updateMoney(moneyOverall, upgradeArmorPrice); armorLevel++; prelevelContainer_mc.showArmorLevel_txt.text = String((armorLevel + "/5")); upgradeArmorPrice = (upgradeArmorPrice + upgradeArmorPrice); prelevelContainer_mc.armorPrice_txt.text = upgradeArmorPrice; if (armorLevel == 5){ prelevelContainer_mc.upgradeArmor_btn.x = -500; }; } else { trace("not enough money"); }; }; break; }; saveToLSO(); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function playBullet4Snd(){ if (music == "on"){ bullet4Snd.play(); }; } public function acquireSpecial(_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){ switch (btn){ case prelevelContainer_mc.buySpec1_btn: if (moneyOverall >= special1Price){ updateMoney(moneyOverall, special1Price); special1 = "sold"; btn.x = -500; setSelectedSpecial(1); } else { trace("not enough money"); }; break; case prelevelContainer_mc.buySpec2_btn: if (moneyOverall >= special2Price){ updateMoney(moneyOverall, special2Price); special2 = "sold"; btn.x = -500; setSelectedSpecial(2); } else { trace("not enough money"); }; break; case prelevelContainer_mc.buySpec3_btn: if (moneyOverall >= special3Price){ updateMoney(moneyOverall, special3Price); special3 = "sold"; btn.x = -500; setSelectedSpecial(3); } else { trace("not enough money"); }; break; case prelevelContainer_mc.buySpec4_btn: if (moneyOverall >= special4Price){ updateMoney(moneyOverall, special4Price); special4 = "sold"; btn.x = -500; setSelectedSpecial(4); } else { trace("not enough money"); }; break; case prelevelContainer_mc.buySpec5_btn: if (moneyOverall >= special5Price){ updateMoney(moneyOverall, special5Price); special5 = "sold"; btn.x = -500; setSelectedSpecial(5); } else { trace("not enough money"); }; break; case prelevelContainer_mc.buySpec6_btn: if (moneyOverall >= special6Price){ updateMoney(moneyOverall, special6Price); special6 = "sold"; btn.x = -500; setSelectedSpecial(6); } else { trace("not enough money"); }; break; }; saveToLSO(); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function deployEnemy_Lvl1(_arg1:TimerEvent){ wave_lvl1++; trace(wave_lvl1); switch (wave_lvl1){ case 1: attEnemy1(1); attEnemy2(1); break; case 2: attEnemy1(1); attEnemy2(1); break; case 3: attEnemy1(1); attEnemy2(2); break; case 4: attMultipleEnemyMissile(); attEnemy1(2); attEnemy2(2); break; case 5: attHealth1(); attEnemy1(2); attEnemy2(2); break; case 6: attEnemy3(1); attEnemy2(2); break; case 7: attEnemy1(1); attEnemy2(1); break; case 8: attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(1); attEnemy2(2); break; case 10: attHealth2(); attEnemy1(1); attEnemy2(1); break; case 11: attEnemy3(1); attEnemy1(2); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(2); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy1(2); break; case 15: attEnemy1(1); attEnemy2(1); break; case 16: attEnemy1(1); attEnemy2(1); break; case 17: attEnemy1(1); attEnemy2(1); break; case 18: attEnemy3(1); attEnemy1(1); break; default: break; }; } public function deployEnemy_Lvl2(_arg1:TimerEvent){ wave_lvl2++; trace(wave_lvl2); switch (wave_lvl2){ case 1: attEnemy1(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 6: attEnemy1(1); attEnemy3(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); break; case 10: attHealth2(); attEnemy3(1); attEnemy2(1); attEnemy4(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy2(1); break; case 15: attHealth1(); attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attEnemy3(1); attEnemy2(1); attEnemy4(1); break; default: break; }; } public function deployEnemy_Lvl7(_arg1:TimerEvent){ wave_lvl7++; trace(wave_lvl7); switch (wave_lvl7){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attHealth2(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attHealth1(); attEnemy6(1); attEnemy3(1); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 25: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 26: attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); break; case 29: attEnemy3(1); attEnemy2(1); break; case 30: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; default: break; }; } public function deployEnemy_Lvl9(_arg1:TimerEvent){ wave_lvl9++; trace(wave_lvl9); switch (wave_lvl9){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy8(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attMultipleEnemyMissile(); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); attEnemy5(1); attEnemy4(1); break; case 6: attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attMultipleEnemyMissile(); attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy8(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); attEnemy8(1); break; case 20: attMultipleEnemyMissile(); attHealth2(); attEnemy6(1); attEnemy3(1); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 22: attMultipleEnemyMissile(); attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy11(1); break; case 25: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 26: attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); attEnemy11(1); break; case 29: attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy6(1); break; case 30: attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attBoss3(); playBossSnd(); break; default: break; }; } public function deployEnemy_Lvl4(_arg1:TimerEvent){ wave_lvl4++; trace(wave_lvl4); switch (wave_lvl4){ case 1: attEnemy5(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attHealth1(); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attEnemy5(1); attEnemy2(1); attEnemy4(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy2(1); break; case 15: attHealth2(); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attHealth1(); attEnemy3(1); attEnemy5(1); break; case 21: attEnemy2(1); attEnemy4(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 25: attEnemy5(1); attEnemy2(1); break; default: break; }; } public function playExplodeSnd(){ if (music == "on"){ explodeSnd.play(); }; } public function deployEnemy_Lvl5(_arg1:TimerEvent){ wave_lvl5++; trace(wave_lvl5); switch (wave_lvl5){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attEnemy6(1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy4(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attHealth2(); attEnemy6(1); attEnemy3(1); attEnemy5(1); break; case 21: attEnemy2(1); attEnemy4(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 25: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 26: attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); break; case 29: attEnemy3(1); attEnemy2(1); break; case 30: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; default: break; }; } public function deployEnemy_Lvl6(_arg1:TimerEvent){ wave_lvl6++; trace(wave_lvl6); switch (wave_lvl6){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attEnemy6(1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attHealth2(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy4(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attHealth1(); attEnemy6(1); attEnemy3(1); attEnemy5(1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 25: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 26: attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); break; case 29: attEnemy3(1); attEnemy2(1); break; case 30: attHealth2(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attBoss2(); playBossSnd(); break; default: break; }; } public function playRPGSnd(){ if (music == "on"){ rpgSnd.play(); }; } public function deployEnemy_Lvl3(_arg1:TimerEvent){ wave_lvl3++; trace(wave_lvl3); switch (wave_lvl3){ case 1: attEnemy1(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attHealth1(); attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 6: attEnemy1(1); attEnemy3(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); break; case 10: attHealth1(); attEnemy3(1); attEnemy2(1); attEnemy4(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy2(1); break; case 15: attHealth2(); attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 21: attEnemy2(1); attEnemy4(1); break; case 22: attBoss1(); attEnemy2(1); attEnemy4(1); playBossSnd(); break; default: break; }; } public function deployEnemy_Lvl8(_arg1:TimerEvent){ wave_lvl8++; trace(wave_lvl8); switch (wave_lvl8){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); break; case 5: attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy1(2); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy11(1); break; case 10: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); break; case 20: attMultipleEnemyMissile(); attHealth2(); attEnemy6(1); attEnemy3(1); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 22: attMultipleEnemyMissile(); attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 25: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 26: attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); break; case 29: attEnemy3(1); attEnemy2(1); break; case 30: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; default: break; }; } public function _setDistanceFromCenterSpecial6(_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.bazooka_mc.rotation; _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 attPlayerAmmo1(){ var _local1:PlayerAmmo1; playerAmmo1Rof--; if (playerAmmo1Rof <= 0){ playBullet2Snd(); _local1 = new PlayerAmmo1(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo1Array.push(_local1); ammo1Inventory--; if (ammo1Inventory <= 0){ ammo1Inventory = 0; ammo1Reloading = "true"; }; updateAmmoUI(ammo1ui_mc.bar_mc, ammo1Inventory, ammo1Max); playerAmmo1Rof = 3; }; } public function playCashSnd(){ if (music == "on"){ cashSnd.play(); }; } public function attPlayerAmmo5(){ var _local1:PlayerAmmo5; playerAmmo5Rof--; if (playerAmmo5Rof <= 0){ playBullet1Snd(); _local1 = new PlayerAmmo5(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo5Array.push(_local1); ammo5Inventory--; if (ammo5Inventory <= 0){ ammo5Inventory = 0; ammo5Reloading = "true"; }; updateAmmoUI(ammo5ui_mc.bar_mc, ammo5Inventory, ammo5Max); playerAmmo5Rof = 1; }; } public function attPlayerAmmo7(){ var _local1:PlayerAmmo7; playerAmmo7Rof--; if (playerAmmo7Rof <= 0){ playWaveSnd(); _local1 = new PlayerAmmo7(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo7Array.push(_local1); ammo7Inventory--; if (ammo7Inventory <= 0){ ammo7Inventory = 0; ammo7Reloading = "true"; }; updateAmmoUI(ammo7ui_mc.bar_mc, ammo7Inventory, ammo7Max); playerAmmo7Rof = 3; }; } public function attPlayerAmmo8(){ var _local1:Number; var _local2:MovieClip; var _local3:PlayerAmmo8; playerAmmo8Rof--; if (playerAmmo8Rof <= 0){ playRPGSnd(); _local1 = getDistance(levelContainer_mc.iCrosshair_mc.x, levelContainer_mc.iCrosshair_mc.y, levelContainer_mc.player_mc); _local2 = levelContainer_mc.player_mc; _local3 = new PlayerAmmo8(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local3); _local3.distanceBeforeExploding = _local1; _local3.player = _local2; playerAmmo8Array.push(_local3); ammo8Inventory--; if (ammo8Inventory <= 0){ ammo8Inventory = 0; ammo8Reloading = "true"; }; updateAmmoUI(ammo8ui_mc.bar_mc, ammo8Inventory, ammo8Max); playerAmmo8Rof = 20; }; } public function attPlayerAmmo3(){ var _local1:PlayerAmmo3; playerAmmo3Rof--; if (playerAmmo3Rof <= 0){ playFireSnd(); _local1 = new PlayerAmmo3(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo3Array.push(_local1); ammo3Inventory--; if (ammo3Inventory <= 0){ ammo3Inventory = 0; ammo3Reloading = "true"; }; updateAmmoUI(ammo3ui_mc.bar_mc, ammo3Inventory, ammo3Max); playerAmmo3Rof = 3; }; } public function attPlayerAmmo4(){ var _local1:PlayerAmmo4; playerAmmo4Rof--; if (playerAmmo4Rof <= 0){ playMissileSnd(); _local1 = new PlayerAmmo4(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo4Array.push(_local1); ammo4Inventory--; if (ammo4Inventory <= 0){ ammo4Inventory = 0; ammo4Reloading = "true"; }; updateAmmoUI(ammo4ui_mc.bar_mc, ammo4Inventory, ammo4Max); playerAmmo4Rof = 12; }; } public function attPlayerAmmo2(){ var _local1:Number; var _local2:Number; var _local3:PlayerAmmo2; playerAmmo2Rof--; if (playerAmmo2Rof <= 0){ playBullet1Snd(); _local1 = (levelContainer_mc.player_mc.turret_mc.rotation + 12); _local2 = 0; while (_local2 < 3) { _local1 = (_local1 - 4); _local3 = new PlayerAmmo2(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], _local1); levelContainer_mc.addChild(_local3); playerAmmo2Array.push(_local3); ammo2Inventory--; _local2++; }; if (ammo2Inventory <= 0){ ammo2Inventory = 0; ammo2Reloading = "true"; }; updateAmmoUI(ammo2ui_mc.bar_mc, ammo2Inventory, ammo2Max); playerAmmo2Rof = 5; }; } public function attPlayerAmmo6(){ var _local1:PlayerAmmo6; playerAmmo6Rof--; if (playerAmmo6Rof <= 0){ playLaserSnd(); _local1 = new PlayerAmmo6(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerAmmo6Array.push(_local1); ammo6Inventory--; if (ammo6Inventory <= 0){ ammo6Inventory = 0; ammo6Reloading = "true"; }; updateAmmoUI(ammo6ui_mc.bar_mc, ammo6Inventory, ammo6Max); playerAmmo6Rof = 8; }; } public function attEnemy2(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy2; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy2(); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 250); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); _local2++; }; } public function attEnemy4(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy4; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy4(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = 408; _local2++; }; } public function attEnemy6(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy6; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy6(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = 408; _local2++; }; } public function attEnemy1(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy1; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy1(); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 250); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); _local2++; }; } public function attEnemy3(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy3; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy3(); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 250); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); _local2++; }; } public function mousePressed(_arg1:MouseEvent){ fireWeapon = "open"; } public function attEnemy5(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy5; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy5(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 250); _local2++; }; } public function attEnemy8(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy8; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy8(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = randomGenerator(50, 150); _local2++; }; } public function attEnemy9(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Enemy9; _local2 = 0; while (_local2 < _arg1) { _local3 = randomGenerator(1, 3); _local5 = new Enemy9(); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); if (_local3 == 1){ _local4 = randomGenerator(-50, -10); _local5.xDir = "right"; } else { _local4 = randomGenerator(700, 750); _local5.xDir = "left"; }; _local5.x = _local4; _local5.y = 420; _local2++; }; } public function attEnemy7(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip, _arg5:Number){ var _local6:Number; var _local7:Enemy7; _local6 = 0; while (_local6 < _arg5) { _local7 = new Enemy7(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local7); enemyArray.push(_local7); _local6++; }; } public function preBackBtn(_arg1:MovieClip){ var movr:Function; var mout:Function; var mclck:Function; var btn = _arg1; movr = function (_arg1:MouseEvent){ playBtnSnd(); Tweener.addTween(btn, {x:(btn.x - 2), time:0.5, transition:"easeOutStrong"}); }; mout = function (_arg1:MouseEvent){ Tweener.addTween(btn, {x:(btn.x + 2), time:0.5, transition:"easeOutStrong"}); }; mclck = function (_arg1:MouseEvent){ if (stitchlandConflict_so.data.gameDataExist != undefined){ animateCutains("title"); } else { animateCutains("howTo"); }; }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function updateQualityDisplay(){ switch (stage.quality){ case "LOW": qualityShow_txt.text = "Toggle Quality - (Q)\n-LOW"; break; case "MEDIUM": qualityShow_txt.text = "Toggle Quality - (Q)\n-MEDIUM"; break; case "HIGH": qualityShow_txt.text = "Toggle Quality - (Q)\n-HIGH"; break; }; } public function endLevelCleanUpArray(_arg1:Array){ var _local2:Number; _local2 = (_arg1.length - 1); while (_local2 >= 0) { _arg1[_local2].destruct(""); _local2--; }; } public function destination(_arg1:String){ gotoAndStop(_arg1); } 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 = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); bossArray.push(_local1); BossLifeUIContainer_mc.x = 11; } public function attBoss3(){ var _local1:Boss3; _local1 = new Boss3(); _local1.x = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); bossArray.push(_local1); BossLifeUIContainer_mc.x = 11; } public function attBoss4(){ var _local1:Boss4; _local1 = new Boss4(); _local1.x = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); bossArray.push(_local1); BossLifeUIContainer_mc.x = 11; } public function set_brightness(_arg1:Number=0):Color{ if ((((_arg1 >= 0)) && ((_arg1 <= 1)))){ }; color.brightness = _arg1; return (color); } public function attBoss2(){ var _local1:Boss2; _local1 = new Boss2(); _local1.x = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); bossArray.push(_local1); BossLifeUIContainer_mc.x = 11; } function frame2(){ stage.frameRate = 45; musicCode = 0; music = "on"; qualityCode = 0; stage.quality = "medium"; titlebg1Snd = new TitleBG1Snd(); titlebg2Snd = new TitleBG2Snd(); gameBG1Snd = new GameBG1Snd(); gameBG2Snd = new GameBG2Snd(); gameBG3Snd = new GameBG3Snd(); gameBG4Snd = new GameBG4Snd(); gameBG5Snd = new GameBG5Snd(); bullet1Snd = new Bullet1Snd(); bullet2Snd = new Bullet2Snd(); bullet3Snd = new Bullet3Snd(); bullet4Snd = new Bullet4Snd(); fireSnd = new FireSnd(); incomingSnd = new IncomingSnd(); incomingSnd2 = new IncomingSnd2(); roamingSnd = new RoamingSnd(); laserSnd = new LaserSnd(); waveSnd = new WaveSnd(); missileSnd = new MissileSnd(); protonGunSnd = new ProtonGunSnd(); rpgSnd = new RPGSnd(); explodeSnd = new ExplodeSnd(); explodeSnd1 = new ExplodeSnd1(); explodeSnd2 = new ExplodeSnd2(); btnSnd = new BtnSnd(); powerupSnd = new PowerupSnd(); cashSnd = new CashSnd(); stop(); } function frame3(){ stage.frameRate = 30; } public function attPrompt25(_arg1:MovieClip){ var _local2:Prompt25; _local2 = new Prompt25(); _local2.scaleX = 0; _local2.scaleY = 0; _local2.x = _arg1.x; _local2.y = (_arg1.y - 75); levelContainer_mc.addChild(_local2); } function frame1(){ stop(); stage.showDefaultContextMenu = false; agi_url = "http://agi.armorgames.com/assets/agi/AGI.swf"; Security.allowDomain(agi_url); devKey = "6a6fb5c11bfb9abc84294050d244b4b4"; gameKey = "stitchland-conflict"; urlRequest = new URLRequest(agi_url); loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.load(urlRequest); CPMStarContentSpotID = "3030Q933B92F9"; ad = new AdLoader(CPMStarContentSpotID); adBox.addChild(ad); this.addEventListener(Event.ENTER_FRAME, loading); closeButton.buttonMode = true; closeButton.addEventListener(MouseEvent.CLICK, clickHandler); } function frame9(){ stop(); init(); } function frame5(){ stop(); initTitle(); navBtn(highscores_btn, "highscoreShow"); navBtn(award_btn, "awardsScreen"); navBtn(credit_btn, "credits"); newGameButtons(newGame_btn, "howTo"); newGameButtons(newGamePrompt_mc.yes_btn, "howTo"); newGameButtons(newGamePrompt_mc.no_btn, ""); } function frame6(){ stop(); updateQualityDisplay(); initialPosAndAnimationOfCurtains(); navBtn(howToNext_btn, "prelevel"); navBtn(howToBack_btn, "title"); } function frame7(){ stop(); initPrelevel(); startMissionBtn(prelevelContainer_mc.startMission_btn, level); preBackBtn(prelevelContainer_mc.back_btn); acquireSpecial(prelevelContainer_mc.buySpec1_btn); acquireSpecial(prelevelContainer_mc.buySpec2_btn); acquireSpecial(prelevelContainer_mc.buySpec3_btn); acquireSpecial(prelevelContainer_mc.buySpec4_btn); acquireSpecial(prelevelContainer_mc.buySpec5_btn); acquireSpecial(prelevelContainer_mc.buySpec6_btn); weaponDescShow(prelevelContainer_mc.wep1_btn); weaponDescShow(prelevelContainer_mc.wep2_btn); weaponDescShow(prelevelContainer_mc.wep3_btn); weaponDescShow(prelevelContainer_mc.wep4_btn); weaponDescShow(prelevelContainer_mc.wep5_btn); weaponDescShow(prelevelContainer_mc.wep6_btn); weaponDescShow(prelevelContainer_mc.wep7_btn); weaponDescShow(prelevelContainer_mc.wep8_btn); buyAdditionalItems(prelevelContainer_mc.buyItem1_btn); buyAdditionalItems(prelevelContainer_mc.buyItem2_btn); upgradeBattleVehicle(prelevelContainer_mc.upgradeArmor_btn); upgradeBattleVehicle(prelevelContainer_mc.upgradeSpd_btn); } function frame8(){ stop(); init(); } public function buyAdditionalItems(_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){ trace("new Items"); switch (btn){ case prelevelContainer_mc.buyItem1_btn: if (moneyOverall >= item1Price){ updateMoney(moneyOverall, item1Price); item1 = "sold"; btn.x = -500; } else { trace("not enough money"); }; break; case prelevelContainer_mc.buyItem2_btn: if (moneyOverall >= item2Price){ updateMoney(moneyOverall, item2Price); item2 = "sold"; btn.x = -500; } else { trace("not enough money"); }; break; }; saveToLSO(); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } function frame4(){ MochiBot.track(this, "46aeb52a"); stage.frameRate = 30; stage.showDefaultContextMenu = false; color = new Color(); MouseWheel.capture(); playTitleBGSnd(); award1_Name = "Exterminator"; award2_Name = "Eradicator"; award3_Name = "Terminator"; award4_Name = "Kill Off"; award5_Name = "Parsimony"; award6_Name = "Saver"; award7_Name = "Stinginess"; award8_Name = "Tightfistedness"; award9_Name = "Freezeland"; award10_Name = "Scorchedland"; award11_Name = "Mountyland"; award12_Name = "Greenyland"; award13_Name = "Pulverized"; award14_Name = "Demolished"; award15_Name = "Dismantled"; award16_Name = "Disintegrate"; award17_Name = "No Problem"; award18_Name = "So Close"; award19_Name = "Like’d"; award20_Name = "Fave’d"; award21_Name = "Hooked"; stitchlandConflict_so = SharedObject.getLocal("StitchlandCOnflictSavedData"); sahigArray = new Array(); playerAmmo1Array = new Array(); playerAmmo2Array = new Array(); playerAmmo3Array = new Array(); playerAmmo4Array = new Array(); playerAmmo5Array = new Array(); playerAmmo6Array = new Array(); playerAmmo7Array = new Array(); playerAmmo8Array = new Array(); playerAmmo8aArray = new Array(); playerSpecial1Array = new Array(); playerSpecial1aArray = new Array(); playerSpecial2Array = new Array(); playerSpecial3Array = new Array(); playerSpecial4Array = new Array(); playerSpecial4aArray = new Array(); playerSpecial5Array = new Array(); playerSpecial6Array = new Array(); playerSpecial6aArray = new Array(); specialMax = 100; specialInventory = specialMax; playerShieldArray = new Array(); powerUpArray = new Array(); bossArray = new Array(); enemyArray = new Array(); enemyAmmo1Array = new Array(); enemyAmmo2Array = new Array(); enemyAmmo3Array = new Array(); enemyAmmo4Array = new Array(); enemyAmmo5Array = new Array(); enemyAmmo6Array = new Array(); explosionArray = new Array(); weaponArray = new Array(); weaponArray = ["1", "2", "3", "4", "5", "6", "7", "8"]; level = 1; levelComplete = false; dead = "false"; lives = 1; lifeDenom = 100; lifeNum = lifeDenom; kills_level = 0; money_level = 0; moneyOverall = 10000; selectedSpecial = ""; special1Price = 500; special2Price = 1000; special3Price = 1200; special4Price = 2000; special5Price = 2000; special6Price = 1400; specialRecharging = "false"; shieldInUse = "no"; shieldDepleted = "no"; shieldMaxEnergy = 300; shieldEnergy = shieldMaxEnergy; item1Price = 300; item2Price = 400; upgradeSpeedPrice = 100; upgradeArmorPrice = 120; speedLevel = 1; armorLevel = 1; gravity = 0.004; lastTime = 0; dy = 0; playerJumpSpeed = 0.8; playerMoveSpeed = 0.15; playerJump = false; playerInAir = false; playerMoveRight = false; playerMoveLeft = false; keyIsPressed = "false"; fireWeapon = "cease"; gameWidth = 700; gameHeight = 525; showWep1 = "nope"; showWep2 = "nope"; showWep3 = "nope"; showWep4 = "nope"; showWep5 = "nope"; showWep6 = "nope"; showWep7 = "nope"; showWep8 = "nope"; ammo1Name = "MAHINA"; ammo2Name = "SAPUL"; ammo3Name = "LAPNOS"; ammo4Name = "TUSTA"; ammo5Name = "RATRAT"; ammo6Name = "TUSOK"; ammo7Name = "BASAG"; ammo8Name = "HILO"; weaponCounter = 1; ammo1Max = 170; ammo2Max = 150; ammo3Max = 200; ammo4Max = 20; ammo5Max = 200; ammo6Max = 50; ammo7Max = 150; ammo8Max = 30; ammo1Reload = 4; ammo2Reload = 2; ammo3Reload = 2; ammo4Reload = 0.4; ammo5Reload = 1; ammo6Reload = 0.5; ammo7Reload = 0.2; ammo8Reload = 0.2; spec1Reload = 0.1; spec2Reload = 0.2; spec3Reload = 0.1; spec4Reload = 0.04; spec5Reload = 0.1; spec6Reload = 0.1; ammo1Inventory = ammo1Max; ammo2Inventory = ammo2Max; ammo3Inventory = ammo3Max; ammo4Inventory = ammo4Max; ammo5Inventory = ammo5Max; ammo6Inventory = ammo6Max; ammo7Inventory = ammo7Max; ammo8Inventory = ammo8Max; ammo1Reloading = "false"; ammo2Reloading = "false"; ammo3Reloading = "false"; ammo4Reloading = "false"; ammo5Reloading = "false"; ammo6Reloading = "false"; ammo7Reloading = "false"; ammo8Reloading = "false"; LSO_Checker(); trackPlayDurationTmr = new Timer(1000, 0); trackPlayDurationTmr.addEventListener(TimerEvent.TIMER, trackPlayDuration); stage.addEventListener(KeyboardEvent.KEY_DOWN, kd); waveInterval = 3000; wave_lvl1 = 0; waveMax_lvl1 = 18; waveTimer_lvl1 = new Timer(waveInterval, waveMax_lvl1); waveTimer_lvl1.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl1); wave_lvl2 = 0; waveMax_lvl2 = 20; waveTimer_lvl2 = new Timer(waveInterval, waveMax_lvl2); waveTimer_lvl2.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl2); wave_lvl3 = 0; waveMax_lvl3 = 22; waveTimer_lvl3 = new Timer(waveInterval, waveMax_lvl3); waveTimer_lvl3.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl3); wave_lvl4 = 0; waveMax_lvl4 = 25; waveTimer_lvl4 = new Timer(waveInterval, waveMax_lvl4); waveTimer_lvl4.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl4); wave_lvl5 = 0; waveMax_lvl5 = 30; waveTimer_lvl5 = new Timer(waveInterval, waveMax_lvl5); waveTimer_lvl5.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl5); wave_lvl6 = 0; waveMax_lvl6 = 30; waveTimer_lvl6 = new Timer(waveInterval, waveMax_lvl6); waveTimer_lvl6.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl6); wave_lvl7 = 0; waveMax_lvl7 = 30; waveTimer_lvl7 = new Timer(waveInterval, waveMax_lvl7); waveTimer_lvl7.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl7); wave_lvl8 = 0; waveMax_lvl8 = 30; waveTimer_lvl8 = new Timer(waveInterval, waveMax_lvl8); waveTimer_lvl8.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl8); wave_lvl9 = 0; waveMax_lvl9 = 30; waveTimer_lvl9 = new Timer(waveInterval, waveMax_lvl9); waveTimer_lvl9.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl9); wave_lvl10 = 0; waveMax_lvl10 = 32; waveTimer_lvl10 = new Timer(waveInterval, waveMax_lvl10); waveTimer_lvl10.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl10); wave_lvl11 = 0; waveMax_lvl11 = 32; waveTimer_lvl11 = new Timer(waveInterval, waveMax_lvl11); waveTimer_lvl11.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl11); wave_lvl12 = 0; waveMax_lvl12 = 32; waveTimer_lvl12 = new Timer(waveInterval, waveMax_lvl12); waveTimer_lvl12.addEventListener(TimerEvent.TIMER, deployEnemy_Lvl12); toPostCounter = 0; toPostLevelTimer = new Timer(1000, 4); toPostLevelTimer.addEventListener(TimerEvent.TIMER, toPostCount); toPostLevelTimer.addEventListener(TimerEvent.TIMER_COMPLETE, toPostLevel); playerAmmo1Rof = 1; playerAmmo2Rof = 1; playerAmmo3Rof = 1; playerAmmo4Rof = 1; playerAmmo5Rof = 1; playerAmmo6Rof = 1; playerAmmo7Rof = 1; playerAmmo8Rof = 1; } public function setSelectedSpecial(_arg1:Number){ switch (_arg1){ case 1: _setXposYpos(43.5, 275.9); selectedSpecial = "1"; addAbilityForSpecialButtons(prelevelContainer_mc.spec1_mc); break; case 2: _setXposYpos(43.5, 345.9); selectedSpecial = "2"; addAbilityForSpecialButtons(prelevelContainer_mc.spec2_mc); break; case 3: _setXposYpos(43.5, 415.9); selectedSpecial = "3"; addAbilityForSpecialButtons(prelevelContainer_mc.spec3_mc); break; case 4: _setXposYpos(203, 275.9); selectedSpecial = "4"; addAbilityForSpecialButtons(prelevelContainer_mc.spec4_mc); break; case 5: _setXposYpos(203, 345.9); selectedSpecial = "5"; addAbilityForSpecialButtons(prelevelContainer_mc.spec5_mc); break; case 6: _setXposYpos(203.06, 415.9); selectedSpecial = "6"; addAbilityForSpecialButtons(prelevelContainer_mc.spec6_mc); break; }; } public function playRoamingSnd(){ if (music == "on"){ roamingSnd.play(); }; } public function _setXposYpos(_arg1:Number, _arg2:Number){ prelevelContainer_mc.showSelectedSpecial_mc.x = _arg1; prelevelContainer_mc.showSelectedSpecial_mc.y = _arg2; } public function mouseReleased(_arg1:MouseEvent){ fireWeapon = "cease"; playerAmmo1Rof = 1; playerAmmo2Rof = 1; playerAmmo3Rof = 1; playerAmmo4Rof = 1; playerAmmo5Rof = 1; playerAmmo6Rof = 1; playerAmmo7Rof = 1; playerAmmo8Rof = 1; } public function init(){ initialPosAndAnimationOfCurtains(); playGameBGSnd(); trackPlayDurationTmr.start(); Mouse.hide(); weaponInUse(); updateQualityDisplay(); shieldEnergy = shieldMaxEnergy; ammo1Inventory = ammo1Max; ammo2Inventory = ammo2Max; ammo3Inventory = ammo3Max; ammo4Inventory = ammo4Max; ammo5Inventory = ammo5Max; ammo6Inventory = ammo6Max; ammo7Inventory = ammo7Max; ammo8Inventory = ammo8Max; ammo1Reloading = "false"; ammo2Reloading = "false"; ammo3Reloading = "false"; ammo4Reloading = "false"; ammo5Reloading = "false"; ammo6Reloading = "false"; ammo7Reloading = "false"; ammo8Reloading = "false"; kills_level = 0; levelComplete = false; dead = "false"; ui_showMoney_txt.text = String(("Money: " + moneyOverall)); levelContainer_mc.player_mc.x = 350; levelContainer_mc.player_mc.y = 400; playerJump = false; playerInAir = false; switch (weaponArray.length){ case 1: ammo2ui_mc.y = 1000; ammo3ui_mc.y = 1000; ammo4ui_mc.y = 1000; ammo5ui_mc.y = 1000; ammo6ui_mc.y = 1000; ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 2: ammo3ui_mc.y = 1000; ammo4ui_mc.y = 1000; ammo5ui_mc.y = 1000; ammo6ui_mc.y = 1000; ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 3: ammo4ui_mc.y = 1000; ammo5ui_mc.y = 1000; ammo6ui_mc.y = 1000; ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 4: ammo5ui_mc.y = 1000; ammo6ui_mc.y = 1000; ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 5: ammo6ui_mc.y = 1000; ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 6: ammo7ui_mc.y = 1000; ammo8ui_mc.y = 1000; break; case 7: ammo8ui_mc.y = 1000; break; case 8: break; }; switch (selectedSpecial){ case "1": specialui_mc.specialName_txt.text = "AIR CAV [SPACE]"; specialui_mc.y = 484; break; case "2": specialui_mc.specialName_txt.text = "AIR STRIKE [SPACE]"; specialui_mc.y = 484; break; case "3": specialui_mc.specialName_txt.text = "HOMING MISSILE [SPACE]"; specialui_mc.y = 484; break; case "4": specialui_mc.specialName_txt.text = "PROTON GUN [SPACE]"; specialui_mc.y = 484; break; case "5": specialui_mc.specialName_txt.text = "SHOCKWAVE [SPACE]"; specialui_mc.y = 484; break; case "6": specialui_mc.specialName_txt.text = "PARATROOPERS [SPACE]"; specialui_mc.y = 484; break; }; if (item2 == "sold"){ shieldUI_mc.y = 484.6; }; switch (speedLevel){ case 1: playerMoveSpeed = 0.15; break; case 2: playerMoveSpeed = 0.17; break; case 3: playerMoveSpeed = 0.19; break; case 4: playerMoveSpeed = 0.2; break; case 5: playerMoveSpeed = 0.22; break; }; switch (armorLevel){ case 1: lifeDenom = 100; break; case 2: lifeDenom = 110; break; case 3: lifeDenom = 120; break; case 4: lifeDenom = 130; break; case 5: lifeDenom = 150; break; }; lifeNum = lifeDenom; ammo1ui_mc.ammoName_txt.text = String((("[ 1. " + ammo1Name) + " ]")); ammo2ui_mc.ammoName_txt.text = String((("[ 2. " + ammo2Name) + " ]")); ammo3ui_mc.ammoName_txt.text = String((("[ 3. " + ammo3Name) + " ]")); ammo4ui_mc.ammoName_txt.text = String((("[ 4. " + ammo4Name) + " ]")); ammo5ui_mc.ammoName_txt.text = String((("[ 5. " + ammo5Name) + " ]")); ammo6ui_mc.ammoName_txt.text = String((("[ 6. " + ammo6Name) + " ]")); ammo7ui_mc.ammoName_txt.text = String((("[ 7. " + ammo7Name) + " ]")); ammo8ui_mc.ammoName_txt.text = String((("[ 8. " + ammo8Name) + " ]")); stage.addEventListener(Event.ENTER_FRAME, looper); stage.addEventListener(KeyboardEvent.KEY_UP, ku); stage.addEventListener(MouseEvent.MOUSE_DOWN, mousePressed); stage.addEventListener(MouseEvent.MOUSE_UP, mouseReleased); stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel); wave_lvl1 = 0; wave_lvl2 = 0; wave_lvl3 = 0; wave_lvl4 = 0; wave_lvl5 = 0; wave_lvl6 = 0; wave_lvl7 = 0; wave_lvl8 = 0; wave_lvl9 = 0; wave_lvl10 = 0; wave_lvl11 = 0; wave_lvl12 = 0; waveTimer_lvl1.reset(); waveTimer_lvl2.reset(); waveTimer_lvl3.reset(); waveTimer_lvl4.reset(); waveTimer_lvl5.reset(); waveTimer_lvl6.reset(); waveTimer_lvl7.reset(); waveTimer_lvl8.reset(); waveTimer_lvl9.reset(); waveTimer_lvl10.reset(); waveTimer_lvl11.reset(); waveTimer_lvl12.reset(); switch (level){ case 1: waveTimer_lvl1.start(); break; case 2: waveTimer_lvl2.start(); break; case 3: waveTimer_lvl3.start(); break; case 4: waveTimer_lvl4.start(); break; case 5: waveTimer_lvl5.start(); break; case 6: waveTimer_lvl6.start(); break; case 7: waveTimer_lvl7.start(); break; case 8: waveTimer_lvl8.start(); break; case 9: waveTimer_lvl9.start(); break; case 10: waveTimer_lvl10.start(); break; case 11: waveTimer_lvl11.start(); break; case 12: waveTimer_lvl12.start(); break; }; } public function attBossExplosion(_arg1:MovieClip){ var bossExplosionTImer:Timer; var attRapidExplosion:Function; var stopRapidExplosion:Function; var mc = _arg1; attRapidExplosion = function (_arg1:TimerEvent){ var _local2:Explosion; _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); explosionArray.push(_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 makeIncomingSound(){ var _local1:Number; _local1 = randomGenerator(1, 10); if (_local1 == 5){ playIncomingSnd2(); }; } public function playPowerupSnd(){ if (music == "on"){ powerupSnd.play(); }; } public function playGameBGSnd(){ SoundMixer.stopAll(); if (music == "on"){ if ((((((((level == 1)) || ((level == 4)))) || ((level == 7)))) || ((level == 10)))){ gameBG2Snd.play(0, int.MAX_VALUE); }; if ((((((((level == 2)) || ((level == 5)))) || ((level == 8)))) || ((level == 11)))){ gameBG4Snd.play(0, int.MAX_VALUE); }; if ((((((((level == 3)) || ((level == 6)))) || ((level == 9)))) || ((level == 12)))){ gameBG5Snd.play(0, int.MAX_VALUE); }; }; } public function kd(_arg1:KeyboardEvent){ keyIsPressed = "true"; if (_arg1.keyCode == 81){ qualityCode++; if (qualityCode == 1){ stage.quality = "low"; qualityShow_txt.text = "Toggle Quality - (Q)\n-LOW"; }; if (qualityCode == 2){ stage.quality = "medium"; qualityShow_txt.text = "Toggle Quality - (Q)\n-MEDIUM"; }; if (qualityCode == 3){ stage.quality = "high"; qualityShow_txt.text = "Toggle Quality - (Q)\n-HIGH"; qualityCode = 0; }; }; if (_arg1.keyCode == 77){ musicCode++; if (musicCode == 1){ SoundMixer.stopAll(); music = "off"; }; if (musicCode == 2){ music = "on"; if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){ if (bossArray.length == 0){ playGameBGSnd(); } else { playBossSnd(); }; } else { trace("title"); playTitleBGSnd(); }; musicCode = 0; }; }; if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){ if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){ playerMoveLeft = true; } else { if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){ playerMoveRight = true; } else { if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){ if (item1 == "sold"){ if (!playerInAir){ levelContainer_mc.player_mc.body_mc.gotoAndStop(2); playerJump = true; }; }; } else { if (_arg1.keyCode == 32){ switch (selectedSpecial){ case "1": if (specialRecharging == "false"){ if (stitchlandConflict_so.data.pulverized == undefined){ stitchlandConflict_so.data.pulverized = 1; promptAchievement(award13_Name); }; attPlayerSpecial1(); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; case "2": if (specialRecharging == "false"){ if (stitchlandConflict_so.data.demolished == undefined){ stitchlandConflict_so.data.demolished = 1; promptAchievement(award14_Name); }; attPlayerSpecial2(); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; case "3": if (specialRecharging == "false"){ attPlayerSpecial3(levelContainer_mc.player_mc); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; case "4": if (specialRecharging == "false"){ if (stitchlandConflict_so.data.disintegrate == undefined){ stitchlandConflict_so.data.disintegrate = 1; promptAchievement(award16_Name); }; attPlayerSpecial4(); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; case "5": if (specialRecharging == "false"){ if (stitchlandConflict_so.data.dismantled == undefined){ stitchlandConflict_so.data.dismantled = 1; promptAchievement(award15_Name); }; attPlayerSpecial5(); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; case "6": if (specialRecharging == "false"){ attPlayerSpecial6(); specialInventory = (specialInventory - 100); specialRecharging = "true"; updateAmmoUI(specialui_mc, specialInventory, specialMax); }; break; }; } else { if (_arg1.keyCode == 70){ if (item2 == "sold"){ if (shieldDepleted == "no"){ levelContainer_mc.player_mc.shield_mc.gotoAndPlay(3); attPlayerShield(); shieldInUse = "yes"; }; }; } else { if (_arg1.keyCode == 49){ weaponCounter = 1; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); } else { if (_arg1.keyCode == 50){ if (weaponArray.length > 1){ weaponCounter = 2; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 51){ if (weaponArray.length > 2){ weaponCounter = 3; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 52){ if (weaponArray.length > 3){ weaponCounter = 4; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 53){ if (weaponArray.length > 4){ weaponCounter = 5; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 54){ if (weaponArray.length > 5){ weaponCounter = 6; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 55){ if (weaponArray.length > 6){ weaponCounter = 7; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; } else { if (_arg1.keyCode == 56){ if (weaponArray.length > 7){ weaponCounter = 8; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); }; }; }; }; }; }; }; }; }; }; }; }; }; }; weaponInUse(); }; } public function ku(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){ keyIsPressed = "false"; } else { if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){ keyIsPressed = "false"; playerMoveLeft = false; } else { if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){ keyIsPressed = "false"; playerMoveRight = false; }; }; }; } public function attExplosion(_arg1:MovieClip){ var _local2:Explosion; playExplodeSnd(); _local2 = new Explosion(); _local2.x = _arg1.x; _local2.y = _arg1.y; _local2.rotation = randomGenerator(0, 360); _local2.gotoAndPlay(4); levelContainer_mc.addChild(_local2); explosionArray.push(_local2); } public function updateMoney(_arg1:Number, _arg2:Number){ playCashSnd(); moneyOverall = (_arg1 - _arg2); prelevelContainer_mc.money_txt.text = String(("Money: " + moneyOverall)); } public function playFireSnd(){ if (music == "on"){ fireSnd.play(); }; } public function attPlayerSpecial1(){ var _local1:Number; var _local2:PlayerSpecial1; _local1 = 0; while (_local1 < 4) { _local2 = new PlayerSpecial1(randomGenerator(-300, -100), randomGenerator(100, 400), 0); levelContainer_mc.addChild(_local2); playerSpecial1Array.push(_local2); _local1++; }; } public function attPlayerSpecial2(){ var _local1:Number; var _local2:Array; var _local3:Number; var _local4:PlayerSpecial2; playIncomingSnd(); _local1 = 0; while (_local1 < 13) { _local2 = [50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650]; _local3 = randomGenerator(-180, 50); _local4 = new PlayerSpecial2(_local2[_local1], _local3, 90); levelContainer_mc.addChild(_local4); playerSpecial2Array.push(_local4); _local1++; }; } public function attPlayerSpecial3(_arg1:MovieClip){ var _local2:Number; var _local3:PlayerSpecial3; playRoamingSnd(); _local2 = 0; while (_local2 < 10) { _local3 = new PlayerSpecial3(_arg1); levelContainer_mc.addChild(_local3); playerSpecial3Array.push(_local3); _local2++; }; } public function attPlayerSpecial4(){ var _local1:PlayerSpecial4; _local1 = new PlayerSpecial4(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerSpecial4Array.push(_local1); } public function attPlayerSpecial6(){ var _local1:PlayerSpecial6; _local1 = new PlayerSpecial6(randomGenerator(100, 600), randomGenerator(-200, -100), 90); levelContainer_mc.addChild(_local1); playerSpecial6Array.push(_local1); } public function mouseWheel(_arg1:MouseEvent){ wheelUpOrDown = _arg1.delta; if ((((currentFrame >= 5)) && ((currentFrame <= 16)))){ if (wheelUpOrDown < 1){ trace("down"); weaponCounter++; if (weaponCounter > weaponArray.length){ weaponCounter = 1; }; } else { trace("up"); weaponCounter--; if (weaponCounter < 1){ weaponCounter = weaponArray.length; }; }; levelContainer_mc.player_mc.turret_mc.gotoAndStop(weaponCounter); weaponInUse(); }; } public function attPlayerSpecial5(){ var _local1:Number; shockFlash_mc.gotoAndPlay(2); _local1 = (enemyArray.length - 1); while (_local1 >= 0) { enemyArray[_local1].life = 0; _local1--; }; if (bossArray.length != 0){ bossArray[0].life = (bossArray[0].life - (bossArray[0].life * 0.25)); }; } public function playBullet1Snd(){ if (music == "on"){ bullet1Snd.play(); }; } public function attEnemyMissile(_arg1:Number, _arg2:Number){ var _local3:EnemyMissile; makeIncomingSound(); _local3 = new EnemyMissile(); _local3.x = _arg1; _local3.y = _arg2; levelContainer_mc.addChild(_local3); enemyArray.push(_local3); } public function trackPlayDuration(_arg1:TimerEvent){ if (stitchlandConflict_so.data.gamePlayDuration_so == undefined){ gamePlayDuration = 0; stitchlandConflict_so.data.gamePlayDuration_so = gamePlayDuration; } else { gamePlayDuration = stitchlandConflict_so.data.gamePlayDuration_so; }; gamePlayDuration++; stitchlandConflict_so.data.gamePlayDuration_so = gamePlayDuration; if ((((gamePlayDuration == 240)) && ((stitchlandConflict_so.data.liked == undefined)))){ stitchlandConflict_so.data.liked = 1; promptAchievement(award19_Name); }; if ((((gamePlayDuration == 480)) && ((stitchlandConflict_so.data.faved == undefined)))){ stitchlandConflict_so.data.faved = 1; promptAchievement(award20_Name); }; if ((((gamePlayDuration == 720)) && ((stitchlandConflict_so.data.hooked == undefined)))){ stitchlandConflict_so.data.hooked = 1; promptAchievement(award21_Name); }; } public function playTitleBGSnd(){ SoundMixer.stopAll(); if (music == "on"){ titlebg2Snd.play(0, int.MAX_VALUE); }; } public function playWaveSnd(){ if (music == "on"){ waveSnd.play(); }; } public function pCheckHit(_arg1:Array, _arg2:Number){ var _local3:Number; _local3 = (_arg1.length - 1); while (_local3 >= 0) { if (playerShieldArray.length != 0){ if (playerShieldArray[0].hitBox_mc.hitTestObject(_arg1[_local3].hitBox_mc)){ if (_arg1 != enemyAmmo3Array){ attExplosion(_arg1[_local3]); }; _arg1[_local3].life = (_arg1[_local3].life - _arg2); if (_arg1[_local3].life <= 0){ }; }; }; if (levelContainer_mc.player_mc.hitBox_mc.hitTestObject(_arg1[_local3].hitBox_mc)){ if (_arg1 != enemyAmmo3Array){ attExplosion(_arg1[_local3]); }; _arg1[_local3].life = (_arg1[_local3].life - _arg2); if (_arg1[_local3].life <= 0){ }; if (shieldInUse == "yes"){ } else { lifeNum = (lifeNum - _arg2); redFlash_mc.gotoAndPlay(2); screenShake(); }; break; }; _local3--; }; } public function LSO_Checker(){ if (stitchlandConflict_so.data.gameDataExist != undefined){ weaponArray = stitchlandConflict_so.data.weaponArray_so; level = stitchlandConflict_so.data.level_so; moneyOverall = stitchlandConflict_so.data.moneyOverall_so; killsOverall = stitchlandConflict_so.data.killsOveralll_so; upgradeSpeedPrice = stitchlandConflict_so.data.upgradeSpeedPrice_so; upgradeArmorPrice = stitchlandConflict_so.data.upgradeArmorPrice_so; special1 = stitchlandConflict_so.data.special1_so; special2 = stitchlandConflict_so.data.special2_so; special3 = stitchlandConflict_so.data.special3_so; special4 = stitchlandConflict_so.data.special4_so; special5 = stitchlandConflict_so.data.special5_so; special6 = stitchlandConflict_so.data.special6_so; item1 = stitchlandConflict_so.data.item1_so; item2 = stitchlandConflict_so.data.item2_so; selectedSpecial = stitchlandConflict_so.data.selectedSpecial_so; speedLevel = stitchlandConflict_so.data.speedLevel_so; armorLevel = stitchlandConflict_so.data.armorLevel_so; } else { weaponCounter = 1; level = 1; speedLevel = 0; armorLevel = 0; kills_level = 0; money_level = 0; killsOverall = 0; moneyOverall = 50; upgradeSpeedPrice = 100; upgradeArmorPrice = 120; special1 = "available"; special2 = "available"; special3 = "available"; special4 = "available"; special5 = "available"; special6 = "available"; item1 = "available"; item2 = "available"; selectedSpecial = "none"; weaponArray = ["1"]; }; } public function attPlayerSpecial1a(_arg1:MovieClip, _arg2:Number){ var _local3:PlayerSpecial1a; _local3 = new PlayerSpecial1a(_arg1.x, _arg1.y, _arg2); levelContainer_mc.addChild(_local3); playerSpecial1aArray.push(_local3); } public function attBossAmmo1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ var _local5:EnemyAmmo1; _local5 = new EnemyAmmo1(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local5); enemyAmmo1Array.push(_local5); } public function attBossAmmo2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ var _local5:EnemyAmmo2; _local5 = new EnemyAmmo2(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local5); enemyAmmo2Array.push(_local5); } public function attBossAmmo3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ var _local5:EnemyAmmo3; _local5 = new EnemyAmmo3(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local5); enemyAmmo3Array.push(_local5); } public function attBossAmmo4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ var _local5:EnemyAmmo4; _local5 = new EnemyAmmo4(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local5); enemyAmmo4Array.push(_local5); } public function _setAwardsNameDesc(_arg1:MovieClip, _arg2:String, _arg3:String){ _arg1.awardName_txt.text = _arg2; _arg1.awardDesc_txt.text = _arg3; } public function deleteLSO(){ delete stitchlandConflict_so.data.gameDataExist; delete stitchlandConflict_so.data.weaponArray_so; delete stitchlandConflict_so.data.level_so; delete stitchlandConflict_so.data.moneyOverall_so; delete stitchlandConflict_so.data.killsOveralll_so; delete stitchlandConflict_so.data.special1_so; delete stitchlandConflict_so.data.special2_so; delete stitchlandConflict_so.data.special3_so; delete stitchlandConflict_so.data.special4_so; delete stitchlandConflict_so.data.special5_so; delete stitchlandConflict_so.data.special6_so; delete stitchlandConflict_so.data.item1_so; delete stitchlandConflict_so.data.item2_so; delete stitchlandConflict_so.data.selectedSpecial_so; delete stitchlandConflict_so.data.speedLevel_so; delete stitchlandConflict_so.data.armorLevel_so; } public function countLevelKills(){ playExplodeSnd1(); kills_level++; Tweener.addTween(showKillsBox_mc, {x:622, time:0.8, transition:"easeOutBack"}); showKillsBox_mc.showKills_txt.text = String(kills_level); showKillsBox_mc.gotoAndPlay(2); } public function attBossAmmo5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){ var _local5:EnemyAmmo5; _local5 = new EnemyAmmo5(_arg1, _arg2, _arg3, _arg4); levelContainer_mc.addChild(_local5); enemyArray.push(_local5); } public function navBtn(_arg1:MovieClip, _arg2:String){ var movr:Function; var mout:Function; var mclck:Function; var btn = _arg1; var whereTo = _arg2; movr = function (_arg1:MouseEvent){ playBtnSnd(); Tweener.addTween(btn, {x:(btn.x - 2), time:0.5, transition:"easeOutStrong"}); }; mout = function (_arg1:MouseEvent){ Tweener.addTween(btn, {x:(btn.x + 2), time:0.5, transition:"easeOutStrong"}); }; mclck = function (_arg1:MouseEvent){ animateCutains(whereTo); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function attPlayerSpecial4a(){ var _local1:PlayerSpecial4a; _local1 = new PlayerSpecial4a(_setDistanceFromCenter(levelContainer_mc.player_mc)[0], _setDistanceFromCenter(levelContainer_mc.player_mc)[1], levelContainer_mc.player_mc.turret_mc.rotation); levelContainer_mc.addChild(_local1); playerSpecial4aArray.push(_local1); } public function playBullet3Snd(){ if (music == "on"){ bullet3Snd.play(); }; } public function iniPostWin(){ updateQualityDisplay(); initialPosAndAnimationOfCurtains(); postShowMoney_txt.text = String(("MONEY: " + moneyOverall)); postShowKills_txt.text = String(("KILLS: " + killsOverall)); navBtn(postWinNext_btn, "prelevel"); navBtn(postWinSubmitScore_btn, "highscoreSubmit"); } public function attPlayerSpecial6a(_arg1:MovieClip, _arg2:Number){ var _local3:PlayerSpecial6a; _local3 = new PlayerSpecial6a(_setDistanceFromCenterSpecial6(_arg1)[0], _setDistanceFromCenterSpecial6(_arg1)[1], _arg2); levelContainer_mc.addChild(_local3); playerSpecial6aArray.push(_local3); } public function deployEnemy_Lvl10(_arg1:TimerEvent){ wave_lvl10++; trace(wave_lvl10); switch (wave_lvl10){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy9(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy9(1); break; case 5: attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy9(1); attEnemy11(1); break; case 10: attMultipleEnemyMissile(); attHealth2(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); break; case 11: attEnemy1(1); attEnemy2(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 20: attMultipleEnemyMissile(); attHealth1(); attEnemy6(1); attEnemy3(1); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 25: attHealth1(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 26: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); attEnemy11(2); break; case 29: attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 30: attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; default: break; }; } public function deployEnemy_Lvl11(_arg1:TimerEvent){ wave_lvl11++; trace(wave_lvl11); switch (wave_lvl11){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy9(1); break; case 2: attEnemy1(2); attEnemy2(1); attEnemy4(1); attEnemy10(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy9(1); break; case 5: attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy10(1); attEnemy11(1); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy9(1); break; case 10: attMultipleEnemyMissile(); attHealth2(); attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); break; case 11: attEnemy1(1); attEnemy2(1); attEnemy10(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); break; case 14: attEnemy1(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 15: attEnemy6(1); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); attHealth2(); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy10(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy11(1); break; case 19: attEnemy1(2); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 20: attMultipleEnemyMissile(); attHealth1(); attEnemy6(1); attEnemy3(1); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy10(1); attEnemy11(1); break; case 22: attEnemy2(1); attEnemy4(1); break; case 23: attEnemy2(1); attEnemy4(1); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 25: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attHealth1(); break; case 26: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy10(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); attEnemy11(1); break; case 29: attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 30: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy9(1); attHealth1(); break; case 31: attEnemy5(1); attEnemy2(1); attEnemy10(1); attEnemy11(1); break; case 32: attMultipleEnemyMissile(); attEnemy10(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); default: break; }; } public function deployEnemy_Lvl12(_arg1:TimerEvent){ wave_lvl12++; trace(wave_lvl12); switch (wave_lvl12){ case 1: attEnemy6(1); attEnemy5(1); attEnemy2(1); attEnemy9(1); break; case 2: attEnemy11(1); attEnemy2(1); attEnemy4(1); attEnemy10(1); break; case 3: attEnemy1(1); attEnemy2(1); attEnemy11(2); break; case 4: attMultipleEnemyMissile(); attEnemy1(1); attEnemy3(1); attEnemy9(1); break; case 5: attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); attEnemy5(1); attEnemy4(1); break; case 6: attMultipleEnemyMissile(); attEnemy3(1); attEnemy10(1); attEnemy11(2); break; case 7: attEnemy3(1); attEnemy2(1); break; case 8: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(2); break; case 9: attEnemy1(2); attEnemy2(1); attEnemy9(1); break; case 10: attHealth1(); attEnemy11(2); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy8(1); break; case 11: attEnemy1(1); attEnemy2(1); attEnemy10(1); break; case 12: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy11(1); break; case 13: attEnemy1(1); attEnemy2(1); attEnemy11(2); break; case 14: attMultipleEnemyMissile(); attEnemy1(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 15: attHealth2(); attEnemy11(2); attEnemy1(2); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy4(1); break; case 16: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy10(1); break; case 17: attEnemy1(2); attEnemy3(1); break; case 18: attEnemy3(1); attEnemy2(1); attEnemy11(2); break; case 19: attEnemy1(2); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 20: attHealth1(); attMultipleEnemyMissile(); attEnemy6(1); attEnemy11(2); attEnemy5(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 21: attEnemy2(1); attEnemy4(1); attEnemy10(1); break; case 22: attMultipleEnemyMissile(); attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 23: attEnemy2(1); attEnemy4(1); attEnemy11(2); break; case 24: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 25: attHealth1(); attEnemy11(2); attEnemy5(1); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); break; case 26: attMultipleEnemyMissile(); attEnemy3(1); attEnemy2(1); attEnemy10(1); break; case 27: attEnemy2(1); attEnemy4(1); attEnemy11(1); break; case 28: attMultipleEnemyMissile(); attEnemy5(1); attEnemy2(1); attEnemy11(1); break; case 29: attEnemy3(1); attEnemy2(1); attEnemy8(1); attEnemy9(1); break; case 30: attMultipleEnemyMissile(); attHealth2(); attEnemy11(2); attEnemy2(1); attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), randomGenerator(200, 300), levelContainer_mc.player_mc, 1); attEnemy9(1); break; case 31: attMultipleEnemyMissile(); attHealth2(); attEnemy5(1); attEnemy2(1); attEnemy11(1); break; case 32: attBoss4(); playBossSnd(); default: break; }; } public function attPlayerShield(){ var _local1:MovieClip; var _local2:PlayerShield; _local1 = levelContainer_mc.player_mc; _local2 = new PlayerShield(_local1.x, _local1.y, 0); levelContainer_mc.addChild(_local2); playerShieldArray.push(_local2); } public function attMultipleEnemyMissile(){ attEnemyMissile(18.3, randomGenerator(-150, -100)); attEnemyMissile(150.2, randomGenerator(-150, -100)); attEnemyMissile(282.1, randomGenerator(-150, -100)); attEnemyMissile(413.9, randomGenerator(-150, -100)); attEnemyMissile(545.9, randomGenerator(-150, -100)); attEnemyMissile(677.8, randomGenerator(-150, -100)); } public function initialPosAndAnimationOfCurtains(){ firstHalf_mc.y = 262.5; secondHalf_mc.y = 262.5; Tweener.addTween(firstHalf_mc, {y:-17.5, time:0.6, transition:"easeOutStrong"}); Tweener.addTween(secondHalf_mc, {y:542.5, time:0.6, transition:"easeOutStrong"}); } public function initAwardsScreen(){ navBtn(postLostNext_btn, "title"); _setAwardsNameDesc(award1_mc, award1_Name, "Reached 30 kills per level"); _setAwardsNameDesc(award2_mc, award2_Name, "Reached 60 kills per level"); _setAwardsNameDesc(award3_mc, award3_Name, "Reached 90 kills per level"); _setAwardsNameDesc(award4_mc, award4_Name, "Reached 120 kills per level"); _setAwardsNameDesc(award5_mc, award5_Name, "Saved up to $100"); _setAwardsNameDesc(award6_mc, award6_Name, "Saved up to $250"); _setAwardsNameDesc(award7_mc, award7_Name, "Saved up to $500"); _setAwardsNameDesc(award8_mc, award8_Name, "Saved up to $1000"); _setAwardsNameDesc(award9_mc, award9_Name, "Beat Boss 1"); _setAwardsNameDesc(award10_mc, award10_Name, "Beat Boss 2"); _setAwardsNameDesc(award11_mc, award11_Name, "Beat Boss 3"); _setAwardsNameDesc(award12_mc, award12_Name, "Beat Boss 4"); _setAwardsNameDesc(award13_mc, award13_Name, "Use Air Cav for the 1st time"); _setAwardsNameDesc(award14_mc, award14_Name, "Use Air Strike for the 1st time"); _setAwardsNameDesc(award15_mc, award15_Name, "Use Shockwave for the 1st time"); _setAwardsNameDesc(award16_mc, award16_Name, "Use Proton Gun for the 1st time"); _setAwardsNameDesc(award17_mc, award17_Name, "Finishing a level with full health"); _setAwardsNameDesc(award18_mc, award18_Name, "Finishing a level with 10% or low health"); _setAwardsNameDesc(award19_mc, award19_Name, "Play the game for 4 minutes"); _setAwardsNameDesc(award20_mc, award20_Name, "Play the game for 8 minutes"); _setAwardsNameDesc(award21_mc, award21_Name, "Play the game for 12 minutes"); if (stitchlandConflict_so.data.exterminator != undefined){ award1_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.eradicator != undefined){ award2_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.terminator != undefined){ award3_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.killOff != undefined){ award4_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.parsimony != undefined){ award5_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.saver != undefined){ award6_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.stinginess != undefined){ award7_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.tightfistedness != undefined){ award8_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.freezeland != undefined){ award9_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.scorchedland != undefined){ award10_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.mountyland != undefined){ award11_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.greenyland != undefined){ award12_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.pulverized != undefined){ award13_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.demolished != undefined){ award14_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.dismantled != undefined){ award15_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.disintegrate != undefined){ award16_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.noProblem != undefined){ award17_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.soClose != undefined){ award18_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.liked != undefined){ award19_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.faved != undefined){ award20_mc.awardIcon.gotoAndStop(2); }; if (stitchlandConflict_so.data.hooked != undefined){ award21_mc.awardIcon.gotoAndStop(2); }; } public function animateCutains(_arg1:String){ Tweener.addTween(firstHalf_mc, {y:262.5, time:1, transition:"easeOutBounce"}); Tweener.addTween(secondHalf_mc, {y:262.5, time:1, onComplete:destination, onCompleteParams:[_arg1], transition:"easeOutBounce"}); } public function initTitle(){ updateQualityDisplay(); initialPosAndAnimationOfCurtains(); if (stitchlandConflict_so.data.gameDataExist == undefined){ loadGame_btn.transform.colorTransform = set_brightness(0.9); } else { navBtn(loadGame_btn, "prelevel"); loadGame_btn.transform.colorTransform = set_brightness(0); }; } public function promptAchievement(_arg1:String){ var _local2:PromptAward; _local2 = new PromptAward(); _local2.x = 610; _local2.y = 150; _local2._name_txt.text = _arg1; this.addChild(_local2); } public function startMissionBtn(_arg1:MovieClip, _arg2:Number){ var movr:Function; var mout:Function; var mclck:Function; var btn = _arg1; var lvl = _arg2; movr = function (_arg1:MouseEvent){ playBtnSnd(); }; mout = function (_arg1:MouseEvent){ }; mclck = function (_arg1:MouseEvent){ animateCutains(("gameScreen_lvl" + lvl)); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); btn.addEventListener(MouseEvent.CLICK, mclck); } public function instanceLooper(_arg1:Array){ var _local2:Number; _local2 = (_arg1.length - 1); while (_local2 >= 0) { _arg1[_local2].looper(); _local2--; }; } public function weaponDescShow(_arg1:MovieClip){ var movr:Function; var mout:Function; var btn = _arg1; movr = function (_arg1:MouseEvent){ playBtnSnd(); switch (btn){ case prelevelContainer_mc.wep1_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo1Name)); prelevelContainer_mc.wepDesc_txt.text = String("Standard issue machine gun \n Press 1 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep2_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo2Name)); prelevelContainer_mc.wepDesc_txt.text = String("Heavy Automatic shotgun \n Press 2 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep3_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo3Name)); prelevelContainer_mc.wepDesc_txt.text = String("Fireball thrower \n Press 3 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep4_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo4Name)); prelevelContainer_mc.wepDesc_txt.text = String("Multiple Launch Rocket System \n Press 4 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep5_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo5Name)); prelevelContainer_mc.wepDesc_txt.text = String("Modified vulcan minigun \n Press 5 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep6_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo6Name)); prelevelContainer_mc.wepDesc_txt.text = String("Gauss gun \n Press 6 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep7_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo7Name)); prelevelContainer_mc.wepDesc_txt.text = String("Powerful soundwave emitter \n Press 7 to use or scroll mouse wheel to cycle to all weapons."); break; case prelevelContainer_mc.wep8_btn: prelevelContainer_mc.wepName_txt.text = String(("Weapon Name: " + ammo8Name)); prelevelContainer_mc.wepDesc_txt.text = String("Modified granade launch system \n Press 8 to use or scroll mouse wheel to cycle to all weapons."); break; }; }; mout = function (_arg1:MouseEvent){ prelevelContainer_mc.wepName_txt.text = String("Weapon Name: "); prelevelContainer_mc.wepDesc_txt.text = String(""); }; btn.buttonMode = true; btn.addEventListener(MouseEvent.MOUSE_OVER, movr); btn.addEventListener(MouseEvent.MOUSE_OUT, mout); } public function addAbilityForSpecialButtons(_arg1:MovieClip){ var movr:Function; var mout:Function; var mclck:Function; var mc = _arg1; movr = function (_arg1:MouseEvent){ playBtnSnd(); }; mout = function (_arg1:MouseEvent){ }; mclck = function (_arg1:MouseEvent){ switch (mc){ case prelevelContainer_mc.spec1_mc: _setXposYpos(43.5, 275.9); selectedSpecial = "1"; break; case prelevelContainer_mc.spec2_mc: _setXposYpos(43.5, 345.9); selectedSpecial = "2"; break; case prelevelContainer_mc.spec3_mc: _setXposYpos(43.5, 415.9); selectedSpecial = "3"; break; case prelevelContainer_mc.spec4_mc: _setXposYpos(203, 275.9); selectedSpecial = "4"; break; case prelevelContainer_mc.spec5_mc: _setXposYpos(203, 345.9); selectedSpecial = "5"; break; case prelevelContainer_mc.spec6_mc: _setXposYpos(203.06, 415.9); selectedSpecial = "6"; break; }; saveToLSO(); }; mc.buttonMode = true; mc.addEventListener(MouseEvent.MOUSE_OVER, movr); mc.addEventListener(MouseEvent.MOUSE_DOWN, mout); mc.addEventListener(MouseEvent.CLICK, mclck); } public function attHealth2(){ var _local1:Health2; _local1 = new Health2(); _local1.x = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); powerUpArray.push(_local1); } 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.turret_mc.rotation; _local5 = (_arg1.x + (_local3 * Math.cos(((_local4 * Math.PI) / 180)))); _local6 = ((_arg1.y + (_local3 * Math.sin(((_local4 * Math.PI) / 180)))) - 30); _local2[0] = _local5; _local2[1] = _local6; return (_local2); } public function attHealth1(){ var _local1:Health1; _local1 = new Health1(); _local1.x = randomGenerator(100, 650); _local1.y = randomGenerator(-300, -100); levelContainer_mc.addChild(_local1); powerUpArray.push(_local1); } public function playIncomingSnd(){ if (music == "on"){ incomingSnd.play(); }; } public function attPromptFull(_arg1:MovieClip){ var _local2:PromptFull; _local2 = new PromptFull(); _local2.scaleX = 0; _local2.scaleY = 0; _local2.x = _arg1.x; _local2.y = (_arg1.y - 75); levelContainer_mc.addChild(_local2); } public function bgScroller(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:Number){ var _local5:Number; _local5 = _arg4; _arg1.x = (_arg1.x - _local5); _arg2.x = (_arg2.x - _local5); _arg3.x = (_arg3.x - _local5); if (_arg1.x < -1000){ _arg1.x = (_arg3.x + _arg3.width); }; if (_arg2.x < -1000){ _arg2.x = (_arg1.x + _arg1.width); }; if (_arg3.x < -1000){ _arg3.x = (_arg2.x + _arg2.width); }; } public function attAmountAcquired(_arg1:MovieClip, _arg2:Number){ var _local3:ShowAmountAcquired; _local3 = new ShowAmountAcquired(); _local3.scaleX = 0; _local3.scaleY = 0; _local3.x = _arg1.x; _local3.y = _arg1.y; _local3.amount_txt.text = String(("$" + _arg2)); levelContainer_mc.addChild(_local3); } public function saveToLSO(){ stitchlandConflict_so.data.gameDataExist = "true"; stitchlandConflict_so.data.weaponArray_so = weaponArray; stitchlandConflict_so.data.level_so = level; stitchlandConflict_so.data.moneyOverall_so = moneyOverall; stitchlandConflict_so.data.killsOveralll_so = killsOverall; stitchlandConflict_so.data.upgradeSpeedPrice_so = upgradeSpeedPrice; stitchlandConflict_so.data.upgradeArmorPrice_so = upgradeArmorPrice; stitchlandConflict_so.data.special1_so = special1; stitchlandConflict_so.data.special2_so = special2; stitchlandConflict_so.data.special3_so = special3; stitchlandConflict_so.data.special4_so = special4; stitchlandConflict_so.data.special5_so = special5; stitchlandConflict_so.data.special6_so = special6; stitchlandConflict_so.data.item1_so = item1; stitchlandConflict_so.data.item2_so = item2; stitchlandConflict_so.data.selectedSpecial_so = selectedSpecial; stitchlandConflict_so.data.speedLevel_so = speedLevel; stitchlandConflict_so.data.armorLevel_so = armorLevel; stitchlandConflict_so.flush(); } public function initPrelevel(){ var j:Number; var _showNewWepPrompt:Function; _showNewWepPrompt = function (_arg1:Number, _arg2:Number, _arg3:String, _arg4:String){ var movr:Function; var mout:Function; var mclck:Function; var _xPos = _arg1; var _yPos = _arg2; var _wepName = _arg3; var _howToUse = _arg4; movr = function (_arg1:MouseEvent){ }; mout = function (_arg1:MouseEvent){ }; mclck = function (_arg1:MouseEvent){ Tweener.addTween(newWepPrompt_mc, {scaleX:0, scaleY:0, x:_xPos, y:_yPos, time:0.2, transition:"easeInBack"}); Tweener.addTween(newWepPrompt_mc, {x:-519, time:0.1, delay:0.3, transition:"linear"}); }; newWepPrompt_mc.y = 216.7; newWepPrompt_mc.wepName_txt.text = String(_wepName); newWepPrompt_mc.wepDes_txt.text = String(_howToUse); newWepPrompt_mc.showWep_mc.gotoAndStop(level); newWepPrompt_mc.ok_btn.buttonMode = true; newWepPrompt_mc.ok_btn.addEventListener(MouseEvent.MOUSE_OVER, movr); newWepPrompt_mc.ok_btn.addEventListener(MouseEvent.MOUSE_DOWN, mout); newWepPrompt_mc.ok_btn.addEventListener(MouseEvent.CLICK, mclck); }; updateQualityDisplay(); initialPosAndAnimationOfCurtains(); switch (selectedSpecial){ case "1": _setXposYpos(43.5, 275.9); break; case "2": _setXposYpos(43.5, 345.9); break; case "3": _setXposYpos(43.5, 415.9); break; case "4": _setXposYpos(203, 275.9); break; case "5": _setXposYpos(203, 345.9); break; case "6": _setXposYpos(203.06, 415.9); break; }; if ((((moneyOverall >= 1000)) && ((stitchlandConflict_so.data.tightfistedness == undefined)))){ stitchlandConflict_so.data.tightfistedness = 1; promptAchievement(award8_Name); } else { if ((((moneyOverall >= 500)) && ((stitchlandConflict_so.data.stinginess == undefined)))){ stitchlandConflict_so.data.stinginess = 1; promptAchievement(award7_Name); } else { if ((((moneyOverall >= 250)) && ((stitchlandConflict_so.data.saver == undefined)))){ stitchlandConflict_so.data.saver = 1; promptAchievement(award6_Name); } else { if ((((moneyOverall >= 100)) && ((stitchlandConflict_so.data.parsimony == undefined)))){ stitchlandConflict_so.data.parsimony = 1; promptAchievement(award5_Name); }; }; }; }; prelevelContainer_mc.wep1_btn.y = -200; prelevelContainer_mc.wep2_btn.y = -200; prelevelContainer_mc.wep3_btn.y = -200; prelevelContainer_mc.wep4_btn.y = -200; prelevelContainer_mc.wep5_btn.y = -200; prelevelContainer_mc.wep6_btn.y = -200; prelevelContainer_mc.wep7_btn.y = -200; prelevelContainer_mc.wep8_btn.y = -200; j = 1; while (j <= level) { if (j <= 8){ prelevelContainer_mc[(("wep" + j) + "_btn")].y = 80; }; j = (j + 1); }; if (showWep2 == "show"){ _showNewWepPrompt(149, 93, ammo2Name, "Auto heavy duty shotgun \n \nPress 2 to use or scroll mouse wheel to cycle to all weapons."); showWep2 = "none"; } else { if (showWep3 == "show"){ trace("wep 3 show"); _showNewWepPrompt(229, 93, ammo3Name, "Fireball Thrower \n \nPress 3 to use or scroll mouse wheel to cycle to all weapons."); showWep3 = "none"; } else { if (showWep4 == "show"){ _showNewWepPrompt(309, 93, ammo4Name, "Multi Launch Rocket System \n \nPress 4 to use or scroll mouse wheel to cycle to all weapons."); showWep4 = "none"; } else { if (showWep5 == "show"){ _showNewWepPrompt(389, 93, ammo5Name, "Vulgan minigun \n \nPress 5 to use or scroll mouse wheel to cycle to all weapons."); showWep5 = "none"; } else { if (showWep6 == "show"){ _showNewWepPrompt(469, 93, ammo6Name, "Next Gen Rail Gun \n \nPress 6 to use or scroll mouse wheel to cycle to all weapons."); showWep6 = "none"; } else { if (showWep7 == "show"){ _showNewWepPrompt(549, 93, ammo7Name, "Soundwave Emitter \n \nPress 7 to use or scroll mouse wheel to cycle to all weapons."); showWep7 = "none"; } else { if (showWep8 == "show"){ _showNewWepPrompt(629, 93, ammo8Name, "Automatic Granade Launcher \n \nPress 8 to use or scroll mouse wheel to cycle to all weapons."); showWep8 = "none"; }; }; }; }; }; }; }; if (special1 == "sold"){ prelevelContainer_mc.buySpec1_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec1_mc); }; if (special2 == "sold"){ prelevelContainer_mc.buySpec2_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec2_mc); }; if (special3 == "sold"){ prelevelContainer_mc.buySpec3_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec3_mc); }; if (special4 == "sold"){ prelevelContainer_mc.buySpec4_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec4_mc); }; if (special5 == "sold"){ prelevelContainer_mc.buySpec5_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec5_mc); }; if (special6 == "sold"){ prelevelContainer_mc.buySpec6_btn.x = -500; addAbilityForSpecialButtons(prelevelContainer_mc.spec6_mc); }; if (item1 == "sold"){ prelevelContainer_mc.buyItem1_btn.x = -500; }; if (item2 == "sold"){ prelevelContainer_mc.buyItem2_btn.x = -500; }; switch (speedLevel){ case 1: prelevelContainer_mc.showSpeedLevel_txt.text = "1/5"; break; case 2: prelevelContainer_mc.showSpeedLevel_txt.text = "2/5"; break; case 3: prelevelContainer_mc.showSpeedLevel_txt.text = "3/5"; break; case 4: prelevelContainer_mc.showSpeedLevel_txt.text = "4/5"; break; case 5: prelevelContainer_mc.showSpeedLevel_txt.text = "5/5"; prelevelContainer_mc.upgradeSpd_btn.x = -500; break; }; switch (armorLevel){ case 1: prelevelContainer_mc.showArmorLevel_txt.text = "1/5"; break; case 2: prelevelContainer_mc.showArmorLevel_txt.text = "2/5"; break; case 3: prelevelContainer_mc.showArmorLevel_txt.text = "3/5"; break; case 4: prelevelContainer_mc.showArmorLevel_txt.text = "4/5"; break; case 5: prelevelContainer_mc.showArmorLevel_txt.text = "5/5"; prelevelContainer_mc.upgradeArmor_btn.x = -500; break; }; prelevelContainer_mc.spec1Price_txt.text = String(special1Price); prelevelContainer_mc.spec2Price_txt.text = String(special2Price); prelevelContainer_mc.spec3Price_txt.text = String(special3Price); prelevelContainer_mc.spec4Price_txt.text = String(special4Price); prelevelContainer_mc.spec5Price_txt.text = String(special5Price); prelevelContainer_mc.spec6Price_txt.text = String(special6Price); prelevelContainer_mc.item1Price_txt.text = String(item1Price); prelevelContainer_mc.item2Price_txt.text = String(item2Price); prelevelContainer_mc.money_txt.text = String(("Money: " + moneyOverall)); prelevelContainer_mc.speedPrice_txt.text = String(upgradeSpeedPrice); prelevelContainer_mc.armorPrice_txt.text = String(upgradeArmorPrice); prelevelContainer_mc.levelToPlay_txt.text = String((("Next Level: " + level) + "/12")); } } }//package StitchedWar_viral_v1_fla
Section 38
//mc_adoboLogo_110 (StitchedWar_viral_v1_fla.mc_adoboLogo_110) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class mc_adoboLogo_110 extends MovieClip { public function mc_adoboLogo_110(){ 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://www.adobogames.com"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_new"); } } }//package StitchedWar_viral_v1_fla
Section 39
//mc_award_105 (StitchedWar_viral_v1_fla.mc_award_105) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.text.*; public dynamic class mc_award_105 extends MovieClip { public var awardDesc_txt:TextField; public var awardName_txt:TextField; public var awardIcon:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 40
//mc_awardIcon_106 (StitchedWar_viral_v1_fla.mc_awardIcon_106) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_awardIcon_106 extends MovieClip { public var ribbon2_mc:MovieClip; public var ribbon1_mc:MovieClip; public var head:MovieClip; public function mc_awardIcon_106(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 41
//mc_b1Flash_143 (StitchedWar_viral_v1_fla.mc_b1Flash_143) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_b1Flash_143 extends MovieClip { public function mc_b1Flash_143(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 42
//mc_b2Flash_147 (StitchedWar_viral_v1_fla.mc_b2Flash_147) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_b2Flash_147 extends MovieClip { public function mc_b2Flash_147(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 43
//mc_b3Flash_149 (StitchedWar_viral_v1_fla.mc_b3Flash_149) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_b3Flash_149 extends MovieClip { public function mc_b3Flash_149(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 44
//mc_b4Flash_151 (StitchedWar_viral_v1_fla.mc_b4Flash_151) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_b4Flash_151 extends MovieClip { public function mc_b4Flash_151(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 45
//mc_bossLifebar_85 (StitchedWar_viral_v1_fla.mc_bossLifebar_85) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_bossLifebar_85 extends MovieClip { public var bar_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 46
//mc_e10Flash_139 (StitchedWar_viral_v1_fla.mc_e10Flash_139) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e10Flash_139 extends MovieClip { public function mc_e10Flash_139(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 47
//mc_e11Flash_141 (StitchedWar_viral_v1_fla.mc_e11Flash_141) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e11Flash_141 extends MovieClip { public function mc_e11Flash_141(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 48
//mc_e15Flash_180 (StitchedWar_viral_v1_fla.mc_e15Flash_180) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e15Flash_180 extends MovieClip { public function mc_e15Flash_180(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 49
//mc_e1FLasher_121 (StitchedWar_viral_v1_fla.mc_e1FLasher_121) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e1FLasher_121 extends MovieClip { public function mc_e1FLasher_121(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 50
//mc_e2Flash_123 (StitchedWar_viral_v1_fla.mc_e2Flash_123) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e2Flash_123 extends MovieClip { public function mc_e2Flash_123(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 51
//mc_e3Flash_125 (StitchedWar_viral_v1_fla.mc_e3Flash_125) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e3Flash_125 extends MovieClip { public function mc_e3Flash_125(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 52
//mc_e4Flash_127 (StitchedWar_viral_v1_fla.mc_e4Flash_127) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e4Flash_127 extends MovieClip { public function mc_e4Flash_127(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 53
//mc_e5Flash_129 (StitchedWar_viral_v1_fla.mc_e5Flash_129) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e5Flash_129 extends MovieClip { public function mc_e5Flash_129(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 54
//mc_e6Flash_131 (StitchedWar_viral_v1_fla.mc_e6Flash_131) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e6Flash_131 extends MovieClip { public function mc_e6Flash_131(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 55
//mc_e7Flash_133 (StitchedWar_viral_v1_fla.mc_e7Flash_133) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e7Flash_133 extends MovieClip { public function mc_e7Flash_133(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 56
//mc_e8FLash_135 (StitchedWar_viral_v1_fla.mc_e8FLash_135) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e8FLash_135 extends MovieClip { public function mc_e8FLash_135(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 57
//mc_e9Flash_137 (StitchedWar_viral_v1_fla.mc_e9Flash_137) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_e9Flash_137 extends MovieClip { public function mc_e9Flash_137(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 58
//mc_emFlash_112 (StitchedWar_viral_v1_fla.mc_emFlash_112) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_emFlash_112 extends MovieClip { public function mc_emFlash_112(){ addFrameScript(0, frame1, 4, frame5); } function frame1(){ stop(); } function frame5(){ stop(); gotoAndStop(1); } } }//package StitchedWar_viral_v1_fla
Section 59
//mc_iCrosshair_76 (StitchedWar_viral_v1_fla.mc_iCrosshair_76) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_iCrosshair_76 extends MovieClip { public var hitBox_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 60
//mc_levelContainer_70 (StitchedWar_viral_v1_fla.mc_levelContainer_70) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_levelContainer_70 extends MovieClip { public var iCrosshair_mc:MovieClip; public var player_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 61
//mc_newGamePrompt_31 (StitchedWar_viral_v1_fla.mc_newGamePrompt_31) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_newGamePrompt_31 extends MovieClip { public var yes_btn:MovieClip; public var no_btn:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 62
//mc_newWepPrompt_58 (StitchedWar_viral_v1_fla.mc_newWepPrompt_58) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.text.*; public dynamic class mc_newWepPrompt_58 extends MovieClip { public var wepDes_txt:TextField; public var wepName_txt:TextField; public var ok_btn:MovieClip; public var showWep_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 63
//mc_newWepSHow_60 (StitchedWar_viral_v1_fla.mc_newWepSHow_60) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_newWepSHow_60 extends MovieClip { public var wep3_btn:MovieClip; public var wep5_btn:MovieClip; public var wep7_btn:MovieClip; public var wep2_btn:MovieClip; public var wep4_btn:MovieClip; public var wep6_btn:MovieClip; public var wep8_btn:MovieClip; public function mc_newWepSHow_60(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 64
//mc_parachute_117 (StitchedWar_viral_v1_fla.mc_parachute_117) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_parachute_117 extends MovieClip { public function mc_parachute_117(){ addFrameScript(0, frame1, 1, frame2, 8, frame9); } function frame1(){ stop(); } function frame9(){ stop(); } function frame2(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 65
//mc_player_72 (StitchedWar_viral_v1_fla.mc_player_72) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.errors.*; import flash.ui.*; import flash.system.*; import flash.filters.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class mc_player_72 extends MovieClip { public var a_x:Number; public var a_y:Number; public var shield_mc:MovieClip; public var turret_mc:MovieClip; public var body_mc:MovieClip; public var crosshair_mc:MovieClip; public var _angle:Number; public var hitBox_mc:MovieClip; public function mc_player_72(){ addFrameScript(0, frame1); } public function looper(){ rotatePart(crosshair_mc, turret_mc); } function frame1(){ crosshair_mc = MovieClip(parent).iCrosshair_mc; } public function rotatePart(_arg1:MovieClip, _arg2:MovieClip){ a_x = (_arg1.x - (this.x + _arg2.x)); a_y = (_arg1.y - (this.y + _arg2.y)); _angle = ((180 * Math.atan2(a_y, a_x)) / Math.PI); _arg2.rotation = _angle; if (_arg1.x < this.x){ turret_mc.scaleY = -1; body_mc.scaleX = -1; } else { turret_mc.scaleY = 1; body_mc.scaleX = 1; }; } } }//package StitchedWar_viral_v1_fla
Section 66
//mc_playerAmmoBar_79 (StitchedWar_viral_v1_fla.mc_playerAmmoBar_79) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_playerAmmoBar_79 extends MovieClip { public var barMasker_mc:MovieClip; public function mc_playerAmmoBar_79(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 67
//mc_playerAmmoUIHolder_78 (StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.text.*; public dynamic class mc_playerAmmoUIHolder_78 extends MovieClip { public var bar_mc:MovieClip; public var ammoName_txt:TextField; } }//package StitchedWar_viral_v1_fla
Section 68
//mc_playerLifebar_83 (StitchedWar_viral_v1_fla.mc_playerLifebar_83) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_playerLifebar_83 extends MovieClip { public var bar_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 69
//mc_playersBody_73 (StitchedWar_viral_v1_fla.mc_playersBody_73) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_playersBody_73 extends MovieClip { public function mc_playersBody_73(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 70
//mc_playersTurret_74 (StitchedWar_viral_v1_fla.mc_playersTurret_74) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_playersTurret_74 extends MovieClip { public function mc_playersTurret_74(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 71
//mc_prelevelContainer_37 (StitchedWar_viral_v1_fla.mc_prelevelContainer_37) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.text.*; public dynamic class mc_prelevelContainer_37 extends MovieClip { public var upgradeSpd_btn:MovieClip; public var armorPrice_txt:TextField; public var buySpec2_btn:MovieClip; public var buySpec6_btn:MovieClip; public var spec5_mc:MovieClip; public var item1_btn:MovieClip; public var wep3_btn:MovieClip; public var wep7_btn:MovieClip; public var buyItem1_btn:MovieClip; public var wepName_txt:TextField; public var spec2Price_txt:TextField; public var money_txt:TextField; public var buySpec5_btn:MovieClip; public var buySpec1_btn:MovieClip; public var spec1_mc:MovieClip; public var spec4Price_txt:TextField; public var item1Price_txt:TextField; public var upgradeArmor_btn:MovieClip; public var wep2_btn:MovieClip; public var wep6_btn:MovieClip; public var spec6_mc:MovieClip; public var spec6Price_txt:TextField; public var spec2_mc:MovieClip; public var showSpeedLevel_txt:TextField; public var buySpec4_btn:MovieClip; public var showArmorLevel_txt:TextField; public var back_btn:MovieClip; public var levelToPlay_txt:TextField; public var wep1_btn:MovieClip; public var wep5_btn:MovieClip; public var wepDesc_txt:TextField; public var spec1Price_txt:TextField; public var spec3_mc:MovieClip; public var startMission_btn:MovieClip; public var spec3Price_txt:TextField; public var buySpec3_btn:MovieClip; public var item2_btn:MovieClip; public var wep4_btn:MovieClip; public var wep8_btn:MovieClip; public var showSelectedSpecial_mc:MovieClip; public var buyItem2_btn:MovieClip; public var item2Price_txt:TextField; public var spec4_mc:MovieClip; public var spec5Price_txt:TextField; public var speedPrice_txt:TextField; } }//package StitchedWar_viral_v1_fla
Section 72
//mc_preloaderBar_1 (StitchedWar_viral_v1_fla.mc_preloaderBar_1) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_preloaderBar_1 extends MovieClip { public var innerBar_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 73
//mc_redFlash_88 (StitchedWar_viral_v1_fla.mc_redFlash_88) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_redFlash_88 extends MovieClip { public function mc_redFlash_88(){ addFrameScript(0, frame1, 5, frame6); } function frame6(){ stop(); gotoAndStop(1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 74
//mc_shield_75 (StitchedWar_viral_v1_fla.mc_shield_75) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_shield_75 extends MovieClip { public function mc_shield_75(){ addFrameScript(0, frame1, 1, frame2, 17, frame18); } function frame18(){ gotoAndPlay(3); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 75
//mc_shieldBar_84 (StitchedWar_viral_v1_fla.mc_shieldBar_84) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_shieldBar_84 extends MovieClip { public var barMasker_mc:MovieClip; } }//package StitchedWar_viral_v1_fla
Section 76
//mc_shockwaveFlash_86 (StitchedWar_viral_v1_fla.mc_shockwaveFlash_86) package StitchedWar_viral_v1_fla { import flash.display.*; public dynamic class mc_shockwaveFlash_86 extends MovieClip { public function mc_shockwaveFlash_86(){ addFrameScript(0, frame1, 13, frame14); } function frame14(){ gotoAndStop(1); } function frame1(){ stop(); } } }//package StitchedWar_viral_v1_fla
Section 77
//mc_showKills_91 (StitchedWar_viral_v1_fla.mc_showKills_91) package StitchedWar_viral_v1_fla { import flash.display.*; import caurina.transitions.*; import flash.text.*; public dynamic class mc_showKills_91 extends MovieClip { public var showKills_txt:TextField; public function mc_showKills_91(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); Tweener.addTween(this, {x:772, time:0.8, transition:"easeinBack"}); } } }//package StitchedWar_viral_v1_fla
Section 78
//mc_specialBar_81 (StitchedWar_viral_v1_fla.mc_specialBar_81) package StitchedWar_viral_v1_fla { import flash.display.*; import flash.text.*; public dynamic class mc_specialBar_81 extends MovieClip { public var barMasker_mc:MovieClip; public var specialName_txt:TextField; } }//package StitchedWar_viral_v1_fla
Section 79
//Boss1 (Boss1) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; 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; public var flash_mc:MovieClip; 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; super(); life = 2000; lifeDenom = life; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 25; maxXpos = 475; xDir = "left"; rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); movTimer.addEventListener(TimerEvent.TIMER, mov); movTimer.start(); } public function mov(_arg1:TimerEvent){ Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 150), time:2, transition:"linear"}); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){ } else { _local2 = 100; MovieClip(parent.parent).attBossAmmo1((this.x - _local2), this.y, 90, 90); MovieClip(parent.parent).attBossAmmo1((this.x + _local2), this.y, 90, 90); }; } public function shoot_a(){ var _local1:Number; var _local2:Number; _local1 = 160; _local2 = 0; while (_local2 < 6) { _local1 = (_local1 - 20); MovieClip(parent.parent).attBossAmmo3(this.x, this.y, _local1, _local1); _local2++; }; } 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){ MovieClip(parent.parent).kills_levels++; MovieClip(parent.parent).countLevelKills(); MovieClip(parent.parent).attBossExplosion(this); 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); }; if (this.y >= 550){ destruct("outBounds"); }; }; } 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 80
//Boss2 (Boss2) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Boss2 extends MovieClip { private var xDir:String; public var life:Number; private var shootCounter2:Number;// = 10 public var lifeDenom:Number; private var xSpd:Number; public var flash_mc:MovieClip; 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(1000, 0); shootCounter1 = 10; shootCounter2 = 10; super(); life = 3000; lifeDenom = life; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 25; maxXpos = 475; xDir = "left"; rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); movTimer.addEventListener(TimerEvent.TIMER, mov); movTimer.start(); } public function mov(_arg1:TimerEvent){ Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 150), time:2, transition:"linear"}); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){ } else { _local2 = 100; MovieClip(parent.parent).attBossAmmo2((this.x - _local2), this.y, 90, 90); MovieClip(parent.parent).attBossAmmo2((this.x + _local2), this.y, 90, 90); }; } public function shoot_a(){ var _local1:Number; var _local2:Number; _local1 = 160; _local2 = 0; while (_local2 < 6) { _local1 = (_local1 - 20); MovieClip(parent.parent).attBossAmmo3((this.x - 150), this.y, _local1, _local1); MovieClip(parent.parent).attBossAmmo3((this.x + 150), this.y, _local1, _local1); _local2++; }; } 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){ MovieClip(parent.parent).kills_levels++; MovieClip(parent.parent).countLevelKills(); MovieClip(parent.parent).attBossExplosion(this); destruct("hit"); } else { 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); }; shootCounter1--; if (shootCounter1 <= 0){ shootCounter1 = 50; }; shootCounter2--; if (shootCounter2 <= 0){ shoot_a(); shootCounter2 = 35; }; if (this.y >= 550){ destruct("outBounds"); }; }; } 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 81
//Boss3 (Boss3) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Boss3 extends MovieClip { private var xDir:String; public var life:Number; private var shootCounter2:Number;// = 20 public var lifeDenom:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootCounter1:Number;// = 10 private var shootTimer:Timer; private var minXpos:Number; private var deployMinionsCounter:Number;// = 30 private var rateOfShoot:Number; private var movTimer:Timer; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Boss3(){ movTimer = new Timer(1000, 0); shootCounter1 = 10; shootCounter2 = 20; deployMinionsCounter = 30; super(); life = 3500; lifeDenom = life; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 25; maxXpos = 475; xDir = "left"; rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); movTimer.addEventListener(TimerEvent.TIMER, mov); movTimer.start(); } public function mov(_arg1:TimerEvent){ Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 150), time:2, transition:"linear"}); } private function shoot(_arg1:TimerEvent){ if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){ } else { MovieClip(parent.parent).attBossAmmo2(this.x, (this.y + 100), 90, 90); }; } public function randomGenerator(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ var _local1:Number; if (life <= 0){ MovieClip(parent.parent).kills_levels++; MovieClip(parent.parent).countLevelKills(); MovieClip(parent.parent).attBossExplosion(this); destruct("hit"); } else { 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); }; _local1 = 175; shootCounter1--; if (shootCounter1 <= 0){ MovieClip(parent.parent).attBossAmmo1((this.x - _local1), this.y, 90, 90); shootCounter1 = 20; }; shootCounter2--; if (shootCounter2 <= 0){ MovieClip(parent.parent).attBossAmmo1((this.x + _local1), this.y, 90, 90); shootCounter2 = 20; }; deployMinionsCounter--; if (deployMinionsCounter <= 0){ MovieClip(parent.parent).attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), 90, MovieClip(parent.parent).levelContainer_mc.player_mc, 2); deployMinionsCounter = 90; }; if (this.y >= 550){ destruct("outBounds"); }; }; } 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 82
//Boss4 (Boss4) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Boss4 extends MovieClip { private var xDir:String; private var shootCounter3:Number;// = 100 public var life:Number; private var shootCounter2:Number;// = 80 public var lifeDenom:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootCounter1:Number;// = 40 private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var movTimer:Timer; private var maxXpos:Number; private var spd:Number; private var deployMinionsCounter2:Number;// = 300 private var deployMinionsCounter1:Number;// = 30 public var hitBox_mc:MovieClip; public function Boss4(){ movTimer = new Timer(1000, 0); shootCounter1 = 40; shootCounter2 = 80; shootCounter3 = 100; deployMinionsCounter1 = 30; deployMinionsCounter2 = 300; super(); life = 4000; lifeDenom = life; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 25; maxXpos = 475; xDir = "left"; rateOfShoot = (Math.floor((Math.random() * (1000 - 800))) + 800); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); movTimer.addEventListener(TimerEvent.TIMER, mov); movTimer.start(); } public function mov(_arg1:TimerEvent){ Tweener.addTween(this, {x:randomGenerator(50, 650), y:randomGenerator(50, 150), time:2, transition:"linear"}); } private function shoot(_arg1:TimerEvent){ if ((((MovieClip(parent.parent).lives <= 0)) && ((MovieClip(parent.parent).lifeNumerator <= 0)))){ } else { MovieClip(parent.parent).attBossAmmo1((this.x - 20), (this.y + 100), 90, 90); MovieClip(parent.parent).attBossAmmo1((this.x + 20), (this.y + 100), 90, 90); }; } 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){ MovieClip(parent.parent).kills_levels++; MovieClip(parent.parent).countLevelKills(); MovieClip(parent.parent).attBossExplosion(this); destruct("hit"); } else { 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); }; shootCounter1--; if (shootCounter1 <= 0){ MovieClip(parent.parent).attBossAmmo2((this.x + 100), (this.y + 100), 90, 90); shootCounter1 = 40; }; shootCounter2--; if (shootCounter2 <= 0){ MovieClip(parent.parent).attBossAmmo2((this.x - 100), (this.y + 100), 90, 90); shootCounter2 = 40; }; deployMinionsCounter1--; if (deployMinionsCounter1 <= 0){ MovieClip(parent.parent).attEnemy7(randomGenerator(-100, 700), randomGenerator(-200, -100), 90, MovieClip(parent.parent).levelContainer_mc.player_mc, 2); deployMinionsCounter1 = 90; }; deployMinionsCounter2--; if (deployMinionsCounter2 <= 0){ MovieClip(parent.parent).attEnemy6(1); deployMinionsCounter2 = 300; }; if (this.y >= 550){ destruct("outBounds"); }; }; } 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 83
//BtnSnd (BtnSnd) package { import flash.media.*; public dynamic class BtnSnd extends Sound { } }//package
Section 84
//Bullet1Snd (Bullet1Snd) package { import flash.media.*; public dynamic class Bullet1Snd extends Sound { } }//package
Section 85
//Bullet2Snd (Bullet2Snd) package { import flash.media.*; public dynamic class Bullet2Snd extends Sound { } }//package
Section 86
//Bullet3Snd (Bullet3Snd) package { import flash.media.*; public dynamic class Bullet3Snd extends Sound { } }//package
Section 87
//Bullet4Snd (Bullet4Snd) package { import flash.media.*; public dynamic class Bullet4Snd extends Sound { } }//package
Section 88
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 89
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 90
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 91
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 92
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 93
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 94
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 95
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 96
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 97
//CashSnd (CashSnd) package { import flash.media.*; public dynamic class CashSnd extends Sound { } }//package
Section 98
//Earthquake (Earthquake) package { import flash.display.*; import flash.events.*; 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 99
//Enemy1 (Enemy1) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy1 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy1(){ life = 20; spd = (Math.floor((Math.random() * (6 - 1))) + 1); xSpd = (Math.floor((Math.random() * (6 - 1))) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ MovieClip(parent.parent).attEnemyAmmo1(this, _local2, 180); } else { if (xDir == "right"){ MovieClip(parent.parent).attEnemyAmmo1(this, _local2, 0); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(5); MovieClip(parent.parent).attAmountAcquired(this, 5); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 100
//Enemy10 (Enemy10) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy10 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy10(){ life = 60; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ if (this.x < (MovieClip(parent.parent).levelContainer_mc.player_mc.x + 150)){ dropBombs(180); }; } else { if (xDir == "right"){ if (this.x > (MovieClip(parent.parent).levelContainer_mc.player_mc.x - 150)){ dropBombs(0); }; }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(8); MovieClip(parent.parent).attAmountAcquired(this, 8); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function dropBombs(_arg1:Number){ var _local2:Number; _local2 = 0; while (_local2 < 5) { MovieClip(parent.parent).attEnemyAmmo1(this, randomGenerator(200, 300), _arg1); _local2++; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 101
//Enemy11 (Enemy11) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy11 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy11(){ life = 60; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ MovieClip(parent.parent).attEnemyAmmo5(this, randomGenerator(200, 300), MovieClip(parent.parent).levelContainer_mc.player_mc); } else { if (xDir == "right"){ MovieClip(parent.parent).attEnemyAmmo5(this, randomGenerator(200, 300), MovieClip(parent.parent).levelContainer_mc.player_mc); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(8); MovieClip(parent.parent).attAmountAcquired(this, 8); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 102
//Enemy2 (Enemy2) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy2 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy2(){ life = 20; spd = (Math.floor((Math.random() * (6 - 1))) + 1); xSpd = (Math.floor((Math.random() * (6 - 1))) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (800 - 400))) + 400); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ MovieClip(parent.parent).attEnemyAmmo1(this, _local2, 180); } else { if (xDir == "right"){ MovieClip(parent.parent).attEnemyAmmo1(this, _local2, 0); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(5); MovieClip(parent.parent).attAmountAcquired(this, 5); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 103
//Enemy3 (Enemy3) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy3 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy3(){ life = 20; spd = (Math.floor((Math.random() * (6 - 1))) + 1); xSpd = ((Math.random() * (6 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (300 - 100))) + 100); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ MovieClip(parent.parent).attEnemyAmmo3(this, 135, 135); } else { if (xDir == "right"){ MovieClip(parent.parent).attEnemyAmmo3(this, 45, 45); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(6); MovieClip(parent.parent).attAmountAcquired(this, 6); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 104
//Enemy4 (Enemy4) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Enemy4 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; private var _animationSet:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var shootDir:String; public var hitBox_mc:MovieClip; public function Enemy4(){ life = 40; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (800 - 600))) + 600); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (shootDir == "left"){ trace("shoot left"); MovieClip(parent.parent).attEnemyAmmo3(this, 180, 180); } else { if (shootDir == "right"){ trace("shoot right"); MovieClip(parent.parent).attEnemyAmmo3(this, 0, 0); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(6); MovieClip(parent.parent).attAmountAcquired(this, 6); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ trace(xDir); this.scaleX = -1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:450, time:2, transition:"linear"}); Tweener.addTween(this, {x:500, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:500, time:2, transition:"linear"}); Tweener.addTween(this, {x:520, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:480, time:2, transition:"linear"}); Tweener.addTween(this, {x:500, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:500, time:2, transition:"linear"}); Tweener.addTween(this, {x:550, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; shootDir = xDir; xDir = ""; } else { if (xDir == "right"){ trace(xDir); this.scaleX = 1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:200, time:2, transition:"linear"}); Tweener.addTween(this, {x:100, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:250, time:2, transition:"linear"}); Tweener.addTween(this, {x:180, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:270, time:2, transition:"linear"}); Tweener.addTween(this, {x:120, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:180, time:2, transition:"linear"}); Tweener.addTween(this, {x:80, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; shootDir = xDir; xDir = ""; }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; Tweener.removeTweens(this); shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 105
//Enemy5 (Enemy5) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy5 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy5(){ life = 40; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = (Math.floor((Math.random() * (6 - 1))) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ if (this.x < (MovieClip(parent.parent).levelContainer_mc.player_mc.x + 150)){ MovieClip(parent.parent).attEnemyAmmo4(this, _local2, 90); }; } else { if (xDir == "right"){ if (this.x > (MovieClip(parent.parent).levelContainer_mc.player_mc.x - 150)){ MovieClip(parent.parent).attEnemyAmmo4(this, _local2, 90); }; }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(7); MovieClip(parent.parent).attAmountAcquired(this, 7); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 106
//Enemy6 (Enemy6) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Enemy6 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; private var _animationSet:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var shootDir:String; public var hitBox_mc:MovieClip; public function Enemy6(){ life = 40; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (2000 - 1000))) + 1000); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 180; if (shootDir == "left"){ MovieClip(parent.parent).attEnemyAmmo6(this, 180, 180); } else { if (shootDir == "right"){ MovieClip(parent.parent).attEnemyAmmo6(this, 0, 0); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(7); MovieClip(parent.parent).attAmountAcquired(this, 7); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ trace(xDir); this.scaleX = -1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:450, time:2, transition:"linear"}); Tweener.addTween(this, {x:500, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:500, time:2, transition:"linear"}); Tweener.addTween(this, {x:520, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:480, time:2, transition:"linear"}); Tweener.addTween(this, {x:500, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:500, time:2, transition:"linear"}); Tweener.addTween(this, {x:550, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:700, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; shootDir = xDir; xDir = ""; } else { if (xDir == "right"){ trace(xDir); this.scaleX = 1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:200, time:2, transition:"linear"}); Tweener.addTween(this, {x:100, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:250, time:2, transition:"linear"}); Tweener.addTween(this, {x:180, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:270, time:2, transition:"linear"}); Tweener.addTween(this, {x:120, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:180, time:2, transition:"linear"}); Tweener.addTween(this, {x:80, time:2, delay:2, transition:"linear"}); Tweener.addTween(this, {x:-100, time:2, delay:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; shootDir = xDir; xDir = ""; }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; Tweener.removeTweens(this); shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 107
//Enemy7 (Enemy7) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.filters.*; public class Enemy7 extends MovieClip { public var life:Number; public var xSpd:Number; public var flash_mc:MovieClip; 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 Enemy7(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){ dir = new Point(0, 0); super(); life = 1; 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).updateMoneyLevel(7); MovieClip(parent.parent).attAmountAcquired(this, 7); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct(""); } else { _local1 = new Point((target.x - this.x), (target.y - this.y)); _local1.normalize(1); dir = dir.add(_local1); dir.normalize(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 108
//Enemy8 (Enemy8) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Enemy8 extends MovieClip { public var xDir:String; public var life:Number; private var a_x:Number; private var a_y:Number; private var xSpd:Number; private var shootAngle:Number;// = 0 public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; private var _angle:Number; public var hitBox_mc:MovieClip; public function Enemy8(){ shootAngle = 0; super(); life = 40; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (600 - 500))) + 500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ var _local2:Number; if ((((this.x <= 0)) || ((this.x >= 700)))){ } else { _local2 = 90; if (xDir == "left"){ MovieClip(parent.parent).attEnemyAmmo2(this, shootAngle, shootAngle); } else { if (xDir == "right"){ MovieClip(parent.parent).attEnemyAmmo2(this, shootAngle, shootAngle); }; }; }; } 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){ MovieClip(parent.parent).updateMoneyLevel(7); MovieClip(parent.parent).attAmountAcquired(this, 7); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x - xSpd); this.scaleX = -1; } else { if (xDir == "right"){ xSpd = ((Math.random() * (2 - 1)) + 1); this.x = (this.x + xSpd); this.scaleX = 1; }; }; if ((((this.x >= 900)) || ((this.x <= -300)))){ destruct("outBounds"); }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } public function rotatePart(_arg1:MovieClip, _arg2:MovieClip){ a_x = (_arg1.x - (this.x + _arg2.x)); a_y = (_arg1.y - (this.y + _arg2.y)); _angle = ((180 * Math.atan2(a_y, a_x)) / Math.PI); shootAngle = _angle; } } }//package
Section 109
//Enemy9 (Enemy9) package { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; import flash.ui.*; public class Enemy9 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; private var _animationSet:Number; public var flash_mc:MovieClip; public var typeOfDestruction:String; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var hitBox_mc:MovieClip; public function Enemy9(){ life = 40; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; rateOfShoot = (Math.floor((Math.random() * (3000 - 1500))) + 1500); shootTimer = new Timer(rateOfShoot, 0); shootTimer.addEventListener(TimerEvent.TIMER, shoot); shootTimer.start(); } private function shoot(_arg1:TimerEvent){ } 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){ MovieClip(parent.parent).updateMoneyLevel(8); MovieClip(parent.parent).attAmountAcquired(this, 8); MovieClip(parent.parent).attExplosion(this); MovieClip(parent.parent).countLevelKills(); destruct("hit"); } else { if (xDir == "left"){ trace(xDir); this.scaleX = -1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:-100, time:2, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:-100, time:3, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:-100, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:-100, time:5, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; xDir = ""; } else { if (xDir == "right"){ trace(xDir); this.scaleX = 1; _animationSet = randomGenerator(1, 5); if (_animationSet == 1){ Tweener.addTween(this, {x:700, time:2, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 2){ Tweener.addTween(this, {x:700, time:3, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 3){ Tweener.addTween(this, {x:700, time:4, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); } else { if (_animationSet == 4){ Tweener.addTween(this, {x:700, time:5, onComplete:destruct, onCompleteParams:[""], transition:"linear"}); }; }; }; }; xDir = ""; }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; Tweener.removeTweens(this); shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shoot); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 110
//EnemyAmmo1 (EnemyAmmo1) package { import flash.display.*; import flash.events.*; public class EnemyAmmo1 extends MovieClip { public var life:Number; public var xSpd:Number; public var ySpd:Number; public var mc:MovieClip; public var spd:Number; public var grvty:Number; public var angle:Number; public var rot:Number; public var hitBox_mc:MovieClip; public function EnemyAmmo1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ life = 1; spd = 5; grvty = 1; this.x = _arg1; this.y = _arg2; this.rotation = _arg4; 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.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ if (life <= 0){ destruct(""); } else { if ((((((this.x < -100)) || ((this.x > 800)))) || ((this.y > 420)))){ MovieClip(parent.parent).attExplosion(this); destruct(""); } else { ySpd = (ySpd + grvty); this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo1Array, this); } } }//package
Section 111
//EnemyAmmo2 (EnemyAmmo2) package { import flash.display.*; import flash.events.*; public class EnemyAmmo2 extends MovieClip { public var life:Number; public var xSpd:Number; public var ySpd:Number; public var mc:MovieClip; public var spd:Number; public var grvty:Number; public var yLimit:Number; public var angle:Number; public var rot:Number; public var hitBox_mc:MovieClip; public function EnemyAmmo2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ life = 1; spd = 4; grvty = 1; this.x = _arg1; this.y = _arg2; this.rotation = _arg4; angle = ((_arg3 / 180) * Math.PI); xSpd = (Math.cos(angle) * spd); ySpd = (Math.sin(angle) * spd); yLimit = randomGenerator(200, 210); } public function randomGenerator(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ var _local1:Number; if (life <= 0){ destruct(""); } else { if ((((((this.x < -50)) || ((this.x > 680)))) || ((this.y > 420)))){ destruct(""); } else { if (this.y > yLimit){ _local1 = 0; while (_local1 < 5) { MovieClip(parent.parent).attEnemyAmmo1(this, randomGenerator(200, 300), this.rotation); _local1++; }; MovieClip(parent.parent).attExplosion(this); destruct(""); } else { ySpd = (ySpd + grvty); this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; }; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo2Array, this); } } }//package
Section 112
//EnemyAmmo3 (EnemyAmmo3) package { import flash.display.*; import flash.events.*; public class EnemyAmmo3 extends MovieClip { public var life:Number; public var xSpd:Number; public var ySpd:Number; public var mc:MovieClip; public var spd:Number; 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:Number){ life = 1; spd = 20; grvty = 1; this.x = _arg1; this.y = _arg2; this.rotation = _arg4; 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.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ if (life <= 0){ destruct(""); } else { if ((((((this.x < -100)) || ((this.x > 800)))) || ((this.y > 480)))){ destruct(""); } else { this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo3Array, this); } } }//package
Section 113
//EnemyAmmo4 (EnemyAmmo4) package { import flash.display.*; import flash.events.*; public class EnemyAmmo4 extends MovieClip { public var life:Number; public var xSpd:Number; public var ySpd:Number; public var mc:MovieClip; public var spd:Number; public var grvty:Number; public var angle:Number; public var rot:Number; public var hitBox_mc:MovieClip; public function EnemyAmmo4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ life = 1; spd = 5; grvty = 1; this.x = _arg1; this.y = _arg2; this.rotation = _arg4; 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.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ if (life <= 0){ destruct(""); } else { if ((((((this.x < -100)) || ((this.x > 800)))) || ((this.y > 420)))){ MovieClip(parent.parent).attExplosion(this); destruct(""); } else { ySpd = (ySpd + grvty); this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo4Array, this); } } }//package
Section 114
//EnemyAmmo5 (EnemyAmmo5) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.filters.*; public class EnemyAmmo5 extends MovieClip { public var life:Number; public var xSpd:Number; public var flash_mc:MovieClip; 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 EnemyAmmo5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){ dir = new Point(0, 0); super(); life = 1; 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 < -100)) || ((this.x > 800)))) || ((this.y > 420)))){ MovieClip(parent.parent).attExplosion(this); 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(5); dir = dir.add(_local1); dir.normalize(12); 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 115
//EnemyAmmo6 (EnemyAmmo6) package { import flash.display.*; import flash.events.*; public class EnemyAmmo6 extends MovieClip { public var life:Number; public var xSpd:Number; public var ySpd:Number; public var mc:MovieClip; public var spd:Number; public var grvty:Number; public var angle:Number; public var rot:Number; public var hitBox_mc:MovieClip; public function EnemyAmmo6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ life = 1; spd = 20; grvty = 1; this.x = _arg1; this.y = _arg2; this.rotation = _arg4; 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.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ if (life <= 0){ destruct(""); } else { if ((((((this.x < -100)) || ((this.x > 800)))) || ((this.y > 480)))){ destruct(""); } else { this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyAmmo6Array, this); } } }//package
Section 116
//EnemyMissile (EnemyMissile) package { import flash.display.*; import flash.events.*; import flash.ui.*; public class EnemyMissile extends MovieClip { public var life:Number; public var lifeDenom:Number; public var flash_mc:MovieClip; private var spd:Number; public var hitBox_mc:MovieClip; public function EnemyMissile(){ life = 50; lifeDenom = life; spd = 6; } 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){ MovieClip(parent.parent).attExplosion(this); destruct("hit"); } else { this.y = (this.y + spd); if (this.hitTestObject(MovieClip(parent.parent).levelContainer_mc.player_mc)){ MovieClip(parent.parent).lifeNum = (MovieClip(parent.parent).lifeNum - 10); MovieClip(parent.parent).attExplosion(this); destruct("outBounds"); } else { if (this.y >= 435){ MovieClip(parent.parent).attExplosion(this); destruct("outBounds"); }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).enemyArray, this); } } }//package
Section 117
//ExplodeSnd (ExplodeSnd) package { import flash.media.*; public dynamic class ExplodeSnd extends Sound { } }//package
Section 118
//ExplodeSnd1 (ExplodeSnd1) package { import flash.media.*; public dynamic class ExplodeSnd1 extends Sound { } }//package
Section 119
//ExplodeSnd2 (ExplodeSnd2) package { import flash.media.*; public dynamic class ExplodeSnd2 extends Sound { } }//package
Section 120
//Explosion (Explosion) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.errors.*; import flash.ui.*; import flash.system.*; import flash.filters.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class Explosion extends MovieClip { public function Explosion(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16); } function frame10(){ looper(); } function frame14(){ looper(); } function frame12(){ looper(); } function frame3(){ looper(); } public function looper(){ this.x = (this.x - 2); } function frame7(){ looper(); } function frame1(){ } function frame6(){ looper(); } function frame13(){ looper(); } function frame4(){ looper(); } function frame5(){ looper(); } function frame9(){ looper(); } function frame16(){ stop(); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).explosionArray, this); } function frame8(){ looper(); } function frame2(){ looper(); } function frame15(){ looper(); } public function destruct(_arg1:String){ } function frame11(){ looper(); } } }//package
Section 121
//FireSnd (FireSnd) package { import flash.media.*; public dynamic class FireSnd extends Sound { } }//package
Section 122
//FireSnd1 (FireSnd1) package { import flash.media.*; public dynamic class FireSnd1 extends Sound { } }//package
Section 123
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 124
//GameBG1Snd (GameBG1Snd) package { import flash.media.*; public dynamic class GameBG1Snd extends Sound { } }//package
Section 125
//GameBG2Snd (GameBG2Snd) package { import flash.media.*; public dynamic class GameBG2Snd extends Sound { } }//package
Section 126
//GameBG3Snd (GameBG3Snd) package { import flash.media.*; public dynamic class GameBG3Snd extends Sound { } }//package
Section 127
//GameBG4Snd (GameBG4Snd) package { import flash.media.*; public dynamic class GameBG4Snd extends Sound { } }//package
Section 128
//GameBG5Snd (GameBG5Snd) package { import flash.media.*; public dynamic class GameBG5Snd extends Sound { } }//package
Section 129
//Health1 (Health1) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Health1 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var typeOfDestruction:String; public var parachute_mc:MovieClip; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var landed:String;// = "false" public var hitBox_mc:MovieClip; public function Health1(){ landed = "false"; super(); life = 20; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; } 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 (this.hitBox_mc.hitTestObject(MovieClip(parent.parent).levelContainer_mc.player_mc.hitBox_mc)){ MovieClip(parent.parent).playPowerupSnd(); MovieClip(parent.parent).lifeNum = (MovieClip(parent.parent).lifeNum + (MovieClip(parent.parent).lifeDenom * 0.25)); MovieClip(parent.parent).attPrompt25(MovieClip(parent.parent).levelContainer_mc.player_mc); destruct("hit"); } else { if (this.x <= -10){ destruct("hit"); } else { if (this.y > 413){ this.x = (this.x - 1); if (landed == "false"){ this.parachute_mc.gotoAndPlay(3); landed = "true"; }; } else { this.y = (this.y + 3); }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).powerUpArray, this); } } }//package
Section 130
//Health2 (Health2) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.ui.*; public class Health2 extends MovieClip { public var xDir:String; public var life:Number; private var xSpd:Number; public var typeOfDestruction:String; public var parachute_mc:MovieClip; private var shootTimer:Timer; private var minXpos:Number; private var rateOfShoot:Number; private var maxXpos:Number; private var spd:Number; public var landed:String;// = "false" public var hitBox_mc:MovieClip; public function Health2(){ landed = "false"; super(); life = 20; spd = (Math.floor((Math.random() * (3 - 1))) + 1); xSpd = ((Math.random() * (2 - 1)) + 1); minXpos = 0; maxXpos = 600; } 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 (this.hitBox_mc.hitTestObject(MovieClip(parent.parent).levelContainer_mc.player_mc.hitBox_mc)){ MovieClip(parent.parent).playPowerupSnd(); MovieClip(parent.parent).lifeNum = MovieClip(parent.parent).lifeDenom; MovieClip(parent.parent).attPromptFull(MovieClip(parent.parent).levelContainer_mc.player_mc); destruct("hit"); } else { if (this.x <= -10){ MovieClip(parent.parent).attExplosion(this); destruct("hit"); } else { if (this.y > 413){ this.x = (this.x - 1); if (landed == "false"){ this.parachute_mc.gotoAndPlay(3); landed = "true"; }; } else { this.y = (this.y + 3); }; }; }; } public function destruct(_arg1:String){ if (_arg1 == "hit"){ } else { if (_arg1 == "outBounds"){ }; }; MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).powerUpArray, this); } } }//package
Section 131
//IncomingSnd (IncomingSnd) package { import flash.media.*; public dynamic class IncomingSnd extends Sound { } }//package
Section 132
//IncomingSnd2 (IncomingSnd2) package { import flash.media.*; public dynamic class IncomingSnd2 extends Sound { } }//package
Section 133
//LaserSnd (LaserSnd) package { import flash.media.*; public dynamic class LaserSnd extends Sound { } }//package
Section 134
//MissileSnd (MissileSnd) package { import flash.media.*; public dynamic class MissileSnd extends Sound { } }//package
Section 135
//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 136
//PlayerAmmo1 (PlayerAmmo1) package { import flash.display.*; import flash.events.*; public class PlayerAmmo1 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 PlayerAmmo1(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 710)))){ 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).playerAmmo1Array, this); } } }//package
Section 137
//PlayerAmmo2 (PlayerAmmo2) package { import flash.display.*; import flash.events.*; public class PlayerAmmo2 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 PlayerAmmo2(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo2Array, this); } } }//package
Section 138
//PlayerAmmo3 (PlayerAmmo3) package { import flash.display.*; import flash.events.*; public class PlayerAmmo3 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 PlayerAmmo3(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo3Array, this); } } }//package
Section 139
//PlayerAmmo4 (PlayerAmmo4) package { import flash.display.*; import flash.events.*; public class PlayerAmmo4 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 PlayerAmmo4(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo4Array, this); } } }//package
Section 140
//PlayerAmmo5 (PlayerAmmo5) package { import flash.display.*; import flash.events.*; public class PlayerAmmo5 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 PlayerAmmo5(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo5Array, this); } } }//package
Section 141
//PlayerAmmo6 (PlayerAmmo6) package { import flash.display.*; import flash.events.*; public class PlayerAmmo6 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 PlayerAmmo6(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo6Array, this); } } }//package
Section 142
//PlayerAmmo7 (PlayerAmmo7) package { import flash.display.*; import flash.events.*; public class PlayerAmmo7 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 PlayerAmmo7(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; 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 > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ 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).playerAmmo7Array, this); } } }//package
Section 143
//PlayerAmmo8 (PlayerAmmo8) package { import flash.display.*; import flash.events.*; public class PlayerAmmo8 extends MovieClip { public var xSpd:Number; public var speed:int; public var ySpd:Number; public var spd:Number; public var angle:Number; public var player:MovieClip; public var distanceBeforeExploding:Number; public var hitBox_mc:MovieClip; public function PlayerAmmo8(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; angle = ((this.rotation / 180) * Math.PI); xSpd = (Math.cos(angle) * spd); ySpd = (Math.sin(angle) * spd); } public function looper(){ if (getDistance(this.x, this.y, player) > distanceBeforeExploding){ MovieClip(parent.parent).attPlayerAmmo8a(this); destruct(""); } else { if ((((((((this.y < -10)) || ((this.y > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ destruct(""); } else { this.x = (this.x + xSpd); this.y = (this.y + ySpd); this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI); }; }; } public function getDistance(_arg1:Number, _arg2:Number, _arg3:MovieClip):Number{ var _local4:Number; var _local5:Number; var _local6:Number; _local4 = ((_arg1 - _arg3.x) * (_arg1 - _arg3.x)); _local5 = ((_arg2 - _arg3.y) * (_arg2 - _arg3.y)); _local6 = Math.sqrt((_local4 + _local5)); return (_local6); } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerAmmo8Array, this); } } }//package
Section 144
//PlayerAmmo8a (PlayerAmmo8a) package { import flash.display.*; import flash.events.*; public class PlayerAmmo8a extends MovieClip { public var xSpd:Number; public var currentCounterBeforeDisappearing:Number; public var speed:int; public var ySpd:Number; public var counterBeforeDisappearing:Number; public var spd:Number; public var grvty:Number; public var angle:Number; public var hitBox_mc:MovieClip; public function PlayerAmmo8a(_arg1:Number, _arg2:Number, _arg3:Number){ grvty = 3; counterBeforeDisappearing = randomGenerator(5, 10); currentCounterBeforeDisappearing = 0; this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; angle = ((this.rotation / 180) * Math.PI); xSpd = (Math.cos(angle) * spd); ySpd = (Math.sin(angle) * spd); } public function randomGenerator(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public function looper(){ currentCounterBeforeDisappearing++; if (currentCounterBeforeDisappearing > counterBeforeDisappearing){ destruct(""); } else { if ((((((((this.y < -10)) || ((this.y > 430)))) || ((this.x < -10)))) || ((this.x > 700)))){ destruct(""); } else { ySpd = (ySpd + grvty); 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).playerAmmo8aArray, this); } } }//package
Section 145
//PlayerShield (PlayerShield) package { import flash.display.*; import flash.events.*; public class PlayerShield extends MovieClip { public var counter:Number;// = 200 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 PlayerShield(_arg1:Number, _arg2:Number, _arg3:Number){ counter = 200; super(); this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 30; angle = ((this.rotation / 180) * Math.PI); xSpd = (Math.cos(angle) * spd); ySpd = (Math.sin(angle) * spd); } public function looper(){ MovieClip(parent.parent).shieldEnergy--; if (MovieClip(parent.parent).shieldEnergy <= 0){ MovieClip(parent.parent).levelContainer_mc.player_mc.shield_mc.gotoAndStop(1); MovieClip(parent.parent).shieldUI_mc.barMasker_mc.scaleX = 0; MovieClip(parent.parent).shieldEnergy = 0; MovieClip(parent.parent).shieldDepleted = "yes"; MovieClip(parent.parent).shieldInUse = "no"; destruct(""); } else { MovieClip(parent.parent).shieldUI_mc.barMasker_mc.scaleX = (MovieClip(parent.parent).shieldEnergy / MovieClip(parent.parent).shieldMaxEnergy); this.x = MovieClip(parent.parent).levelContainer_mc.player_mc.x; this.y = MovieClip(parent.parent).levelContainer_mc.player_mc.y; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).levelContainer_mc.player_mc.shield_mc.gotoAndStop(1); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerShieldArray, this); } } }//package
Section 146
//PlayerSpecial1 (PlayerSpecial1) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.filters.*; public class PlayerSpecial1 extends MovieClip { public var xSpd:Number; public var pointer:Number; public var speed:int; public var shootTimer:Timer; public var ySpd:Number; public var myBossArr:Array; public var myEnemyArr:Array; public var spd:Number; public var angle:Number; public var hitBox_mc:MovieClip; public function PlayerSpecial1(_arg1:Number, _arg2:Number, _arg3:Number){ myEnemyArr = new Array(); myBossArr = new Array(); shootTimer = new Timer(200, 0); super(); this.x = _arg1; this.y = _arg2; this.rotation = _arg3; shootTimer.addEventListener(TimerEvent.TIMER, shootEnemy); shootTimer.start(); init(); } public function init(){ spd = 12; 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 > 400)))) || ((this.x < -500)))) || ((this.x > 750)))){ destruct(""); } else { this.x = (this.x + xSpd); this.y = (this.y + ySpd); this.rotation = ((Math.atan2(ySpd, xSpd) * 180) / Math.PI); whichEnemyToEngage(); }; } public function followTarget(_arg1:MovieClip){ var _local2:Point; var _local3:Point; _local2 = new Point(0, 0); _local3 = new Point((_arg1.x - this.x), (_arg1.y - this.y)); _local3.normalize(0.1); _local2 = _local2.add(_local3); _local2.normalize(2); pointer = ((Math.atan2(_local2.y, _local2.x) * 180) / Math.PI); } 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 shootEnemy(_arg1:TimerEvent){ if ((((this.x > 0)) || ((this.x < 700)))){ MovieClip(parent.parent).playBullet1Snd(); MovieClip(parent.parent).attPlayerSpecial1a(this, pointer); }; } public function whichEnemyToEngage(){ var _local1:Number; var _local2:Object; var _local3:Number; var _local4:Object; if (MovieClip(parent.parent).enemyArray.length > 0){ _local1 = 0; while (_local1 < MovieClip(parent.parent).enemyArray.length) { _local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)}; myEnemyArr.push(_local2); _local1++; }; }; if (MovieClip(parent.parent).bossArray.length > 0){ _local3 = 0; while (_local3 < MovieClip(parent.parent).bossArray.length) { _local4 = {mc:MovieClip(parent.parent).bossArray[_local3], dis:calDist(MovieClip(parent.parent).bossArray[_local3].x, MovieClip(parent.parent).bossArray[_local3].y, this.x, this.y)}; myEnemyArr.push(_local4); _local3++; }; }; myEnemyArr.sortOn("dis", Array.NUMERIC); if (myEnemyArr.length > 0){ followTarget(myEnemyArr[0].mc); }; myEnemyArr.splice(0, myEnemyArr.length); } public function destruct(_arg1:String){ shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shootEnemy); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecial1Array, this); } } }//package
Section 147
//PlayerSpecial1a (PlayerSpecial1a) package { import flash.display.*; import flash.events.*; public class PlayerSpecial1a 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 PlayerSpecial1a(_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 > 400)))) || ((this.x < -500)))) || ((this.x > 750)))){ 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).playerSpecial1aArray, this); } } }//package
Section 148
//PlayerSpecial2 (PlayerSpecial2) package { import flash.display.*; import flash.events.*; public class PlayerSpecial2 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 PlayerSpecial2(_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 < -200)) || ((this.y > 400)))) || ((this.x < -500)))) || ((this.x > 750)))){ MovieClip(parent.parent).attExplosion(this); 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).playerSpecial2Array, this); } } }//package
Section 149
//PlayerSpecial3 (PlayerSpecial3) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.filters.*; public class PlayerSpecial3 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 myBossArr:Array; 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 myEnemyArr:Array; public var target:MovieClip; public var smokeCounter:Number;// = 10 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 PlayerSpecial3(_arg1:MovieClip){ dx = 0; dy = 0; speed = 0; dir = 0; drag = 0.9; traction = 3; thrustSpeed = 0; distanceTravelled = 0; fillThrustSpeed = randomGenerator(2, 5); 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 = 10; _dir = new Point(0, 0); myEnemyArr = new Array(); myBossArr = new Array(); smokeCounter = 10; 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; this.rotation = (_arg1.rotation + 270); } else { if (myBossArr.length == 0){ dir = _arg1.rotation; this.rotation = (_arg1.rotation + 270); }; }; } 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 (calDist(this.x, this.y, target.x, target.y) <= shootDist){ MovieClip(parent.parent).attEnemyAmmo1(this); }; } public function looper(){ if (life <= 0){ destruct(""); } else { if ((((((((this.x < -50)) || ((this.x > 1020)))) || ((this.y < -50)))) || ((this.y > 750)))){ destruct(""); } else { smokeCounter--; if (smokeCounter <= 0){ smokeCounter = 10; }; whichEnemyToEngage(); turn(); Move(); }; }; } public function whichEnemyToEngage(){ var _local1:Number; var _local2:Object; var _local3:Number; var _local4:Object; if (MovieClip(parent.parent).enemyArray.length > 0){ _local1 = 0; while (_local1 < MovieClip(parent.parent).enemyArray.length) { _local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)}; myEnemyArr.push(_local2); _local1++; }; }; if (MovieClip(parent.parent).bossArray.length > 0){ _local3 = 0; while (_local3 < MovieClip(parent.parent).bossArray.length) { _local4 = {mc:MovieClip(parent.parent).bossArray[_local3], dis:calDist(MovieClip(parent.parent).bossArray[_local3].x, MovieClip(parent.parent).bossArray[_local3].y, this.x, this.y)}; myEnemyArr.push(_local4); _local3++; }; }; myEnemyArr.sortOn("dis", Array.NUMERIC); if (myEnemyArr.length > 0){ followTarget(myEnemyArr[0].mc); }; myEnemyArr.splice(0, myEnemyArr.length); } public function 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){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecial3Array, this); } function movMinimapElement(){ mini.x = (this.x * 0.1); mini.y = (this.y * 0.1); } } }//package
Section 150
//PlayerSpecial4 (PlayerSpecial4) package { import flash.display.*; import flash.events.*; public class PlayerSpecial4 extends MovieClip { public var xSpd:Number; public var speed:int; public var ySpd:Number; public var spd:Number; public var durationCounter:Number;// = 100 public var angle:Number; public var hitBox_mc:MovieClip; public function PlayerSpecial4(_arg1:Number, _arg2:Number, _arg3:Number){ durationCounter = 100; super(); this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ } public function looper(){ var _local1:MovieClip; durationCounter--; if (durationCounter <= 0){ destruct(""); } else { MovieClip(parent.parent).playProtonGunSnd(); MovieClip(parent.parent).attPlayerSpecial4a(); _local1 = MovieClip(parent.parent).levelContainer_mc.player_mc; this.x = MovieClip(parent.parent)._setDistanceFromCenter(_local1)[0]; this.y = MovieClip(parent.parent)._setDistanceFromCenter(_local1)[1]; this.rotation = _local1.turret_mc.rotation; }; } public function destruct(_arg1:String){ MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecial4Array, this); } } }//package
Section 151
//PlayerSpecial4a (PlayerSpecial4a) package { import flash.display.*; import flash.events.*; public class PlayerSpecial4a 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 PlayerSpecial4a(_arg1:Number, _arg2:Number, _arg3:Number){ this.x = _arg1; this.y = _arg2; this.rotation = _arg3; init(); } public function init(){ spd = 100; 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 > 500)))) || ((this.x < -500)))) || ((this.x > 750)))){ 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).playerSpecial4aArray, this); } } }//package
Section 152
//PlayerSpecial6 (PlayerSpecial6) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.filters.*; public class PlayerSpecial6 extends MovieClip { public var xSpd:Number; public var pointer:Number; public var parachute_mc:MovieClip; public var speed:int; public var shootTimer:Timer; public var ySpd:Number; public var myBossArr:Array; public var myEnemyArr:Array; public var spd:Number; public var landed:String;// = "false" public var bazooka_mc:MovieClip; public var angle:Number; public var hitBox_mc:MovieClip; public function PlayerSpecial6(_arg1:Number, _arg2:Number, _arg3:Number){ myEnemyArr = new Array(); myBossArr = new Array(); shootTimer = new Timer(800, 0); landed = "false"; super(); this.x = _arg1; this.y = _arg2; shootTimer.addEventListener(TimerEvent.TIMER, shootEnemy); shootTimer.start(); init(); } public function init(){ spd = 2; angle = ((90 / 180) * Math.PI); xSpd = (Math.cos(angle) * spd); ySpd = (Math.sin(angle) * spd); } public function looper(){ if ((((this.x < -100)) || ((this.x > 750)))){ destruct(""); } else { if (this.y > 400){ this.x = (this.x - 1); if (landed == "false"){ this.parachute_mc.gotoAndPlay(3); landed = "true"; }; } else { this.x = (this.x + xSpd); this.y = (this.y + ySpd); }; this.bazooka_mc.rotation = pointer; whichEnemyToEngage(); }; } public function followTarget(_arg1:MovieClip){ var _local2:Point; var _local3:Point; _local2 = new Point(0, 0); _local3 = new Point((_arg1.x - this.x), (_arg1.y - this.y)); _local3.normalize(0.1); _local2 = _local2.add(_local3); _local2.normalize(2); pointer = ((Math.atan2(_local2.y, _local2.x) * 180) / Math.PI); } public function shootEnemy(_arg1:TimerEvent){ if (this.x >= -5){ trace("Let"); MovieClip(parent.parent).playRPGSnd(); MovieClip(parent.parent).attPlayerSpecial6a(this, pointer); }; } public function whichEnemyToEngage(){ var _local1:Number; var _local2:Object; var _local3:Number; var _local4:Object; if (MovieClip(parent.parent).enemyArray.length > 0){ _local1 = 0; while (_local1 < MovieClip(parent.parent).enemyArray.length) { _local2 = {mc:MovieClip(parent.parent).enemyArray[_local1], dis:calDist(MovieClip(parent.parent).enemyArray[_local1].x, MovieClip(parent.parent).enemyArray[_local1].y, this.x, this.y)}; myEnemyArr.push(_local2); _local1++; }; }; if (MovieClip(parent.parent).bossArray.length > 0){ _local3 = 0; while (_local3 < MovieClip(parent.parent).bossArray.length) { _local4 = {mc:MovieClip(parent.parent).bossArray[_local3], dis:calDist(MovieClip(parent.parent).bossArray[_local3].x, MovieClip(parent.parent).bossArray[_local3].y, this.x, this.y)}; myEnemyArr.push(_local4); _local3++; }; }; myEnemyArr.sortOn("dis", Array.NUMERIC); if (myEnemyArr.length > 0){ followTarget(myEnemyArr[0].mc); }; myEnemyArr.splice(0, myEnemyArr.length); } public function 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 destruct(_arg1:String){ shootTimer.stop(); shootTimer.removeEventListener(TimerEvent.TIMER, shootEnemy); MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).playerSpecial6Array, this); } } }//package
Section 153
//PlayerSpecial6a (PlayerSpecial6a) package { import flash.display.*; import flash.events.*; public class PlayerSpecial6a 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 PlayerSpecial6a(_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 > 500)))) || ((this.x < -500)))) || ((this.x > 750)))){ 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).playerSpecial6aArray, this); } } }//package
Section 154
//PowerupSnd (PowerupSnd) package { import flash.media.*; public dynamic class PowerupSnd extends Sound { } }//package
Section 155
//Prompt25 (Prompt25) package { import flash.display.*; import caurina.transitions.*; public dynamic class Prompt25 extends MovieClip { public function Prompt25(){ addFrameScript(0, frame1); } public function _goToPlayer(){ Tweener.addTween(this, {y:600, time:1, onComplete:_disappear, transition:"easeInBack"}); } public function _disappear(){ MovieClip(parent).removeChild(this); } function frame1(){ stop(); Tweener.addTween(this, {scaleX:1, scaleY:1, time:1, onComplete:_goToPlayer, transition:"easeOutElastic"}); } } }//package
Section 156
//PromptAward (PromptAward) package { import flash.display.*; import caurina.transitions.*; import flash.text.*; public dynamic class PromptAward extends MovieClip { public var _name_txt:TextField; public var ribbon2_mc:MovieClip; public var ribbon1_mc:MovieClip; public var head:MovieClip; 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(){ } function frame1(){ stop(); this.scaleX = 5; this.scaleY = 5; ribbon1_mc.scaleY = 0; ribbon2_mc.scaleY = 0; ribbon1_mc.y = -12; ribbon2_mc.y = -12; Tweener.addTween(head, {rotation:270, time:5, transition:"linear"}); Tweener.addTween(ribbon1_mc, {scaleY:1, y:0, delay:1, time:1, transition:"easeOutStrong"}); Tweener.addTween(ribbon2_mc, {scaleY:1, y:0, delay:1, time:1, transition:"easeOutStrong"}); Tweener.addTween(this, {scaleX:1, scaleY:1, time:0.4, onComplete:_goUp, transition:"linear"}); } public function _goUp(){ Tweener.addTween(this, {y:(this.y - 40), time:2, onComplete:_goUpAgain, transition:"easeOutBack"}); } } }//package
Section 157
//PromptFull (PromptFull) package { import flash.display.*; import caurina.transitions.*; public dynamic class PromptFull extends MovieClip { public function PromptFull(){ addFrameScript(0, frame1); } public function _goToPlayer(){ Tweener.addTween(this, {y:600, time:1, onComplete:_disappear, transition:"easeInBack"}); } public function _disappear(){ MovieClip(parent).removeChild(this); } function frame1(){ stop(); Tweener.addTween(this, {scaleX:1, scaleY:1, time:1, onComplete:_goToPlayer, transition:"easeOutElastic"}); } } }//package
Section 158
//ProtonGunSnd (ProtonGunSnd) package { import flash.media.*; public dynamic class ProtonGunSnd extends Sound { } }//package
Section 159
//RoamingSnd (RoamingSnd) package { import flash.media.*; public dynamic class RoamingSnd extends Sound { } }//package
Section 160
//RPGSnd (RPGSnd) package { import flash.media.*; public dynamic class RPGSnd extends Sound { } }//package
Section 161
//sahig (sahig) package { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.errors.*; import flash.ui.*; import flash.system.*; import flash.filters.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.xml.*; public dynamic class sahig extends MovieClip { public function sahig(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(parent.parent).sahigArray.push(this); } } }//package
Section 162
//ShowAmountAcquired (ShowAmountAcquired) package { import flash.display.*; import caurina.transitions.*; import flash.text.*; public dynamic class ShowAmountAcquired extends MovieClip { public var amount_txt:TextField; public function ShowAmountAcquired(){ addFrameScript(0, frame1); } public function _disappear(){ MovieClip(parent).removeChild(this); } function frame1(){ stop(); Tweener.addTween(this, {scaleX:1, scaleY:1, time:0.4, onComplete:_goUp, transition:"easeOutElastic"}); } public function _goUp(){ Tweener.addTween(this, {y:(this.y - 40), time:1, onComplete:_disappear, transition:"linear"}); } } }//package
Section 163
//TitleBG1Snd (TitleBG1Snd) package { import flash.media.*; public dynamic class TitleBG1Snd extends Sound { } }//package
Section 164
//TitleBG2Snd (TitleBG2Snd) package { import flash.media.*; public dynamic class TitleBG2Snd extends Sound { } }//package
Section 165
//WaveSnd (WaveSnd) package { import flash.media.*; public dynamic class WaveSnd extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:24
Symbol 3 MovieClip {fl.core.ComponentShim}Used by:24
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip {Button_disabledSkin}Uses:4Used by:24
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip {Button_downSkin}Uses:6Used by:24
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip {Button_emphasizedSkin}Uses:8Used by:24
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip {Button_overSkin}Uses:10Used by:24
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip {Button_selectedDisabledSkin}Uses:12Used by:24
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {Button_selectedDownSkin}Uses:14Used by:24
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {Button_selectedOverSkin}Uses:16Used by:24
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip {Button_selectedUpSkin}Uses:18Used by:24
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip {Button_upSkin}Uses:20Used by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip {focusRectSkin}Uses:22Used by:24
Symbol 24 MovieClip {fl.controls.Button}Uses:2 3 5 7 9 11 13 15 17 19 21 23
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClipUses:26Used by:33 666
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:30
Symbol 30 MovieClipUses:29Used by:33 666
Symbol 31 FontUsed by:32 225 241 242 243 251 273 306 311 329 330 331 332 336 337 352 353 361 362 371 372 383 384 385 386 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 470 471 472 473 474 475 476 477 478 479 489 490 491 497 560 572 576 580 582 583 584 587 600 601 602 604 645 646 647 648 649 655 656 659 660 661 663 667 668 670 672 673 674 675 679 680 681 682 684 685
Symbol 32 EditableTextUses:31Used by:33
Symbol 33 MovieClip {PromptAward}Uses:27 30 32
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:36 40
Symbol 36 MovieClip {StitchedWar_viral_v1_fla.mc_e15Flash_180}Uses:35Used by:40
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:39
Symbol 39 MovieClipUses:38Used by:40 43 46 49 52 53 56 59 67 77 80 83 91 92 93 101 104 107 108 109 110 119 122 123 127 131 139 143 147 151 155 159 163 167 171 175 179 183 187 221 224 236 252 338 354 363 556 557 605 650
Symbol 40 MovieClip {EnemyAmmo5}Uses:35 36 39
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:43
Symbol 43 MovieClip {EnemyAmmo4}Uses:42 39
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:46
Symbol 46 MovieClip {EnemyAmmo3}Uses:45 39
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClip {EnemyAmmo2}Uses:48 39
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:52 53
Symbol 52 MovieClip {EnemyAmmo6}Uses:51 39
Symbol 53 MovieClip {EnemyAmmo1}Uses:51 39
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip {PlayerAmmo8a}Uses:55 39
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 MovieClip {PlayerAmmo8}Uses:58 39
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:66
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:66
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClipUses:61 63 65Used by:67
Symbol 67 MovieClip {PlayerAmmo7}Uses:66 39
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:76
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:76
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:76
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:76
Symbol 76 MovieClipUses:69 71 73 75Used by:77
Symbol 77 MovieClip {PlayerAmmo6}Uses:76 39
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:80 92 110 123
Symbol 80 MovieClip {PlayerAmmo5}Uses:79 39
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83 109
Symbol 83 MovieClip {PlayerAmmo4}Uses:82 39
Symbol 84 BitmapUsed by:85 532
Symbol 85 GraphicUses:84Used by:90
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:90
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClipUses:85 87 89Used by:91
Symbol 91 MovieClip {PlayerAmmo3}Uses:90 39
Symbol 92 MovieClip {PlayerAmmo2}Uses:79 39
Symbol 93 MovieClip {PlayerSpecial4a}Uses:39
Symbol 94 BitmapUsed by:96 97 99
Symbol 95 BitmapUsed by:96 97 100
Symbol 96 GraphicUses:94 95Used by:101
Symbol 97 GraphicUses:95 94Used by:101
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:94 98Used by:101
Symbol 100 GraphicUses:95Used by:101
Symbol 101 MovieClip {PlayerSpecial4}Uses:96 39 97 99 100
Symbol 102 BitmapUsed by:103
Symbol 103 GraphicUses:102Used by:104
Symbol 104 MovieClip {PlayerSpecial3}Uses:103 39
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:107
Symbol 107 MovieClip {PlayerSpecial2}Uses:106 39
Symbol 108 MovieClip {PlayerShield}Uses:39
Symbol 109 MovieClip {PlayerSpecial6a}Uses:82 39
Symbol 110 MovieClip {PlayerSpecial1a}Uses:79 39
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:113
Symbol 113 MovieClip {StitchedWar_viral_v1_fla.mc_parachute_117}Uses:112Used by:119 221 224
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:119
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:119
Symbol 119 MovieClip {PlayerSpecial6}Uses:113 115 118 39
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:122
Symbol 122 MovieClip {PlayerSpecial1}Uses:121 39
Symbol 123 MovieClip {PlayerAmmo1}Uses:79 39
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:126 127
Symbol 126 MovieClip {StitchedWar_viral_v1_fla.mc_b4Flash_151}Uses:125Used by:127
Symbol 127 MovieClip {Boss4}Uses:125 126 39
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:130 131
Symbol 130 MovieClip {StitchedWar_viral_v1_fla.mc_b3Flash_149}Uses:129Used by:131
Symbol 131 MovieClip {Boss3}Uses:129 130 39
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:138 139
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:136 137
Symbol 136 MovieClipUses:135Used by:139
Symbol 137 MovieClipUses:135Used by:139
Symbol 138 MovieClip {StitchedWar_viral_v1_fla.mc_b2Flash_147}Uses:133Used by:139
Symbol 139 MovieClip {Boss2}Uses:133 136 137 138 39
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:142 143
Symbol 142 MovieClip {StitchedWar_viral_v1_fla.mc_b1Flash_143}Uses:141Used by:143
Symbol 143 MovieClip {Boss1}Uses:141 142 39
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:146 147
Symbol 146 MovieClip {StitchedWar_viral_v1_fla.mc_e11Flash_141}Uses:145Used by:147
Symbol 147 MovieClip {Enemy11}Uses:145 146 39
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:150 151
Symbol 150 MovieClip {StitchedWar_viral_v1_fla.mc_e10Flash_139}Uses:149Used by:151
Symbol 151 MovieClip {Enemy10}Uses:149 150 39
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:154 155
Symbol 154 MovieClip {StitchedWar_viral_v1_fla.mc_e9Flash_137}Uses:153Used by:155
Symbol 155 MovieClip {Enemy9}Uses:153 154 39
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:158 159
Symbol 158 MovieClip {StitchedWar_viral_v1_fla.mc_e8FLash_135}Uses:157Used by:159
Symbol 159 MovieClip {Enemy8}Uses:157 158 39
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:162 163
Symbol 162 MovieClip {StitchedWar_viral_v1_fla.mc_e7Flash_133}Uses:161Used by:163
Symbol 163 MovieClip {Enemy7}Uses:161 162 39
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:166 167
Symbol 166 MovieClip {StitchedWar_viral_v1_fla.mc_e6Flash_131}Uses:165Used by:167
Symbol 167 MovieClip {Enemy6}Uses:165 166 39
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:170 171
Symbol 170 MovieClip {StitchedWar_viral_v1_fla.mc_e5Flash_129}Uses:169Used by:171
Symbol 171 MovieClip {Enemy5}Uses:169 170 39
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:174 175
Symbol 174 MovieClip {StitchedWar_viral_v1_fla.mc_e4Flash_127}Uses:173Used by:175
Symbol 175 MovieClip {Enemy4}Uses:173 174 39
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:178 179
Symbol 178 MovieClip {StitchedWar_viral_v1_fla.mc_e3Flash_125}Uses:177Used by:179
Symbol 179 MovieClip {Enemy3}Uses:177 178 39
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:182 183
Symbol 182 MovieClip {StitchedWar_viral_v1_fla.mc_e2Flash_123}Uses:181Used by:183
Symbol 183 MovieClip {Enemy2}Uses:181 182 39
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:186 187
Symbol 186 MovieClip {StitchedWar_viral_v1_fla.mc_e1FLasher_121}Uses:185Used by:187
Symbol 187 MovieClip {Enemy1}Uses:185 186 39
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:218
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:218
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:218
Symbol 194 BitmapUsed by:195
Symbol 195 GraphicUses:194Used by:218
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:218
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:218
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:218
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:218
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:218
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:218
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:218
Symbol 210 BitmapUsed by:211
Symbol 211 GraphicUses:210Used by:218
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:218
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:218
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:218
Symbol 218 MovieClip {Explosion}Uses:189 191 193 195 197 199 201 203 205 207 209 211 213 215 217
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:221
Symbol 221 MovieClip {Health1}Uses:113 220 39
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:224
Symbol 224 MovieClip {Health2}Uses:113 223 39
Symbol 225 EditableTextUses:31Used by:226
Symbol 226 MovieClip {ShowAmountAcquired}Uses:225
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:229
Symbol 229 MovieClip {Prompt25}Uses:228
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:232
Symbol 232 MovieClip {PromptFull}Uses:231
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:235 236
Symbol 235 MovieClip {StitchedWar_viral_v1_fla.mc_emFlash_112}Uses:234Used by:236
Symbol 236 MovieClip {EnemyMissile}Uses:234 235 39
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClip {sahig}Uses:237Used by:558
Symbol 239 BitmapUsed by:240 302 308 314 364 374 387 629 651 658 662 671
Symbol 240 GraphicUses:239Used by:559  Timeline
Symbol 241 EditableTextUses:31Used by:Timeline
Symbol 242 EditableTextUses:31Used by:Timeline
Symbol 243 EditableTextUses:31Used by:Timeline
Symbol 244 GraphicUsed by:248
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClipUses:245Used by:248
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip {StitchedWar_viral_v1_fla.mc_preloaderBar_1}Uses:244 246 247Used by:Timeline
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClipUses:249Used by:Timeline
Symbol 251 EditableTextUses:31 334Used by:252
Symbol 252 MovieClip {StitchedWar_viral_v1_fla.btn_play_4}Uses:251 39Used by:Timeline
Symbol 253 GraphicUsed by:Timeline
Symbol 254 GraphicUsed by:271
Symbol 255 GraphicUsed by:271
Symbol 256 GraphicUsed by:268 271
Symbol 257 GraphicUsed by:271
Symbol 258 SoundUsed by:271
Symbol 259 SoundUsed by:271
Symbol 260 GraphicUsed by:271
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:261Used by:271
Symbol 263 SoundUsed by:271
Symbol 264 SoundUsed by:271
Symbol 265 SoundUsed by:271
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:266Used by:271
Symbol 268 MovieClipUses:256Used by:271
Symbol 269 SoundUsed by:271
Symbol 270 SoundUsed by:271
Symbol 271 MovieClip {StitchedWar_viral_v1_fla.ag_intro_mc_6}Uses:254 255 256 257 258 259 260 262 263 264 265 267 268 269 270Used by:Timeline
Symbol 272 GraphicUsed by:301
Symbol 273 EditableTextUses:31Used by:301
Symbol 274 Sound {BtnSnd}Used by:301
Symbol 275 Sound {Bullet1Snd}Used by:301
Symbol 276 Sound {Bullet2Snd}Used by:301
Symbol 277 Sound {Bullet3Snd}Used by:301
Symbol 278 Sound {Bullet4Snd}Used by:301
Symbol 279 Sound {CashSnd}Used by:301
Symbol 280 Sound {ExplodeSnd}Used by:301
Symbol 281 Sound {ExplodeSnd1}Used by:301
Symbol 282 Sound {ExplodeSnd2}Used by:301
Symbol 283 Sound {FireSnd}Used by:301
Symbol 284 Sound {FireSnd1}Used by:301
Symbol 285 Sound {GameBG1Snd}Used by:301
Symbol 286 Sound {GameBG2Snd}Used by:301
Symbol 287 Sound {GameBG3Snd}Used by:301
Symbol 288 Sound {GameBG4Snd}Used by:301
Symbol 289 Sound {GameBG5Snd}Used by:301
Symbol 290 Sound {IncomingSnd}Used by:301
Symbol 291 Sound {LaserSnd}Used by:301
Symbol 292 Sound {MissileSnd}Used by:301
Symbol 293 Sound {PowerupSnd}Used by:301
Symbol 294 Sound {ProtonGunSnd}Used by:301
Symbol 295 Sound {IncomingSnd2}Used by:301
Symbol 296 Sound {RoamingSnd}Used by:301
Symbol 297 Sound {RPGSnd}Used by:301
Symbol 298 Sound {TitleBG1Snd}Used by:301
Symbol 299 Sound {TitleBG2Snd}Used by:301
Symbol 300 Sound {WaveSnd}Used by:301
Symbol 301 MovieClipUses:272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300Used by:Timeline
Symbol 302 GraphicUses:239Used by:307
Symbol 303 BitmapUsed by:304 309 340 375
Symbol 304 GraphicUses:303Used by:305
Symbol 305 MovieClipUses:304Used by:307
Symbol 306 EditableTextUses:31Used by:307
Symbol 307 MovieClipUses:302 305 306Used by:Timeline
Symbol 308 GraphicUses:239Used by:312
Symbol 309 GraphicUses:303Used by:310
Symbol 310 MovieClipUses:309Used by:312
Symbol 311 EditableTextUses:31Used by:312
Symbol 312 MovieClipUses:308 310 311Used by:Timeline
Symbol 313 GraphicUsed by:Timeline
Symbol 314 GraphicUses:239Used by:Timeline
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:317
Symbol 317 MovieClipUses:316Used by:Timeline
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:318Used by:320
Symbol 320 MovieClipUses:319Used by:Timeline
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:323
Symbol 323 MovieClipUses:322Used by:Timeline
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:326
Symbol 326 MovieClip {StitchedWar_viral_v1_fla.btn_moreGames_18}Uses:325Used by:Timeline
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:333
Symbol 329 EditableTextUses:31Used by:333
Symbol 330 EditableTextUses:31Used by:333
Symbol 331 EditableTextUses:31Used by:333
Symbol 332 EditableTextUses:31Used by:333
Symbol 333 MovieClip {StitchedWar_viral_v1_fla.btn_sponsorLogoOnTitle_19}Uses:328 329 330 331 332Used by:Timeline
Symbol 334 FontUsed by:251 335 353 415 416 417 418 419 420 421
Symbol 335 EditableTextUses:334Used by:339
Symbol 336 EditableTextUses:31Used by:339
Symbol 337 EditableTextUses:31Used by:338
Symbol 338 MovieClip {StitchedWar_viral_v1_fla.btn_adoboTitleLogo_21}Uses:337 39Used by:339
Symbol 339 MovieClipUses:335 336 338Used by:Timeline
Symbol 340 GraphicUses:303Used by:341
Symbol 341 MovieClipUses:340Used by:Timeline
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:344
Symbol 344 MovieClipUses:343Used by:345  Timeline
Symbol 345 MovieClipUses:344Used by:Timeline
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:348
Symbol 348 MovieClipUses:347Used by:Timeline
Symbol 349 BitmapUsed by:350
Symbol 350 GraphicUses:349Used by:351
Symbol 351 MovieClipUses:350Used by:Timeline
Symbol 352 EditableTextUses:31Used by:Timeline
Symbol 353 EditableTextUses:31 334Used by:354
Symbol 354 MovieClip {StitchedWar_viral_v1_fla.btn_credits_27}Uses:353 39Used by:Timeline
Symbol 355 BitmapUsed by:356
Symbol 356 GraphicUses:355Used by:357
Symbol 357 MovieClip {StitchedWar_viral_v1_fla.btn_twitter_28}Uses:356Used by:Timeline
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:360 676
Symbol 360 MovieClip {StitchedWar_viral_v1_fla.btn_facebook_29}Uses:359Used by:Timeline
Symbol 361 EditableTextUses:31Used by:Timeline
Symbol 362 EditableTextUses:31Used by:363
Symbol 363 MovieClip {StitchedWar_viral_v1_fla.btn_walkthrough_30}Uses:362 39Used by:Timeline
Symbol 364 GraphicUses:239Used by:373 496
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:367
Symbol 367 MovieClipUses:366Used by:373
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:370
Symbol 370 MovieClipUses:369Used by:373
Symbol 371 EditableTextUses:31Used by:373
Symbol 372 EditableTextUses:31Used by:373
Symbol 373 MovieClip {StitchedWar_viral_v1_fla.mc_newGamePrompt_31}Uses:364 367 370 371 372Used by:Timeline
Symbol 374 GraphicUses:239Used by:Timeline
Symbol 375 GraphicUses:303Used by:376
Symbol 376 MovieClipUses:375Used by:Timeline
Symbol 377 BitmapUsed by:378
Symbol 378 GraphicUses:377Used by:379
Symbol 379 MovieClipUses:378Used by:Timeline
Symbol 380 BitmapUsed by:381
Symbol 381 GraphicUses:380Used by:382
Symbol 382 MovieClipUses:381Used by:488  Timeline
Symbol 383 EditableTextUses:31Used by:Timeline
Symbol 384 EditableTextUses:31Used by:Timeline
Symbol 385 EditableTextUses:31Used by:Timeline
Symbol 386 EditableTextUses:31Used by:Timeline
Symbol 387 GraphicUses:239Used by:Timeline
Symbol 388 GraphicUsed by:488
Symbol 389 EditableTextUses:31Used by:488
Symbol 390 EditableTextUses:31Used by:488
Symbol 391 EditableTextUses:31Used by:488
Symbol 392 EditableTextUses:31Used by:488
Symbol 393 EditableTextUses:31Used by:488
Symbol 394 EditableTextUses:31Used by:488
Symbol 395 EditableTextUses:31Used by:488
Symbol 396 EditableTextUses:31Used by:488
Symbol 397 EditableTextUses:31Used by:488
Symbol 398 EditableTextUses:31Used by:488
Symbol 399 EditableTextUses:31Used by:488
Symbol 400 EditableTextUses:31Used by:488
Symbol 401 EditableTextUses:31Used by:488
Symbol 402 EditableTextUses:31Used by:488
Symbol 403 EditableTextUses:31Used by:488
Symbol 404 EditableTextUses:31Used by:488
Symbol 405 EditableTextUses:31Used by:488
Symbol 406 EditableTextUses:31Used by:488
Symbol 407 EditableTextUses:31Used by:488
Symbol 408 EditableTextUses:31Used by:488
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:409Used by:411
Symbol 411 MovieClipUses:410Used by:488
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:414
Symbol 414 MovieClipUses:413Used by:488
Symbol 415 EditableTextUses:334Used by:488
Symbol 416 EditableTextUses:334Used by:488
Symbol 417 EditableTextUses:334Used by:488
Symbol 418 EditableTextUses:334Used by:488
Symbol 419 EditableTextUses:334Used by:488
Symbol 420 EditableTextUses:334Used by:488
Symbol 421 EditableTextUses:334Used by:488
Symbol 422 BitmapUsed by:423
Symbol 423 GraphicUses:422Used by:424
Symbol 424 MovieClipUses:423Used by:488 495
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:427
Symbol 427 MovieClipUses:426Used by:488 495
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:430
Symbol 430 MovieClipUses:429Used by:488 495
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:433
Symbol 433 MovieClipUses:432Used by:488 495
Symbol 434 BitmapUsed by:435
Symbol 435 GraphicUses:434Used by:436
Symbol 436 MovieClipUses:435Used by:488 495
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:439
Symbol 439 MovieClipUses:438Used by:488 495
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:442
Symbol 442 MovieClipUses:441Used by:488
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:445
Symbol 445 MovieClipUses:444Used by:488
Symbol 446 BitmapUsed by:447
Symbol 447 GraphicUses:446Used by:448
Symbol 448 MovieClipUses:447Used by:488
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:451
Symbol 451 MovieClipUses:450Used by:488
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:452Used by:454
Symbol 454 MovieClipUses:453Used by:488
Symbol 455 BitmapUsed by:456
Symbol 456 GraphicUses:455Used by:457
Symbol 457 MovieClipUses:456Used by:488
Symbol 458 BitmapUsed by:459
Symbol 459 GraphicUses:458Used by:460
Symbol 460 MovieClipUses:459Used by:488
Symbol 461 BitmapUsed by:462
Symbol 462 GraphicUses:461Used by:463
Symbol 463 MovieClipUses:462Used by:488
Symbol 464 BitmapUsed by:465
Symbol 465 GraphicUses:464Used by:466
Symbol 466 MovieClipUses:465Used by:488
Symbol 467 BitmapUsed by:468
Symbol 468 GraphicUses:467Used by:469
Symbol 469 MovieClipUses:468Used by:488
Symbol 470 EditableTextUses:31Used by:488
Symbol 471 EditableTextUses:31Used by:488
Symbol 472 EditableTextUses:31Used by:488
Symbol 473 EditableTextUses:31Used by:488
Symbol 474 EditableTextUses:31Used by:488
Symbol 475 EditableTextUses:31Used by:488
Symbol 476 EditableTextUses:31Used by:488
Symbol 477 EditableTextUses:31Used by:488
Symbol 478 EditableTextUses:31Used by:488
Symbol 479 EditableTextUses:31Used by:488
Symbol 480 BitmapUsed by:482
Symbol 481 BitmapUsed by:482
Symbol 482 GraphicUses:480 481Used by:488
Symbol 483 BitmapUsed by:484
Symbol 484 GraphicUses:483Used by:485
Symbol 485 MovieClipUses:484Used by:488 495
Symbol 486 GraphicUsed by:487
Symbol 487 MovieClipUses:486Used by:488
Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37}Uses:388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 411 414 415 416 417 418 419 420 421 424 427 430 433 436 439 442 445 448 451 454 457 460 463 466 382 469 470 471 472 473 474 475 476 477 478 479 482 485 487Used by:Timeline
Symbol 489 EditableTextUses:31Used by:496
Symbol 490 EditableTextUses:31Used by:496
Symbol 491 EditableTextUses:31Used by:496
Symbol 492 BitmapUsed by:493
Symbol 493 GraphicUses:492Used by:494
Symbol 494 MovieClipUses:493Used by:496
Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60}Uses:424 427 430 433 436 439 485Used by:496
Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58}Uses:364 489 490 491 494 495Used by:Timeline
Symbol 497 EditableTextUses:31Used by:Timeline
Symbol 498 BitmapUsed by:499
Symbol 499 GraphicUses:498Used by:500
Symbol 500 MovieClipUses:499Used by:Timeline
Symbol 501 BitmapUsed by:502
Symbol 502 GraphicUses:501Used by:503
Symbol 503 MovieClipUses:502Used by:Timeline
Symbol 504 BitmapUsed by:505
Symbol 505 GraphicUses:504Used by:506
Symbol 506 MovieClipUses:505Used by:Timeline
Symbol 507 GraphicUsed by:Timeline
Symbol 508 BitmapUsed by:509 606
Symbol 509 GraphicUses:508Used by:Timeline
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:512
Symbol 512 MovieClipUses:511Used by:Timeline
Symbol 513 BitmapUsed by:514
Symbol 514 GraphicUses:513Used by:515
Symbol 515 MovieClipUses:514Used by:Timeline
Symbol 516 BitmapUsed by:517
Symbol 517 GraphicUses:516Used by:518
Symbol 518 MovieClipUses:517Used by:Timeline
Symbol 519 BitmapUsed by:520
Symbol 520 GraphicUses:519Used by:521
Symbol 521 MovieClipUses:520Used by:Timeline
Symbol 522 BitmapUsed by:523
Symbol 523 GraphicUses:522Used by:524
Symbol 524 MovieClipUses:523Used by:Timeline
Symbol 525 BitmapUsed by:526
Symbol 526 GraphicUses:525Used by:527
Symbol 527 MovieClipUses:526Used by:Timeline
Symbol 528 GraphicUsed by:558
Symbol 529 BitmapUsed by:530
Symbol 530 GraphicUses:529Used by:533
Symbol 531 BitmapUsed by:532
Symbol 532 GraphicUses:531 84Used by:533
Symbol 533 MovieClip {StitchedWar_viral_v1_fla.mc_playersBody_73}Uses:530 532Used by:556
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:550
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536Used by:550
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:538Used by:550
Symbol 540 BitmapUsed by:541
Symbol 541 GraphicUses:540Used by:550
Symbol 542 BitmapUsed by:543
Symbol 543 GraphicUses:542Used by:550
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544Used by:550
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:550
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:550
Symbol 550 MovieClip {StitchedWar_viral_v1_fla.mc_playersTurret_74}Uses:535 537 539 541 543 545 547 549Used by:556
Symbol 551 BitmapUsed by:552
Symbol 552 GraphicUses:551Used by:555
Symbol 553 BitmapUsed by:554
Symbol 554 GraphicUses:553Used by:555
Symbol 555 MovieClip {StitchedWar_viral_v1_fla.mc_shield_75}Uses:552 554Used by:556
Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72}Uses:533 550 555 39Used by:558
Symbol 557 MovieClip {StitchedWar_viral_v1_fla.mc_iCrosshair_76}Uses:39Used by:558
Symbol 558 MovieClip {StitchedWar_viral_v1_fla.mc_levelContainer_70}Uses:528 238 556 557Used by:Timeline
Symbol 559 MovieClipUses:240Used by:Timeline
Symbol 560 EditableTextUses:31Used by:567
Symbol 561 GraphicUsed by:566
Symbol 562 GraphicUsed by:563
Symbol 563 MovieClipUses:562Used by:566
Symbol 564 GraphicUsed by:566
Symbol 565 GraphicUsed by:566
Symbol 566 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoBar_79}Uses:561 563 564 565Used by:567
Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}Uses:560 566Used by:Timeline
Symbol 568 GraphicUsed by:573
Symbol 569 GraphicUsed by:570
Symbol 570 MovieClipUses:569Used by:573 577 581 588
Symbol 571 GraphicUsed by:573
Symbol 572 EditableTextUses:31Used by:573
Symbol 573 MovieClip {StitchedWar_viral_v1_fla.mc_specialBar_81}Uses:568 570 571 572Used by:Timeline
Symbol 574 GraphicUsed by:577
Symbol 575 GraphicUsed by:577
Symbol 576 EditableTextUses:31Used by:577
Symbol 577 MovieClip {StitchedWar_viral_v1_fla.mc_playerLifebar_83}Uses:574 570 575 576Used by:Timeline
Symbol 578 GraphicUsed by:581
Symbol 579 GraphicUsed by:581
Symbol 580 EditableTextUses:31Used by:581
Symbol 581 MovieClip {StitchedWar_viral_v1_fla.mc_shieldBar_84}Uses:578 570 579 580Used by:Timeline
Symbol 582 EditableTextUses:31Used by:Timeline
Symbol 583 EditableTextUses:31Used by:Timeline
Symbol 584 EditableTextUses:31Used by:Timeline
Symbol 585 GraphicUsed by:588
Symbol 586 GraphicUsed by:588
Symbol 587 EditableTextUses:31Used by:588
Symbol 588 MovieClip {StitchedWar_viral_v1_fla.mc_bossLifebar_85}Uses:585 570 586 587Used by:Timeline
Symbol 589 GraphicUsed by:590
Symbol 590 MovieClip {StitchedWar_viral_v1_fla.mc_shockwaveFlash_86}Uses:589Used by:Timeline
Symbol 591 BitmapUsed by:592
Symbol 592 GraphicUses:591Used by:593
Symbol 593 MovieClipUses:592Used by:Timeline
Symbol 594 BitmapUsed by:595
Symbol 595 GraphicUses:594Used by:596 597
Symbol 596 MovieClipUses:595Used by:597
Symbol 597 MovieClip {StitchedWar_viral_v1_fla.mc_redFlash_88}Uses:595 596Used by:Timeline
Symbol 598 GraphicUsed by:599
Symbol 599 MovieClipUses:598Used by:Timeline
Symbol 600 EditableTextUses:31Used by:Timeline
Symbol 601 EditableTextUses:31Used by:603
Symbol 602 EditableTextUses:31Used by:603
Symbol 603 MovieClip {StitchedWar_viral_v1_fla.mc_showKills_91}Uses:601 602Used by:Timeline
Symbol 604 EditableTextUses:31Used by:605
Symbol 605 MovieClip {StitchedWar_viral_v1_fla.btn_inGameArmorgameLogo_92}Uses:604 39Used by:Timeline
Symbol 606 GraphicUses:508Used by:Timeline
Symbol 607 BitmapUsed by:608
Symbol 608 GraphicUses:607Used by:609
Symbol 609 MovieClipUses:608Used by:Timeline
Symbol 610 BitmapUsed by:611
Symbol 611 GraphicUses:610Used by:612
Symbol 612 MovieClipUses:611Used by:Timeline
Symbol 613 BitmapUsed by:614
Symbol 614 GraphicUses:613Used by:615
Symbol 615 MovieClipUses:614Used by:Timeline
Symbol 616 GraphicUsed by:Timeline
Symbol 617 BitmapUsed by:618 628 629 639 640
Symbol 618 GraphicUses:617Used by:Timeline
Symbol 619 BitmapUsed by:620
Symbol 620 GraphicUses:619Used by:621
Symbol 621 MovieClipUses:620Used by:Timeline
Symbol 622 BitmapUsed by:623
Symbol 623 GraphicUses:622Used by:624
Symbol 624 MovieClipUses:623Used by:Timeline
Symbol 625 BitmapUsed by:626
Symbol 626 GraphicUses:625Used by:627
Symbol 627 MovieClipUses:626Used by:Timeline
Symbol 628 GraphicUses:617Used by:Timeline
Symbol 629 GraphicUses:617 239Used by:Timeline
Symbol 630 BitmapUsed by:631
Symbol 631 GraphicUses:630Used by:632
Symbol 632 MovieClipUses:631Used by:Timeline
Symbol 633 BitmapUsed by:634
Symbol 634 GraphicUses:633Used by:635
Symbol 635 MovieClipUses:634Used by:Timeline
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:638
Symbol 638 MovieClipUses:637Used by:Timeline
Symbol 639 GraphicUses:617Used by:Timeline
Symbol 640 GraphicUses:617Used by:Timeline
Symbol 641 BitmapUsed by:642
Symbol 642 GraphicUses:641Used by:643
Symbol 643 MovieClipUses:642Used by:Timeline
Symbol 644 GraphicUsed by:Timeline
Symbol 645 EditableTextUses:31Used by:Timeline
Symbol 646 EditableTextUses:31Used by:Timeline
Symbol 647 EditableTextUses:31Used by:Timeline
Symbol 648 EditableTextUses:31Used by:Timeline
Symbol 649 EditableTextUses:31Used by:650
Symbol 650 MovieClip {StitchedWar_viral_v1_fla.btn_submitScore_103}Uses:649 39Used by:Timeline
Symbol 651 GraphicUses:239Used by:Timeline
Symbol 652 BitmapUsed by:653
Symbol 653 GraphicUses:652Used by:654
Symbol 654 MovieClipUses:653Used by:Timeline
Symbol 655 EditableTextUses:31Used by:Timeline
Symbol 656 EditableTextUses:31Used by:Timeline
Symbol 657 BitmapUsed by:658
Symbol 658 GraphicUses:657 239Used by:Timeline
Symbol 659 EditableTextUses:31Used by:Timeline
Symbol 660 EditableTextUses:31Used by:Timeline
Symbol 661 EditableTextUses:31Used by:Timeline
Symbol 662 GraphicUses:239Used by:Timeline
Symbol 663 EditableTextUses:31Used by:Timeline
Symbol 664 BitmapUsed by:665
Symbol 665 GraphicUses:664Used by:666
Symbol 666 MovieClip {StitchedWar_viral_v1_fla.mc_awardIcon_106}Uses:665 27 30Used by:669
Symbol 667 EditableTextUses:31Used by:669
Symbol 668 EditableTextUses:31Used by:669
Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}Uses:666 667 668Used by:Timeline
Symbol 670 EditableTextUses:31Used by:Timeline
Symbol 671 GraphicUses:239Used by:Timeline
Symbol 672 EditableTextUses:31Used by:Timeline
Symbol 673 EditableTextUses:31Used by:Timeline
Symbol 674 EditableTextUses:31Used by:Timeline
Symbol 675 EditableTextUses:31Used by:Timeline
Symbol 676 MovieClip {StitchedWar_viral_v1_fla.btn_adoboGamesFacebook_109}Uses:359Used by:Timeline
Symbol 677 BitmapUsed by:678
Symbol 678 GraphicUses:677Used by:683
Symbol 679 EditableTextUses:31Used by:683
Symbol 680 EditableTextUses:31Used by:683
Symbol 681 EditableTextUses:31Used by:683
Symbol 682 EditableTextUses:31Used by:683
Symbol 683 MovieClip {StitchedWar_viral_v1_fla.mc_adoboLogo_110}Uses:678 679 680 681 682Used by:Timeline
Symbol 684 EditableTextUses:31Used by:Timeline
Symbol 685 EditableTextUses:31Used by:Timeline

Instance Names

"loader_txt"Frame 1Symbol 243 EditableText
"bar_mc"Frame 1Symbol 248 MovieClip {StitchedWar_viral_v1_fla.mc_preloaderBar_1}
"adBox"Frame 1Symbol 250 MovieClip
"closeButton"Frame 1Symbol 252 MovieClip {StitchedWar_viral_v1_fla.btn_play_4}
"firstHalf_mc"Frame 3Symbol 307 MovieClip
"secondHalf_mc"Frame 3Symbol 312 MovieClip
"firstHalf_mc"Frame 4Symbol 307 MovieClip
"secondHalf_mc"Frame 4Symbol 312 MovieClip
"newGame_btn"Frame 5Symbol 317 MovieClip
"loadGame_btn"Frame 5Symbol 320 MovieClip
"highscores_btn"Frame 5Symbol 323 MovieClip
"moreGames_btn"Frame 5Symbol 326 MovieClip {StitchedWar_viral_v1_fla.btn_moreGames_18}
"award_btn"Frame 5Symbol 348 MovieClip
"music_btn"Frame 5Symbol 351 MovieClip
"qualityShow_txt"Frame 5Symbol 352 EditableText
"credit_btn"Frame 5Symbol 354 MovieClip {StitchedWar_viral_v1_fla.btn_credits_27}
"newGamePrompt_mc"Frame 5Symbol 373 MovieClip {StitchedWar_viral_v1_fla.mc_newGamePrompt_31}
"howToNext_btn"Frame 6Symbol 379 MovieClip
"howToBack_btn"Frame 6Symbol 382 MovieClip
"qualityShow_txt"Frame 6Symbol 386 EditableText
"prelevelContainer_mc"Frame 7Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37}
"newWepPrompt_mc"Frame 7Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58}
"qualityShow_txt"Frame 7Symbol 497 EditableText
"mc_bg1_a"Frame 8Symbol 500 MovieClip
"mc_bg3_a"Frame 8Symbol 503 MovieClip
"mc_bg2_a"Frame 8Symbol 506 MovieClip
"mc_bg1"Frame 8Symbol 500 MovieClip
"mc_bg3"Frame 8Symbol 503 MovieClip
"mc_bg2"Frame 8Symbol 506 MovieClip
"mc_c1"Frame 8Symbol 512 MovieClip
"mc_c2"Frame 8Symbol 515 MovieClip
"mc_c3"Frame 8Symbol 518 MovieClip
"mc_c4"Frame 8Symbol 521 MovieClip
"mc_c5"Frame 8Symbol 524 MovieClip
"mc_c6"Frame 8Symbol 527 MovieClip
"levelContainer_mc"Frame 8Symbol 558 MovieClip {StitchedWar_viral_v1_fla.mc_levelContainer_70}
"ammo1ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo2ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo3ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo4ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo5ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo6ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo7ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"ammo8ui_mc"Frame 8Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78}
"specialui_mc"Frame 8Symbol 573 MovieClip {StitchedWar_viral_v1_fla.mc_specialBar_81}
"lifeUIContainer_mc"Frame 8Symbol 577 MovieClip {StitchedWar_viral_v1_fla.mc_playerLifebar_83}
"shieldUI_mc"Frame 8Symbol 581 MovieClip {StitchedWar_viral_v1_fla.mc_shieldBar_84}
"ui_showMoney_txt"Frame 8Symbol 582 EditableText
"endLevelPromptWin_txt"Frame 8Symbol 583 EditableText
"endLevelPromptLost_txt"Frame 8Symbol 584 EditableText
"BossLifeUIContainer_mc"Frame 8Symbol 588 MovieClip {StitchedWar_viral_v1_fla.mc_bossLifebar_85}
"shockFlash_mc"Frame 8Symbol 590 MovieClip {StitchedWar_viral_v1_fla.mc_shockwaveFlash_86}
"crossHair_mc"Frame 8Symbol 593 MovieClip
"redFlash_mc"Frame 8Symbol 597 MovieClip {StitchedWar_viral_v1_fla.mc_redFlash_88}
"showSelectedWep_mc"Frame 8Symbol 599 MovieClip
"qualityShow_txt"Frame 8Symbol 600 EditableText
"showKillsBox_mc"Frame 8Symbol 603 MovieClip {StitchedWar_viral_v1_fla.mc_showKills_91}
"mc_bg1_a"Frame 11Symbol 609 MovieClip
"mc_bg3_a"Frame 11Symbol 612 MovieClip
"mc_bg2_a"Frame 11Symbol 615 MovieClip
"mc_bg1"Frame 11Symbol 609 MovieClip
"mc_bg3"Frame 11Symbol 612 MovieClip
"mc_bg2"Frame 11Symbol 615 MovieClip
"mc_bg1_a"Frame 14Symbol 621 MovieClip
"mc_bg3_a"Frame 14Symbol 624 MovieClip
"mc_bg2_a"Frame 14Symbol 627 MovieClip
"mc_bg1"Frame 14Symbol 621 MovieClip
"mc_bg3"Frame 14Symbol 624 MovieClip
"mc_bg2"Frame 14Symbol 627 MovieClip
"mc_bg1_a"Frame 17Symbol 632 MovieClip
"mc_bg3_a"Frame 17Symbol 635 MovieClip
"mc_bg2_a"Frame 17Symbol 638 MovieClip
"mc_bg1"Frame 17Symbol 632 MovieClip
"mc_bg3"Frame 17Symbol 635 MovieClip
"mc_bg2"Frame 17Symbol 638 MovieClip
"mc_c3"Frame 20Symbol 518 MovieClip
"mc_c4"Frame 20Symbol 521 MovieClip
"mc_c5"Frame 20Symbol 524 MovieClip
"mc_c6"Frame 20Symbol 527 MovieClip
"mc_c3"Frame 20Symbol 518 MovieClip
"mc_c4"Frame 20Symbol 521 MovieClip
"mc_c5"Frame 20Symbol 524 MovieClip
"mc_c6"Frame 20Symbol 527 MovieClip
"postWinNext_btn"Frame 20Symbol 379 MovieClip
"postWinDesign_mc"Frame 20Symbol 645 EditableText
"postShowKills_txt"Frame 20Symbol 646 EditableText
"postShowMoney_txt"Frame 20Symbol 647 EditableText
"qualityShow_txt"Frame 20Symbol 648 EditableText
"postWinSubmitScore_btn"Frame 20Symbol 650 MovieClip {StitchedWar_viral_v1_fla.btn_submitScore_103}
"postLostNext_btn"Frame 21Symbol 379 MovieClip
"qualityShow_txt"Frame 21Symbol 656 EditableText
"postFintNext_btn"Frame 22Symbol 379 MovieClip
"mc_c3"Frame 22Symbol 518 MovieClip
"mc_c4"Frame 22Symbol 521 MovieClip
"mc_c5"Frame 22Symbol 524 MovieClip
"mc_c6"Frame 22Symbol 527 MovieClip
"mc_c3"Frame 22Symbol 518 MovieClip
"mc_c4"Frame 22Symbol 521 MovieClip
"mc_c5"Frame 22Symbol 524 MovieClip
"mc_c6"Frame 22Symbol 527 MovieClip
"qualityShow_txt"Frame 22Symbol 661 EditableText
"postFinSubmitScore_btn"Frame 22Symbol 650 MovieClip {StitchedWar_viral_v1_fla.btn_submitScore_103}
"postLostNext_btn"Frame 23Symbol 379 MovieClip
"award1_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award2_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award3_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award4_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award5_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award6_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award7_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award8_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award9_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award10_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award11_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award12_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award13_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award14_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award15_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award16_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award17_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award18_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award19_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award20_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"award21_mc"Frame 23Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105}
"qualityShow_txt"Frame 23Symbol 670 EditableText
"creditNext_btn"Frame 24Symbol 379 MovieClip
"hsSubmitNext_btn"Frame 25Symbol 379 MovieClip
"hsShowNext_btn"Frame 26Symbol 379 MovieClip
"ribbon2_mc"Symbol 33 MovieClip {PromptAward} Frame 1Symbol 27 MovieClip
"ribbon1_mc"Symbol 33 MovieClip {PromptAward} Frame 1Symbol 27 MovieClip
"head"Symbol 33 MovieClip {PromptAward} Frame 1Symbol 30 MovieClip
"_name_txt"Symbol 33 MovieClip {PromptAward} Frame 1Symbol 32 EditableText
"flash_mc"Symbol 40 MovieClip {EnemyAmmo5} Frame 1Symbol 36 MovieClip {StitchedWar_viral_v1_fla.mc_e15Flash_180}
"hitBox_mc"Symbol 40 MovieClip {EnemyAmmo5} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 43 MovieClip {EnemyAmmo4} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 46 MovieClip {EnemyAmmo3} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 49 MovieClip {EnemyAmmo2} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 52 MovieClip {EnemyAmmo6} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 53 MovieClip {EnemyAmmo1} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 56 MovieClip {PlayerAmmo8a} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 59 MovieClip {PlayerAmmo8} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 67 MovieClip {PlayerAmmo7} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 77 MovieClip {PlayerAmmo6} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 80 MovieClip {PlayerAmmo5} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 83 MovieClip {PlayerAmmo4} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 91 MovieClip {PlayerAmmo3} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 92 MovieClip {PlayerAmmo2} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 93 MovieClip {PlayerSpecial4a} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 101 MovieClip {PlayerSpecial4} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 104 MovieClip {PlayerSpecial3} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 107 MovieClip {PlayerSpecial2} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 108 MovieClip {PlayerShield} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 109 MovieClip {PlayerSpecial6a} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 110 MovieClip {PlayerSpecial1a} Frame 1Symbol 39 MovieClip
"parachute_mc"Symbol 119 MovieClip {PlayerSpecial6} Frame 1Symbol 113 MovieClip {StitchedWar_viral_v1_fla.mc_parachute_117}
"bazooka_mc"Symbol 119 MovieClip {PlayerSpecial6} Frame 1Symbol 118 MovieClip
"hitBox_mc"Symbol 119 MovieClip {PlayerSpecial6} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 122 MovieClip {PlayerSpecial1} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 123 MovieClip {PlayerAmmo1} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 127 MovieClip {Boss4} Frame 1Symbol 126 MovieClip {StitchedWar_viral_v1_fla.mc_b4Flash_151}
"hitBox_mc"Symbol 127 MovieClip {Boss4} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 131 MovieClip {Boss3} Frame 1Symbol 130 MovieClip {StitchedWar_viral_v1_fla.mc_b3Flash_149}
"hitBox_mc"Symbol 131 MovieClip {Boss3} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 139 MovieClip {Boss2} Frame 1Symbol 138 MovieClip {StitchedWar_viral_v1_fla.mc_b2Flash_147}
"hitBox_mc"Symbol 139 MovieClip {Boss2} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 143 MovieClip {Boss1} Frame 1Symbol 142 MovieClip {StitchedWar_viral_v1_fla.mc_b1Flash_143}
"hitBox_mc"Symbol 143 MovieClip {Boss1} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 147 MovieClip {Enemy11} Frame 1Symbol 146 MovieClip {StitchedWar_viral_v1_fla.mc_e11Flash_141}
"hitBox_mc"Symbol 147 MovieClip {Enemy11} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 151 MovieClip {Enemy10} Frame 1Symbol 150 MovieClip {StitchedWar_viral_v1_fla.mc_e10Flash_139}
"hitBox_mc"Symbol 151 MovieClip {Enemy10} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 155 MovieClip {Enemy9} Frame 1Symbol 154 MovieClip {StitchedWar_viral_v1_fla.mc_e9Flash_137}
"hitBox_mc"Symbol 155 MovieClip {Enemy9} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 159 MovieClip {Enemy8} Frame 1Symbol 158 MovieClip {StitchedWar_viral_v1_fla.mc_e8FLash_135}
"hitBox_mc"Symbol 159 MovieClip {Enemy8} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 163 MovieClip {Enemy7} Frame 1Symbol 162 MovieClip {StitchedWar_viral_v1_fla.mc_e7Flash_133}
"hitBox_mc"Symbol 163 MovieClip {Enemy7} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 167 MovieClip {Enemy6} Frame 1Symbol 166 MovieClip {StitchedWar_viral_v1_fla.mc_e6Flash_131}
"hitBox_mc"Symbol 167 MovieClip {Enemy6} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 171 MovieClip {Enemy5} Frame 1Symbol 170 MovieClip {StitchedWar_viral_v1_fla.mc_e5Flash_129}
"hitBox_mc"Symbol 171 MovieClip {Enemy5} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 175 MovieClip {Enemy4} Frame 1Symbol 174 MovieClip {StitchedWar_viral_v1_fla.mc_e4Flash_127}
"hitBox_mc"Symbol 175 MovieClip {Enemy4} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 179 MovieClip {Enemy3} Frame 1Symbol 178 MovieClip {StitchedWar_viral_v1_fla.mc_e3Flash_125}
"hitBox_mc"Symbol 179 MovieClip {Enemy3} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 183 MovieClip {Enemy2} Frame 1Symbol 182 MovieClip {StitchedWar_viral_v1_fla.mc_e2Flash_123}
"hitBox_mc"Symbol 183 MovieClip {Enemy2} Frame 1Symbol 39 MovieClip
"flash_mc"Symbol 187 MovieClip {Enemy1} Frame 1Symbol 186 MovieClip {StitchedWar_viral_v1_fla.mc_e1FLasher_121}
"hitBox_mc"Symbol 187 MovieClip {Enemy1} Frame 1Symbol 39 MovieClip
"parachute_mc"Symbol 221 MovieClip {Health1} Frame 1Symbol 113 MovieClip {StitchedWar_viral_v1_fla.mc_parachute_117}
"hitBox_mc"Symbol 221 MovieClip {Health1} Frame 1Symbol 39 MovieClip
"parachute_mc"Symbol 224 MovieClip {Health2} Frame 1Symbol 113 MovieClip {StitchedWar_viral_v1_fla.mc_parachute_117}
"hitBox_mc"Symbol 224 MovieClip {Health2} Frame 1Symbol 39 MovieClip
"amount_txt"Symbol 226 MovieClip {ShowAmountAcquired} Frame 1Symbol 225 EditableText
"flash_mc"Symbol 236 MovieClip {EnemyMissile} Frame 1Symbol 235 MovieClip {StitchedWar_viral_v1_fla.mc_emFlash_112}
"hitBox_mc"Symbol 236 MovieClip {EnemyMissile} Frame 1Symbol 39 MovieClip
"innerBar_mc"Symbol 248 MovieClip {StitchedWar_viral_v1_fla.mc_preloaderBar_1} Frame 1Symbol 246 MovieClip
"hitBox_mc"Symbol 252 MovieClip {StitchedWar_viral_v1_fla.btn_play_4} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 338 MovieClip {StitchedWar_viral_v1_fla.btn_adoboTitleLogo_21} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 354 MovieClip {StitchedWar_viral_v1_fla.btn_credits_27} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 363 MovieClip {StitchedWar_viral_v1_fla.btn_walkthrough_30} Frame 1Symbol 39 MovieClip
"no_btn"Symbol 373 MovieClip {StitchedWar_viral_v1_fla.mc_newGamePrompt_31} Frame 1Symbol 367 MovieClip
"yes_btn"Symbol 373 MovieClip {StitchedWar_viral_v1_fla.mc_newGamePrompt_31} Frame 1Symbol 370 MovieClip
"wepName_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 391 EditableText
"wepDesc_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 392 EditableText
"money_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 395 EditableText
"levelToPlay_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 396 EditableText
"showArmorLevel_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 399 EditableText
"showSpeedLevel_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 400 EditableText
"buySpec3_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buySpec2_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buySpec1_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buySpec6_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buySpec5_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buySpec4_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buyItem2_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"buyItem1_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 411 MovieClip
"wep1_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 414 MovieClip
"wep2_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 424 MovieClip
"wep3_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 427 MovieClip
"wep4_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 430 MovieClip
"wep5_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 433 MovieClip
"wep6_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 436 MovieClip
"wep7_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 439 MovieClip
"spec1_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 442 MovieClip
"spec2_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 445 MovieClip
"spec3_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 448 MovieClip
"spec4_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 451 MovieClip
"spec5_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 454 MovieClip
"spec6_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 457 MovieClip
"item1_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 460 MovieClip
"item2_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 463 MovieClip
"upgradeSpd_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 466 MovieClip
"upgradeArmor_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 466 MovieClip
"back_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 382 MovieClip
"startMission_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 469 MovieClip
"spec1Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 470 EditableText
"spec2Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 471 EditableText
"spec3Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 472 EditableText
"spec4Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 473 EditableText
"spec5Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 474 EditableText
"spec6Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 475 EditableText
"item1Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 476 EditableText
"item2Price_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 477 EditableText
"armorPrice_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 478 EditableText
"speedPrice_txt"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 479 EditableText
"wep8_btn"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 485 MovieClip
"showSelectedSpecial_mc"Symbol 488 MovieClip {StitchedWar_viral_v1_fla.mc_prelevelContainer_37} Frame 1Symbol 487 MovieClip
"wep2_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 1Symbol 424 MovieClip
"wep3_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 3Symbol 427 MovieClip
"wep4_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 4Symbol 430 MovieClip
"wep5_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 5Symbol 433 MovieClip
"wep6_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 6Symbol 436 MovieClip
"wep7_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 7Symbol 439 MovieClip
"wep8_btn"Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60} Frame 8Symbol 485 MovieClip
"wepName_txt"Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58} Frame 1Symbol 489 EditableText
"wepDes_txt"Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58} Frame 1Symbol 490 EditableText
"ok_btn"Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58} Frame 1Symbol 494 MovieClip
"showWep_mc"Symbol 496 MovieClip {StitchedWar_viral_v1_fla.mc_newWepPrompt_58} Frame 1Symbol 495 MovieClip {StitchedWar_viral_v1_fla.mc_newWepSHow_60}
"body_mc"Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72} Frame 1Symbol 533 MovieClip {StitchedWar_viral_v1_fla.mc_playersBody_73}
"turret_mc"Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72} Frame 1Symbol 550 MovieClip {StitchedWar_viral_v1_fla.mc_playersTurret_74}
"shield_mc"Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72} Frame 1Symbol 555 MovieClip {StitchedWar_viral_v1_fla.mc_shield_75}
"hitBox_mc"Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 557 MovieClip {StitchedWar_viral_v1_fla.mc_iCrosshair_76} Frame 1Symbol 39 MovieClip
"player_mc"Symbol 558 MovieClip {StitchedWar_viral_v1_fla.mc_levelContainer_70} Frame 1Symbol 556 MovieClip {StitchedWar_viral_v1_fla.mc_player_72}
"iCrosshair_mc"Symbol 558 MovieClip {StitchedWar_viral_v1_fla.mc_levelContainer_70} Frame 1Symbol 557 MovieClip {StitchedWar_viral_v1_fla.mc_iCrosshair_76}
"barMasker_mc"Symbol 566 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoBar_79} Frame 1Symbol 563 MovieClip
"ammoName_txt"Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78} Frame 1Symbol 560 EditableText
"bar_mc"Symbol 567 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoUIHolder_78} Frame 1Symbol 566 MovieClip {StitchedWar_viral_v1_fla.mc_playerAmmoBar_79}
"barMasker_mc"Symbol 573 MovieClip {StitchedWar_viral_v1_fla.mc_specialBar_81} Frame 1Symbol 570 MovieClip
"specialName_txt"Symbol 573 MovieClip {StitchedWar_viral_v1_fla.mc_specialBar_81} Frame 1Symbol 572 EditableText
"bar_mc"Symbol 577 MovieClip {StitchedWar_viral_v1_fla.mc_playerLifebar_83} Frame 1Symbol 570 MovieClip
"barMasker_mc"Symbol 581 MovieClip {StitchedWar_viral_v1_fla.mc_shieldBar_84} Frame 1Symbol 570 MovieClip
"bar_mc"Symbol 588 MovieClip {StitchedWar_viral_v1_fla.mc_bossLifebar_85} Frame 1Symbol 570 MovieClip
"showKills_txt"Symbol 603 MovieClip {StitchedWar_viral_v1_fla.mc_showKills_91} Frame 1Symbol 602 EditableText
"hitBox_mc"Symbol 605 MovieClip {StitchedWar_viral_v1_fla.btn_inGameArmorgameLogo_92} Frame 1Symbol 39 MovieClip
"hitBox_mc"Symbol 650 MovieClip {StitchedWar_viral_v1_fla.btn_submitScore_103} Frame 1Symbol 39 MovieClip
"ribbon2_mc"Symbol 666 MovieClip {StitchedWar_viral_v1_fla.mc_awardIcon_106} Frame 2Symbol 27 MovieClip
"ribbon1_mc"Symbol 666 MovieClip {StitchedWar_viral_v1_fla.mc_awardIcon_106} Frame 2Symbol 27 MovieClip
"head"Symbol 666 MovieClip {StitchedWar_viral_v1_fla.mc_awardIcon_106} Frame 2Symbol 30 MovieClip
"awardIcon"Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105} Frame 1Symbol 666 MovieClip {StitchedWar_viral_v1_fla.mc_awardIcon_106}
"awardName_txt"Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105} Frame 1Symbol 667 EditableText
"awardDesc_txt"Symbol 669 MovieClip {StitchedWar_viral_v1_fla.mc_award_105} Frame 1Symbol 668 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.

Labels

"initialization"Frame 4
"title"Frame 5
"howTo"Frame 6
"prelevel"Frame 7
"gameScreen_lvl1"Frame 8
"gameScreen_lvl2"Frame 9
"gameScreen_lvl3"Frame 10
"gameScreen_lvl4"Frame 11
"gameScreen_lvl5"Frame 12
"gameScreen_lvl6"Frame 13
"gameScreen_lvl7"Frame 14
"gameScreen_lvl8"Frame 15
"gameScreen_lvl9"Frame 16
"gameScreen_lvl10"Frame 17
"gameScreen_lvl11"Frame 18
"gameScreen_lvl12"Frame 19
"postLevelWin"Frame 20
"postLevelLost"Frame 21
"postLevelFinish"Frame 22
"awardsScreen"Frame 23
"credits"Frame 24
"highscoreSubmit"Frame 25
"highscoreShow"Frame 26




http://swfchan.com/19/92903/info.shtml
Created: 27/3 -2019 05:20:07 Last modified: 27/3 -2019 05:20:07 Server time: 22/12 -2024 20:32:05