· 9 years ago · Jan 01, 2017, 06:40 AM
1package {
2 import mx.core.*;
3 import mx.styles.*;
4
5 public class _plainStyle {
6
7 public static function init(_arg1:IFlexModuleFactory):void{
8 var fbs:* = _arg1;
9 var style:* = StyleManager.getStyleDeclaration(".plain");
10 if (!style){
11 style = new CSSStyleDeclaration();
12 StyleManager.setStyleDeclaration(".plain", style, false);
13 };
14 if (style.defaultFactory == null){
15 style.defaultFactory = function ():void{
16 this.paddingTop = 0;
17 this.backgroundColor = 0xFFFFFF;
18 this.backgroundImage = "";
19 this.horizontalAlign = "left";
20 this.paddingLeft = 0;
21 this.paddingBottom = 0;
22 this.paddingRight = 0;
23 };
24 };
25 }
26
27 }
28}//package
29package {
30 import flash.display.*;
31 import org.flixel.*;
32
33 public class IntroState2 extends FlxState {
34
35 public var rt:RevealText;
36 public var mouseImage:Class;
37 private var white:Class;
38 public var _buf:Sprite;
39
40 public function IntroState2(_arg1:Sprite){
41 white = IntroState2_white;
42 mouseImage = IntroState2_mouseImage;
43 super();
44 add(new FlxSprite(0, 0, white));
45 var _local2 = "It's important to watch out for telltale signs that a relationship may develop into an abusive one. In particular, if your signifcant other:\n\n-has a history of discipline problems\n-tends to blame you for his/her anger\n-has a history of violent behavior\n-threatens others regularly\n-insults you or calls you names\n-has trouble controlling feelings like anger\n-tells you what to wear or what to do\n-threatens of intimidates you to get his/her way\n-prevents you from being with friends or family";
46 rt = new RevealText(20, 10, 0.01, 1, 260, _local2, false);
47 rt.color = 4278190080;
48 var _local3:FlxSprite = new FlxSprite(280, 135);
49 _local3.color = 4290493371;
50 this._buf = _arg1;
51 _local3.loadGraphic(mouseImage, true, false, 12, 18);
52 _local3.addAnimation("go", [0, 1], 3, true);
53 _local3.play("go");
54 add(_local3);
55 add(rt);
56 }
57 override public function update():void{
58 if (FlxG.mouse.justReleased()){
59 if (rt.isDone()){
60 FlxG.fade.start(4294967295, 1, nextstate);
61 } else {
62 rt.revealAll();
63 };
64 };
65 super.update();
66 }
67 public function nextstate():void{
68 FlxG.state = new IntroState3(_buf);
69 }
70
71 }
72}//package
73package {
74 import mx.core.*;
75
76 public class PlayState_bookcaseImage extends BitmapAsset {
77
78 }
79}//package
80package {
81 import mx.core.*;
82
83 public class PlayState_vaseImage extends BitmapAsset {
84
85 }
86}//package
87package {
88 import mx.core.*;
89 import mx.styles.*;
90
91 public class _headerDateTextStyle {
92
93 public static function init(_arg1:IFlexModuleFactory):void{
94 var fbs:* = _arg1;
95 var style:* = StyleManager.getStyleDeclaration(".headerDateText");
96 if (!style){
97 style = new CSSStyleDeclaration();
98 StyleManager.setStyleDeclaration(".headerDateText", style, false);
99 };
100 if (style.defaultFactory == null){
101 style.defaultFactory = function ():void{
102 this.fontWeight = "bold";
103 this.textAlign = "center";
104 };
105 };
106 }
107
108 }
109}//package
110package {
111 import flash.display.*;
112 import org.flixel.*;
113
114 public class IntroState3 extends FlxState {
115
116 public var rt:RevealText;
117 public var mouseImage:Class;
118 private var white:Class;
119 public var _buf:Sprite;
120
121 public function IntroState3(_arg1:Sprite){
122 white = IntroState3_white;
123 mouseImage = IntroState3_mouseImage;
124 super();
125 add(new FlxSprite(0, 0, white));
126 this._buf = _arg1;
127 var _local2 = "Now that you've learned a little about the prevalent issue of teen dating violence, let's see if you can help a young girl make a decision of paramount importance.\n\n\n\n\n\n\nThis is a story that could happen anywhere, any time, to anybody.";
128 rt = new RevealText(20, 10, 0.01, 1, 260, _local2, false);
129 rt.color = 4278190080;
130 var _local3:FlxSprite = new FlxSprite(280, 135);
131 _local3.color = 4290493371;
132 _local3.loadGraphic(mouseImage, true, false, 12, 18);
133 _local3.addAnimation("go", [0, 1], 3, true);
134 _local3.play("go");
135 add(_local3);
136 add(rt);
137 }
138 override public function update():void{
139 if (FlxG.mouse.justReleased()){
140 if (rt.isDone()){
141 FlxG.fade.start(4278190080, 1, nextstate);
142 } else {
143 rt.revealAll();
144 };
145 };
146 super.update();
147 }
148 public function nextstate():void{
149 FlxG.state = new PlayState(_buf);
150 }
151
152 }
153}//package
154package {
155 import org.flixel.*;
156
157 public class Preloader extends FlxPreloader {
158
159 public function Preloader():void{
160 className = "Main";
161 super();
162 }
163 }
164}//package
165package {
166 import mx.core.*;
167
168 public class PlayState_deskImage extends BitmapAsset {
169
170 }
171}//package
172package {
173 import mx.core.*;
174
175 public class PlayState_streetlightImage extends BitmapAsset {
176
177 }
178}//package
179package {
180 import mx.core.*;
181
182 public class PlayState_shoesImage extends BitmapAsset {
183
184 }
185}//package
186package {
187 import mx.resources.*;
188
189 public class en_US$skins_properties extends ResourceBundle {
190
191 public function en_US$skins_properties(){
192 super("en_US", "skins");
193 }
194 override protected function getContent():Object{
195 var _local1:Object = {notLoaded:"Unable to load '{0}'."};
196 return (_local1);
197 }
198
199 }
200}//package
201package {
202 import mx.core.*;
203
204 public class PlayState_mirrorImage extends BitmapAsset {
205
206 }
207}//package
208package {
209 import mx.core.*;
210
211 public class PlayState_ingredientlist extends ByteArrayAsset {
212
213 }
214}//package
215package {
216 import mx.core.*;
217
218 public class Timer_hp2_img extends BitmapAsset {
219
220 }
221}//package
222package {
223 import flash.display.*;
224 import org.flixel.*;
225
226 public class IntroState extends FlxState {
227
228 public var rt:RevealText;
229 public var mouseImage:Class;
230 private var white:Class;
231 public var _buf:Sprite;
232
233 public function IntroState(_arg1:Sprite){
234 white = IntroState_white;
235 mouseImage = IntroState_mouseImage;
236 super();
237 add(new FlxSprite(0, 0, white));
238 var _local2 = "Approximately 1 in 5 female high school students report being physically and/or sexually abused by a dating partner.\n\nJay G. Silverman, PhD; Anita Raj, PhD; Lorelei A. Mucci, MPH; and Jeanne E. Hathaway, MD, MPH, \"Dating Violence Against Adolescent Girls and Associated Substance Use, Unhealthy Weight Control, Sexual Risk Behavior, Pregnancy, and Suicidality, Journal of the American Medical Association, Vol. 286, (No. 5, 2001).\"";
239 rt = new RevealText(20, 10, 0.01, 1, 260, _local2, false);
240 rt.color = 4278190080;
241 var _local3:FlxSprite = new FlxSprite(280, 135);
242 _local3.color = 4290493371;
243 _local3.loadGraphic(mouseImage, true, false, 12, 18);
244 _local3.addAnimation("go", [0, 1], 3, true);
245 this._buf = _arg1;
246 _local3.play("go");
247 add(_local3);
248 add(rt);
249 }
250 override public function update():void{
251 if (FlxG.mouse.justReleased()){
252 if (rt.isDone()){
253 FlxG.fade.start(4294967295, 1, nextstate);
254 } else {
255 rt.revealAll();
256 };
257 };
258 super.update();
259 }
260 public function nextstate():void{
261 FlxG.state = new IntroState2(_buf);
262 }
263
264 }
265}//package
266package {
267 import org.flixel.*;
268
269 public class Main extends FlxGame {
270
271 public function Main():void{
272 super(300, 160, MenuState, 3);
273 }
274 }
275}//package
276package {
277 import mx.core.*;
278 import mx.styles.*;
279
280 public class _activeButtonStyleStyle {
281
282 public static function init(_arg1:IFlexModuleFactory):void{
283 var fbs:* = _arg1;
284 var style:* = StyleManager.getStyleDeclaration(".activeButtonStyle");
285 if (!style){
286 style = new CSSStyleDeclaration();
287 StyleManager.setStyleDeclaration(".activeButtonStyle", style, false);
288 };
289 if (style.defaultFactory == null){
290 style.defaultFactory = function ():void{
291 };
292 };
293 }
294
295 }
296}//package
297package {
298 import mx.core.*;
299 import mx.styles.*;
300
301 public class _todayStyleStyle {
302
303 public static function init(_arg1:IFlexModuleFactory):void{
304 var fbs:* = _arg1;
305 var style:* = StyleManager.getStyleDeclaration(".todayStyle");
306 if (!style){
307 style = new CSSStyleDeclaration();
308 StyleManager.setStyleDeclaration(".todayStyle", style, false);
309 };
310 if (style.defaultFactory == null){
311 style.defaultFactory = function ():void{
312 this.color = 0xFFFFFF;
313 this.textAlign = "center";
314 };
315 };
316 }
317
318 }
319}//package
320package {
321 import mx.core.*;
322 import mx.styles.*;
323
324 public class _errorTipStyle {
325
326 public static function init(_arg1:IFlexModuleFactory):void{
327 var fbs:* = _arg1;
328 var style:* = StyleManager.getStyleDeclaration(".errorTip");
329 if (!style){
330 style = new CSSStyleDeclaration();
331 StyleManager.setStyleDeclaration(".errorTip", style, false);
332 };
333 if (style.defaultFactory == null){
334 style.defaultFactory = function ():void{
335 this.fontWeight = "bold";
336 this.borderStyle = "errorTipRight";
337 this.paddingTop = 4;
338 this.borderColor = 13510953;
339 this.color = 0xFFFFFF;
340 this.fontSize = 9;
341 this.shadowColor = 0;
342 this.paddingLeft = 4;
343 this.paddingBottom = 4;
344 this.paddingRight = 4;
345 };
346 };
347 }
348
349 }
350}//package
351package {
352 import mx.resources.*;
353
354 public class en_US$core_properties extends ResourceBundle {
355
356 public function en_US$core_properties(){
357 super("en_US", "core");
358 }
359 override protected function getContent():Object{
360 var _local1:Object = {
361 multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).",
362 truncationIndicator:"...",
363 notExecuting:"Repeater is not executing.",
364 versionAlreadyRead:"Compatibility version has already been read.",
365 multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).",
366 viewSource:"View Source",
367 badFile:"File does not exist.",
368 stateUndefined:"Undefined state '{0}'.",
369 versionAlreadySet:"Compatibility version has already been set."
370 };
371 return (_local1);
372 }
373
374 }
375}//package
376package {
377 import mx.core.*;
378
379 public class PlayState_script extends ByteArrayAsset {
380
381 }
382}//package
383package {
384 import mx.core.*;
385 import mx.styles.*;
386
387 public class _textAreaHScrollBarStyleStyle {
388
389 public static function init(_arg1:IFlexModuleFactory):void{
390 var fbs:* = _arg1;
391 var style:* = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle");
392 if (!style){
393 style = new CSSStyleDeclaration();
394 StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false);
395 };
396 if (style.defaultFactory == null){
397 style.defaultFactory = function ():void{
398 };
399 };
400 }
401
402 }
403}//package
404package {
405 import mx.core.*;
406 import mx.styles.*;
407
408 public class _weekDayStyleStyle {
409
410 public static function init(_arg1:IFlexModuleFactory):void{
411 var fbs:* = _arg1;
412 var style:* = StyleManager.getStyleDeclaration(".weekDayStyle");
413 if (!style){
414 style = new CSSStyleDeclaration();
415 StyleManager.setStyleDeclaration(".weekDayStyle", style, false);
416 };
417 if (style.defaultFactory == null){
418 style.defaultFactory = function ():void{
419 this.fontWeight = "bold";
420 this.textAlign = "center";
421 };
422 };
423 }
424
425 }
426}//package
427package {
428 import mx.core.*;
429
430 public class ShowAffair_vaseFallImage extends BitmapAsset {
431
432 }
433}//package
434package {
435 import mx.core.*;
436
437 public class PlayState_bedImage extends BitmapAsset {
438
439 }
440}//package
441package {
442 import mx.core.*;
443
444 public class PlayState_thunderSound extends SoundAsset {
445
446 }
447}//package
448package {
449 import mx.core.*;
450
451 public class MenuState_bgImage extends BitmapAsset {
452
453 }
454}//package
455package {
456 import mx.core.*;
457
458 public class PlayState_arrowImage extends BitmapAsset {
459
460 }
461}//package
462package {
463 import mx.core.*;
464
465 public class IntroState_mouseImage extends BitmapAsset {
466
467 }
468}//package
469package org.flixel {
470 import flash.events.*;
471 import flash.display.*;
472 import flash.geom.*;
473 import org.flixel.data.*;
474 import flash.text.*;
475 import flash.utils.*;
476 import flash.ui.*;
477
478 public class FlxGame extends Sprite {
479
480 const MAX_ELAPSED:Number = 0.0333;
481
482 var _bmpFront:Bitmap;
483 protected var SndFlixel:Class;
484 var _state:FlxState;
485 protected var SndBeep:Class;
486 var _console:FlxConsole;
487 var _created:Boolean;
488 var _zoom:uint;
489 var _gameXOffset:int;
490 var _elapsed:Number;
491 var _flipped:Boolean;
492 var _total:uint;
493 var _soundTrayBars:Array;
494 public var useDefaultHotKeys:Boolean;
495 protected var junk:String = "FlxGame_junk";
496 var _zeroPoint:Point;
497 var _bmpBack:Bitmap;
498 var _iState:Class;
499 var _paused:Boolean;
500 var _gameYOffset:int;
501 public var _buffer:Sprite;
502 var _soundTray:Sprite;
503 var _frame:Class;
504 var _r:Rectangle;
505 public var pause:FlxGroup;
506 var _soundTrayTimer:Number;
507
508 public function FlxGame(_arg1:uint, _arg2:uint, _arg3:Class, _arg4:uint=2){
509 SndBeep = FlxGame_SndBeep;
510 SndFlixel = FlxGame_SndFlixel;
511 super();
512 Mouse.hide();
513 _zoom = _arg4;
514 FlxState.bgColor = 4278190080;
515 FlxG.setGameData(this, _arg1, _arg2, _arg4);
516 _elapsed = 0;
517 _total = 0;
518 pause = new FlxPause();
519 _state = null;
520 _iState = _arg3;
521 _zeroPoint = new Point();
522 useDefaultHotKeys = true;
523 _frame = null;
524 _gameXOffset = 0;
525 _gameYOffset = 0;
526 _paused = false;
527 _created = false;
528 addEventListener(Event.ENTER_FRAME, onEnterFrame);
529 }
530 function pauseGame():void{
531 if (((!((x == 0))) || (!((y == 0))))){
532 x = 0;
533 y = 0;
534 };
535 if (!_flipped){
536 _bmpBack.bitmapData.copyPixels(_bmpFront.bitmapData, _r, _zeroPoint);
537 } else {
538 _bmpFront.bitmapData.copyPixels(_bmpBack.bitmapData, _r, _zeroPoint);
539 };
540 Mouse.show();
541 _paused = true;
542 stage.frameRate = 10;
543 }
544 function unpauseGame():void{
545 if (!FlxG.panel.visible){
546 Mouse.hide();
547 };
548 FlxG.resetInput();
549 _paused = false;
550 stage.frameRate = 60;
551 }
552 protected function onFocus(_arg1:Event=null):void{
553 if (FlxG.pause){
554 FlxG.pause = false;
555 };
556 }
557 protected function onKeyUp(_arg1:KeyboardEvent):void{
558 var _local2:int;
559 var _local3:String;
560 if ((((_arg1.keyCode == 192)) || ((_arg1.keyCode == 220)))){
561 _console.toggle();
562 return;
563 };
564 if (useDefaultHotKeys){
565 _local2 = _arg1.keyCode;
566 _local3 = String.fromCharCode(_arg1.charCode);
567 switch (_local2){
568 case 48:
569 case 96:
570 FlxG.mute = !(FlxG.mute);
571 showSoundTray();
572 return;
573 case 109:
574 case 189:
575 FlxG.mute = false;
576 FlxG.volume = (FlxG.volume - 0.1);
577 showSoundTray();
578 return;
579 case 107:
580 case 187:
581 FlxG.mute = false;
582 FlxG.volume = (FlxG.volume + 0.1);
583 showSoundTray();
584 return;
585 case 80:
586 FlxG.pause = !(FlxG.pause);
587 };
588 };
589 FlxG.keys.handleKeyUp(_arg1);
590 }
591 public function switchState(_arg1:FlxState):void{
592 FlxG.panel.hide();
593 FlxG.unfollow();
594 FlxG.resetInput();
595 FlxG.destroySounds();
596 FlxG.flash.stop();
597 FlxG.fade.stop();
598 FlxG.quake.stop();
599 _buffer.x = 0;
600 _buffer.y = 0;
601 _buffer.addChild(_arg1);
602 if (_state != null){
603 _state.destroy();
604 _buffer.swapChildren(_arg1, _state);
605 _buffer.removeChild(_state);
606 };
607 _state = _arg1;
608 _state.create();
609 }
610 protected function addFrame(_arg1:Class, _arg2:uint, _arg3:uint):FlxGame{
611 _frame = _arg1;
612 _gameXOffset = _arg2;
613 _gameYOffset = _arg3;
614 return (this);
615 }
616 protected function onEnterFrame(_arg1:Event):void{
617 var _local2:uint;
618 var _local3:FlxSave;
619 var _local5:String;
620 var _local6:String;
621 var _local7:Bitmap;
622 var _local8:TextField;
623 var _local9:uint;
624 var _local10:uint;
625 var _local11:Bitmap;
626 var _local4:uint = getTimer();
627 _elapsed = ((_local4 - _total) / 1000);
628 if (_created){
629 _console.lastElapsed = _elapsed;
630 };
631 _total = _local4;
632 FlxG.elapsed = _elapsed;
633 if (FlxG.elapsed > MAX_ELAPSED){
634 FlxG.elapsed = MAX_ELAPSED;
635 };
636 FlxG.elapsed = (FlxG.elapsed * FlxG.timeScale);
637 if (_soundTray != null){
638 if (_soundTrayTimer > 0){
639 _soundTrayTimer = (_soundTrayTimer - _elapsed);
640 } else {
641 if (_soundTray.y > -(_soundTray.height)){
642 _soundTray.y = (_soundTray.y - ((_elapsed * FlxG.height) * 2));
643 if (_soundTray.y <= -(_soundTray.height)){
644 _soundTray.visible = false;
645 _local3 = new FlxSave();
646 if (_local3.bind("flixel")){
647 if (_local3.data.sound == null){
648 _local3.data.sound = new Object();
649 };
650 _local3.data.mute = FlxG.mute;
651 _local3.data.volume = FlxG.volume;
652 _local3.forceSave();
653 };
654 };
655 };
656 };
657 };
658 if (_created){
659 FlxG.panel.update();
660 _console.update();
661 FlxG.updateInput();
662 FlxG.updateSounds();
663 if (_paused){
664 pause.update();
665 if (_flipped){
666 FlxG.buffer.copyPixels(_bmpFront.bitmapData, _r, _zeroPoint);
667 } else {
668 FlxG.buffer.copyPixels(_bmpBack.bitmapData, _r, _zeroPoint);
669 };
670 pause.render();
671 } else {
672 if (_flipped){
673 FlxG.buffer = _bmpFront.bitmapData;
674 } else {
675 FlxG.buffer = _bmpBack.bitmapData;
676 };
677 FlxState.screen.unsafeBind(FlxG.buffer);
678 _state.preProcess();
679 FlxG.doFollow();
680 _state.update();
681 if (FlxG.flash.exists){
682 FlxG.flash.update();
683 };
684 if (FlxG.fade.exists){
685 FlxG.fade.update();
686 };
687 FlxG.quake.update();
688 _buffer.x = FlxG.quake.x;
689 _buffer.y = FlxG.quake.y;
690 _state.render();
691 if (FlxG.flash.exists){
692 FlxG.flash.render();
693 };
694 if (FlxG.fade.exists){
695 FlxG.fade.render();
696 };
697 if (FlxG.panel.visible){
698 FlxG.panel.render();
699 };
700 if (FlxG.mouse.cursor != null){
701 if (FlxG.mouse.cursor.active){
702 FlxG.mouse.cursor.update();
703 };
704 if (FlxG.mouse.cursor.visible){
705 FlxG.mouse.cursor.render();
706 };
707 };
708 _state.postProcess();
709 _bmpBack.visible = !((_bmpFront.visible = _flipped));
710 _flipped = !(_flipped);
711 };
712 } else {
713 if (root != null){
714 stage.scaleMode = StageScaleMode.NO_SCALE;
715 stage.align = StageAlign.TOP_LEFT;
716 stage.frameRate = 60;
717 _buffer = new Sprite();
718 _buffer.scaleX = _zoom;
719 _buffer.scaleY = _zoom;
720 addChild(_buffer);
721 _bmpBack = new Bitmap(new BitmapData(FlxG.width, FlxG.height, true, FlxState.bgColor));
722 _bmpBack.x = _gameXOffset;
723 _bmpBack.y = _gameYOffset;
724 _buffer.addChild(_bmpBack);
725 _bmpFront = new Bitmap(new BitmapData(_bmpBack.width, _bmpBack.height, true, FlxState.bgColor));
726 _bmpFront.x = _bmpBack.x;
727 _bmpFront.y = _bmpBack.y;
728 _buffer.addChild(_bmpFront);
729 _flipped = false;
730 _r = new Rectangle(0, 0, _bmpFront.width, _bmpFront.height);
731 _console = new FlxConsole(_gameXOffset, _gameYOffset, _zoom);
732 addChild(_console);
733 _local5 = ((((FlxG.LIBRARY_NAME + " v") + FlxG.LIBRARY_MAJOR_VERSION) + ".") + FlxG.LIBRARY_MINOR_VERSION);
734 if (FlxG.debug){
735 _local5 = (_local5 + " [debug]");
736 } else {
737 _local5 = (_local5 + " [release]");
738 };
739 _local6 = "";
740 _local2 = 0;
741 while (_local2 < (_local5.length + 32)) {
742 _local6 = (_local6 + "-");
743 _local2++;
744 };
745 FlxG.log(_local5);
746 FlxG.log(_local6);
747 stage.addEventListener(KeyboardEvent.KEY_DOWN, FlxG.keys.handleKeyDown);
748 stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
749 stage.addEventListener(MouseEvent.MOUSE_DOWN, FlxG.mouse.handleMouseDown);
750 stage.addEventListener(MouseEvent.MOUSE_UP, FlxG.mouse.handleMouseUp);
751 stage.addEventListener(MouseEvent.MOUSE_OUT, FlxG.mouse.handleMouseOut);
752 stage.addEventListener(MouseEvent.MOUSE_OVER, FlxG.mouse.handleMouseOver);
753 stage.addEventListener(Event.DEACTIVATE, onFocusLost);
754 stage.addEventListener(Event.ACTIVATE, onFocus);
755 _soundTray = new Sprite();
756 _soundTray.visible = false;
757 _soundTray.scaleX = 2;
758 _soundTray.scaleY = 2;
759 _local7 = new Bitmap(new BitmapData(80, 30, true, 2130706432));
760 _soundTray.x = (((_gameXOffset + (FlxG.width / 2)) * _zoom) - ((_local7.width / 2) * _soundTray.scaleX));
761 _soundTray.addChild(_local7);
762 _local8 = new TextField();
763 _local8.width = _local7.width;
764 _local8.height = _local7.height;
765 _local8.multiline = true;
766 _local8.wordWrap = true;
767 _local8.selectable = false;
768 _local8.embedFonts = true;
769 _local8.antiAliasType = AntiAliasType.NORMAL;
770 _local8.gridFitType = GridFitType.PIXEL;
771 _local8.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, null, null, null, null, null, "center");
772 _soundTray.addChild(_local8);
773 _local8.text = "VOLUME";
774 _local8.y = 16;
775 _local9 = 10;
776 _local10 = 14;
777 _soundTrayBars = new Array();
778 _local2 = 0;
779 while (_local2 < 10) {
780 _local7 = new Bitmap(new BitmapData(4, (_local2 + 1), false, 0xFFFFFF));
781 _local7.x = _local9;
782 _local7.y = _local10;
783 _soundTrayBars.push(_soundTray.addChild(_local7));
784 _local9 = (_local9 + 6);
785 _local10--;
786 _local2++;
787 };
788 addChild(_soundTray);
789 if (_frame != null){
790 _local11 = new _frame();
791 _local11.scaleX = _zoom;
792 _local11.scaleY = _zoom;
793 addChild(_local11);
794 };
795 _local3 = new FlxSave();
796 if (((_local3.bind("flixel")) && (!((_local3.data.sound == null))))){
797 if (_local3.data.volume != null){
798 FlxG.volume = _local3.data.volume;
799 };
800 if (_local3.data.mute != null){
801 FlxG.mute = _local3.data.mute;
802 };
803 showSoundTray(true);
804 };
805 _created = true;
806 switchState(new _iState(_buffer));
807 };
808 };
809 }
810 public function showSoundTray(_arg1:Boolean=false):void{
811 if (!_arg1){
812 FlxG.play(SndBeep);
813 };
814 _soundTrayTimer = 1;
815 _soundTray.y = (_gameYOffset * _zoom);
816 _soundTray.visible = true;
817 var _local2:uint = Math.round((FlxG.volume * 10));
818 if (FlxG.mute){
819 _local2 = 0;
820 };
821 var _local3:uint;
822 while (_local3 < _soundTrayBars.length) {
823 if (_local3 < _local2){
824 _soundTrayBars[_local3].alpha = 1;
825 } else {
826 _soundTrayBars[_local3].alpha = 0.5;
827 };
828 _local3++;
829 };
830 }
831 protected function onFocusLost(_arg1:Event=null):void{
832 FlxG.pause = true;
833 }
834
835 }
836}//package org.flixel
837package org.flixel {
838 import mx.core.*;
839
840 public class FlxGame_junk extends FontAsset {
841
842 }
843}//package org.flixel
844package org.flixel {
845 import flash.events.*;
846 import flash.display.*;
847 import flash.text.*;
848 import flash.net.*;
849 import flash.utils.*;
850
851 public class FlxPreloader extends MovieClip {
852
853 protected var _height:uint;
854 protected var _width:uint;
855 protected var ImgLogoLight:Class;
856 protected var _logo:Bitmap;
857 protected var _text:TextField;
858 protected var _buffer:Sprite;
859 public var className:String;
860 public var myURL:String;
861 protected var _bmpBar:Bitmap;
862 protected var ImgLogo:Class;
863 protected var _init:Boolean;
864 protected var ImgLogoCorners:Class;
865 protected var _logoGlow:Bitmap;
866
867 public function FlxPreloader(){
868 var tmp:* = null;
869 var re:* = null;
870 var fmt:* = null;
871 var txt:* = null;
872 ImgLogo = FlxPreloader_ImgLogo;
873 ImgLogoCorners = FlxPreloader_ImgLogoCorners;
874 ImgLogoLight = FlxPreloader_ImgLogoLight;
875 super();
876 stop();
877 stage.scaleMode = StageScaleMode.NO_SCALE;
878 stage.align = StageAlign.TOP_LEFT;
879 try {
880 throw (new Error("Setting global debug flag..."));
881 } catch(e:Error) {
882 re = /\[.*:[0-9]+\]/;
883 FlxG.debug = re.test(e.getStackTrace());
884 };
885 if (((((!(FlxG.debug)) && (!((myURL == null))))) && ((root.loaderInfo.url.indexOf(myURL) < 0)))){
886 tmp = new Bitmap(new BitmapData(stage.stageWidth, stage.stageHeight, true, 4294967295));
887 addChild(tmp);
888 fmt = new TextFormat();
889 fmt.color = 0;
890 fmt.size = 16;
891 fmt.align = "center";
892 fmt.bold = true;
893 fmt.font = "system";
894 txt = new TextField();
895 txt.width = (tmp.width - 16);
896 txt.height = (tmp.height - 16);
897 txt.y = 8;
898 txt.multiline = true;
899 txt.wordWrap = true;
900 txt.embedFonts = true;
901 txt.defaultTextFormat = fmt;
902 txt.text = (("Hi there! It looks like somebody copied this game without my permission. Just click anywhere, or copy-paste this URL into your browser.\n\n" + myURL) + "\n\nto play the game at my site. Thanks, and have fun!");
903 addChild(txt);
904 txt.addEventListener(MouseEvent.CLICK, goToMyURL);
905 tmp.addEventListener(MouseEvent.CLICK, goToMyURL);
906 return;
907 };
908 _init = false;
909 addEventListener(Event.ENTER_FRAME, onEnterFrame);
910 }
911 protected function update(_arg1:Number):void{
912 _bmpBar.scaleX = (_arg1 * (_width - 8));
913 _text.text = (((((("FLX v" + FlxG.LIBRARY_MAJOR_VERSION) + ".") + FlxG.LIBRARY_MINOR_VERSION) + " ") + FlxU.floor((_arg1 * 100))) + "%");
914 _text.setTextFormat(_text.defaultTextFormat);
915 if (_arg1 < 0.1){
916 _logoGlow.alpha = 0;
917 _logo.alpha = 0;
918 } else {
919 if (_arg1 < 0.15){
920 _logoGlow.alpha = FlxU.random(false);
921 _logo.alpha = 0;
922 } else {
923 if (_arg1 < 0.2){
924 _logoGlow.alpha = 0;
925 _logo.alpha = 0;
926 } else {
927 if (_arg1 < 0.25){
928 _logoGlow.alpha = 0;
929 _logo.alpha = FlxU.random(false);
930 } else {
931 if (_arg1 < 0.7){
932 _logoGlow.alpha = ((_arg1 - 0.45) / 0.45);
933 _logo.alpha = 1;
934 } else {
935 if ((((_arg1 > 0.8)) && ((_arg1 < 0.9)))){
936 _logoGlow.alpha = (1 - ((_arg1 - 0.8) / 0.1));
937 _logo.alpha = 0;
938 } else {
939 if (_arg1 > 0.9){
940 _buffer.alpha = (1 - ((_arg1 - 0.9) / 0.1));
941 };
942 };
943 };
944 };
945 };
946 };
947 };
948 }
949 private function goToMyURL(_arg1:MouseEvent=null):void{
950 navigateToURL(new URLRequest(("http://" + myURL)));
951 }
952 private function onEnterFrame(_arg1:Event):void{
953 var _local2:int;
954 var _local3:Class;
955 var _local4:Object;
956 if (!_init){
957 if ((((stage.stageWidth <= 0)) || ((stage.stageHeight <= 0)))){
958 return;
959 };
960 create();
961 _init = true;
962 };
963 graphics.clear();
964 if (framesLoaded >= totalFrames){
965 removeEventListener(Event.ENTER_FRAME, onEnterFrame);
966 nextFrame();
967 _local3 = Class(getDefinitionByName(className));
968 if (_local3){
969 _local4 = new (_local3);
970 addChild((_local4 as DisplayObject));
971 };
972 removeChild(_buffer);
973 } else {
974 update((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal));
975 };
976 }
977 protected function create():void{
978 var _local3:uint;
979 _buffer = new Sprite();
980 _buffer.scaleX = 2;
981 _buffer.scaleY = 2;
982 addChild(_buffer);
983 _width = (stage.stageWidth / _buffer.scaleX);
984 _height = (stage.stageHeight / _buffer.scaleY);
985 _buffer.addChild(new Bitmap(new BitmapData(_width, _height, false, 0x777777)));
986 var _local1:Bitmap = new ImgLogoLight();
987 _local1.smoothing = true;
988 _local1.width = (_local1.height = _height);
989 _local1.x = ((_width - _local1.width) / 2);
990 _buffer.addChild(_local1);
991 _bmpBar = new Bitmap(new BitmapData(1, 7, false, 6253311));
992 _bmpBar.x = 4;
993 _bmpBar.y = (_height - 11);
994 _buffer.addChild(_bmpBar);
995 _text = new TextField();
996 _text.defaultTextFormat = new TextFormat("system", 8, 6253311);
997 _text.embedFonts = true;
998 _text.selectable = false;
999 _text.multiline = false;
1000 _text.x = 2;
1001 _text.y = (_bmpBar.y - 11);
1002 _text.width = 80;
1003 _buffer.addChild(_text);
1004 _logo = new ImgLogo();
1005 _logo.scaleX = (_logo.scaleY = (_height / 8));
1006 _logo.x = ((_width - _logo.width) / 2);
1007 _logo.y = ((_height - _logo.height) / 2);
1008 _buffer.addChild(_logo);
1009 _logoGlow = new ImgLogo();
1010 _logoGlow.smoothing = true;
1011 _logoGlow.blendMode = "screen";
1012 _logoGlow.scaleX = (_logoGlow.scaleY = (_height / 8));
1013 _logoGlow.x = ((_width - _logoGlow.width) / 2);
1014 _logoGlow.y = ((_height - _logoGlow.height) / 2);
1015 _buffer.addChild(_logoGlow);
1016 _local1 = new ImgLogoCorners();
1017 _local1.smoothing = true;
1018 _local1.width = _width;
1019 _local1.height = _height;
1020 _buffer.addChild(_local1);
1021 _local1 = new Bitmap(new BitmapData(_width, _height, false, 0xFFFFFF));
1022 var _local2:uint;
1023 while (_local2 < _height) {
1024 _local3 = 0;
1025 while (_local3 < _width) {
1026 _local1.bitmapData.setPixel(_local3, _local2, 0);
1027 _local3++;
1028 };
1029 _local2 = (_local2 + 2);
1030 };
1031 _local1.blendMode = "overlay";
1032 _local1.alpha = 0.25;
1033 _buffer.addChild(_local1);
1034 }
1035
1036 }
1037}//package org.flixel
1038package org.flixel {
1039 import flash.net.*;
1040
1041 public class FlxSave {
1042
1043 protected var _so:SharedObject;
1044 public var data:Object;
1045 public var name:String;
1046
1047 public function FlxSave(){
1048 name = null;
1049 _so = null;
1050 data = null;
1051 }
1052 public function read(_arg1:String):Object{
1053 if (_so == null){
1054 FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.read().");
1055 return (null);
1056 };
1057 return (data[_arg1]);
1058 }
1059 public function forceSave(_arg1:uint=0):Boolean{
1060 var MinFileSize:int = _arg1;
1061 if (_so == null){
1062 FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.forceSave().");
1063 return (false);
1064 };
1065 var status:* = null;
1066 try {
1067 status = _so.flush(MinFileSize);
1068 } catch(e:Error) {
1069 FlxG.log("WARNING: There was a problem flushing\nthe shared object data from FlxSave.");
1070 return (false);
1071 };
1072 return ((status == SharedObjectFlushStatus.FLUSHED));
1073 }
1074 public function bind(_arg1:String):Boolean{
1075 var Name:* = _arg1;
1076 name = null;
1077 _so = null;
1078 data = null;
1079 name = Name;
1080 try {
1081 _so = SharedObject.getLocal(name);
1082 } catch(e:Error) {
1083 FlxG.log("WARNING: There was a problem binding to\nthe shared object data from FlxSave.");
1084 name = null;
1085 _so = null;
1086 data = null;
1087 return (false);
1088 };
1089 data = _so.data;
1090 return (true);
1091 }
1092 public function erase(_arg1:uint=0):Boolean{
1093 if (_so == null){
1094 FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.erase().");
1095 return (false);
1096 };
1097 _so.clear();
1098 return (forceSave(_arg1));
1099 }
1100 public function write(_arg1:String, _arg2:Object, _arg3:uint=0):Boolean{
1101 if (_so == null){
1102 FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.write().");
1103 return (false);
1104 };
1105 data[_arg1] = _arg2;
1106 return (forceSave(_arg3));
1107 }
1108
1109 }
1110}//package org.flixel
1111package org.flixel {
1112 import flash.events.*;
1113
1114 public class FlxButton extends FlxGroup {
1115
1116 protected var _on:FlxSprite;
1117 protected var _offT:FlxText;
1118 protected var _initialized:Boolean;
1119 protected var _onT:FlxText;
1120 protected var _pressed:Boolean;
1121 protected var _callback:Function;
1122 protected var _off:FlxSprite;
1123 protected var _onToggle:Boolean;
1124 protected var _sf:FlxPoint;
1125
1126 public function FlxButton(_arg1:int, _arg2:int, _arg3:Function){
1127 x = _arg1;
1128 y = _arg2;
1129 width = 100;
1130 height = 20;
1131 _off = new FlxSprite().createGraphic(width, height, 4286545791);
1132 _off.solid = false;
1133 add(_off, true);
1134 _on = new FlxSprite().createGraphic(width, height, 4294967295);
1135 _on.solid = false;
1136 add(_on, true);
1137 _offT = null;
1138 _onT = null;
1139 _callback = _arg3;
1140 _onToggle = false;
1141 _pressed = false;
1142 _initialized = false;
1143 _sf = null;
1144 }
1145 protected function onMouseUp(_arg1:MouseEvent):void{
1146 if (((((((((!(exists)) || (!(visible)))) || (!(active)))) || (!(FlxG.mouse.justReleased())))) || ((_callback == null)))){
1147 return;
1148 };
1149 if (overlapsPoint(FlxG.mouse.x, FlxG.mouse.y)){
1150 _callback();
1151 };
1152 }
1153 override public function update():void{
1154 if (!_initialized){
1155 if (FlxG.stage != null){
1156 FlxG.stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
1157 _initialized = true;
1158 };
1159 };
1160 super.update();
1161 visibility(false);
1162 if (overlapsPoint(FlxG.mouse.x, FlxG.mouse.y)){
1163 if (!FlxG.mouse.pressed()){
1164 _pressed = false;
1165 } else {
1166 if (!_pressed){
1167 _pressed = true;
1168 };
1169 };
1170 visibility(!(_pressed));
1171 };
1172 if (_onToggle){
1173 visibility(_off.visible);
1174 };
1175 }
1176 protected function visibility(_arg1:Boolean):void{
1177 if (_arg1){
1178 _off.visible = false;
1179 if (_offT != null){
1180 _offT.visible = false;
1181 };
1182 _on.visible = true;
1183 if (_onT != null){
1184 _onT.visible = true;
1185 };
1186 } else {
1187 _on.visible = false;
1188 if (_onT != null){
1189 _onT.visible = false;
1190 };
1191 _off.visible = true;
1192 if (_offT != null){
1193 _offT.visible = true;
1194 };
1195 };
1196 }
1197 public function get on():Boolean{
1198 return (_onToggle);
1199 }
1200 public function loadGraphic(_arg1:FlxSprite, _arg2:FlxSprite=null):FlxButton{
1201 _off = (replace(_off, _arg1) as FlxSprite);
1202 if (_arg2 == null){
1203 if (_on != _off){
1204 remove(_on);
1205 };
1206 _on = _off;
1207 } else {
1208 _on = (replace(_on, _arg2) as FlxSprite);
1209 };
1210 _on.solid = (_off.solid = false);
1211 _off.scrollFactor = scrollFactor;
1212 _on.scrollFactor = scrollFactor;
1213 width = _off.width;
1214 height = _off.height;
1215 refreshHulls();
1216 return (this);
1217 }
1218 public function loadText(_arg1:FlxText, _arg2:FlxText=null):FlxButton{
1219 if (_arg1 != null){
1220 if (_offT == null){
1221 _offT = _arg1;
1222 add(_offT);
1223 } else {
1224 _offT = (replace(_offT, _arg1) as FlxText);
1225 };
1226 };
1227 if (_arg2 == null){
1228 _onT = _offT;
1229 } else {
1230 if (_onT == null){
1231 _onT = _arg2;
1232 add(_onT);
1233 } else {
1234 _onT = (replace(_onT, _arg2) as FlxText);
1235 };
1236 };
1237 _offT.scrollFactor = scrollFactor;
1238 _onT.scrollFactor = scrollFactor;
1239 return (this);
1240 }
1241 override public function destroy():void{
1242 if (FlxG.stage != null){
1243 FlxG.stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
1244 };
1245 }
1246 public function set on(_arg1:Boolean):void{
1247 _onToggle = _arg1;
1248 }
1249
1250 }
1251}//package org.flixel
1252package org.flixel {
1253 import mx.core.*;
1254
1255 public class FlxPreloader_ImgLogo extends BitmapAsset {
1256
1257 }
1258}//package org.flixel
1259package org.flixel {
1260 import mx.core.*;
1261
1262 public class FlxGame_SndBeep extends SoundAsset {
1263
1264 }
1265}//package org.flixel
1266package org.flixel {
1267 import mx.core.*;
1268
1269 public class FlxGame_SndFlixel extends SoundAsset {
1270
1271 }
1272}//package org.flixel
1273package org.flixel {
1274 import flash.net.*;
1275 import flash.utils.*;
1276
1277 public class FlxU {
1278
1279 protected static var _originalSeed:Number;
1280 public static var quadTree:FlxQuadTree;
1281 protected static var _seed:Number;
1282 static var roundingError:Number = 1E-7;
1283 public static var quadTreeBounds:FlxRect;
1284
1285 public static function random(_arg1:Boolean=true):Number{
1286 var _local2:Number;
1287 if (((_arg1) && (!(isNaN(_seed))))){
1288 _local2 = randomize(_seed);
1289 _seed = mutate(_seed, _local2);
1290 return (_local2);
1291 };
1292 return (Math.random());
1293 }
1294 public static function mutate(_arg1:Number, _arg2:Number):Number{
1295 _arg1 = (_arg1 + _arg2);
1296 if (_arg1 > 1){
1297 _arg1 = (_arg1 - int(_arg1));
1298 };
1299 return (_arg1);
1300 }
1301 public static function overlap(_arg1:FlxObject, _arg2:FlxObject, _arg3:Function=null):Boolean{
1302 if ((((((((_arg1 == null)) || (!(_arg1.exists)))) || ((_arg2 == null)))) || (!(_arg2.exists)))){
1303 return (false);
1304 };
1305 quadTree = new FlxQuadTree(quadTreeBounds.x, quadTreeBounds.y, quadTreeBounds.width, quadTreeBounds.height);
1306 quadTree.add(_arg1, FlxQuadTree.A_LIST);
1307 if (_arg1 === _arg2){
1308 return (quadTree.overlap(false, _arg3));
1309 };
1310 quadTree.add(_arg2, FlxQuadTree.B_LIST);
1311 return (quadTree.overlap(true, _arg3));
1312 }
1313 public static function getClass(_arg1:String):Class{
1314 return ((getDefinitionByName(_arg1) as Class));
1315 }
1316 public static function openURL(_arg1:String):void{
1317 navigateToURL(new URLRequest(_arg1), "_blank");
1318 }
1319 public static function floor(_arg1:Number):Number{
1320 var _local2:Number = int(_arg1);
1321 return (((_arg1)>0) ? _local2 : ((_local2)!=_arg1) ? (_local2 - 1) : _local2);
1322 }
1323 public static function solveYCollision(_arg1:FlxObject, _arg2:FlxObject):Boolean{
1324 var _local5:Number;
1325 var _local7:Boolean;
1326 var _local14:uint;
1327 var _local15:uint;
1328 var _local22:Number;
1329 var _local23:Number;
1330 var _local24:Number;
1331 var _local25:Number;
1332 var _local26:Number;
1333 var _local27:Number;
1334 var _local28:Number;
1335 var _local29:Number;
1336 var _local3:Number = _arg1.colVector.y;
1337 var _local4:Number = _arg2.colVector.y;
1338 if (_local3 == _local4){
1339 return (false);
1340 };
1341 _arg1.preCollide(_arg2);
1342 _arg2.preCollide(_arg1);
1343 var _local6:Boolean;
1344 var _local8 = (_local3 == 0);
1345 var _local9 = (_local3 < 0);
1346 var _local10 = (_local3 > 0);
1347 var _local11 = (_local4 == 0);
1348 var _local12 = (_local4 < 0);
1349 var _local13 = (_local4 > 0);
1350 var _local16:FlxRect = _arg1.colHullY;
1351 var _local17:FlxRect = _arg2.colHullY;
1352 var _local18:Array = _arg1.colOffsets;
1353 var _local19:Array = _arg2.colOffsets;
1354 var _local20:uint = _local18.length;
1355 var _local21:uint = _local19.length;
1356 _local7 = ((((((((((_local8) && (_local12))) || (((_local10) && (_local11))))) || (((_local10) && (_local12))))) || (((((_local9) && (_local12))) && ((((_local3)>0) ? _local3 : -(_local3) < ((_local4)>0) ? _local4 : -(_local4))))))) || (((((_local10) && (_local13))) && ((((_local3)>0) ? _local3 : -(_local3) > ((_local4)>0) ? _local4 : -(_local4))))));
1357 if ((_local7) ? ((!(_arg1.collideBottom)) || (!(_arg2.collideTop))) : ((!(_arg1.collideTop)) || (!(_arg2.collideBottom)))){
1358 return (false);
1359 };
1360 _local14 = 0;
1361 while (_local14 < _local20) {
1362 _local22 = _local18[_local14].x;
1363 _local23 = _local18[_local14].y;
1364 _local16.x = (_local16.x + _local22);
1365 _local16.y = (_local16.y + _local23);
1366 _local15 = 0;
1367 while (_local15 < _local21) {
1368 _local24 = _local19[_local15].x;
1369 _local25 = _local19[_local15].y;
1370 _local17.x = (_local17.x + _local24);
1371 _local17.y = (_local17.y + _local25);
1372 if (((((((((_local16.x + _local16.width) < (_local17.x + roundingError))) || (((_local16.x + roundingError) > (_local17.x + _local17.width))))) || (((_local16.y + _local16.height) < (_local17.y + roundingError))))) || (((_local16.y + roundingError) > (_local17.y + _local17.height))))){
1373 _local17.x = (_local17.x - _local24);
1374 _local17.y = (_local17.y - _local25);
1375 } else {
1376 if (_local7){
1377 if (_local9){
1378 _local26 = (_local16.y + _arg1.colHullX.height);
1379 } else {
1380 _local26 = (_local16.y + _local16.height);
1381 };
1382 if (_local12){
1383 _local27 = _local17.y;
1384 } else {
1385 _local27 = ((_local17.y + _local17.height) - _arg2.colHullX.height);
1386 };
1387 } else {
1388 if (_local12){
1389 _local26 = (-(_local17.y) - _arg2.colHullX.height);
1390 } else {
1391 _local26 = (-(_local17.y) - _local17.height);
1392 };
1393 if (_local9){
1394 _local27 = -(_local16.y);
1395 } else {
1396 _local27 = ((-(_local16.y) - _local16.height) + _arg1.colHullX.height);
1397 };
1398 };
1399 _local5 = (_local26 - _local27);
1400 if ((((((_local5 == 0)) || (((!(_arg1.fixed)) && ((((_local5)>0) ? _local5 : -(_local5) > (_local16.height * 0.8))))))) || (((!(_arg2.fixed)) && ((((_local5)>0) ? _local5 : -(_local5) > (_local17.height * 0.8))))))){
1401 _local17.x = (_local17.x - _local24);
1402 _local17.y = (_local17.y - _local25);
1403 } else {
1404 _local6 = true;
1405 _local28 = _arg2.velocity.y;
1406 _local29 = _arg1.velocity.y;
1407 if (((!(_arg1.fixed)) && (_arg2.fixed))){
1408 if (_arg1._group){
1409 _arg1.reset(_arg1.x, (_arg1.y - _local5));
1410 } else {
1411 _arg1.y = (_arg1.y - _local5);
1412 };
1413 } else {
1414 if (((_arg1.fixed) && (!(_arg2.fixed)))){
1415 if (_arg2._group){
1416 _arg2.reset(_arg2.x, (_arg2.y + _local5));
1417 } else {
1418 _arg2.y = (_arg2.y + _local5);
1419 };
1420 } else {
1421 if (((!(_arg1.fixed)) && (!(_arg2.fixed)))){
1422 _local5 = (_local5 / 2);
1423 if (_arg1._group){
1424 _arg1.reset(_arg1.x, (_arg1.y - _local5));
1425 } else {
1426 _arg1.y = (_arg1.y - _local5);
1427 };
1428 if (_arg2._group){
1429 _arg2.reset(_arg2.x, (_arg2.y + _local5));
1430 } else {
1431 _arg2.y = (_arg2.y + _local5);
1432 };
1433 _local28 = (_local28 / 2);
1434 _local29 = (_local29 / 2);
1435 };
1436 };
1437 };
1438 if (_local7){
1439 _arg1.hitBottom(_arg2, _local28);
1440 _arg2.hitTop(_arg1, _local29);
1441 } else {
1442 _arg1.hitTop(_arg2, _local28);
1443 _arg2.hitBottom(_arg1, _local29);
1444 };
1445 if (((!(_arg1.fixed)) && (!((_local5 == 0))))){
1446 if (_local7){
1447 _local16.y = (_local16.y - _local5);
1448 if (((_arg2.fixed) && (_arg2.moves))){
1449 _local28 = _arg2.colVector.x;
1450 _arg1.x = (_arg1.x + _local28);
1451 _local16.x = (_local16.x + _local28);
1452 _arg1.colHullX.x = (_arg1.colHullX.x + _local28);
1453 };
1454 } else {
1455 _local16.y = (_local16.y - _local5);
1456 _local16.height = (_local16.height + _local5);
1457 };
1458 };
1459 if (((!(_arg2.fixed)) && (!((_local5 == 0))))){
1460 if (_local7){
1461 _local17.y = (_local17.y + _local5);
1462 _local17.height = (_local17.height - _local5);
1463 } else {
1464 _local17.height = (_local17.height + _local5);
1465 if (((_arg1.fixed) && (_arg1.moves))){
1466 _local29 = _arg1.colVector.x;
1467 _arg2.x = (_arg2.x + _local29);
1468 _local17.x = (_local17.x + _local29);
1469 _arg2.colHullX.x = (_arg2.colHullX.x + _local29);
1470 };
1471 };
1472 };
1473 _local17.x = (_local17.x - _local24);
1474 _local17.y = (_local17.y - _local25);
1475 };
1476 };
1477 _local15++;
1478 };
1479 _local16.x = (_local16.x - _local22);
1480 _local16.y = (_local16.y - _local23);
1481 _local14++;
1482 };
1483 return (_local6);
1484 }
1485 public static function ceil(_arg1:Number):Number{
1486 var _local2:Number = int(_arg1);
1487 return (((_arg1)>0) ? ((_local2)!=_arg1) ? (_local2 + 1) : _local2 : _local2);
1488 }
1489 public static function getAngle(_arg1:Number, _arg2:Number):Number{
1490 return (((Math.atan2(_arg2, _arg1) * 180) / Math.PI));
1491 }
1492 public static function setWorldBounds(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):void{
1493 if ((((((((_arg1 == 0)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
1494 _arg1 = (-128 * FlxG.width);
1495 _arg2 = (-128 * FlxG.height);
1496 _arg3 = (0x0100 * FlxG.width);
1497 _arg4 = (0x0100 * FlxG.height);
1498 };
1499 if (quadTreeBounds == null){
1500 quadTreeBounds = new FlxRect();
1501 };
1502 quadTreeBounds.x = _arg1;
1503 quadTreeBounds.y = _arg2;
1504 if (_arg3 != 0){
1505 quadTreeBounds.width = _arg3;
1506 };
1507 if (_arg4 != 0){
1508 quadTreeBounds.height = _arg4;
1509 };
1510 }
1511 public static function set seed(_arg1:Number):void{
1512 _seed = _arg1;
1513 _originalSeed = _seed;
1514 }
1515 public static function getClassName(_arg1:Object, _arg2:Boolean=false):String{
1516 var _local3:String = getQualifiedClassName(_arg1);
1517 _local3 = _local3.replace("::", ".");
1518 if (_arg2){
1519 _local3 = _local3.substr((_local3.lastIndexOf(".") + 1));
1520 };
1521 return (_local3);
1522 }
1523 public static function randomize(_arg1:Number):Number{
1524 return ((((69621 * int((_arg1 * 2147483647))) % 2147483647) / 2147483647));
1525 }
1526 public static function abs(_arg1:Number):Number{
1527 return (((_arg1)>0) ? _arg1 : -(_arg1));
1528 }
1529 public static function computeVelocity(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=10000):Number{
1530 var _local5:Number;
1531 if (_arg2 != 0){
1532 _arg1 = (_arg1 + (_arg2 * FlxG.elapsed));
1533 } else {
1534 if (_arg3 != 0){
1535 _local5 = (_arg3 * FlxG.elapsed);
1536 if ((_arg1 - _local5) > 0){
1537 _arg1 = (_arg1 - _local5);
1538 } else {
1539 if ((_arg1 + _local5) < 0){
1540 _arg1 = (_arg1 + _local5);
1541 } else {
1542 _arg1 = 0;
1543 };
1544 };
1545 };
1546 };
1547 if (((!((_arg1 == 0))) && (!((_arg4 == 10000))))){
1548 if (_arg1 > _arg4){
1549 _arg1 = _arg4;
1550 } else {
1551 if (_arg1 < -(_arg4)){
1552 _arg1 = -(_arg4);
1553 };
1554 };
1555 };
1556 return (_arg1);
1557 }
1558 public static function rotatePoint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:FlxPoint=null):FlxPoint{
1559 if (_arg6 == null){
1560 _arg6 = new FlxPoint();
1561 };
1562 var _local7:Number = ((-(_arg5) / 180) * Math.PI);
1563 var _local8:Number = (_arg1 - _arg3);
1564 var _local9:Number = (_arg4 - _arg2);
1565 _arg6.x = ((_arg3 + (Math.cos(_local7) * _local8)) - (Math.sin(_local7) * _local9));
1566 _arg6.y = (_arg4 - ((Math.sin(_local7) * _local8) + (Math.cos(_local7) * _local9)));
1567 return (_arg6);
1568 }
1569 public static function get seed():Number{
1570 return (_originalSeed);
1571 }
1572 public static function solveXCollision(_arg1:FlxObject, _arg2:FlxObject):Boolean{
1573 var _local5:Boolean;
1574 var _local6:Boolean;
1575 var _local7:Number;
1576 var _local9:Boolean;
1577 var _local16:uint;
1578 var _local17:uint;
1579 var _local24:Number;
1580 var _local25:Number;
1581 var _local26:Number;
1582 var _local27:Number;
1583 var _local28:Number;
1584 var _local29:Number;
1585 var _local30:Number;
1586 var _local31:Number;
1587 var _local3:Number = _arg1.colVector.x;
1588 var _local4:Number = _arg2.colVector.x;
1589 if (_local3 == _local4){
1590 return (false);
1591 };
1592 _arg1.preCollide(_arg2);
1593 _arg2.preCollide(_arg1);
1594 var _local8:Boolean;
1595 var _local10 = (_local3 == 0);
1596 var _local11 = (_local3 < 0);
1597 var _local12 = (_local3 > 0);
1598 var _local13 = (_local4 == 0);
1599 var _local14 = (_local4 < 0);
1600 var _local15 = (_local4 > 0);
1601 var _local18:FlxRect = _arg1.colHullX;
1602 var _local19:FlxRect = _arg2.colHullX;
1603 var _local20:Array = _arg1.colOffsets;
1604 var _local21:Array = _arg2.colOffsets;
1605 var _local22:uint = _local20.length;
1606 var _local23:uint = _local21.length;
1607 _local9 = ((((((((((_local10) && (_local14))) || (((_local12) && (_local13))))) || (((_local12) && (_local14))))) || (((((_local11) && (_local14))) && ((((_local3)>0) ? _local3 : -(_local3) < ((_local4)>0) ? _local4 : -(_local4))))))) || (((((_local12) && (_local15))) && ((((_local3)>0) ? _local3 : -(_local3) > ((_local4)>0) ? _local4 : -(_local4))))));
1608 if ((_local9) ? ((!(_arg1.collideRight)) || (!(_arg2.collideLeft))) : ((!(_arg1.collideLeft)) || (!(_arg2.collideRight)))){
1609 return (false);
1610 };
1611 _local16 = 0;
1612 while (_local16 < _local22) {
1613 _local24 = _local20[_local16].x;
1614 _local25 = _local20[_local16].y;
1615 _local18.x = (_local18.x + _local24);
1616 _local18.y = (_local18.y + _local25);
1617 _local17 = 0;
1618 while (_local17 < _local23) {
1619 _local26 = _local21[_local17].x;
1620 _local27 = _local21[_local17].y;
1621 _local19.x = (_local19.x + _local26);
1622 _local19.y = (_local19.y + _local27);
1623 if (((((((((_local18.x + _local18.width) < (_local19.x + roundingError))) || (((_local18.x + roundingError) > (_local19.x + _local19.width))))) || (((_local18.y + _local18.height) < (_local19.y + roundingError))))) || (((_local18.y + roundingError) > (_local19.y + _local19.height))))){
1624 _local19.x = (_local19.x - _local26);
1625 _local19.y = (_local19.y - _local27);
1626 } else {
1627 if (_local9){
1628 if (_local11){
1629 _local28 = (_local18.x + _arg1.colHullY.width);
1630 } else {
1631 _local28 = (_local18.x + _local18.width);
1632 };
1633 if (_local14){
1634 _local29 = _local19.x;
1635 } else {
1636 _local29 = ((_local19.x + _local19.width) - _arg2.colHullY.width);
1637 };
1638 } else {
1639 if (_local14){
1640 _local28 = (-(_local19.x) - _arg2.colHullY.width);
1641 } else {
1642 _local28 = (-(_local19.x) - _local19.width);
1643 };
1644 if (_local11){
1645 _local29 = -(_local18.x);
1646 } else {
1647 _local29 = ((-(_local18.x) - _local18.width) + _arg1.colHullY.width);
1648 };
1649 };
1650 _local7 = (_local28 - _local29);
1651 if ((((((_local7 == 0)) || (((!(_arg1.fixed)) && ((((_local7)>0) ? _local7 : -(_local7) > (_local18.width * 0.8))))))) || (((!(_arg2.fixed)) && ((((_local7)>0) ? _local7 : -(_local7) > (_local19.width * 0.8))))))){
1652 _local19.x = (_local19.x - _local26);
1653 _local19.y = (_local19.y - _local27);
1654 } else {
1655 _local8 = true;
1656 _local30 = _arg2.velocity.x;
1657 _local31 = _arg1.velocity.x;
1658 if (((!(_arg1.fixed)) && (_arg2.fixed))){
1659 if (_arg1._group){
1660 _arg1.reset((_arg1.x - _local7), _arg1.y);
1661 } else {
1662 _arg1.x = (_arg1.x - _local7);
1663 };
1664 } else {
1665 if (((_arg1.fixed) && (!(_arg2.fixed)))){
1666 if (_arg2._group){
1667 _arg2.reset((_arg2.x + _local7), _arg2.y);
1668 } else {
1669 _arg2.x = (_arg2.x + _local7);
1670 };
1671 } else {
1672 if (((!(_arg1.fixed)) && (!(_arg2.fixed)))){
1673 _local7 = (_local7 / 2);
1674 if (_arg1._group){
1675 _arg1.reset((_arg1.x - _local7), _arg1.y);
1676 } else {
1677 _arg1.x = (_arg1.x - _local7);
1678 };
1679 if (_arg2._group){
1680 _arg2.reset((_arg2.x + _local7), _arg2.y);
1681 } else {
1682 _arg2.x = (_arg2.x + _local7);
1683 };
1684 _local30 = (_local30 / 2);
1685 _local31 = (_local31 / 2);
1686 };
1687 };
1688 };
1689 if (_local9){
1690 _arg1.hitRight(_arg2, _local30);
1691 _arg2.hitLeft(_arg1, _local31);
1692 } else {
1693 _arg1.hitLeft(_arg2, _local30);
1694 _arg2.hitRight(_arg1, _local31);
1695 };
1696 if (((!(_arg1.fixed)) && (!((_local7 == 0))))){
1697 if (_local9){
1698 _local18.width = (_local18.width - _local7);
1699 } else {
1700 _local18.x = (_local18.x - _local7);
1701 _local18.width = (_local18.width + _local7);
1702 };
1703 _arg1.colHullY.x = (_arg1.colHullY.x - _local7);
1704 };
1705 if (((!(_arg2.fixed)) && (!((_local7 == 0))))){
1706 if (_local9){
1707 _local19.x = (_local19.x + _local7);
1708 _local19.width = (_local19.width - _local7);
1709 } else {
1710 _local19.width = (_local19.width + _local7);
1711 };
1712 _arg2.colHullY.x = (_arg2.colHullY.x + _local7);
1713 };
1714 _local19.x = (_local19.x - _local26);
1715 _local19.y = (_local19.y - _local27);
1716 };
1717 };
1718 _local17++;
1719 };
1720 _local18.x = (_local18.x - _local24);
1721 _local18.y = (_local18.y - _local25);
1722 _local16++;
1723 };
1724 return (_local8);
1725 }
1726 public static function collide(_arg1:FlxObject, _arg2:FlxObject):Boolean{
1727 if ((((((((_arg1 == null)) || (!(_arg1.exists)))) || ((_arg2 == null)))) || (!(_arg2.exists)))){
1728 return (false);
1729 };
1730 quadTree = new FlxQuadTree(quadTreeBounds.x, quadTreeBounds.y, quadTreeBounds.width, quadTreeBounds.height);
1731 quadTree.add(_arg1, FlxQuadTree.A_LIST);
1732 var _local3 = (_arg1 === _arg2);
1733 if (!_local3){
1734 quadTree.add(_arg2, FlxQuadTree.B_LIST);
1735 };
1736 var _local4:Boolean = quadTree.overlap(!(_local3), solveXCollision);
1737 var _local5:Boolean = quadTree.overlap(!(_local3), solveYCollision);
1738 return (((_local4) || (_local5)));
1739 }
1740
1741 }
1742}//package org.flixel
1743package org.flixel {
1744 import flash.events.*;
1745 import flash.media.*;
1746 import flash.net.*;
1747
1748 public class FlxSound extends FlxObject {
1749
1750 public var name:String;
1751 protected var _position:Number;
1752 protected var _fadeOutTotal:Number;
1753 protected var _fadeOutTimer:Number;
1754 protected var _sound:Sound;
1755 protected var _pauseOnFadeOut:Boolean;
1756 protected var _volumeAdjust:Number;
1757 public var playing:Boolean;
1758 protected var _radius:Number;
1759 protected var _volume:Number;
1760 protected var _point2:FlxPoint;
1761 protected var _fadeInTimer:Number;
1762 public var artist:String;
1763 protected var _channel:SoundChannel;
1764 protected var _fadeInTotal:Number;
1765 protected var _looped:Boolean;
1766 protected var _pan:Boolean;
1767 protected var _transform:SoundTransform;
1768 protected var _init:Boolean;
1769 public var survive:Boolean;
1770 protected var _core:FlxObject;
1771
1772 public function FlxSound(){
1773 _point2 = new FlxPoint();
1774 _transform = new SoundTransform();
1775 init();
1776 fixed = true;
1777 }
1778 public function loadStream(_arg1:String, _arg2:Boolean=false):FlxSound{
1779 stop();
1780 init();
1781 _sound = new Sound();
1782 _sound.addEventListener(Event.ID3, gotID3);
1783 _sound.load(new URLRequest(_arg1));
1784 _looped = _arg2;
1785 updateTransform();
1786 active = true;
1787 return (this);
1788 }
1789 public function stop():void{
1790 _position = 0;
1791 if (_channel != null){
1792 _channel.stop();
1793 stopped();
1794 };
1795 }
1796 public function loadEmbedded(_arg1:Class, _arg2:Boolean=false):FlxSound{
1797 stop();
1798 init();
1799 _sound = new (_arg1);
1800 _looped = _arg2;
1801 updateTransform();
1802 active = true;
1803 return (this);
1804 }
1805 public function get volume():Number{
1806 return (_volume);
1807 }
1808 function updateTransform():void{
1809 _transform.volume = (((FlxG.getMuteValue() * FlxG.volume) * _volume) * _volumeAdjust);
1810 if (_channel != null){
1811 _channel.soundTransform = _transform;
1812 };
1813 }
1814 public function fadeOut(_arg1:Number, _arg2:Boolean=false):void{
1815 _pauseOnFadeOut = _arg2;
1816 _fadeInTimer = 0;
1817 _fadeOutTimer = _arg1;
1818 _fadeOutTotal = _fadeOutTimer;
1819 }
1820 public function play():void{
1821 if (_position < 0){
1822 return;
1823 };
1824 if (_looped){
1825 if (_position == 0){
1826 if (_channel == null){
1827 _channel = _sound.play(0, 9999, _transform);
1828 };
1829 if (_channel == null){
1830 active = false;
1831 };
1832 } else {
1833 _channel = _sound.play(_position, 0, _transform);
1834 if (_channel == null){
1835 active = false;
1836 } else {
1837 _channel.addEventListener(Event.SOUND_COMPLETE, looped);
1838 };
1839 };
1840 } else {
1841 if (_position == 0){
1842 if (_channel == null){
1843 _channel = _sound.play(0, 0, _transform);
1844 if (_channel == null){
1845 active = false;
1846 } else {
1847 _channel.addEventListener(Event.SOUND_COMPLETE, stopped);
1848 };
1849 };
1850 } else {
1851 _channel = _sound.play(_position, 0, _transform);
1852 if (_channel == null){
1853 active = false;
1854 };
1855 };
1856 };
1857 playing = !((_channel == null));
1858 _position = 0;
1859 }
1860 public function set volume(_arg1:Number):void{
1861 _volume = _arg1;
1862 if (_volume < 0){
1863 _volume = 0;
1864 } else {
1865 if (_volume > 1){
1866 _volume = 1;
1867 };
1868 };
1869 updateTransform();
1870 }
1871 protected function init():void{
1872 _transform.pan = 0;
1873 _sound = null;
1874 _position = 0;
1875 _volume = 1;
1876 _volumeAdjust = 1;
1877 _looped = false;
1878 _core = null;
1879 _radius = 0;
1880 _pan = false;
1881 _fadeOutTimer = 0;
1882 _fadeOutTotal = 0;
1883 _pauseOnFadeOut = false;
1884 _fadeInTimer = 0;
1885 _fadeInTotal = 0;
1886 active = false;
1887 visible = false;
1888 solid = false;
1889 playing = false;
1890 name = null;
1891 artist = null;
1892 }
1893 protected function looped(_arg1:Event=null):void{
1894 if (_channel == null){
1895 return;
1896 };
1897 _channel.removeEventListener(Event.SOUND_COMPLETE, looped);
1898 _channel = null;
1899 play();
1900 }
1901 protected function updateSound():void{
1902 var _local3:FlxPoint;
1903 var _local4:FlxPoint;
1904 var _local5:Number;
1905 var _local6:Number;
1906 var _local7:Number;
1907 if (_position != 0){
1908 return;
1909 };
1910 var _local1:Number = 1;
1911 var _local2:Number = 1;
1912 if (_core != null){
1913 _local3 = new FlxPoint();
1914 _local4 = new FlxPoint();
1915 _core.getScreenXY(_local3);
1916 getScreenXY(_local4);
1917 _local5 = (_local3.x - _local4.x);
1918 _local6 = (_local3.y - _local4.y);
1919 _local1 = ((_radius - Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))) / _radius);
1920 if (_local1 < 0){
1921 _local1 = 0;
1922 };
1923 if (_local1 > 1){
1924 _local1 = 1;
1925 };
1926 if (_pan){
1927 _local7 = (-(_local5) / _radius);
1928 if (_local7 < -1){
1929 _local7 = -1;
1930 } else {
1931 if (_local7 > 1){
1932 _local7 = 1;
1933 };
1934 };
1935 _transform.pan = _local7;
1936 };
1937 };
1938 if (_fadeOutTimer > 0){
1939 _fadeOutTimer = (_fadeOutTimer - FlxG.elapsed);
1940 if (_fadeOutTimer <= 0){
1941 if (_pauseOnFadeOut){
1942 pause();
1943 } else {
1944 stop();
1945 };
1946 };
1947 _local2 = (_fadeOutTimer / _fadeOutTotal);
1948 if (_local2 < 0){
1949 _local2 = 0;
1950 };
1951 } else {
1952 if (_fadeInTimer > 0){
1953 _fadeInTimer = (_fadeInTimer - FlxG.elapsed);
1954 _local2 = (_fadeInTimer / _fadeInTotal);
1955 if (_local2 < 0){
1956 _local2 = 0;
1957 };
1958 _local2 = (1 - _local2);
1959 };
1960 };
1961 _volumeAdjust = (_local1 * _local2);
1962 updateTransform();
1963 }
1964 public function fadeIn(_arg1:Number):void{
1965 _fadeOutTimer = 0;
1966 _fadeInTimer = _arg1;
1967 _fadeInTotal = _fadeInTimer;
1968 play();
1969 }
1970 override public function update():void{
1971 super.update();
1972 updateSound();
1973 }
1974 protected function stopped(_arg1:Event=null):void{
1975 if (!_looped){
1976 _channel.removeEventListener(Event.SOUND_COMPLETE, stopped);
1977 } else {
1978 _channel.removeEventListener(Event.SOUND_COMPLETE, looped);
1979 };
1980 _channel = null;
1981 active = false;
1982 playing = false;
1983 }
1984 protected function gotID3(_arg1:Event=null):void{
1985 FlxG.log("got ID3 info!");
1986 if (_sound.id3.songName.length > 0){
1987 name = _sound.id3.songName;
1988 };
1989 if (_sound.id3.artist.length > 0){
1990 artist = _sound.id3.artist;
1991 };
1992 _sound.removeEventListener(Event.ID3, gotID3);
1993 }
1994 public function pause():void{
1995 if (_channel == null){
1996 _position = -1;
1997 return;
1998 };
1999 _position = _channel.position;
2000 _channel.stop();
2001 if (_looped){
2002 while (_position >= _sound.length) {
2003 _position = (_position - _sound.length);
2004 };
2005 };
2006 _channel = null;
2007 playing = false;
2008 }
2009 override public function destroy():void{
2010 if (active){
2011 stop();
2012 };
2013 }
2014 public function proximity(_arg1:Number, _arg2:Number, _arg3:FlxObject, _arg4:Number, _arg5:Boolean=true):FlxSound{
2015 x = _arg1;
2016 y = _arg2;
2017 _core = _arg3;
2018 _radius = _arg4;
2019 _pan = _arg5;
2020 return (this);
2021 }
2022
2023 }
2024}//package org.flixel
2025package org.flixel {
2026 import flash.display.*;
2027 import flash.geom.*;
2028 import org.flixel.data.*;
2029
2030 public class FlxSprite extends FlxObject {
2031
2032 public static const LEFT:uint = 0;
2033 public static const DOWN:uint = 3;
2034 public static const UP:uint = 2;
2035 public static const RIGHT:uint = 1;
2036
2037 protected var _mtx:Matrix;
2038 protected var _caf:uint;
2039 public var finished:Boolean;
2040 protected var _animations:Array;
2041 protected var _ct:ColorTransform;
2042 public var offset:FlxPoint;
2043 protected var _callback:Function;
2044 protected var _curAnim:FlxAnim;
2045 protected var _framePixels:BitmapData;
2046 protected var _flipped:uint;
2047 public var scale:FlxPoint;
2048 protected var _pixels:BitmapData;
2049 protected var _bakedRotation:Number;
2050 public var blend:String;
2051 public var frameWidth:uint;
2052 protected var _flashRect2:Rectangle;
2053 protected var _alpha:Number;
2054 protected var _flashPointZero:Point;
2055 protected var _curFrame:uint;
2056 public var frameHeight:uint;
2057 protected var _flashRect:Rectangle;
2058 protected var _frameTimer:Number;
2059 protected var _facing:uint;
2060 public var antialiasing:Boolean;
2061 protected var _color:uint;
2062
2063 public function FlxSprite(_arg1:Number=0, _arg2:Number=0, _arg3:Class=null){
2064 x = _arg1;
2065 y = _arg2;
2066 _flashRect = new Rectangle();
2067 _flashRect2 = new Rectangle();
2068 _flashPointZero = new Point();
2069 if (_arg3 == null){
2070 createGraphic(8, 8);
2071 } else {
2072 loadGraphic(_arg3);
2073 };
2074 offset = new FlxPoint();
2075 scale = new FlxPoint(1, 1);
2076 _alpha = 1;
2077 _color = 0xFFFFFF;
2078 blend = null;
2079 antialiasing = false;
2080 finished = false;
2081 _facing = RIGHT;
2082 _animations = new Array();
2083 _flipped = 0;
2084 _curAnim = null;
2085 _curFrame = 0;
2086 _caf = 0;
2087 _frameTimer = 0;
2088 _mtx = new Matrix();
2089 _callback = null;
2090 }
2091 protected function renderSprite():void{
2092 getScreenXY(_point);
2093 _flashPoint.x = _point.x;
2094 _flashPoint.y = _point.y;
2095 if ((((((((((angle == 0)) || ((_bakedRotation > 0)))) && ((scale.x == 1)))) && ((scale.y == 1)))) && ((blend == null)))){
2096 FlxG.buffer.copyPixels(_framePixels, _flashRect, _flashPoint, null, null, true);
2097 return;
2098 };
2099 _mtx.identity();
2100 _mtx.translate(-(origin.x), -(origin.y));
2101 _mtx.scale(scale.x, scale.y);
2102 if (angle != 0){
2103 _mtx.rotate(((Math.PI * 2) * (angle / 360)));
2104 };
2105 _mtx.translate((_point.x + origin.x), (_point.y + origin.y));
2106 FlxG.buffer.draw(_framePixels, _mtx, null, blend, null, antialiasing);
2107 }
2108 public function fill(_arg1:uint):void{
2109 _pixels.fillRect(_flashRect2, _arg1);
2110 calcFrame();
2111 }
2112 public function addAnimation(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Boolean=true):void{
2113 _animations.push(new FlxAnim(_arg1, _arg2, _arg3, _arg4));
2114 }
2115 override public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{
2116 _arg1 = (_arg1 - FlxU.floor(FlxG.scroll.x));
2117 _arg2 = (_arg2 - FlxU.floor(FlxG.scroll.y));
2118 getScreenXY(_point);
2119 if (_arg3){
2120 return (_framePixels.hitTest(new Point(0, 0), 0xFF, new Point((_arg1 - _point.x), (_arg2 - _point.y))));
2121 };
2122 if ((((((((_arg1 <= _point.x)) || ((_arg1 >= (_point.x + frameWidth))))) || ((_arg2 <= _point.y)))) || ((_arg2 >= (_point.y + frameHeight))))){
2123 return (false);
2124 };
2125 return (true);
2126 }
2127 override public function render():void{
2128 renderSprite();
2129 }
2130 protected function calcFrame():void{
2131 var _local1:uint = (_caf * frameWidth);
2132 var _local2:uint;
2133 var _local3:uint = (_flipped) ? _flipped : _pixels.width;
2134 if (_local1 >= _local3){
2135 _local2 = (uint((_local1 / _local3)) * frameHeight);
2136 _local1 = (_local1 % _local3);
2137 };
2138 if (((_flipped) && ((_facing == LEFT)))){
2139 _local1 = (((_flipped << 1) - _local1) - frameWidth);
2140 };
2141 _flashRect.x = _local1;
2142 _flashRect.y = _local2;
2143 _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero);
2144 _flashRect.x = (_flashRect.y = 0);
2145 if (_ct != null){
2146 _framePixels.colorTransform(_flashRect, _ct);
2147 };
2148 if (_callback != null){
2149 _callback(_curAnim.name, _curFrame, _caf);
2150 };
2151 }
2152 function unsafeBind(_arg1:BitmapData):void{
2153 _pixels = (_framePixels = _arg1);
2154 }
2155 public function loadGraphic(_arg1:Class, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:Boolean=false):FlxSprite{
2156 _bakedRotation = 0;
2157 _pixels = FlxG.addBitmap(_arg1, _arg3, _arg6);
2158 if (_arg3){
2159 _flipped = (_pixels.width >> 1);
2160 } else {
2161 _flipped = 0;
2162 };
2163 if (_arg4 == 0){
2164 if (_arg2){
2165 _arg4 = _pixels.height;
2166 } else {
2167 if (_flipped > 0){
2168 _arg4 = (_pixels.width / 2);
2169 } else {
2170 _arg4 = _pixels.width;
2171 };
2172 };
2173 };
2174 width = (frameWidth = _arg4);
2175 if (_arg5 == 0){
2176 if (_arg2){
2177 _arg5 = width;
2178 } else {
2179 _arg5 = _pixels.height;
2180 };
2181 };
2182 height = (frameHeight = _arg5);
2183 resetHelpers();
2184 return (this);
2185 }
2186 public function get pixels():BitmapData{
2187 return (_pixels);
2188 }
2189 public function set facing(_arg1:uint):void{
2190 var _local2 = !((_facing == _arg1));
2191 _facing = _arg1;
2192 if (_local2){
2193 calcFrame();
2194 };
2195 }
2196 protected function resetHelpers():void{
2197 _flashRect.x = 0;
2198 _flashRect.y = 0;
2199 _flashRect.width = frameWidth;
2200 _flashRect.height = frameHeight;
2201 _flashRect2.x = 0;
2202 _flashRect2.y = 0;
2203 _flashRect2.width = _pixels.width;
2204 _flashRect2.height = _pixels.height;
2205 if ((((((_framePixels == null)) || (!((_framePixels.width == width))))) || (!((_framePixels.height == height))))){
2206 _framePixels = new BitmapData(width, height);
2207 };
2208 origin.x = (frameWidth / 2);
2209 origin.y = (frameHeight / 2);
2210 _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero);
2211 _caf = 0;
2212 refreshHulls();
2213 }
2214 override public function getScreenXY(_arg1:FlxPoint=null):FlxPoint{
2215 if (_arg1 == null){
2216 _arg1 = new FlxPoint();
2217 };
2218 _arg1.x = ((FlxU.floor((x + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.x * scrollFactor.x))) - offset.x);
2219 _arg1.y = ((FlxU.floor((y + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.y * scrollFactor.y))) - offset.y);
2220 return (_arg1);
2221 }
2222 public function set alpha(_arg1:Number):void{
2223 if (_arg1 > 1){
2224 _arg1 = 1;
2225 };
2226 if (_arg1 < 0){
2227 _arg1 = 0;
2228 };
2229 if (_arg1 == _alpha){
2230 return;
2231 };
2232 _alpha = _arg1;
2233 if (((!((_alpha == 1))) || (!((_color == 0xFFFFFF))))){
2234 _ct = new ColorTransform((Number((_color >> 16)) / 0xFF), (Number(((_color >> 8) & 0xFF)) / 0xFF), (Number((_color & 0xFF)) / 0xFF), _alpha);
2235 } else {
2236 _ct = null;
2237 };
2238 calcFrame();
2239 }
2240 protected function updateAnimation():void{
2241 var _local1:uint;
2242 var _local2:int;
2243 if (_bakedRotation){
2244 _local1 = _caf;
2245 _local2 = (angle % 360);
2246 if (_local2 < 0){
2247 _local2 = (_local2 + 360);
2248 };
2249 _caf = (_local2 / _bakedRotation);
2250 if (_local1 != _caf){
2251 calcFrame();
2252 };
2253 return;
2254 };
2255 if (((((!((_curAnim == null))) && ((_curAnim.delay > 0)))) && (((_curAnim.looped) || (!(finished)))))){
2256 _frameTimer = (_frameTimer + FlxG.elapsed);
2257 if (_frameTimer > _curAnim.delay){
2258 _frameTimer = (_frameTimer - _curAnim.delay);
2259 if (_curFrame == (_curAnim.frames.length - 1)){
2260 if (_curAnim.looped){
2261 _curFrame = 0;
2262 };
2263 finished = true;
2264 } else {
2265 _curFrame++;
2266 };
2267 _caf = _curAnim.frames[_curFrame];
2268 calcFrame();
2269 };
2270 };
2271 }
2272 public function draw(_arg1:FlxSprite, _arg2:int=0, _arg3:int=0):void{
2273 var _local4:BitmapData = _arg1._framePixels;
2274 if ((((((((((_arg1.angle == 0)) || ((_arg1._bakedRotation > 0)))) && ((_arg1.scale.x == 1)))) && ((_arg1.scale.y == 1)))) && ((_arg1.blend == null)))){
2275 _flashPoint.x = _arg2;
2276 _flashPoint.y = _arg3;
2277 _flashRect2.width = _local4.width;
2278 _flashRect2.height = _local4.height;
2279 _pixels.copyPixels(_local4, _flashRect2, _flashPoint, null, null, true);
2280 _flashRect2.width = _pixels.width;
2281 _flashRect2.height = _pixels.height;
2282 calcFrame();
2283 return;
2284 };
2285 _mtx.identity();
2286 _mtx.translate(-(_arg1.origin.x), -(_arg1.origin.y));
2287 _mtx.scale(_arg1.scale.x, _arg1.scale.y);
2288 if (_arg1.angle != 0){
2289 _mtx.rotate(((Math.PI * 2) * (_arg1.angle / 360)));
2290 };
2291 _mtx.translate((_arg2 + _arg1.origin.x), (_arg3 + _arg1.origin.y));
2292 _pixels.draw(_local4, _mtx, null, _arg1.blend, null, _arg1.antialiasing);
2293 calcFrame();
2294 }
2295 public function loadRotatedGraphic(_arg1:Class, _arg2:uint=16, _arg3:int=-1, _arg4:Boolean=false, _arg5:Boolean=false):FlxSprite{
2296 var _local12:uint;
2297 var _local13:uint;
2298 var _local14:uint;
2299 var _local15:uint;
2300 var _local16:uint;
2301 var _local17:uint;
2302 var _local6:uint = 4;
2303 var _local7:FlxSprite = new FlxSprite().loadGraphic(_arg1, (_arg3 >= 0));
2304 if (_arg3 >= 0){
2305 _local7.frame = _arg3;
2306 };
2307 _local7.antialiasing = _arg4;
2308 var _local8:uint = _local7.width;
2309 if (_local7.height > _local8){
2310 _local8 = _local7.height;
2311 };
2312 if (_arg5){
2313 _local8 = (_local8 * 1.5);
2314 };
2315 var _local9:uint = Math.ceil((_arg2 / _local6));
2316 width = (_local8 * _local9);
2317 height = (_local8 * _local6);
2318 var _local10:String = ((((((String(_arg1) + ":") + _arg3) + ":") + width) + "x") + height);
2319 var _local11:Boolean = FlxG.checkBitmapCache(_local10);
2320 createGraphic(width, height, 0, true, _local10);
2321 _bakedRotation = (360 / _arg2);
2322 if (!_local11){
2323 _local14 = (_local7.width / 2);
2324 _local15 = (_local7.height / 2);
2325 _local16 = (_local8 / 2);
2326 _local17 = (_local8 / 2);
2327 _local12 = 0;
2328 while (_local12 < _local6) {
2329 _local13 = 0;
2330 while (_local13 < _local9) {
2331 draw(_local7, ((_local16 + (_local8 * _local13)) - _local14), (_local17 - _local15));
2332 _local7.angle = (_local7.angle + _bakedRotation);
2333 _local13++;
2334 };
2335 _local17 = (_local17 + _local8);
2336 _local12++;
2337 };
2338 };
2339 frameWidth = (frameHeight = (width = (height = _local8)));
2340 resetHelpers();
2341 return (this);
2342 }
2343 public function set color(_arg1:uint):void{
2344 _arg1 = (_arg1 & 0xFFFFFF);
2345 if (_color == _arg1){
2346 return;
2347 };
2348 _color = _arg1;
2349 if (((!((_alpha == 1))) || (!((_color == 0xFFFFFF))))){
2350 _ct = new ColorTransform((Number((_color >> 16)) / 0xFF), (Number(((_color >> 8) & 0xFF)) / 0xFF), (Number((_color & 0xFF)) / 0xFF), _alpha);
2351 } else {
2352 _ct = null;
2353 };
2354 calcFrame();
2355 }
2356 override public function update():void{
2357 updateMotion();
2358 updateAnimation();
2359 updateFlickering();
2360 }
2361 public function onEmit():void{
2362 }
2363 public function createGraphic(_arg1:uint, _arg2:uint, _arg3:uint=4294967295, _arg4:Boolean=false, _arg5:String=null):FlxSprite{
2364 _bakedRotation = 0;
2365 _pixels = FlxG.createBitmap(_arg1, _arg2, _arg3, _arg4, _arg5);
2366 width = (frameWidth = _pixels.width);
2367 height = (frameHeight = _pixels.height);
2368 resetHelpers();
2369 return (this);
2370 }
2371 public function play(_arg1:String, _arg2:Boolean=false):void{
2372 if (((((!(_arg2)) && (!((_curAnim == null))))) && ((_arg1 == _curAnim.name)))){
2373 return;
2374 };
2375 _curFrame = 0;
2376 _caf = 0;
2377 _frameTimer = 0;
2378 var _local3:uint = _animations.length;
2379 var _local4:uint;
2380 while (_local4 < _local3) {
2381 if (_animations[_local4].name == _arg1){
2382 _curAnim = _animations[_local4];
2383 if (_curAnim.delay <= 0){
2384 finished = true;
2385 } else {
2386 finished = false;
2387 };
2388 _caf = _curAnim.frames[_curFrame];
2389 calcFrame();
2390 return;
2391 };
2392 _local4++;
2393 };
2394 }
2395 public function addAnimationCallback(_arg1:Function):void{
2396 _callback = _arg1;
2397 }
2398 public function set pixels(_arg1:BitmapData):void{
2399 _pixels = _arg1;
2400 width = (frameWidth = _pixels.width);
2401 height = (frameHeight = _pixels.height);
2402 resetHelpers();
2403 }
2404 public function get alpha():Number{
2405 return (_alpha);
2406 }
2407 public function get facing():uint{
2408 return (_facing);
2409 }
2410 public function get color():uint{
2411 return (_color);
2412 }
2413 public function set frame(_arg1:uint):void{
2414 _curAnim = null;
2415 _caf = _arg1;
2416 calcFrame();
2417 }
2418 public function get frame():uint{
2419 return (_caf);
2420 }
2421 public function randomFrame():void{
2422 _curAnim = null;
2423 _caf = int((FlxU.random() * (_pixels.width / frameWidth)));
2424 calcFrame();
2425 }
2426
2427 }
2428}//package org.flixel
2429package org.flixel.data {
2430 import mx.core.*;
2431
2432 public class FlxPause_ImgKey0 extends BitmapAsset {
2433
2434 }
2435}//package org.flixel.data
2436package org.flixel.data {
2437 import flash.events.*;
2438
2439 public class FlxKeyboard {
2440
2441 protected const _t:uint = 0x0100;
2442
2443 public var RIGHT:Boolean;
2444 public var LEFT:Boolean;
2445 public var FOUR:Boolean;
2446 public var TWO:Boolean;
2447 public var CONTROL:Boolean;
2448 public var A:Boolean;
2449 public var B:Boolean;
2450 public var C:Boolean;
2451 public var D:Boolean;
2452 public var E:Boolean;
2453 public var ONE:Boolean;
2454 public var G:Boolean;
2455 public var H:Boolean;
2456 public var I:Boolean;
2457 public var J:Boolean;
2458 public var K:Boolean;
2459 public var F:Boolean;
2460 public var N:Boolean;
2461 public var O:Boolean;
2462 public var Q:Boolean;
2463 public var R:Boolean;
2464 public var S:Boolean;
2465 public var T:Boolean;
2466 public var U:Boolean;
2467 public var MINUS:Boolean;
2468 public var Y:Boolean;
2469 public var L:Boolean;
2470 public var Z:Boolean;
2471 public var QUOTE:Boolean;
2472 public var V:Boolean;
2473 public var X:Boolean;
2474 public var P:Boolean;
2475 public var SHIFT:Boolean;
2476 public var SLASH:Boolean;
2477 public var BACKSPACE:Boolean;
2478 public var EIGHT:Boolean;
2479 public var W:Boolean;
2480 public var M:Boolean;
2481 public var THREE:Boolean;
2482 public var ESCAPE:Boolean;
2483 public var SEMICOLON:Boolean;
2484 public var CAPSLOCK:Boolean;
2485 protected var _lookup:Object;
2486 public var PLUS:Boolean;
2487 protected var _map:Array;
2488 public var ZERO:Boolean;
2489 public var DOWN:Boolean;
2490 public var F1:Boolean;
2491 public var F2:Boolean;
2492 public var F3:Boolean;
2493 public var F4:Boolean;
2494 public var F5:Boolean;
2495 public var F6:Boolean;
2496 public var F7:Boolean;
2497 public var NINE:Boolean;
2498 public var F9:Boolean;
2499 public var ALT:Boolean;
2500 public var F8:Boolean;
2501 public var DELETE:Boolean;
2502 public var LBRACKET:Boolean;
2503 public var UP:Boolean;
2504 public var ENTER:Boolean;
2505 public var FIVE:Boolean;
2506 public var SIX:Boolean;
2507 public var COMMA:Boolean;
2508 public var PERIOD:Boolean;
2509 public var BACKSLASH:Boolean;
2510 public var F10:Boolean;
2511 public var F11:Boolean;
2512 public var F12:Boolean;
2513 public var SEVEN:Boolean;
2514 public var SPACE:Boolean;
2515 public var RBRACKET:Boolean;
2516
2517 public function FlxKeyboard(){
2518 var _local1:uint;
2519 _lookup = new Object();
2520 _map = new Array(_t);
2521 _local1 = 65;
2522 while (_local1 <= 90) {
2523 addKey(String.fromCharCode(_local1), _local1);
2524 _local1++;
2525 };
2526 _local1 = 48;
2527 var _temp1 = _local1;
2528 _local1 = (_local1 + 1);
2529 addKey("ZERO", _temp1);
2530 var _temp2 = _local1;
2531 _local1 = (_local1 + 1);
2532 addKey("ONE", _temp2);
2533 var _temp3 = _local1;
2534 _local1 = (_local1 + 1);
2535 addKey("TWO", _temp3);
2536 var _temp4 = _local1;
2537 _local1 = (_local1 + 1);
2538 addKey("THREE", _temp4);
2539 var _temp5 = _local1;
2540 _local1 = (_local1 + 1);
2541 addKey("FOUR", _temp5);
2542 var _temp6 = _local1;
2543 _local1 = (_local1 + 1);
2544 addKey("FIVE", _temp6);
2545 var _temp7 = _local1;
2546 _local1 = (_local1 + 1);
2547 addKey("SIX", _temp7);
2548 var _temp8 = _local1;
2549 _local1 = (_local1 + 1);
2550 addKey("SEVEN", _temp8);
2551 var _temp9 = _local1;
2552 _local1 = (_local1 + 1);
2553 addKey("EIGHT", _temp9);
2554 var _temp10 = _local1;
2555 _local1 = (_local1 + 1);
2556 addKey("NINE", _temp10);
2557 _local1 = 1;
2558 while (_local1 <= 12) {
2559 addKey(("F" + _local1), (111 + _local1));
2560 _local1++;
2561 };
2562 addKey("ESCAPE", 27);
2563 addKey("MINUS", 189);
2564 addKey("PLUS", 187);
2565 addKey("DELETE", 46);
2566 addKey("BACKSPACE", 8);
2567 addKey("LBRACKET", 219);
2568 addKey("RBRACKET", 221);
2569 addKey("BACKSLASH", 220);
2570 addKey("CAPSLOCK", 20);
2571 addKey("SEMICOLON", 186);
2572 addKey("QUOTE", 222);
2573 addKey("ENTER", 13);
2574 addKey("SHIFT", 16);
2575 addKey("COMMA", 188);
2576 addKey("PERIOD", 190);
2577 addKey("SLASH", 191);
2578 addKey("CONTROL", 17);
2579 addKey("ALT", 18);
2580 addKey("SPACE", 32);
2581 addKey("UP", 38);
2582 addKey("DOWN", 40);
2583 addKey("LEFT", 37);
2584 addKey("RIGHT", 39);
2585 }
2586 public function handleKeyUp(_arg1:KeyboardEvent):void{
2587 var _local2:Object = _map[_arg1.keyCode];
2588 if (_local2 == null){
2589 return;
2590 };
2591 if (_local2.current > 0){
2592 _local2.current = -1;
2593 } else {
2594 _local2.current = 0;
2595 };
2596 this[_local2.name] = false;
2597 }
2598 public function pressed(_arg1:String):Boolean{
2599 return (this[_arg1]);
2600 }
2601 public function justReleased(_arg1:String):Boolean{
2602 return ((_map[_lookup[_arg1]].current == -1));
2603 }
2604 public function handleKeyDown(_arg1:KeyboardEvent):void{
2605 var _local2:Object = _map[_arg1.keyCode];
2606 if (_local2 == null){
2607 return;
2608 };
2609 if (_local2.current > 0){
2610 _local2.current = 1;
2611 } else {
2612 _local2.current = 2;
2613 };
2614 this[_local2.name] = true;
2615 }
2616 public function reset():void{
2617 var _local2:Object;
2618 var _local1:uint;
2619 while (_local1 < _t) {
2620 if (_map[_local1] == null){
2621 } else {
2622 _local2 = _map[_local1];
2623 this[_local2.name] = false;
2624 _local2.current = 0;
2625 _local2.last = 0;
2626 };
2627 _local1++;
2628 };
2629 }
2630 public function justPressed(_arg1:String):Boolean{
2631 return ((_map[_lookup[_arg1]].current == 2));
2632 }
2633 public function update():void{
2634 var _local2:Object;
2635 var _local1:uint;
2636 while (_local1 < _t) {
2637 if (_map[_local1] == null){
2638 } else {
2639 _local2 = _map[_local1];
2640 if ((((_local2.last == -1)) && ((_local2.current == -1)))){
2641 _local2.current = 0;
2642 } else {
2643 if ((((_local2.last == 2)) && ((_local2.current == 2)))){
2644 _local2.current = 1;
2645 };
2646 };
2647 _local2.last = _local2.current;
2648 };
2649 _local1++;
2650 };
2651 }
2652 protected function addKey(_arg1:String, _arg2:uint):void{
2653 _lookup[_arg1] = _arg2;
2654 _map[_arg2] = {
2655 name:_arg1,
2656 current:0,
2657 last:0
2658 };
2659 }
2660
2661 }
2662}//package org.flixel.data
2663package org.flixel.data {
2664 import org.flixel.*;
2665
2666 public class FlxQuake {
2667
2668 public var y:int;
2669 protected var _timer:Number;
2670 protected var _intensity:Number;
2671 public var x:int;
2672 protected var _zoom:uint;
2673
2674 public function FlxQuake(_arg1:uint){
2675 _zoom = _arg1;
2676 start(0);
2677 }
2678 public function update():void{
2679 if (_timer > 0){
2680 _timer = (_timer - FlxG.elapsed);
2681 if (_timer <= 0){
2682 _timer = 0;
2683 x = 0;
2684 y = 0;
2685 } else {
2686 x = (((((Math.random() * _intensity) * FlxG.width) * 2) - (_intensity * FlxG.width)) * _zoom);
2687 y = (((((Math.random() * _intensity) * FlxG.height) * 2) - (_intensity * FlxG.height)) * _zoom);
2688 };
2689 };
2690 }
2691 public function start(_arg1:Number=0.05, _arg2:Number=0.5):void{
2692 stop();
2693 _intensity = _arg1;
2694 _timer = _arg2;
2695 }
2696 public function stop():void{
2697 x = 0;
2698 y = 0;
2699 _intensity = 0;
2700 _timer = 0;
2701 }
2702
2703 }
2704}//package org.flixel.data
2705package org.flixel.data {
2706 import org.flixel.*;
2707
2708 public class FlxList {
2709
2710 public var next:FlxList;
2711 public var object:FlxObject;
2712
2713 public function FlxList(){
2714 object = null;
2715 next = null;
2716 }
2717 }
2718}//package org.flixel.data
2719package org.flixel.data {
2720 import mx.core.*;
2721
2722 public class FlxPause_ImgKeyPlus extends BitmapAsset {
2723
2724 }
2725}//package org.flixel.data
2726package org.flixel.data {
2727 import mx.core.*;
2728
2729 public class FlxPanel_ImgStumble extends BitmapAsset {
2730
2731 }
2732}//package org.flixel.data
2733package org.flixel.data {
2734 import org.flixel.*;
2735
2736 public class FlxFade extends FlxSprite {
2737
2738 protected var _delay:Number;
2739 protected var _complete:Function;
2740
2741 public function FlxFade(){
2742 createGraphic(FlxG.width, FlxG.height, 0, true);
2743 scrollFactor.x = 0;
2744 scrollFactor.y = 0;
2745 exists = false;
2746 }
2747 override public function update():void{
2748 alpha = (alpha + (FlxG.elapsed / _delay));
2749 if (alpha >= 1){
2750 alpha = 1;
2751 if (_complete != null){
2752 _complete();
2753 };
2754 };
2755 }
2756 public function start(_arg1:uint=4278190080, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
2757 if (((!(_arg4)) && (exists))){
2758 return;
2759 };
2760 fill(_arg1);
2761 _delay = _arg2;
2762 _complete = _arg3;
2763 alpha = 0;
2764 exists = true;
2765 }
2766 public function stop():void{
2767 exists = false;
2768 }
2769
2770 }
2771}//package org.flixel.data
2772package org.flixel.data {
2773 import flash.events.*;
2774 import org.flixel.*;
2775
2776 public class FlxMouse {
2777
2778 protected var ImgDefaultCursor:Class;
2779 protected var _out:Boolean;
2780 public var cursor:FlxSprite;
2781 public var screenY:int;
2782 protected var _last:int;
2783 public var x:int;
2784 public var y:int;
2785 protected var _current:int;
2786 public var screenX:int;
2787
2788 public function FlxMouse(){
2789 ImgDefaultCursor = FlxMouse_ImgDefaultCursor;
2790 super();
2791 x = 0;
2792 y = 0;
2793 screenX = 0;
2794 screenY = 0;
2795 _current = 0;
2796 _last = 0;
2797 cursor = null;
2798 _out = false;
2799 }
2800 public function hide():void{
2801 if (cursor != null){
2802 cursor.visible = false;
2803 _out = false;
2804 };
2805 }
2806 public function update(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number):void{
2807 screenX = _arg1;
2808 screenY = _arg2;
2809 x = (screenX - FlxU.floor(_arg3));
2810 y = (screenY - FlxU.floor(_arg4));
2811 if (cursor != null){
2812 cursor.x = x;
2813 cursor.y = y;
2814 };
2815 if ((((_last == -1)) && ((_current == -1)))){
2816 _current = 0;
2817 } else {
2818 if ((((_last == 2)) && ((_current == 2)))){
2819 _current = 1;
2820 };
2821 };
2822 _last = _current;
2823 }
2824 public function reset():void{
2825 _current = 0;
2826 _last = 0;
2827 }
2828 public function justReleased():Boolean{
2829 return ((_current == -1));
2830 }
2831 public function handleMouseOver(_arg1:MouseEvent):void{
2832 if (cursor != null){
2833 cursor.visible = _out;
2834 };
2835 }
2836 public function handleMouseDown(_arg1:MouseEvent):void{
2837 if (_current > 0){
2838 _current = 1;
2839 } else {
2840 _current = 2;
2841 };
2842 }
2843 public function pressed():Boolean{
2844 return ((_current > 0));
2845 }
2846 public function justPressed():Boolean{
2847 return ((_current == 2));
2848 }
2849 public function load(_arg1:Class, _arg2:int=0, _arg3:int=0):void{
2850 if (_arg1 == null){
2851 _arg1 = ImgDefaultCursor;
2852 };
2853 cursor = new FlxSprite(screenX, screenY, _arg1);
2854 cursor.offset.x = _arg2;
2855 cursor.offset.y = _arg3;
2856 }
2857 public function handleMouseUp(_arg1:MouseEvent):void{
2858 if (_current > 0){
2859 _current = -1;
2860 } else {
2861 _current = 0;
2862 };
2863 }
2864 public function handleMouseOut(_arg1:MouseEvent):void{
2865 if (cursor != null){
2866 _out = cursor.visible;
2867 cursor.visible = false;
2868 };
2869 }
2870 public function show(_arg1:Class=null, _arg2:int=0, _arg3:int=0):void{
2871 _out = true;
2872 if (_arg1 != null){
2873 load(_arg1, _arg2, _arg3);
2874 } else {
2875 if (cursor != null){
2876 cursor.visible = true;
2877 } else {
2878 load(null);
2879 };
2880 };
2881 }
2882 public function unload():void{
2883 if (cursor != null){
2884 if (cursor.visible){
2885 load(null);
2886 } else {
2887 cursor = null;
2888 };
2889 };
2890 }
2891
2892 }
2893}//package org.flixel.data
2894package org.flixel.data {
2895 import org.flixel.*;
2896
2897 public class FlxPause extends FlxGroup {
2898
2899 private var ImgKeyP:Class;
2900 private var ImgKey0:Class;
2901 private var ImgKeyPlus:Class;
2902 private var ImgKeyMinus:Class;
2903
2904 public function FlxPause(){
2905 var _local2:uint;
2906 ImgKeyMinus = FlxPause_ImgKeyMinus;
2907 ImgKeyPlus = FlxPause_ImgKeyPlus;
2908 ImgKey0 = FlxPause_ImgKey0;
2909 ImgKeyP = FlxPause_ImgKeyP;
2910 super();
2911 scrollFactor.x = 0;
2912 scrollFactor.y = 0;
2913 var _local1:uint = 80;
2914 _local2 = 92;
2915 x = ((FlxG.width - _local1) / 2);
2916 y = ((FlxG.height - _local2) / 2);
2917 add(new FlxSprite().createGraphic(_local1, _local2, 2852126720, true), true);
2918 (add(new FlxText(0, 0, _local1, "this game is"), true) as FlxText).alignment = "center";
2919 add(new FlxText(0, 10, _local1, "PAUSED").setFormat(null, 16, 0xFFFFFF, "center"), true);
2920 add(new FlxSprite(4, 36, ImgKeyP), true);
2921 add(new FlxText(16, 36, (_local1 - 16), "Pause Game"), true);
2922 add(new FlxSprite(4, 50, ImgKey0), true);
2923 add(new FlxText(16, 50, (_local1 - 16), "Mute Sound"), true);
2924 add(new FlxSprite(4, 64, ImgKeyMinus), true);
2925 add(new FlxText(16, 64, (_local1 - 16), "Sound Down"), true);
2926 add(new FlxSprite(4, 78, ImgKeyPlus), true);
2927 add(new FlxText(16, 78, (_local1 - 16), "Sound Up"), true);
2928 }
2929 }
2930}//package org.flixel.data
2931package org.flixel.data {
2932 import mx.core.*;
2933
2934 public class FlxPanel_ImgDonate extends BitmapAsset {
2935
2936 }
2937}//package org.flixel.data
2938package org.flixel.data {
2939 import org.flixel.*;
2940 import flash.ui.*;
2941
2942 public class FlxPanel extends FlxObject {
2943
2944 protected var _close:FlxButton;
2945 protected var _digg:FlxButton;
2946 protected var _gameTitle:String;
2947 protected var _closed:Boolean;
2948 protected var _payPalID:String;
2949 protected var _donate:FlxButton;
2950 private var ImgClose:Class;
2951 protected var _topBar:FlxSprite;
2952 protected var _ty:Number;
2953 protected var _caption:FlxText;
2954 protected var _initialized:Boolean;
2955 protected var _twitter:FlxButton;
2956 protected var _delicious:FlxButton;
2957 protected var _stumble:FlxButton;
2958 private var ImgDelicious:Class;
2959 private var ImgTwitter:Class;
2960 protected var _mainBar:FlxSprite;
2961 protected var _gameURL:String;
2962 private var ImgStumble:Class;
2963 private var ImgReddit:Class;
2964 private var ImgDigg:Class;
2965 protected var _bottomBar:FlxSprite;
2966 protected var _payPalAmount:Number;
2967 protected var _s:Number;
2968 private var ImgDonate:Class;
2969 protected var _reddit:FlxButton;
2970
2971 public function FlxPanel(){
2972 ImgDonate = FlxPanel_ImgDonate;
2973 ImgStumble = FlxPanel_ImgStumble;
2974 ImgDigg = FlxPanel_ImgDigg;
2975 ImgReddit = FlxPanel_ImgReddit;
2976 ImgDelicious = FlxPanel_ImgDelicious;
2977 ImgTwitter = FlxPanel_ImgTwitter;
2978 ImgClose = FlxPanel_ImgClose;
2979 super();
2980 y = -21;
2981 _ty = y;
2982 _closed = false;
2983 _initialized = false;
2984 _topBar = new FlxSprite();
2985 _topBar.createGraphic(FlxG.width, 1, 2147483647);
2986 _topBar.scrollFactor.x = 0;
2987 _topBar.scrollFactor.y = 0;
2988 _mainBar = new FlxSprite();
2989 _mainBar.createGraphic(FlxG.width, 19, 2130706432);
2990 _mainBar.scrollFactor.x = 0;
2991 _mainBar.scrollFactor.y = 0;
2992 _bottomBar = new FlxSprite();
2993 _bottomBar.createGraphic(FlxG.width, 1, 2147483647);
2994 _bottomBar.scrollFactor.x = 0;
2995 _bottomBar.scrollFactor.y = 0;
2996 _donate = new FlxButton(3, 0, onDonate);
2997 _donate.loadGraphic(new FlxSprite(0, 0, ImgDonate));
2998 _donate.scrollFactor.x = 0;
2999 _donate.scrollFactor.y = 0;
3000 _stumble = new FlxButton(((((((FlxG.width / 2) - 6) - 13) - 6) - 13) - 6), 0, onStumble);
3001 _stumble.loadGraphic(new FlxSprite(0, 0, ImgStumble));
3002 _stumble.scrollFactor.x = 0;
3003 _stumble.scrollFactor.y = 0;
3004 _digg = new FlxButton(((((FlxG.width / 2) - 6) - 13) - 6), 0, onDigg);
3005 _digg.loadGraphic(new FlxSprite(0, 0, ImgDigg));
3006 _digg.scrollFactor.x = 0;
3007 _digg.scrollFactor.y = 0;
3008 _reddit = new FlxButton(((FlxG.width / 2) - 6), 0, onReddit);
3009 _reddit.loadGraphic(new FlxSprite(0, 0, ImgReddit));
3010 _reddit.scrollFactor.x = 0;
3011 _reddit.scrollFactor.y = 0;
3012 _delicious = new FlxButton((((FlxG.width / 2) + 7) + 6), 0, onDelicious);
3013 _delicious.loadGraphic(new FlxSprite(0, 0, ImgDelicious));
3014 _delicious.scrollFactor.x = 0;
3015 _delicious.scrollFactor.y = 0;
3016 _twitter = new FlxButton((((((FlxG.width / 2) + 7) + 6) + 12) + 6), 0, onTwitter);
3017 _twitter.loadGraphic(new FlxSprite(0, 0, ImgTwitter));
3018 _twitter.scrollFactor.x = 0;
3019 _twitter.scrollFactor.y = 0;
3020 _caption = new FlxText((FlxG.width / 2), 0, ((FlxG.width / 2) - 19), "");
3021 _caption.alignment = "right";
3022 _caption.scrollFactor.x = 0;
3023 _caption.scrollFactor.y = 0;
3024 _close = new FlxButton((FlxG.width - 16), 0, onClose);
3025 _close.loadGraphic(new FlxSprite(0, 0, ImgClose));
3026 _close.scrollFactor.x = 0;
3027 _close.scrollFactor.y = 0;
3028 hide();
3029 _s = 50;
3030 }
3031 public function onDelicious():void{
3032 FlxU.openURL(((("http://delicious.com/save?v=5&noui&jump=close&url=" + encodeURIComponent(_gameURL)) + "&title=") + encodeURIComponent(_gameTitle)));
3033 }
3034 public function onTwitter():void{
3035 FlxU.openURL(("http://twitter.com/home?status=Playing" + encodeURIComponent((((" " + _gameTitle) + " - ") + _gameURL))));
3036 }
3037 public function setup(_arg1:String, _arg2:Number, _arg3:String, _arg4:String, _arg5:String):void{
3038 _payPalID = _arg1;
3039 if (_payPalID.length <= 0){
3040 _donate.visible = false;
3041 };
3042 _payPalAmount = _arg2;
3043 _gameTitle = _arg3;
3044 _gameURL = _arg4;
3045 _caption.text = _arg5;
3046 _initialized = true;
3047 }
3048 public function onStumble():void{
3049 FlxU.openURL(("http://www.stumbleupon.com/submit?url=" + encodeURIComponent(_gameURL)));
3050 }
3051 override public function render():void{
3052 if (!_initialized){
3053 return;
3054 };
3055 if (_topBar.visible){
3056 _topBar.render();
3057 };
3058 if (_mainBar.visible){
3059 _mainBar.render();
3060 };
3061 if (_bottomBar.visible){
3062 _bottomBar.render();
3063 };
3064 if (_donate.visible){
3065 _donate.render();
3066 };
3067 if (_stumble.visible){
3068 _stumble.render();
3069 };
3070 if (_digg.visible){
3071 _digg.render();
3072 };
3073 if (_reddit.visible){
3074 _reddit.render();
3075 };
3076 if (_delicious.visible){
3077 _delicious.render();
3078 };
3079 if (_twitter.visible){
3080 _twitter.render();
3081 };
3082 if (_caption.visible){
3083 _caption.render();
3084 };
3085 if (_close.visible){
3086 _close.render();
3087 };
3088 }
3089 public function onDigg():void{
3090 FlxU.openURL(((("http://digg.com/submit?url=" + encodeURIComponent(_gameURL)) + "&title=") + encodeURIComponent(_gameTitle)));
3091 }
3092 public function onReddit():void{
3093 FlxU.openURL(("http://www.reddit.com/submit?url=" + encodeURIComponent(_gameURL)));
3094 }
3095 public function onDonate():void{
3096 FlxU.openURL(((((("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + encodeURIComponent(_payPalID)) + "&item_name=") + encodeURIComponent(((_gameTitle + " Contribution (") + _gameURL))) + ")¤cy_code=USD&amount=") + _payPalAmount));
3097 }
3098 override public function update():void{
3099 if (!_initialized){
3100 return;
3101 };
3102 if (_ty != y){
3103 if (y < _ty){
3104 y = (y + (FlxG.elapsed * _s));
3105 if (y > _ty){
3106 y = _ty;
3107 };
3108 } else {
3109 y = (y - (FlxG.elapsed * _s));
3110 if (y < _ty){
3111 y = _ty;
3112 };
3113 };
3114 };
3115 if ((((y <= -21)) || ((y > FlxG.height)))){
3116 visible = false;
3117 };
3118 _topBar.y = y;
3119 _mainBar.y = (y + 1);
3120 _bottomBar.y = (y + 20);
3121 _donate.y = (y + 4);
3122 _stumble.y = (y + 4);
3123 _digg.y = (y + 4);
3124 _reddit.y = (y + 4);
3125 _delicious.y = (y + 5);
3126 _twitter.y = (y + 4);
3127 _caption.y = (y + 4);
3128 _close.y = (y + 4);
3129 if (_donate.active){
3130 _donate.update();
3131 };
3132 if (_stumble.active){
3133 _stumble.update();
3134 };
3135 if (_digg.active){
3136 _digg.update();
3137 };
3138 if (_reddit.active){
3139 _reddit.update();
3140 };
3141 if (_delicious.active){
3142 _delicious.update();
3143 };
3144 if (_twitter.active){
3145 _twitter.update();
3146 };
3147 if (_caption.active){
3148 _caption.update();
3149 };
3150 if (_close.active){
3151 _close.update();
3152 };
3153 }
3154 public function show(_arg1:Boolean=true):void{
3155 if (!_initialized){
3156 FlxG.log("SUPPORT PANEL ERROR: Uninitialized.\nYou forgot to call FlxGame.setupSupportPanel()\nfrom your game constructor.");
3157 return;
3158 };
3159 if (_closed){
3160 return;
3161 };
3162 if (_arg1){
3163 y = -21;
3164 _ty = -1;
3165 } else {
3166 y = FlxG.height;
3167 _ty = (FlxG.height - 20);
3168 };
3169 Mouse.show();
3170 visible = true;
3171 }
3172 public function onClose():void{
3173 _closed = true;
3174 hide();
3175 }
3176 public function hide():void{
3177 if (y < 0){
3178 _ty = -21;
3179 } else {
3180 _ty = FlxG.height;
3181 };
3182 Mouse.hide();
3183 visible = false;
3184 }
3185
3186 }
3187}//package org.flixel.data
3188package org.flixel.data {
3189 import org.flixel.*;
3190
3191 public class FlxFlash extends FlxSprite {
3192
3193 protected var _delay:Number;
3194 protected var _complete:Function;
3195
3196 public function FlxFlash(){
3197 createGraphic(FlxG.width, FlxG.height, 0, true);
3198 scrollFactor.x = 0;
3199 scrollFactor.y = 0;
3200 exists = false;
3201 }
3202 override public function update():void{
3203 alpha = (alpha - (FlxG.elapsed / _delay));
3204 if (alpha <= 0){
3205 exists = false;
3206 if (_complete != null){
3207 _complete();
3208 };
3209 };
3210 }
3211 public function start(_arg1:uint=4294967295, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
3212 if (((!(_arg4)) && (exists))){
3213 return;
3214 };
3215 fill(_arg1);
3216 _delay = _arg2;
3217 _complete = _arg3;
3218 alpha = 1;
3219 exists = true;
3220 }
3221 public function stop():void{
3222 exists = false;
3223 }
3224
3225 }
3226}//package org.flixel.data
3227package org.flixel.data {
3228 import mx.core.*;
3229
3230 public class FlxPanel_ImgReddit extends BitmapAsset {
3231
3232 }
3233}//package org.flixel.data
3234package org.flixel.data {
3235 import mx.core.*;
3236
3237 public class FlxPause_ImgKeyMinus extends BitmapAsset {
3238
3239 }
3240}//package org.flixel.data
3241package org.flixel.data {
3242 import mx.core.*;
3243
3244 public class FlxPause_ImgKeyP extends BitmapAsset {
3245
3246 }
3247}//package org.flixel.data
3248package org.flixel.data {
3249 import flash.events.*;
3250 import flash.display.*;
3251 import flash.net.*;
3252
3253 public class FlxKong extends Sprite {
3254
3255 public var API;
3256
3257 public function FlxKong(){
3258 API = null;
3259 }
3260 public function init():void{
3261 var _local1:Object = LoaderInfo(root.loaderInfo).parameters;
3262 var _local2:String = ((_local1.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf"));
3263 var _local3:URLRequest = new URLRequest(_local2);
3264 var _local4:Loader = new Loader();
3265 _local4.contentLoaderInfo.addEventListener(Event.COMPLETE, APILoaded);
3266 _local4.load(_local3);
3267 this.addChild(_local4);
3268 }
3269 protected function APILoaded(_arg1:Event):void{
3270 API = _arg1.target.content;
3271 API.services.connect();
3272 }
3273
3274 }
3275}//package org.flixel.data
3276package org.flixel.data {
3277 import mx.core.*;
3278
3279 public class FlxPanel_ImgClose extends BitmapAsset {
3280
3281 }
3282}//package org.flixel.data
3283package org.flixel.data {
3284 import mx.core.*;
3285
3286 public class FlxPanel_ImgDigg extends BitmapAsset {
3287
3288 }
3289}//package org.flixel.data
3290package org.flixel.data {
3291
3292 public class FlxAnim {
3293
3294 public var delay:Number;
3295 public var frames:Array;
3296 public var looped:Boolean;
3297 public var name:String;
3298
3299 public function FlxAnim(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Boolean=true){
3300 name = _arg1;
3301 delay = 0;
3302 if (_arg3 > 0){
3303 delay = (1 / _arg3);
3304 };
3305 frames = _arg2;
3306 looped = _arg4;
3307 }
3308 }
3309}//package org.flixel.data
3310package org.flixel.data {
3311 import mx.core.*;
3312
3313 public class FlxPanel_ImgTwitter extends BitmapAsset {
3314
3315 }
3316}//package org.flixel.data
3317package org.flixel.data {
3318 import mx.core.*;
3319
3320 public class FlxPanel_ImgDelicious extends BitmapAsset {
3321
3322 }
3323}//package org.flixel.data
3324package org.flixel.data {
3325 import mx.core.*;
3326
3327 public class FlxMouse_ImgDefaultCursor extends BitmapAsset {
3328
3329 }
3330}//package org.flixel.data
3331package org.flixel.data {
3332 import flash.display.*;
3333 import org.flixel.*;
3334 import flash.text.*;
3335
3336 public class FlxConsole extends Sprite {
3337
3338 protected const MAX_CONSOLE_LINES:uint = 0x0100;
3339
3340 protected var _lines:Array;
3341 public var lastElapsed:Number;
3342 protected var _text:TextField;
3343 protected var _fpsUpdate:Boolean;
3344 protected var _console:Sprite;
3345 protected var _Y:Number;
3346 protected var _curFPS:uint;
3347 protected var _fps:Array;
3348 protected var _bx:int;
3349 protected var _by:int;
3350 protected var _fpsDisplay:TextField;
3351 protected var _YT:Number;
3352 protected var _byt:int;
3353
3354 public function FlxConsole(_arg1:uint, _arg2:uint, _arg3:uint){
3355 visible = false;
3356 x = (_arg1 * _arg3);
3357 _by = (_arg2 * _arg3);
3358 _byt = (_by - (FlxG.height * _arg3));
3359 _YT = (_Y = (y = _byt));
3360 var _local4:Bitmap = new Bitmap(new BitmapData((FlxG.width * _arg3), (FlxG.height * _arg3), true, 2130706432));
3361 addChild(_local4);
3362 _fps = new Array(8);
3363 _curFPS = 0;
3364 _fpsUpdate = true;
3365 _text = new TextField();
3366 _text.width = _local4.width;
3367 _text.height = _local4.height;
3368 _text.multiline = true;
3369 _text.wordWrap = true;
3370 _text.embedFonts = true;
3371 _text.antiAliasType = AntiAliasType.NORMAL;
3372 _text.gridFitType = GridFitType.PIXEL;
3373 _text.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF);
3374 addChild(_text);
3375 _fpsDisplay = new TextField();
3376 _fpsDisplay.width = _local4.width;
3377 _fpsDisplay.height = 20;
3378 _fpsDisplay.multiline = true;
3379 _fpsDisplay.wordWrap = true;
3380 _fpsDisplay.embedFonts = true;
3381 _fpsDisplay.antiAliasType = AntiAliasType.NORMAL;
3382 _fpsDisplay.gridFitType = GridFitType.PIXEL;
3383 _fpsDisplay.defaultTextFormat = new TextFormat("system", 16, 0xFFFFFF, true, null, null, null, null, "right");
3384 addChild(_fpsDisplay);
3385 _lines = new Array();
3386 }
3387 public function log(_arg1:String):void{
3388 var _local2:String;
3389 var _local3:uint;
3390 if (_arg1 == null){
3391 _arg1 = "NULL";
3392 };
3393 trace(_arg1);
3394 _lines.push(_arg1);
3395 if (_lines.length > MAX_CONSOLE_LINES){
3396 _lines.shift();
3397 _local2 = "";
3398 _local3 = 0;
3399 while (_local3 < _lines.length) {
3400 _local2 = (_local2 + (_lines[_local3] + "\n"));
3401 _local3++;
3402 };
3403 _text.text = _local2;
3404 } else {
3405 _text.appendText((_arg1 + "\n"));
3406 };
3407 _text.scrollV = _text.height;
3408 }
3409 public function update():void{
3410 var _local1:uint;
3411 var _local2:uint;
3412 if (visible){
3413 _fps[_curFPS] = (1 / lastElapsed);
3414 if (++_curFPS >= _fps.length){
3415 _curFPS = 0;
3416 };
3417 _fpsUpdate = !(_fpsUpdate);
3418 if (_fpsUpdate){
3419 _local1 = 0;
3420 _local2 = 0;
3421 while (_local2 < _fps.length) {
3422 _local1 = (_local1 + _fps[_local2]);
3423 _local2++;
3424 };
3425 _fpsDisplay.text = (Math.floor((_local1 / _fps.length)) + " fps");
3426 };
3427 };
3428 if (_Y < _YT){
3429 _Y = (_Y + ((FlxG.height * 10) * FlxG.elapsed));
3430 } else {
3431 if (_Y > _YT){
3432 _Y = (_Y - ((FlxG.height * 10) * FlxG.elapsed));
3433 };
3434 };
3435 if (_Y > _by){
3436 _Y = _by;
3437 } else {
3438 if (_Y < _byt){
3439 _Y = _byt;
3440 visible = false;
3441 };
3442 };
3443 y = Math.floor(_Y);
3444 }
3445 public function toggle():void{
3446 if (_YT == _by){
3447 _YT = _byt;
3448 } else {
3449 _YT = _by;
3450 visible = true;
3451 };
3452 }
3453
3454 }
3455}//package org.flixel.data
3456package org.flixel {
3457
3458 public class FlxGroup extends FlxObject {
3459
3460 public var members:Array;
3461 protected var _first:Boolean;
3462 protected var _last:FlxPoint;
3463
3464 public function FlxGroup(){
3465 _group = true;
3466 solid = false;
3467 members = new Array();
3468 _last = new FlxPoint();
3469 _first = true;
3470 }
3471 public function getFirstExtant():FlxObject{
3472 var _local1:FlxObject;
3473 var _local2:uint = members.length;
3474 var _local3:uint;
3475 while (_local3 < _local2) {
3476 _local1 = (members[_local3] as FlxObject);
3477 if (((!((_local1 == null))) && (_local1.exists))){
3478 return (_local1);
3479 };
3480 _local3++;
3481 };
3482 return (null);
3483 }
3484 override public function destroy():void{
3485 destroyMembers();
3486 super.destroy();
3487 }
3488 public function getFirstAlive():FlxObject{
3489 var _local1:FlxObject;
3490 var _local2:uint = members.length;
3491 var _local3:uint;
3492 while (_local3 < _local2) {
3493 _local1 = (members[_local3] as FlxObject);
3494 if (((((!((_local1 == null))) && (_local1.exists))) && (!(_local1.dead)))){
3495 return (_local1);
3496 };
3497 _local3++;
3498 };
3499 return (null);
3500 }
3501 public function remove(_arg1:FlxObject, _arg2:Boolean=false):FlxObject{
3502 var _local3:int = members.indexOf(_arg1);
3503 if ((((_local3 < 0)) || ((_local3 >= members.length)))){
3504 return (null);
3505 };
3506 if (_arg2){
3507 members.splice(_local3, 1);
3508 } else {
3509 members[_local3] = null;
3510 };
3511 return (_arg1);
3512 }
3513 override public function update():void{
3514 saveOldPosition();
3515 updateMotion();
3516 updateMembers();
3517 updateFlickering();
3518 }
3519 public function resetFirstAvail(_arg1:Number=0, _arg2:Number=0):Boolean{
3520 var _local3:FlxObject = getFirstAvail();
3521 if (_local3 == null){
3522 return (false);
3523 };
3524 _local3.reset(_arg1, _arg2);
3525 return (true);
3526 }
3527 override public function reset(_arg1:Number, _arg2:Number):void{
3528 var _local3:Number;
3529 var _local4:Number;
3530 var _local6:FlxObject;
3531 saveOldPosition();
3532 super.reset(_arg1, _arg2);
3533 var _local5:Boolean;
3534 if (((!((x == _last.x))) || (!((y == _last.y))))){
3535 _local5 = true;
3536 _local3 = (x - _last.x);
3537 _local4 = (y - _last.y);
3538 };
3539 var _local7:uint = members.length;
3540 var _local8:uint;
3541 while (_local8 < _local7) {
3542 _local6 = (members[_local8] as FlxObject);
3543 if (((!((_local6 == null))) && (_local6.exists))){
3544 if (_local5){
3545 if (_local6._group){
3546 _local6.reset((_local6.x + _local3), (_local6.y + _local4));
3547 } else {
3548 _local6.x = (_local6.x + _local3);
3549 _local6.y = (_local6.y + _local4);
3550 if (solid){
3551 _local6.colHullX.width = (_local6.colHullX.width + ((_local3)>0) ? _local3 : -(_local3));
3552 if (_local3 < 0){
3553 _local6.colHullX.x = (_local6.colHullX.x + _local3);
3554 };
3555 _local6.colHullY.x = x;
3556 _local6.colHullY.height = (_local6.colHullY.height + ((_local4)>0) ? _local4 : -(_local4));
3557 if (_local4 < 0){
3558 _local6.colHullY.y = (_local6.colHullY.y + _local4);
3559 };
3560 _local6.colVector.x = (_local6.colVector.x + _local3);
3561 _local6.colVector.y = (_local6.colVector.y + _local4);
3562 };
3563 };
3564 };
3565 };
3566 _local8++;
3567 };
3568 }
3569 protected function updateMembers():void{
3570 var _local1:Number;
3571 var _local2:Number;
3572 var _local4:FlxObject;
3573 var _local3:Boolean;
3574 if (((!((x == _last.x))) || (!((y == _last.y))))){
3575 _local3 = true;
3576 _local1 = (x - _last.x);
3577 _local2 = (y - _last.y);
3578 };
3579 var _local5:uint = members.length;
3580 var _local6:uint;
3581 while (_local6 < _local5) {
3582 _local4 = (members[_local6] as FlxObject);
3583 if (((!((_local4 == null))) && (_local4.exists))){
3584 if (_local3){
3585 if (_local4._group){
3586 _local4.reset((_local4.x + _local1), (_local4.y + _local2));
3587 } else {
3588 _local4.x = (_local4.x + _local1);
3589 _local4.y = (_local4.y + _local2);
3590 };
3591 };
3592 if (_local4.active){
3593 _local4.update();
3594 };
3595 if (((_local3) && (_local4.solid))){
3596 _local4.colHullX.width = (_local4.colHullX.width + ((_local1)>0) ? _local1 : -(_local1));
3597 if (_local1 < 0){
3598 _local4.colHullX.x = (_local4.colHullX.x + _local1);
3599 };
3600 _local4.colHullY.x = x;
3601 _local4.colHullY.height = (_local4.colHullY.height + ((_local2)>0) ? _local2 : -(_local2));
3602 if (_local2 < 0){
3603 _local4.colHullY.y = (_local4.colHullY.y + _local2);
3604 };
3605 _local4.colVector.x = (_local4.colVector.x + _local1);
3606 _local4.colVector.y = (_local4.colVector.y + _local2);
3607 };
3608 };
3609 _local6++;
3610 };
3611 }
3612 public function countDead():int{
3613 var _local1:FlxObject;
3614 var _local2 = -1;
3615 var _local3:uint = members.length;
3616 var _local4:uint;
3617 while (_local4 < _local3) {
3618 _local1 = (members[_local4] as FlxObject);
3619 if (_local1 != null){
3620 if (_local2 < 0){
3621 _local2 = 0;
3622 };
3623 if (_local1.dead){
3624 _local2++;
3625 };
3626 };
3627 _local4++;
3628 };
3629 return (_local2);
3630 }
3631 public function getFirstAvail():FlxObject{
3632 var _local1:FlxObject;
3633 var _local2:uint = members.length;
3634 var _local3:uint;
3635 while (_local3 < _local2) {
3636 _local1 = (members[_local3] as FlxObject);
3637 if (((!((_local1 == null))) && (!(_local1.exists)))){
3638 return (_local1);
3639 };
3640 _local3++;
3641 };
3642 return (null);
3643 }
3644 override public function render():void{
3645 renderMembers();
3646 }
3647 public function countLiving():int{
3648 var _local1:FlxObject;
3649 var _local2 = -1;
3650 var _local3:uint = members.length;
3651 var _local4:uint;
3652 while (_local4 < _local3) {
3653 _local1 = (members[_local4] as FlxObject);
3654 if (_local1 != null){
3655 if (_local2 < 0){
3656 _local2 = 0;
3657 };
3658 if (((_local1.exists) && (!(_local1.dead)))){
3659 _local2++;
3660 };
3661 };
3662 _local4++;
3663 };
3664 return (_local2);
3665 }
3666 public function countOnScreen():int{
3667 var _local1:FlxObject;
3668 var _local2 = -1;
3669 var _local3:uint = members.length;
3670 var _local4:uint;
3671 while (_local4 < _local3) {
3672 _local1 = (members[_local4] as FlxObject);
3673 if (_local1 != null){
3674 if (_local2 < 0){
3675 _local2 = 0;
3676 };
3677 if (_local1.onScreen()){
3678 _local2++;
3679 };
3680 };
3681 _local4++;
3682 };
3683 return (_local2);
3684 }
3685 protected function killMembers():void{
3686 var _local1:FlxObject;
3687 var _local2:uint = members.length;
3688 var _local3:uint;
3689 while (_local3 < _local2) {
3690 _local1 = (members[_local3] as FlxObject);
3691 if (_local1 != null){
3692 _local1.kill();
3693 };
3694 _local3++;
3695 };
3696 }
3697 override public function kill():void{
3698 killMembers();
3699 super.kill();
3700 }
3701 public function getFirstNull():int{
3702 var _local1:uint = members.length;
3703 var _local2:uint;
3704 while (_local2 < _local1) {
3705 if (members[_local2] == null){
3706 return (_local2);
3707 };
3708 _local2++;
3709 };
3710 return (-1);
3711 }
3712 protected function renderMembers():void{
3713 var _local1:FlxObject;
3714 var _local2:uint = members.length;
3715 var _local3:uint;
3716 while (_local3 < _local2) {
3717 _local1 = (members[_local3] as FlxObject);
3718 if (((((!((_local1 == null))) && (_local1.exists))) && (_local1.visible))){
3719 _local1.render();
3720 };
3721 _local3++;
3722 };
3723 }
3724 public function add(_arg1:FlxObject, _arg2:Boolean=false):FlxObject{
3725 members.push(_arg1);
3726 if (_arg2){
3727 _arg1.scrollFactor = scrollFactor;
3728 };
3729 return (_arg1);
3730 }
3731 protected function saveOldPosition():void{
3732 if (_first){
3733 _first = false;
3734 _last.x = 0;
3735 _last.y = 0;
3736 return;
3737 };
3738 _last.x = x;
3739 _last.y = y;
3740 }
3741 public function replace(_arg1:FlxObject, _arg2:FlxObject):FlxObject{
3742 var _local3:int = members.indexOf(_arg1);
3743 if ((((_local3 < 0)) || ((_local3 >= members.length)))){
3744 return (null);
3745 };
3746 members[_local3] = _arg2;
3747 return (_arg2);
3748 }
3749 public function getRandom():FlxObject{
3750 var _local1:uint;
3751 var _local2:FlxObject;
3752 var _local3:uint = members.length;
3753 var _local4:uint = uint((FlxU.random() * _local3));
3754 while ((((_local2 == null)) && ((_local1 < members.length)))) {
3755 ++_local4;
3756 _local2 = (members[(_local4 % _local3)] as FlxObject);
3757 _local1++;
3758 };
3759 return (_local2);
3760 }
3761 public function getFirstDead():FlxObject{
3762 var _local1:FlxObject;
3763 var _local2:uint = members.length;
3764 var _local3:uint;
3765 while (_local3 < _local2) {
3766 _local1 = (members[_local3] as FlxObject);
3767 if (((!((_local1 == null))) && (_local1.dead))){
3768 return (_local1);
3769 };
3770 _local3++;
3771 };
3772 return (null);
3773 }
3774 protected function destroyMembers():void{
3775 var _local1:FlxObject;
3776 var _local2:uint = members.length;
3777 var _local3:uint;
3778 while (_local3 < _local2) {
3779 _local1 = (members[_local3] as FlxObject);
3780 if (_local1 != null){
3781 _local1.destroy();
3782 };
3783 _local3++;
3784 };
3785 members.length = 0;
3786 }
3787
3788 }
3789}//package org.flixel
3790package org.flixel {
3791 import flash.display.*;
3792 import flash.text.*;
3793
3794 public class FlxText extends FlxSprite {
3795
3796 protected var _tf:TextField;
3797 protected var _regen:Boolean;
3798 protected var _shadow:uint;
3799
3800 public function FlxText(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:String=null){
3801 super(_arg1, _arg2);
3802 createGraphic(_arg3, 1);
3803 if (_arg4 == null){
3804 _arg4 = "";
3805 };
3806 _tf = new TextField();
3807 _tf.width = _arg3;
3808 _tf.embedFonts = true;
3809 _tf.selectable = false;
3810 _tf.sharpness = 100;
3811 _tf.multiline = true;
3812 _tf.wordWrap = true;
3813 _tf.text = _arg4;
3814 var _local5:TextFormat = new TextFormat("system", 8, 0xFFFFFF);
3815 _tf.defaultTextFormat = _local5;
3816 _tf.setTextFormat(_local5);
3817 if (_arg4.length <= 0){
3818 _tf.height = 1;
3819 } else {
3820 _tf.height = 10;
3821 };
3822 _regen = true;
3823 _shadow = 0;
3824 solid = false;
3825 calcFrame();
3826 }
3827 public function get shadow():uint{
3828 return (_shadow);
3829 }
3830 public function get size():Number{
3831 return ((_tf.defaultTextFormat.size as Number));
3832 }
3833 override public function get color():uint{
3834 return ((_tf.defaultTextFormat.color as uint));
3835 }
3836 override public function set color(_arg1:uint):void{
3837 var _local2:TextFormat = dtfCopy();
3838 _local2.color = _arg1;
3839 _tf.defaultTextFormat = _local2;
3840 _tf.setTextFormat(_local2);
3841 _regen = true;
3842 calcFrame();
3843 }
3844 public function set shadow(_arg1:uint):void{
3845 _shadow = _arg1;
3846 calcFrame();
3847 }
3848 public function set size(_arg1:Number):void{
3849 var _local2:TextFormat = dtfCopy();
3850 _local2.size = _arg1;
3851 _tf.defaultTextFormat = _local2;
3852 _tf.setTextFormat(_local2);
3853 _regen = true;
3854 calcFrame();
3855 }
3856 public function get alignment():String{
3857 return (_tf.defaultTextFormat.align);
3858 }
3859 protected function dtfCopy():TextFormat{
3860 var _local1:TextFormat = _tf.defaultTextFormat;
3861 return (new TextFormat(_local1.font, _local1.size, _local1.color, _local1.bold, _local1.italic, _local1.underline, _local1.url, _local1.target, _local1.align));
3862 }
3863 public function get text():String{
3864 return (_tf.text);
3865 }
3866 public function get font():String{
3867 return (_tf.defaultTextFormat.font);
3868 }
3869 public function set alignment(_arg1:String):void{
3870 var _local2:TextFormat = dtfCopy();
3871 _local2.align = _arg1;
3872 _tf.defaultTextFormat = _local2;
3873 _tf.setTextFormat(_local2);
3874 calcFrame();
3875 }
3876 public function set font(_arg1:String):void{
3877 var _local2:TextFormat = dtfCopy();
3878 _local2.font = _arg1;
3879 _tf.defaultTextFormat = _local2;
3880 _tf.setTextFormat(_local2);
3881 _regen = true;
3882 calcFrame();
3883 }
3884 override protected function calcFrame():void{
3885 var _local3:uint;
3886 var _local4:uint;
3887 if ((((((_tf == null)) || ((_tf.text == null)))) || ((_tf.text.length <= 0)))){
3888 _pixels.fillRect(_flashRect, 0);
3889 return;
3890 };
3891 if (_regen){
3892 _local3 = _tf.numLines;
3893 height = 0;
3894 _local4 = 0;
3895 while (_local4 < _local3) {
3896 height = (height + _tf.getLineMetrics(_local4).height);
3897 _local4++;
3898 };
3899 height = (height + 4);
3900 _pixels = new BitmapData(width, height, true, 0);
3901 frameHeight = height;
3902 _tf.height = (height * 1.2);
3903 _flashRect.x = 0;
3904 _flashRect.y = 0;
3905 _flashRect.width = width;
3906 _flashRect.height = height;
3907 _regen = false;
3908 } else {
3909 _pixels.fillRect(_flashRect, 0);
3910 };
3911 var _local1:TextFormat = _tf.defaultTextFormat;
3912 var _local2:TextFormat = _local1;
3913 _mtx.identity();
3914 if ((((_local1.align == "center")) && ((_tf.numLines == 1)))){
3915 _local2 = new TextFormat(_local1.font, _local1.size, _local1.color, null, null, null, null, null, "left");
3916 _tf.setTextFormat(_local2);
3917 _mtx.translate(Math.floor(((width - _tf.getLineMetrics(0).width) / 2)), 0);
3918 };
3919 if (_shadow > 0){
3920 _tf.setTextFormat(new TextFormat(_local2.font, _local2.size, _shadow, null, null, null, null, null, _local2.align));
3921 _mtx.translate(1, 1);
3922 _pixels.draw(_tf, _mtx, _ct);
3923 _mtx.translate(-1, -1);
3924 _tf.setTextFormat(new TextFormat(_local2.font, _local2.size, _local2.color, null, null, null, null, null, _local2.align));
3925 };
3926 _pixels.draw(_tf, _mtx, _ct);
3927 _tf.setTextFormat(new TextFormat(_local1.font, _local1.size, _local1.color, null, null, null, null, null, _local1.align));
3928 _framePixels = new BitmapData(_pixels.width, _pixels.height, true, 0);
3929 _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero);
3930 if (solid){
3931 refreshHulls();
3932 };
3933 }
3934 public function setFormat(_arg1:String=null, _arg2:Number=8, _arg3:uint=0xFFFFFF, _arg4:String=null, _arg5:uint=0):FlxText{
3935 if (_arg1 == null){
3936 _arg1 = "";
3937 };
3938 var _local6:TextFormat = dtfCopy();
3939 _local6.font = _arg1;
3940 _local6.size = _arg2;
3941 _local6.color = _arg3;
3942 _local6.align = _arg4;
3943 _tf.defaultTextFormat = _local6;
3944 _tf.setTextFormat(_local6);
3945 _shadow = _arg5;
3946 _regen = true;
3947 calcFrame();
3948 return (this);
3949 }
3950 public function set text(_arg1:String):void{
3951 _tf.text = _arg1;
3952 _regen = true;
3953 calcFrame();
3954 }
3955
3956 }
3957}//package org.flixel
3958package org.flixel {
3959 import flash.display.*;
3960 import flash.geom.*;
3961 import org.flixel.data.*;
3962
3963 public class FlxG {
3964
3965 public static var panel:FlxPanel;
3966 protected static var _mute:Boolean;
3967 public static var kong:FlxKong;
3968 public static var scores:Array;
3969 public static var music:FlxSound;
3970 public static var height:uint;
3971 protected static var _volume:Number;
3972 public static var buffer:BitmapData;
3973 public static var sounds:Array;
3974 public static var debug:Boolean;
3975 public static var LIBRARY_MINOR_VERSION:uint = 23;
3976 public static var LIBRARY_MAJOR_VERSION:uint = 2;
3977 public static var levels:Array;
3978 public static var fade:FlxFade;
3979 public static var timeScale:Number;
3980 protected static var _cache:Object;
3981 public static var level:int;
3982 public static var elapsed:Number;
3983 public static var score:int;
3984 public static var save:int;
3985 public static var saves:Array;
3986 protected static var _scrollTarget:Point;
3987 public static var mouse:FlxMouse;
3988 public static var followTarget:FlxObject;
3989 public static var followLead:Point;
3990 public static var LIBRARY_NAME:String = "flixel";
3991 public static var width:uint;
3992 public static var followLerp:Number;
3993 public static var scroll:Point;
3994 protected static var _game:FlxGame;
3995 public static var quake:FlxQuake;
3996 public static var followMin:Point;
3997 public static var flash:FlxFlash;
3998 public static var followMax:Point;
3999 public static var keys:FlxKeyboard;
4000 protected static var _pause:Boolean;
4001
4002 public static function get stage():Stage{
4003 if (((!((_game._state == null))) && (!((_game._state.parent == null))))){
4004 return (_game._state.parent.stage);
4005 };
4006 return (null);
4007 }
4008 protected static function changeSounds():void{
4009 var _local1:FlxSound;
4010 if (((!((music == null))) && (music.active))){
4011 music.updateTransform();
4012 };
4013 var _local2:uint = sounds.length;
4014 var _local3:uint;
4015 while (_local3 < _local2) {
4016 _local1 = (sounds[_local3] as FlxSound);
4017 if (((!((_local1 == null))) && (_local1.active))){
4018 _local1.updateTransform();
4019 };
4020 _local3++;
4021 };
4022 }
4023 public static function get mute():Boolean{
4024 return (_mute);
4025 }
4026 public static function get volume():Number{
4027 return (_volume);
4028 }
4029 static function doFollow():void{
4030 if (followTarget != null){
4031 _scrollTarget.x = ((((width >> 1) - followTarget.x) - (followTarget.width >> 1)) + (followTarget as FlxSprite).offset.x);
4032 _scrollTarget.y = ((((height >> 1) - followTarget.y) - (followTarget.height >> 1)) + (followTarget as FlxSprite).offset.y);
4033 if (((!((followLead == null))) && ((followTarget is FlxSprite)))){
4034 _scrollTarget.x = (_scrollTarget.x - ((followTarget as FlxSprite).velocity.x * followLead.x));
4035 _scrollTarget.y = (_scrollTarget.y - ((followTarget as FlxSprite).velocity.y * followLead.y));
4036 };
4037 scroll.x = (scroll.x + (((_scrollTarget.x - scroll.x) * followLerp) * FlxG.elapsed));
4038 scroll.y = (scroll.y + (((_scrollTarget.y - scroll.y) * followLerp) * FlxG.elapsed));
4039 if (followMin != null){
4040 if (scroll.x > followMin.x){
4041 scroll.x = followMin.x;
4042 };
4043 if (scroll.y > followMin.y){
4044 scroll.y = followMin.y;
4045 };
4046 };
4047 if (followMax != null){
4048 if (scroll.x < followMax.x){
4049 scroll.x = followMax.x;
4050 };
4051 if (scroll.y < followMax.y){
4052 scroll.y = followMax.y;
4053 };
4054 };
4055 };
4056 }
4057 public static function getMuteValue():uint{
4058 if (_mute){
4059 return (0);
4060 };
4061 return (1);
4062 }
4063 public static function addBitmap(_arg1:Class, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null):BitmapData{
4064 var _local8:uint;
4065 var _local9:String;
4066 var _local10:BitmapData;
4067 var _local11:Matrix;
4068 var _local5:Boolean;
4069 var _local6:String = _arg4;
4070 if (_local6 == null){
4071 _local6 = String(_arg1);
4072 if (((((_arg3) && (!((_cache[_local6] == undefined))))) && (!((_cache[_local6] == null))))){
4073 _local8 = 0;
4074 do {
4075 var _temp1 = _local8;
4076 _local8 = (_local8 + 1);
4077 _local9 = (_local6 + _temp1);
4078 } while (((!((_cache[_local9] == undefined))) && (!((_cache[_local9] == null)))));
4079 _local6 = _local9;
4080 };
4081 };
4082 if (!checkBitmapCache(_local6)){
4083 _cache[_local6] = new (_arg1).bitmapData;
4084 if (_arg2){
4085 _local5 = true;
4086 };
4087 };
4088 var _local7:BitmapData = _cache[_local6];
4089 if (((((!(_local5)) && (_arg2))) && ((_local7.width == new (_arg1).bitmapData.width)))){
4090 _local5 = true;
4091 };
4092 if (_local5){
4093 _local10 = new BitmapData((_local7.width << 1), _local7.height, true, 0);
4094 _local10.draw(_local7);
4095 _local11 = new Matrix();
4096 _local11.scale(-1, 1);
4097 _local11.translate(_local10.width, 0);
4098 _local10.draw(_local7, _local11);
4099 _local7 = _local10;
4100 };
4101 return (_local7);
4102 }
4103 public static function set state(_arg1:FlxState):void{
4104 _game.switchState(_arg1);
4105 }
4106 public static function set mute(_arg1:Boolean):void{
4107 _mute = _arg1;
4108 changeSounds();
4109 }
4110 public static function play(_arg1:Class, _arg2:Number=1, _arg3:Boolean=false):FlxSound{
4111 var _local4:uint = sounds.length;
4112 var _local5:uint;
4113 while (_local5 < _local4) {
4114 if (!(sounds[_local5] as FlxSound).active){
4115 break;
4116 };
4117 _local5++;
4118 };
4119 if (sounds[_local5] == null){
4120 sounds[_local5] = new FlxSound();
4121 };
4122 var _local6:FlxSound = sounds[_local5];
4123 _local6.loadEmbedded(_arg1, _arg3);
4124 _local6.volume = _arg2;
4125 _local6.play();
4126 return (_local6);
4127 }
4128 public static function set volume(_arg1:Number):void{
4129 _volume = _arg1;
4130 if (_volume < 0){
4131 _volume = 0;
4132 } else {
4133 if (_volume > 1){
4134 _volume = 1;
4135 };
4136 };
4137 changeSounds();
4138 }
4139 static function setGameData(_arg1:FlxGame, _arg2:uint, _arg3:uint, _arg4:uint):void{
4140 _game = _arg1;
4141 _cache = new Object();
4142 width = _arg2;
4143 height = _arg3;
4144 _mute = false;
4145 _volume = 0.5;
4146 sounds = new Array();
4147 mouse = new FlxMouse();
4148 keys = new FlxKeyboard();
4149 scroll = null;
4150 _scrollTarget = null;
4151 unfollow();
4152 FlxG.levels = new Array();
4153 FlxG.scores = new Array();
4154 level = 0;
4155 score = 0;
4156 FlxU.seed = NaN;
4157 kong = null;
4158 pause = false;
4159 timeScale = 1;
4160 panel = new FlxPanel();
4161 quake = new FlxQuake(_arg4);
4162 flash = new FlxFlash();
4163 fade = new FlxFade();
4164 FlxU.setWorldBounds();
4165 }
4166 public static function playMusic(_arg1:Class, _arg2:Number=1):void{
4167 if (music == null){
4168 music = new FlxSound();
4169 } else {
4170 if (music.active){
4171 music.stop();
4172 };
4173 };
4174 music.loadEmbedded(_arg1, true);
4175 music.volume = _arg2;
4176 music.survive = true;
4177 music.play();
4178 }
4179 public static function createBitmap(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Boolean=false, _arg5:String=null):BitmapData{
4180 var _local7:uint;
4181 var _local8:String;
4182 var _local6:String = _arg5;
4183 if (_local6 == null){
4184 _local6 = ((((_arg1 + "x") + _arg2) + ":") + _arg3);
4185 if (((((_arg4) && (!((_cache[_local6] == undefined))))) && (!((_cache[_local6] == null))))){
4186 _local7 = 0;
4187 do {
4188 var _temp1 = _local7;
4189 _local7 = (_local7 + 1);
4190 _local8 = (_local6 + _temp1);
4191 } while (((!((_cache[_local8] == undefined))) && (!((_cache[_local8] == null)))));
4192 _local6 = _local8;
4193 };
4194 };
4195 if (!checkBitmapCache(_local6)){
4196 _cache[_local6] = new BitmapData(_arg1, _arg2, true, _arg3);
4197 };
4198 return (_cache[_local6]);
4199 }
4200 public static function log(_arg1:Object):void{
4201 if (((!((_game == null))) && (!((_game._console == null))))){
4202 _game._console.log(((_arg1)==null) ? "ERROR: null object" : _arg1.toString());
4203 };
4204 }
4205 public static function checkBitmapCache(_arg1:String):Boolean{
4206 return (((!((_cache[_arg1] == undefined))) && (!((_cache[_arg1] == null)))));
4207 }
4208 static function updateSounds():void{
4209 var _local1:FlxSound;
4210 if (((!((music == null))) && (music.active))){
4211 music.update();
4212 };
4213 var _local2:uint = sounds.length;
4214 var _local3:uint;
4215 while (_local3 < _local2) {
4216 _local1 = (sounds[_local3] as FlxSound);
4217 if (((!((_local1 == null))) && (_local1.active))){
4218 _local1.update();
4219 };
4220 _local3++;
4221 };
4222 }
4223 static function updateInput():void{
4224 keys.update();
4225 mouse.update(state.mouseX, state.mouseY, scroll.x, scroll.y);
4226 }
4227 public static function stream(_arg1:String, _arg2:Number=1, _arg3:Boolean=false):FlxSound{
4228 var _local4:uint = sounds.length;
4229 var _local5:uint;
4230 while (_local5 < _local4) {
4231 if (!(sounds[_local5] as FlxSound).active){
4232 break;
4233 };
4234 _local5++;
4235 };
4236 if (sounds[_local5] == null){
4237 sounds[_local5] = new FlxSound();
4238 };
4239 var _local6:FlxSound = sounds[_local5];
4240 _local6.loadStream(_arg1, _arg3);
4241 _local6.volume = _arg2;
4242 _local6.play();
4243 return (_local6);
4244 }
4245 static function unfollow():void{
4246 followTarget = null;
4247 followLead = null;
4248 followLerp = 1;
4249 followMin = null;
4250 followMax = null;
4251 if (scroll == null){
4252 scroll = new Point();
4253 } else {
4254 scroll.x = (scroll.y = 0);
4255 };
4256 if (_scrollTarget == null){
4257 _scrollTarget = new Point();
4258 } else {
4259 _scrollTarget.x = (_scrollTarget.y = 0);
4260 };
4261 }
4262 public static function get state():FlxState{
4263 return (_game._state);
4264 }
4265 protected static function playSounds():void{
4266 var _local1:FlxSound;
4267 if (((!((music == null))) && (music.active))){
4268 music.play();
4269 };
4270 var _local2:uint = sounds.length;
4271 var _local3:uint;
4272 while (_local3 < _local2) {
4273 _local1 = (sounds[_local3] as FlxSound);
4274 if (((!((_local1 == null))) && (_local1.active))){
4275 _local1.play();
4276 };
4277 _local3++;
4278 };
4279 }
4280 public static function followAdjust(_arg1:Number=0, _arg2:Number=0):void{
4281 followLead = new Point(_arg1, _arg2);
4282 }
4283 public static function follow(_arg1:FlxObject, _arg2:Number=1):void{
4284 followTarget = _arg1;
4285 followLerp = _arg2;
4286 _scrollTarget.x = ((((width >> 1) - followTarget.x) - (followTarget.width >> 1)) + (followTarget as FlxSprite).offset.x);
4287 _scrollTarget.y = ((((height >> 1) - followTarget.y) - (followTarget.height >> 1)) + (followTarget as FlxSprite).offset.y);
4288 scroll.x = _scrollTarget.x;
4289 scroll.y = _scrollTarget.y;
4290 doFollow();
4291 }
4292 public static function resetInput():void{
4293 keys.reset();
4294 mouse.reset();
4295 }
4296 public static function followBounds(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0, _arg5:Boolean=true):void{
4297 followMin = new Point(-(_arg1), -(_arg2));
4298 followMax = new Point((-(_arg3) + width), (-(_arg4) + height));
4299 if (followMax.x > followMin.x){
4300 followMax.x = followMin.x;
4301 };
4302 if (followMax.y > followMin.y){
4303 followMax.y = followMin.y;
4304 };
4305 if (_arg5){
4306 FlxU.setWorldBounds(-(_arg1), -(_arg2), (-(_arg1) + _arg3), (-(_arg2) + _arg4));
4307 };
4308 doFollow();
4309 }
4310 protected static function pauseSounds():void{
4311 var _local1:FlxSound;
4312 if (((!((music == null))) && (music.active))){
4313 music.pause();
4314 };
4315 var _local2:uint = sounds.length;
4316 var _local3:uint;
4317 while (_local3 < _local2) {
4318 _local1 = (sounds[_local3] as FlxSound);
4319 if (((!((_local1 == null))) && (_local1.active))){
4320 _local1.pause();
4321 };
4322 _local3++;
4323 };
4324 }
4325 static function destroySounds(_arg1:Boolean=false):void{
4326 var _local2:FlxSound;
4327 if (sounds == null){
4328 return;
4329 };
4330 if (((!((music == null))) && (((_arg1) || (!(music.survive)))))){
4331 music.destroy();
4332 };
4333 var _local3:uint = sounds.length;
4334 var _local4:uint;
4335 while (_local4 < _local3) {
4336 _local2 = (sounds[_local4] as FlxSound);
4337 if (((!((_local2 == null))) && (((_arg1) || (!(_local2.survive)))))){
4338 _local2.destroy();
4339 };
4340 _local4++;
4341 };
4342 }
4343 public static function set pause(_arg1:Boolean):void{
4344 var _local2:Boolean = _pause;
4345 _pause = _arg1;
4346 if (_pause != _local2){
4347 if (_pause){
4348 _game.pauseGame();
4349 pauseSounds();
4350 } else {
4351 _game.unpauseGame();
4352 playSounds();
4353 };
4354 };
4355 }
4356 public static function get pause():Boolean{
4357 return (_pause);
4358 }
4359
4360 }
4361}//package org.flixel
4362package org.flixel {
4363 import mx.core.*;
4364
4365 public class FlxPreloader_ImgLogoCorners extends BitmapAsset {
4366
4367 }
4368}//package org.flixel
4369package org.flixel {
4370 import mx.core.*;
4371
4372 public class FlxPreloader_ImgLogoLight extends BitmapAsset {
4373
4374 }
4375}//package org.flixel
4376package org.flixel {
4377 import org.flixel.data.*;
4378
4379 public class FlxQuadTree extends FlxRect {
4380
4381 public static const A_LIST:uint = 0;
4382 public static const MIN:Number = 48;
4383 public static const B_LIST:uint = 1;
4384
4385 protected static var _ot:Number;
4386 protected static var _or:Number;
4387 protected static var _o:FlxObject;
4388 protected static var _oa:uint;
4389 protected static var _oc:Function;
4390 protected static var _ob:Number;
4391 protected static var _ol:Number;
4392
4393 protected var _sw:FlxQuadTree;
4394 protected var _mx:Number;
4395 protected var _my:Number;
4396 protected var _ne:FlxQuadTree;
4397 protected var _hh:Number;
4398 protected var _headA:FlxList;
4399 protected var _headB:FlxList;
4400 protected var _canSubdivide:Boolean;
4401 protected var _l:Number;
4402 protected var _hw:Number;
4403 protected var _nw:FlxQuadTree;
4404 protected var _se:FlxQuadTree;
4405 protected var _tailA:FlxList;
4406 protected var _r:Number;
4407 protected var _t:Number;
4408 protected var _tailB:FlxList;
4409 protected var _b:Number;
4410
4411 public function FlxQuadTree(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:FlxQuadTree=null){
4412 var _local6:FlxList;
4413 var _local7:FlxList;
4414 super(_arg1, _arg2, _arg3, _arg4);
4415 _canSubdivide = (((_arg3 > MIN)) || ((_arg4 > MIN)));
4416 _headA = (_tailA = new FlxList());
4417 _headB = (_tailB = new FlxList());
4418 if (_arg5){
4419 if (_arg5._headA.object != null){
4420 _local6 = _arg5._headA;
4421 while (_local6 != null) {
4422 if (_tailA.object != null){
4423 _local7 = _tailA;
4424 _tailA = new FlxList();
4425 _local7.next = _tailA;
4426 };
4427 _tailA.object = _local6.object;
4428 _local6 = _local6.next;
4429 };
4430 };
4431 if (_arg5._headB.object != null){
4432 _local6 = _arg5._headB;
4433 while (_local6 != null) {
4434 if (_tailB.object != null){
4435 _local7 = _tailB;
4436 _tailB = new FlxList();
4437 _local7.next = _tailB;
4438 };
4439 _tailB.object = _local6.object;
4440 _local6 = _local6.next;
4441 };
4442 };
4443 };
4444 _nw = null;
4445 _ne = null;
4446 _se = null;
4447 _sw = null;
4448 _l = x;
4449 _r = (x + width);
4450 _hw = (width / 2);
4451 _mx = (_l + _hw);
4452 _t = y;
4453 _b = (y + height);
4454 _hh = (height / 2);
4455 _my = (_t + _hh);
4456 }
4457 protected function addObject():void{
4458 if (((!(_canSubdivide)) || ((((((((_l >= _ol)) && ((_r <= _or)))) && ((_t >= _ot)))) && ((_b <= _ob)))))){
4459 addToList();
4460 return;
4461 };
4462 if ((((_ol > _l)) && ((_or < _mx)))){
4463 if ((((_ot > _t)) && ((_ob < _my)))){
4464 if (_nw == null){
4465 _nw = new FlxQuadTree(_l, _t, _hw, _hh, this);
4466 };
4467 _nw.addObject();
4468 return;
4469 };
4470 if ((((_ot > _my)) && ((_ob < _b)))){
4471 if (_sw == null){
4472 _sw = new FlxQuadTree(_l, _my, _hw, _hh, this);
4473 };
4474 _sw.addObject();
4475 return;
4476 };
4477 };
4478 if ((((_ol > _mx)) && ((_or < _r)))){
4479 if ((((_ot > _t)) && ((_ob < _my)))){
4480 if (_ne == null){
4481 _ne = new FlxQuadTree(_mx, _t, _hw, _hh, this);
4482 };
4483 _ne.addObject();
4484 return;
4485 };
4486 if ((((_ot > _my)) && ((_ob < _b)))){
4487 if (_se == null){
4488 _se = new FlxQuadTree(_mx, _my, _hw, _hh, this);
4489 };
4490 _se.addObject();
4491 return;
4492 };
4493 };
4494 if ((((((((_or > _l)) && ((_ol < _mx)))) && ((_ob > _t)))) && ((_ot < _my)))){
4495 if (_nw == null){
4496 _nw = new FlxQuadTree(_l, _t, _hw, _hh, this);
4497 };
4498 _nw.addObject();
4499 };
4500 if ((((((((_or > _mx)) && ((_ol < _r)))) && ((_ob > _t)))) && ((_ot < _my)))){
4501 if (_ne == null){
4502 _ne = new FlxQuadTree(_mx, _t, _hw, _hh, this);
4503 };
4504 _ne.addObject();
4505 };
4506 if ((((((((_or > _mx)) && ((_ol < _r)))) && ((_ob > _my)))) && ((_ot < _b)))){
4507 if (_se == null){
4508 _se = new FlxQuadTree(_mx, _my, _hw, _hh, this);
4509 };
4510 _se.addObject();
4511 };
4512 if ((((((((_or > _l)) && ((_ol < _mx)))) && ((_ob > _my)))) && ((_ot < _b)))){
4513 if (_sw == null){
4514 _sw = new FlxQuadTree(_l, _my, _hw, _hh, this);
4515 };
4516 _sw.addObject();
4517 };
4518 }
4519 protected function addToList():void{
4520 var _local1:FlxList;
4521 if (_oa == A_LIST){
4522 if (_tailA.object != null){
4523 _local1 = _tailA;
4524 _tailA = new FlxList();
4525 _local1.next = _tailA;
4526 };
4527 _tailA.object = _o;
4528 } else {
4529 if (_tailB.object != null){
4530 _local1 = _tailB;
4531 _tailB = new FlxList();
4532 _local1.next = _tailB;
4533 };
4534 _tailB.object = _o;
4535 };
4536 if (!_canSubdivide){
4537 return;
4538 };
4539 if (_nw != null){
4540 _nw.addToList();
4541 };
4542 if (_ne != null){
4543 _ne.addToList();
4544 };
4545 if (_se != null){
4546 _se.addToList();
4547 };
4548 if (_sw != null){
4549 _sw.addToList();
4550 };
4551 }
4552 public function overlap(_arg1:Boolean=true, _arg2:Function=null):Boolean{
4553 var _local4:FlxList;
4554 _oc = _arg2;
4555 var _local3:Boolean;
4556 if (_arg1){
4557 _oa = B_LIST;
4558 if (_headA.object != null){
4559 _local4 = _headA;
4560 while (_local4 != null) {
4561 _o = _local4.object;
4562 if (((((_o.exists) && (_o.solid))) && (overlapNode()))){
4563 _local3 = true;
4564 };
4565 _local4 = _local4.next;
4566 };
4567 };
4568 _oa = A_LIST;
4569 if (_headB.object != null){
4570 _local4 = _headB;
4571 while (_local4 != null) {
4572 _o = _local4.object;
4573 if (((_o.exists) && (_o.solid))){
4574 if (((!((_nw == null))) && (_nw.overlapNode()))){
4575 _local3 = true;
4576 };
4577 if (((!((_ne == null))) && (_ne.overlapNode()))){
4578 _local3 = true;
4579 };
4580 if (((!((_se == null))) && (_se.overlapNode()))){
4581 _local3 = true;
4582 };
4583 if (((!((_sw == null))) && (_sw.overlapNode()))){
4584 _local3 = true;
4585 };
4586 };
4587 _local4 = _local4.next;
4588 };
4589 };
4590 } else {
4591 if (_headA.object != null){
4592 _local4 = _headA;
4593 while (_local4 != null) {
4594 _o = _local4.object;
4595 if (((((_o.exists) && (_o.solid))) && (overlapNode(_local4.next)))){
4596 _local3 = true;
4597 };
4598 _local4 = _local4.next;
4599 };
4600 };
4601 };
4602 if (((!((_nw == null))) && (_nw.overlap(_arg1, _oc)))){
4603 _local3 = true;
4604 };
4605 if (((!((_ne == null))) && (_ne.overlap(_arg1, _oc)))){
4606 _local3 = true;
4607 };
4608 if (((!((_se == null))) && (_se.overlap(_arg1, _oc)))){
4609 _local3 = true;
4610 };
4611 if (((!((_sw == null))) && (_sw.overlap(_arg1, _oc)))){
4612 _local3 = true;
4613 };
4614 return (_local3);
4615 }
4616 public function add(_arg1:FlxObject, _arg2:uint):void{
4617 var _local3:FlxObject;
4618 var _local4:Array;
4619 var _local5:uint;
4620 var _local6:uint;
4621 _oa = _arg2;
4622 if (_arg1._group){
4623 _local4 = (_arg1 as FlxGroup).members;
4624 _local5 = _local4.length;
4625 _local6 = 0;
4626 while (_local6 < _local5) {
4627 _local3 = (_local4[_local6] as FlxObject);
4628 if (((!((_local3 == null))) && (_local3.exists))){
4629 if (_local3._group){
4630 add(_local3, _arg2);
4631 } else {
4632 if (_local3.solid){
4633 _o = _local3;
4634 _ol = _o.x;
4635 _ot = _o.y;
4636 _or = (_o.x + _o.width);
4637 _ob = (_o.y + _o.height);
4638 addObject();
4639 };
4640 };
4641 };
4642 _local6++;
4643 };
4644 };
4645 if (_arg1.solid){
4646 _o = _arg1;
4647 _ol = _o.x;
4648 _ot = _o.y;
4649 _or = (_o.x + _o.width);
4650 _ob = (_o.y + _o.height);
4651 addObject();
4652 };
4653 }
4654 protected function overlapNode(_arg1:FlxList=null):Boolean{
4655 var _local3:FlxObject;
4656 var _local2:Boolean;
4657 var _local4:FlxList = _arg1;
4658 if (_local4 == null){
4659 if (_oa == A_LIST){
4660 _local4 = _headA;
4661 } else {
4662 _local4 = _headB;
4663 };
4664 };
4665 if (_local4.object != null){
4666 while (_local4 != null) {
4667 _local3 = _local4.object;
4668 if ((((((((((((((((((_o === _local3)) || (!(_local3.exists)))) || (!(_o.exists)))) || (!(_local3.solid)))) || (!(_o.solid)))) || (((_o.x + _o.width) < (_local3.x + FlxU.roundingError))))) || (((_o.x + FlxU.roundingError) > (_local3.x + _local3.width))))) || (((_o.y + _o.height) < (_local3.y + FlxU.roundingError))))) || (((_o.y + FlxU.roundingError) > (_local3.y + _local3.height))))){
4669 _local4 = _local4.next;
4670 } else {
4671 if (_oc == null){
4672 _o.kill();
4673 _local3.kill();
4674 _local2 = true;
4675 } else {
4676 if (_oc(_o, _local3)){
4677 _local2 = true;
4678 };
4679 };
4680 _local4 = _local4.next;
4681 };
4682 };
4683 };
4684 return (_local2);
4685 }
4686
4687 }
4688}//package org.flixel
4689package org.flixel {
4690
4691 public class FlxPoint {
4692
4693 public var x:Number;
4694 public var y:Number;
4695
4696 public function FlxPoint(_arg1:Number=0, _arg2:Number=0){
4697 x = _arg1;
4698 y = _arg2;
4699 }
4700 public function toString():String{
4701 return (FlxU.getClassName(this, true));
4702 }
4703
4704 }
4705}//package org.flixel
4706package org.flixel {
4707
4708 public class FlxRect extends FlxPoint {
4709
4710 public var width:Number;
4711 public var height:Number;
4712
4713 public function FlxRect(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
4714 super(_arg1, _arg2);
4715 width = _arg3;
4716 height = _arg4;
4717 }
4718 public function get bottom():Number{
4719 return ((y + height));
4720 }
4721 public function get top():Number{
4722 return (y);
4723 }
4724 public function get left():Number{
4725 return (x);
4726 }
4727 public function get right():Number{
4728 return ((x + width));
4729 }
4730
4731 }
4732}//package org.flixel
4733package org.flixel {
4734 import flash.display.*;
4735
4736 public class FlxState extends Sprite {
4737
4738 public static var screen:FlxSprite;
4739 public static var bgColor:uint;
4740
4741 public var defaultGroup:FlxGroup;
4742
4743 public function FlxState(){
4744 defaultGroup = new FlxGroup();
4745 if (screen == null){
4746 screen = new FlxSprite();
4747 screen.createGraphic(FlxG.width, FlxG.height, 0, true);
4748 screen.origin.x = (screen.origin.y = 0);
4749 screen.antialiasing = true;
4750 };
4751 }
4752 public function add(_arg1:FlxObject):FlxObject{
4753 return (defaultGroup.add(_arg1));
4754 }
4755 public function preProcess():void{
4756 screen.fill(bgColor);
4757 }
4758 public function collide():void{
4759 defaultGroup.collide();
4760 }
4761 public function render():void{
4762 defaultGroup.render();
4763 }
4764 public function update():void{
4765 defaultGroup.update();
4766 }
4767 public function destroy():void{
4768 defaultGroup.destroy();
4769 }
4770 public function create():void{
4771 }
4772 public function postProcess():void{
4773 }
4774
4775 }
4776}//package org.flixel
4777package org.flixel {
4778 import flash.geom.*;
4779
4780 public class FlxObject extends FlxRect {
4781
4782 protected static const _pZero:FlxPoint = new FlxPoint();
4783
4784 public var acceleration:FlxPoint;
4785 public var angularAcceleration:Number;
4786 public var active:Boolean;
4787 public var collideBottom:Boolean;
4788 var _group:Boolean;
4789 protected var _point:FlxPoint;
4790 public var colHullX:FlxRect;
4791 protected var _flickerTimer:Number;
4792 public var colHullY:FlxRect;
4793 protected var _flashPoint:Point;
4794 public var colOffsets:Array;
4795 public var solid:Boolean;
4796 public var origin:FlxPoint;
4797 public var drag:FlxPoint;
4798 public var angularDrag:Number;
4799 public var collideTop:Boolean;
4800 protected var _flicker:Boolean;
4801 protected var _rect:FlxRect;
4802 public var moves:Boolean;
4803 public var angle:Number;
4804 public var thrust:Number;
4805 public var health:Number;
4806 public var velocity:FlxPoint;
4807 public var maxAngular:Number;
4808 public var angularVelocity:Number;
4809 public var maxVelocity:FlxPoint;
4810 public var exists:Boolean;
4811 public var collideLeft:Boolean;
4812 public var colVector:FlxPoint;
4813 public var maxThrust:Number;
4814 public var onFloor:Boolean;
4815 public var dead:Boolean;
4816 public var fixed:Boolean;
4817 public var visible:Boolean;
4818 public var scrollFactor:FlxPoint;
4819 public var collideRight:Boolean;
4820
4821 public function FlxObject(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
4822 super(_arg1, _arg2, _arg3, _arg4);
4823 exists = true;
4824 active = true;
4825 visible = true;
4826 solid = true;
4827 fixed = false;
4828 moves = true;
4829 collideLeft = true;
4830 collideRight = true;
4831 collideTop = true;
4832 collideBottom = true;
4833 origin = new FlxPoint();
4834 velocity = new FlxPoint();
4835 acceleration = new FlxPoint();
4836 drag = new FlxPoint();
4837 maxVelocity = new FlxPoint(10000, 10000);
4838 angle = 0;
4839 angularVelocity = 0;
4840 angularAcceleration = 0;
4841 angularDrag = 0;
4842 maxAngular = 10000;
4843 thrust = 0;
4844 scrollFactor = new FlxPoint(1, 1);
4845 _flicker = false;
4846 _flickerTimer = -1;
4847 health = 1;
4848 dead = false;
4849 _point = new FlxPoint();
4850 _rect = new FlxRect();
4851 _flashPoint = new Point();
4852 colHullX = new FlxRect();
4853 colHullY = new FlxRect();
4854 colVector = new FlxPoint();
4855 colOffsets = new Array(new FlxPoint());
4856 _group = false;
4857 }
4858 public function onScreen():Boolean{
4859 getScreenXY(_point);
4860 if (((((((((_point.x + width) < 0)) || ((_point.x > FlxG.width)))) || (((_point.y + height) < 0)))) || ((_point.y > FlxG.height)))){
4861 return (false);
4862 };
4863 return (true);
4864 }
4865 public function kill():void{
4866 exists = false;
4867 dead = true;
4868 }
4869 protected function updateFlickering():void{
4870 if (flickering()){
4871 if (_flickerTimer > 0){
4872 _flickerTimer = (_flickerTimer - FlxG.elapsed);
4873 if (_flickerTimer == 0){
4874 _flickerTimer = -1;
4875 };
4876 };
4877 if (_flickerTimer < 0){
4878 flicker(-1);
4879 } else {
4880 _flicker = !(_flicker);
4881 visible = !(_flicker);
4882 };
4883 };
4884 }
4885 public function render():void{
4886 }
4887 public function hitBottom(_arg1:FlxObject, _arg2:Number):void{
4888 onFloor = true;
4889 if (!fixed){
4890 velocity.y = _arg2;
4891 };
4892 }
4893 public function overlaps(_arg1:FlxObject):Boolean{
4894 var _local10:FlxSprite;
4895 var _local11:FlxSprite;
4896 getScreenXY(_point);
4897 var _local2:Number = _point.x;
4898 var _local3:Number = _point.y;
4899 var _local4:Number = width;
4900 var _local5:Number = height;
4901 if ((this is FlxSprite)){
4902 _local10 = (this as FlxSprite);
4903 _local4 = _local10.frameWidth;
4904 _local5 = _local10.frameHeight;
4905 };
4906 _arg1.getScreenXY(_point);
4907 var _local6:Number = _point.x;
4908 var _local7:Number = _point.y;
4909 var _local8:Number = _arg1.width;
4910 var _local9:Number = _arg1.height;
4911 if ((_arg1 is FlxSprite)){
4912 _local11 = (_arg1 as FlxSprite);
4913 _local8 = _local11.frameWidth;
4914 _local9 = _local11.frameHeight;
4915 };
4916 if ((((((((_local6 <= (_local2 - _local8))) || ((_local6 >= (_local2 + _local4))))) || ((_local7 <= (_local3 - _local9))))) || ((_local7 >= (_local3 + _local5))))){
4917 return (false);
4918 };
4919 return (true);
4920 }
4921 public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{
4922 _arg1 = (_arg1 + FlxU.floor(FlxG.scroll.x));
4923 _arg2 = (_arg2 + FlxU.floor(FlxG.scroll.y));
4924 getScreenXY(_point);
4925 if ((((((((_arg1 <= _point.x)) || ((_arg1 >= (_point.x + width))))) || ((_arg2 <= _point.y)))) || ((_arg2 >= (_point.y + height))))){
4926 return (false);
4927 };
4928 return (true);
4929 }
4930 public function hurt(_arg1:Number):void{
4931 if ((health = (health - _arg1)) <= 0){
4932 kill();
4933 };
4934 }
4935 public function refreshHulls():void{
4936 colHullX.x = x;
4937 colHullX.y = y;
4938 colHullX.width = width;
4939 colHullX.height = height;
4940 colHullY.x = x;
4941 colHullY.y = y;
4942 colHullY.width = width;
4943 colHullY.height = height;
4944 }
4945 public function preCollide(_arg1:FlxObject):void{
4946 }
4947 public function hitLeft(_arg1:FlxObject, _arg2:Number):void{
4948 if (!fixed){
4949 velocity.x = _arg2;
4950 };
4951 }
4952 public function collide(_arg1:FlxObject=null):Boolean{
4953 return (FlxU.collide(this, ((_arg1)==null) ? this : _arg1));
4954 }
4955 public function reset(_arg1:Number, _arg2:Number):void{
4956 x = _arg1;
4957 y = _arg2;
4958 exists = true;
4959 dead = false;
4960 }
4961 public function update():void{
4962 updateMotion();
4963 updateFlickering();
4964 }
4965 public function hitTop(_arg1:FlxObject, _arg2:Number):void{
4966 if (!fixed){
4967 velocity.y = _arg2;
4968 };
4969 }
4970 protected function updateMotion():void{
4971 var _local1:FlxPoint;
4972 var _local4:FlxPoint;
4973 var _local5:Number;
4974 if (!moves){
4975 return;
4976 };
4977 if (solid){
4978 refreshHulls();
4979 };
4980 onFloor = false;
4981 angle = (angle + ((angularVelocity = FlxU.computeVelocity(angularVelocity, angularAcceleration, angularDrag, maxAngular)) * FlxG.elapsed));
4982 if (thrust != 0){
4983 _local1 = FlxU.rotatePoint(-(thrust), 0, 0, 0, angle);
4984 _local4 = FlxU.rotatePoint(-(maxThrust), 0, 0, 0, angle);
4985 _local5 = ((_local4.x)>0) ? _local4.x : -(_local4.x);
4986 if (_local5 > ((_local4.y)>0) ? _local4.y : -(_local4.y)){
4987 _local4.y = _local5;
4988 } else {
4989 _local5 = ((_local4.y)>0) ? _local4.y : -(_local4.y);
4990 };
4991 maxVelocity.x = (maxVelocity.y = ((_local5)>0) ? _local5 : -(_local5));
4992 } else {
4993 _local1 = _pZero;
4994 };
4995 velocity.x = FlxU.computeVelocity(velocity.x, (acceleration.x + _local1.x), drag.x, maxVelocity.x);
4996 velocity.y = FlxU.computeVelocity(velocity.y, (acceleration.y + _local1.y), drag.y, maxVelocity.y);
4997 var _local2:Number = (velocity.x * FlxG.elapsed);
4998 var _local3:Number = (velocity.y * FlxG.elapsed);
4999 x = (x + _local2);
5000 y = (y + _local3);
5001 if (!solid){
5002 return;
5003 };
5004 colVector.x = _local2;
5005 colVector.y = _local3;
5006 colHullX.width = (colHullX.width + ((colVector.x)>0) ? colVector.x : -(colVector.x));
5007 if (colVector.x < 0){
5008 colHullX.x = (colHullX.x + colVector.x);
5009 };
5010 colHullY.x = x;
5011 colHullY.height = (colHullY.height + ((colVector.y)>0) ? colVector.y : -(colVector.y));
5012 if (colVector.y < 0){
5013 colHullY.y = (colHullY.y + colVector.y);
5014 };
5015 }
5016 public function flickering():Boolean{
5017 return ((_flickerTimer >= 0));
5018 }
5019 public function hitRight(_arg1:FlxObject, _arg2:Number):void{
5020 hitLeft(_arg1, _arg2);
5021 }
5022 public function destroy():void{
5023 }
5024 public function getScreenXY(_arg1:FlxPoint=null):FlxPoint{
5025 if (_arg1 == null){
5026 _arg1 = new FlxPoint();
5027 };
5028 _arg1.x = (FlxU.floor((x + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.x * scrollFactor.x)));
5029 _arg1.y = (FlxU.floor((y + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.y * scrollFactor.y)));
5030 return (_arg1);
5031 }
5032 public function flicker(_arg1:Number=1):void{
5033 _flickerTimer = _arg1;
5034 if (_flickerTimer < 0){
5035 _flicker = false;
5036 visible = true;
5037 };
5038 }
5039
5040 }
5041}//package org.flixel
5042package {
5043 import mx.core.*;
5044
5045 public class IntroState3_mouseImage extends BitmapAsset {
5046
5047 }
5048}//package
5049package {
5050 import mx.core.*;
5051 import mx.styles.*;
5052 import mx.skins.halo.*;
5053
5054 public class _globalStyle {
5055
5056 public static function init(_arg1:IFlexModuleFactory):void{
5057 var fbs:* = _arg1;
5058 var style:* = StyleManager.getStyleDeclaration("global");
5059 if (!style){
5060 style = new CSSStyleDeclaration();
5061 StyleManager.setStyleDeclaration("global", style, false);
5062 };
5063 if (style.defaultFactory == null){
5064 style.defaultFactory = function ():void{
5065 this.fillColor = 0xFFFFFF;
5066 this.kerning = false;
5067 this.iconColor = 0x111111;
5068 this.textRollOverColor = 2831164;
5069 this.horizontalAlign = "left";
5070 this.shadowCapColor = 14015965;
5071 this.backgroundAlpha = 1;
5072 this.filled = true;
5073 this.textDecoration = "none";
5074 this.roundedBottomCorners = true;
5075 this.fontThickness = 0;
5076 this.focusBlendMode = "normal";
5077 this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE];
5078 this.horizontalGap = 8;
5079 this.borderCapColor = 9542041;
5080 this.buttonColor = 7305079;
5081 this.indentation = 17;
5082 this.selectionDisabledColor = 0xDDDDDD;
5083 this.closeDuration = 250;
5084 this.embedFonts = false;
5085 this.paddingTop = 0;
5086 this.letterSpacing = 0;
5087 this.focusAlpha = 0.4;
5088 this.bevel = true;
5089 this.fontSize = 10;
5090 this.shadowColor = 0xEEEEEE;
5091 this.borderAlpha = 1;
5092 this.paddingLeft = 0;
5093 this.fontWeight = "normal";
5094 this.indicatorGap = 14;
5095 this.focusSkin = HaloFocusRect;
5096 this.dropShadowEnabled = false;
5097 this.leading = 2;
5098 this.borderSkin = HaloBorder;
5099 this.fontSharpness = 0;
5100 this.modalTransparencyDuration = 100;
5101 this.borderThickness = 1;
5102 this.backgroundSize = "auto";
5103 this.borderStyle = "inset";
5104 this.borderColor = 12040892;
5105 this.fontAntiAliasType = "advanced";
5106 this.errorColor = 0xFF0000;
5107 this.shadowDistance = 2;
5108 this.horizontalGridLineColor = 0xF7F7F7;
5109 this.stroked = false;
5110 this.modalTransparencyColor = 0xDDDDDD;
5111 this.cornerRadius = 0;
5112 this.verticalAlign = "top";
5113 this.textIndent = 0;
5114 this.fillAlphas = [0.6, 0.4, 0.75, 0.65];
5115 this.verticalGridLineColor = 14015965;
5116 this.themeColor = 40447;
5117 this.version = "3.0.0";
5118 this.shadowDirection = "center";
5119 this.modalTransparency = 0.5;
5120 this.repeatInterval = 35;
5121 this.openDuration = 250;
5122 this.textAlign = "left";
5123 this.fontFamily = "Verdana";
5124 this.textSelectedColor = 2831164;
5125 this.paddingBottom = 0;
5126 this.strokeWidth = 1;
5127 this.fontGridFitType = "pixel";
5128 this.horizontalGridLines = false;
5129 this.useRollOver = true;
5130 this.verticalGridLines = true;
5131 this.repeatDelay = 500;
5132 this.fontStyle = "normal";
5133 this.dropShadowColor = 0;
5134 this.focusThickness = 2;
5135 this.verticalGap = 6;
5136 this.disabledColor = 11187123;
5137 this.paddingRight = 0;
5138 this.focusRoundedCorners = "tl tr bl br";
5139 this.borderSides = "left top right bottom";
5140 this.disabledIconColor = 0x999999;
5141 this.modalTransparencyBlur = 3;
5142 this.color = 734012;
5143 this.selectionDuration = 250;
5144 this.highlightAlphas = [0.3, 0];
5145 };
5146 };
5147 }
5148
5149 }
5150}//package
5151package {
5152 import mx.core.*;
5153
5154 public class EmotionAffair_emoteImage extends BitmapAsset {
5155
5156 }
5157}//package
5158package {
5159 import mx.core.*;
5160
5161 public class PlayState_city2 extends BitmapAsset {
5162
5163 }
5164}//package
5165package {
5166 import mx.core.*;
5167
5168 public class PlayState_boyNames extends ByteArrayAsset {
5169
5170 }
5171}//package
5172package {
5173 import mx.core.*;
5174
5175 public class EndState_mouseImage extends BitmapAsset {
5176
5177 }
5178}//package
5179package {
5180 import mx.core.*;
5181
5182 public class IntroState2_mouseImage extends BitmapAsset {
5183
5184 }
5185}//package
5186package {
5187 import mx.core.*;
5188
5189 public class PlayState_musicSound extends SoundAsset {
5190
5191 }
5192}//package
5193package {
5194 import mx.core.*;
5195
5196 public class IntroState2_white extends BitmapAsset {
5197
5198 }
5199}//package
5200package {
5201 import mx.core.*;
5202
5203 public class PlayState_grandfatherClock extends BitmapAsset {
5204
5205 }
5206}//package
5207package {
5208 import org.flixel.*;
5209
5210 public class Raindrop extends FlxSprite {
5211
5212 private var raindropImage:Class;
5213
5214 public function Raindrop(_arg1:int){
5215 raindropImage = Raindrop_raindropImage;
5216 super(_arg1, -10);
5217 scrollFactor.x = 0;
5218 loadGraphic(raindropImage, true, false, 5, 4);
5219 addAnimation("fall", [0], 0, true);
5220 addAnimation("splash", [1, 2, 3, 4], 10, false);
5221 alpha = Math.random();
5222 color = 2460638;
5223 addAnimationCallback(animCallback);
5224 play("fall");
5225 acceleration.y = 90;
5226 }
5227 override public function update():void{
5228 if (y >= 123){
5229 play("splash");
5230 acceleration.y = 0;
5231 velocity.y = 0;
5232 };
5233 super.update();
5234 }
5235 public function animCallback(_arg1:String, _arg2:uint, _arg3:uint):void{
5236 if ((((_arg1 == "splash")) && ((_arg2 == 3)))){
5237 kill();
5238 };
5239 }
5240
5241 }
5242}//package
5243package {
5244 import mx.core.*;
5245
5246 public class PlayState_bedroomBg extends BitmapAsset {
5247
5248 }
5249}//package
5250package {
5251 import mx.core.*;
5252
5253 public class PlayState_overlayImg extends BitmapAsset {
5254
5255 }
5256}//package
5257package {
5258 import org.flixel.*;
5259
5260 public class FadingSprite extends FlxSprite {
5261
5262 public var start:Boolean;
5263 public var timer:Number;
5264 public var total:Number;
5265 public var callback:Function;
5266
5267 public function FadingSprite(_arg1:int, _arg2:int, _arg3:Number=0.5, _arg4:Boolean=false){
5268 super(_arg1, _arg2);
5269 timer = _arg3;
5270 total = _arg3;
5271 this.start = _arg4;
5272 }
5273 override public function update():void{
5274 if (start){
5275 timer = (timer - FlxG.elapsed);
5276 alpha = (timer / total);
5277 };
5278 if (timer <= 0){
5279 kill();
5280 callback();
5281 };
5282 super.update();
5283 }
5284
5285 }
5286}//package
5287package {
5288 import mx.core.*;
5289
5290 public class PlayState_city1 extends BitmapAsset {
5291
5292 }
5293}//package
5294package {
5295 import org.flixel.*;
5296
5297 public class MoveAffair extends Affair {
5298
5299 protected var callback:Function;
5300 protected var id:String;
5301
5302 public function MoveAffair(_arg1:String){
5303 this.id = _arg1;
5304 }
5305 override public function happen(_arg1:Function):void{
5306 this.callback = _arg1;
5307 FlxG.fade.start(4278190080, 1, doHappen);
5308 }
5309 public function doHappen():void{
5310 var _local1:int;
5311 var _local2:int;
5312 var _local3:int;
5313 FlxG.fade.stop();
5314 FlxG.flash.start(4278190080);
5315 switch (id){
5316 case "BEDROOM#":
5317 _local1 = 2005;
5318 _local2 = 2000;
5319 _local3 = 2160;
5320 break;
5321 case "MAIN#":
5322 _local1 = 600;
5323 _local2 = 0;
5324 _local3 = 800;
5325 break;
5326 case "END#":
5327 _local1 = 490;
5328 _local2 = 0;
5329 _local3 = 800;
5330 break;
5331 case "LIVING#":
5332 _local1 = 4005;
5333 _local2 = 4000;
5334 _local3 = 4160;
5335 break;
5336 case "EATING#":
5337 _local1 = 3005;
5338 _local2 = 3000;
5339 _local3 = 3160;
5340 break;
5341 };
5342 (FlxG.state as PlayState).GIRL.x = _local1;
5343 (FlxG.state as PlayState).GIRL.target = _local1;
5344 (FlxG.state as PlayState).GIRL.facing = FlxSprite.RIGHT;
5345 if (id == "EATING#"){
5346 (FlxG.state as PlayState).GIRL.visible = false;
5347 } else {
5348 (FlxG.state as PlayState).GIRL.visible = true;
5349 };
5350 FlxG.followBounds(_local2, 0, _local3, 160);
5351 callback();
5352 kill();
5353 }
5354
5355 }
5356}//package
5357package {
5358 import mx.resources.*;
5359
5360 public class en_US$styles_properties extends ResourceBundle {
5361
5362 public function en_US$styles_properties(){
5363 super("en_US", "styles");
5364 }
5365 override protected function getContent():Object{
5366 var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."};
5367 return (_local1);
5368 }
5369
5370 }
5371}//package
5372package {
5373 import mx.core.*;
5374
5375 public class EndState_blackScreen extends BitmapAsset {
5376
5377 }
5378}//package
5379package {
5380 import mx.core.*;
5381 import mx.styles.*;
5382
5383 public class _activeTabStyleStyle {
5384
5385 public static function init(_arg1:IFlexModuleFactory):void{
5386 var fbs:* = _arg1;
5387 var style:* = StyleManager.getStyleDeclaration(".activeTabStyle");
5388 if (!style){
5389 style = new CSSStyleDeclaration();
5390 StyleManager.setStyleDeclaration(".activeTabStyle", style, false);
5391 };
5392 if (style.defaultFactory == null){
5393 style.defaultFactory = function ():void{
5394 this.fontWeight = "bold";
5395 };
5396 };
5397 }
5398
5399 }
5400}//package
5401package {
5402 import mx.core.*;
5403
5404 public class PlayState_eatingBg extends BitmapAsset {
5405
5406 }
5407}//package
5408package {
5409 import mx.core.*;
5410
5411 public class PlayState_doorImage extends BitmapAsset {
5412
5413 }
5414}//package
5415package mx.resources {
5416
5417 public interface IResourceModule {
5418
5419 function get resourceBundles():Array;
5420
5421 }
5422}//package mx.resources
5423package mx.resources {
5424 import mx.core.*;
5425 import flash.system.*;
5426 import mx.utils.*;
5427
5428 public class ResourceBundle implements IResourceBundle {
5429
5430 mx_internal static const VERSION:String = "3.4.1.10084";
5431
5432 mx_internal static var backupApplicationDomain:ApplicationDomain;
5433 mx_internal static var locale:String;
5434
5435 mx_internal var _locale:String;
5436 private var _content:Object;
5437 mx_internal var _bundleName:String;
5438
5439 public function ResourceBundle(_arg1:String=null, _arg2:String=null){
5440 _content = {};
5441 super();
5442 mx_internal::_locale = _arg1;
5443 mx_internal::_bundleName = _arg2;
5444 _content = getContent();
5445 }
5446 private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{
5447 var _local3:Class;
5448 if (_arg2.hasDefinition(_arg1)){
5449 _local3 = (_arg2.getDefinition(_arg1) as Class);
5450 };
5451 return (_local3);
5452 }
5453 public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{
5454 var _local3:String;
5455 var _local4:Class;
5456 var _local5:Object;
5457 var _local6:ResourceBundle;
5458 if (!_arg2){
5459 _arg2 = ApplicationDomain.currentDomain;
5460 };
5461 _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties");
5462 _local4 = getClassByName(_local3, _arg2);
5463 if (!_local4){
5464 _local3 = (_arg1 + "_properties");
5465 _local4 = getClassByName(_local3, _arg2);
5466 };
5467 if (!_local4){
5468 _local3 = _arg1;
5469 _local4 = getClassByName(_local3, _arg2);
5470 };
5471 if (((!(_local4)) && (mx_internal::backupApplicationDomain))){
5472 _local3 = (_arg1 + "_properties");
5473 _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain);
5474 if (!_local4){
5475 _local3 = _arg1;
5476 _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain);
5477 };
5478 };
5479 if (_local4){
5480 _local5 = new (_local4);
5481 if ((_local5 is ResourceBundle)){
5482 _local6 = ResourceBundle(_local5);
5483 return (_local6);
5484 };
5485 };
5486 throw (new Error(("Could not find resource bundle " + _arg1)));
5487 }
5488
5489 protected function getContent():Object{
5490 return ({});
5491 }
5492 public function getString(_arg1:String):String{
5493 return (String(_getObject(_arg1)));
5494 }
5495 public function get content():Object{
5496 return (_content);
5497 }
5498 public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{
5499 var _local3:String = _getObject(_arg1).toLowerCase();
5500 if (_local3 == "false"){
5501 return (false);
5502 };
5503 if (_local3 == "true"){
5504 return (true);
5505 };
5506 return (_arg2);
5507 }
5508 public function getStringArray(_arg1:String):Array{
5509 var _local2:Array = _getObject(_arg1).split(",");
5510 var _local3:int = _local2.length;
5511 var _local4:int;
5512 while (_local4 < _local3) {
5513 _local2[_local4] = StringUtil.trim(_local2[_local4]);
5514 _local4++;
5515 };
5516 return (_local2);
5517 }
5518 public function getObject(_arg1:String):Object{
5519 return (_getObject(_arg1));
5520 }
5521 private function _getObject(_arg1:String):Object{
5522 var _local2:Object = content[_arg1];
5523 if (!_local2){
5524 throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName)));
5525 };
5526 return (_local2);
5527 }
5528 public function get locale():String{
5529 return (mx_internal::_locale);
5530 }
5531 public function get bundleName():String{
5532 return (mx_internal::_bundleName);
5533 }
5534 public function getNumber(_arg1:String):Number{
5535 return (Number(_getObject(_arg1)));
5536 }
5537
5538 }
5539}//package mx.resources
5540package mx.resources {
5541 import mx.core.*;
5542
5543 public class ResourceManager {
5544
5545 mx_internal static const VERSION:String = "3.4.1.10084";
5546
5547 private static var implClassDependency:ResourceManagerImpl;
5548 private static var instance:IResourceManager;
5549
5550 public static function getInstance():IResourceManager{
5551 if (!instance){
5552 try {
5553 instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager"));
5554 } catch(e:Error) {
5555 instance = new ResourceManagerImpl();
5556 };
5557 };
5558 return (instance);
5559 }
5560
5561 }
5562}//package mx.resources
5563package mx.resources {
5564 import mx.core.*;
5565 import flash.utils.*;
5566 import flash.events.*;
5567 import flash.system.*;
5568 import mx.modules.*;
5569 import mx.events.*;
5570 import mx.utils.*;
5571
5572 public class ResourceManagerImpl extends EventDispatcher implements IResourceManager {
5573
5574 mx_internal static const VERSION:String = "3.4.1.10084";
5575
5576 private static var instance:IResourceManager;
5577
5578 private var resourceModules:Object;
5579 private var initializedForNonFrameworkApp:Boolean = false;
5580 private var localeMap:Object;
5581 private var _localeChain:Array;
5582
5583 public function ResourceManagerImpl(){
5584 localeMap = {};
5585 resourceModules = {};
5586 super();
5587 }
5588 public static function getInstance():IResourceManager{
5589 if (!instance){
5590 instance = new (ResourceManagerImpl);
5591 };
5592 return (instance);
5593 }
5594
5595 public function get localeChain():Array{
5596 return (_localeChain);
5597 }
5598 public function set localeChain(_arg1:Array):void{
5599 _localeChain = _arg1;
5600 update();
5601 }
5602 public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{
5603 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5604 if (!_local4){
5605 return (null);
5606 };
5607 var _local5:* = _local4.content[_arg2];
5608 var _local6:Array = String(_local5).split(",");
5609 var _local7:int = _local6.length;
5610 var _local8:int;
5611 while (_local8 < _local7) {
5612 _local6[_local8] = StringUtil.trim(_local6[_local8]);
5613 _local8++;
5614 };
5615 return (_local6);
5616 }
5617 mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{
5618 var _local4:String;
5619 var _local5:String = _arg3;
5620 var _local6:int = _arg3.indexOf(":");
5621 if (_local6 != -1){
5622 _local4 = _arg3.substring(0, _local6);
5623 _local5 = _arg3.substring((_local6 + 1));
5624 };
5625 if (getResourceBundle(_arg2, _arg3)){
5626 return;
5627 };
5628 var _local7 = (((_arg2 + "$") + _local5) + "_properties");
5629 if (_local4 != null){
5630 _local7 = ((_local4 + ".") + _local7);
5631 };
5632 var _local8:Class;
5633 if (_arg1.hasDefinition(_local7)){
5634 _local8 = Class(_arg1.getDefinition(_local7));
5635 };
5636 if (!_local8){
5637 _local7 = _arg3;
5638 if (_arg1.hasDefinition(_local7)){
5639 _local8 = Class(_arg1.getDefinition(_local7));
5640 };
5641 };
5642 if (!_local8){
5643 _local7 = (_arg3 + "_properties");
5644 if (_arg1.hasDefinition(_local7)){
5645 _local8 = Class(_arg1.getDefinition(_local7));
5646 };
5647 };
5648 if (!_local8){
5649 throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'.")));
5650 };
5651 var _local9:ResourceBundle = ResourceBundle(new (_local8));
5652 _local9.mx_internal::_locale = _arg2;
5653 _local9.mx_internal::_bundleName = _arg3;
5654 addResourceBundle(_local9);
5655 }
5656 public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{
5657 var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4);
5658 if (!_local5){
5659 return (null);
5660 };
5661 var _local6:String = String(_local5.content[_arg2]);
5662 if (_arg3){
5663 _local6 = StringUtil.substitute(_local6, _arg3);
5664 };
5665 return (_local6);
5666 }
5667 public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
5668 var moduleInfo:* = null;
5669 var resourceEventDispatcher:* = null;
5670 var timer:* = null;
5671 var timerHandler:* = null;
5672 var url:* = _arg1;
5673 var updateFlag:Boolean = _arg2;
5674 var applicationDomain = _arg3;
5675 var securityDomain = _arg4;
5676 moduleInfo = ModuleManager.getModule(url);
5677 resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo);
5678 var readyHandler:* = function (_arg1:ModuleEvent):void{
5679 var _local2:* = _arg1.module.factory.create();
5680 resourceModules[_arg1.module.url].resourceModule = _local2;
5681 if (updateFlag){
5682 update();
5683 };
5684 };
5685 moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
5686 var errorHandler:* = function (_arg1:ModuleEvent):void{
5687 var _local3:ResourceEvent;
5688 var _local2:String = ("Unable to load resource module from " + url);
5689 if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){
5690 _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
5691 _local3.bytesLoaded = 0;
5692 _local3.bytesTotal = 0;
5693 _local3.errorText = _local2;
5694 resourceEventDispatcher.dispatchEvent(_local3);
5695 } else {
5696 throw (new Error(_local2));
5697 };
5698 };
5699 moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
5700 resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler);
5701 timer = new Timer(0);
5702 timerHandler = function (_arg1:TimerEvent):void{
5703 timer.removeEventListener(TimerEvent.TIMER, timerHandler);
5704 timer.stop();
5705 moduleInfo.load(applicationDomain, securityDomain);
5706 };
5707 timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
5708 timer.start();
5709 return (resourceEventDispatcher);
5710 }
5711 public function getLocales():Array{
5712 var _local2:String;
5713 var _local1:Array = [];
5714 for (_local2 in localeMap) {
5715 _local1.push(_local2);
5716 };
5717 return (_local1);
5718 }
5719 public function removeResourceBundlesForLocale(_arg1:String):void{
5720 delete localeMap[_arg1];
5721 }
5722 public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{
5723 var _local3:Object = localeMap[_arg1];
5724 if (!_local3){
5725 return (null);
5726 };
5727 return (_local3[_arg2]);
5728 }
5729 private function dumpResourceModule(_arg1):void{
5730 var _local2:ResourceBundle;
5731 var _local3:String;
5732 for each (_local2 in _arg1.resourceBundles) {
5733 trace(_local2.locale, _local2.bundleName);
5734 for (_local3 in _local2.content) {
5735 };
5736 };
5737 }
5738 public function addResourceBundle(_arg1:IResourceBundle):void{
5739 var _local2:String = _arg1.locale;
5740 var _local3:String = _arg1.bundleName;
5741 if (!localeMap[_local2]){
5742 localeMap[_local2] = {};
5743 };
5744 localeMap[_local2][_local3] = _arg1;
5745 }
5746 public function getObject(_arg1:String, _arg2:String, _arg3:String=null){
5747 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5748 if (!_local4){
5749 return (undefined);
5750 };
5751 return (_local4.content[_arg2]);
5752 }
5753 public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{
5754 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5755 if (!_local4){
5756 return (0);
5757 };
5758 var _local5:* = _local4.content[_arg2];
5759 return (int(_local5));
5760 }
5761 private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{
5762 supportNonFrameworkApps();
5763 return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2));
5764 }
5765 private function supportNonFrameworkApps():void{
5766 if (initializedForNonFrameworkApp){
5767 return;
5768 };
5769 initializedForNonFrameworkApp = true;
5770 if (getLocales().length > 0){
5771 return;
5772 };
5773 var _local1:ApplicationDomain = ApplicationDomain.currentDomain;
5774 if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){
5775 return;
5776 };
5777 var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo"));
5778 var _local3:Array = _local2.compiledLocales;
5779 var _local4:Array = _local2.compiledResourceBundleNames;
5780 installCompiledResourceBundles(_local1, _local3, _local4);
5781 localeChain = _local3;
5782 }
5783 public function getBundleNamesForLocale(_arg1:String):Array{
5784 var _local3:String;
5785 var _local2:Array = [];
5786 for (_local3 in localeMap[_arg1]) {
5787 _local2.push(_local3);
5788 };
5789 return (_local2);
5790 }
5791 public function getPreferredLocaleChain():Array{
5792 return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true));
5793 }
5794 public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{
5795 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5796 if (!_local4){
5797 return (NaN);
5798 };
5799 var _local5:* = _local4.content[_arg2];
5800 return (Number(_local5));
5801 }
5802 public function update():void{
5803 dispatchEvent(new Event(Event.CHANGE));
5804 }
5805 public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{
5806 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5807 if (!_local4){
5808 return (null);
5809 };
5810 var _local5:* = _local4.content[_arg2];
5811 return ((_local5 as Class));
5812 }
5813 public function removeResourceBundle(_arg1:String, _arg2:String):void{
5814 delete localeMap[_arg1][_arg2];
5815 if (getBundleNamesForLocale(_arg1).length == 0){
5816 delete localeMap[_arg1];
5817 };
5818 }
5819 public function initializeLocaleChain(_arg1:Array):void{
5820 localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true);
5821 }
5822 public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{
5823 var _local5:String;
5824 var _local6:Object;
5825 var _local7:ResourceBundle;
5826 if (!_localeChain){
5827 return (null);
5828 };
5829 var _local3:int = _localeChain.length;
5830 var _local4:int;
5831 while (_local4 < _local3) {
5832 _local5 = localeChain[_local4];
5833 _local6 = localeMap[_local5];
5834 if (!_local6){
5835 } else {
5836 _local7 = _local6[_arg1];
5837 if (!_local7){
5838 } else {
5839 if ((_arg2 in _local7.content)){
5840 return (_local7);
5841 };
5842 };
5843 };
5844 _local4++;
5845 };
5846 return (null);
5847 }
5848 public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{
5849 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5850 if (!_local4){
5851 return (0);
5852 };
5853 var _local5:* = _local4.content[_arg2];
5854 return (uint(_local5));
5855 }
5856 private function getSystemPreferredLocales():Array{
5857 var _local1:Array;
5858 if (Capabilities["languages"]){
5859 _local1 = Capabilities["languages"];
5860 } else {
5861 _local1 = [Capabilities.language];
5862 };
5863 return (_local1);
5864 }
5865 public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{
5866 var _local7:String;
5867 var _local8:int;
5868 var _local9:String;
5869 var _local4:int = (_arg2) ? _arg2.length : 0;
5870 var _local5:int = (_arg3) ? _arg3.length : 0;
5871 var _local6:int;
5872 while (_local6 < _local4) {
5873 _local7 = _arg2[_local6];
5874 _local8 = 0;
5875 while (_local8 < _local5) {
5876 _local9 = _arg3[_local8];
5877 mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9);
5878 _local8++;
5879 };
5880 _local6++;
5881 };
5882 }
5883 public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{
5884 var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
5885 if (!_local4){
5886 return (false);
5887 };
5888 var _local5:* = _local4.content[_arg2];
5889 return ((String(_local5).toLowerCase() == "true"));
5890 }
5891 public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{
5892 var _local4:Array;
5893 var _local5:int;
5894 var _local6:int;
5895 var _local7:String;
5896 var _local8:String;
5897 var _local3:ResourceModuleInfo = resourceModules[_arg1];
5898 if (!_local3){
5899 return;
5900 };
5901 if (_local3.resourceModule){
5902 _local4 = _local3.resourceModule.resourceBundles;
5903 if (_local4){
5904 _local5 = _local4.length;
5905 _local6 = 0;
5906 while (_local6 < _local5) {
5907 _local7 = _local4[_local6].locale;
5908 _local8 = _local4[_local6].bundleName;
5909 removeResourceBundle(_local7, _local8);
5910 _local6++;
5911 };
5912 };
5913 };
5914 resourceModules[_arg1] = null;
5915 delete resourceModules[_arg1];
5916 _local3.moduleInfo.unload();
5917 if (_arg2){
5918 this.update();
5919 };
5920 }
5921
5922 }
5923}//package mx.resources
5924
5925import flash.events.*;
5926import mx.modules.*;
5927import mx.events.*;
5928
5929class ResourceModuleInfo {
5930
5931 public var resourceModule:IResourceModule;
5932 public var errorHandler:Function;
5933 public var readyHandler:Function;
5934 public var moduleInfo:IModuleInfo;
5935
5936 public function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){
5937 this.moduleInfo = _arg1;
5938 this.readyHandler = _arg2;
5939 this.errorHandler = _arg3;
5940 }
5941}
5942class ResourceEventDispatcher extends EventDispatcher {
5943
5944 public function ResourceEventDispatcher(_arg1:IModuleInfo){
5945 _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true);
5946 _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
5947 _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
5948 }
5949 private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{
5950 var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
5951 _local2.bytesLoaded = _arg1.bytesLoaded;
5952 _local2.bytesTotal = _arg1.bytesTotal;
5953 dispatchEvent(_local2);
5954 }
5955 private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{
5956 var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE);
5957 dispatchEvent(_local2);
5958 }
5959 private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{
5960 var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
5961 _local2.bytesLoaded = _arg1.bytesLoaded;
5962 _local2.bytesTotal = _arg1.bytesTotal;
5963 _local2.errorText = _arg1.errorText;
5964 dispatchEvent(_local2);
5965 }
5966
5967}
5968package mx.resources {
5969 import flash.events.*;
5970 import flash.system.*;
5971
5972 public interface IResourceManager extends IEventDispatcher {
5973
5974 function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher;
5975 function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean;
5976 function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class;
5977 function getLocales():Array;
5978 function removeResourceBundlesForLocale(_arg1:String):void;
5979 function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle;
5980 function get localeChain():Array;
5981 function getInt(_arg1:String, _arg2:String, _arg3:String=null):int;
5982 function update():void;
5983 function set localeChain(_arg1:Array):void;
5984 function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint;
5985 function addResourceBundle(_arg1:IResourceBundle):void;
5986 function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array;
5987 function getBundleNamesForLocale(_arg1:String):Array;
5988 function removeResourceBundle(_arg1:String, _arg2:String):void;
5989 function getObject(_arg1:String, _arg2:String, _arg3:String=null);
5990 function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String;
5991 function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void;
5992 function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void;
5993 function getPreferredLocaleChain():Array;
5994 function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle;
5995 function initializeLocaleChain(_arg1:Array):void;
5996 function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number;
5997
5998 }
5999}//package mx.resources
6000package mx.resources {
6001
6002 public class LocaleSorter {
6003
6004 mx_internal static const VERSION:String = "3.4.1.10084";
6005
6006 private static function normalizeLocale(_arg1:String):String{
6007 return (_arg1.toLowerCase().replace(/-/g, "_"));
6008 }
6009 public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{
6010 var result:* = null;
6011 var hasLocale:* = null;
6012 var i:* = 0;
6013 var j:* = 0;
6014 var k:* = 0;
6015 var l:* = 0;
6016 var locale:* = null;
6017 var plocale:* = null;
6018 var appLocales:* = _arg1;
6019 var systemPreferences:* = _arg2;
6020 var ultimateFallbackLocale = _arg3;
6021 var addAll:Boolean = _arg4;
6022 var promote:* = function (_arg1:String):void{
6023 if (typeof(hasLocale[_arg1]) != "undefined"){
6024 result.push(appLocales[hasLocale[_arg1]]);
6025 delete hasLocale[_arg1];
6026 };
6027 };
6028 result = [];
6029 hasLocale = {};
6030 var locales:* = trimAndNormalize(appLocales);
6031 var preferenceLocales:* = trimAndNormalize(systemPreferences);
6032 addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale);
6033 j = 0;
6034 while (j < locales.length) {
6035 hasLocale[locales[j]] = j;
6036 j = (j + 1);
6037 };
6038 i = 0;
6039 l = preferenceLocales.length;
6040 while (i < l) {
6041 plocale = LocaleID.fromString(preferenceLocales[i]);
6042 promote(preferenceLocales[i]);
6043 promote(plocale.toString());
6044 while (plocale.transformToParent()) {
6045 promote(plocale.toString());
6046 };
6047 plocale = LocaleID.fromString(preferenceLocales[i]);
6048 j = 0;
6049 while (j < l) {
6050 locale = preferenceLocales[j];
6051 if (plocale.isSiblingOf(LocaleID.fromString(locale))){
6052 promote(locale);
6053 };
6054 j = (j + 1);
6055 };
6056 j = 0;
6057 k = locales.length;
6058 while (j < k) {
6059 locale = locales[j];
6060 if (plocale.isSiblingOf(LocaleID.fromString(locale))){
6061 promote(locale);
6062 };
6063 j = (j + 1);
6064 };
6065 i = (i + 1);
6066 };
6067 if (addAll){
6068 j = 0;
6069 k = locales.length;
6070 while (j < k) {
6071 promote(locales[j]);
6072 j = (j + 1);
6073 };
6074 };
6075 return (result);
6076 }
6077 private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{
6078 var _local3:String;
6079 if (((!((_arg2 == null))) && (!((_arg2 == ""))))){
6080 _local3 = normalizeLocale(_arg2);
6081 if (_arg1.indexOf(_local3) == -1){
6082 _arg1.push(_local3);
6083 };
6084 };
6085 }
6086 private static function trimAndNormalize(_arg1:Array):Array{
6087 var _local2:Array = [];
6088 var _local3:int;
6089 while (_local3 < _arg1.length) {
6090 _local2.push(normalizeLocale(_arg1[_local3]));
6091 _local3++;
6092 };
6093 return (_local2);
6094 }
6095
6096 }
6097}//package mx.resources
6098
6099class LocaleID {
6100
6101 public static const STATE_PRIMARY_LANGUAGE:int = 0;
6102 public static const STATE_REGION:int = 3;
6103 public static const STATE_EXTENDED_LANGUAGES:int = 1;
6104 public static const STATE_EXTENSIONS:int = 5;
6105 public static const STATE_SCRIPT:int = 2;
6106 public static const STATE_VARIANTS:int = 4;
6107 public static const STATE_PRIVATES:int = 6;
6108
6109 private var privateLangs:Boolean = false;
6110 private var script:String = "";
6111 private var variants:Array;
6112 private var privates:Array;
6113 private var extensions:Object;
6114 private var lang:String = "";
6115 private var region:String = "";
6116 private var extended_langs:Array;
6117
6118 public function LocaleID(){
6119 extended_langs = [];
6120 variants = [];
6121 extensions = {};
6122 privates = [];
6123 super();
6124 }
6125 public static function fromString(_arg1:String):LocaleID{
6126 var _local5:Array;
6127 var _local8:String;
6128 var _local9:int;
6129 var _local10:String;
6130 var _local2:LocaleID = new (LocaleID);
6131 var _local3:int = STATE_PRIMARY_LANGUAGE;
6132 var _local4:Array = _arg1.replace(/-/g, "_").split("_");
6133 var _local6:int;
6134 var _local7:int = _local4.length;
6135 while (_local6 < _local7) {
6136 _local8 = _local4[_local6].toLowerCase();
6137 if (_local3 == STATE_PRIMARY_LANGUAGE){
6138 if (_local8 == "x"){
6139 _local2.privateLangs = true;
6140 } else {
6141 if (_local8 == "i"){
6142 _local2.lang = (_local2.lang + "i-");
6143 } else {
6144 _local2.lang = (_local2.lang + _local8);
6145 _local3 = STATE_EXTENDED_LANGUAGES;
6146 };
6147 };
6148 } else {
6149 _local9 = _local8.length;
6150 if (_local9 == 0){
6151 } else {
6152 _local10 = _local8.charAt(0).toLowerCase();
6153 if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){
6154 _local2.extended_langs.push(_local8);
6155 if (_local2.extended_langs.length == 3){
6156 _local3 = STATE_SCRIPT;
6157 };
6158 } else {
6159 if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){
6160 _local2.script = _local8;
6161 _local3 = STATE_REGION;
6162 } else {
6163 if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){
6164 _local2.region = _local8;
6165 _local3 = STATE_VARIANTS;
6166 } else {
6167 if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){
6168 _local2.variants.push(_local8);
6169 _local3 = STATE_VARIANTS;
6170 } else {
6171 if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){
6172 if (_local8 == "x"){
6173 _local3 = STATE_PRIVATES;
6174 _local5 = _local2.privates;
6175 } else {
6176 _local3 = STATE_EXTENSIONS;
6177 _local5 = ((_local2.extensions[_local8]) || ([]));
6178 _local2.extensions[_local8] = _local5;
6179 };
6180 } else {
6181 if (_local3 >= STATE_EXTENSIONS){
6182 _local5.push(_local8);
6183 };
6184 };
6185 };
6186 };
6187 };
6188 };
6189 };
6190 };
6191 _local6++;
6192 };
6193 _local2.canonicalize();
6194 return (_local2);
6195 }
6196
6197 public function equals(_arg1:LocaleID):Boolean{
6198 return ((toString() == _arg1.toString()));
6199 }
6200 public function canonicalize():void{
6201 var _local1:String;
6202 for (_local1 in extensions) {
6203 if (extensions.hasOwnProperty(_local1)){
6204 if (extensions[_local1].length == 0){
6205 delete extensions[_local1];
6206 } else {
6207 extensions[_local1] = extensions[_local1].sort();
6208 };
6209 };
6210 };
6211 extended_langs = extended_langs.sort();
6212 variants = variants.sort();
6213 privates = privates.sort();
6214 if (script == ""){
6215 script = LocaleRegistry.getScriptByLang(lang);
6216 };
6217 if ((((script == "")) && (!((region == ""))))){
6218 script = LocaleRegistry.getScriptByLangAndRegion(lang, region);
6219 };
6220 if ((((region == "")) && (!((script == ""))))){
6221 region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script);
6222 };
6223 }
6224 public function toString():String{
6225 var _local2:String;
6226 var _local1:Array = [lang];
6227 Array.prototype.push.apply(_local1, extended_langs);
6228 if (script != ""){
6229 _local1.push(script);
6230 };
6231 if (region != ""){
6232 _local1.push(region);
6233 };
6234 Array.prototype.push.apply(_local1, variants);
6235 for (_local2 in extensions) {
6236 if (extensions.hasOwnProperty(_local2)){
6237 _local1.push(_local2);
6238 Array.prototype.push.apply(_local1, extensions[_local2]);
6239 };
6240 };
6241 if (privates.length > 0){
6242 _local1.push("x");
6243 Array.prototype.push.apply(_local1, privates);
6244 };
6245 return (_local1.join("_"));
6246 }
6247 public function isSiblingOf(_arg1:LocaleID):Boolean{
6248 return ((((lang == _arg1.lang)) && ((script == _arg1.script))));
6249 }
6250 public function transformToParent():Boolean{
6251 var _local2:String;
6252 var _local3:Array;
6253 var _local4:String;
6254 if (privates.length > 0){
6255 privates.splice((privates.length - 1), 1);
6256 return (true);
6257 };
6258 var _local1:String;
6259 for (_local2 in extensions) {
6260 if (extensions.hasOwnProperty(_local2)){
6261 _local1 = _local2;
6262 };
6263 };
6264 if (_local1){
6265 _local3 = extensions[_local1];
6266 if (_local3.length == 1){
6267 delete extensions[_local1];
6268 return (true);
6269 };
6270 _local3.splice((_local3.length - 1), 1);
6271 return (true);
6272 };
6273 if (variants.length > 0){
6274 variants.splice((variants.length - 1), 1);
6275 return (true);
6276 };
6277 if (script != ""){
6278 if (LocaleRegistry.getScriptByLang(lang) != ""){
6279 script = "";
6280 return (true);
6281 };
6282 if (region == ""){
6283 _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script);
6284 if (_local4 != ""){
6285 region = _local4;
6286 script = "";
6287 return (true);
6288 };
6289 };
6290 };
6291 if (region != ""){
6292 if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){
6293 region = "";
6294 return (true);
6295 };
6296 };
6297 if (extended_langs.length > 0){
6298 extended_langs.splice((extended_langs.length - 1), 1);
6299 return (true);
6300 };
6301 return (false);
6302 }
6303
6304}
6305class LocaleRegistry {
6306
6307 private static const SCRIPT_ID_BY_LANG:Object = {
6308 ab:5,
6309 af:1,
6310 am:2,
6311 ar:3,
6312 as:4,
6313 ay:1,
6314 be:5,
6315 bg:5,
6316 bn:4,
6317 bs:1,
6318 ca:1,
6319 ch:1,
6320 cs:1,
6321 cy:1,
6322 da:1,
6323 de:1,
6324 dv:6,
6325 dz:7,
6326 el:8,
6327 en:1,
6328 eo:1,
6329 es:1,
6330 et:1,
6331 eu:1,
6332 fa:3,
6333 fi:1,
6334 fj:1,
6335 fo:1,
6336 fr:1,
6337 frr:1,
6338 fy:1,
6339 ga:1,
6340 gl:1,
6341 gn:1,
6342 gu:9,
6343 gv:1,
6344 he:10,
6345 hi:11,
6346 hr:1,
6347 ht:1,
6348 hu:1,
6349 hy:12,
6350 id:1,
6351 in:1,
6352 is:1,
6353 it:1,
6354 iw:10,
6355 ja:13,
6356 ka:14,
6357 kk:5,
6358 kl:1,
6359 km:15,
6360 kn:16,
6361 ko:17,
6362 la:1,
6363 lb:1,
6364 ln:1,
6365 lo:18,
6366 lt:1,
6367 lv:1,
6368 mg:1,
6369 mh:1,
6370 mk:5,
6371 ml:19,
6372 mo:1,
6373 mr:11,
6374 ms:1,
6375 mt:1,
6376 my:20,
6377 na:1,
6378 nb:1,
6379 nd:1,
6380 ne:11,
6381 nl:1,
6382 nn:1,
6383 no:1,
6384 nr:1,
6385 ny:1,
6386 om:1,
6387 or:21,
6388 pa:22,
6389 pl:1,
6390 ps:3,
6391 pt:1,
6392 qu:1,
6393 rn:1,
6394 ro:1,
6395 ru:5,
6396 rw:1,
6397 sg:1,
6398 si:23,
6399 sk:1,
6400 sl:1,
6401 sm:1,
6402 so:1,
6403 sq:1,
6404 ss:1,
6405 st:1,
6406 sv:1,
6407 sw:1,
6408 ta:24,
6409 te:25,
6410 th:26,
6411 ti:2,
6412 tl:1,
6413 tn:1,
6414 to:1,
6415 tr:1,
6416 ts:1,
6417 uk:5,
6418 ur:3,
6419 ve:1,
6420 vi:1,
6421 wo:1,
6422 xh:1,
6423 yi:10,
6424 zu:1,
6425 cpe:1,
6426 dsb:1,
6427 frs:1,
6428 gsw:1,
6429 hsb:1,
6430 kok:11,
6431 mai:11,
6432 men:1,
6433 nds:1,
6434 niu:1,
6435 nqo:27,
6436 nso:1,
6437 son:1,
6438 tem:1,
6439 tkl:1,
6440 tmh:1,
6441 tpi:1,
6442 tvl:1,
6443 zbl:28
6444 };
6445 private static const SCRIPTS:Array = ["", "latn", "ethi", "arab", "beng", "cyrl", "thaa", "tibt", "grek", "gujr", "hebr", "deva", "armn", "jpan", "geor", "khmr", "knda", "kore", "laoo", "mlym", "mymr", "orya", "guru", "sinh", "taml", "telu", "thai", "nkoo", "blis", "hans", "hant", "mong", "syrc"];
6446 private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {
6447 bg:{5:"bg"},
6448 ca:{1:"es"},
6449 zh:{
6450 30:"tw",
6451 29:"cn"
6452 },
6453 cs:{1:"cz"},
6454 da:{1:"dk"},
6455 de:{1:"de"},
6456 el:{8:"gr"},
6457 en:{1:"us"},
6458 es:{1:"es"},
6459 fi:{1:"fi"},
6460 fr:{1:"fr"},
6461 he:{10:"il"},
6462 hu:{1:"hu"},
6463 is:{1:"is"},
6464 it:{1:"it"},
6465 ja:{13:"jp"},
6466 ko:{17:"kr"},
6467 nl:{1:"nl"},
6468 nb:{1:"no"},
6469 pl:{1:"pl"},
6470 pt:{1:"br"},
6471 ro:{1:"ro"},
6472 ru:{5:"ru"},
6473 hr:{1:"hr"},
6474 sk:{1:"sk"},
6475 sq:{1:"al"},
6476 sv:{1:"se"},
6477 th:{26:"th"},
6478 tr:{1:"tr"},
6479 ur:{3:"pk"},
6480 id:{1:"id"},
6481 uk:{5:"ua"},
6482 be:{5:"by"},
6483 sl:{1:"si"},
6484 et:{1:"ee"},
6485 lv:{1:"lv"},
6486 lt:{1:"lt"},
6487 fa:{3:"ir"},
6488 vi:{1:"vn"},
6489 hy:{12:"am"},
6490 az:{
6491 1:"az",
6492 5:"az"
6493 },
6494 eu:{1:"es"},
6495 mk:{5:"mk"},
6496 af:{1:"za"},
6497 ka:{14:"ge"},
6498 fo:{1:"fo"},
6499 hi:{11:"in"},
6500 ms:{1:"my"},
6501 kk:{5:"kz"},
6502 ky:{5:"kg"},
6503 sw:{1:"ke"},
6504 uz:{
6505 1:"uz",
6506 5:"uz"
6507 },
6508 tt:{5:"ru"},
6509 pa:{22:"in"},
6510 gu:{9:"in"},
6511 ta:{24:"in"},
6512 te:{25:"in"},
6513 kn:{16:"in"},
6514 mr:{11:"in"},
6515 sa:{11:"in"},
6516 mn:{5:"mn"},
6517 gl:{1:"es"},
6518 kok:{11:"in"},
6519 syr:{32:"sy"},
6520 dv:{6:"mv"},
6521 nn:{1:"no"},
6522 sr:{
6523 1:"cs",
6524 5:"cs"
6525 },
6526 cy:{1:"gb"},
6527 mi:{1:"nz"},
6528 mt:{1:"mt"},
6529 quz:{1:"bo"},
6530 tn:{1:"za"},
6531 xh:{1:"za"},
6532 zu:{1:"za"},
6533 nso:{1:"za"},
6534 se:{1:"no"},
6535 smj:{1:"no"},
6536 sma:{1:"no"},
6537 sms:{1:"fi"},
6538 smn:{1:"fi"},
6539 bs:{1:"ba"}
6540 };
6541 private static const SCRIPT_BY_ID:Object = {
6542 latn:1,
6543 ethi:2,
6544 arab:3,
6545 beng:4,
6546 cyrl:5,
6547 thaa:6,
6548 tibt:7,
6549 grek:8,
6550 gujr:9,
6551 hebr:10,
6552 deva:11,
6553 armn:12,
6554 jpan:13,
6555 geor:14,
6556 khmr:15,
6557 knda:16,
6558 kore:17,
6559 laoo:18,
6560 mlym:19,
6561 mymr:20,
6562 orya:21,
6563 guru:22,
6564 sinh:23,
6565 taml:24,
6566 telu:25,
6567 thai:26,
6568 nkoo:27,
6569 blis:28,
6570 hans:29,
6571 hant:30,
6572 mong:31,
6573 syrc:32
6574 };
6575 private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {
6576 zh:{
6577 cn:29,
6578 sg:29,
6579 tw:30,
6580 hk:30,
6581 mo:30
6582 },
6583 mn:{
6584 cn:31,
6585 sg:5
6586 },
6587 pa:{
6588 pk:3,
6589 in:22
6590 },
6591 ha:{
6592 gh:1,
6593 ne:1
6594 }
6595 };
6596
6597 public function LocaleRegistry(){
6598 }
6599 public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{
6600 var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1];
6601 if (_local3 == null){
6602 return ("");
6603 };
6604 var _local4:Object = _local3[_arg2];
6605 if (_local4 == null){
6606 return ("");
6607 };
6608 return (SCRIPTS[int(_local4)].toLowerCase());
6609 }
6610 public static function getScriptByLang(_arg1:String):String{
6611 var _local2:Object = SCRIPT_ID_BY_LANG[_arg1];
6612 if (_local2 == null){
6613 return ("");
6614 };
6615 return (SCRIPTS[int(_local2)].toLowerCase());
6616 }
6617 public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{
6618 var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1];
6619 var _local4:Object = SCRIPT_BY_ID[_arg2];
6620 if ((((_local3 == null)) || ((_local4 == null)))){
6621 return ("");
6622 };
6623 return (((_local3[int(_local4)]) || ("")));
6624 }
6625
6626}
6627package mx.resources {
6628
6629 public interface IResourceBundle {
6630
6631 function get content():Object;
6632 function get locale():String;
6633 function get bundleName():String;
6634
6635 }
6636}//package mx.resources
6637package mx.skins {
6638 import mx.core.*;
6639 import flash.display.*;
6640 import mx.styles.*;
6641 import flash.geom.*;
6642 import mx.managers.*;
6643 import mx.utils.*;
6644
6645 public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin {
6646
6647 mx_internal static const VERSION:String = "3.4.1.10084";
6648
6649 private static var tempMatrix:Matrix = new Matrix();
6650
6651 private var _initialized:Boolean = false;
6652 private var _height:Number;
6653 private var invalidateDisplayListFlag:Boolean = false;
6654 private var _styleName:IStyleClient;
6655 private var _nestLevel:int = 0;
6656 private var _processedDescriptors:Boolean = false;
6657 private var _updateCompletePendingFlag:Boolean = true;
6658 private var _width:Number;
6659
6660 public function ProgrammaticSkin(){
6661 _width = measuredWidth;
6662 _height = measuredHeight;
6663 }
6664 public function getStyle(_arg1:String){
6665 return ((_styleName) ? _styleName.getStyle(_arg1) : null);
6666 }
6667 protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
6668 }
6669 public function get nestLevel():int{
6670 return (_nestLevel);
6671 }
6672 public function set nestLevel(_arg1:int):void{
6673 _nestLevel = _arg1;
6674 invalidateDisplayList();
6675 }
6676 override public function get height():Number{
6677 return (_height);
6678 }
6679 public function get updateCompletePendingFlag():Boolean{
6680 return (_updateCompletePendingFlag);
6681 }
6682 protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
6683 return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90));
6684 }
6685 public function validateSize(_arg1:Boolean=false):void{
6686 }
6687 public function invalidateDisplayList():void{
6688 if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){
6689 invalidateDisplayListFlag = true;
6690 UIComponentGlobals.layoutManager.invalidateDisplayList(this);
6691 };
6692 }
6693 public function set updateCompletePendingFlag(_arg1:Boolean):void{
6694 _updateCompletePendingFlag = _arg1;
6695 }
6696 protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
6697 return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0));
6698 }
6699 override public function set height(_arg1:Number):void{
6700 _height = _arg1;
6701 invalidateDisplayList();
6702 }
6703 public function set processedDescriptors(_arg1:Boolean):void{
6704 _processedDescriptors = _arg1;
6705 }
6706 public function validateDisplayList():void{
6707 invalidateDisplayListFlag = false;
6708 updateDisplayList(width, height);
6709 }
6710 public function get measuredWidth():Number{
6711 return (0);
6712 }
6713 override public function set width(_arg1:Number):void{
6714 _width = _arg1;
6715 invalidateDisplayList();
6716 }
6717 public function get measuredHeight():Number{
6718 return (0);
6719 }
6720 public function set initialized(_arg1:Boolean):void{
6721 _initialized = _arg1;
6722 }
6723 protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{
6724 var _local13:Number;
6725 var _local14:Array;
6726 var _local15:Object;
6727 var _local12:Graphics = graphics;
6728 if ((((_arg3 == 0)) || ((_arg4 == 0)))){
6729 return;
6730 };
6731 if (_arg6 !== null){
6732 if ((_arg6 is uint)){
6733 _local12.beginFill(uint(_arg6), Number(_arg7));
6734 } else {
6735 if ((_arg6 is Array)){
6736 _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7];
6737 if (!_arg10){
6738 _arg10 = [0, 0xFF];
6739 };
6740 _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8);
6741 };
6742 };
6743 };
6744 if (!_arg5){
6745 _local12.drawRect(_arg1, _arg2, _arg3, _arg4);
6746 } else {
6747 if ((_arg5 is Number)){
6748 _local13 = (Number(_arg5) * 2);
6749 _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13);
6750 } else {
6751 GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br);
6752 };
6753 };
6754 if (_arg11){
6755 _local15 = _arg11.r;
6756 if ((_local15 is Number)){
6757 _local13 = (Number(_local15) * 2);
6758 _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13);
6759 } else {
6760 GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br);
6761 };
6762 };
6763 if (_arg6 !== null){
6764 _local12.endFill();
6765 };
6766 }
6767 public function get processedDescriptors():Boolean{
6768 return (_processedDescriptors);
6769 }
6770 public function set styleName(_arg1:Object):void{
6771 if (_styleName != _arg1){
6772 _styleName = (_arg1 as IStyleClient);
6773 invalidateDisplayList();
6774 };
6775 }
6776 public function setActualSize(_arg1:Number, _arg2:Number):void{
6777 var _local3:Boolean;
6778 if (_width != _arg1){
6779 _width = _arg1;
6780 _local3 = true;
6781 };
6782 if (_height != _arg2){
6783 _height = _arg2;
6784 _local3 = true;
6785 };
6786 if (_local3){
6787 invalidateDisplayList();
6788 };
6789 }
6790 public function styleChanged(_arg1:String):void{
6791 invalidateDisplayList();
6792 }
6793 override public function get width():Number{
6794 return (_width);
6795 }
6796 public function invalidateProperties():void{
6797 }
6798 public function get initialized():Boolean{
6799 return (_initialized);
6800 }
6801 protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{
6802 tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2);
6803 return (tempMatrix);
6804 }
6805 public function move(_arg1:Number, _arg2:Number):void{
6806 this.x = _arg1;
6807 this.y = _arg2;
6808 }
6809 public function get styleName():Object{
6810 return (_styleName);
6811 }
6812 public function validateNow():void{
6813 if (invalidateDisplayListFlag){
6814 validateDisplayList();
6815 };
6816 }
6817 public function invalidateSize():void{
6818 }
6819 public function validateProperties():void{
6820 }
6821
6822 }
6823}//package mx.skins
6824package mx.skins {
6825 import mx.core.*;
6826 import flash.display.*;
6827 import flash.utils.*;
6828 import mx.styles.*;
6829 import flash.events.*;
6830 import flash.system.*;
6831 import flash.geom.*;
6832 import mx.resources.*;
6833 import flash.net.*;
6834
6835 public class RectangularBorder extends Border implements IRectangularBorder {
6836
6837 mx_internal static const VERSION:String = "3.4.1.10084";
6838
6839 private var backgroundImage:DisplayObject;
6840 private var backgroundImageHeight:Number;
6841 private var _backgroundImageBounds:Rectangle;
6842 private var backgroundImageStyle:Object;
6843 private var backgroundImageWidth:Number;
6844 private var resourceManager:IResourceManager;
6845
6846 public function RectangularBorder(){
6847 resourceManager = ResourceManager.getInstance();
6848 super();
6849 addEventListener(Event.REMOVED, removedHandler);
6850 }
6851 public function layoutBackgroundImage():void{
6852 var _local4:Number;
6853 var _local5:Number;
6854 var _local7:Number;
6855 var _local8:Number;
6856 var _local14:Number;
6857 var _local15:Graphics;
6858 var _local1:DisplayObject = parent;
6859 var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics;
6860 var _local3 = !((getStyle("backgroundAttachment") == "fixed"));
6861 if (_backgroundImageBounds){
6862 _local4 = _backgroundImageBounds.width;
6863 _local5 = _backgroundImageBounds.height;
6864 } else {
6865 _local4 = ((width - _local2.left) - _local2.right);
6866 _local5 = ((height - _local2.top) - _local2.bottom);
6867 };
6868 var _local6:Number = getBackgroundSize();
6869 if (isNaN(_local6)){
6870 _local7 = 1;
6871 _local8 = 1;
6872 } else {
6873 _local14 = (_local6 * 0.01);
6874 _local7 = ((_local14 * _local4) / backgroundImageWidth);
6875 _local8 = ((_local14 * _local5) / backgroundImageHeight);
6876 };
6877 backgroundImage.scaleX = _local7;
6878 backgroundImage.scaleY = _local8;
6879 var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7))));
6880 var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8))));
6881 backgroundImage.x = _local2.left;
6882 backgroundImage.y = _local2.top;
6883 var _local11:Shape = Shape(backgroundImage.mask);
6884 _local11.x = _local2.left;
6885 _local11.y = _local2.top;
6886 if (((_local3) && ((_local1 is IContainer)))){
6887 _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition);
6888 _local10 = (_local10 - IContainer(_local1).verticalScrollPosition);
6889 };
6890 backgroundImage.alpha = getStyle("backgroundAlpha");
6891 backgroundImage.x = (backgroundImage.x + _local9);
6892 backgroundImage.y = (backgroundImage.y + _local10);
6893 var _local12:Number = ((width - _local2.left) - _local2.right);
6894 var _local13:Number = ((height - _local2.top) - _local2.bottom);
6895 if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){
6896 _local15 = _local11.graphics;
6897 _local15.clear();
6898 _local15.beginFill(0xFFFFFF);
6899 _local15.drawRect(0, 0, _local12, _local13);
6900 _local15.endFill();
6901 };
6902 }
6903 public function set backgroundImageBounds(_arg1:Rectangle):void{
6904 if (((((_backgroundImageBounds) && (_arg1))) && (_backgroundImageBounds.equals(_arg1)))){
6905 return;
6906 };
6907 _backgroundImageBounds = _arg1;
6908 invalidateDisplayList();
6909 }
6910 private function getBackgroundSize():Number{
6911 var _local3:int;
6912 var _local1:Number = NaN;
6913 var _local2:Object = getStyle("backgroundSize");
6914 if (((_local2) && ((_local2 is String)))){
6915 _local3 = _local2.indexOf("%");
6916 if (_local3 != -1){
6917 _local1 = Number(_local2.substr(0, _local3));
6918 };
6919 };
6920 return (_local1);
6921 }
6922 private function removedHandler(_arg1:Event):void{
6923 var _local2:IChildList;
6924 if (backgroundImage){
6925 _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent);
6926 _local2.removeChild(backgroundImage.mask);
6927 _local2.removeChild(backgroundImage);
6928 backgroundImage = null;
6929 };
6930 }
6931 private function initBackgroundImage(_arg1:DisplayObject):void{
6932 backgroundImage = _arg1;
6933 if ((_arg1 is Loader)){
6934 backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width;
6935 backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height;
6936 } else {
6937 backgroundImageWidth = backgroundImage.width;
6938 backgroundImageHeight = backgroundImage.height;
6939 if ((_arg1 is ISimpleStyleClient)){
6940 ISimpleStyleClient(_arg1).styleName = styleName;
6941 };
6942 };
6943 var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent);
6944 var _local3:Shape = new FlexShape();
6945 _local3.name = "backgroundMask";
6946 _local3.x = 0;
6947 _local3.y = 0;
6948 _local2.addChild(_local3);
6949 var _local4:int = _local2.getChildIndex(this);
6950 _local2.addChildAt(backgroundImage, (_local4 + 1));
6951 backgroundImage.mask = _local3;
6952 }
6953 public function get backgroundImageBounds():Rectangle{
6954 return (_backgroundImageBounds);
6955 }
6956 public function get hasBackgroundImage():Boolean{
6957 return (!((backgroundImage == null)));
6958 }
6959 private function completeEventHandler(_arg1:Event):void{
6960 if (!parent){
6961 return;
6962 };
6963 var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader);
6964 initBackgroundImage(_local2);
6965 layoutBackgroundImage();
6966 dispatchEvent(_arg1.clone());
6967 }
6968 override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
6969 var cls:* = null;
6970 var newStyleObj:* = null;
6971 const loader:* = null;
6972 var loaderContext:* = null;
6973 var message:* = null;
6974 var unscaledWidth:* = _arg1;
6975 var unscaledHeight:* = _arg2;
6976 if (!parent){
6977 return;
6978 };
6979 var newStyle:* = getStyle("backgroundImage");
6980 if (newStyle != backgroundImageStyle){
6981 removedHandler(null);
6982 backgroundImageStyle = newStyle;
6983 if (((newStyle) && ((newStyle as Class)))){
6984 cls = Class(newStyle);
6985 initBackgroundImage(new (cls));
6986 } else {
6987 if (((newStyle) && ((newStyle is String)))){
6988 try {
6989 cls = Class(getDefinitionByName(String(newStyle)));
6990 } catch(e:Error) {
6991 };
6992 if (cls){
6993 newStyleObj = new (cls);
6994 initBackgroundImage(newStyleObj);
6995 } else {
6996 loader = new FlexLoader();
6997 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler);
6998 loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler);
6999 loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler);
7000 loaderContext = new LoaderContext();
7001 loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
7002 loader.load(new URLRequest(String(newStyle)), loaderContext);
7003 };
7004 } else {
7005 if (newStyle){
7006 message = resourceManager.getString("skins", "notLoaded", [newStyle]);
7007 throw (new Error(message));
7008 };
7009 };
7010 };
7011 };
7012 if (backgroundImage){
7013 layoutBackgroundImage();
7014 };
7015 }
7016 private function errorEventHandler(_arg1:Event):void{
7017 }
7018
7019 }
7020}//package mx.skins
7021package mx.skins {
7022 import mx.core.*;
7023
7024 public class Border extends ProgrammaticSkin implements IBorder {
7025
7026 mx_internal static const VERSION:String = "3.4.1.10084";
7027
7028 public function get borderMetrics():EdgeMetrics{
7029 return (EdgeMetrics.EMPTY);
7030 }
7031
7032 }
7033}//package mx.skins
7034package mx.skins.halo {
7035 import mx.core.*;
7036 import flash.display.*;
7037 import mx.styles.*;
7038 import mx.skins.*;
7039 import mx.graphics.*;
7040 import mx.utils.*;
7041
7042 public class HaloBorder extends RectangularBorder {
7043
7044 mx_internal static const VERSION:String = "3.4.1.10084";
7045
7046 private static var BORDER_WIDTHS:Object = {
7047 none:0,
7048 solid:1,
7049 inset:2,
7050 outset:2,
7051 alert:3,
7052 dropdown:2,
7053 menuBorder:1,
7054 comboNonEdit:2
7055 };
7056
7057 mx_internal var radiusObj:Object;
7058 mx_internal var backgroundHole:Object;
7059 mx_internal var radius:Number;
7060 mx_internal var bRoundedCorners:Boolean;
7061 mx_internal var backgroundColor:Object;
7062 private var dropShadow:RectangularDropShadow;
7063 protected var _borderMetrics:EdgeMetrics;
7064 mx_internal var backgroundAlphaName:String;
7065
7066 public function HaloBorder(){
7067 BORDER_WIDTHS["default"] = 3;
7068 }
7069 override public function styleChanged(_arg1:String):void{
7070 if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){
7071 _borderMetrics = null;
7072 };
7073 invalidateDisplayList();
7074 }
7075 override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
7076 if (((isNaN(_arg1)) || (isNaN(_arg2)))){
7077 return;
7078 };
7079 super.updateDisplayList(_arg1, _arg2);
7080 backgroundColor = getBackgroundColor();
7081 bRoundedCorners = false;
7082 backgroundAlphaName = "backgroundAlpha";
7083 backgroundHole = null;
7084 radius = 0;
7085 radiusObj = null;
7086 drawBorder(_arg1, _arg2);
7087 drawBackground(_arg1, _arg2);
7088 }
7089 mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{
7090 var _local5:Number;
7091 var _local6:uint;
7092 var _local7:uint;
7093 var _local8:String;
7094 var _local9:Number;
7095 var _local10:uint;
7096 var _local11:Boolean;
7097 var _local12:uint;
7098 var _local13:Array;
7099 var _local14:Array;
7100 var _local15:uint;
7101 var _local16:uint;
7102 var _local17:uint;
7103 var _local18:uint;
7104 var _local19:Boolean;
7105 var _local20:Object;
7106 var _local22:Number;
7107 var _local23:Number;
7108 var _local24:Number;
7109 var _local25:Object;
7110 var _local27:Number;
7111 var _local28:Number;
7112 var _local29:IContainer;
7113 var _local30:EdgeMetrics;
7114 var _local31:Boolean;
7115 var _local32:Number;
7116 var _local33:Array;
7117 var _local34:uint;
7118 var _local35:Boolean;
7119 var _local36:Number;
7120 var _local3:String = getStyle("borderStyle");
7121 var _local4:Array = getStyle("highlightAlphas");
7122 var _local21:Boolean;
7123 var _local26:Graphics = graphics;
7124 _local26.clear();
7125 if (_local3){
7126 switch (_local3){
7127 case "none":
7128 break;
7129 case "inset":
7130 _local7 = getStyle("borderColor");
7131 _local22 = ColorUtil.adjustBrightness2(_local7, -40);
7132 _local23 = ColorUtil.adjustBrightness2(_local7, 25);
7133 _local24 = ColorUtil.adjustBrightness2(_local7, 40);
7134 _local25 = backgroundColor;
7135 if ((((_local25 === null)) || ((_local25 === "")))){
7136 _local25 = _local7;
7137 };
7138 draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25));
7139 break;
7140 case "outset":
7141 _local7 = getStyle("borderColor");
7142 _local22 = ColorUtil.adjustBrightness2(_local7, -40);
7143 _local23 = ColorUtil.adjustBrightness2(_local7, -25);
7144 _local24 = ColorUtil.adjustBrightness2(_local7, 40);
7145 _local25 = backgroundColor;
7146 if ((((_local25 === null)) || ((_local25 === "")))){
7147 _local25 = _local7;
7148 };
7149 draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25));
7150 break;
7151 case "alert":
7152 case "default":
7153 if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
7154 _local27 = getStyle("backgroundAlpha");
7155 _local5 = getStyle("borderAlpha");
7156 backgroundAlphaName = "borderAlpha";
7157 radius = getStyle("cornerRadius");
7158 bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true");
7159 _local28 = (bRoundedCorners) ? radius : 0;
7160 drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28);
7161 if (!bRoundedCorners){
7162 radiusObj = {};
7163 };
7164 _local29 = (parent as IContainer);
7165 if (_local29){
7166 _local30 = _local29.viewMetrics;
7167 backgroundHole = {
7168 x:_local30.left,
7169 y:_local30.top,
7170 w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)),
7171 h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)),
7172 r:0
7173 };
7174 if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){
7175 if (_local27 != _local5){
7176 drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0);
7177 };
7178 _local26.beginFill(Number(backgroundColor), _local27);
7179 _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h);
7180 _local26.endFill();
7181 };
7182 };
7183 backgroundColor = getStyle("borderColor");
7184 };
7185 break;
7186 case "dropdown":
7187 _local12 = getStyle("dropdownBorderColor");
7188 drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4);
7189 drawRoundRect(0, 0, _arg1, _arg2, {
7190 tl:4,
7191 tr:0,
7192 br:0,
7193 bl:4
7194 }, 5068126, 1);
7195 drawRoundRect(0, 0, _arg1, _arg2, {
7196 tl:4,
7197 tr:0,
7198 br:0,
7199 bl:4
7200 }, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2));
7201 drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {
7202 tl:3,
7203 tr:0,
7204 br:0,
7205 bl:3
7206 }, 0xFFFFFF, 1);
7207 drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {
7208 tl:3,
7209 tr:0,
7210 br:0,
7211 bl:3
7212 }, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3)));
7213 if (!isNaN(_local12)){
7214 drawRoundRect(0, 0, (_arg1 + 1), _arg2, {
7215 tl:4,
7216 tr:0,
7217 br:0,
7218 bl:4
7219 }, _local12, 0.5);
7220 drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {
7221 tl:3,
7222 tr:0,
7223 br:0,
7224 bl:3
7225 }, 0xFFFFFF, 1);
7226 drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {
7227 tl:3,
7228 tr:0,
7229 br:0,
7230 bl:3
7231 }, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3)));
7232 };
7233 backgroundColor = null;
7234 break;
7235 case "menuBorder":
7236 _local7 = getStyle("borderColor");
7237 drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1);
7238 drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0);
7239 break;
7240 case "comboNonEdit":
7241 break;
7242 case "controlBar":
7243 if ((((_arg1 == 0)) || ((_arg2 == 0)))){
7244 backgroundColor = null;
7245 break;
7246 };
7247 _local14 = getStyle("footerColors");
7248 _local31 = !((_local14 == null));
7249 _local32 = getStyle("borderAlpha");
7250 if (_local31){
7251 _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32);
7252 _local26.moveTo(0, 0);
7253 _local26.lineTo(_arg1, 0);
7254 _local26.lineStyle(0, 0, 0);
7255 if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){
7256 radius = IStyleClient(parent.parent).getStyle("cornerRadius");
7257 _local32 = IStyleClient(parent.parent).getStyle("borderAlpha");
7258 };
7259 if (isNaN(radius)){
7260 radius = 0;
7261 };
7262 if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){
7263 radius = 0;
7264 };
7265 drawRoundRect(0, 1, _arg1, (_arg2 - 1), {
7266 tl:0,
7267 tr:0,
7268 bl:radius,
7269 br:radius
7270 }, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2));
7271 if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){
7272 drawRoundRect(0, 1, _arg1, (_arg2 - 1), {
7273 tl:0,
7274 tr:0,
7275 bl:radius,
7276 br:radius
7277 }, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2));
7278 drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {
7279 tl:0,
7280 tr:0,
7281 bl:(radius - 1),
7282 br:(radius - 1)
7283 }, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2));
7284 };
7285 };
7286 backgroundColor = null;
7287 break;
7288 case "applicationControlBar":
7289 _local13 = getStyle("fillColors");
7290 _local5 = getStyle("backgroundAlpha");
7291 _local4 = getStyle("highlightAlphas");
7292 _local33 = getStyle("fillAlphas");
7293 _local11 = getStyle("docked");
7294 _local34 = uint(backgroundColor);
7295 radius = getStyle("cornerRadius");
7296 if (!radius){
7297 radius = 0;
7298 };
7299 drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius);
7300 if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){
7301 drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2));
7302 };
7303 drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2));
7304 drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {
7305 tl:radius,
7306 tr:radius,
7307 bl:0,
7308 br:0
7309 }, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1)));
7310 drawRoundRect(0, 1, _arg1, (_arg2 - 1), {
7311 tl:radius,
7312 tr:radius,
7313 bl:0,
7314 br:0
7315 }, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {
7316 x:0,
7317 y:2,
7318 w:_arg1,
7319 h:(_arg2 - 2),
7320 r:{
7321 tl:radius,
7322 tr:radius,
7323 bl:0,
7324 br:0
7325 }
7326 });
7327 backgroundColor = null;
7328 break;
7329 default:
7330 _local7 = getStyle("borderColor");
7331 _local9 = getStyle("borderThickness");
7332 _local8 = getStyle("borderSides");
7333 _local35 = true;
7334 radius = getStyle("cornerRadius");
7335 bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true");
7336 _local36 = Math.max((radius - _local9), 0);
7337 _local20 = {
7338 x:_local9,
7339 y:_local9,
7340 w:(_arg1 - (_local9 * 2)),
7341 h:(_arg2 - (_local9 * 2)),
7342 r:_local36
7343 };
7344 if (!bRoundedCorners){
7345 radiusObj = {
7346 tl:radius,
7347 tr:radius,
7348 bl:0,
7349 br:0
7350 };
7351 _local20.r = {
7352 tl:_local36,
7353 tr:_local36,
7354 bl:0,
7355 br:0
7356 };
7357 };
7358 if (_local8 != "left top right bottom"){
7359 _local20.r = {
7360 tl:_local36,
7361 tr:_local36,
7362 bl:(bRoundedCorners) ? _local36 : 0,
7363 br:(bRoundedCorners) ? _local36 : 0
7364 };
7365 radiusObj = {
7366 tl:radius,
7367 tr:radius,
7368 bl:(bRoundedCorners) ? radius : 0,
7369 br:(bRoundedCorners) ? radius : 0
7370 };
7371 _local8 = _local8.toLowerCase();
7372 if (_local8.indexOf("left") == -1){
7373 _local20.x = 0;
7374 _local20.w = (_local20.w + _local9);
7375 _local20.r.tl = 0;
7376 _local20.r.bl = 0;
7377 radiusObj.tl = 0;
7378 radiusObj.bl = 0;
7379 _local35 = false;
7380 };
7381 if (_local8.indexOf("top") == -1){
7382 _local20.y = 0;
7383 _local20.h = (_local20.h + _local9);
7384 _local20.r.tl = 0;
7385 _local20.r.tr = 0;
7386 radiusObj.tl = 0;
7387 radiusObj.tr = 0;
7388 _local35 = false;
7389 };
7390 if (_local8.indexOf("right") == -1){
7391 _local20.w = (_local20.w + _local9);
7392 _local20.r.tr = 0;
7393 _local20.r.br = 0;
7394 radiusObj.tr = 0;
7395 radiusObj.br = 0;
7396 _local35 = false;
7397 };
7398 if (_local8.indexOf("bottom") == -1){
7399 _local20.h = (_local20.h + _local9);
7400 _local20.r.bl = 0;
7401 _local20.r.br = 0;
7402 radiusObj.bl = 0;
7403 radiusObj.br = 0;
7404 _local35 = false;
7405 };
7406 };
7407 if ((((radius == 0)) && (_local35))){
7408 drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0);
7409 _local26.beginFill(_local7);
7410 _local26.drawRect(0, 0, _arg1, _arg2);
7411 _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9)));
7412 _local26.endFill();
7413 } else {
7414 if (radiusObj){
7415 drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl);
7416 drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20);
7417 radiusObj.tl = Math.max((radius - _local9), 0);
7418 radiusObj.tr = Math.max((radius - _local9), 0);
7419 radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0;
7420 radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0;
7421 } else {
7422 drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius);
7423 drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20);
7424 radius = Math.max((getStyle("cornerRadius") - _local9), 0);
7425 };
7426 };
7427 };
7428 };
7429 }
7430 mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{
7431 var _local4:Number;
7432 var _local5:Number;
7433 var _local6:EdgeMetrics;
7434 var _local7:Graphics;
7435 var _local8:Number;
7436 var _local9:Number;
7437 var _local10:Number;
7438 var _local11:Array;
7439 var _local12:Number;
7440 if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){
7441 _local4 = Number(backgroundColor);
7442 _local5 = 1;
7443 _local6 = getBackgroundColorMetrics();
7444 _local7 = graphics;
7445 if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){
7446 _local5 = 0;
7447 _local4 = 0xFFFFFF;
7448 } else {
7449 _local5 = getStyle(backgroundAlphaName);
7450 };
7451 if (((!((radius == 0))) || (backgroundHole))){
7452 _local8 = _local6.bottom;
7453 if (radiusObj){
7454 _local9 = Math.max((radius - Math.max(_local6.top, _local6.left, _local6.right)), 0);
7455 _local10 = (bRoundedCorners) ? Math.max((radius - Math.max(_local6.bottom, _local6.left, _local6.right)), 0) : 0;
7456 radiusObj = {
7457 tl:_local9,
7458 tr:_local9,
7459 bl:_local10,
7460 br:_local10
7461 };
7462 drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole);
7463 } else {
7464 drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole);
7465 };
7466 } else {
7467 _local7.beginFill(_local4, _local5);
7468 _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top));
7469 _local7.endFill();
7470 };
7471 };
7472 var _local3:String = getStyle("borderStyle");
7473 if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){
7474 _local11 = getStyle("highlightAlphas");
7475 _local12 = (_local11) ? _local11[0] : 0.3;
7476 drawRoundRect(0, 0, _arg1, _arg2, {
7477 tl:radius,
7478 tr:radius,
7479 bl:0,
7480 br:0
7481 }, 0xFFFFFF, _local12, null, GradientType.LINEAR, null, {
7482 x:0,
7483 y:1,
7484 w:_arg1,
7485 h:(_arg2 - 1),
7486 r:{
7487 tl:radius,
7488 tr:radius,
7489 bl:0,
7490 br:0
7491 }
7492 });
7493 };
7494 }
7495 mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{
7496 var _local11:Number;
7497 var _local12:Boolean;
7498 if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){
7499 return;
7500 };
7501 var _local9:Number = getStyle("shadowDistance");
7502 var _local10:String = getStyle("shadowDirection");
7503 if (getStyle("borderStyle") == "applicationControlBar"){
7504 _local12 = getStyle("docked");
7505 _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10);
7506 _local9 = Math.abs(_local9);
7507 } else {
7508 _local11 = getDropShadowAngle(_local9, _local10);
7509 _local9 = (Math.abs(_local9) + 2);
7510 };
7511 if (!dropShadow){
7512 dropShadow = new RectangularDropShadow();
7513 };
7514 dropShadow.distance = _local9;
7515 dropShadow.angle = _local11;
7516 dropShadow.color = getStyle("dropShadowColor");
7517 dropShadow.alpha = 0.4;
7518 dropShadow.tlRadius = _arg5;
7519 dropShadow.trRadius = _arg6;
7520 dropShadow.blRadius = _arg8;
7521 dropShadow.brRadius = _arg7;
7522 dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4);
7523 }
7524 mx_internal function getBackgroundColor():Object{
7525 var _local2:Object;
7526 var _local1:IUIComponent = (parent as IUIComponent);
7527 if (((_local1) && (!(_local1.enabled)))){
7528 _local2 = getStyle("backgroundDisabledColor");
7529 if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){
7530 return (_local2);
7531 };
7532 };
7533 return (getStyle("backgroundColor"));
7534 }
7535 mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
7536 var _local7:Number = width;
7537 var _local8:Number = height;
7538 drawDropShadow(0, 0, width, height, 0, 0, 0, 0);
7539 var _local9:Graphics = graphics;
7540 _local9.beginFill(_arg1);
7541 _local9.drawRect(0, 0, _local7, _local8);
7542 _local9.drawRect(1, 0, (_local7 - 2), _local8);
7543 _local9.endFill();
7544 _local9.beginFill(_arg2);
7545 _local9.drawRect(1, 0, (_local7 - 2), 1);
7546 _local9.endFill();
7547 _local9.beginFill(_arg3);
7548 _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1);
7549 _local9.endFill();
7550 _local9.beginFill(_arg4);
7551 _local9.drawRect(1, 1, (_local7 - 2), 1);
7552 _local9.endFill();
7553 _local9.beginFill(_arg5);
7554 _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1);
7555 _local9.endFill();
7556 _local9.beginFill(_arg6);
7557 _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4));
7558 _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4));
7559 _local9.endFill();
7560 }
7561 mx_internal function getBackgroundColorMetrics():EdgeMetrics{
7562 return (borderMetrics);
7563 }
7564 mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{
7565 if (_arg2 == "left"){
7566 return (((_arg1 >= 0)) ? 135 : 225);
7567 };
7568 if (_arg2 == "right"){
7569 return (((_arg1 >= 0)) ? 45 : 315);
7570 };
7571 return (((_arg1 >= 0)) ? 90 : 270);
7572 }
7573 override public function get borderMetrics():EdgeMetrics{
7574 var _local1:Number;
7575 var _local3:String;
7576 if (_borderMetrics){
7577 return (_borderMetrics);
7578 };
7579 var _local2:String = getStyle("borderStyle");
7580 if ((((_local2 == "default")) || ((_local2 == "alert")))){
7581 if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
7582 _borderMetrics = new EdgeMetrics(0, 0, 0, 0);
7583 } else {
7584 return (EdgeMetrics.EMPTY);
7585 };
7586 } else {
7587 if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){
7588 _borderMetrics = new EdgeMetrics(1, 1, 1, 1);
7589 } else {
7590 if (_local2 == "solid"){
7591 _local1 = getStyle("borderThickness");
7592 if (isNaN(_local1)){
7593 _local1 = 0;
7594 };
7595 _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1);
7596 _local3 = getStyle("borderSides");
7597 if (_local3 != "left top right bottom"){
7598 if (_local3.indexOf("left") == -1){
7599 _borderMetrics.left = 0;
7600 };
7601 if (_local3.indexOf("top") == -1){
7602 _borderMetrics.top = 0;
7603 };
7604 if (_local3.indexOf("right") == -1){
7605 _borderMetrics.right = 0;
7606 };
7607 if (_local3.indexOf("bottom") == -1){
7608 _borderMetrics.bottom = 0;
7609 };
7610 };
7611 } else {
7612 _local1 = BORDER_WIDTHS[_local2];
7613 if (isNaN(_local1)){
7614 _local1 = 0;
7615 };
7616 _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1);
7617 };
7618 };
7619 };
7620 return (_borderMetrics);
7621 }
7622
7623 }
7624}//package mx.skins.halo
7625package mx.skins.halo {
7626 import flash.display.*;
7627 import mx.styles.*;
7628 import mx.skins.*;
7629 import mx.utils.*;
7630
7631 public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient {
7632
7633 mx_internal static const VERSION:String = "3.4.1.10084";
7634
7635 private var _focusColor:Number;
7636
7637 public function get inheritingStyles():Object{
7638 return (styleName.inheritingStyles);
7639 }
7640 public function set inheritingStyles(_arg1:Object):void{
7641 }
7642 public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
7643 }
7644 public function registerEffects(_arg1:Array):void{
7645 }
7646 public function regenerateStyleCache(_arg1:Boolean):void{
7647 }
7648 public function get styleDeclaration():CSSStyleDeclaration{
7649 return (CSSStyleDeclaration(styleName));
7650 }
7651 public function getClassStyleDeclarations():Array{
7652 return ([]);
7653 }
7654 public function get className():String{
7655 return ("HaloFocusRect");
7656 }
7657 public function clearStyle(_arg1:String):void{
7658 if (_arg1 == "focusColor"){
7659 _focusColor = NaN;
7660 };
7661 }
7662 public function setStyle(_arg1:String, _arg2):void{
7663 if (_arg1 == "focusColor"){
7664 _focusColor = _arg2;
7665 };
7666 }
7667 public function set nonInheritingStyles(_arg1:Object):void{
7668 }
7669 public function get nonInheritingStyles():Object{
7670 return (styleName.nonInheritingStyles);
7671 }
7672 override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
7673 var _local12:Number;
7674 var _local13:Number;
7675 var _local14:Number;
7676 var _local15:Number;
7677 var _local16:Number;
7678 var _local17:Number;
7679 super.updateDisplayList(_arg1, _arg2);
7680 var _local3:String = getStyle("focusBlendMode");
7681 var _local4:Number = getStyle("focusAlpha");
7682 var _local5:Number = getStyle("focusColor");
7683 var _local6:Number = getStyle("cornerRadius");
7684 var _local7:Number = getStyle("focusThickness");
7685 var _local8:String = getStyle("focusRoundedCorners");
7686 var _local9:Number = getStyle("themeColor");
7687 var _local10:Number = _local5;
7688 if (isNaN(_local10)){
7689 _local10 = _local9;
7690 };
7691 var _local11:Graphics = graphics;
7692 _local11.clear();
7693 if (_local3){
7694 blendMode = _local3;
7695 };
7696 if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){
7697 _local12 = 0;
7698 _local13 = 0;
7699 _local14 = 0;
7700 _local15 = 0;
7701 _local16 = (_local6 + _local7);
7702 if (_local8.indexOf("tl") >= 0){
7703 _local12 = _local16;
7704 };
7705 if (_local8.indexOf("tr") >= 0){
7706 _local14 = _local16;
7707 };
7708 if (_local8.indexOf("bl") >= 0){
7709 _local13 = _local16;
7710 };
7711 if (_local8.indexOf("br") >= 0){
7712 _local15 = _local16;
7713 };
7714 _local11.beginFill(_local10, _local4);
7715 GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15);
7716 _local12 = (_local12) ? _local6 : 0;
7717 _local14 = (_local14) ? _local6 : 0;
7718 _local13 = (_local13) ? _local6 : 0;
7719 _local15 = (_local15) ? _local6 : 0;
7720 GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15);
7721 _local11.endFill();
7722 _local16 = (_local6 + (_local7 / 2));
7723 _local12 = (_local12) ? _local16 : 0;
7724 _local14 = (_local14) ? _local16 : 0;
7725 _local13 = (_local13) ? _local16 : 0;
7726 _local15 = (_local15) ? _local16 : 0;
7727 _local11.beginFill(_local10, _local4);
7728 GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15);
7729 _local12 = (_local12) ? _local6 : 0;
7730 _local14 = (_local14) ? _local6 : 0;
7731 _local13 = (_local13) ? _local6 : 0;
7732 _local15 = (_local15) ? _local6 : 0;
7733 GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15);
7734 _local11.endFill();
7735 } else {
7736 _local11.beginFill(_local10, _local4);
7737 _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2);
7738 _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17);
7739 _local17 = (_local6 * 2);
7740 _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17);
7741 _local11.endFill();
7742 _local11.beginFill(_local10, _local4);
7743 _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2);
7744 _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17);
7745 _local17 = (_local6 * 2);
7746 _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17);
7747 _local11.endFill();
7748 };
7749 }
7750 override public function getStyle(_arg1:String){
7751 return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1));
7752 }
7753 public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{
7754 }
7755
7756 }
7757}//package mx.skins.halo
7758package mx.graphics {
7759 import mx.core.*;
7760 import flash.display.*;
7761 import flash.geom.*;
7762 import mx.utils.*;
7763 import flash.filters.*;
7764
7765 public class RectangularDropShadow {
7766
7767 mx_internal static const VERSION:String = "3.4.1.10084";
7768
7769 private var leftShadow:BitmapData;
7770 private var _tlRadius:Number = 0;
7771 private var _trRadius:Number = 0;
7772 private var _angle:Number = 45;
7773 private var topShadow:BitmapData;
7774 private var _distance:Number = 4;
7775 private var rightShadow:BitmapData;
7776 private var _alpha:Number = 0.4;
7777 private var shadow:BitmapData;
7778 private var _brRadius:Number = 0;
7779 private var _blRadius:Number = 0;
7780 private var _color:int = 0;
7781 private var bottomShadow:BitmapData;
7782 private var changed:Boolean = true;
7783
7784 public function get blRadius():Number{
7785 return (_blRadius);
7786 }
7787 public function set brRadius(_arg1:Number):void{
7788 if (_brRadius != _arg1){
7789 _brRadius = _arg1;
7790 changed = true;
7791 };
7792 }
7793 public function set color(_arg1:int):void{
7794 if (_color != _arg1){
7795 _color = _arg1;
7796 changed = true;
7797 };
7798 }
7799 public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
7800 var _local15:Number;
7801 var _local16:Number;
7802 var _local17:Number;
7803 var _local18:Number;
7804 var _local19:Number;
7805 var _local20:Number;
7806 var _local21:Number;
7807 var _local22:Number;
7808 if (changed){
7809 createShadowBitmaps();
7810 changed = false;
7811 };
7812 _arg4 = Math.ceil(_arg4);
7813 _arg5 = Math.ceil(_arg5);
7814 var _local6:int = (leftShadow) ? leftShadow.width : 0;
7815 var _local7:int = (rightShadow) ? rightShadow.width : 0;
7816 var _local8:int = (topShadow) ? topShadow.height : 0;
7817 var _local9:int = (bottomShadow) ? bottomShadow.height : 0;
7818 var _local10:int = (_local6 + _local7);
7819 var _local11:int = (_local8 + _local9);
7820 var _local12:Number = ((_arg5 + _local11) / 2);
7821 var _local13:Number = ((_arg4 + _local10) / 2);
7822 var _local14:Matrix = new Matrix();
7823 if (((leftShadow) || (topShadow))){
7824 _local15 = Math.min((tlRadius + _local10), _local13);
7825 _local16 = Math.min((tlRadius + _local11), _local12);
7826 _local14.tx = (_arg2 - _local6);
7827 _local14.ty = (_arg3 - _local8);
7828 _arg1.beginBitmapFill(shadow, _local14);
7829 _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16);
7830 _arg1.endFill();
7831 };
7832 if (((rightShadow) || (topShadow))){
7833 _local17 = Math.min((trRadius + _local10), _local13);
7834 _local18 = Math.min((trRadius + _local11), _local12);
7835 _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width);
7836 _local14.ty = (_arg3 - _local8);
7837 _arg1.beginBitmapFill(shadow, _local14);
7838 _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18);
7839 _arg1.endFill();
7840 };
7841 if (((leftShadow) || (bottomShadow))){
7842 _local19 = Math.min((blRadius + _local10), _local13);
7843 _local20 = Math.min((blRadius + _local11), _local12);
7844 _local14.tx = (_arg2 - _local6);
7845 _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height);
7846 _arg1.beginBitmapFill(shadow, _local14);
7847 _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20);
7848 _arg1.endFill();
7849 };
7850 if (((rightShadow) || (bottomShadow))){
7851 _local21 = Math.min((brRadius + _local10), _local13);
7852 _local22 = Math.min((brRadius + _local11), _local12);
7853 _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width);
7854 _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height);
7855 _arg1.beginBitmapFill(shadow, _local14);
7856 _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22);
7857 _arg1.endFill();
7858 };
7859 if (leftShadow){
7860 _local14.tx = (_arg2 - _local6);
7861 _local14.ty = 0;
7862 _arg1.beginBitmapFill(leftShadow, _local14);
7863 _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20));
7864 _arg1.endFill();
7865 };
7866 if (rightShadow){
7867 _local14.tx = (_arg2 + _arg4);
7868 _local14.ty = 0;
7869 _arg1.beginBitmapFill(rightShadow, _local14);
7870 _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22));
7871 _arg1.endFill();
7872 };
7873 if (topShadow){
7874 _local14.tx = 0;
7875 _local14.ty = (_arg3 - _local8);
7876 _arg1.beginBitmapFill(topShadow, _local14);
7877 _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8);
7878 _arg1.endFill();
7879 };
7880 if (bottomShadow){
7881 _local14.tx = 0;
7882 _local14.ty = (_arg3 + _arg5);
7883 _arg1.beginBitmapFill(bottomShadow, _local14);
7884 _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9);
7885 _arg1.endFill();
7886 };
7887 }
7888 public function get brRadius():Number{
7889 return (_brRadius);
7890 }
7891 public function get angle():Number{
7892 return (_angle);
7893 }
7894 private function createShadowBitmaps():void{
7895 var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius));
7896 var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius));
7897 if ((((_local1 < 0)) || ((_local2 < 0)))){
7898 return;
7899 };
7900 var _local3:Shape = new FlexShape();
7901 var _local4:Graphics = _local3.graphics;
7902 _local4.beginFill(0xFFFFFF);
7903 GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius);
7904 _local4.endFill();
7905 var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0);
7906 _local5.draw(_local3, new Matrix());
7907 var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha);
7908 _local6.knockout = true;
7909 var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2);
7910 var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6);
7911 var _local9:Number = (_local7.left - _local8.left);
7912 var _local10:Number = (_local8.right - _local7.right);
7913 var _local11:Number = (_local7.top - _local8.top);
7914 var _local12:Number = (_local8.bottom - _local7.bottom);
7915 shadow = new BitmapData(_local8.width, _local8.height);
7916 shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6);
7917 var _local13:Point = new Point(0, 0);
7918 var _local14:Rectangle = new Rectangle();
7919 if (_local9 > 0){
7920 _local14.x = 0;
7921 _local14.y = ((tlRadius + _local11) + _local12);
7922 _local14.width = _local9;
7923 _local14.height = 1;
7924 leftShadow = new BitmapData(_local9, 1);
7925 leftShadow.copyPixels(shadow, _local14, _local13);
7926 } else {
7927 leftShadow = null;
7928 };
7929 if (_local10 > 0){
7930 _local14.x = (shadow.width - _local10);
7931 _local14.y = ((trRadius + _local11) + _local12);
7932 _local14.width = _local10;
7933 _local14.height = 1;
7934 rightShadow = new BitmapData(_local10, 1);
7935 rightShadow.copyPixels(shadow, _local14, _local13);
7936 } else {
7937 rightShadow = null;
7938 };
7939 if (_local11 > 0){
7940 _local14.x = ((tlRadius + _local9) + _local10);
7941 _local14.y = 0;
7942 _local14.width = 1;
7943 _local14.height = _local11;
7944 topShadow = new BitmapData(1, _local11);
7945 topShadow.copyPixels(shadow, _local14, _local13);
7946 } else {
7947 topShadow = null;
7948 };
7949 if (_local12 > 0){
7950 _local14.x = ((blRadius + _local9) + _local10);
7951 _local14.y = (shadow.height - _local12);
7952 _local14.width = 1;
7953 _local14.height = _local12;
7954 bottomShadow = new BitmapData(1, _local12);
7955 bottomShadow.copyPixels(shadow, _local14, _local13);
7956 } else {
7957 bottomShadow = null;
7958 };
7959 }
7960 public function get alpha():Number{
7961 return (_alpha);
7962 }
7963 public function get color():int{
7964 return (_color);
7965 }
7966 public function set angle(_arg1:Number):void{
7967 if (_angle != _arg1){
7968 _angle = _arg1;
7969 changed = true;
7970 };
7971 }
7972 public function set trRadius(_arg1:Number):void{
7973 if (_trRadius != _arg1){
7974 _trRadius = _arg1;
7975 changed = true;
7976 };
7977 }
7978 public function set tlRadius(_arg1:Number):void{
7979 if (_tlRadius != _arg1){
7980 _tlRadius = _arg1;
7981 changed = true;
7982 };
7983 }
7984 public function get trRadius():Number{
7985 return (_trRadius);
7986 }
7987 public function set distance(_arg1:Number):void{
7988 if (_distance != _arg1){
7989 _distance = _arg1;
7990 changed = true;
7991 };
7992 }
7993 public function get distance():Number{
7994 return (_distance);
7995 }
7996 public function get tlRadius():Number{
7997 return (_tlRadius);
7998 }
7999 public function set alpha(_arg1:Number):void{
8000 if (_alpha != _arg1){
8001 _alpha = _arg1;
8002 changed = true;
8003 };
8004 }
8005 public function set blRadius(_arg1:Number):void{
8006 if (_blRadius != _arg1){
8007 _blRadius = _arg1;
8008 changed = true;
8009 };
8010 }
8011
8012 }
8013}//package mx.graphics
8014package mx.events {
8015 import flash.events.*;
8016
8017 public class ResourceEvent extends ProgressEvent {
8018
8019 mx_internal static const VERSION:String = "3.4.1.10084";
8020 public static const COMPLETE:String = "complete";
8021 public static const PROGRESS:String = "progress";
8022 public static const ERROR:String = "error";
8023
8024 public var errorText:String;
8025
8026 public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){
8027 super(_arg1, _arg2, _arg3, _arg4, _arg5);
8028 this.errorText = _arg6;
8029 }
8030 override public function clone():Event{
8031 return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText));
8032 }
8033
8034 }
8035}//package mx.events
8036package mx.events {
8037 import flash.events.*;
8038
8039 public class StyleEvent extends ProgressEvent {
8040
8041 mx_internal static const VERSION:String = "3.4.1.10084";
8042 public static const COMPLETE:String = "complete";
8043 public static const PROGRESS:String = "progress";
8044 public static const ERROR:String = "error";
8045
8046 public var errorText:String;
8047
8048 public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){
8049 super(_arg1, _arg2, _arg3, _arg4, _arg5);
8050 this.errorText = _arg6;
8051 }
8052 override public function clone():Event{
8053 return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText));
8054 }
8055
8056 }
8057}//package mx.events
8058package mx.events {
8059 import flash.events.*;
8060 import mx.modules.*;
8061
8062 public class ModuleEvent extends ProgressEvent {
8063
8064 public static const READY:String = "ready";
8065 public static const ERROR:String = "error";
8066 public static const PROGRESS:String = "progress";
8067 mx_internal static const VERSION:String = "3.4.1.10084";
8068 public static const SETUP:String = "setup";
8069 public static const UNLOAD:String = "unload";
8070
8071 public var errorText:String;
8072 private var _module:IModuleInfo;
8073
8074 public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){
8075 super(_arg1, _arg2, _arg3, _arg4, _arg5);
8076 this.errorText = _arg6;
8077 this._module = _arg7;
8078 }
8079 public function get module():IModuleInfo{
8080 if (_module){
8081 return (_module);
8082 };
8083 return ((target as IModuleInfo));
8084 }
8085 override public function clone():Event{
8086 return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module));
8087 }
8088
8089 }
8090}//package mx.events
8091package mx.managers {
8092
8093 public class SystemManagerGlobals {
8094
8095 public static var topLevelSystemManagers:Array = [];
8096 public static var changingListenersInOtherSystemManagers:Boolean;
8097 public static var bootstrapLoaderInfoURL:String;
8098 public static var showMouseCursor:Boolean;
8099 public static var dispatchingEventToOtherSystemManagers:Boolean;
8100
8101 }
8102}//package mx.managers
8103package mx.managers {
8104 import flash.display.*;
8105 import flash.events.*;
8106
8107 public interface IFocusManagerContainer extends IEventDispatcher {
8108
8109 function set focusManager(_arg1:IFocusManager):void;
8110 function get focusManager():IFocusManager;
8111 function get systemManager():ISystemManager;
8112 function contains(_arg1:DisplayObject):Boolean;
8113
8114 }
8115}//package mx.managers
8116package mx.managers {
8117 import flash.events.*;
8118
8119 public interface ILayoutManagerClient extends IEventDispatcher {
8120
8121 function get updateCompletePendingFlag():Boolean;
8122 function set updateCompletePendingFlag(_arg1:Boolean):void;
8123 function set initialized(_arg1:Boolean):void;
8124 function validateProperties():void;
8125 function validateDisplayList():void;
8126 function get nestLevel():int;
8127 function get initialized():Boolean;
8128 function get processedDescriptors():Boolean;
8129 function validateSize(_arg1:Boolean=false):void;
8130 function set nestLevel(_arg1:int):void;
8131 function set processedDescriptors(_arg1:Boolean):void;
8132
8133 }
8134}//package mx.managers
8135package mx.managers {
8136 import mx.core.*;
8137 import flash.display.*;
8138 import flash.events.*;
8139 import flash.geom.*;
8140 import flash.text.*;
8141
8142 public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory {
8143
8144 function set focusPane(_arg1:Sprite):void;
8145 function get toolTipChildren():IChildList;
8146 function useSWFBridge():Boolean;
8147 function isFontFaceEmbedded(_arg1:TextFormat):Boolean;
8148 function deployMouseShields(_arg1:Boolean):void;
8149 function get rawChildren():IChildList;
8150 function get topLevelSystemManager():ISystemManager;
8151 function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void;
8152 function getSandboxRoot():DisplayObject;
8153 function get swfBridgeGroup():ISWFBridgeGroup;
8154 function removeFocusManager(_arg1:IFocusManagerContainer):void;
8155 function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void;
8156 function get document():Object;
8157 function get focusPane():Sprite;
8158 function get loaderInfo():LoaderInfo;
8159 function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void;
8160 function getTopLevelRoot():DisplayObject;
8161 function removeChildBridge(_arg1:IEventDispatcher):void;
8162 function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean;
8163 function get popUpChildren():IChildList;
8164 function get screen():Rectangle;
8165 function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void;
8166 function getDefinitionByName(_arg1:String):Object;
8167 function activate(_arg1:IFocusManagerContainer):void;
8168 function deactivate(_arg1:IFocusManagerContainer):void;
8169 function get cursorChildren():IChildList;
8170 function set document(_arg1:Object):void;
8171 function get embeddedFontList():Object;
8172 function set numModalWindows(_arg1:int):void;
8173 function isTopLevel():Boolean;
8174 function isTopLevelRoot():Boolean;
8175 function get numModalWindows():int;
8176 function addFocusManager(_arg1:IFocusManagerContainer):void;
8177 function get stage():Stage;
8178 function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle;
8179
8180 }
8181}//package mx.managers
8182package mx.managers {
8183
8184 public interface IFocusManagerComponent {
8185
8186 function set focusEnabled(_arg1:Boolean):void;
8187 function drawFocus(_arg1:Boolean):void;
8188 function setFocus():void;
8189 function get focusEnabled():Boolean;
8190 function get tabEnabled():Boolean;
8191 function get tabIndex():int;
8192 function get mouseFocusEnabled():Boolean;
8193
8194 }
8195}//package mx.managers
8196package mx.managers {
8197 import flash.events.*;
8198
8199 public interface ILayoutManager extends IEventDispatcher {
8200
8201 function validateNow():void;
8202 function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void;
8203 function isInvalid():Boolean;
8204 function invalidateDisplayList(_arg1:ILayoutManagerClient):void;
8205 function set usePhasedInstantiation(_arg1:Boolean):void;
8206 function invalidateSize(_arg1:ILayoutManagerClient):void;
8207 function get usePhasedInstantiation():Boolean;
8208 function invalidateProperties(_arg1:ILayoutManagerClient):void;
8209
8210 }
8211}//package mx.managers
8212package mx.managers {
8213 import mx.core.*;
8214 import flash.display.*;
8215 import flash.events.*;
8216
8217 public interface IFocusManager {
8218
8219 function get focusPane():Sprite;
8220 function getFocus():IFocusManagerComponent;
8221 function deactivate():void;
8222 function set defaultButton(_arg1:IButton):void;
8223 function set focusPane(_arg1:Sprite):void;
8224 function set showFocusIndicator(_arg1:Boolean):void;
8225 function moveFocus(_arg1:String, _arg2:DisplayObject=null):void;
8226 function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void;
8227 function removeSWFBridge(_arg1:IEventDispatcher):void;
8228 function get defaultButtonEnabled():Boolean;
8229 function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent;
8230 function get nextTabIndex():int;
8231 function get defaultButton():IButton;
8232 function get showFocusIndicator():Boolean;
8233 function setFocus(_arg1:IFocusManagerComponent):void;
8234 function activate():void;
8235 function showFocus():void;
8236 function set defaultButtonEnabled(_arg1:Boolean):void;
8237 function hideFocus():void;
8238 function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent;
8239
8240 }
8241}//package mx.managers
8242package mx.core {
8243
8244 public class Singleton {
8245
8246 mx_internal static const VERSION:String = "3.4.1.10084";
8247
8248 private static var classMap:Object = {};
8249
8250 public static function registerClass(_arg1:String, _arg2:Class):void{
8251 var _local3:Class = classMap[_arg1];
8252 if (!_local3){
8253 classMap[_arg1] = _arg2;
8254 };
8255 }
8256 public static function getClass(_arg1:String):Class{
8257 return (classMap[_arg1]);
8258 }
8259 public static function getInstance(_arg1:String):Object{
8260 var _local2:Class = classMap[_arg1];
8261 if (!_local2){
8262 throw (new Error((("No class registered for interface '" + _arg1) + "'.")));
8263 };
8264 return (_local2["getInstance"]());
8265 }
8266
8267 }
8268}//package mx.core
8269package mx.core {
8270
8271 public interface IBorder {
8272
8273 function get borderMetrics():EdgeMetrics;
8274
8275 }
8276}//package mx.core
8277package mx.core {
8278 import flash.media.*;
8279
8280 public class SoundAsset extends Sound implements IFlexAsset {
8281
8282 mx_internal static const VERSION:String = "3.4.1.10084";
8283
8284 }
8285}//package mx.core
8286package mx.core {
8287 import flash.events.*;
8288
8289 public interface ISWFBridgeProvider {
8290
8291 function get childAllowsParent():Boolean;
8292 function get swfBridge():IEventDispatcher;
8293 function get parentAllowsChild():Boolean;
8294
8295 }
8296}//package mx.core
8297package mx.core {
8298 import flash.display.*;
8299 import flash.geom.*;
8300 import mx.managers.*;
8301 import flash.media.*;
8302 import flash.text.*;
8303
8304 public interface IContainer extends IUIComponent {
8305
8306 function set hitArea(_arg1:Sprite):void;
8307 function swapChildrenAt(_arg1:int, _arg2:int):void;
8308 function getChildByName(_arg1:String):DisplayObject;
8309 function get doubleClickEnabled():Boolean;
8310 function get graphics():Graphics;
8311 function get useHandCursor():Boolean;
8312 function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject;
8313 function set mouseChildren(_arg1:Boolean):void;
8314 function set creatingContentPane(_arg1:Boolean):void;
8315 function get textSnapshot():TextSnapshot;
8316 function getChildIndex(_arg1:DisplayObject):int;
8317 function set doubleClickEnabled(_arg1:Boolean):void;
8318 function getObjectsUnderPoint(_arg1:Point):Array;
8319 function get creatingContentPane():Boolean;
8320 function setChildIndex(_arg1:DisplayObject, _arg2:int):void;
8321 function get soundTransform():SoundTransform;
8322 function set useHandCursor(_arg1:Boolean):void;
8323 function get numChildren():int;
8324 function contains(_arg1:DisplayObject):Boolean;
8325 function get verticalScrollPosition():Number;
8326 function set defaultButton(_arg1:IFlexDisplayObject):void;
8327 function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void;
8328 function set horizontalScrollPosition(_arg1:Number):void;
8329 function get focusManager():IFocusManager;
8330 function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void;
8331 function set mouseEnabled(_arg1:Boolean):void;
8332 function getChildAt(_arg1:int):DisplayObject;
8333 function set soundTransform(_arg1:SoundTransform):void;
8334 function get tabChildren():Boolean;
8335 function get tabIndex():int;
8336 function set focusRect(_arg1:Object):void;
8337 function get hitArea():Sprite;
8338 function get mouseChildren():Boolean;
8339 function removeChildAt(_arg1:int):DisplayObject;
8340 function get defaultButton():IFlexDisplayObject;
8341 function stopDrag():void;
8342 function set tabEnabled(_arg1:Boolean):void;
8343 function get horizontalScrollPosition():Number;
8344 function get focusRect():Object;
8345 function get viewMetrics():EdgeMetrics;
8346 function set verticalScrollPosition(_arg1:Number):void;
8347 function get dropTarget():DisplayObject;
8348 function get mouseEnabled():Boolean;
8349 function set tabChildren(_arg1:Boolean):void;
8350 function set buttonMode(_arg1:Boolean):void;
8351 function get tabEnabled():Boolean;
8352 function get buttonMode():Boolean;
8353 function removeChild(_arg1:DisplayObject):DisplayObject;
8354 function set tabIndex(_arg1:int):void;
8355 function addChild(_arg1:DisplayObject):DisplayObject;
8356 function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean;
8357
8358 }
8359}//package mx.core
8360package mx.core {
8361 import flash.events.*;
8362
8363 public interface ISWFBridgeGroup {
8364
8365 function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider;
8366 function removeChildBridge(_arg1:IEventDispatcher):void;
8367 function get parentBridge():IEventDispatcher;
8368 function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void;
8369 function set parentBridge(_arg1:IEventDispatcher):void;
8370 function containsBridge(_arg1:IEventDispatcher):Boolean;
8371 function getChildBridges():Array;
8372
8373 }
8374}//package mx.core
8375package mx.core {
8376 import flash.display.*;
8377 import flash.geom.*;
8378 import mx.managers.*;
8379
8380 public class UIComponentGlobals {
8381
8382 mx_internal static var callLaterSuspendCount:int = 0;
8383 mx_internal static var layoutManager:ILayoutManager;
8384 mx_internal static var nextFocusObject:InteractiveObject;
8385 mx_internal static var designTime:Boolean = false;
8386 mx_internal static var tempMatrix:Matrix = new Matrix();
8387 mx_internal static var callLaterDispatcherCount:int = 0;
8388 private static var _catchCallLaterExceptions:Boolean = false;
8389
8390 public static function set catchCallLaterExceptions(_arg1:Boolean):void{
8391 _catchCallLaterExceptions = _arg1;
8392 }
8393 public static function get designMode():Boolean{
8394 return (designTime);
8395 }
8396 public static function set designMode(_arg1:Boolean):void{
8397 designTime = _arg1;
8398 }
8399 public static function get catchCallLaterExceptions():Boolean{
8400 return (_catchCallLaterExceptions);
8401 }
8402
8403 }
8404}//package mx.core
8405package mx.core {
8406 import flash.display.*;
8407 import mx.managers.*;
8408
8409 public interface IUIComponent extends IFlexDisplayObject {
8410
8411 function set focusPane(_arg1:Sprite):void;
8412 function get enabled():Boolean;
8413 function set enabled(_arg1:Boolean):void;
8414 function set isPopUp(_arg1:Boolean):void;
8415 function get explicitMinHeight():Number;
8416 function get percentWidth():Number;
8417 function get isPopUp():Boolean;
8418 function get owner():DisplayObjectContainer;
8419 function get percentHeight():Number;
8420 function get baselinePosition():Number;
8421 function owns(_arg1:DisplayObject):Boolean;
8422 function initialize():void;
8423 function get maxWidth():Number;
8424 function get minWidth():Number;
8425 function getExplicitOrMeasuredWidth():Number;
8426 function get explicitMaxWidth():Number;
8427 function get explicitMaxHeight():Number;
8428 function set percentHeight(_arg1:Number):void;
8429 function get minHeight():Number;
8430 function set percentWidth(_arg1:Number):void;
8431 function get document():Object;
8432 function get focusPane():Sprite;
8433 function getExplicitOrMeasuredHeight():Number;
8434 function set tweeningProperties(_arg1:Array):void;
8435 function set explicitWidth(_arg1:Number):void;
8436 function set measuredMinHeight(_arg1:Number):void;
8437 function get explicitMinWidth():Number;
8438 function get tweeningProperties():Array;
8439 function get maxHeight():Number;
8440 function set owner(_arg1:DisplayObjectContainer):void;
8441 function set includeInLayout(_arg1:Boolean):void;
8442 function setVisible(_arg1:Boolean, _arg2:Boolean=false):void;
8443 function parentChanged(_arg1:DisplayObjectContainer):void;
8444 function get explicitWidth():Number;
8445 function get measuredMinHeight():Number;
8446 function set measuredMinWidth(_arg1:Number):void;
8447 function set explicitHeight(_arg1:Number):void;
8448 function get includeInLayout():Boolean;
8449 function get measuredMinWidth():Number;
8450 function get explicitHeight():Number;
8451 function set systemManager(_arg1:ISystemManager):void;
8452 function set document(_arg1:Object):void;
8453 function get systemManager():ISystemManager;
8454
8455 }
8456}//package mx.core
8457package mx.core {
8458 import flash.display.*;
8459 import mx.utils.*;
8460
8461 public class FlexShape extends Shape {
8462
8463 mx_internal static const VERSION:String = "3.4.1.10084";
8464
8465 public function FlexShape(){
8466 super();
8467 try {
8468 name = NameUtil.createUniqueName(this);
8469 } catch(e:Error) {
8470 };
8471 }
8472 override public function toString():String{
8473 return (NameUtil.displayObjectToString(this));
8474 }
8475
8476 }
8477}//package mx.core
8478package mx.core {
8479
8480 public interface IButton extends IUIComponent {
8481
8482 function get emphasized():Boolean;
8483 function set emphasized(_arg1:Boolean):void;
8484 function callLater(_arg1:Function, _arg2:Array=null):void;
8485
8486 }
8487}//package mx.core
8488package mx.core {
8489
8490 public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
8491}//package mx.core
8492package mx.core {
8493 import flash.events.*;
8494 import flash.display.*;
8495 import flash.geom.*;
8496 import flash.accessibility.*;
8497
8498 public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
8499
8500 function get visible():Boolean;
8501 function get rotation():Number;
8502 function localToGlobal(_arg1:Point):Point;
8503 function get name():String;
8504 function set width(_arg1:Number):void;
8505 function get measuredHeight():Number;
8506 function get blendMode():String;
8507 function get scale9Grid():Rectangle;
8508 function set name(_arg1:String):void;
8509 function set scaleX(_arg1:Number):void;
8510 function set scaleY(_arg1:Number):void;
8511 function get measuredWidth():Number;
8512 function get accessibilityProperties():AccessibilityProperties;
8513 function set scrollRect(_arg1:Rectangle):void;
8514 function get cacheAsBitmap():Boolean;
8515 function globalToLocal(_arg1:Point):Point;
8516 function get height():Number;
8517 function set blendMode(_arg1:String):void;
8518 function get parent():DisplayObjectContainer;
8519 function getBounds(_arg1:DisplayObject):Rectangle;
8520 function get opaqueBackground():Object;
8521 function set scale9Grid(_arg1:Rectangle):void;
8522 function setActualSize(_arg1:Number, _arg2:Number):void;
8523 function set alpha(_arg1:Number):void;
8524 function set accessibilityProperties(_arg1:AccessibilityProperties):void;
8525 function get width():Number;
8526 function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
8527 function set cacheAsBitmap(_arg1:Boolean):void;
8528 function get scaleX():Number;
8529 function get scaleY():Number;
8530 function get scrollRect():Rectangle;
8531 function get mouseX():Number;
8532 function get mouseY():Number;
8533 function set height(_arg1:Number):void;
8534 function set mask(_arg1:DisplayObject):void;
8535 function getRect(_arg1:DisplayObject):Rectangle;
8536 function get alpha():Number;
8537 function set transform(_arg1:Transform):void;
8538 function move(_arg1:Number, _arg2:Number):void;
8539 function get loaderInfo():LoaderInfo;
8540 function get root():DisplayObject;
8541 function hitTestObject(_arg1:DisplayObject):Boolean;
8542 function set opaqueBackground(_arg1:Object):void;
8543 function set visible(_arg1:Boolean):void;
8544 function get mask():DisplayObject;
8545 function set x(_arg1:Number):void;
8546 function set y(_arg1:Number):void;
8547 function get transform():Transform;
8548 function set filters(_arg1:Array):void;
8549 function get x():Number;
8550 function get y():Number;
8551 function get filters():Array;
8552 function set rotation(_arg1:Number):void;
8553 function get stage():Stage;
8554
8555 }
8556}//package mx.core
8557package mx.core {
8558 import flash.display.*;
8559
8560 public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
8561
8562 mx_internal static const VERSION:String = "3.4.1.10084";
8563
8564 public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
8565 super(_arg1, _arg2, _arg3);
8566 }
8567 public function get measuredWidth():Number{
8568 if (bitmapData){
8569 return (bitmapData.width);
8570 };
8571 return (0);
8572 }
8573 public function get measuredHeight():Number{
8574 if (bitmapData){
8575 return (bitmapData.height);
8576 };
8577 return (0);
8578 }
8579 public function setActualSize(_arg1:Number, _arg2:Number):void{
8580 width = _arg1;
8581 height = _arg2;
8582 }
8583 public function move(_arg1:Number, _arg2:Number):void{
8584 this.x = _arg1;
8585 this.y = _arg2;
8586 }
8587
8588 }
8589}//package mx.core
8590package mx.core {
8591 import flash.geom.*;
8592
8593 public interface IRectangularBorder extends IBorder {
8594
8595 function get backgroundImageBounds():Rectangle;
8596 function get hasBackgroundImage():Boolean;
8597 function set backgroundImageBounds(_arg1:Rectangle):void;
8598 function layoutBackgroundImage():void;
8599
8600 }
8601}//package mx.core
8602package mx.core {
8603 import flash.display.*;
8604 import mx.utils.*;
8605
8606 public class FlexBitmap extends Bitmap {
8607
8608 mx_internal static const VERSION:String = "3.4.1.10084";
8609
8610 public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
8611 var bitmapData = _arg1;
8612 var pixelSnapping:String = _arg2;
8613 var smoothing:Boolean = _arg3;
8614 super(bitmapData, pixelSnapping, smoothing);
8615 try {
8616 name = NameUtil.createUniqueName(this);
8617 } catch(e:Error) {
8618 };
8619 }
8620 override public function toString():String{
8621 return (NameUtil.displayObjectToString(this));
8622 }
8623
8624 }
8625}//package mx.core
8626package mx.core {
8627
8628 public interface IFlexAsset {
8629
8630 }
8631}//package mx.core
8632package mx.core {
8633
8634 public interface IInvalidating {
8635
8636 function validateNow():void;
8637 function invalidateSize():void;
8638 function invalidateDisplayList():void;
8639 function invalidateProperties():void;
8640
8641 }
8642}//package mx.core
8643package mx.core {
8644 import flash.utils.*;
8645
8646 public interface IFlexModuleFactory {
8647
8648 function get preloadedRSLs():Dictionary;
8649 function allowInsecureDomain(... _args):void;
8650 function create(... _args):Object;
8651 function allowDomain(... _args):void;
8652 function info():Object;
8653
8654 }
8655}//package mx.core
8656package mx.core {
8657 import flash.display.*;
8658 import mx.utils.*;
8659
8660 public class FlexLoader extends Loader {
8661
8662 mx_internal static const VERSION:String = "3.4.1.10084";
8663
8664 public function FlexLoader(){
8665 super();
8666 try {
8667 name = NameUtil.createUniqueName(this);
8668 } catch(e:Error) {
8669 };
8670 }
8671 override public function toString():String{
8672 return (NameUtil.displayObjectToString(this));
8673 }
8674
8675 }
8676}//package mx.core
8677package mx.core {
8678
8679 public interface IRepeaterClient {
8680
8681 function get instanceIndices():Array;
8682 function set instanceIndices(_arg1:Array):void;
8683 function get isDocument():Boolean;
8684 function set repeaters(_arg1:Array):void;
8685 function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
8686 function get repeaters():Array;
8687 function set repeaterIndices(_arg1:Array):void;
8688 function get repeaterIndices():Array;
8689
8690 }
8691}//package mx.core
8692package mx.core {
8693 import flash.text.*;
8694
8695 public class FontAsset extends Font implements IFlexAsset {
8696
8697 mx_internal static const VERSION:String = "3.4.1.10084";
8698
8699 }
8700}//package mx.core
8701package mx.core {
8702 import flash.utils.*;
8703
8704 public class ByteArrayAsset extends ByteArray implements IFlexAsset {
8705
8706 mx_internal static const VERSION:String = "3.4.1.10084";
8707
8708 }
8709}//package mx.core
8710package mx.core {
8711 import flash.display.*;
8712 import flash.geom.*;
8713
8714 public interface IChildList {
8715
8716 function get numChildren():int;
8717 function removeChild(_arg1:DisplayObject):DisplayObject;
8718 function getChildByName(_arg1:String):DisplayObject;
8719 function removeChildAt(_arg1:int):DisplayObject;
8720 function getChildIndex(_arg1:DisplayObject):int;
8721 function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject;
8722 function getObjectsUnderPoint(_arg1:Point):Array;
8723 function setChildIndex(_arg1:DisplayObject, _arg2:int):void;
8724 function getChildAt(_arg1:int):DisplayObject;
8725 function addChild(_arg1:DisplayObject):DisplayObject;
8726 function contains(_arg1:DisplayObject):Boolean;
8727
8728 }
8729}//package mx.core
8730package mx.core {
8731
8732 public interface IRawChildrenContainer {
8733
8734 function get rawChildren():IChildList;
8735
8736 }
8737}//package mx.core
8738package mx.core {
8739
8740 public interface IProgrammaticSkin {
8741
8742 function validateNow():void;
8743 function validateDisplayList():void;
8744
8745 }
8746}//package mx.core
8747package mx.core {
8748
8749 public class EdgeMetrics {
8750
8751 mx_internal static const VERSION:String = "3.4.1.10084";
8752 public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
8753;
8754
8755 public var top:Number;
8756 public var left:Number;
8757 public var bottom:Number;
8758 public var right:Number;
8759
8760 public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
8761 this.left = _arg1;
8762 this.top = _arg2;
8763 this.right = _arg3;
8764 this.bottom = _arg4;
8765 }
8766 public function clone():EdgeMetrics{
8767 return (new EdgeMetrics(left, top, right, bottom));
8768 }
8769
8770 }
8771}//package mx.core
8772package mx.core {
8773 import mx.resources.*;
8774
8775 public class FlexVersion {
8776
8777 public static const VERSION_2_0_1:uint = 33554433;
8778 public static const CURRENT_VERSION:uint = 50331648;
8779 public static const VERSION_3_0:uint = 50331648;
8780 public static const VERSION_2_0:uint = 33554432;
8781 public static const VERSION_ALREADY_READ:String = "versionAlreadyRead";
8782 public static const VERSION_ALREADY_SET:String = "versionAlreadySet";
8783 mx_internal static const VERSION:String = "3.4.1.10084";
8784
8785 private static var compatibilityVersionChanged:Boolean = false;
8786 private static var _compatibilityErrorFunction:Function;
8787 private static var _compatibilityVersion:uint = 50331648;
8788 private static var compatibilityVersionRead:Boolean = false;
8789
8790 mx_internal static function changeCompatibilityVersionString(_arg1:String):void{
8791 var _local2:Array = _arg1.split(".");
8792 var _local3:uint = parseInt(_local2[0]);
8793 var _local4:uint = parseInt(_local2[1]);
8794 var _local5:uint = parseInt(_local2[2]);
8795 _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5);
8796 }
8797 public static function set compatibilityVersion(_arg1:uint):void{
8798 var _local2:String;
8799 if (_arg1 == _compatibilityVersion){
8800 return;
8801 };
8802 if (compatibilityVersionChanged){
8803 if (compatibilityErrorFunction == null){
8804 _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET);
8805 throw (new Error(_local2));
8806 };
8807 compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET);
8808 };
8809 if (compatibilityVersionRead){
8810 if (compatibilityErrorFunction == null){
8811 _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ);
8812 throw (new Error(_local2));
8813 };
8814 compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ);
8815 };
8816 _compatibilityVersion = _arg1;
8817 compatibilityVersionChanged = true;
8818 }
8819 public static function get compatibilityVersion():uint{
8820 compatibilityVersionRead = true;
8821 return (_compatibilityVersion);
8822 }
8823 public static function set compatibilityErrorFunction(_arg1:Function):void{
8824 _compatibilityErrorFunction = _arg1;
8825 }
8826 public static function set compatibilityVersionString(_arg1:String):void{
8827 var _local2:Array = _arg1.split(".");
8828 var _local3:uint = parseInt(_local2[0]);
8829 var _local4:uint = parseInt(_local2[1]);
8830 var _local5:uint = parseInt(_local2[2]);
8831 compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5);
8832 }
8833 public static function get compatibilityErrorFunction():Function{
8834 return (_compatibilityErrorFunction);
8835 }
8836 public static function get compatibilityVersionString():String{
8837 var _local1:uint = ((compatibilityVersion >> 24) & 0xFF);
8838 var _local2:uint = ((compatibilityVersion >> 16) & 0xFF);
8839 var _local3:uint = (compatibilityVersion & 0xFFFF);
8840 return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString()));
8841 }
8842
8843 }
8844}//package mx.core
8845package mx.modules {
8846 import mx.core.*;
8847 import flash.utils.*;
8848 import flash.events.*;
8849 import flash.system.*;
8850
8851 public interface IModuleInfo extends IEventDispatcher {
8852
8853 function get ready():Boolean;
8854 function get loaded():Boolean;
8855 function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void;
8856 function release():void;
8857 function get error():Boolean;
8858 function get data():Object;
8859 function publish(_arg1:IFlexModuleFactory):void;
8860 function get factory():IFlexModuleFactory;
8861 function set data(_arg1:Object):void;
8862 function get url():String;
8863 function get setup():Boolean;
8864 function unload():void;
8865
8866 }
8867}//package mx.modules
8868package mx.modules {
8869
8870 public class ModuleManagerGlobals {
8871
8872 public static var managerSingleton:Object = null;
8873
8874 }
8875}//package mx.modules
8876package mx.modules {
8877 import mx.core.*;
8878
8879 public class ModuleManager {
8880
8881 mx_internal static const VERSION:String = "3.4.1.10084";
8882
8883 public static function getModule(_arg1:String):IModuleInfo{
8884 return (getSingleton().getModule(_arg1));
8885 }
8886 private static function getSingleton():Object{
8887 if (!ModuleManagerGlobals.managerSingleton){
8888 ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl();
8889 };
8890 return (ModuleManagerGlobals.managerSingleton);
8891 }
8892 public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{
8893 return (getSingleton().getAssociatedFactory(_arg1));
8894 }
8895
8896 }
8897}//package mx.modules
8898
8899import mx.core.*;
8900import flash.display.*;
8901import flash.utils.*;
8902import flash.events.*;
8903import flash.system.*;
8904import mx.events.*;
8905import flash.net.*;
8906
8907class ModuleInfoProxy extends EventDispatcher implements IModuleInfo {
8908
8909 private var _data:Object;
8910 private var info:ModuleInfo;
8911 private var referenced:Boolean = false;
8912
8913 public function ModuleInfoProxy(_arg1:ModuleInfo){
8914 this.info = _arg1;
8915 _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true);
8916 _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true);
8917 _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true);
8918 _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true);
8919 _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true);
8920 }
8921 public function get loaded():Boolean{
8922 return (info.loaded);
8923 }
8924 public function release():void{
8925 if (referenced){
8926 info.removeReference();
8927 referenced = false;
8928 };
8929 }
8930 public function get error():Boolean{
8931 return (info.error);
8932 }
8933 public function get factory():IFlexModuleFactory{
8934 return (info.factory);
8935 }
8936 public function publish(_arg1:IFlexModuleFactory):void{
8937 info.publish(_arg1);
8938 }
8939 public function set data(_arg1:Object):void{
8940 _data = _arg1;
8941 }
8942 public function get ready():Boolean{
8943 return (info.ready);
8944 }
8945 public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{
8946 var _local4:ModuleEvent;
8947 info.resurrect();
8948 if (!referenced){
8949 info.addReference();
8950 referenced = true;
8951 };
8952 if (info.error){
8953 dispatchEvent(new ModuleEvent(ModuleEvent.ERROR));
8954 } else {
8955 if (info.loaded){
8956 if (info.setup){
8957 dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
8958 if (info.ready){
8959 _local4 = new ModuleEvent(ModuleEvent.PROGRESS);
8960 _local4.bytesLoaded = info.size;
8961 _local4.bytesTotal = info.size;
8962 dispatchEvent(_local4);
8963 dispatchEvent(new ModuleEvent(ModuleEvent.READY));
8964 };
8965 };
8966 } else {
8967 info.load(_arg1, _arg2, _arg3);
8968 };
8969 };
8970 }
8971 private function moduleEventHandler(_arg1:ModuleEvent):void{
8972 dispatchEvent(_arg1);
8973 }
8974 public function get url():String{
8975 return (info.url);
8976 }
8977 public function get data():Object{
8978 return (_data);
8979 }
8980 public function get setup():Boolean{
8981 return (info.setup);
8982 }
8983 public function unload():void{
8984 info.unload();
8985 info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler);
8986 info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler);
8987 info.removeEventListener(ModuleEvent.READY, moduleEventHandler);
8988 info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler);
8989 info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler);
8990 }
8991
8992}
8993class ModuleManagerImpl extends EventDispatcher {
8994
8995 private var moduleList:Object;
8996
8997 public function ModuleManagerImpl(){
8998 moduleList = {};
8999 super();
9000 }
9001 public function getModule(_arg1:String):IModuleInfo{
9002 var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo);
9003 if (!_local2){
9004 _local2 = new ModuleInfo(_arg1);
9005 moduleList[_arg1] = _local2;
9006 };
9007 return (new ModuleInfoProxy(_local2));
9008 }
9009 public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{
9010 var m:* = null;
9011 var info:* = null;
9012 var domain:* = null;
9013 var cls:* = null;
9014 var object:* = _arg1;
9015 var className:* = getQualifiedClassName(object);
9016 for each (m in moduleList) {
9017 info = (m as ModuleInfo);
9018 if (!info.ready){
9019 } else {
9020 domain = info.applicationDomain;
9021 try {
9022 cls = Class(domain.getDefinition(className));
9023 if ((object is cls)){
9024 return (info.factory);
9025 };
9026 } catch(error:Error) {
9027 };
9028 };
9029 };
9030 return (null);
9031 }
9032
9033}
9034class ModuleInfo extends EventDispatcher {
9035
9036 private var _error:Boolean = false;
9037 private var loader:Loader;
9038 private var factoryInfo:FactoryInfo;
9039 private var limbo:Dictionary;
9040 private var _loaded:Boolean = false;
9041 private var _ready:Boolean = false;
9042 private var numReferences:int = 0;
9043 private var _url:String;
9044 private var _setup:Boolean = false;
9045
9046 public function ModuleInfo(_arg1:String){
9047 _url = _arg1;
9048 }
9049 private function clearLoader():void{
9050 if (loader){
9051 if (loader.contentLoaderInfo){
9052 loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler);
9053 loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
9054 loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
9055 loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
9056 loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
9057 };
9058 try {
9059 if (loader.content){
9060 loader.content.removeEventListener("ready", readyHandler);
9061 loader.content.removeEventListener("error", moduleErrorHandler);
9062 };
9063 } catch(error:Error) {
9064 };
9065 if (_loaded){
9066 try {
9067 loader.close();
9068 } catch(error:Error) {
9069 };
9070 };
9071 try {
9072 loader.unload();
9073 } catch(error:Error) {
9074 };
9075 loader = null;
9076 };
9077 }
9078 public function get size():int{
9079 return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0);
9080 }
9081 public function get loaded():Boolean{
9082 return ((limbo) ? false : _loaded);
9083 }
9084 public function release():void{
9085 if (((_ready) && (!(limbo)))){
9086 limbo = new Dictionary(true);
9087 limbo[factoryInfo] = 1;
9088 factoryInfo = null;
9089 } else {
9090 unload();
9091 };
9092 }
9093 public function get error():Boolean{
9094 return ((limbo) ? false : _error);
9095 }
9096 public function get factory():IFlexModuleFactory{
9097 return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null);
9098 }
9099 public function completeHandler(_arg1:Event):void{
9100 var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
9101 _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded;
9102 _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal;
9103 dispatchEvent(_local2);
9104 }
9105 public function publish(_arg1:IFlexModuleFactory):void{
9106 if (factoryInfo){
9107 return;
9108 };
9109 if (_url.indexOf("published://") != 0){
9110 return;
9111 };
9112 factoryInfo = new FactoryInfo();
9113 factoryInfo.factory = _arg1;
9114 _loaded = true;
9115 _setup = true;
9116 _ready = true;
9117 _error = false;
9118 dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
9119 dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS));
9120 dispatchEvent(new ModuleEvent(ModuleEvent.READY));
9121 }
9122 public function initHandler(_arg1:Event):void{
9123 var moduleEvent:* = null;
9124 var event:* = _arg1;
9125 factoryInfo = new FactoryInfo();
9126 try {
9127 factoryInfo.factory = (loader.content as IFlexModuleFactory);
9128 } catch(error:Error) {
9129 };
9130 if (!factoryInfo.factory){
9131 moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable);
9132 moduleEvent.bytesLoaded = 0;
9133 moduleEvent.bytesTotal = 0;
9134 moduleEvent.errorText = "SWF is not a loadable module";
9135 dispatchEvent(moduleEvent);
9136 return;
9137 };
9138 loader.content.addEventListener("ready", readyHandler);
9139 loader.content.addEventListener("error", moduleErrorHandler);
9140 try {
9141 factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain;
9142 } catch(error:Error) {
9143 };
9144 _setup = true;
9145 dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
9146 }
9147 public function resurrect():void{
9148 var _local1:Object;
9149 if (((!(factoryInfo)) && (limbo))){
9150 for (_local1 in limbo) {
9151 factoryInfo = (_local1 as FactoryInfo);
9152 break;
9153 };
9154 limbo = null;
9155 };
9156 if (!factoryInfo){
9157 if (_loaded){
9158 dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
9159 };
9160 loader = null;
9161 _loaded = false;
9162 _setup = false;
9163 _ready = false;
9164 _error = false;
9165 };
9166 }
9167 public function errorHandler(_arg1:ErrorEvent):void{
9168 _error = true;
9169 var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
9170 _local2.bytesLoaded = 0;
9171 _local2.bytesTotal = 0;
9172 _local2.errorText = _arg1.text;
9173 dispatchEvent(_local2);
9174 }
9175 public function get ready():Boolean{
9176 return ((limbo) ? false : _ready);
9177 }
9178 private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{
9179 var _local3:LoaderContext = new LoaderContext();
9180 _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain);
9181 if (("allowLoadBytesCodeExecution" in _local3)){
9182 _local3["allowLoadBytesCodeExecution"] = true;
9183 };
9184 loader = new Loader();
9185 loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
9186 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
9187 loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
9188 loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
9189 loader.loadBytes(_arg2, _local3);
9190 }
9191 public function removeReference():void{
9192 numReferences--;
9193 if (numReferences == 0){
9194 release();
9195 };
9196 }
9197 public function addReference():void{
9198 numReferences++;
9199 }
9200 public function progressHandler(_arg1:ProgressEvent):void{
9201 var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
9202 _local2.bytesLoaded = _arg1.bytesLoaded;
9203 _local2.bytesTotal = _arg1.bytesTotal;
9204 dispatchEvent(_local2);
9205 }
9206 public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{
9207 if (_loaded){
9208 return;
9209 };
9210 _loaded = true;
9211 limbo = null;
9212 if (_arg3){
9213 loadBytes(_arg1, _arg3);
9214 return;
9215 };
9216 if (_url.indexOf("published://") == 0){
9217 return;
9218 };
9219 var _local4:URLRequest = new URLRequest(_url);
9220 var _local5:LoaderContext = new LoaderContext();
9221 _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain);
9222 _local5.securityDomain = _arg2;
9223 if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){
9224 _local5.securityDomain = SecurityDomain.currentDomain;
9225 };
9226 loader = new Loader();
9227 loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
9228 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
9229 loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
9230 loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
9231 loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
9232 loader.load(_local4, _local5);
9233 }
9234 public function get url():String{
9235 return (_url);
9236 }
9237 public function get applicationDomain():ApplicationDomain{
9238 return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null);
9239 }
9240 public function moduleErrorHandler(_arg1:Event):void{
9241 var _local2:ModuleEvent;
9242 _ready = true;
9243 factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal;
9244 clearLoader();
9245 if ((_arg1 is ModuleEvent)){
9246 _local2 = ModuleEvent(_arg1);
9247 } else {
9248 _local2 = new ModuleEvent(ModuleEvent.ERROR);
9249 };
9250 dispatchEvent(_local2);
9251 }
9252 public function readyHandler(_arg1:Event):void{
9253 _ready = true;
9254 factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal;
9255 var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.READY);
9256 _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded;
9257 _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal;
9258 clearLoader();
9259 dispatchEvent(_local2);
9260 }
9261 public function get setup():Boolean{
9262 return ((limbo) ? false : _setup);
9263 }
9264 public function unload():void{
9265 clearLoader();
9266 if (_loaded){
9267 dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
9268 };
9269 limbo = null;
9270 factoryInfo = null;
9271 _loaded = false;
9272 _setup = false;
9273 _ready = false;
9274 _error = false;
9275 }
9276
9277}
9278class FactoryInfo {
9279
9280 public var bytesTotal:int = 0;
9281 public var factory:IFlexModuleFactory;
9282 public var applicationDomain:ApplicationDomain;
9283
9284 public function FactoryInfo(){
9285 }
9286}
9287package mx.utils {
9288
9289 public class StringUtil {
9290
9291 mx_internal static const VERSION:String = "3.4.1.10084";
9292
9293 public static function trim(_arg1:String):String{
9294 if (_arg1 == null){
9295 return ("");
9296 };
9297 var _local2:int;
9298 while (isWhitespace(_arg1.charAt(_local2))) {
9299 _local2++;
9300 };
9301 var _local3:int = (_arg1.length - 1);
9302 while (isWhitespace(_arg1.charAt(_local3))) {
9303 _local3--;
9304 };
9305 if (_local3 >= _local2){
9306 return (_arg1.slice(_local2, (_local3 + 1)));
9307 };
9308 return ("");
9309 }
9310 public static function isWhitespace(_arg1:String):Boolean{
9311 switch (_arg1){
9312 case " ":
9313 case "\t":
9314 case "\r":
9315 case "\n":
9316 case "\f":
9317 return (true);
9318 default:
9319 return (false);
9320 };
9321 }
9322 public static function substitute(_arg1:String, ... _args):String{
9323 var _local4:Array;
9324 if (_arg1 == null){
9325 return ("");
9326 };
9327 var _local3:uint = _args.length;
9328 if ((((_local3 == 1)) && ((_args[0] is Array)))){
9329 _local4 = (_args[0] as Array);
9330 _local3 = _local4.length;
9331 } else {
9332 _local4 = _args;
9333 };
9334 var _local5:int;
9335 while (_local5 < _local3) {
9336 _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]);
9337 _local5++;
9338 };
9339 return (_arg1);
9340 }
9341 public static function trimArrayElements(_arg1:String, _arg2:String):String{
9342 var _local3:Array;
9343 var _local4:int;
9344 var _local5:int;
9345 if (((!((_arg1 == ""))) && (!((_arg1 == null))))){
9346 _local3 = _arg1.split(_arg2);
9347 _local4 = _local3.length;
9348 _local5 = 0;
9349 while (_local5 < _local4) {
9350 _local3[_local5] = StringUtil.trim(_local3[_local5]);
9351 _local5++;
9352 };
9353 if (_local4 > 0){
9354 _arg1 = _local3.join(_arg2);
9355 };
9356 };
9357 return (_arg1);
9358 }
9359
9360 }
9361}//package mx.utils
9362package mx.utils {
9363 import flash.display.*;
9364
9365 public class GraphicsUtil {
9366
9367 mx_internal static const VERSION:String = "3.4.1.10084";
9368
9369 public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{
9370 var _local10:Number = (_arg2 + _arg4);
9371 var _local11:Number = (_arg3 + _arg5);
9372 var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2);
9373 _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12;
9374 _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12;
9375 _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12;
9376 _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12;
9377 var _local13:Number = (_arg9 * 0.292893218813453);
9378 var _local14:Number = (_arg9 * 0.585786437626905);
9379 _arg1.moveTo(_local10, (_local11 - _arg9));
9380 _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13));
9381 _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11);
9382 _local13 = (_arg8 * 0.292893218813453);
9383 _local14 = (_arg8 * 0.585786437626905);
9384 _arg1.lineTo((_arg2 + _arg8), _local11);
9385 _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13));
9386 _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8));
9387 _local13 = (_arg6 * 0.292893218813453);
9388 _local14 = (_arg6 * 0.585786437626905);
9389 _arg1.lineTo(_arg2, (_arg3 + _arg6));
9390 _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13));
9391 _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3);
9392 _local13 = (_arg7 * 0.292893218813453);
9393 _local14 = (_arg7 * 0.585786437626905);
9394 _arg1.lineTo((_local10 - _arg7), _arg3);
9395 _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13));
9396 _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7));
9397 _arg1.lineTo(_local10, (_local11 - _arg9));
9398 }
9399
9400 }
9401}//package mx.utils
9402package mx.utils {
9403 import flash.display.*;
9404 import mx.core.*;
9405 import flash.utils.*;
9406
9407 public class NameUtil {
9408
9409 mx_internal static const VERSION:String = "3.4.1.10084";
9410
9411 private static var counter:int = 0;
9412
9413 public static function displayObjectToString(_arg1:DisplayObject):String{
9414 var result:* = null;
9415 var o:* = null;
9416 var s:* = null;
9417 var indices:* = null;
9418 var displayObject:* = _arg1;
9419 try {
9420 o = displayObject;
9421 while (o != null) {
9422 if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
9423 break;
9424 };
9425 s = o.name;
9426 if ((o is IRepeaterClient)){
9427 indices = IRepeaterClient(o).instanceIndices;
9428 if (indices){
9429 s = (s + (("[" + indices.join("][")) + "]"));
9430 };
9431 };
9432 result = ((result == null)) ? s : ((s + ".") + result);
9433 o = o.parent;
9434 };
9435 } catch(e:SecurityError) {
9436 };
9437 return (result);
9438 }
9439 public static function createUniqueName(_arg1:Object):String{
9440 if (!_arg1){
9441 return (null);
9442 };
9443 var _local2:String = getQualifiedClassName(_arg1);
9444 var _local3:int = _local2.indexOf("::");
9445 if (_local3 != -1){
9446 _local2 = _local2.substr((_local3 + 2));
9447 };
9448 var _local4:int = _local2.charCodeAt((_local2.length - 1));
9449 if ((((_local4 >= 48)) && ((_local4 <= 57)))){
9450 _local2 = (_local2 + "_");
9451 };
9452 return ((_local2 + counter++));
9453 }
9454
9455 }
9456}//package mx.utils
9457package mx.utils {
9458
9459 public class ColorUtil {
9460
9461 mx_internal static const VERSION:String = "3.4.1.10084";
9462
9463 public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{
9464 var _local3:Number;
9465 var _local4:Number;
9466 var _local5:Number;
9467 if (_arg2 == 0){
9468 return (_arg1);
9469 };
9470 if (_arg2 < 0){
9471 _arg2 = ((100 + _arg2) / 100);
9472 _local3 = (((_arg1 >> 16) & 0xFF) * _arg2);
9473 _local4 = (((_arg1 >> 8) & 0xFF) * _arg2);
9474 _local5 = ((_arg1 & 0xFF) * _arg2);
9475 } else {
9476 _arg2 = (_arg2 / 100);
9477 _local3 = ((_arg1 >> 16) & 0xFF);
9478 _local4 = ((_arg1 >> 8) & 0xFF);
9479 _local5 = (_arg1 & 0xFF);
9480 _local3 = (_local3 + ((0xFF - _local3) * _arg2));
9481 _local4 = (_local4 + ((0xFF - _local4) * _arg2));
9482 _local5 = (_local5 + ((0xFF - _local5) * _arg2));
9483 _local3 = Math.min(_local3, 0xFF);
9484 _local4 = Math.min(_local4, 0xFF);
9485 _local5 = Math.min(_local5, 0xFF);
9486 };
9487 return ((((_local3 << 16) | (_local4 << 8)) | _local5));
9488 }
9489 public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{
9490 var _local3:Number = ((_arg1 >> 16) & 0xFF);
9491 var _local4:Number = ((_arg1 >> 8) & 0xFF);
9492 var _local5:Number = (_arg1 & 0xFF);
9493 var _local6:Number = ((_arg2 >> 16) & 0xFF);
9494 var _local7:Number = ((_arg2 >> 8) & 0xFF);
9495 var _local8:Number = (_arg2 & 0xFF);
9496 return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF)));
9497 }
9498 public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{
9499 var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0);
9500 var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0);
9501 var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0);
9502 return ((((_local3 << 16) | (_local4 << 8)) | _local5));
9503 }
9504
9505 }
9506}//package mx.utils
9507package mx.styles {
9508
9509 public interface IStyleModule {
9510
9511 function unload():void;
9512
9513 }
9514}//package mx.styles
9515package mx.styles {
9516 import mx.core.*;
9517 import flash.utils.*;
9518 import flash.events.*;
9519 import flash.system.*;
9520 import mx.modules.*;
9521 import mx.events.*;
9522 import mx.resources.*;
9523 import mx.managers.*;
9524
9525 public class StyleManagerImpl implements IStyleManager2 {
9526
9527 mx_internal static const VERSION:String = "3.4.1.10084";
9528
9529 private static var parentSizeInvalidatingStyles:Object = {
9530 bottom:true,
9531 horizontalCenter:true,
9532 left:true,
9533 right:true,
9534 top:true,
9535 verticalCenter:true,
9536 baseline:true
9537 };
9538 private static var colorNames:Object = {
9539 transparent:"transparent",
9540 black:0,
9541 blue:0xFF,
9542 green:0x8000,
9543 gray:0x808080,
9544 silver:0xC0C0C0,
9545 lime:0xFF00,
9546 olive:0x808000,
9547 white:0xFFFFFF,
9548 yellow:0xFFFF00,
9549 maroon:0x800000,
9550 navy:128,
9551 red:0xFF0000,
9552 purple:0x800080,
9553 teal:0x8080,
9554 fuchsia:0xFF00FF,
9555 aqua:0xFFFF,
9556 magenta:0xFF00FF,
9557 cyan:0xFFFF,
9558 halogreen:8453965,
9559 haloblue:40447,
9560 haloorange:0xFFB600,
9561 halosilver:11455193
9562 };
9563 private static var inheritingTextFormatStyles:Object = {
9564 align:true,
9565 bold:true,
9566 color:true,
9567 font:true,
9568 indent:true,
9569 italic:true,
9570 size:true
9571 };
9572 private static var instance:IStyleManager2;
9573 private static var parentDisplayListInvalidatingStyles:Object = {
9574 bottom:true,
9575 horizontalCenter:true,
9576 left:true,
9577 right:true,
9578 top:true,
9579 verticalCenter:true,
9580 baseline:true
9581 };
9582 private static var sizeInvalidatingStyles:Object = {
9583 borderStyle:true,
9584 borderThickness:true,
9585 fontAntiAliasType:true,
9586 fontFamily:true,
9587 fontGridFitType:true,
9588 fontSharpness:true,
9589 fontSize:true,
9590 fontStyle:true,
9591 fontThickness:true,
9592 fontWeight:true,
9593 headerHeight:true,
9594 horizontalAlign:true,
9595 horizontalGap:true,
9596 kerning:true,
9597 leading:true,
9598 letterSpacing:true,
9599 paddingBottom:true,
9600 paddingLeft:true,
9601 paddingRight:true,
9602 paddingTop:true,
9603 strokeWidth:true,
9604 tabHeight:true,
9605 tabWidth:true,
9606 verticalAlign:true,
9607 verticalGap:true
9608 };
9609
9610 private var _stylesRoot:Object;
9611 private var _selectors:Object;
9612 private var styleModules:Object;
9613 private var _inheritingStyles:Object;
9614 private var resourceManager:IResourceManager;
9615 private var _typeSelectorCache:Object;
9616
9617 public function StyleManagerImpl(){
9618 _selectors = {};
9619 styleModules = {};
9620 resourceManager = ResourceManager.getInstance();
9621 _inheritingStyles = {};
9622 _typeSelectorCache = {};
9623 super();
9624 }
9625 public static function getInstance():IStyleManager2{
9626 if (!instance){
9627 instance = new (StyleManagerImpl);
9628 };
9629 return (instance);
9630 }
9631
9632 public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{
9633 _arg2.selectorRefCount++;
9634 _selectors[_arg1] = _arg2;
9635 typeSelectorCache = {};
9636 if (_arg3){
9637 styleDeclarationsChanged();
9638 };
9639 }
9640 public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{
9641 parentDisplayListInvalidatingStyles[_arg1] = true;
9642 }
9643 public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{
9644 var _local2:int;
9645 if (_arg1.charAt(0) != "."){
9646 _local2 = _arg1.lastIndexOf(".");
9647 if (_local2 != -1){
9648 _arg1 = _arg1.substr((_local2 + 1));
9649 };
9650 };
9651 return (_selectors[_arg1]);
9652 }
9653 public function set typeSelectorCache(_arg1:Object):void{
9654 _typeSelectorCache = _arg1;
9655 }
9656 public function isColorName(_arg1:String):Boolean{
9657 return (!((colorNames[_arg1.toLowerCase()] === undefined)));
9658 }
9659 public function set inheritingStyles(_arg1:Object):void{
9660 _inheritingStyles = _arg1;
9661 }
9662 public function getColorNames(_arg1:Array):void{
9663 var _local4:uint;
9664 if (!_arg1){
9665 return;
9666 };
9667 var _local2:int = _arg1.length;
9668 var _local3:int;
9669 while (_local3 < _local2) {
9670 if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){
9671 _local4 = getColorName(_arg1[_local3]);
9672 if (_local4 != StyleManager.NOT_A_COLOR){
9673 _arg1[_local3] = _local4;
9674 };
9675 };
9676 _local3++;
9677 };
9678 }
9679 public function isInheritingTextFormatStyle(_arg1:String):Boolean{
9680 return ((inheritingTextFormatStyles[_arg1] == true));
9681 }
9682 public function registerParentSizeInvalidatingStyle(_arg1:String):void{
9683 parentSizeInvalidatingStyles[_arg1] = true;
9684 }
9685 public function registerColorName(_arg1:String, _arg2:uint):void{
9686 colorNames[_arg1.toLowerCase()] = _arg2;
9687 }
9688 public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{
9689 return ((parentSizeInvalidatingStyles[_arg1] == true));
9690 }
9691 public function registerInheritingStyle(_arg1:String):void{
9692 inheritingStyles[_arg1] = true;
9693 }
9694 public function set stylesRoot(_arg1:Object):void{
9695 _stylesRoot = _arg1;
9696 }
9697 public function get typeSelectorCache():Object{
9698 return (_typeSelectorCache);
9699 }
9700 public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{
9701 return ((parentDisplayListInvalidatingStyles[_arg1] == true));
9702 }
9703 public function isSizeInvalidatingStyle(_arg1:String):Boolean{
9704 return ((sizeInvalidatingStyles[_arg1] == true));
9705 }
9706 public function styleDeclarationsChanged():void{
9707 var _local4:Object;
9708 var _local1:Array = SystemManagerGlobals.topLevelSystemManagers;
9709 var _local2:int = _local1.length;
9710 var _local3:int;
9711 while (_local3 < _local2) {
9712 _local4 = _local1[_local3];
9713 _local4.regenerateStyleCache(true);
9714 _local4.notifyStyleChangeInChildren(null, true);
9715 _local3++;
9716 };
9717 }
9718 public function isValidStyleValue(_arg1):Boolean{
9719 return (!((_arg1 === undefined)));
9720 }
9721 public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{
9722 return (loadStyleDeclarations2(_arg1, _arg2));
9723 }
9724 public function get inheritingStyles():Object{
9725 return (_inheritingStyles);
9726 }
9727 public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{
9728 var _local4:IModuleInfo;
9729 var _local3:StyleModuleInfo = styleModules[_arg1];
9730 if (_local3){
9731 _local3.styleModule.unload();
9732 _local4 = _local3.module;
9733 _local4.unload();
9734 _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler);
9735 _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler);
9736 styleModules[_arg1] = null;
9737 };
9738 if (_arg2){
9739 styleDeclarationsChanged();
9740 };
9741 }
9742 public function getColorName(_arg1:Object):uint{
9743 var _local2:Number;
9744 var _local3:*;
9745 if ((_arg1 is String)){
9746 if (_arg1.charAt(0) == "#"){
9747 _local2 = Number(("0x" + _arg1.slice(1)));
9748 return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
9749 };
9750 if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){
9751 _local2 = Number(_arg1);
9752 return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
9753 };
9754 _local3 = colorNames[_arg1.toLowerCase()];
9755 if (_local3 === undefined){
9756 return (StyleManager.NOT_A_COLOR);
9757 };
9758 return (uint(_local3));
9759 };
9760 return (uint(_arg1));
9761 }
9762 public function isInheritingStyle(_arg1:String):Boolean{
9763 return ((inheritingStyles[_arg1] == true));
9764 }
9765 public function get stylesRoot():Object{
9766 return (_stylesRoot);
9767 }
9768 public function initProtoChainRoots():void{
9769 if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
9770 delete _inheritingStyles["textDecoration"];
9771 delete _inheritingStyles["leading"];
9772 };
9773 if (!stylesRoot){
9774 stylesRoot = _selectors["global"].addStyleToProtoChain({}, null);
9775 };
9776 }
9777 public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
9778 var module:* = null;
9779 var styleEventDispatcher:* = null;
9780 var timer:* = null;
9781 var timerHandler:* = null;
9782 var url:* = _arg1;
9783 var update:Boolean = _arg2;
9784 var applicationDomain = _arg3;
9785 var securityDomain = _arg4;
9786 module = ModuleManager.getModule(url);
9787 var readyHandler:* = function (_arg1:ModuleEvent):void{
9788 var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create());
9789 styleModules[_arg1.module.url].styleModule = _local2;
9790 if (update){
9791 styleDeclarationsChanged();
9792 };
9793 };
9794 module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
9795 styleEventDispatcher = new StyleEventDispatcher(module);
9796 var errorHandler:* = function (_arg1:ModuleEvent):void{
9797 var _local3:StyleEvent;
9798 var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]);
9799 if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){
9800 _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
9801 _local3.bytesLoaded = 0;
9802 _local3.bytesTotal = 0;
9803 _local3.errorText = _local2;
9804 styleEventDispatcher.dispatchEvent(_local3);
9805 } else {
9806 throw (new Error(_local2));
9807 };
9808 };
9809 module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
9810 styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler);
9811 timer = new Timer(0);
9812 timerHandler = function (_arg1:TimerEvent):void{
9813 timer.removeEventListener(TimerEvent.TIMER, timerHandler);
9814 timer.stop();
9815 module.load(applicationDomain, securityDomain);
9816 };
9817 timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
9818 timer.start();
9819 return (styleEventDispatcher);
9820 }
9821 public function registerSizeInvalidatingStyle(_arg1:String):void{
9822 sizeInvalidatingStyles[_arg1] = true;
9823 }
9824 public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{
9825 var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1);
9826 if (((_local3) && ((_local3.selectorRefCount > 0)))){
9827 _local3.selectorRefCount--;
9828 };
9829 delete _selectors[_arg1];
9830 if (_arg2){
9831 styleDeclarationsChanged();
9832 };
9833 }
9834 public function get selectors():Array{
9835 var _local2:String;
9836 var _local1:Array = [];
9837 for (_local2 in _selectors) {
9838 _local1.push(_local2);
9839 };
9840 return (_local1);
9841 }
9842
9843 }
9844}//package mx.styles
9845
9846import flash.events.*;
9847import mx.modules.*;
9848import mx.events.*;
9849
9850class StyleEventDispatcher extends EventDispatcher {
9851
9852 public function StyleEventDispatcher(_arg1:IModuleInfo){
9853 _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true);
9854 _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
9855 _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
9856 }
9857 private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{
9858 var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
9859 _local2.bytesLoaded = _arg1.bytesLoaded;
9860 _local2.bytesTotal = _arg1.bytesTotal;
9861 dispatchEvent(_local2);
9862 }
9863 private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{
9864 var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE);
9865 _local2.bytesLoaded = _arg1.bytesLoaded;
9866 _local2.bytesTotal = _arg1.bytesTotal;
9867 dispatchEvent(_local2);
9868 }
9869 private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{
9870 var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
9871 _local2.bytesLoaded = _arg1.bytesLoaded;
9872 _local2.bytesTotal = _arg1.bytesTotal;
9873 _local2.errorText = _arg1.errorText;
9874 dispatchEvent(_local2);
9875 }
9876
9877}
9878class StyleModuleInfo {
9879
9880 public var errorHandler:Function;
9881 public var readyHandler:Function;
9882 public var module:IModuleInfo;
9883 public var styleModule:IStyleModule;
9884
9885 public function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){
9886 this.module = _arg1;
9887 this.readyHandler = _arg2;
9888 this.errorHandler = _arg3;
9889 }
9890}
9891package mx.styles {
9892 import flash.events.*;
9893
9894 public interface IStyleManager {
9895
9896 function isColorName(_arg1:String):Boolean;
9897 function registerParentDisplayListInvalidatingStyle(_arg1:String):void;
9898 function registerInheritingStyle(_arg1:String):void;
9899 function set stylesRoot(_arg1:Object):void;
9900 function get typeSelectorCache():Object;
9901 function styleDeclarationsChanged():void;
9902 function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void;
9903 function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean;
9904 function isSizeInvalidatingStyle(_arg1:String):Boolean;
9905 function get inheritingStyles():Object;
9906 function isValidStyleValue(_arg1):Boolean;
9907 function isParentSizeInvalidatingStyle(_arg1:String):Boolean;
9908 function getColorName(_arg1:Object):uint;
9909 function set typeSelectorCache(_arg1:Object):void;
9910 function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void;
9911 function getColorNames(_arg1:Array):void;
9912 function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher;
9913 function isInheritingStyle(_arg1:String):Boolean;
9914 function set inheritingStyles(_arg1:Object):void;
9915 function get stylesRoot():Object;
9916 function initProtoChainRoots():void;
9917 function registerColorName(_arg1:String, _arg2:uint):void;
9918 function registerParentSizeInvalidatingStyle(_arg1:String):void;
9919 function registerSizeInvalidatingStyle(_arg1:String):void;
9920 function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void;
9921 function isInheritingTextFormatStyle(_arg1:String):Boolean;
9922 function getStyleDeclaration(_arg1:String):CSSStyleDeclaration;
9923
9924 }
9925}//package mx.styles
9926package mx.styles {
9927 import flash.events.*;
9928 import flash.system.*;
9929
9930 public interface IStyleManager2 extends IStyleManager {
9931
9932 function get selectors():Array;
9933 function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher;
9934
9935 }
9936}//package mx.styles
9937package mx.styles {
9938
9939 public interface IStyleClient extends ISimpleStyleClient {
9940
9941 function regenerateStyleCache(_arg1:Boolean):void;
9942 function get className():String;
9943 function clearStyle(_arg1:String):void;
9944 function getClassStyleDeclarations():Array;
9945 function get inheritingStyles():Object;
9946 function set nonInheritingStyles(_arg1:Object):void;
9947 function setStyle(_arg1:String, _arg2):void;
9948 function get styleDeclaration():CSSStyleDeclaration;
9949 function set styleDeclaration(_arg1:CSSStyleDeclaration):void;
9950 function get nonInheritingStyles():Object;
9951 function set inheritingStyles(_arg1:Object):void;
9952 function getStyle(_arg1:String);
9953 function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void;
9954 function registerEffects(_arg1:Array):void;
9955
9956 }
9957}//package mx.styles
9958package mx.styles {
9959 import mx.core.*;
9960 import flash.display.*;
9961 import flash.utils.*;
9962 import flash.events.*;
9963 import mx.managers.*;
9964
9965 public class CSSStyleDeclaration extends EventDispatcher {
9966
9967 mx_internal static const VERSION:String = "3.4.1.10084";
9968 private static const NOT_A_COLOR:uint = 4294967295;
9969 private static const FILTERMAP_PROP:String = "__reserved__filterMap";
9970
9971 mx_internal var effects:Array;
9972 protected var overrides:Object;
9973 public var defaultFactory:Function;
9974 public var factory:Function;
9975 mx_internal var selectorRefCount:int = 0;
9976 private var styleManager:IStyleManager2;
9977 private var clones:Dictionary;
9978
9979 public function CSSStyleDeclaration(_arg1:String=null){
9980 clones = new Dictionary(true);
9981 super();
9982 if (_arg1){
9983 styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2);
9984 styleManager.setStyleDeclaration(_arg1, this, false);
9985 };
9986 }
9987 mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{
9988 var p:* = null;
9989 var emptyObjectFactory:* = null;
9990 var filteredChain:* = null;
9991 var filterObjectFactory:* = null;
9992 var i:* = null;
9993 var chain:* = _arg1;
9994 var target:* = _arg2;
9995 var filterMap = _arg3;
9996 var nodeAddedToChain:* = false;
9997 var originalChain:* = chain;
9998 if (filterMap){
9999 chain = {};
10000 };
10001 if (defaultFactory != null){
10002 defaultFactory.prototype = chain;
10003 chain = new defaultFactory();
10004 nodeAddedToChain = true;
10005 };
10006 if (factory != null){
10007 factory.prototype = chain;
10008 chain = new factory();
10009 nodeAddedToChain = true;
10010 };
10011 if (overrides){
10012 if ((((defaultFactory == null)) && ((factory == null)))){
10013 emptyObjectFactory = function ():void{
10014 };
10015 emptyObjectFactory.prototype = chain;
10016 chain = new (emptyObjectFactory);
10017 nodeAddedToChain = true;
10018 };
10019 for (p in overrides) {
10020 if (overrides[p] === undefined){
10021 delete chain[p];
10022 } else {
10023 chain[p] = overrides[p];
10024 };
10025 };
10026 };
10027 if (filterMap){
10028 if (nodeAddedToChain){
10029 filteredChain = {};
10030 filterObjectFactory = function ():void{
10031 };
10032 filterObjectFactory.prototype = originalChain;
10033 filteredChain = new (filterObjectFactory);
10034 for (i in chain) {
10035 if (filterMap[i] != null){
10036 filteredChain[filterMap[i]] = chain[i];
10037 };
10038 };
10039 chain = filteredChain;
10040 chain[FILTERMAP_PROP] = filterMap;
10041 } else {
10042 chain = originalChain;
10043 };
10044 };
10045 if (nodeAddedToChain){
10046 clones[chain] = 1;
10047 };
10048 return (chain);
10049 }
10050 public function getStyle(_arg1:String){
10051 var _local2:*;
10052 var _local3:*;
10053 if (overrides){
10054 if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){
10055 return (undefined);
10056 };
10057 _local3 = overrides[_arg1];
10058 if (_local3 !== undefined){
10059 return (_local3);
10060 };
10061 };
10062 if (factory != null){
10063 factory.prototype = {};
10064 _local2 = new factory();
10065 _local3 = _local2[_arg1];
10066 if (_local3 !== undefined){
10067 return (_local3);
10068 };
10069 };
10070 if (defaultFactory != null){
10071 defaultFactory.prototype = {};
10072 _local2 = new defaultFactory();
10073 _local3 = _local2[_arg1];
10074 if (_local3 !== undefined){
10075 return (_local3);
10076 };
10077 };
10078 return (undefined);
10079 }
10080 public function clearStyle(_arg1:String):void{
10081 setStyle(_arg1, undefined);
10082 }
10083 public function setStyle(_arg1:String, _arg2):void{
10084 var _local7:int;
10085 var _local8:Object;
10086 var _local3:Object = getStyle(_arg1);
10087 var _local4:Boolean;
10088 if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){
10089 _local4 = true;
10090 };
10091 if (_arg2 !== undefined){
10092 setStyle(_arg1, _arg2);
10093 } else {
10094 if (_arg2 == _local3){
10095 return;
10096 };
10097 setStyle(_arg1, _arg2);
10098 };
10099 var _local5:Array = SystemManagerGlobals.topLevelSystemManagers;
10100 var _local6:int = _local5.length;
10101 if (_local4){
10102 _local7 = 0;
10103 while (_local7 < _local6) {
10104 _local8 = _local5[_local7];
10105 _local8.regenerateStyleCache(true);
10106 _local7++;
10107 };
10108 };
10109 _local7 = 0;
10110 while (_local7 < _local6) {
10111 _local8 = _local5[_local7];
10112 _local8.notifyStyleChangeInChildren(_arg1, true);
10113 _local7++;
10114 };
10115 }
10116 private function clearStyleAttr(_arg1:String):void{
10117 var _local2:*;
10118 if (!overrides){
10119 overrides = {};
10120 };
10121 overrides[_arg1] = undefined;
10122 for (_local2 in clones) {
10123 delete _local2[_arg1];
10124 };
10125 }
10126 mx_internal function createProtoChainRoot():Object{
10127 var _local1:Object = {};
10128 if (defaultFactory != null){
10129 defaultFactory.prototype = _local1;
10130 _local1 = new defaultFactory();
10131 };
10132 if (factory != null){
10133 factory.prototype = _local1;
10134 _local1 = new factory();
10135 };
10136 clones[_local1] = 1;
10137 return (_local1);
10138 }
10139 mx_internal function clearOverride(_arg1:String):void{
10140 if (((overrides) && (overrides[_arg1]))){
10141 delete overrides[_arg1];
10142 };
10143 }
10144 mx_internal function setStyle(_arg1:String, _arg2):void{
10145 var _local3:Object;
10146 var _local4:*;
10147 var _local5:Number;
10148 var _local6:Object;
10149 if (_arg2 === undefined){
10150 clearStyleAttr(_arg1);
10151 return;
10152 };
10153 if ((_arg2 is String)){
10154 if (!styleManager){
10155 styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2);
10156 };
10157 _local5 = styleManager.getColorName(_arg2);
10158 if (_local5 != NOT_A_COLOR){
10159 _arg2 = _local5;
10160 };
10161 };
10162 if (defaultFactory != null){
10163 _local3 = new defaultFactory();
10164 if (_local3[_arg1] !== _arg2){
10165 if (!overrides){
10166 overrides = {};
10167 };
10168 overrides[_arg1] = _arg2;
10169 } else {
10170 if (overrides){
10171 delete overrides[_arg1];
10172 };
10173 };
10174 };
10175 if (factory != null){
10176 _local3 = new factory();
10177 if (_local3[_arg1] !== _arg2){
10178 if (!overrides){
10179 overrides = {};
10180 };
10181 overrides[_arg1] = _arg2;
10182 } else {
10183 if (overrides){
10184 delete overrides[_arg1];
10185 };
10186 };
10187 };
10188 if ((((defaultFactory == null)) && ((factory == null)))){
10189 if (!overrides){
10190 overrides = {};
10191 };
10192 overrides[_arg1] = _arg2;
10193 };
10194 for (_local4 in clones) {
10195 _local6 = _local4[FILTERMAP_PROP];
10196 if (_local6){
10197 if (_local6[_arg1] != null){
10198 _local4[_local6[_arg1]] = _arg2;
10199 };
10200 } else {
10201 _local4[_arg1] = _arg2;
10202 };
10203 };
10204 }
10205
10206 }
10207}//package mx.styles
10208package mx.styles {
10209 import mx.core.*;
10210 import flash.events.*;
10211 import flash.system.*;
10212
10213 public class StyleManager {
10214
10215 mx_internal static const VERSION:String = "3.4.1.10084";
10216 public static const NOT_A_COLOR:uint = 4294967295;
10217
10218 private static var _impl:IStyleManager2;
10219 private static var implClassDependency:StyleManagerImpl;
10220
10221 public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{
10222 return (impl.isParentSizeInvalidatingStyle(_arg1));
10223 }
10224 public static function registerInheritingStyle(_arg1:String):void{
10225 impl.registerInheritingStyle(_arg1);
10226 }
10227 mx_internal static function set stylesRoot(_arg1:Object):void{
10228 impl.stylesRoot = _arg1;
10229 }
10230 mx_internal static function get inheritingStyles():Object{
10231 return (impl.inheritingStyles);
10232 }
10233 mx_internal static function styleDeclarationsChanged():void{
10234 impl.styleDeclarationsChanged();
10235 }
10236 public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{
10237 impl.setStyleDeclaration(_arg1, _arg2, _arg3);
10238 }
10239 public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{
10240 impl.registerParentDisplayListInvalidatingStyle(_arg1);
10241 }
10242 mx_internal static function get typeSelectorCache():Object{
10243 return (impl.typeSelectorCache);
10244 }
10245 mx_internal static function set inheritingStyles(_arg1:Object):void{
10246 impl.inheritingStyles = _arg1;
10247 }
10248 public static function isColorName(_arg1:String):Boolean{
10249 return (impl.isColorName(_arg1));
10250 }
10251 public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{
10252 return (impl.isParentDisplayListInvalidatingStyle(_arg1));
10253 }
10254 public static function isSizeInvalidatingStyle(_arg1:String):Boolean{
10255 return (impl.isSizeInvalidatingStyle(_arg1));
10256 }
10257 public static function getColorName(_arg1:Object):uint{
10258 return (impl.getColorName(_arg1));
10259 }
10260 mx_internal static function set typeSelectorCache(_arg1:Object):void{
10261 impl.typeSelectorCache = _arg1;
10262 }
10263 public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{
10264 impl.unloadStyleDeclarations(_arg1, _arg2);
10265 }
10266 public static function getColorNames(_arg1:Array):void{
10267 impl.getColorNames(_arg1);
10268 }
10269 public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{
10270 return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5));
10271 }
10272 private static function get impl():IStyleManager2{
10273 if (!_impl){
10274 _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2"));
10275 };
10276 return (_impl);
10277 }
10278 public static function isValidStyleValue(_arg1):Boolean{
10279 return (impl.isValidStyleValue(_arg1));
10280 }
10281 mx_internal static function get stylesRoot():Object{
10282 return (impl.stylesRoot);
10283 }
10284 public static function isInheritingStyle(_arg1:String):Boolean{
10285 return (impl.isInheritingStyle(_arg1));
10286 }
10287 mx_internal static function initProtoChainRoots():void{
10288 impl.initProtoChainRoots();
10289 }
10290 public static function registerParentSizeInvalidatingStyle(_arg1:String):void{
10291 impl.registerParentSizeInvalidatingStyle(_arg1);
10292 }
10293 public static function get selectors():Array{
10294 return (impl.selectors);
10295 }
10296 public static function registerSizeInvalidatingStyle(_arg1:String):void{
10297 impl.registerSizeInvalidatingStyle(_arg1);
10298 }
10299 public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{
10300 impl.clearStyleDeclaration(_arg1, _arg2);
10301 }
10302 public static function registerColorName(_arg1:String, _arg2:uint):void{
10303 impl.registerColorName(_arg1, _arg2);
10304 }
10305 public static function isInheritingTextFormatStyle(_arg1:String):Boolean{
10306 return (impl.isInheritingTextFormatStyle(_arg1));
10307 }
10308 public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{
10309 return (impl.getStyleDeclaration(_arg1));
10310 }
10311
10312 }
10313}//package mx.styles
10314package mx.styles {
10315
10316 public interface ISimpleStyleClient {
10317
10318 function set styleName(_arg1:Object):void;
10319 function styleChanged(_arg1:String):void;
10320 function get styleName():Object;
10321
10322 }
10323}//package mx.styles
10324package {
10325 import flash.display.*;
10326 import flash.geom.*;
10327 import org.flixel.*;
10328 import flash.filters.*;
10329
10330 public class InteractableSprite extends FlxSprite {
10331
10332 public var badness:int;
10333 protected var timer:Number;
10334 public var hoverText:RevealText;
10335 public var name:String;
10336 public var newPixels:BitmapData;
10337 public var oldPixels:BitmapData;
10338 public var glowing:Boolean;
10339 public var id:String;
10340 protected var circleScaleX:Number;
10341 protected var circleScaleY:Number;
10342
10343 public function InteractableSprite(_arg1:int, _arg2:int, _arg3:String, _arg4:String, _arg5:int, _arg6:Class=null){
10344 super(_arg1, _arg2, _arg6);
10345 this.id = _arg3;
10346 this.name = _arg4;
10347 this.glowing = false;
10348 timer = 0;
10349 circleScaleX = ((Math.random() * 1.5) + 0.5);
10350 circleScaleY = ((Math.random() * 1.5) + 0.5);
10351 this.badness = _arg5;
10352 oldPixels = _pixels.clone();
10353 _pixels.applyFilter(_pixels, _pixels.rect, new Point(0, 0), new GlowFilter(0xFFFFFF, 1, 5, 5, 2));
10354 newPixels = _pixels.clone();
10355 pixels = oldPixels;
10356 calcFrame();
10357 }
10358 public function playAffair():void{
10359 (FlxG.state as PlayState).playAffair(id, badness);
10360 }
10361 public function isMouseOver():Boolean{
10362 return ((((((((FlxG.mouse.x > x)) && ((FlxG.mouse.x < (x + width))))) && ((FlxG.mouse.y > y)))) && ((FlxG.mouse.y < (y + height)))));
10363 }
10364 override public function update():void{
10365 timer = (timer + FlxG.elapsed);
10366 if (hoverText != null){
10367 hoverText.x = ((x + (width / 2)) + ((Math.sin(timer) * 15) * circleScaleX));
10368 hoverText.y = ((y + (height / 2)) + ((Math.cos(timer) * 15) * circleScaleY));
10369 };
10370 if (isMouseOver()){
10371 if (hoverText == null){
10372 hoverText = new RevealText(x, y, 0.02, 0.2, 300, name, false, false);
10373 hoverText.color = 0xFFFFFF;
10374 (FlxG.state as PlayState).hoverTextGroup.add(hoverText);
10375 };
10376 if (((((FlxG.mouse.justReleased()) && (!((FlxG.state as PlayState).locked)))) && (!((FlxG.state as PlayState).cutscene)))){
10377 (FlxG.state as PlayState).GIRL.target = FlxG.mouse.x;
10378 (FlxG.state as PlayState).GIRL.lastClicked = this;
10379 };
10380 if (!glowing){
10381 glowing = true;
10382 pixels = newPixels;
10383 calcFrame();
10384 };
10385 } else {
10386 if (glowing){
10387 glowing = false;
10388 pixels = oldPixels;
10389 calcFrame();
10390 };
10391 if (hoverText){
10392 hoverText.start = true;
10393 hoverText = null;
10394 };
10395 };
10396 super.update();
10397 }
10398
10399 }
10400}//package
10401package {
10402 import mx.core.*;
10403 import mx.styles.*;
10404
10405 public class _swatchPanelTextFieldStyle {
10406
10407 public static function init(_arg1:IFlexModuleFactory):void{
10408 var fbs:* = _arg1;
10409 var style:* = StyleManager.getStyleDeclaration(".swatchPanelTextField");
10410 if (!style){
10411 style = new CSSStyleDeclaration();
10412 StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false);
10413 };
10414 if (style.defaultFactory == null){
10415 style.defaultFactory = function ():void{
10416 this.borderStyle = "inset";
10417 this.borderColor = 14015965;
10418 this.highlightColor = 12897484;
10419 this.backgroundColor = 0xFFFFFF;
10420 this.shadowCapColor = 14015965;
10421 this.shadowColor = 14015965;
10422 this.paddingLeft = 5;
10423 this.buttonColor = 7305079;
10424 this.borderCapColor = 9542041;
10425 this.paddingRight = 5;
10426 };
10427 };
10428 }
10429
10430 }
10431}//package
10432package {
10433 import mx.core.*;
10434
10435 public class Raindrop_raindropImage extends BitmapAsset {
10436
10437 }
10438}//package
10439package {
10440 import mx.core.*;
10441
10442 public class PlayState_fridgeImage extends BitmapAsset {
10443
10444 }
10445}//package
10446package {
10447 import mx.core.*;
10448
10449 public class PlayState_groundBackWall extends BitmapAsset {
10450
10451 }
10452}//package
10453package {
10454 import org.flixel.*;
10455
10456 public class Trigger extends FlxObject {
10457
10458 public var g:Girl;
10459 public var id:String;
10460
10461 public function Trigger(_arg1:int, _arg2:int, _arg3:String){
10462 super(_arg1, 0);
10463 this.width = _arg2;
10464 g = (FlxG.state as PlayState).GIRL;
10465 this.id = _arg3;
10466 }
10467 public function trigger():void{
10468 (FlxG.state as PlayState).playAffair(id, 0);
10469 }
10470 override public function update():void{
10471 if ((((g.x > x)) && ((g.x < (x + width))))){
10472 g.velocity.x = 0;
10473 g.acceleration.x = 0;
10474 g.target = g.x;
10475 g.lastClicked = null;
10476 trigger();
10477 kill();
10478 };
10479 super.update();
10480 }
10481
10482 }
10483}//package
10484package {
10485 import flash.display.*;
10486 import flash.utils.*;
10487 import org.flixel.*;
10488
10489 public class PlayState extends FlxState {
10490
10491 public var bad:Boolean;
10492 public var BEDROOM_START:int = 2000;
10493 private var groundBackWall:Class;
10494 public var locked:Boolean;
10495 private var girlNames:Class;
10496 public var rainTimer:Number;
10497 public var events:Dictionary;
10498 private var vaseImage:Class;
10499 public var eventname:String;
10500 private var city1:Class;
10501 private var city2:Class;
10502 private var streetlightImage:Class;
10503 private var city3:Class;
10504 private var eventlist:Class;
10505 public var vase:InteractableSprite;
10506 private var bedroomBg:Class;
10507 private var deskImage:Class;
10508 public var foreground:FlxGroup;
10509 public var timer:Timer;
10510 private var bookcaseImage:Class;
10511 public var rainGroup:FlxGroup;
10512 private var doorImage:Class;
10513 private var overlayImg:Class;
10514 private var fridgeImage:Class;
10515 private var bedImage:Class;
10516 public var EATING_START:int = 3000;
10517 public var food:String;
10518 public var LIVINGROOM_START:int = 4000;
10519 private var shoesImage:Class;
10520 private var bannisterImage:Class;
10521 private var mountains1:Class;
10522 private var mountains2:Class;
10523 private var mountains3:Class;
10524 private var eatingBg:Class;
10525 public var hoverTextGroup:FlxGroup;
10526 private var entryTable:Class;
10527 private var grandfatherClock:Class;
10528 public var cutscene:Boolean;
10529 private var thunderSound:Class;
10530 private var dresserImage:Class;
10531 public var messageBoxGroup:FlxGroup;
10532 public var girl:String;
10533 public var bgInteractables:FlxGroup;
10534 public var currentEvent:Array;
10535 public var GIRL:Girl;
10536 public var timeText:FlxText;
10537 public var BOY:Boy;
10538 private var livingroomImage:Class;
10539 public var emoteLayer:FlxGroup;
10540 public var _buf:Sprite;
10541 public var backgroundLayer:FlxGroup;
10542 public var stayed:Boolean;
10543 private var script:Class;
10544 public var boy:String;
10545 public var ingredient:String;
10546 private var arrowImage:Class;
10547 private var cupboardImage:Class;
10548 protected var currentIndex:int;
10549 private var boyNames:Class;
10550 private var mirrorImage:Class;
10551 private var carImage:Class;
10552 private var musicSound:Class;
10553 private var ingredientlist:Class;
10554 public var weather:String;
10555 private var foodlist:Class;
10556
10557 public function PlayState(_arg1:Sprite){
10558 foodlist = PlayState_foodlist;
10559 eventlist = PlayState_eventlist;
10560 ingredientlist = PlayState_ingredientlist;
10561 script = PlayState_script;
10562 girlNames = PlayState_girlNames;
10563 boyNames = PlayState_boyNames;
10564 overlayImg = PlayState_overlayImg;
10565 groundBackWall = PlayState_groundBackWall;
10566 doorImage = PlayState_doorImage;
10567 cupboardImage = PlayState_cupboardImage;
10568 grandfatherClock = PlayState_grandfatherClock;
10569 fridgeImage = PlayState_fridgeImage;
10570 bedroomBg = PlayState_bedroomBg;
10571 eatingBg = PlayState_eatingBg;
10572 bedImage = PlayState_bedImage;
10573 entryTable = PlayState_entryTable;
10574 deskImage = PlayState_deskImage;
10575 bannisterImage = PlayState_bannisterImage;
10576 dresserImage = PlayState_dresserImage;
10577 vaseImage = PlayState_vaseImage;
10578 carImage = PlayState_carImage;
10579 bookcaseImage = PlayState_bookcaseImage;
10580 shoesImage = PlayState_shoesImage;
10581 mirrorImage = PlayState_mirrorImage;
10582 arrowImage = PlayState_arrowImage;
10583 livingroomImage = PlayState_livingroomImage;
10584 mountains1 = PlayState_mountains1;
10585 mountains2 = PlayState_mountains2;
10586 mountains3 = PlayState_mountains3;
10587 city1 = PlayState_city1;
10588 streetlightImage = PlayState_streetlightImage;
10589 city2 = PlayState_city2;
10590 city3 = PlayState_city3;
10591 thunderSound = PlayState_thunderSound;
10592 musicSound = PlayState_musicSound;
10593 super();
10594 this._buf = _arg1;
10595 cutscene = true;
10596 events = new Dictionary();
10597 messageBoxGroup = new FlxGroup();
10598 hoverTextGroup = new FlxGroup();
10599 bgInteractables = new FlxGroup();
10600 foreground = new FlxGroup();
10601 backgroundLayer = new FlxGroup();
10602 rainGroup = new FlxGroup();
10603 emoteLayer = new FlxGroup();
10604 rainTimer = 0;
10605 }
10606 override public function create():void{
10607 generateNames();
10608 bad = true;
10609 if (Math.random() < 0.15){
10610 bad = false;
10611 };
10612 var _local1:Number = Math.random();
10613 if (_local1 < 0.5){
10614 weather = "rainy";
10615 } else {
10616 weather = "snowy";
10617 };
10618 parseEvents();
10619 bgColor = 3161936;
10620 add(backgroundLayer);
10621 GIRL = new Girl(10, 80);
10622 GIRL.facing = FlxSprite.LEFT;
10623 BOY = new Boy(480, 80);
10624 BOY.facing = FlxSprite.LEFT;
10625 makeLevel();
10626 var _local2:Camera = new Camera();
10627 add(_local2);
10628 FlxG.follow(_local2, 1);
10629 FlxG.followBounds(0, 0, 800, 160);
10630 add(rainGroup);
10631 add(foreground);
10632 add(bgInteractables);
10633 add(GIRL);
10634 add(BOY);
10635 add(emoteLayer);
10636 var _local3:FlxSprite = new FlxSprite(0, 0, overlayImg);
10637 _local3.scrollFactor.x = 0;
10638 _local3.scrollFactor.x = y;
10639 _local3.alpha = 0.75;
10640 _local3.blend = "multiply";
10641 add(_local3);
10642 timer = new Timer(135, 30);
10643 timeText = new FlxText(timer.x, (timer.y + 1), 100, "");
10644 timeText.scrollFactor.x = 0;
10645 timeText.scrollFactor.y = 0;
10646 add(hoverTextGroup);
10647 add(messageBoxGroup);
10648 FlxG.mouse.show();
10649 FlxG.flash.start(4278190080, 1, startgame);
10650 super.create();
10651 }
10652 public function playAffair(_arg1:String, _arg2:int):void{
10653 switch (_arg2){
10654 case 0:
10655 currentEvent = events[_arg1][0].concat();
10656 break;
10657 case 1:
10658 currentEvent = events[_arg1][1].concat();
10659 break;
10660 case 2:
10661 currentEvent = events[_arg1][2].concat();
10662 break;
10663 case 3:
10664 currentEvent = events[_arg1][0].concat(events[_arg1][2]);
10665 break;
10666 case 4:
10667 currentEvent = events[_arg1][0].concat(events[_arg1][1]);
10668 break;
10669 };
10670 currentIndex = 0;
10671 GIRL.velocity.x = 0;
10672 GIRL.acceleration.x = 0;
10673 locked = true;
10674 playNextAffair();
10675 }
10676 public function time2str(_arg1:Number):String{
10677 var _local5:String;
10678 var _local2:int = int(_arg1);
10679 var _local3:int = (_arg1 / 60);
10680 var _local4:int = (_arg1 % 60);
10681 _local5 = "";
10682 var _local6 = "";
10683 if (_local3 < 10){
10684 _local5 = (_local5 + "0");
10685 };
10686 if (_local4 < 10){
10687 _local6 = "0";
10688 };
10689 return (((((_local5 + _local3) + ":") + _local6) + _local4));
10690 }
10691 public function startgame():void{
10692 FlxG.playMusic(musicSound, 0.3);
10693 playAffair("[BEGIN]", 0);
10694 cutscene = false;
10695 }
10696 public function makeLevel():void{
10697 var _local1:FlxSprite;
10698 var _local2:FlxSprite;
10699 var _local3:FlxSprite;
10700 if (Math.random() < 0.5){
10701 _local1 = new FlxSprite(0, 0, mountains1);
10702 _local2 = new FlxSprite(0, 0, mountains2);
10703 _local3 = new FlxSprite(0, 0, mountains3);
10704 } else {
10705 _local1 = new FlxSprite(0, 0, city1);
10706 _local2 = new FlxSprite(0, 0, city2);
10707 _local3 = new FlxSprite(0, 0, city3);
10708 foreground.add(new FlxSprite(-100, 0, streetlightImage));
10709 };
10710 _local1.scrollFactor.y = 0;
10711 _local2.scrollFactor.y = 0;
10712 _local3.scrollFactor.y = 0;
10713 _local1.scrollFactor.x = 0.1;
10714 _local2.scrollFactor.x = 0.3;
10715 _local3.scrollFactor.x = 0.5;
10716 backgroundLayer.add(_local1);
10717 backgroundLayer.add(_local2);
10718 backgroundLayer.add(_local3);
10719 foreground.add(new FlxSprite(-100, 0, groundBackWall));
10720 foreground.add(new FlxSprite(BEDROOM_START, 0, bedroomBg));
10721 foreground.add(new FlxSprite(LIVINGROOM_START, 0, livingroomImage));
10722 foreground.add(new FlxSprite(EATING_START, 0, eatingBg));
10723 bgInteractables.add(new InteractableSprite(0x0202, 80, "[GRANDFATHER]", "grandfather clock", 0, grandfatherClock));
10724 bgInteractables.add(new InteractableSprite(486, 122, "[SHOES]", "shoes", 0, shoesImage));
10725 bgInteractables.add(new InteractableSprite(300, 97, "[CAR]", (boy + "'s car"), 0, carImage));
10726 add(new Trigger(250, 100, "[TUTORIAL]"));
10727 add(new Trigger(435, 100, "[GREET]"));
10728 add(new Trigger(475, 100, "[ENTRY]"));
10729 var _local4 = 3;
10730 if (!bad){
10731 _local4 = 4;
10732 };
10733 bgInteractables.add(new InteractableSprite(686, 62, "[CUPBOARD]", "cupboard", _local4, cupboardImage));
10734 bgInteractables.add(new InteractableSprite(645, 78, "[DOOR]", "go to living room", 0, doorImage));
10735 bgInteractables.add(new InteractableSprite(623, 42, "[ARROW]", "go upstairs", 0, arrowImage));
10736 bgInteractables.add(new InteractableSprite((BEDROOM_START + 14), 90, "[RETURNTOMAIN]", "go downstairs", 0, bannisterImage));
10737 bgInteractables.add(new InteractableSprite((LIVINGROOM_START + 21), 78, "[RETURNTOMAIN]", "go back", 0, doorImage));
10738 bgInteractables.add(new InteractableSprite((LIVINGROOM_START + 65), 74, "[MIRROR]", "mirror", _local4, mirrorImage));
10739 bgInteractables.add(new InteractableSprite((LIVINGROOM_START + 207), 85, "[DESK]", (boy + "'s desk"), _local4, deskImage));
10740 vase = new InteractableSprite((LIVINGROOM_START + 128), 72, "[VASE]", "flowers", _local4, vaseImage);
10741 bgInteractables.add(vase);
10742 bgInteractables.add(new InteractableSprite((BEDROOM_START + 93), 84, "[BED]", (boy + "'s bed"), _local4, bedImage));
10743 bgInteractables.add(new InteractableSprite((BEDROOM_START + 243), 54, "[BOOKCASE]", "bookcase", _local4, bookcaseImage));
10744 bgInteractables.add(new InteractableSprite((BEDROOM_START + 195), 84, "[DRESSER]", "dresser", 0, dresserImage));
10745 bgInteractables.add(new InteractableSprite(751, 78, "[FRIDGE]", "refridgerator", _local4, fridgeImage));
10746 bgInteractables.add(new InteractableSprite(534, 101, "[ENTRYWAY-TABLE]", "table", _local4, entryTable));
10747 }
10748 public function parseEvents():void{
10749 var _local3:String;
10750 var _local4:Array;
10751 var _local5:Array;
10752 var _local6:Array;
10753 var _local8:Boolean;
10754 var _local10:String;
10755 var _local11:String;
10756 var _local1:String = new script();
10757 _local1 = _local1.replace(/%BOY%/g, boy);
10758 _local1 = _local1.replace(/%WEATHER%/g, weather);
10759 _local1 = _local1.replace(/%GIRL%/g, girl);
10760 _local1 = _local1.replace(/%FOOD%/g, food);
10761 _local1 = _local1.replace(/%EVENT%/g, eventname);
10762 _local1 = _local1.replace(/%INGREDIENT%/g, ingredient);
10763 var _local2:Array = _local1.split("\n");
10764 var _local7:Boolean;
10765 var _local9:int;
10766 while (_local9 < _local2.length) {
10767 _local10 = _local2[_local9];
10768 if (_local10.search("\\[.*\\]") != -1){
10769 if (_local3 != null){
10770 events[_local3] = [_local6, _local4, _local5];
10771 };
10772 _local3 = _local10.substring(0, (_local10.length - 1));
10773 _local7 = true;
10774 _local6 = new Array();
10775 _local4 = new Array();
10776 _local5 = new Array();
10777 } else {
10778 if (_local10.search("{GOOD}") != -1){
10779 _local8 = true;
10780 _local7 = false;
10781 } else {
10782 if (_local10.search("{BAD}") != -1){
10783 _local8 = false;
10784 _local7 = false;
10785 } else {
10786 if (_local10.search("#GOTO.*#") != -1){
10787 _local11 = _local10.substring(0, (_local10.length - 1)).split(" ")[1];
10788 if (_local7){
10789 _local6.push(["GOTO", _local11]);
10790 } else {
10791 if (_local8){
10792 _local4.push(["GOTO", _local11]);
10793 } else {
10794 _local5.push(["GOTO", _local11]);
10795 };
10796 };
10797 } else {
10798 if (_local10.search("\\$.*\\$") != -1){
10799 } else {
10800 if (_local10.search("~.*~") != -1){
10801 _local11 = _local10.substring(0, (_local10.length - 1)).split(" ")[1];
10802 if (_local7){
10803 _local6.push(["SHOW", _local11]);
10804 } else {
10805 if (_local8){
10806 _local4.push(["SHOW", _local11]);
10807 } else {
10808 _local5.push(["SHOW", _local11]);
10809 };
10810 };
10811 } else {
10812 if (_local10.length > 5){
10813 if (_local7){
10814 _local6.push(["TEXT", _local10]);
10815 } else {
10816 if (_local8){
10817 _local4.push(["TEXT", _local10]);
10818 } else {
10819 _local5.push(["TEXT", _local10]);
10820 };
10821 };
10822 };
10823 };
10824 };
10825 };
10826 };
10827 };
10828 };
10829 _local9++;
10830 };
10831 if (_local3 != null){
10832 events[_local3] = [_local6, _local4, _local5];
10833 };
10834 }
10835 override public function update():void{
10836 if (timer != null){
10837 timeText.text = ("" + time2str(timer.time));
10838 if (timer.time == 0){
10839 if (!locked){
10840 playAffair("[DINNERTIME]", 0);
10841 timer.kill();
10842 timeText.kill();
10843 timer = null;
10844 };
10845 };
10846 };
10847 if (weather == "rainy"){
10848 rainTimer = (rainTimer + FlxG.elapsed);
10849 if (rainTimer > 0.01){
10850 rainGroup.add(new Raindrop((Math.random() * 300)));
10851 rainTimer = 0;
10852 };
10853 if (Math.random() < 0.0001){
10854 FlxG.flash.start();
10855 FlxG.play(thunderSound, 0.07);
10856 FlxG.quake.start(0.003);
10857 };
10858 } else {
10859 if (weather == "snowy"){
10860 rainTimer = (rainTimer + FlxG.elapsed);
10861 if (rainTimer > 0.01){
10862 rainGroup.add(new Snow((Math.random() * 300)));
10863 rainTimer = 0;
10864 };
10865 };
10866 };
10867 super.update();
10868 }
10869 public function generateNames():void{
10870 var _local1:String = new foodlist();
10871 var _local2:Array = _local1.split("\n");
10872 food = _local2[int((Math.random() * _local2.length))];
10873 var _local3:String = new ingredientlist();
10874 var _local4:Array = _local3.split("\n");
10875 ingredient = _local4[int((Math.random() * _local4.length))];
10876 var _local5:String = new eventlist();
10877 var _local6:Array = _local5.split("\n");
10878 eventname = _local6[int((Math.random() * _local6.length))];
10879 var _local7:String = new girlNames();
10880 var _local8:Array = _local7.split("\n");
10881 girl = _local8[int((Math.random() * _local8.length))];
10882 _local7 = new boyNames();
10883 _local8 = _local7.split("\n");
10884 boy = _local8[int((Math.random() * _local8.length))];
10885 boy = boy.substring(0, (boy.length - 1));
10886 girl = girl.substring(0, (girl.length - 1));
10887 food = food.substring(0, (food.length - 1));
10888 ingredient = ingredient.substring(0, (ingredient.length - 1));
10889 eventname = eventname.substring(0, (eventname.length - 1));
10890 if ((((((((((girl.length < 2)) || ((boy.length < 2)))) || ((food.length < 2)))) || ((ingredient.length < 2)))) || ((eventname.length < 2)))){
10891 generateNames();
10892 };
10893 }
10894 public function playNextAffair():void{
10895 var _local2:Affair;
10896 if (currentIndex == currentEvent.length){
10897 locked = false;
10898 return;
10899 };
10900 var _local1:Array = currentEvent[currentIndex];
10901 if (_local1[0] == "TEXT"){
10902 if (_local1[1].search((boy + ":")) >= 0){
10903 _local2 = new TextAffair(_local1[1], 1);
10904 } else {
10905 if (_local1[1].search((girl + ":")) >= 0){
10906 _local2 = new TextAffair(_local1[1], 0);
10907 } else {
10908 _local2 = new TextAffair(_local1[1], 2);
10909 };
10910 };
10911 } else {
10912 if (_local1[0] == "GOTO"){
10913 _local2 = new MoveAffair(_local1[1]);
10914 } else {
10915 if (_local1[0] == "EMOTE"){
10916 _local2 = new EmotionAffair(_local1[1]);
10917 } else {
10918 if (_local1[0] == "SHOW"){
10919 _local2 = new ShowAffair(_local1[1]);
10920 };
10921 };
10922 };
10923 };
10924 currentIndex++;
10925 add(_local2);
10926 _local2.happen(playNextAffair);
10927 }
10928
10929 }
10930}//package
10931package {
10932 import mx.core.*;
10933
10934 public class TextAffair_messageBoxGraphic extends BitmapAsset {
10935
10936 }
10937}//package
10938package {
10939 import mx.core.*;
10940
10941 public class PlayState_cupboardImage extends BitmapAsset {
10942
10943 }
10944}//package
10945package {
10946 import mx.core.*;
10947
10948 public class IntroState3_white extends BitmapAsset {
10949
10950 }
10951}//package
10952package {
10953 import mx.core.*;
10954 import mx.styles.*;
10955
10956 public class _dataGridStylesStyle {
10957
10958 public static function init(_arg1:IFlexModuleFactory):void{
10959 var fbs:* = _arg1;
10960 var style:* = StyleManager.getStyleDeclaration(".dataGridStyles");
10961 if (!style){
10962 style = new CSSStyleDeclaration();
10963 StyleManager.setStyleDeclaration(".dataGridStyles", style, false);
10964 };
10965 if (style.defaultFactory == null){
10966 style.defaultFactory = function ():void{
10967 this.fontWeight = "bold";
10968 };
10969 };
10970 }
10971
10972 }
10973}//package
10974package {
10975 import org.flixel.*;
10976
10977 public class Boy extends FlxSprite {
10978
10979 public var target:int;
10980 protected var SPEED:int = 75;
10981 protected var ACCEL:int = 150;
10982 public var lastClicked:InteractableSprite;
10983 private var girlImage:Class;
10984
10985 public function Boy(_arg1:int, _arg2:int){
10986 girlImage = Boy_girlImage;
10987 super(_arg1, _arg2);
10988 target = _arg1;
10989 loadGraphic(girlImage, true, true, 32, 48);
10990 addAnimation("walk", [1, 2, 4, 5, 6, 5], 10, true);
10991 addAnimation("cook", [7, 8, 9], 5, true);
10992 addAnimation("burn", [10, 11, 12], 3, true);
10993 addAnimation("stand", [0], 0, false);
10994 play("stand");
10995 }
10996 override public function update():void{
10997 if (_curAnim.name == "walk"){
10998 _curAnim.delay = (1 / ((10 * Math.abs(velocity.x)) / SPEED));
10999 };
11000 if (Math.abs(velocity.x) > SPEED){
11001 velocity.x = (SPEED * ((velocity.x > 0)) ? 1 : -1);
11002 acceleration.x = 0;
11003 };
11004 if (x > (target + 10)){
11005 acceleration.x = -(ACCEL);
11006 facing = LEFT;
11007 } else {
11008 if ((x + width) < (target - 10)){
11009 acceleration.x = ACCEL;
11010 facing = RIGHT;
11011 } else {
11012 velocity.x = 0;
11013 acceleration.x = 0;
11014 };
11015 };
11016 if (((!((_curAnim.name == "cook"))) && (!((_curAnim.name == "burn"))))){
11017 if (Math.abs(velocity.x) > 0){
11018 play("walk");
11019 } else {
11020 play("stand");
11021 };
11022 };
11023 super.update();
11024 }
11025
11026 }
11027}//package
11028package {
11029 import org.flixel.*;
11030
11031 public class Girl extends FlxSprite {
11032
11033 public var target:int;
11034 public var SPEED:int = 70;
11035 public var ACCEL:int = 150;
11036 public var lastClicked:InteractableSprite;
11037 private var girlImage:Class;
11038
11039 public function Girl(_arg1:int, _arg2:int){
11040 girlImage = Girl_girlImage;
11041 super(_arg1, _arg2);
11042 target = _arg1;
11043 loadGraphic(girlImage, true, true, 35, 48);
11044 addAnimation("walk", [4, 5, 6, 7, 8, 9, 10], 15, true);
11045 addAnimation("stand", [0], 0, false);
11046 play("stand");
11047 }
11048 override public function update():void{
11049 if (!(FlxG.state as PlayState).cutscene){
11050 if (((FlxG.mouse.pressed()) && (!((FlxG.state as PlayState).locked)))){
11051 if (FlxG.mouse.x > x){
11052 facing = LEFT;
11053 } else {
11054 facing = RIGHT;
11055 };
11056 };
11057 if (((((((FlxG.mouse.pressed()) && ((Math.abs((FlxG.mouse.x - x)) > 20)))) && (!((FlxG.state as PlayState).locked)))) && ((lastClicked == null)))){
11058 if (((((FlxG.mouse.x - (x + width)) > 40)) || (((x - FlxG.mouse.x) > 40)))){
11059 target = FlxG.mouse.x;
11060 };
11061 };
11062 };
11063 if (_curAnim.name == "walk"){
11064 _curAnim.delay = (1 / ((8 * Math.abs(velocity.x)) / SPEED));
11065 };
11066 if (Math.abs(velocity.x) > SPEED){
11067 velocity.x = (SPEED * ((velocity.x > 0)) ? 1 : -1);
11068 acceleration.x = 0;
11069 };
11070 if (x > (target + 10)){
11071 velocity.x = -(ACCEL);
11072 facing = RIGHT;
11073 } else {
11074 if ((x + width) < (target - 10)){
11075 velocity.x = ACCEL;
11076 facing = LEFT;
11077 } else {
11078 velocity.x = 0;
11079 acceleration.x = 0;
11080 if (lastClicked != null){
11081 lastClicked.playAffair();
11082 lastClicked = null;
11083 };
11084 };
11085 };
11086 if (Math.abs(velocity.x) > 0){
11087 play("walk");
11088 } else {
11089 play("stand");
11090 };
11091 super.update();
11092 }
11093
11094 }
11095}//package
11096package {
11097 import mx.core.*;
11098
11099 public class PlayState_bannisterImage extends BitmapAsset {
11100
11101 }
11102}//package
11103package {
11104 import mx.core.*;
11105 import mx.styles.*;
11106
11107 public class _headerDragProxyStyleStyle {
11108
11109 public static function init(_arg1:IFlexModuleFactory):void{
11110 var fbs:* = _arg1;
11111 var style:* = StyleManager.getStyleDeclaration(".headerDragProxyStyle");
11112 if (!style){
11113 style = new CSSStyleDeclaration();
11114 StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false);
11115 };
11116 if (style.defaultFactory == null){
11117 style.defaultFactory = function ():void{
11118 this.fontWeight = "bold";
11119 };
11120 };
11121 }
11122
11123 }
11124}//package
11125package {
11126 import mx.core.*;
11127 import mx.styles.*;
11128
11129 public class _textAreaVScrollBarStyleStyle {
11130
11131 public static function init(_arg1:IFlexModuleFactory):void{
11132 var fbs:* = _arg1;
11133 var style:* = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle");
11134 if (!style){
11135 style = new CSSStyleDeclaration();
11136 StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false);
11137 };
11138 if (style.defaultFactory == null){
11139 style.defaultFactory = function ():void{
11140 };
11141 };
11142 }
11143
11144 }
11145}//package
11146package {
11147 import mx.core.*;
11148 import mx.styles.*;
11149
11150 public class _opaquePanelStyle {
11151
11152 public static function init(_arg1:IFlexModuleFactory):void{
11153 var fbs:* = _arg1;
11154 var style:* = StyleManager.getStyleDeclaration(".opaquePanel");
11155 if (!style){
11156 style = new CSSStyleDeclaration();
11157 StyleManager.setStyleDeclaration(".opaquePanel", style, false);
11158 };
11159 if (style.defaultFactory == null){
11160 style.defaultFactory = function ():void{
11161 this.borderColor = 0xFFFFFF;
11162 this.backgroundColor = 0xFFFFFF;
11163 this.headerColors = [0xE7E7E7, 0xD9D9D9];
11164 this.footerColors = [0xE7E7E7, 0xC7C7C7];
11165 this.borderAlpha = 1;
11166 };
11167 };
11168 }
11169
11170 }
11171}//package
11172package {
11173 import mx.core.*;
11174
11175 public class Boy_girlImage extends BitmapAsset {
11176
11177 }
11178}//package
11179package {
11180 import org.flixel.*;
11181
11182 public class Affair extends FlxObject {
11183
11184 public function happen(_arg1:Function):void{
11185 }
11186
11187 }
11188}//package
11189package {
11190 import flash.display.*;
11191 import org.flixel.*;
11192
11193 public class MenuState extends FlxState {
11194
11195 public var _buf:Sprite;
11196 private var bgImage:Class;
11197
11198 public function MenuState(_arg1:Sprite){
11199 bgImage = MenuState_bgImage;
11200 super();
11201 this._buf = _arg1;
11202 this._buf.scaleX = 1;
11203 this._buf.scaleY = 1;
11204 var _local2:Bitmap = new bgImage();
11205 addChild(_local2);
11206 }
11207 override public function update():void{
11208 if (FlxG.mouse.justReleased()){
11209 _buf.scaleX = 3;
11210 _buf.scaleY = 3;
11211 FlxG.state = new IntroState(_buf);
11212 };
11213 super.update();
11214 }
11215 public function finish():void{
11216 }
11217
11218 }
11219}//package
11220package {
11221 import flash.display.*;
11222 import org.flixel.*;
11223
11224 public class EndState extends FlxState {
11225
11226 protected var rt:RevealText;
11227 public var _buf:Sprite;
11228 public var mouseImage:Class;
11229 public var blackScreen:Class;
11230
11231 public function EndState(_arg1:Boolean, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:Sprite){
11232 var _local6:String;
11233 blackScreen = EndState_blackScreen;
11234 mouseImage = EndState_mouseImage;
11235 super();
11236 FlxG.music.stop();
11237 add(new FlxSprite(0, 0, blackScreen));
11238 this._buf = _arg5;
11239 if (_arg1){
11240 if (_arg2){
11241 _local6 = "As their relationship progressed, it became clear that %GIRL% had made a bad choice.\n\n\"If you leave me I'll track you down and bad things will happen to your family!\" threatened %BOY%.\n\n%GIRL% was in a tough spot. She was afraid to leave but %BOY% had become an aggressive, controlling, and even abusive boyfriend.\n\nWith the help of her family members, %GIRL% escaped from %BOY%'s clutches but the relationship left an emotional scar that would haunt her for years to come.";
11242 } else {
11243 _local6 = (("\nDespite her fears, %BOY% turned out to actually be a great guy. %GIRL% and %BOY% eventually got married and had " + int(((Math.random() * 4) + 2))) + " children. \n\nThey lived happily and grew old together.\n\n\n\n\n\n\nTHE END");
11244 };
11245 } else {
11246 if (_arg2){
11247 _local6 = "\"Where are you going?\" cried %BOY% as %GIRL% ran off into the darkness.\n\n%GIRL% had made her decision. She could only hope that she had made the correct judgement.\n\nSome years later, %GIRL% saw an article about a man named %BOY% in the newspaper, who had been apprehended by the police for abusing his significant other. She knew then that her choice had been correct.\n\n\nTHE END";
11248 } else {
11249 _local6 = "\"Where are you going?\" cried %BOY% as %GIRL% ran off into the darkness.\n\n%GIRL% had made her decision. She could only hope that she had made the correct judgement.\n\n%BOY% was, in fact, a perfectly great guy. Maybe %GIRL% had lapsed into a fit of paranoia, but she ignored %BOY%'s calls for several months until he finally gave up. That was the end of their relationship, though both %BOY% and %GIRL% live happily today.\n\nTHE END";
11250 };
11251 };
11252 _local6 = _local6.replace(/%BOY%/g, _arg3);
11253 _local6 = _local6.replace(/%GIRL%/g, _arg4);
11254 var _local7:FlxSprite = new FlxSprite(280, 135);
11255 _local7.loadGraphic(mouseImage, true, false, 12, 18);
11256 _local7.addAnimation("go", [0, 1], 3, true);
11257 _local7.play("go");
11258 add(_local7);
11259 rt = new RevealText(20, 10, 0.05, 3, 260, _local6);
11260 add(rt);
11261 }
11262 override public function update():void{
11263 if (FlxG.mouse.justReleased()){
11264 if (rt.isDone()){
11265 FlxG.fade.start(4294967295, 1.5, nextstate);
11266 } else {
11267 rt.revealAll();
11268 };
11269 };
11270 super.update();
11271 }
11272 public function nextstate():void{
11273 FlxG.state = new MenuState(_buf);
11274 }
11275
11276 }
11277}//package
11278package {
11279 import mx.core.*;
11280
11281 public class ShowAffair_buttonImage extends BitmapAsset {
11282
11283 }
11284}//package
11285package {
11286 import org.flixel.*;
11287
11288 public class EmotionAffair extends Affair {
11289
11290 private var emoteImage:Class;
11291 public var timer:Number;
11292 protected var callback:Function;
11293 public var boy:Boolean;
11294 public var id:String;
11295 public var emote:FlxSprite;
11296
11297 public function EmotionAffair(_arg1:String){
11298 emoteImage = EmotionAffair_emoteImage;
11299 super();
11300 timer = 0;
11301 boy = false;
11302 if (_arg1.split(" ")[0] == "$BOY"){
11303 boy = true;
11304 };
11305 this.id = _arg1.split(" ")[1];
11306 }
11307 override public function happen(_arg1:Function):void{
11308 var _local2:FlxSprite;
11309 if (boy){
11310 } else {
11311 _local2 = (FlxG.state as PlayState).GIRL;
11312 };
11313 emote = new FlxSprite((_local2.x + ((2 * _local2.width) / 3)), (_local2.y - 15));
11314 emote.loadGraphic(emoteImage, false, false, 20, 20);
11315 switch (id){
11316 case "BLUSH$":
11317 emote.frame = 2;
11318 break;
11319 case "HAPPY$":
11320 emote.frame = 0;
11321 break;
11322 case "SAD$":
11323 emote.frame = 1;
11324 break;
11325 case "WORRIED$":
11326 emote.frame = 3;
11327 break;
11328 case "ANGRY$":
11329 emote.frame = 4;
11330 break;
11331 };
11332 (FlxG.state as PlayState).emoteLayer.add(emote);
11333 this.callback = _arg1;
11334 }
11335 override public function update():void{
11336 timer = (timer + FlxG.elapsed);
11337 if (timer > 1){
11338 emote.alpha = (emote.alpha - (FlxG.elapsed * 1.5));
11339 if (emote.alpha <= 0){
11340 emote.kill();
11341 kill();
11342 callback();
11343 };
11344 };
11345 super.update();
11346 }
11347
11348 }
11349}//package
11350package {
11351 import mx.core.*;
11352 import mx.styles.*;
11353
11354 public class _comboDropdownStyle {
11355
11356 public static function init(_arg1:IFlexModuleFactory):void{
11357 var fbs:* = _arg1;
11358 var style:* = StyleManager.getStyleDeclaration(".comboDropdown");
11359 if (!style){
11360 style = new CSSStyleDeclaration();
11361 StyleManager.setStyleDeclaration(".comboDropdown", style, false);
11362 };
11363 if (style.defaultFactory == null){
11364 style.defaultFactory = function ():void{
11365 this.shadowDirection = "center";
11366 this.fontWeight = "normal";
11367 this.dropShadowEnabled = true;
11368 this.leading = 0;
11369 this.backgroundColor = 0xFFFFFF;
11370 this.shadowDistance = 1;
11371 this.cornerRadius = 0;
11372 this.borderThickness = 0;
11373 this.paddingLeft = 5;
11374 this.paddingRight = 5;
11375 };
11376 };
11377 }
11378
11379 }
11380}//package
11381package {
11382 import mx.core.*;
11383 import mx.styles.*;
11384
11385 public class _popUpMenuStyle {
11386
11387 public static function init(_arg1:IFlexModuleFactory):void{
11388 var fbs:* = _arg1;
11389 var style:* = StyleManager.getStyleDeclaration(".popUpMenu");
11390 if (!style){
11391 style = new CSSStyleDeclaration();
11392 StyleManager.setStyleDeclaration(".popUpMenu", style, false);
11393 };
11394 if (style.defaultFactory == null){
11395 style.defaultFactory = function ():void{
11396 this.fontWeight = "normal";
11397 this.textAlign = "left";
11398 };
11399 };
11400 }
11401
11402 }
11403}//package
11404package {
11405 import flash.display.*;
11406 import org.flixel.*;
11407
11408 public class ButtonSprite extends FlxSprite {
11409
11410 public var badness:int;
11411 protected var timer:Number;
11412 public var hoverText:RevealText;
11413 public var name:String;
11414 public var newPixels:BitmapData;
11415 public var oldPixels:BitmapData;
11416 public var glowing:Boolean;
11417 public var id:String;
11418 protected var circleScaleX:Number;
11419 protected var circleScaleY:Number;
11420
11421 public function ButtonSprite(_arg1:int, _arg2:int, _arg3:String, _arg4:String, _arg5:int, _arg6:Class=null){
11422 super(_arg1, _arg2, _arg6);
11423 this.id = _arg3;
11424 this.name = _arg4;
11425 this.glowing = false;
11426 timer = 0;
11427 circleScaleX = ((Math.random() * 1.5) + 0.5);
11428 circleScaleY = ((Math.random() * 1.5) + 0.5);
11429 this.badness = _arg5;
11430 }
11431 public function playAffair():void{
11432 (FlxG.state as PlayState).playAffair(id, badness);
11433 }
11434 public function isMouseOver():Boolean{
11435 return ((((((((FlxG.mouse.x > x)) && ((FlxG.mouse.x < (x + width))))) && ((FlxG.mouse.y > y)))) && ((FlxG.mouse.y < (y + height)))));
11436 }
11437 override public function update():void{
11438 color = 4294967295;
11439 if (isMouseOver()){
11440 color = 4278255360;
11441 if (((FlxG.mouse.justReleased()) && (!((FlxG.state as PlayState).locked)))){
11442 playAffair();
11443 };
11444 };
11445 }
11446
11447 }
11448}//package
11449package {
11450 import mx.core.*;
11451
11452 public class PlayState_mountains3 extends BitmapAsset {
11453
11454 }
11455}//package
11456package {
11457 import mx.core.*;
11458
11459 public class RevealText_blip extends SoundAsset {
11460
11461 }
11462}//package
11463package {
11464 import mx.core.*;
11465
11466 public class Timer_hp1_img extends BitmapAsset {
11467
11468 }
11469}//package
11470package {
11471 import mx.core.*;
11472 import mx.styles.*;
11473
11474 public class _alertButtonStyleStyle {
11475
11476 public static function init(_arg1:IFlexModuleFactory):void{
11477 var fbs:* = _arg1;
11478 var style:* = StyleManager.getStyleDeclaration(".alertButtonStyle");
11479 if (!style){
11480 style = new CSSStyleDeclaration();
11481 StyleManager.setStyleDeclaration(".alertButtonStyle", style, false);
11482 };
11483 if (style.defaultFactory == null){
11484 style.defaultFactory = function ():void{
11485 this.color = 734012;
11486 };
11487 };
11488 }
11489
11490 }
11491}//package
11492package {
11493 import mx.core.*;
11494
11495 public class IntroState_white extends BitmapAsset {
11496
11497 }
11498}//package
11499package {
11500 import mx.core.*;
11501 import mx.styles.*;
11502
11503 public class _dateFieldPopupStyle {
11504
11505 public static function init(_arg1:IFlexModuleFactory):void{
11506 var fbs:* = _arg1;
11507 var style:* = StyleManager.getStyleDeclaration(".dateFieldPopup");
11508 if (!style){
11509 style = new CSSStyleDeclaration();
11510 StyleManager.setStyleDeclaration(".dateFieldPopup", style, false);
11511 };
11512 if (style.defaultFactory == null){
11513 style.defaultFactory = function ():void{
11514 this.dropShadowEnabled = true;
11515 this.backgroundColor = 0xFFFFFF;
11516 this.borderThickness = 0;
11517 };
11518 };
11519 }
11520
11521 }
11522}//package
11523package {
11524 import flash.display.*;
11525 import flash.geom.*;
11526 import org.flixel.*;
11527
11528 public class Timer extends FlxSprite {
11529
11530 private var hp1:BitmapData;
11531 private var hp2:BitmapData;
11532 public var time:Number;
11533 private var hp2_img:Class;
11534 public var always_on:Boolean;
11535 private var target:FlxSprite;
11536 private var maxtime:Number;
11537 private var hp1_img:Class;
11538
11539 public function Timer(_arg1:Number, _arg2:int){
11540 hp1_img = Timer_hp1_img;
11541 hp2_img = Timer_hp2_img;
11542 super(100, 20);
11543 this.time = _arg1;
11544 this.maxtime = _arg1;
11545 this.width = _arg2;
11546 this.pixels = new BitmapData(_arg2, 15);
11547 hp1 = FlxG.addBitmap(hp1_img);
11548 hp2 = FlxG.addBitmap(hp2_img);
11549 alpha = 0;
11550 always_on = false;
11551 scrollFactor.x = 0;
11552 scrollFactor.y = 0;
11553 x = 265;
11554 y = 140;
11555 visible = true;
11556 }
11557 override public function update():void{
11558 var _local1:BitmapData;
11559 time = (time - FlxG.elapsed);
11560 if (time < 0){
11561 time = 0;
11562 };
11563 var _local2:Number = (time / maxtime);
11564 _local1 = new BitmapData(width, 15);
11565 _local1.copyPixels(hp1, new Rectangle(0, 0, 1, 15), new Point(0, 0));
11566 _local1.copyPixels(hp1, new Rectangle(0, 0, 1, 15), new Point((width - 1), 0));
11567 var _local3 = 1;
11568 while (_local3 < (width - 1)) {
11569 _local1.copyPixels(hp1, new Rectangle(1, 0, 1, 15), new Point(_local3, 0));
11570 _local3++;
11571 };
11572 var _local4:Number = 4278224896;
11573 if ((((_local2 < 0.66)) && ((_local2 > 0.25)))){
11574 _local4 = 4287137792;
11575 };
11576 if (_local2 < 0.25){
11577 _local4 = 4287102976;
11578 };
11579 _local1.fillRect(new Rectangle(1, 1, int(((width - 2) * _local2)), 13), _local4);
11580 this._framePixels = _local1;
11581 }
11582
11583 }
11584}//package
11585package {
11586 import mx.core.*;
11587
11588 public class Snow_snowImage extends BitmapAsset {
11589
11590 }
11591}//package
11592package {
11593 import mx.core.*;
11594
11595 public class PlayState_entryTable extends BitmapAsset {
11596
11597 }
11598}//package
11599package {
11600 import org.flixel.*;
11601
11602 public class TextAffair extends Affair {
11603
11604 private var messageBoxGraphic:Class;
11605 public var callback:Function;
11606 public var message:String;
11607 protected var box:FadingSprite;
11608 public var col:int;
11609 protected var txt:RevealText;
11610 public var ypos:int = 10;
11611 public var xpos:int = 21;
11612
11613 public function TextAffair(_arg1:String, _arg2:int){
11614 messageBoxGraphic = TextAffair_messageBoxGraphic;
11615 super();
11616 this.message = _arg1;
11617 this.col = _arg2;
11618 }
11619 override public function update():void{
11620 if (FlxG.mouse.justReleased()){
11621 if (txt.isDone()){
11622 txt.start = true;
11623 box.start = true;
11624 kill();
11625 } else {
11626 txt.revealAll();
11627 };
11628 };
11629 super.update();
11630 }
11631 override public function happen(_arg1:Function):void{
11632 box = new FadingSprite(xpos, ypos);
11633 box.loadGraphic(messageBoxGraphic, true, false, 0x0100, 64);
11634 box.addAnimation("go", [0, 1], 3, true);
11635 box.play("go");
11636 box.callback = _arg1;
11637 box.scrollFactor.x = 0;
11638 box.scrollFactor.y = 0;
11639 txt = new RevealText((xpos + 5), (ypos + 5), 0.02, box.timer, 245, message);
11640 txt.scrollFactor.x = 0;
11641 if (col == 0){
11642 txt.color = 16756912;
11643 } else {
11644 if (col == 1){
11645 txt.color = 11788797;
11646 } else {
11647 txt.color = 0xFFFFFF;
11648 };
11649 };
11650 txt.scrollFactor.y = 0;
11651 (FlxG.state as PlayState).messageBoxGroup.add(box);
11652 (FlxG.state as PlayState).messageBoxGroup.add(txt);
11653 super.happen(_arg1);
11654 }
11655
11656 }
11657}//package
11658package {
11659 import org.flixel.*;
11660
11661 public class Camera extends FlxSprite {
11662
11663 public function Camera(){
11664 alpha = 0;
11665 }
11666 override public function update():void{
11667 var _local1:Girl = (FlxG.state as PlayState).GIRL;
11668 if (_local1.facing == LEFT){
11669 x = (_local1.x + 100);
11670 } else {
11671 x = (_local1.x - 100);
11672 };
11673 super.update();
11674 }
11675
11676 }
11677}//package
11678package {
11679 import mx.core.*;
11680 import mx.styles.*;
11681
11682 public class _windowStylesStyle {
11683
11684 public static function init(_arg1:IFlexModuleFactory):void{
11685 var fbs:* = _arg1;
11686 var style:* = StyleManager.getStyleDeclaration(".windowStyles");
11687 if (!style){
11688 style = new CSSStyleDeclaration();
11689 StyleManager.setStyleDeclaration(".windowStyles", style, false);
11690 };
11691 if (style.defaultFactory == null){
11692 style.defaultFactory = function ():void{
11693 this.fontWeight = "bold";
11694 };
11695 };
11696 }
11697
11698 }
11699}//package
11700package {
11701 import mx.core.*;
11702 import mx.styles.*;
11703
11704 public class _linkButtonStyleStyle {
11705
11706 public static function init(_arg1:IFlexModuleFactory):void{
11707 var fbs:* = _arg1;
11708 var style:* = StyleManager.getStyleDeclaration(".linkButtonStyle");
11709 if (!style){
11710 style = new CSSStyleDeclaration();
11711 StyleManager.setStyleDeclaration(".linkButtonStyle", style, false);
11712 };
11713 if (style.defaultFactory == null){
11714 style.defaultFactory = function ():void{
11715 this.paddingTop = 2;
11716 this.paddingLeft = 2;
11717 this.paddingBottom = 2;
11718 this.paddingRight = 2;
11719 };
11720 };
11721 }
11722
11723 }
11724}//package
11725package {
11726 import mx.core.*;
11727
11728 public class PlayState_livingroomImage extends BitmapAsset {
11729
11730 }
11731}//package
11732package {
11733 import org.flixel.*;
11734
11735 public class CircleText extends FlxText {
11736
11737 protected var wx:int;
11738 protected var timer:Number;
11739 protected var ox:int;
11740 protected var wy:int;
11741 protected var oy:int;
11742
11743 public function CircleText(_arg1:int, _arg2:int, _arg3:int, _arg4:String, _arg5:int, _arg6:int){
11744 super(_arg1, _arg2, _arg3, _arg4);
11745 timer = 0;
11746 this.ox = _arg1;
11747 this.oy = _arg2;
11748 this.wx = _arg5;
11749 this.wy = _arg6;
11750 }
11751 override public function update():void{
11752 timer = (timer + FlxG.elapsed);
11753 x = (ox + ((Math.sin(timer) * 15) * wx));
11754 y = (oy + ((Math.cos(timer) * 15) * wy));
11755 super.update();
11756 }
11757
11758 }
11759}//package
11760package {
11761 import org.flixel.*;
11762
11763 public class Snow extends FlxSprite {
11764
11765 private var snowImage:Class;
11766
11767 public function Snow(_arg1:int){
11768 snowImage = Snow_snowImage;
11769 super(_arg1, -10);
11770 scrollFactor.x = 0;
11771 loadGraphic(snowImage, false, false, 5, 5);
11772 frame = int((Math.random() * 3));
11773 alpha = Math.random();
11774 acceleration.y = 40;
11775 velocity.x = ((Math.random() * 80) - 40);
11776 }
11777 override public function update():void{
11778 if (y >= 128){
11779 kill();
11780 };
11781 super.update();
11782 }
11783
11784 }
11785}//package
11786package {
11787 import mx.core.*;
11788
11789 public class PlayState_dresserImage extends BitmapAsset {
11790
11791 }
11792}//package
11793package {
11794 import mx.core.*;
11795
11796 public class PlayState_mountains1 extends BitmapAsset {
11797
11798 }
11799}//package
11800package {
11801 import mx.core.*;
11802
11803 public class ShowAffair_breaksound extends SoundAsset {
11804
11805 }
11806}//package
11807package {
11808 import mx.core.*;
11809
11810 public class PlayState_carImage extends BitmapAsset {
11811
11812 }
11813}//package
11814package {
11815 import org.flixel.*;
11816
11817 public class ShowAffair extends Affair {
11818
11819 protected static var ct:CircleText;
11820
11821 private var breaksound:Class;
11822 private var vaseFallImage:Class;
11823 private var buttonImage:Class;
11824 protected var id:String;
11825
11826 public function ShowAffair(_arg1:String){
11827 buttonImage = ShowAffair_buttonImage;
11828 vaseFallImage = ShowAffair_vaseFallImage;
11829 breaksound = ShowAffair_breaksound;
11830 super();
11831 this.id = _arg1;
11832 }
11833 override public function happen(_arg1:Function):void{
11834 var _local2:PlayState;
11835 var _local4:InteractableSprite;
11836 var _local5:FlxSprite;
11837 _local2 = (FlxG.state as PlayState);
11838 var _local3 = 3;
11839 if (!_local2.bad){
11840 _local3 = 4;
11841 };
11842 switch (id){
11843 case "OPTIONS~":
11844 _local2.GIRL.facing = FlxSprite.LEFT;
11845 _local2.cutscene = true;
11846 ct = new CircleText((_local2.EATING_START + 60), 50, 200, (("What should I talk to " + _local2.boy) + " about?"), 1.5, 0.2);
11847 _local2.hoverTextGroup.add(ct);
11848 _local2.bgInteractables.add(new ButtonSprite((_local2.EATING_START + 40), 135, "[ARGUMENT]", "", _local3, buttonImage));
11849 _local2.hoverTextGroup.add(new FlxText((_local2.EATING_START + 48), 138, 100, "politics"));
11850 _local2.bgInteractables.add(new ButtonSprite((_local2.EATING_START + 210), 135, "[WEEK]", "", _local3, buttonImage));
11851 _local2.hoverTextGroup.add(new FlxText((_local2.EATING_START + 222), 138, 100, "week"));
11852 _local2.BOY.x = 300;
11853 _local2.BOY.target = 300;
11854 _local2.BOY.facing = FlxSprite.RIGHT;
11855 _local2.BOY.play("stand");
11856 break;
11857 case "LEAVE~":
11858 _local2.GIRL.facing = FlxSprite.LEFT;
11859 _local2.cutscene = true;
11860 ct = new CircleText((445 + 60), 50, 200, "Should I stay or should I go?", 1.5, 0.2);
11861 _local2.hoverTextGroup.add(ct);
11862 _local2.bgInteractables.add(new ButtonSprite((445 + 40), 135, "[STAY]", "", 0, buttonImage));
11863 _local2.hoverTextGroup.add(new FlxText((445 + 56), 138, 100, "stay"));
11864 _local2.bgInteractables.add(new ButtonSprite((445 + 210), 135, "[LEAVE]", "", 0, buttonImage));
11865 _local2.hoverTextGroup.add(new FlxText((445 + 223), 138, 100, "leave"));
11866 break;
11867 case "NOOPTIONS~":
11868 ct.kill();
11869 break;
11870 case "STAY~":
11871 _local2.GIRL.target = 320;
11872 _local2.add(new Trigger(310, 30, "[READY-TO-GO]"));
11873 _local2.stayed = true;
11874 break;
11875 case "GOHOME~":
11876 _local2.GIRL.target = -100;
11877 _local2.add(new Trigger(-50, 25, "[END]"));
11878 _local2.stayed = false;
11879 break;
11880 case "BOYGOESIN~":
11881 _local2.BOY.target = 600;
11882 break;
11883 case "TIMER~":
11884 _local2.add(_local2.timer);
11885 _local2.add(_local2.timeText);
11886 break;
11887 case "BOYGOESTOKITCHEN~":
11888 _local2.BOY.target = 755;
11889 break;
11890 case "BOYCOOKING~":
11891 _local2.BOY.play("cook");
11892 _local2.BOY.facing = FlxSprite.LEFT;
11893 break;
11894 case "BURNT~":
11895 _local2.BOY.play("burn");
11896 break;
11897 case "VASE~":
11898 _local4 = _local2.vase;
11899 _local5 = new FlxSprite(_local4.x, (_local4.y + 2));
11900 _local5.loadGraphic(vaseFallImage, true, false, 100, 54);
11901 _local5.addAnimation("fall", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 8, false);
11902 _local2.bgInteractables.add(_local5);
11903 _local5.play("fall");
11904 _local5.addAnimationCallback(anim);
11905 _local4.kill();
11906 break;
11907 case "END~":
11908 FlxG.fade.start(4278190080, 1, changeState);
11909 break;
11910 };
11911 _arg1();
11912 kill();
11913 }
11914 public function changeState():void{
11915 var _local1:PlayState = (FlxG.state as PlayState);
11916 FlxG.state = new EndState(_local1.stayed, _local1.bad, _local1.boy, _local1.girl, _local1._buf);
11917 }
11918 public function anim(_arg1:String, _arg2:int, _arg3:int):void{
11919 if ((((_arg1 == "fall")) && ((_arg2 == 5)))){
11920 FlxG.play(breaksound, 0.2);
11921 };
11922 }
11923
11924 }
11925}//package
11926package {
11927 import mx.core.*;
11928 import mx.styles.*;
11929
11930 public class _windowStatusStyle {
11931
11932 public static function init(_arg1:IFlexModuleFactory):void{
11933 var fbs:* = _arg1;
11934 var style:* = StyleManager.getStyleDeclaration(".windowStatus");
11935 if (!style){
11936 style = new CSSStyleDeclaration();
11937 StyleManager.setStyleDeclaration(".windowStatus", style, false);
11938 };
11939 if (style.defaultFactory == null){
11940 style.defaultFactory = function ():void{
11941 this.color = 0x666666;
11942 };
11943 };
11944 }
11945
11946 }
11947}//package
11948package {
11949 import mx.core.*;
11950
11951 public class Girl_girlImage extends BitmapAsset {
11952
11953 }
11954}//package
11955package {
11956 import mx.core.*;
11957
11958 public class PlayState_eventlist extends ByteArrayAsset {
11959
11960 }
11961}//package
11962package {
11963 import mx.core.*;
11964
11965 public class PlayState_foodlist extends ByteArrayAsset {
11966
11967 }
11968}//package
11969package {
11970 import mx.core.*;
11971
11972 public class PlayState_city3 extends BitmapAsset {
11973
11974 }
11975}//package
11976package {
11977 import mx.core.*;
11978 import mx.styles.*;
11979
11980 public class _richTextEditorTextAreaStyleStyle {
11981
11982 public static function init(_arg1:IFlexModuleFactory):void{
11983 var fbs:* = _arg1;
11984 var style:* = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle");
11985 if (!style){
11986 style = new CSSStyleDeclaration();
11987 StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false);
11988 };
11989 if (style.defaultFactory == null){
11990 style.defaultFactory = function ():void{
11991 };
11992 };
11993 }
11994
11995 }
11996}//package
11997package {
11998 import mx.core.*;
11999
12000 public class PlayState_mountains2 extends BitmapAsset {
12001
12002 }
12003}//package
12004package {
12005 import org.flixel.*;
12006
12007 public class RevealText extends FlxText {
12008
12009 public var start:Boolean;
12010 protected var fulltext:String;
12011 public var total:Number;
12012 protected var timer:Number;
12013 protected var reveal:int;
12014 public var blip:Class;
12015 protected var duration:Number;
12016 public var fade:Number;
12017 public var tick:Boolean;
12018
12019 public function RevealText(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:int, _arg6:String, _arg7:Boolean=true, _arg8:Boolean=false){
12020 blip = RevealText_blip;
12021 super(_arg1, _arg2, _arg5, " ");
12022 timer = 0;
12023 reveal = 0;
12024 this.fade = _arg4;
12025 fulltext = _arg6;
12026 this.text = "";
12027 this.duration = _arg3;
12028 this.tick = _arg7;
12029 this.start = _arg8;
12030 this.total = _arg4;
12031 }
12032 public function isDone():Boolean{
12033 return ((reveal >= fulltext.length));
12034 }
12035 override public function update():void{
12036 timer = (timer + FlxG.elapsed);
12037 if (reveal < fulltext.length){
12038 if (timer > duration){
12039 timer = 0;
12040 reveal++;
12041 if (tick){
12042 if ((reveal % 7) == 0){
12043 FlxG.play(blip, 0.05);
12044 };
12045 };
12046 text = fulltext.substr(0, reveal);
12047 };
12048 };
12049 if (start){
12050 fade = (fade - FlxG.elapsed);
12051 alpha = (fade / total);
12052 if (alpha <= 0){
12053 kill();
12054 };
12055 };
12056 super.update();
12057 }
12058 public function revealAll():void{
12059 reveal = fulltext.length;
12060 text = fulltext.substr(0, reveal);
12061 }
12062
12063 }
12064}//package
12065package {
12066 import mx.core.*;
12067
12068 public class PlayState_girlNames extends ByteArrayAsset {
12069
12070 }
12071}//package