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

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

Hashi Light Volume 2 - Addicting expansion brain teaser puzzle game.swf

This is the info page for
Flash #130592

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


Text
Click to continue

<p align="left"><font face="Verdana" size="11" color="#778d27" letterSpacing="0.450000" kerning="1"><b>Volume</b></font></p>

<p align="left"><font face="Verdana" size="12" color="#000000" letterSpacing="-1.000000" kerning="0">1.</font></p>

<p align="left"><font face="Verdana" size="12" color="#000000" letterSpacing="0.350000" kerning="0">N</font></p>

<p align="left"><font face="Verdana" size="12" color="#000000" letterSpacing="0.350000" kerning="0">B</font></p>

Level 1

Level 3

Level 2

Level 1

Level 3

Choose puzzle

New game

Next

Back

How to play

<p align="left"><font face="Verdana" size="12" color="#778d27" letterSpacing="0.300000" kerning="1"><b>Connecting and removing bridges</b></font></p>

<p align="left"><font face="Verdana" size="11" color="#000000" letterSpacing="0.200000" kerning="1">Hashi interactive is played by connecting bridges between islands. <sbr />Point mouse on an island, move arrow in the direction of the bridge <sbr />you want to connect and click when only one bridge area remains <sbr />highlighted. First click connects one bridge, second click connects a <sbr />second bridges and the third click removes all bridges.</font></p>

Back

Next

<p align="left"><font face="Verdana" size="11" color="#000000" letterSpacing="0.200000" kerning="1">Highlighting an island segment is helpful <sbr />when checking whether isolation is about to <sbr />occur. To highlight an island segment, click <sbr />mouse on any of the islands belonging to the <sbr />segment.</font></p>

<p align="left"><font face="Verdana" size="12" color="#778d27" letterSpacing="0.300000" kerning="1"><b>Highlighting island segments</b></font></p>

<p align="left"><font face="Verdana" size="11" color="#000000" letterSpacing="0.000000" kerning="1">When the correct number of bridges is <sbr />connected to an island, the corresponding clue <sbr />inside the island will turn green and an X will <sbr />appear to indicate the island is completed.</font></p>

<p align="left"><font face="Verdana" size="12" color="#778d27" letterSpacing="0.500000" kerning="1"><b>Completing islands</b></font></p>

Toolbar

Go back as many steps in
the game as you want.

Check all connected
bridges for errors.

Go forward after using
Undo as many steps as
you want.

Show solution of the
puzzle. Using this button
will also end the game.

Restart puzzle to solve
from the beginning.

Save current state of the
puzzle.

Undo (Keyboard: U)

Redo (Keyboard: R)

Restart puzzle

Check puzzle (Keyboard: C)

Show solution

Save puzzle (Keyboard: S)

All game functions are accessed through the toolbar. For some toolbar
buttons, keyboard shortcut keys are also available as listed below.

More puzzles
from Conceptis

More puzzles
from Conceptis

More puzzles
from Conceptis

Hashi Light Vol 2.
Copyright © Conceptis Ltd.

About

More puzzles from Conceptis:

www.conceptispuzzles.com

Rules

<p align="left"><font face="Verdana" size="11" color="#000000" letterSpacing="0.400000" kerning="1">Each puzzle is based on a rectangular arrangement of circles, <sbr />where each circle represents an island and the number in each <sbr />island tells how many bridges are connected to it. The object is to <sbr />connect all islands according to the number of bridges so that <sbr />there are no more than two bridges in the same direction and <sbr />there is a continuous path connecting all islands together. Bridges <sbr />can only be vertical or horizontal and are not allowed to cross <sbr />islands or other bridges.</font></p>

More
Hashi

More
Hashi

Save Puzzle?

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.300000" kerning="0">The puzzle will be saved on this computer</font></p>

No

Yes

Yes

About...

text...

ActionScript [AS3]

Section 1
//AuxFunctions (caurina.transitions.AuxFunctions) package caurina.transitions { public class AuxFunctions { public static function concatObjects(... _args):Object{ var _local3:Object; var _local5:String; var _local2:Object = {}; var _local4:int; while (_local4 < _args.length) { _local3 = _args[_local4]; for (_local5 in _local3) { if (_local3[_local5] == null){ delete _local2[_local5]; } else { _local2[_local5] = _local3[_local5]; }; }; _local4++; }; return (_local2); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } public static function isInArray(_arg1:String, _arg2:Array):Boolean{ var _local3:uint = _arg2.length; var _local4:uint; while (_local4 < _local3) { if (_arg2[_local4] == _arg1){ return (true); }; _local4++; }; return (false); } public static function getObjectLength(_arg1:Object):uint{ var _local3:String; var _local2:uint; for (_local3 in _arg1) { _local2++; }; return (_local2); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } } }//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations) package caurina.transitions { public class Equations { public function Equations(){ trace("Equations is a static class and should not be instantiated."); } public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); }; --_arg1; return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2)); }; _arg1 = (_arg1 - 2); _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001))); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; --_arg1; return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005))); }; --_arg1; return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } } }//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj) package caurina.transitions { public class PropertyInfoObj { public var modifierParameters:Array; public var isSpecialProperty:Boolean; public var valueComplete:Number; public var modifierFunction:Function; public var extra:Object; public var valueStart:Number; public var hasModifier:Boolean; public var arrayIndex:Number; public var originalValueComplete:Object; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){ valueStart = _arg1; valueComplete = _arg2; originalValueComplete = _arg3; arrayIndex = _arg4; extra = _arg5; isSpecialProperty = _arg6; hasModifier = Boolean(_arg7); modifierFunction = _arg7; modifierParameters = _arg8; } public function toString():String{ var _local1 = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("extra:" + String(extra))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("hasModifier:" + String(hasModifier))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } public function clone():PropertyInfoObj{ var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters); return (_local1); } } }//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty) package caurina.transitions { public class SpecialProperty { public var parameters:Array; public var getValue:Function; public var preProcess:Function; public var setValue:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; preProcess = _arg4; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("preProcess:" + String(preProcess))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier) package caurina.transitions { public class SpecialPropertyModifier { public var getValue:Function; public var modifyValues:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter) package caurina.transitions { public class SpecialPropertySplitter { public var parameters:Array; public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){ splitValues = _arg1; parameters = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener) package caurina.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tweener { private static var _timeScale:Number = 1; private static var _currentTimeFrame:Number; private static var _specialPropertySplitterList:Object; private static var _engineExists:Boolean = false; private static var _specialPropertyModifierList:Object; private static var _currentTime:Number; private static var _tweenList:Array; private static var _specialPropertyList:Object; private static var _transitionList:Object; private static var _inited:Boolean = false; private static var __tweener_controller__:MovieClip; public function Tweener(){ trace("Tweener is a static class and should not be instantiated."); } public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ if (!_inited){ init(); }; var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{ if (!_inited){ init(); }; var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5); _specialPropertyList[_arg1] = _local6; } public static function init(... _args):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); } private static function updateTweens():Boolean{ var _local1:int; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Array; var _local8:Function; var _local9:TweenListObj; var _local10:Number; var _local11:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local4 = _arg1.concat(); } else { _local4 = [_arg1]; }; var _local5:Object = _arg2; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time; var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay; if (typeof(_local5.transition) == "string"){ _local11 = _local5.transition.toLowerCase(); _local8 = _transitionList[_local11]; } else { _local8 = _local5.transition; }; if (!Boolean(_local8)){ _local8 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local4.length) { if (_local5.useFrames == true){ _local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams); } else { _local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams); }; _local9.properties = null; _local9.onStart = _local5.onStart; _local9.onUpdate = _local5.onUpdate; _local9.onComplete = _local5.onComplete; _local9.onOverwrite = _local5.onOverwrite; _local9.onStartParams = _local5.onStartParams; _local9.onUpdateParams = _local5.onUpdateParams; _local9.onCompleteParams = _local5.onCompleteParams; _local9.onOverwriteParams = _local5.onOverwriteParams; _local9.onStartScope = _local5.onStartScope; _local9.onUpdateScope = _local5.onUpdateScope; _local9.onCompleteScope = _local5.onCompleteScope; _local9.onOverwriteScope = _local5.onOverwriteScope; _local9.onErrorScope = _local5.onErrorScope; _local9.isCaller = true; _local9.count = _local5.count; _local9.waitFrames = _local5.waitFrames; _tweenList.push(_local9); if ((((_local6 == 0)) && ((_local7 == 0)))){ _local10 = (_tweenList.length - 1); updateTweenByIndex(_local10); removeTweenByIndex(_local10); }; _local3++; }; return (true); } public static function pauseAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { pauseTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(removeTweenByIndex, _arg1, _local3)); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local5:uint; var _local6:String; var _local7:Boolean; var _local3:TweenListObj = _tweenList[_arg1]; var _local4:TweenListObj = _local3.clone(false); _local5 = 0; while (_local5 < _arg2.length) { _local6 = _arg2[_local5]; if (Boolean(_local3.properties[_local6])){ _local3.properties[_local6] = undefined; delete _local3.properties[_local6]; }; _local5++; }; for (_local6 in _local4.properties) { _local7 = false; _local5 = 0; while (_local5 < _arg2.length) { if (_arg2[_local5] == _local6){ _local7 = true; break; }; _local5++; }; if (!_local7){ _local4.properties[_local6] = undefined; delete _local4.properties[_local6]; }; }; _tweenList.push(_local4); return ((_tweenList.length - 1)); } public static function updateFrame():void{ _currentTimeFrame++; } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; var _local3:Number = getCurrentTweeningTime(_local2); _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } public static function getVersion():String{ return ("AS3 1.31.71"); } public static function onEnterFrame(_arg1:Event):void{ updateTime(); updateFrame(); var _local2:Boolean; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function updateTime():void{ _currentTime = getTimer(); } private static function updateTweenByIndex(_arg1:Number):Boolean{ var tTweening:TweenListObj; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var eventScope:Object; var tScope:Object; var tProperty:Object; var pv:Number; var i = _arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; var isOver:Boolean; var cTime:Number = getCurrentTweeningTime(tTweening); if (cTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening.isCaller){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(cTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates))); if (cTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening.hasStarted){ if (Boolean(tTweening.onStart)){ eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope; try { tTweening.onStart.apply(eventScope, tTweening.onStartParams); } catch(e:Error) { handleError(tTweening, e, "onStart"); }; }; for (pName in tTweening.properties) { if (tTweening.properties[pName].isSpecialProperty){ if (Boolean(_specialPropertyList[pName].preProcess)){ tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra); }; pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { pv = tScope[pName]; }; tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening.hasStarted = true; }; if (mustUpdate){ for (pName in tTweening.properties) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (cTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (cTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d, tTweening.transitionParams); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; if (tProperty.isSpecialProperty){ _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { tScope[pName] = nv; }; }; tTweening.updatesSkipped = 0; if (Boolean(tTweening.onUpdate)){ eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope; try { tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams); } catch(e:Error) { handleError(tTweening, e, "onUpdate"); }; }; } else { tTweening.updatesSkipped++; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope; try { tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams); } catch(e:Error) { handleError(tTweening, e, "onComplete"); }; }; return (!(isOver)); }; return (true); } public static function setTimeScale(_arg1:Number):void{ var _local2:Number; var _local3:Number; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ if (_tweenList != null){ _local2 = 0; while (_local2 < _tweenList.length) { _local3 = getCurrentTweeningTime(_tweenList[_local2]); _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; }; _timeScale = _arg1; }; } public static function resumeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { resumeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{ var eventScope:Object; var pTweening = _arg1; var pError = _arg2; var pCallBackName = _arg3; if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){ eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(eventScope, [pTweening.scope, pError]); } catch(metaError:Error) { printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace())); }; } else { if (!Boolean(pTweening.onError)){ printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace())); }; }; } private static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); _currentTimeFrame = 0; updateTime(); } public static function removeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { removeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Number; var _local5:String; var _local6:Array; var _local13:Function; var _local14:Object; var _local15:TweenListObj; var _local16:Number; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local6 = _arg1.concat(); } else { _local6 = [_arg1]; }; var _local7:Object = TweenListObj.makePropertiesChain(_arg2); if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time; var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay; var _local10:Array = new Array(); var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true}; var _local12:Object = new Object(); for (_local5 in _local7) { if (!_local11[_local5]){ if (_specialPropertySplitterList[_local5]){ _local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters); _local3 = 0; while (_local3 < _local17.length) { if (_specialPropertySplitterList[_local17[_local3].name]){ _local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters); _local4 = 0; while (_local4 < _local18.length) { _local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false}; _local4++; }; } else { _local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false}; }; _local3++; }; } else { if (_specialPropertyModifierList[_local5] != undefined){ _local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]); _local3 = 0; while (_local3 < _local19.length) { _local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue}; _local3++; }; } else { _local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]}; }; }; }; }; for (_local5 in _local10) { if (_specialPropertyList[_local5] != undefined){ _local10[_local5].isSpecialProperty = true; } else { if (_local6[0][_local5] == undefined){ printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property.")); }; }; }; for (_local5 in _local12) { if (_local10[_local5] != undefined){ _local10[_local5].modifierParameters = _local12[_local5].modifierParameters; _local10[_local5].modifierFunction = _local12[_local5].modifierFunction; }; }; if (typeof(_local7.transition) == "string"){ _local20 = _local7.transition.toLowerCase(); _local13 = _transitionList[_local20]; } else { _local13 = _local7.transition; }; if (!Boolean(_local13)){ _local13 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local6.length) { _local14 = new Object(); for (_local5 in _local10) { _local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters); }; if (_local7.useFrames == true){ _local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams); } else { _local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams); }; _local15.properties = _local14; _local15.onStart = _local7.onStart; _local15.onUpdate = _local7.onUpdate; _local15.onComplete = _local7.onComplete; _local15.onOverwrite = _local7.onOverwrite; _local15.onError = _local7.onError; _local15.onStartParams = _local7.onStartParams; _local15.onUpdateParams = _local7.onUpdateParams; _local15.onCompleteParams = _local7.onCompleteParams; _local15.onOverwriteParams = _local7.onOverwriteParams; _local15.onStartScope = _local7.onStartScope; _local15.onUpdateScope = _local7.onUpdateScope; _local15.onCompleteScope = _local7.onCompleteScope; _local15.onOverwriteScope = _local7.onOverwriteScope; _local15.onErrorScope = _local7.onErrorScope; _local15.rounded = _local7.rounded; _local15.skipUpdates = _local7.skipUpdates; removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete); _tweenList.push(_local15); if ((((_local8 == 0)) && ((_local9 == 0)))){ _local16 = (_tweenList.length - 1); updateTweenByIndex(_local16); removeTweenByIndex(_local16); }; _local3++; }; return (true); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } public static function printError(_arg1:String):void{ trace(("## [Tweener] Error: " + _arg1)); } private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local5:uint; var _local6:Array; var _local7:uint; var _local8:uint; var _local9:uint; var _local4:Boolean; if (!Boolean(_tweenList)){ return (false); }; _local5 = 0; while (_local5 < _tweenList.length) { if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){ if (_arg3.length == 0){ _arg1(_local5); _local4 = true; } else { _local6 = new Array(); _local7 = 0; while (_local7 < _arg3.length) { if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){ _local6.push(_arg3[_local7]); }; _local7++; }; if (_local6.length > 0){ _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties); if (_local8 == _local6.length){ _arg1(_local5); _local4 = true; } else { _local9 = splitTweens(_local5, _local6); _arg1(_local9); _local4 = true; }; }; }; }; _local5++; }; return (_local4); } public static function getTweens(_arg1:Object):Array{ var _local2:uint; var _local3:String; if (!Boolean(_tweenList)){ return ([]); }; var _local4:Array = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ for (_local3 in _tweenList[_local2].properties) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } public static function isTweening(_arg1:Object):Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ return (true); }; _local2++; }; return (false); } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = getCurrentTweeningTime(_local2); _local2.isPaused = true; return (true); } public static function getCurrentTweeningTime(_arg1:Object):Number{ return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime); } public static function getTweenCount(_arg1:Object):Number{ var _local2:uint; if (!Boolean(_tweenList)){ return (0); }; var _local3:Number = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } private static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; _currentTimeFrame = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var removedLocally:Boolean; var i:uint; var pName:String; var eventScope:Object; var p_scope = _arg1; var p_properties = _arg2; var p_timeStart = _arg3; var p_timeComplete = _arg4; var removed:Boolean; var tl:uint = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; for (pName in _tweenList[i].properties) { if (Boolean(p_properties[pName])){ if (Boolean(_tweenList[i].onOverwrite)){ eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope; try { _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams); } catch(e:Error) { handleError(_tweenList[i], e, "onOverwrite"); }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{ if (!_inited){ init(); }; var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3); _specialPropertySplitterList[_arg1] = _local4; } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local3)); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local3)); } } }//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj) package caurina.transitions { public class TweenListObj { public var hasStarted:Boolean; public var onUpdate:Function; public var useFrames:Boolean; public var count:Number; public var onOverwriteParams:Array; public var timeStart:Number; public var timeComplete:Number; public var onStartParams:Array; public var onUpdateScope:Object; public var rounded:Boolean; public var onUpdateParams:Array; public var properties:Object; public var onComplete:Function; public var transitionParams:Object; public var updatesSkipped:Number; public var onStart:Function; public var onOverwriteScope:Object; public var skipUpdates:Number; public var onStartScope:Object; public var scope:Object; public var isCaller:Boolean; public var timePaused:Number; public var transition:Function; public var onCompleteParams:Array; public var onError:Function; public var timesCalled:Number; public var onErrorScope:Object; public var onOverwrite:Function; public var isPaused:Boolean; public var waitFrames:Boolean; public var onCompleteScope:Object; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; transitionParams = _arg6; properties = new Object(); isPaused = false; timePaused = undefined; isCaller = false; updatesSkipped = 0; timesCalled = 0; skipUpdates = 0; hasStarted = false; } public function clone(_arg1:Boolean):TweenListObj{ var _local3:String; var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams); _local2.properties = new Array(); for (_local3 in properties) { _local2.properties[_local3] = properties[_local3].clone(); }; _local2.skipUpdates = skipUpdates; _local2.updatesSkipped = updatesSkipped; if (!_arg1){ _local2.onStart = onStart; _local2.onUpdate = onUpdate; _local2.onComplete = onComplete; _local2.onOverwrite = onOverwrite; _local2.onError = onError; _local2.onStartParams = onStartParams; _local2.onUpdateParams = onUpdateParams; _local2.onCompleteParams = onCompleteParams; _local2.onOverwriteParams = onOverwriteParams; _local2.onStartScope = onStartScope; _local2.onUpdateScope = onUpdateScope; _local2.onCompleteScope = onCompleteScope; _local2.onOverwriteScope = onOverwriteScope; _local2.onErrorScope = onErrorScope; }; _local2.rounded = rounded; _local2.isPaused = isPaused; _local2.timePaused = timePaused; _local2.isCaller = isCaller; _local2.count = count; _local2.timesCalled = timesCalled; _local2.waitFrames = waitFrames; _local2.hasStarted = hasStarted; return (_local2); } public function toString():String{ var _local3:String; var _local1 = "\n[TweenListObj "; _local1 = (_local1 + ("scope:" + String(scope))); _local1 = (_local1 + ", properties:"); var _local2:Boolean; for (_local3 in properties) { if (!_local2){ _local1 = (_local1 + ","); }; _local1 = (_local1 + ("[name:" + properties[_local3].name)); _local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart)); _local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete)); _local1 = (_local1 + "]"); _local2 = false; }; _local1 = (_local1 + (", timeStart:" + String(timeStart))); _local1 = (_local1 + (", timeComplete:" + String(timeComplete))); _local1 = (_local1 + (", useFrames:" + String(useFrames))); _local1 = (_local1 + (", transition:" + String(transition))); _local1 = (_local1 + (", transitionParams:" + String(transitionParams))); if (skipUpdates){ _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates))); }; if (updatesSkipped){ _local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped))); }; if (Boolean(onStart)){ _local1 = (_local1 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local1 = (_local1 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local1 = (_local1 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite))); }; if (Boolean(onError)){ _local1 = (_local1 + (", onError:" + String(onError))); }; if (onStartParams){ _local1 = (_local1 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (onStartScope){ _local1 = (_local1 + (", onStartScope:" + String(onStartScope))); }; if (onUpdateScope){ _local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope))); }; if (onCompleteScope){ _local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope))); }; if (onOverwriteScope){ _local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope))); }; if (onErrorScope){ _local1 = (_local1 + (", onErrorScope:" + String(onErrorScope))); }; if (rounded){ _local1 = (_local1 + (", rounded:" + String(rounded))); }; if (isPaused){ _local1 = (_local1 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local1 = (_local1 + (", timePaused:" + String(timePaused))); }; if (isCaller){ _local1 = (_local1 + (", isCaller:" + String(isCaller))); }; if (count){ _local1 = (_local1 + (", count:" + String(count))); }; if (timesCalled){ _local1 = (_local1 + (", timesCalled:" + String(timesCalled))); }; if (waitFrames){ _local1 = (_local1 + (", waitFrames:" + String(waitFrames))); }; if (hasStarted){ _local1 = (_local1 + (", hasStarted:" + String(hasStarted))); }; _local1 = (_local1 + "]\n"); return (_local1); } public static function makePropertiesChain(_arg1:Object):Object{ var _local3:Object; var _local4:Object; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Number; var _local2:Object = _arg1.base; if (_local2){ _local3 = {}; if ((_local2 is Array)){ _local4 = []; _local8 = 0; while (_local8 < _local2.length) { _local4.push(_local2[_local8]); _local8++; }; } else { _local4 = [_local2]; }; _local4.push(_arg1); _local6 = _local4.length; _local7 = 0; while (_local7 < _local6) { if (_local4[_local7]["base"]){ _local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]); } else { _local5 = _local4[_local7]; }; _local3 = AuxFunctions.concatObjects(_local3, _local5); _local7++; }; if (_local3["base"]){ delete _local3["base"]; }; return (_local3); //unresolved jump }; return (_arg1); } } }//package caurina.transitions
Section 9
//genExternLinkable (com.conceptis.gen.external.genExternLinkable) package com.conceptis.gen.external { public interface genExternLinkable { function getSaveType():String; function openURL(_arg1:String, _arg2:String):void; function onFlashResize(_arg1:Number, _arg2:Number):void; function getPageSize():Object; function saveGame(_arg1:XML, _arg2:Function):void; function onGameComplete(_arg1:Number, _arg2:Number):void; function notifyPageResize(_arg1:Object, _arg2:Function):void; function broadcastMessage(_arg1:String, ... _args):void; function registerBroadcast(_arg1:Object):void; function isAvailable():Boolean; } }//package com.conceptis.gen.external
Section 10
//genExternSaveType (com.conceptis.gen.external.genExternSaveType) package com.conceptis.gen.external { public class genExternSaveType { public static const REMOTE:String = "remote"; public static const NONE:String = "none"; public static const LOCAL:String = "local"; } }//package com.conceptis.gen.external
Section 11
//genExternUrlTarget (com.conceptis.gen.external.genExternUrlTarget) package com.conceptis.gen.external { public final class genExternUrlTarget { public static const NEW:String = "_new"; public static const SELF:String = "_self"; public static const DIALOG:String = "_dialog"; public static const PARENT:String = "_parent"; public static const POPUP:String = "_popup"; public static const BLANK:String = "_blank"; public static const TOP:String = "_top"; } }//package com.conceptis.gen.external
Section 12
//genLightInitializer (com.conceptis.gen.loader.light.genLightInitializer) package com.conceptis.gen.loader.light { import flash.events.*; import flash.display.*; import org.flashdevelop.utils.*; import flash.net.*; public class genLightInitializer extends MovieClip { private var poConfig:XML; public var pnTotalSteps:int; private var sUsername:String; public var pnStepsLoaded:int; private var oKnownUsers:Object; public function genLightInitializer(){ visible = false; addEventListener(Event.ADDED_TO_STAGE, addedToStage); } private function formatPuzzleName(_arg1:String, _arg2:XML, _arg3:XML):String{ var loCode:XML; var loProperties:XMLList; var loFamilyNode:XML; var lsName:String; var isFormat = _arg1; var ioCaf = _arg2; var ioConfig = _arg3; loCode = XML(ioCaf..header.code); loProperties = ioCaf..header.properties.children(); loFamilyNode = XML(ioConfig.family.(genealogy.@code == loCode.@family)); lsName = isFormat; lsName = lsName.replace(new RegExp("\\[family\\]", "g"), loFamilyNode.genealogy.@name); lsName = lsName.replace(new RegExp("\\[variant\\]", "g"), loFamilyNode.variant.genealogy.(@code == loCode.@variant).@name); lsName = lsName.replace(new RegExp("\\[model\\]", "g"), loCode.@model); lsName = lsName.replace(new RegExp("\\[name\\]", "g"), loProperties.(@name == "name").text()); lsName = lsName.replace(new RegExp("\\[width\\]", "g"), loProperties.(@name == "width").@value); lsName = lsName.replace(new RegExp("\\[height\\]", "g"), loProperties.(@name == "height").@value); lsName = lsName.replace(new RegExp("\\[difficulty\\]", "g"), loProperties.(@name == "difficulty").@value); lsName = lsName.replace(new RegExp("\\[difficulty-name\\]", "g"), genLightParams.DIFFICULTIES[int(loProperties.(@name == "difficulty").@value)]); return (lsName); } private function addedToStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, addedToStage); addEventListener(Event.ENTER_FRAME, initializeStep); pnStepsLoaded = 0; pnTotalSteps = (genLightParams.GROUPS.length * 10); poConfig = XML(new genLightParams.poConfig()); sUsername = ((root["poKongregate"])!=null) ? root["poKongregate"].services.getUsername() : ""; if (sUsername == "Guest"){ sUsername = ""; }; FlashConnect.trace(("sUsername : " + sUsername)); loadKnownUsers(); } private function saveKnownUsers():void{ var loCookie:SharedObject; var loResult:Function = function (_arg1:Event):void{ loCookie = null; }; try { loCookie = SharedObject.getLocal("kongregate", "/"); loCookie.data["users"] = oKnownUsers; if (loCookie.flush(loCookie.size) == SharedObjectFlushStatus.PENDING){ loCookie.addEventListener(NetStatusEvent.NET_STATUS, loResult, false, 0, true); } else { loResult(new Event(Event.COMPLETE)); }; } catch(err:Error) { loResult(new ErrorEvent(ErrorEvent.ERROR)); }; } private function renameCookie(_arg1:String, _arg2:String):void{ var loCookie:SharedObject; var loNewCookie:SharedObject; var i:String; var isName = _arg1; var isNewName = _arg2; var loResult:Function = function (_arg1:Event):void{ var _local2:Boolean = (((_arg1.type == Event.COMPLETE)) || ((((_arg1.type == NetStatusEvent.NET_STATUS)) && (!((NetStatusEvent(_arg1).info.level == "error")))))); if (loCookie != null){ loCookie.clear(); }; loCookie = null; loNewCookie = null; }; try { loCookie = SharedObject.getLocal(isName, "/"); loNewCookie = SharedObject.getLocal(isNewName, "/"); for (i in loCookie.data) { loNewCookie.data[i] = loCookie.data[i]; }; if (loNewCookie.flush(loNewCookie.size) == SharedObjectFlushStatus.PENDING){ loNewCookie.addEventListener(NetStatusEvent.NET_STATUS, loResult, false, 0, true); } else { loResult(new Event(Event.COMPLETE)); }; } catch(err:Error) { loResult(new ErrorEvent(ErrorEvent.ERROR)); }; } private function initializeStep(_arg1:Event):void{ var _local5:String; var _local6:String; var _local7:String; var _local8:XML; if (pnStepsLoaded == pnTotalSteps){ removeEventListener(Event.ENTER_FRAME, initializeStep); if (sUsername != ""){ oKnownUsers[sUsername] = true; saveKnownUsers(); }; return; }; var _local2:int = Math.floor((pnStepsLoaded / 10)); var _local3:int = (pnStepsLoaded % 10); var _local4:XML = getPuzzleCaf(_local2, _local3); if (_local4 != null){ _local5 = formatPuzzleId(genLightParams.psSavePrefix, _local4); _local6 = getPuzzleNameTemplate(_local2, _local3); _local7 = formatPuzzleName(_local6, _local4, poConfig); _local8 = null; if (sUsername != ""){ _local8 = getGameFromCookie(((sUsername + "-") + _local5)); }; if ((((_local8 == null)) && (!(Boolean(oKnownUsers[sUsername]))))){ _local8 = getGameFromCookie(_local5); }; genLightParams.GROUPS[_local2][_local3] = new genLightPuzzleData(_local5, _local7, _local4, _local8); if (((!((sUsername == ""))) && (!(Boolean(oKnownUsers[sUsername]))))){ renameCookie(_local5, ((sUsername + "-") + _local5)); }; pnStepsLoaded++; } else { pnStepsLoaded = ((_local2 + 1) * 10); }; } private function formatPuzzleId(_arg1:String, _arg2:XML):String{ var _local3:XML = _arg2.header[0]; return ((((_arg1 + String(_local3.code.@family)) + String(_local3.code.@variant)) + String(_local3.serialNumber[0]))); } protected function getGameFromCookie(_arg1:String):XML{ var loCookie:SharedObject; var isId = _arg1; FlashConnect.trace(("getGameFromCookie > isId : " + isId)); var loGameXML:XML; try { loCookie = SharedObject.getLocal(isId, "/"); loGameXML = loCookie.data["save"]; loCookie = null; } catch(e:Error) { FlashConnect.trace(("getGameFromCookie error : " + e)); loCookie = null; }; return (loGameXML); } private function getPuzzleNameTemplate(_arg1:int, _arg2:int):String{ var _local3:String = genLightParams[(("psNameTemplate" + _arg1.toString()) + _arg2.toString())]; return (((_local3 == null)) ? genLightParams.psNameTemplate : _local3); } private function loadKnownUsers():void{ var loCookie:SharedObject; oKnownUsers = new Object(); try { loCookie = SharedObject.getLocal("kongregate", "/"); if (loCookie.data.hasOwnProperty("users")){ oKnownUsers = loCookie.data["users"]; }; loCookie = null; } catch(e:Error) { loCookie = null; }; } private function getPuzzleCaf(_arg1:int, _arg2:int):XML{ var _local3:Class = genLightParams[(("poPuzzle" + _arg1.toString()) + _arg2.toString())]; return (((_local3 == null)) ? null : XML(new (_local3))); } } }//package com.conceptis.gen.loader.light
Section 13
//genLightLoader (com.conceptis.gen.loader.light.genLightLoader) package com.conceptis.gen.loader.light { import flash.events.*; import flash.display.*; import flash.net.*; import com.conceptis.res.loader.light.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.media.*; import flash.text.*; import com.conceptis.gen.external.*; import com.conceptis.gen.loader.*; import com.conceptis.res.loader.*; import flash.ui.*; import caurina.transitions.*; import org.flashdevelop.utils.*; public class genLightLoader extends genLoader implements genExternLinkable { private var oHowToDlg:HowToDialog; private var nTweenTime:Number; private var LightFontClass:Class; private var oNewGameDlg:NewGameDialog; private var oCurrentLine:NewGameLine; private var oAboutDlg:AboutDialog; private var oKongregate; private var oDialogSound:ShowDialogSound; private var oContentLoader:Loader; private var oDashBoard:Dashboard; private var oSaveDlg:SaveDialog; private var oModalBg:ModalButton; private var oCurrentPuzzle:genLightPuzzleData; private var oLineStatusX1:Number; private var oLineStatusX2:Number; private var oRulesDlg:RulesDialog; private static const DLG_X:int = 275; private static const DLG_Y:int = 230; public function genLightLoader(){ LightFontClass = genLightLoader_LightFontClass; super(); } private function formatSaveTime(_arg1:int):String{ var _local2:int = (_arg1 % 60); var _local3:int = (int((_arg1 / 60)) % 60); var _local4:int = int((_arg1 / 3600)); var _local5:String = (((((((((_local4 < 10)) ? "0" : "" + _local4.toString()) + ":") + ((_local3 < 10)) ? "0" : "") + _local3.toString()) + ":") + ((_local2 < 10)) ? "0" : "") + _local2.toString()); return (_local5); } private function initAboutDialog():void{ oAboutDlg = new AboutDialog(); oAboutDlg._closeButton.addEventListener(MouseEvent.CLICK, onAboutCloseClick); if (((loaderInfo.parameters.hasOwnProperty("hidelogos")) && ((loaderInfo.parameters["hidelogos"] == 1)))){ oAboutDlg._moreButton.enabled = false; oAboutDlg._moreStatic.visible = true; oAboutDlg._moreStatic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF); } else { if (genLightParams.psAboutMoreLink == ""){ oAboutDlg._moreButton.enabled = false; oAboutDlg._moreStatic.visible = true; } else { oAboutDlg._moreButton.addEventListener(MouseEvent.CLICK, onAboutMoreClick); oAboutDlg._moreStatic.visible = false; }; }; oAboutDlg.x = DLG_X; oAboutDlg.y = DLG_Y; } private function onMorePuzzlesClick(_arg1:MouseEvent):void{ openURL(genLightParams.psMorePuzzlesLink, genExternUrlTarget.BLANK); } private function onLogoClick(_arg1:MouseEvent):void{ openURL(genLightParams.psLogoLink, genExternUrlTarget.BLANK); } private function onSaveDlgClosed(_arg1:MovieClip):void{ openDialog(oNewGameDlg); } override protected function init(_arg1:Event=null):void{ var _local2:ContextMenuItem; super.init(_arg1); for each (_local2 in contextMenu.customItems) { _local2.enabled = false; }; oKongregate = root["poKongregate"]; setTimeout(sendStatisticsToKongregate, 200); oDashBoard = new Dashboard(); oDashBoard._newButton.addEventListener(MouseEvent.CLICK, onNewGameClick); oDashBoard._rulesButton.addEventListener(MouseEvent.CLICK, onRulesClick); oDashBoard._howtoButton.addEventListener(MouseEvent.CLICK, onHowToClick); oDashBoard._aboutButton.addEventListener(MouseEvent.CLICK, onAboutClick); if (((loaderInfo.parameters.hasOwnProperty("hidelogos")) && ((loaderInfo.parameters["hidelogos"] == 1)))){ oDashBoard._logoButton.visible = false; oDashBoard._moreButton.visible = false; } else { if (genLightParams.psLogoLink == ""){ oDashBoard._logoButton.visible = false; } else { oDashBoard._logoButton.addEventListener(MouseEvent.CLICK, onLogoClick); }; if (genLightParams.psMorePuzzlesLink == ""){ oDashBoard._moreButton.visible = false; } else { oDashBoard._moreButton.addEventListener(MouseEvent.CLICK, onMorePuzzlesClick); }; }; oDashBoard.backBoard.addChild(new OpenScreen()); addChild(oDashBoard); oModalBg = new ModalButton(); oModalBg.useHandCursor = false; oDialogSound = new ShowDialogSound(); initVars(); initNewGameDialog(); loadLibraries(); } private function disableEvent(_arg1:KeyboardEvent):void{ _arg1.stopImmediatePropagation(); } private function setFocus():void{ if (((!((oContentLoader == null))) && (!((oContentLoader.content == null))))){ stage.focus = (oContentLoader.content as InteractiveObject); }; } private function onRulesClick(_arg1:MouseEvent):void{ if (oRulesDlg == null){ initRulesDialog(); }; openDialog(oRulesDlg); } private function onLoadLibrariesFailed(_arg1:ErrorEvent):void{ showErrorMessage("Libraries Load failed", _arg1.text); } private function onNewPuzzleSelected(_arg1:MouseEvent):void{ closeDialog(oNewGameDlg, loadNewGame); oCurrentLine = (_arg1.currentTarget as NewGameLine); oCurrentPuzzle = oCurrentLine._data; } override protected function saveGameToCookie(_arg1:XML, _arg2:Function):void{ var ioSave = _arg1; var ioResultFunction = _arg2; var loResultFunction:Function = function (_arg1:Boolean, _arg2:String):void{ oCurrentPuzzle.poSave = ioSave; if (oCurrentPuzzle.pbSolved){ oCurrentLine._status.text = ((oCurrentPuzzle.pnSaveTime == 0)) ? "Solved" : (("Solved (" + formatSaveTime(oCurrentPuzzle.pnSaveTime)) + ")"); } else { oCurrentLine._status.text = (oCurrentPuzzle.pbSaved) ? "Saved" : "New"; }; var _local3:int = parseInt(oCurrentLine.parent.name.charAt((oCurrentLine.parent.name.length - 1))); alignTabText(_local3); sendStatisticsToKongregate(); ioResultFunction(_arg1, _arg2); }; super.saveGameToCookie(ioSave, loResultFunction); } private function onSaveCancel(_arg1:MouseEvent):void{ closeDialog(oSaveDlg); } private function onHowToClick(_arg1:MouseEvent):void{ if (oHowToDlg == null){ initHowToDialog(); }; openDialog(oHowToDlg); } private function onSaveAccept(_arg1:MouseEvent):void{ oSaveDlg.gotoAndStop(2); var _local2 = oContentLoader.content; _local2["saveXML"](onSaveResult); } private function initRulesDialog():void{ oRulesDlg = new RulesDialog(); oRulesDlg._closeButton.addEventListener(MouseEvent.CLICK, onRulesCloseClick); oRulesDlg.x = DLG_X; oRulesDlg.y = DLG_Y; } override public function onFlashResize(_arg1:Number, _arg2:Number):void{ } private function alignTabText(_arg1:int):void{ var _local5:genLightPuzzleData; var _local6:String; var _local7:NewGameLine; var _local2:String = ("_tabPuzzles" + _arg1.toString()); var _local3:MovieClip = oNewGameDlg[_local2]; var _local4:Boolean; var _local8:int; while (_local8 < genLightParams.GROUPS[_arg1].length) { _local5 = genLightParams.GROUPS[_arg1][_local8]; if (((_local5.pbSolved) && ((_local5.pnSaveTime > 0)))){ _local4 = true; break; }; _local8++; }; _local8 = 0; while (_local8 < genLightParams.GROUPS[_arg1].length) { _local6 = ("_line" + _local8.toString()); _local7 = _local3[_local6]; _local7._status.x = (_local4) ? oLineStatusX2 : oLineStatusX1; _local8++; }; } private function onLoadContentComplete(_arg1:Event):void{ var i:*; var loCookie:SharedObject; var loItem:ContextMenuItem; var e = _arg1; var loContent:DisplayObject = oContentLoader.content; var loParameters:Object = new Object(); for (i in loaderInfo.parameters) { loParameters[i] = loaderInfo.parameters[i]; }; loParameters.poCafXml = oCurrentPuzzle.poCaf; loParameters.poConfigXml = XML(new genLightParams.poConfig()); oCurrentPuzzle.poSave = getGameFromCookie(); loParameters.poGameXml = oCurrentPuzzle.poSave; loParameters.poExternal = this; loParameters.poRefDisplayObject = oDashBoard.backBoard; loParameters.enablescroll = false; loParameters.suggestsize = "none"; loParameters.saveurl = "cookie"; loParameters.enabledragbar = false; loParameters.enablezoom = false; loParameters.enablehistory = true; loParameters.enablereset = true; loParameters.enablecheck = true; loParameters.enablethumbnail = false; loParameters.enableprogress = false; loParameters.enablesolve = true; loParameters.enableprefs = false; loParameters.enableinfo = false; loParameters.enablehelp = false; loParameters.enablesound = false; loParameters.enableprint = false; loParameters.enablesave = true; loParameters.nopoweredby = true; loParameters.simplesavedlg = true; loParameters.enablemagictable = false; loParameters.enableclearmarks = false; loParameters.enablemarks = false; loParameters.enablecompact = false; loParameters.enablesmartfill = false; loCookie = SharedObject.getLocal("preferences"); loCookie.data.showSums = false; try { loCookie.flush(loCookie.size); } catch(err:Error) { }; while (oDashBoard.backBoard.numChildren > 1) { oDashBoard.backBoard.removeChildAt(1); }; run(loContent, loParameters); SoundMixer.soundTransform = new SoundTransform(0); setFocus(); for each (loItem in contextMenu.customItems) { loItem.enabled = true; }; } private function sendStatisticsToKongregate():void{ var _local1:genLightPuzzleData; var _local2:Boolean; var _local3:String; var _local4:int; var _local7:int; if ((((oKongregate == null)) || ((oKongregate.services == null)))){ return; }; var _local5:Array = new Array(); var _local6:int; while (_local6 < genLightParams.GROUPS.length) { _local2 = true; _local4 = 0; _local7 = 0; while (((_local2) && ((_local7 < genLightParams.GROUPS[_local6].length)))) { _local1 = genLightParams.GROUPS[_local6][_local7]; _local2 = ((((_local2) && (_local1.pbSolved))) && ((_local1.pnSaveTime > 0))); _local4 = (_local4 + _local1.pnSaveTime); _local7++; }; if (_local2){ _local3 = (("Level " + (_local6 + 1).toString()) + " Completed"); _local5.push({name:_local3, value:_local4}); }; _local6++; }; if (_local5.length > 0){ oKongregate.stats.submitArray(_local5); }; } private function onLoadContentFailed(_arg1:ErrorEvent):void{ var _local2:ContextMenuItem; showErrorMessage("Content Load failed", _arg1.text); for each (_local2 in contextMenu.customItems) { _local2.enabled = false; }; } private function openDialog(_arg1:MovieClip):void{ var ioDlg = _arg1; var loComplete:Function = function ():void{ addChild(ioDlg); ioDlg.alpha = 1; }; ioDlg.scaleX = 1; ioDlg.scaleY = 1; ioDlg.alpha = 0.8; stage.addEventListener(KeyboardEvent.KEY_DOWN, disableEvent, false, 999); stage.addEventListener(KeyboardEvent.KEY_UP, disableEvent, false, 999); addChild(ioDlg); addChild(oModalBg); var lnScale:Number = ioDlg.scaleX; nTweenTime = (Math.sqrt(((ioDlg.width * ioDlg.width) + (ioDlg.height * ioDlg.height))) / 1000); ioDlg.scaleX = 0.2; ioDlg.scaleY = 0.2; var loParams:Object = {scaleX:lnScale, scaleY:lnScale, time:nTweenTime, onComplete:loComplete, transition:"linear"}; Tweener.addTween(ioDlg, loParams); } override protected function onVersionSelected(_arg1:ContextMenuEvent):void{ var _local2:String; if (((!((oContentLoader == null))) && ((oContentLoader.content is DisplayObject)))){ FlashConnect.trace(oContentLoader.content); FlashConnect.trace(oContentLoader.content["version"]); _local2 = ""; _local2 = "Loader: v"; _local2 = (_local2 + (parseVersion(this) + "\n")); _local2 = (_local2 + "Applet: v"); _local2 = (_local2 + (parseVersion((oContentLoader.content as DisplayObject)) + "\n")); showAboutBox(_local2); }; } override public function getPageSize():Object{ return ({width:oDashBoard.backBoard.width, height:oDashBoard.backBoard.height}); } private function onSaveResult(_arg1:Boolean, _arg2:String):void{ oSaveDlg.gotoAndStop(1); if (_arg1){ closeDialog(oSaveDlg, onSaveDlgClosed); }; } private function onAboutClick(_arg1:MouseEvent):void{ if (oAboutDlg == null){ initAboutDialog(); }; openDialog(oAboutDlg); } private function onNewGameDialogClose(_arg1:MouseEvent):void{ closeDialog(oNewGameDlg); } override public function onGameComplete(_arg1:Number, _arg2:Number):void{ } override public function notifyPageResize(_arg1:Object, _arg2:Function):void{ } override public function getSaveType():String{ return (genExternSaveType.LOCAL); } private function onDialogClosed(_arg1:MovieClip):void{ _arg1.gotoAndStop(1); } private function initSaveDialog():void{ oSaveDlg = new SaveDialog(); oSaveDlg._yesButton.addEventListener(MouseEvent.CLICK, onSaveAccept); oSaveDlg._noButton.addEventListener(MouseEvent.CLICK, onSaveIgnore); oSaveDlg._closeButton.addEventListener(MouseEvent.CLICK, onSaveCancel); oSaveDlg.x = DLG_X; oSaveDlg.y = DLG_Y; } private function loadLibraries():void{ var _local1:Loader = new Loader(); _local1.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onLoadLibrariesFailed); _local1.loadBytes(new genLightParams.poResources(), new LoaderContext(false, ApplicationDomain.currentDomain)); } private function onHowToCloseClick(_arg1:MouseEvent):void{ closeDialog(oHowToDlg, onDialogClosed); } private function getTab(_arg1:int):MovieClip{ var _local2:String = ("_tabPuzzles" + _arg1.toString()); return (oNewGameDlg[_local2]); } private function closeDialog(_arg1:MovieClip, _arg2:Function=null):void{ var ioDlg = _arg1; var ioNotifyFunction = _arg2; var loComplete:Function = function ():void{ removeChild(ioDlg); removeChild(oModalBg); if (ioNotifyFunction != null){ setTimeout(ioNotifyFunction, 1, ioDlg); }; }; ioDlg.alpha = 0.8; Tweener.removeTweens(ioDlg, "scaleX", "scaleY"); var loParams:Object = {scaleX:0.2, scaleY:0.2, time:nTweenTime, onComplete:loComplete, transition:"linear"}; Tweener.addTween(ioDlg, loParams); stage.removeEventListener(KeyboardEvent.KEY_DOWN, disableEvent, false); stage.removeEventListener(KeyboardEvent.KEY_UP, disableEvent, false); setFocus(); } private function onAboutMoreClick(_arg1:MouseEvent):void{ openURL(genLightParams.psAboutMoreLink, genExternUrlTarget.BLANK); } private function onRulesCloseClick(_arg1:MouseEvent):void{ closeDialog(oRulesDlg, onDialogClosed); } private function initHowToDialog():void{ oHowToDlg = new HowToDialog(); oHowToDlg._closeButton.addEventListener(MouseEvent.CLICK, onHowToCloseClick); oHowToDlg.x = DLG_X; oHowToDlg.y = DLG_Y; } private function loadNewGame(_arg1:MovieClip):void{ loadContent(); } private function initNewGameDialog():void{ var _local1:String; var _local2:String; var _local3:MovieClip; var _local4:NewGameLine; var _local5:genLightPuzzleData; var _local6:TextFormat; var _local7:Boolean; var _local9:int; oNewGameDlg = new NewGameDialog(); oNewGameDlg._closeButton.addEventListener(MouseEvent.CLICK, onNewGameDialogClose); oNewGameDlg.x = DLG_X; oNewGameDlg.y = DLG_Y; var _local8:int; while (_local8 < genLightParams.GROUPS.length) { _local1 = ("_tabPuzzles" + _local8.toString()); _local3 = oNewGameDlg[_local1]; _local7 = false; _local9 = 0; while (_local9 < genLightParams.GROUPS[_local8].length) { _local5 = genLightParams.GROUPS[_local8][_local9]; _local2 = ("_line" + _local9.toString()); _local4 = _local3[_local2]; oLineStatusX1 = _local4._status.x; oLineStatusX2 = (_local4._status.x - 65); _local4._number.embedFonts = true; _local4._number.antiAliasType = AntiAliasType.ADVANCED; _local6 = _local4._number.defaultTextFormat; _local6.font = "lightLoaderFont"; _local4._number.defaultTextFormat = _local6; _local4._number.text = ((_local9 + 1).toString() + "."); _local4._name.embedFonts = true; _local4._name.antiAliasType = AntiAliasType.ADVANCED; _local6 = _local4._name.defaultTextFormat; _local6.font = "lightLoaderFont"; _local4._name.defaultTextFormat = _local6; _local4._name.text = _local5.psName; _local4._status.embedFonts = true; _local4._status.antiAliasType = AntiAliasType.ADVANCED; _local6 = _local4._status.defaultTextFormat; _local6.font = "lightLoaderFont"; _local4._status.defaultTextFormat = _local6; _local4._status.text = (_local5.pbSolved) ? "Solved" : (_local5.pbSaved) ? "Saved" : "New"; if (((_local5.pbSolved) && ((_local5.pnSaveTime > 0)))){ _local7 = true; _local4._status.text = (_local4._status.text + ((" (" + formatSaveTime(_local5.pnSaveTime)) + ")")); }; _local4._data = _local5; _local4.addEventListener(MouseEvent.CLICK, onNewPuzzleSelected); _local9++; }; while (_local9 < 10) { _local2 = ("_line" + _local9.toString()); _local4 = _local3[_local2]; _local4.visible = false; _local9++; }; alignTabText(_local8); _local8++; }; } private function getTabLine(_arg1:int, _arg2:int):NewGameLine{ var _local3:MovieClip = getTab(_arg1); var _local4:String = ("_line" + _arg2.toString()); return (_local3[_local4]); } private function initVars():void{ psSaveGame = SAVE_IN_COOKIE; psLoadGame = SAVE_IN_COOKIE; } private function loadContent():void{ if ((((((oKongregate == null)) || ((oKongregate.services == null)))) || (oKongregate.services.isGuest()))){ sContentID = oCurrentPuzzle.psId; } else { sContentID = ((oKongregate.services.getUsername() + "-") + oCurrentPuzzle.psId); }; oContentLoader = new Loader(); oContentLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onLoadContentFailed, false, 0, true); oContentLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadContentComplete, false, 0, true); oContentLoader.loadBytes(new genLightParams.poPlayer(), new LoaderContext(false, ApplicationDomain.currentDomain)); } private function onNewGameClick(_arg1:MouseEvent):void{ if (oNewGameDlg == null){ initNewGameDialog(); }; if (((!((oContentLoader == null))) && (oContentLoader.content["pbNeedSave"]))){ if (oSaveDlg == null){ initSaveDialog(); }; openDialog(oSaveDlg); } else { openDialog(oNewGameDlg); }; } private function onSaveIgnore(_arg1:MouseEvent):void{ closeDialog(oSaveDlg, onSaveDlgClosed); } private function onAboutCloseClick(_arg1:MouseEvent):void{ closeDialog(oAboutDlg); } } }//package com.conceptis.gen.loader.light
Section 14
//genLightLoader_LightFontClass (com.conceptis.gen.loader.light.genLightLoader_LightFontClass) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightLoader_LightFontClass extends FontAsset { } }//package com.conceptis.gen.loader.light
Section 15
//genLightParams (com.conceptis.gen.loader.light.genLightParams) package com.conceptis.gen.loader.light { import com.conceptis.gen.loader.light.*; final class genLightParams { public static const poPuzzle15:Class = genLightParams_poPuzzle15; public static const poPuzzle14:Class = genLightParams_poPuzzle14; public static const poPuzzle16:Class = genLightParams_poPuzzle16; public static const poPuzzle17:Class = genLightParams_poPuzzle17; public static const poPuzzle18:Class = genLightParams_poPuzzle18; public static const poPuzzle19:Class = genLightParams_poPuzzle19; public static const DIFFICULTIES:Array = ["", "level 0", "level 1", "level 2", "level 3", "level 4", "level 5", "level 6"]; public static const poPuzzle20:Class = genLightParams_poPuzzle20; public static const poPuzzle21:Class = genLightParams_poPuzzle21; public static const poPuzzle22:Class = genLightParams_poPuzzle22; public static const poPuzzle23:Class = genLightParams_poPuzzle23; public static const poPuzzle24:Class = genLightParams_poPuzzle24; public static const poPuzzle25:Class = genLightParams_poPuzzle25; public static const poConfig:Class = genLightParams_poConfig; public static const poPuzzle28:Class = genLightParams_poPuzzle28; public static const poPuzzle27:Class = genLightParams_poPuzzle27; public static const poPuzzle29:Class = genLightParams_poPuzzle29; public static const poPuzzle26:Class = genLightParams_poPuzzle26; public static const poPlayer:Class = genLightParams_poPlayer; public static const psNameTemplate:String = "[family] [height]x[width]"; public static const psSavePrefix:String = ""; public static const GROUPS:Array = [[], [], []]; public static const psAboutMoreLink:String = "http://www.conceptispuzzles.com/index.aspx?src=hashilight&vol=2&ver=web"; public static const poPuzzle00:Class = genLightParams_poPuzzle00; public static const poPuzzle01:Class = genLightParams_poPuzzle01; public static const poPuzzle02:Class = genLightParams_poPuzzle02; public static const poPuzzle03:Class = genLightParams_poPuzzle03; public static const poPuzzle04:Class = genLightParams_poPuzzle04; public static const poPuzzle05:Class = genLightParams_poPuzzle05; public static const poPuzzle06:Class = genLightParams_poPuzzle06; public static const poPuzzle07:Class = genLightParams_poPuzzle07; public static const poPuzzle08:Class = genLightParams_poPuzzle08; public static const poResources:Class = genLightParams_poResources; public static const psLogoLink:String = "http://www.conceptispuzzles.com/index.aspx?src=hashilight&vol=2&ver=web"; public static const poPuzzle09:Class = genLightParams_poPuzzle09; public static const psMorePuzzlesLink:String = "http://www.conceptispuzzles.com/index.aspx?uri=puzzle/hashi&src=hashilight&vol=2&ver=web"; public static const poPuzzle10:Class = genLightParams_poPuzzle10; public static const poPuzzle11:Class = genLightParams_poPuzzle11; public static const poPuzzle12:Class = genLightParams_poPuzzle12; public static const poPuzzle13:Class = genLightParams_poPuzzle13; } }//package com.conceptis.gen.loader.light
Section 16
//genLightParams_poConfig (com.conceptis.gen.loader.light.genLightParams_poConfig) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poConfig extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 17
//genLightParams_poPlayer (com.conceptis.gen.loader.light.genLightParams_poPlayer) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPlayer extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 18
//genLightParams_poPuzzle00 (com.conceptis.gen.loader.light.genLightParams_poPuzzle00) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle00 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 19
//genLightParams_poPuzzle01 (com.conceptis.gen.loader.light.genLightParams_poPuzzle01) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle01 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 20
//genLightParams_poPuzzle02 (com.conceptis.gen.loader.light.genLightParams_poPuzzle02) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle02 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 21
//genLightParams_poPuzzle03 (com.conceptis.gen.loader.light.genLightParams_poPuzzle03) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle03 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 22
//genLightParams_poPuzzle04 (com.conceptis.gen.loader.light.genLightParams_poPuzzle04) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle04 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 23
//genLightParams_poPuzzle05 (com.conceptis.gen.loader.light.genLightParams_poPuzzle05) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle05 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 24
//genLightParams_poPuzzle06 (com.conceptis.gen.loader.light.genLightParams_poPuzzle06) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle06 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 25
//genLightParams_poPuzzle07 (com.conceptis.gen.loader.light.genLightParams_poPuzzle07) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle07 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 26
//genLightParams_poPuzzle08 (com.conceptis.gen.loader.light.genLightParams_poPuzzle08) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle08 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 27
//genLightParams_poPuzzle09 (com.conceptis.gen.loader.light.genLightParams_poPuzzle09) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle09 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 28
//genLightParams_poPuzzle10 (com.conceptis.gen.loader.light.genLightParams_poPuzzle10) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle10 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 29
//genLightParams_poPuzzle11 (com.conceptis.gen.loader.light.genLightParams_poPuzzle11) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle11 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 30
//genLightParams_poPuzzle12 (com.conceptis.gen.loader.light.genLightParams_poPuzzle12) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle12 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 31
//genLightParams_poPuzzle13 (com.conceptis.gen.loader.light.genLightParams_poPuzzle13) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle13 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 32
//genLightParams_poPuzzle14 (com.conceptis.gen.loader.light.genLightParams_poPuzzle14) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle14 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 33
//genLightParams_poPuzzle15 (com.conceptis.gen.loader.light.genLightParams_poPuzzle15) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle15 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 34
//genLightParams_poPuzzle16 (com.conceptis.gen.loader.light.genLightParams_poPuzzle16) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle16 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 35
//genLightParams_poPuzzle17 (com.conceptis.gen.loader.light.genLightParams_poPuzzle17) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle17 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 36
//genLightParams_poPuzzle18 (com.conceptis.gen.loader.light.genLightParams_poPuzzle18) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle18 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 37
//genLightParams_poPuzzle19 (com.conceptis.gen.loader.light.genLightParams_poPuzzle19) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle19 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 38
//genLightParams_poPuzzle20 (com.conceptis.gen.loader.light.genLightParams_poPuzzle20) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle20 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 39
//genLightParams_poPuzzle21 (com.conceptis.gen.loader.light.genLightParams_poPuzzle21) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle21 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 40
//genLightParams_poPuzzle22 (com.conceptis.gen.loader.light.genLightParams_poPuzzle22) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle22 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 41
//genLightParams_poPuzzle23 (com.conceptis.gen.loader.light.genLightParams_poPuzzle23) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle23 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 42
//genLightParams_poPuzzle24 (com.conceptis.gen.loader.light.genLightParams_poPuzzle24) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle24 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 43
//genLightParams_poPuzzle25 (com.conceptis.gen.loader.light.genLightParams_poPuzzle25) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle25 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 44
//genLightParams_poPuzzle26 (com.conceptis.gen.loader.light.genLightParams_poPuzzle26) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle26 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 45
//genLightParams_poPuzzle27 (com.conceptis.gen.loader.light.genLightParams_poPuzzle27) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle27 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 46
//genLightParams_poPuzzle28 (com.conceptis.gen.loader.light.genLightParams_poPuzzle28) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle28 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 47
//genLightParams_poPuzzle29 (com.conceptis.gen.loader.light.genLightParams_poPuzzle29) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poPuzzle29 extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 48
//genLightParams_poResources (com.conceptis.gen.loader.light.genLightParams_poResources) package com.conceptis.gen.loader.light { import mx.core.*; public class genLightParams_poResources extends ByteArrayAsset { } }//package com.conceptis.gen.loader.light
Section 49
//genLightPreloader (com.conceptis.gen.loader.light.genLightPreloader) package com.conceptis.gen.loader.light { import flash.display.*; import flash.events.*; import caurina.transitions.*; import com.conceptis.res.loader.light.*; import org.flashdevelop.utils.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class genLightPreloader extends MovieClip { private var nInitPercent:Number; private var oDisplay:Preloader; private var nLoadPercent:Number; private var oInitializer:MovieClip; private var oKongregateLoader:Loader; private static const FULL_INIT:Number = 0.2; private static const FULL_LOAD:Number = 0.8; public function genLightPreloader(){ stop(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var _local1:Class = (genLightParams["poBrandImage"] as Class); if (_local1 != null){ startBrandImage(_local1); } else { startPreLoader(); }; } private function onLoadKongregateComplete(_arg1:Event):void{ FlashConnect.trace(("onLoadKongregateComplete > e : " + _arg1)); initializeKongregate(); } public function get poKongregate(){ if ((((((((oKongregateLoader == null)) || ((oKongregateLoader.loaderInfo.bytesLoaded < oKongregateLoader.loaderInfo.bytesTotal)))) || ((oKongregateLoader.content == null)))) || ((oKongregateLoader.content["services"] == null)))){ return (null); }; return (oKongregateLoader.content); } private function checkProgress(_arg1:Event):void{ var _local2:MovieClip = oDisplay.progressPen.slider; if (_local2.currentFrame < (_local2.totalFrames * (nLoadPercent + nInitPercent))){ _local2.play(); } else { _local2.stop(); }; if (_local2.currentFrame == _local2.totalFrames){ _local2.removeEventListener(Event.ENTER_FRAME, checkProgress); startup(); }; } private function stopBrandImage(_arg1:Bitmap):void{ startPreLoader(); addChildAt(oDisplay, 0); var _local2:Object = {alpha:0.1, time:0.5, onComplete:removeChild, onCompleteParams:[_arg1], transition:"linear"}; Tweener.addTween(_arg1, _local2); } private function startup(_arg1:Event=null):void{ nextFrame(); var _local2:Class = (getDefinitionByName("com.conceptis.gen.loader.light.genLightLoader") as Class); addChildAt((new (_local2) as MovieClip), 0); var _local3:Object = {alpha:0.1, time:0.5, onComplete:removeChild, onCompleteParams:[oDisplay], transition:"linear"}; Tweener.addTween(oDisplay, _local3); oDisplay = null; } private function initializeKongregate():void{ var loKongregate:* = oKongregateLoader.content; if (loKongregate == null){ FlashConnect.trace("Kongregate not loaded"); } else { FlashConnect.trace("Kongregate library is valid"); }; if (loKongregate == null){ return; }; if (loKongregate.services == null){ FlashConnect.trace("Kongregate services are null"); } else { FlashConnect.trace("Kongregate services are valid"); }; if (loKongregate.services == null){ return; }; var result:Boolean = loKongregate.services.connect(); FlashConnect.trace(("Kongregate services connected : " + result)); var loInPageLogin:Function = function (_arg1:Event):void{ var _local2:int; while (numChildren > _local2) { if (getChildAt(_local2) == oKongregateLoader){ _local2 = 1; } else { removeChildAt(_local2); }; }; startPreLoader(); }; loKongregate.services.addEventListener("login", loInPageLogin); } public function startPreLoader():void{ if (oKongregateLoader == null){ loadKongregateAPI(); }; addEventListener(Event.ENTER_FRAME, updateLoadProgress); addEventListener(Event.ENTER_FRAME, updateInitProgress); nLoadPercent = 0; nInitPercent = 0; oDisplay = new Preloader(); oDisplay.mouseChildren = false; oDisplay.clickText.visible = false; oDisplay.loadingText.gotoAndStop(oDisplay.loadingText.totalFrames); oDisplay.progressPen.slider.addEventListener(Event.ENTER_FRAME, checkProgress); oDisplay.progressPen.slider.gotoAndPlay(1); if (((loaderInfo.parameters.hasOwnProperty("hidelogos")) && ((loaderInfo.parameters["hidelogos"] == 1)))){ oDisplay.logo.visible = false; oDisplay.progressPen.y = (oDisplay.progressPen.y - 150); oDisplay.loadingText.y = (oDisplay.loadingText.y - 150); }; addChild(oDisplay); } private function startBrandImage(_arg1:Class):void{ var loBrandImage:Bitmap; var ioImageClass = _arg1; try { loBrandImage = new (ioImageClass); addChild(loBrandImage); setTimeout(stopBrandImage, 3000, loBrandImage); } catch(err:Error) { startPreLoader(); }; } private function loadKongregateAPI():void{ var _local2:URLRequest; var _local1 = ""; if (stage.loaderInfo.parameters["kongregate_api_path "] != null){ _local1 = stage.loaderInfo.parameters["kongregate_api_path "]; _local1 = _local1.replace(" ", ""); _local1 = _local1.split(" ").join("%"); } else { if (stage.loaderInfo.parameters["kongregate_api_path"] != null){ _local1 = stage.loaderInfo.parameters["kongregate_api_path"]; }; }; if (_local1 != ""){ _local1 = unescape(_local1); Security.allowDomain(_local1); _local2 = new URLRequest(_local1); oKongregateLoader = new Loader(); oKongregateLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onLoadKongreageFailed); oKongregateLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadKongregateComplete); oKongregateLoader.load(_local2); this.addChild(oKongregateLoader); }; } private function updateLoadProgress(_arg1:Event):void{ if (framesLoaded == totalFrames){ removeEventListener(Event.ENTER_FRAME, updateLoadProgress); nLoadPercent = FULL_LOAD; } else { nLoadPercent = ((FULL_LOAD * loaderInfo.bytesLoaded) / loaderInfo.bytesTotal); }; } private function updateInitProgress(_arg1:Event):void{ var _local2:Class; if (framesLoaded < 2){ return; }; if (((!((oKongregateLoader == null))) && ((poKongregate == null)))){ FlashConnect.trace("Kongregate not loaded"); return; }; if (((((!((oKongregateLoader == null))) && (poKongregate.services.hasOwnProperty("isConnected")))) && (!(poKongregate.services.isConnected())))){ FlashConnect.trace("Kongregate not connected"); return; }; if (oInitializer == null){ nextFrame(); _local2 = (getDefinitionByName("com.conceptis.gen.loader.light.genLightInitializer") as Class); oInitializer = (new (_local2) as MovieClip); addChild(oInitializer); }; if (oInitializer.pnStepsLoaded == oInitializer.pnTotalSteps){ removeEventListener(Event.ENTER_FRAME, updateInitProgress); nInitPercent = FULL_INIT; } else { nInitPercent = ((FULL_INIT * oInitializer.pnStepsLoaded) / oInitializer.pnTotalSteps); }; } private function onLoadKongreageFailed(_arg1:ErrorEvent):void{ FlashConnect.trace(("Kongregate Load failed: " + _arg1.text)); removeChild(oKongregateLoader); oKongregateLoader = null; } } }//package com.conceptis.gen.loader.light
Section 50
//genLightPuzzleData (com.conceptis.gen.loader.light.genLightPuzzleData) package com.conceptis.gen.loader.light { public class genLightPuzzleData { private var bSolved:Boolean; private var oSave:XML; private var sId:String; private var oCaf:XML; private var sName:String; public function genLightPuzzleData(_arg1:String, _arg2:String, _arg3:XML, _arg4:XML){ sId = _arg1; sName = _arg2; oCaf = _arg3; oSave = _arg4; } public function get pbSaved():Boolean{ return (((((((!((oSave == null))) && (!((oSave.data.empty == null))))) && ((oSave.data.empty[0] == null)))) && (!(pbSolved)))); } public function get psId():String{ return (sId); } public function get pnSaveTime():int{ if (oSave == null){ return (0); }; return (int(oSave.header.time.@total)); } public function get poCaf():XML{ return (oCaf); } public function get poSave():XML{ return (oSave); } public function get pbSolved():Boolean{ return (((((!((oSave == null))) && (!((oSave.header.flags == null))))) && ((oSave.header.flags.@solved == "true")))); } public function get psName():String{ return (sName); } public function set poSave(_arg1:XML):void{ oSave = _arg1; } } }//package com.conceptis.gen.loader.light
Section 51
//genAboutBox (com.conceptis.gen.loader.genAboutBox) package com.conceptis.gen.loader { import flash.events.*; import flash.display.*; import flash.text.*; import com.conceptis.res.loader.*; public class genAboutBox extends genDialog { private var oMessage:TextField; public function genAboutBox(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ super(new AboutBox(), _arg2, _arg3, _arg4); addEventListener(MouseEvent.MOUSE_DOWN, onClose, false, 1); createControls(); oMessage.text = _arg1; adjustControls(); } override protected function createControls():void{ super.createControls(); if (oCaption != null){ oCaption.removeEventListener(MouseEvent.MOUSE_DOWN, onStartDrag); }; if (oCaptionCancel != null){ oCaption.removeEventListener(MouseEvent.MOUSE_UP, onClose); }; oMessage = oGuiDialog.message; oMessage.text = ""; oGuiDialog.headings.transform.colorTransform = oColorDark; oGuiDialog.background.transform.colorTransform = oColorLight; } override public function showDialog(_arg1:DisplayObjectContainer):void{ super.showDialog(_arg1); } private function adjustControls():void{ var _local1:Number = oMessage.width; var _local2:Number = oMessage.height; oMessage.wordWrap = false; oMessage.autoSize = TextFieldAutoSize.LEFT; var _local3:int = Math.round((oMessage.width - _local1)); var _local4:int = Math.round((oMessage.height - _local2)); var _local5:Boolean; if ((((_local3 > 0)) || (_local5))){ oGuiDialog.frame.width = (oGuiDialog.frame.width + _local3); oGuiDialog.headings.width = (oGuiDialog.headings.width + _local3); oGuiDialog.background.width = (oGuiDialog.background.width + _local3); oCaption.width = (oCaption.width + _local3); oCaptionCancel.x = (oCaptionCancel.x + _local3); }; if ((((_local4 > 0)) || (_local5))){ oGuiDialog.frame.height = (oGuiDialog.frame.height + _local4); oGuiDialog.headings.height = (oGuiDialog.headings.height + _local4); oGuiDialog.background.height = (oGuiDialog.background.height + _local4); }; } } }//package com.conceptis.gen.loader
Section 52
//genDialog (com.conceptis.gen.loader.genDialog) package com.conceptis.gen.loader { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; public class genDialog extends Sprite { protected var oColorLight:ColorTransform; protected var oColorDark:ColorTransform; protected var oOwner:DisplayObjectContainer; protected var oCaptionCancel:MovieClip; protected var oColorMedian:ColorTransform; protected var oGuiDialog:MovieClip; private var oDragOffset:Point; protected var oCaption:MovieClip; public function genDialog(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int){ oGuiDialog = _arg1; addChild(oGuiDialog); oCaption = new MovieClip(); oCaptionCancel = new MovieClip(); x = 15; y = 65; addEventListener(MouseEvent.MOUSE_DOWN, disableEvent); addEventListener(MouseEvent.CLICK, disableEvent); addEventListener(MouseEvent.DOUBLE_CLICK, disableEvent); addEventListener(MouseEvent.MOUSE_MOVE, disableEvent); addEventListener(MouseEvent.MOUSE_OUT, disableEvent); addEventListener(MouseEvent.MOUSE_OVER, disableEvent); addEventListener(MouseEvent.MOUSE_UP, disableEvent); addEventListener(MouseEvent.MOUSE_WHEEL, disableEvent); addEventListener(MouseEvent.ROLL_OUT, disableEvent); addEventListener(MouseEvent.ROLL_OVER, disableEvent); oColorLight = new ColorTransform(); oColorMedian = new ColorTransform(); oColorDark = new ColorTransform(); oColorLight.color = _arg2; oColorMedian.color = _arg3; oColorDark.color = _arg4; } public function limitToStage():void{ var _local1:Stage = stage; var _local2:Rectangle = getBounds(_local1); if (_local2.bottom > _local1.stageHeight){ y = (y - (_local2.bottom - _local1.stageHeight)); }; if (_local2.right > _local1.stageWidth){ x = (x - (_local2.right - _local1.stageWidth)); }; _local2 = getBounds(_local1); if (_local2.top < 0){ y = (y - _local2.top); }; if (_local2.left < 0){ x = (x - _local2.left); }; } protected function disableEvent(_arg1:Event):void{ _arg1.stopImmediatePropagation(); } protected function onStopDrag(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_MOVE, onDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, onStopDrag); addEventListener(MouseEvent.MOUSE_MOVE, disableEvent); addEventListener(MouseEvent.MOUSE_UP, disableEvent); } protected function onStartDrag(_arg1:MouseEvent):void{ removeEventListener(MouseEvent.MOUSE_MOVE, disableEvent); removeEventListener(MouseEvent.MOUSE_UP, disableEvent); stage.addEventListener(MouseEvent.MOUSE_MOVE, onDrag, false, 1); stage.addEventListener(MouseEvent.MOUSE_UP, onStopDrag, false, 1); oDragOffset = new Point(x, y).subtract(parent.globalToLocal(new Point(_arg1.stageX, _arg1.stageY))); } protected function createControls():void{ if (oGuiDialog.captionBar != null){ oCaption = oGuiDialog.captionBar; oCaption.addEventListener(MouseEvent.MOUSE_DOWN, onStartDrag); oCaption.transform.colorTransform = oColorDark; }; if (oGuiDialog.closeBtn != null){ oCaptionCancel = oGuiDialog.closeBtn; oCaptionCancel.stop(); oCaptionCancel.addEventListener(MouseEvent.MOUSE_UP, onClose); oCaptionCancel.fg.transform.colorTransform = oColorDark; oCaptionCancel.bg.transform.colorTransform = oColorLight; }; } public function isOpen():Boolean{ return (!((parent == null))); } private function notifyClosed(_arg1:String):void{ dispatchEvent(new Event("closed")); } private function onDrag(_arg1:MouseEvent):void{ var _local2:Point = parent.globalToLocal(new Point(_arg1.stageX, _arg1.stageY)); if ((((_arg1.stageX >= 0)) && ((_arg1.stageX <= stage.stageWidth)))){ x = (_local2.x + oDragOffset.x); }; if ((((_arg1.stageY >= 0)) && ((_arg1.stageY <= stage.stageHeight)))){ y = (_local2.y + oDragOffset.y); }; } public function showDialog(_arg1:DisplayObjectContainer):void{ oOwner = _arg1; oOwner.addChild(this); stage.addEventListener(Event.RESIZE, onStageResize); stage.addEventListener(MouseEvent.MOUSE_DOWN, onClose); var _local2:Point = _arg1.localToGlobal(new Point(x, y)); x = _local2.x; y = _local2.y; setRelativePosition(x, y); limitToStage(); onOpened(); } public function setRelativePosition(_arg1:Number, _arg2:Number):void{ var _local3:Rectangle = getRect(this); x = (_arg1 - _local3.x); y = (_arg2 - _local3.y); } public function closeDialog(_arg1:String):void{ if (stage != null){ stage.removeEventListener(MouseEvent.MOUSE_DOWN, onClose); stage.removeEventListener(Event.RESIZE, onStageResize); setTimeout(notifyClosed, 300, _arg1); onClosed(); }; } protected function onClosed():void{ parent.removeChild(this); } protected function onOpened():void{ } protected function onClose(_arg1:MouseEvent):void{ closeDialog("close"); } protected function onStageResize(_arg1:Event):void{ limitToStage(); } public function get poOwner():DisplayObjectContainer{ return (oOwner); } } }//package com.conceptis.gen.loader
Section 53
//genLoader (com.conceptis.gen.loader.genLoader) package com.conceptis.gen.loader { import flash.events.*; import flash.display.*; import flash.net.*; import flash.utils.*; import flash.text.*; import com.conceptis.gen.external.*; import flash.ui.*; import flash.external.*; public class genLoader extends MovieClip implements genExternLinkable { public const version:int = 222; protected const SAVE_IN_COOKIE:String = "cookie"; protected var oAboutBox:genAboutBox; protected var psLoadGame:String; protected var sContentID:String; protected var psConfig:String; protected var psLoadPrefs:String; protected var oConnection:LocalConnection; protected var psSaveGame:String; protected var oCookie:SharedObject; protected var nLoadIndex:int; protected var psMode:String; protected var nLoadTime:int; protected var nConfigIndex:int; protected var psGuiLibrary:String; protected var psPuzzleCaf:String; protected var nCafIndex:int; public function genLoader(){ if (stage){ init(); } else { addEventListener(Event.ADDED_TO_STAGE, init); }; } protected function showErrorMessage(_arg1:String, _arg2:String):void{ var loMB:Class; var loTxtField:TextField; var loTxtFormat:TextFormat; var isTitle = _arg1; var isMessage = _arg2; try { loMB = (getDefinitionByName("com.conceptis.gen.ui.genMessageBox") as Class); new loMB(isTitle, isMessage, null, null, null).showDialog(this); } catch(e:ReferenceError) { loTxtField = new TextField(); loTxtFormat = new TextFormat(); if (isTitle != ""){ loTxtField.text = (isTitle + "\n\n"); }; loTxtField.appendText(isMessage); loTxtField.selectable = true; loTxtField.background = false; loTxtField.wordWrap = true; loTxtField.multiline = true; loTxtField.width = stage.stageWidth; loTxtField.height = stage.stageHeight; loTxtFormat.align = TextFormatAlign.JUSTIFY; loTxtFormat.size = 12; loTxtField.setTextFormat(loTxtFormat); addChild(loTxtField); }; } public function broadcastMessage(_arg1:String, ... _args):void{ var isMsg = _arg1; var ioParams = _args; if (oConnection == null){ oConnection = new LocalConnection(); oConnection.addEventListener(StatusEvent.STATUS, function (_arg1:Event):void{ }); oConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (_arg1:Event):void{ }); }; try { oConnection.send.apply(oConnection, [((oConnection.domain + "-") + sContentID), isMsg].concat(ioParams)); } catch(e:Error) { }; } protected function run(_arg1:DisplayObject, _arg2:Object):void{ addChild(_arg1); var _local3 = _arg1; _local3["init"](_arg2); collectGarbage(); } public function saveGame(_arg1:XML, _arg2:Function):void{ if (psSaveGame == ""){ _arg2(false, "No save path found"); } else { if (psSaveGame == SAVE_IN_COOKIE){ saveGameToCookie(_arg1, _arg2); } else { saveGameToUrl(_arg1, psSaveGame, _arg2); }; }; } protected function init(_arg1:Event=null):void{ stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.stageFocusRect = false; var _local2:ContextMenu = new ContextMenu(); var _local3:ContextMenuItem = new ContextMenuItem("About game..."); _local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onVersionSelected); _local2.hideBuiltInItems(); _local2.customItems.push(_local3); contextMenu = _local2; } protected function parseError(_arg1:ErrorEvent):String{ return (_arg1.text); } protected function openHandler(_arg1:Event):void{ } protected function showAboutBox(_arg1:String):void{ var _local3:Number; if (oAboutBox != null){ return; }; var _local2:Number = stage.mouseX; _local3 = stage.mouseY; var _local4 = 0xFFFFFF; var _local5 = 0x848484; var _local6 = 592137; var _local7:Class = (getDefinitionByName("com.conceptis.gen.model.genPuzzle") as Class); if (_local7 != null){ _local4 = _local7.pThis.pnBgColor; _local5 = _local7.pThis.pnSideColor; _local6 = _local7.pThis.pnLineColor; }; oAboutBox = new genAboutBox(_arg1, _local4, _local5, _local6); oAboutBox.addEventListener("closed", onAboutClosed); oAboutBox.showDialog(this); oAboutBox.x = _local2; oAboutBox.y = _local3; oAboutBox.limitToStage(); } public function getPageSize():Object{ return (ExternalInterface.call("getPageSize")); } protected function collectGarbage():void{ var lc1:LocalConnection; var lc2:LocalConnection; try { lc1 = new LocalConnection(); lc2 = new LocalConnection(); lc1.connect("name"); lc2.connect("name"); } catch(e:Error) { }; } protected function parseVersion(_arg1:DisplayObject):String{ var lsVersion:String; var ioObject = _arg1; try { lsVersion = ioObject["version"]; lsVersion = ((lsVersion.slice(0, (lsVersion.length - 2)) + ".") + lsVersion.slice((lsVersion.length - 2))); } catch(e:Error) { lsVersion = "Unknown"; }; return (lsVersion); } protected function onVersionSelected(_arg1:ContextMenuEvent):void{ var _local2 = ""; _local2 = "Loader: v"; _local2 = (_local2 + (parseVersion(this) + "\n")); if (numChildren > 0){ _local2 = (_local2 + "Applet: v"); _local2 = (_local2 + (parseVersion(getChildAt(0)) + "\n")); }; showAboutBox(_local2); } protected function getGameFromCookie():XML{ var loGameXML:XML; try { oCookie = SharedObject.getLocal(sContentID, "/"); loGameXML = oCookie.data["save"]; oCookie = null; } catch(e:Error) { }; return (loGameXML); } public function openURL(_arg1:String, _arg2:String):void{ var _local3:Boolean; if (((ExternalInterface.available) && ((((_arg2 == genExternUrlTarget.POPUP)) || ((_arg2 == genExternUrlTarget.DIALOG)))))){ _local3 = (_arg2 == genExternUrlTarget.POPUP); navigateToURL(new URLRequest((((("javascript:popup('" + _arg1) + "',") + _local3.toString()) + ")")), genExternUrlTarget.SELF); } else { if (((ExternalInterface.available) && ((_arg2 == genExternUrlTarget.NEW)))){ navigateToURL(new URLRequest((("javascript:newWindow('" + _arg1) + "')")), genExternUrlTarget.SELF); } else { navigateToURL(new URLRequest(_arg1), _arg2); }; }; } protected function saveGameToUrl(_arg1:XML, _arg2:String, _arg3:Function):void{ var lnTimeout:uint; var loLoader:URLLoader; var loResult:Function; var ioSave = _arg1; var isURL = _arg2; var ioResultFunction = _arg3; loLoader = new URLLoader(); var loRequest:URLRequest = new URLRequest(); loRequest.url = isURL; loRequest.method = "POST"; loRequest.data = ioSave.toXMLString(); loResult = function (_arg1:Event):void{ clearTimeout(lnTimeout); loLoader.removeEventListener(Event.COMPLETE, loResult); loLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, loResult); loLoader.removeEventListener(IOErrorEvent.IO_ERROR, loResult); loLoader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); loLoader.removeEventListener(Event.OPEN, openHandler); loLoader.removeEventListener(ProgressEvent.PROGRESS, progressHandler); var _local2:Boolean = (((_arg1.type == Event.COMPLETE)) && ((_arg1.target.data == "OK"))); var _local3 = ""; if (!_local2){ _local3 = "Failed to send data to server.\nPuzzle not saved."; } else { broadcastMessage("updateGame", ioSave); }; ioResultFunction(_local2, _local3); }; var loTimeout:Function = function (_arg1:URLLoader):void{ _arg1.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "Operation timed out")); }; loLoader.addEventListener(Event.COMPLETE, loResult); loLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loResult); loLoader.addEventListener(IOErrorEvent.IO_ERROR, loResult); loLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler, false, 0, true); loLoader.addEventListener(Event.OPEN, openHandler, false, 0, true); loLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler, false, 0, true); loLoader.load(loRequest); lnTimeout = setTimeout(loTimeout, 30000, loLoader); } protected function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } public function onGameComplete(_arg1:Number, _arg2:Number):void{ } public function notifyPageResize(_arg1:Object, _arg2:Function):void{ ExternalInterface.addCallback("notifyPageResize", _arg2); } public function isAvailable():Boolean{ return (true); } public function getSaveType():String{ switch (psSaveGame){ case "": return (genExternSaveType.NONE); case SAVE_IN_COOKIE: return (genExternSaveType.LOCAL); default: return (genExternSaveType.REMOTE); }; } protected function progressHandler(_arg1:ProgressEvent):void{ } public function registerBroadcast(_arg1:Object):void{ var ioReceiver = _arg1; if (oConnection == null){ oConnection = new LocalConnection(); oConnection.addEventListener(StatusEvent.STATUS, function (_arg1:Event):void{ }); oConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (_arg1:Event):void{ }); }; try { oConnection.connect(((oConnection.domain + "-") + sContentID)); oConnection.client = ioReceiver; } catch(e:Error) { }; } public function onFlashResize(_arg1:Number, _arg2:Number):void{ navigateToURL(new URLRequest((((("javascript:onFlashResize(" + _arg1) + ",") + _arg2) + ")")), genExternUrlTarget.SELF); } protected function saveGameToCookie(_arg1:XML, _arg2:Function):void{ var ioSave = _arg1; var ioResultFunction = _arg2; var loResult:Function = function (_arg1:Event):void{ var _local2:Boolean = (((_arg1.type == Event.COMPLETE)) || ((((_arg1.type == NetStatusEvent.NET_STATUS)) && (!((NetStatusEvent(_arg1).info.level == "error")))))); var _local3 = ""; if (!_local2){ _local3 = "No permission for local storage.\nPuzzle not saved"; } else { broadcastMessage("updateGame", ioSave); }; ioResultFunction(_local2, _local3); }; try { oCookie = SharedObject.getLocal(sContentID, "/"); oCookie.data["save"] = ioSave.copy(); if (oCookie.flush(oCookie.size) == SharedObjectFlushStatus.PENDING){ oCookie.addEventListener(NetStatusEvent.NET_STATUS, loResult, false, 0, true); } else { loResult(new Event(Event.COMPLETE)); }; } catch(err:Error) { loResult(new ErrorEvent(ErrorEvent.ERROR)); }; } protected function onCreditSelected(_arg1:ContextMenuEvent):void{ openURL("http://www.conceptispuzzles.com", genExternUrlTarget.NEW); } private function onAboutClosed(_arg1:Event):void{ oAboutBox = null; } } }//package com.conceptis.gen.loader
Section 54
//SaveIcon (com.conceptis.res.icons.SaveIcon) package com.conceptis.res.icons { import flash.display.*; public dynamic class SaveIcon extends MovieClip { public var bg2:MovieClip; public var fg:MovieClip; } }//package com.conceptis.res.icons
Section 55
//AboutDialog (com.conceptis.res.loader.light.AboutDialog) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class AboutDialog extends MovieClip { public var _moreButton:SimpleButton; public var _closeButton:SimpleButton; public var _moreStatic:MovieClip; } }//package com.conceptis.res.loader.light
Section 56
//Dashboard (com.conceptis.res.loader.light.Dashboard) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class Dashboard extends MovieClip { public var _howtoButton:SimpleButton; public var _moreButton:SimpleButton; public var _rulesButton:SimpleButton; public var _newButton:SimpleButton; public var _logoButton:SimpleButton; public var _aboutButton:SimpleButton; public var backBoard:MovieClip; } }//package com.conceptis.res.loader.light
Section 57
//HowToDialog (com.conceptis.res.loader.light.HowToDialog) package com.conceptis.res.loader.light { import flash.events.*; import flash.display.*; public dynamic class HowToDialog extends MovieClip { public var _closeButton:SimpleButton; public var _backButton:SimpleButton; public var _nextButton:SimpleButton; public function HowToDialog(){ addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function $onBack(_arg1:MouseEvent):void{ gotoAndStop((currentFrame - 1)); } public function $onNext(_arg1:MouseEvent):void{ gotoAndStop((currentFrame + 1)); } function frame1(){ _backButton.addEventListener(MouseEvent.CLICK, $onBack); _nextButton.addEventListener(MouseEvent.CLICK, $onNext); _backButton.visible = false; _nextButton.visible = true; stop(); } function frame2(){ _backButton.visible = true; _nextButton.visible = true; stop(); } function frame3(){ _backButton.visible = true; _nextButton.visible = false; stop(); } } }//package com.conceptis.res.loader.light
Section 58
//ModalButton (com.conceptis.res.loader.light.ModalButton) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class ModalButton extends SimpleButton { } }//package com.conceptis.res.loader.light
Section 59
//NewGameDialog (com.conceptis.res.loader.light.NewGameDialog) package com.conceptis.res.loader.light { import flash.events.*; import flash.display.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.accessibility.*; import flash.media.*; import flash.text.*; import flash.ui.*; import flash.external.*; import adobe.utils.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class NewGameDialog extends MovieClip { public var _closeButton:SimpleButton; public var _tabPuzzles2:MovieClip; public var _tabPuzzles1:MovieClip; public var _tabPuzzles0:MovieClip; public var _tabButton2:SimpleButton; public var _tabButton1:SimpleButton; public var _tabButton0:SimpleButton; public var count:int; public var i:int; public function NewGameDialog(){ addFrameScript(0, frame1); } public function $onTabClick(_arg1:MouseEvent):void{ selectTab((_arg1.target as SimpleButton)); } public function selectTab(_arg1:SimpleButton){ var _local3:SimpleButton; var _local4:MovieClip; var _local2:int; while (_local2 < count) { _local3 = this[("_tabButton" + _local2)]; _local4 = this[("_tabPuzzles" + _local2)]; _local3.visible = !((_arg1 == _local3)); _local4.visible = (_arg1 == _local3); _local2++; }; } function frame1(){ count = 3; i = 0; while (i < count) { this[("_tabButton" + i)].addEventListener(MouseEvent.CLICK, $onTabClick); i++; }; selectTab(_tabButton0); } } }//package com.conceptis.res.loader.light
Section 60
//NewGameLine (com.conceptis.res.loader.light.NewGameLine) package com.conceptis.res.loader.light { import flash.events.*; import flash.display.*; import flash.text.*; public dynamic class NewGameLine extends MovieClip { public var _sep:MovieClip; public var _number:TextField; public var _name:TextField; public var _status:TextField; public function NewGameLine(){ addFrameScript(0, frame1); } public function $onAdded(_arg1:Event):void{ _name.autoSize = "left"; _sep.x = ((_name.x + _name.width) + 2); _sep.width = ((_status.x - _sep.x) - 2); _status.autoSize = "left"; } public function $onRollOver(_arg1:MouseEvent):void{ gotoAndStop(2); } public function $onRollOut(_arg1:MouseEvent):void{ gotoAndStop(1); } function frame1(){ addEventListener(MouseEvent.ROLL_OVER, $onRollOver); addEventListener(MouseEvent.ROLL_OUT, $onRollOut); addEventListener(Event.ENTER_FRAME, $onAdded); mouseChildren = false; buttonMode = true; useHandCursor = true; stop(); } } }//package com.conceptis.res.loader.light
Section 61
//OpenScreen (com.conceptis.res.loader.light.OpenScreen) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class OpenScreen extends MovieClip { } }//package com.conceptis.res.loader.light
Section 62
//Preloader (com.conceptis.res.loader.light.Preloader) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class Preloader extends MovieClip { public var clickText:MovieClip; public var progressPen:MovieClip; public var loadingText:MovieClip; } }//package com.conceptis.res.loader.light
Section 63
//RulesDialog (com.conceptis.res.loader.light.RulesDialog) package com.conceptis.res.loader.light { import flash.display.*; public dynamic class RulesDialog extends MovieClip { public var _closeButton:SimpleButton; public var _backButton:SimpleButton; public var _nextButton:SimpleButton; public function RulesDialog(){ addFrameScript(0, frame1); } function frame1(){ _backButton.visible = false; _nextButton.visible = false; stop(); } } }//package com.conceptis.res.loader.light
Section 64
//SaveDialog (com.conceptis.res.loader.light.SaveDialog) package com.conceptis.res.loader.light { import flash.display.*; import flash.text.*; public dynamic class SaveDialog extends MovieClip { public var _closeButton:SimpleButton; public var _noButton:SimpleButton; public var _message:TextField; public var _yesButton:SimpleButton; public var frame:MovieClip; public var headings:MovieClip; public var _title:TextField; public var captionBar:MovieClip; public function SaveDialog(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ _title.text = "Save Puzzle?"; _message.text = "The puzzle will be saved on\nthis computer"; _yesButton.visible = true; _noButton.visible = true; _closeButton.visible = true; stop(); } function frame2(){ _title.text = "Saving puzzle"; _message.text = "Please wait..."; _yesButton.visible = false; _noButton.visible = false; _closeButton.visible = false; stop(); } } }//package com.conceptis.res.loader.light
Section 65
//AboutBox (com.conceptis.res.loader.AboutBox) package com.conceptis.res.loader { import flash.display.*; import flash.text.*; public dynamic class AboutBox extends MovieClip { public var message:TextField; public var background:MovieClip; public var title:TextField; public var frame:MovieClip; public var captionBar:MovieClip; public var headings:MovieClip; } }//package com.conceptis.res.loader
Section 66
//ShowDialogSound (com.conceptis.res.loader.ShowDialogSound) package com.conceptis.res.loader { import flash.media.*; public dynamic class ShowDialogSound extends Sound { } }//package com.conceptis.res.loader
Section 67
//aboutBoxCaption_4 (genloaderres_fla.aboutBoxCaption_4) package genloaderres_fla { import flash.display.*; public dynamic class aboutBoxCaption_4 extends MovieClip { public function aboutBoxCaption_4(){ addFrameScript(0, frame1); } function frame1(){ } } }//package genloaderres_fla
Section 68
//saveCaption_8 (haslightres_fla.saveCaption_8) package haslightres_fla { import flash.display.*; public dynamic class saveCaption_8 extends MovieClip { public function saveCaption_8(){ addFrameScript(0, frame1); } function frame1(){ } } }//package haslightres_fla
Section 69
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.5.0.12683"; } }//package mx.core
Section 70
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.5.0.12683"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 71
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.5.0.12683"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 72
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.5.0.12683"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 73
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.5.0.12683"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 74
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.5.0.12683"; } }//package mx.core
Section 75
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 76
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 77
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 78
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; import flash.media.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 79
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 80
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 81
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { import flash.utils.*; public interface IFlexModuleFactory { function get preloadedRSLs():Dictionary; function allowInsecureDomain(... _args):void; function create(... _args):Object; function allowDomain(... _args):void; function info():Object; } }//package mx.core
Section 82
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 83
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 84
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 85
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 86
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 87
//ISWFBridgeGroup (mx.core.ISWFBridgeGroup) package mx.core { import flash.events.*; public interface ISWFBridgeGroup { function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider; function removeChildBridge(_arg1:IEventDispatcher):void; function get parentBridge():IEventDispatcher; function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void; function set parentBridge(_arg1:IEventDispatcher):void; function containsBridge(_arg1:IEventDispatcher):Boolean; function getChildBridges():Array; } }//package mx.core
Section 88
//ISWFBridgeProvider (mx.core.ISWFBridgeProvider) package mx.core { import flash.events.*; public interface ISWFBridgeProvider { function get childAllowsParent():Boolean; function get swfBridge():IEventDispatcher; function get parentAllowsChild():Boolean; } }//package mx.core
Section 89
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 90
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 91
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.5.0.12683"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 92
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 93
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.5.0.12683"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 94
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.5.0.12683"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 95
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.5.0.12683"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 96
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import mx.core.*; import flash.geom.*; import mx.utils.*; import flash.filters.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.5.0.12683"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 97
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function moveFocus(_arg1:String, _arg2:DisplayObject=null):void; function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function removeSWFBridge(_arg1:IEventDispatcher):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 98
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 99
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 100
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 101
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 102
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import flash.geom.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function set focusPane(_arg1:Sprite):void; function get toolTipChildren():IChildList; function useSWFBridge():Boolean; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function deployMouseShields(_arg1:Boolean):void; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void; function getSandboxRoot():DisplayObject; function get swfBridgeGroup():ISWFBridgeGroup; function removeFocusManager(_arg1:IFocusManagerContainer):void; function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function get document():Object; function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function getTopLevelRoot():DisplayObject; function removeChildBridge(_arg1:IEventDispatcher):void; function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function isTopLevel():Boolean; function isTopLevelRoot():Boolean; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle; } }//package mx.managers
Section 103
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var changingListenersInOtherSystemManagers:Boolean; public static var bootstrapLoaderInfoURL:String; public static var showMouseCursor:Boolean; public static var dispatchingEventToOtherSystemManagers:Boolean; } }//package mx.managers
Section 104
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 105
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.5.0.12683"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import flash.display.*; import flash.net.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.events.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ var _local4:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local4 = new ModuleEvent(ModuleEvent.PROGRESS); _local4.bytesLoaded = info.size; _local4.bytesTotal = info.size; dispatchEvent(_local4); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2, _arg3); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); loader.content.removeEventListener("error", moduleErrorHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); loader.content.addEventListener("error", moduleErrorHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{ var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.loadBytes(_arg2, _local3); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_arg3){ loadBytes(_arg1, _arg3); return; }; if (_url.indexOf("published://") == 0){ return; }; var _local4:URLRequest = new URLRequest(_url); var _local5:LoaderContext = new LoaderContext(); _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local5.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local5.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local4, _local5); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function moduleErrorHandler(_arg1:Event):void{ var _local2:ModuleEvent; _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); if ((_arg1 is ModuleEvent)){ _local2 = ModuleEvent(_arg1); } else { _local2 = new ModuleEvent(ModuleEvent.ERROR); }; dispatchEvent(_local2); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.READY); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(_local2); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 106
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 107
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 108
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function getPreferredLocaleChain():Array; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function initializeLocaleChain(_arg1:Array):void; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 109
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 110
//LocaleSorter (mx.resources.LocaleSorter) package mx.resources { public class LocaleSorter { mx_internal static const VERSION:String = "3.5.0.12683"; private static function normalizeLocale(_arg1:String):String{ return (_arg1.toLowerCase().replace(/-/g, "_")); } public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{ var result:Array; var hasLocale:Object; var i:int; var j:int; var k:int; var l:int; var locale:String; var plocale:LocaleID; var appLocales = _arg1; var systemPreferences = _arg2; var ultimateFallbackLocale = _arg3; var addAll = _arg4; var promote:Function = function (_arg1:String):void{ if (typeof(hasLocale[_arg1]) != "undefined"){ result.push(appLocales[hasLocale[_arg1]]); delete hasLocale[_arg1]; }; }; result = []; hasLocale = {}; var locales:Array = trimAndNormalize(appLocales); var preferenceLocales:Array = trimAndNormalize(systemPreferences); addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale); j = 0; while (j < locales.length) { hasLocale[locales[j]] = j; j = (j + 1); }; i = 0; l = preferenceLocales.length; while (i < l) { plocale = LocaleID.fromString(preferenceLocales[i]); promote(preferenceLocales[i]); promote(plocale.toString()); while (plocale.transformToParent()) { promote(plocale.toString()); }; plocale = LocaleID.fromString(preferenceLocales[i]); j = 0; while (j < l) { locale = preferenceLocales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; j = 0; k = locales.length; while (j < k) { locale = locales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; i = (i + 1); }; if (addAll){ j = 0; k = locales.length; while (j < k) { promote(locales[j]); j = (j + 1); }; }; return (result); } private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{ var _local3:String; if (((!((_arg2 == null))) && (!((_arg2 == ""))))){ _local3 = normalizeLocale(_arg2); if (_arg1.indexOf(_local3) == -1){ _arg1.push(_local3); }; }; } private static function trimAndNormalize(_arg1:Array):Array{ var _local2:Array = []; var _local3:int; while (_local3 < _arg1.length) { _local2.push(normalizeLocale(_arg1[_local3])); _local3++; }; return (_local2); } } }//package mx.resources class LocaleID { private var privateLangs:Boolean;// = false private var script:String;// = "" private var variants:Array; private var privates:Array; private var extensions:Object; private var lang:String;// = "" private var region:String;// = "" private var extended_langs:Array; public static const STATE_PRIMARY_LANGUAGE:int = 0; public static const STATE_REGION:int = 3; public static const STATE_EXTENDED_LANGUAGES:int = 1; public static const STATE_EXTENSIONS:int = 5; public static const STATE_SCRIPT:int = 2; public static const STATE_VARIANTS:int = 4; public static const STATE_PRIVATES:int = 6; private function LocaleID(){ extended_langs = []; variants = []; extensions = {}; privates = []; super(); } public function equals(_arg1:LocaleID):Boolean{ return ((toString() == _arg1.toString())); } public function canonicalize():void{ var _local1:String; for (_local1 in extensions) { if (extensions.hasOwnProperty(_local1)){ if (extensions[_local1].length == 0){ delete extensions[_local1]; } else { extensions[_local1] = extensions[_local1].sort(); }; }; }; extended_langs = extended_langs.sort(); variants = variants.sort(); privates = privates.sort(); if (script == ""){ script = LocaleRegistry.getScriptByLang(lang); }; if ((((script == "")) && (!((region == ""))))){ script = LocaleRegistry.getScriptByLangAndRegion(lang, region); }; if ((((region == "")) && (!((script == ""))))){ region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); }; } public function toString():String{ var _local2:String; var _local1:Array = [lang]; appendElements(_local1, extended_langs); if (script != ""){ _local1.push(script); }; if (region != ""){ _local1.push(region); }; appendElements(_local1, variants); for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1.push(_local2); appendElements(_local1, extensions[_local2]); }; }; if (privates.length > 0){ _local1.push("x"); appendElements(_local1, privates); }; return (_local1.join("_")); } public function isSiblingOf(_arg1:LocaleID):Boolean{ return ((((lang == _arg1.lang)) && ((script == _arg1.script)))); } public function transformToParent():Boolean{ var _local2:String; var _local3:Array; var _local4:String; if (privates.length > 0){ privates.splice((privates.length - 1), 1); return (true); }; var _local1:String; for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1 = _local2; }; }; if (_local1){ _local3 = extensions[_local1]; if (_local3.length == 1){ delete extensions[_local1]; return (true); }; _local3.splice((_local3.length - 1), 1); return (true); }; if (variants.length > 0){ variants.splice((variants.length - 1), 1); return (true); }; if (script != ""){ if (LocaleRegistry.getScriptByLang(lang) != ""){ script = ""; return (true); }; if (region == ""){ _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); if (_local4 != ""){ region = _local4; script = ""; return (true); }; }; }; if (region != ""){ if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){ region = ""; return (true); }; }; if (extended_langs.length > 0){ extended_langs.splice((extended_langs.length - 1), 1); return (true); }; return (false); } private static function appendElements(_arg1:Array, _arg2:Array):void{ var _local3:uint; var _local4:uint = _arg2.length; while (_local3 < _local4) { _arg1.push(_arg2[_local3]); _local3++; }; } public static function fromString(_arg1:String):LocaleID{ var _local5:Array; var _local8:String; var _local9:int; var _local10:String; var _local2:LocaleID = new (LocaleID); var _local3:int = STATE_PRIMARY_LANGUAGE; var _local4:Array = _arg1.replace(/-/g, "_").split("_"); var _local6:int; var _local7:int = _local4.length; while (_local6 < _local7) { _local8 = _local4[_local6].toLowerCase(); if (_local3 == STATE_PRIMARY_LANGUAGE){ if (_local8 == "x"){ _local2.privateLangs = true; } else { if (_local8 == "i"){ _local2.lang = (_local2.lang + "i-"); } else { _local2.lang = (_local2.lang + _local8); _local3 = STATE_EXTENDED_LANGUAGES; }; }; } else { _local9 = _local8.length; if (_local9 == 0){ } else { _local10 = _local8.charAt(0).toLowerCase(); if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){ _local2.extended_langs.push(_local8); if (_local2.extended_langs.length == 3){ _local3 = STATE_SCRIPT; }; } else { if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){ _local2.script = _local8; _local3 = STATE_REGION; } else { if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){ _local2.region = _local8; _local3 = STATE_VARIANTS; } else { if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){ _local2.variants.push(_local8); _local3 = STATE_VARIANTS; } else { if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){ if (_local8 == "x"){ _local3 = STATE_PRIVATES; _local5 = _local2.privates; } else { _local3 = STATE_EXTENSIONS; _local5 = ((_local2.extensions[_local8]) || ([])); _local2.extensions[_local8] = _local5; }; } else { if (_local3 >= STATE_EXTENSIONS){ _local5.push(_local8); }; }; }; }; }; }; }; }; _local6++; }; _local2.canonicalize(); return (_local2); } } class LocaleRegistry { private static const SCRIPT_ID_BY_LANG:Object = {ab:5, af:1, am:2, ar:3, as:4, ay:1, be:5, bg:5, bn:4, bs:1, ca:1, ch:1, cs:1, cy:1, da:1, de:1, dv:6, dz:7, el:8, en:1, eo:1, es:1, et:1, eu:1, fa:3, fi:1, fj:1, fo:1, fr:1, frr:1, fy:1, ga:1, gl:1, gn:1, gu:9, gv:1, he:10, hi:11, hr:1, ht:1, hu:1, hy:12, id:1, in:1, is:1, it:1, iw:10, ja:13, ka:14, kk:5, kl:1, km:15, kn:16, ko:17, la:1, lb:1, ln:1, lo:18, lt:1, lv:1, mg:1, mh:1, mk:5, ml:19, mo:1, mr:11, ms:1, mt:1, my:20, na:1, nb:1, nd:1, ne:11, nl:1, nn:1, no:1, nr:1, ny:1, om:1, or:21, pa:22, pl:1, ps:3, pt:1, qu:1, rn:1, ro:1, ru:5, rw:1, sg:1, si:23, sk:1, sl:1, sm:1, so:1, sq:1, ss:1, st:1, sv:1, sw:1, ta:24, te:25, th:26, ti:2, tl:1, tn:1, to:1, tr:1, ts:1, uk:5, ur:3, ve:1, vi:1, wo:1, xh:1, yi:10, zu:1, cpe:1, dsb:1, frs:1, gsw:1, hsb:1, kok:11, mai:11, men:1, nds:1, niu:1, nqo:27, nso:1, son:1, tem:1, tkl:1, tmh:1, tpi:1, tvl:1, zbl:28}; 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"]; private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {bg:{5:"bg"}, ca:{1:"es"}, zh:{30:"tw", 29:"cn"}, cs:{1:"cz"}, da:{1:"dk"}, de:{1:"de"}, el:{8:"gr"}, en:{1:"us"}, es:{1:"es"}, fi:{1:"fi"}, fr:{1:"fr"}, he:{10:"il"}, hu:{1:"hu"}, is:{1:"is"}, it:{1:"it"}, ja:{13:"jp"}, ko:{17:"kr"}, nl:{1:"nl"}, nb:{1:"no"}, pl:{1:"pl"}, pt:{1:"br"}, ro:{1:"ro"}, ru:{5:"ru"}, hr:{1:"hr"}, sk:{1:"sk"}, sq:{1:"al"}, sv:{1:"se"}, th:{26:"th"}, tr:{1:"tr"}, ur:{3:"pk"}, id:{1:"id"}, uk:{5:"ua"}, be:{5:"by"}, sl:{1:"si"}, et:{1:"ee"}, lv:{1:"lv"}, lt:{1:"lt"}, fa:{3:"ir"}, vi:{1:"vn"}, hy:{12:"am"}, az:{1:"az", 5:"az"}, eu:{1:"es"}, mk:{5:"mk"}, af:{1:"za"}, ka:{14:"ge"}, fo:{1:"fo"}, hi:{11:"in"}, ms:{1:"my"}, kk:{5:"kz"}, ky:{5:"kg"}, sw:{1:"ke"}, uz:{1:"uz", 5:"uz"}, tt:{5:"ru"}, pa:{22:"in"}, gu:{9:"in"}, ta:{24:"in"}, te:{25:"in"}, kn:{16:"in"}, mr:{11:"in"}, sa:{11:"in"}, mn:{5:"mn"}, gl:{1:"es"}, kok:{11:"in"}, syr:{32:"sy"}, dv:{6:"mv"}, nn:{1:"no"}, sr:{1:"cs", 5:"cs"}, cy:{1:"gb"}, mi:{1:"nz"}, mt:{1:"mt"}, quz:{1:"bo"}, tn:{1:"za"}, xh:{1:"za"}, zu:{1:"za"}, nso:{1:"za"}, se:{1:"no"}, smj:{1:"no"}, sma:{1:"no"}, sms:{1:"fi"}, smn:{1:"fi"}, bs:{1:"ba"}}; private static const SCRIPT_BY_ID:Object = {latn:1, ethi:2, arab:3, beng:4, cyrl:5, thaa:6, tibt:7, grek:8, gujr:9, hebr:10, deva:11, armn:12, jpan:13, geor:14, khmr:15, knda:16, kore:17, laoo:18, mlym:19, mymr:20, orya:21, guru:22, sinh:23, taml:24, telu:25, thai:26, nkoo:27, blis:28, hans:29, hant:30, mong:31, syrc:32}; private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {zh:{cn:29, sg:29, tw:30, hk:30, mo:30}, mn:{cn:31, sg:5}, pa:{pk:3, in:22}, ha:{gh:1, ne:1}}; private function LocaleRegistry(){ } public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{ var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1]; if (_local3 == null){ return (""); }; var _local4:Object = _local3[_arg2]; if (_local4 == null){ return (""); }; return (SCRIPTS[int(_local4)].toLowerCase()); } public static function getScriptByLang(_arg1:String):String{ var _local2:Object = SCRIPT_ID_BY_LANG[_arg1]; if (_local2 == null){ return (""); }; return (SCRIPTS[int(_local2)].toLowerCase()); } public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{ var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1]; var _local4:Object = SCRIPT_BY_ID[_arg2]; if ((((_local3 == null)) || ((_local4 == null)))){ return (""); }; return (((_local3[int(_local4)]) || (""))); } }
Section 111
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.5.0.12683"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 112
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.5.0.12683"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ try { instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); } catch(e:Error) { instance = new ResourceManagerImpl(); }; }; return (instance); } } }//package mx.resources
Section 113
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.5.0.12683"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function getPreferredLocaleChain():Array{ return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function initializeLocaleChain(_arg1:Array):void{ localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true); } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } private function getSystemPreferredLocales():Array{ var _local1:Array; if (Capabilities["languages"]){ _local1 = Capabilities["languages"]; } else { _local1 = [Capabilities.language]; }; return (_local1); } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ var _local4:Array; var _local5:int; var _local6:int; var _local7:String; var _local8:String; var _local3:ResourceModuleInfo = resourceModules[_arg1]; if (!_local3){ return; }; if (_local3.resourceModule){ _local4 = _local3.resourceModule.resourceBundles; if (_local4){ _local5 = _local4.length; _local6 = 0; while (_local6 < _local5) { _local7 = _local4[_local6].locale; _local8 = _local4[_local6].bundleName; removeResourceBundle(_local7, _local8); _local6++; }; }; }; resourceModules[_arg1] = null; delete resourceModules[_arg1]; _local3.moduleInfo.unload(); if (_arg2){ this.update(); }; } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 114
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.skins.*; import mx.graphics.*; import mx.utils.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.5.0.12683"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = Math.max((radius - Math.max(_local6.top, _local6.left, _local6.right)), 0); _local10 = (bRoundedCorners) ? Math.max((radius - Math.max(_local6.bottom, _local6.left, _local6.right)), 0) : 0; radiusObj = {tl:_local9, tr:_local9, bl:_local10, br:_local10}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local11 = getStyle("highlightAlphas"); _local12 = (_local11) ? _local11[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local12, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 115
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.5.0.12683"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); if (_local3){ blendMode = _local3; }; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 116
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.5.0.12683"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 117
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.display.*; import mx.core.*; import mx.styles.*; import flash.geom.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.5.0.12683"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return ((_styleName) ? _styleName.getStyle(_arg1) : null); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } 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{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 118
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import flash.display.*; import flash.net.*; import mx.core.*; import flash.utils.*; import mx.styles.*; import flash.system.*; import flash.geom.*; import mx.resources.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.5.0.12683"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ if (((((_backgroundImageBounds) && (_arg1))) && (_backgroundImageBounds.equals(_arg1)))){ return; }; _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 119
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import mx.managers.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.5.0.12683"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 120
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 121
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 122
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 123
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 124
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 125
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.5.0.12683"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 126
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.5.0.12683"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 127
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.5.0.12683"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 128
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.5.0.12683"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 129
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.5.0.12683"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 130
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.5.0.12683"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 131
//FlashConnect (org.flashdevelop.utils.FlashConnect) package org.flashdevelop.utils { import flash.events.*; import flash.xml.*; import flash.utils.*; import flash.net.*; public class FlashConnect { public static var onReturnData:Function; public static var port:Number = 1978; private static var interval:Number; private static var messages:Array; public static var onConnection:Function; public static var host:String = "127.0.0.1"; public static var status:Number = 0; private static var socket:XMLSocket; public static var limit:Number = 1000; private static var counter:Number; private static function onIOError(_arg1:IOErrorEvent):void{ FlashConnect.status = -1; if (FlashConnect.onConnection != null){ FlashConnect.onConnection(); }; } public static function atrace(... _args):void{ var _local2:String = _args.join(","); var _local3:XMLNode = createMsgNode(_local2, TraceLevel.DEBUG); FlashConnect.send(_local3); } private static function createMsgNode(_arg1:String, _arg2:Number):XMLNode{ if (isNaN(_arg2)){ _arg2 = TraceLevel.DEBUG; }; var _local3:XMLNode = new XMLNode(1, null); var _local4:XMLNode = new XMLNode(3, encodeURI(_arg1)); _local3.attributes.state = _arg2.toString(); _local3.attributes.cmd = "trace"; _local3.nodeName = "message"; _local3.appendChild(_local4); return (_local3); } public static function send(_arg1:XMLNode):void{ if (messages == null){ initialize(); }; messages.push(_arg1); } private static function onSecurityError(_arg1:SecurityErrorEvent):void{ FlashConnect.status = -1; if (FlashConnect.onConnection != null){ FlashConnect.onConnection(); }; } public static function flush():Boolean{ if (status){ sendStack(); return (true); }; return (false); } public static function trace(_arg1:Object, _arg2:Number=1):void{ var _local3:XMLNode = createMsgNode(_arg1.toString(), _arg2); FlashConnect.send(_local3); } private static function onConnect(_arg1:Event):void{ FlashConnect.status = 1; if (FlashConnect.onConnection != null){ FlashConnect.onConnection(); }; } public static function initialize():int{ if (socket){ return (status); }; counter = 0; messages = new Array(); socket = new XMLSocket(); socket.addEventListener(Event.CLOSE, onClose); socket.addEventListener(DataEvent.DATA, onData); socket.addEventListener(Event.CONNECT, onConnect); socket.addEventListener(IOErrorEvent.IO_ERROR, onIOError); socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); interval = setInterval(sendStack, 50); socket.connect(host, port); return (status); } private static function onClose(_arg1:Event):void{ socket = null; FlashConnect.status = -1; if (FlashConnect.onConnection != null){ FlashConnect.onConnection(); }; } private static function sendStack():void{ var _local1:XMLDocument; var _local2:XMLNode; var _local3:String; var _local4:XMLNode; var _local5:XMLNode; if ((((messages.length > 0)) && ((status == 1)))){ _local1 = new XMLDocument(); _local2 = _local1.createElement("flashconnect"); while (messages.length != 0) { counter++; if (counter > limit){ clearInterval(interval); _local3 = new String("FlashConnect aborted. You have reached the limit of maximum messages."); _local4 = createMsgNode(_local3, TraceLevel.ERROR); _local2.appendChild(_local4); messages = new Array(); break; } else { _local5 = XMLNode(messages.shift()); _local2.appendChild(_local5); }; }; _local1.appendChild(_local2); if (((socket) && (socket.connected))){ socket.send(_local1); }; counter = 0; }; } private static function onData(_arg1:DataEvent):void{ FlashConnect.status = 1; if (FlashConnect.onReturnData != null){ FlashConnect.onReturnData(_arg1.data); }; } public static function mtrace(_arg1:Object, _arg2:String, _arg3:String, _arg4:Number):void{ var _local5:String = _arg3.split("/").join("\\"); var _local6:String = ((((_local5 + ":") + _arg4) + ":") + _arg1); FlashConnect.trace(_local6, TraceLevel.DEBUG); } } }//package org.flashdevelop.utils
Section 132
//TraceLevel (org.flashdevelop.utils.TraceLevel) package org.flashdevelop.utils { public class TraceLevel { public static const DEBUG:Number = 1; public static const FATAL:Number = 4; public static const WARNING:Number = 2; public static const INFO:Number = 0; public static const ERROR:Number = 3; } }//package org.flashdevelop.utils
Section 133
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 134
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 135
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 136
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 137
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 138
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 139
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 140
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 141
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 142
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 143
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 144
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 145
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 146
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 147
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 148
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 149
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 150
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 151
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 152
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 153
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 154
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package

Library Items

Symbol 1 GraphicUsed by:23
Symbol 2 GraphicUsed by:23
Symbol 3 GraphicUsed by:7
Symbol 4 GraphicUsed by:7
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:3 4 5 6Used by:23
Symbol 8 FontUsed by:9 58 73 74 75 80 81 82 85 88 91 101 103 106 107 112 116 119 120 121 122 133 140 141 142 143 144 145 150 154 156 162 169 201 202 210 213 215
Symbol 9 TextUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:23
Symbol 11 GraphicUsed by:16
Symbol 12 GraphicUsed by:16
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:13 14Used by:16
Symbol 16 MovieClipUses:11 12 15Used by:23
Symbol 17 GraphicUsed by:23
Symbol 18 GraphicUsed by:19 22 195
Symbol 19 MovieClipUses:18Used by:23 195
Symbol 20 GraphicUsed by:21 195
Symbol 21 MovieClipUses:20Used by:23 195
Symbol 22 MovieClipUses:18Used by:23 195
Symbol 23 MovieClip {com.conceptis.res.loader.light.Preloader} [com.conceptis.res.loader.light.Preloader]Uses:1 2 7 10 16 17 19 21 22
Symbol 24 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle00}
Symbol 25 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle01}
Symbol 26 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle02}
Symbol 27 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle20}
Symbol 28 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle03}
Symbol 29 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle21}
Symbol 30 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle22}
Symbol 31 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle23}
Symbol 32 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle24}
Symbol 33 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle25}
Symbol 34 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle26}
Symbol 35 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle08}
Symbol 36 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle09}
Symbol 37 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle27}
Symbol 38 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle28}
Symbol 39 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle29}
Symbol 40 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle04}
Symbol 41 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle05}
Symbol 42 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle06}
Symbol 43 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle07}
Symbol 44 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle13}
Symbol 45 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle14}
Symbol 46 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle11}
Symbol 47 BinaryData {com.conceptis.gen.loader.light.genLightParams_poResources}
Symbol 48 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle12}
Symbol 49 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle10}
Symbol 50 BinaryData {com.conceptis.gen.loader.light.genLightParams_poConfig}
Symbol 51 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle19}
Symbol 52 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle17}
Symbol 53 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle18}
Symbol 54 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle15}
Symbol 55 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPuzzle16}
Symbol 56 BinaryData {com.conceptis.gen.loader.light.genLightParams_poPlayer}
Symbol 57 GraphicUsed by:63
Symbol 58 EditableTextUses:8 72 229 231Used by:63
Symbol 59 BitmapUsed by:62
Symbol 60 BitmapUsed by:62
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61 60 59Used by:63
Symbol 63 MovieClip {com.conceptis.res.loader.light.OpenScreen} [com.conceptis.res.loader.light.OpenScreen]Uses:57 58 62
Symbol 64 GraphicUsed by:65
Symbol 65 Button {com.conceptis.res.loader.light.ModalButton} [com.conceptis.res.loader.light.ModalButton]Uses:64
Symbol 66 GraphicUsed by:67 97 148 164 170
Symbol 67 MovieClipUses:66Used by:97
Symbol 68 GraphicUsed by:78
Symbol 69 GraphicUsed by:77 172 222
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:70Used by:77
Symbol 72 FontUsed by:58 73 74 75 92 105 106 107 119 120 121 122 134 135 136 137 138 139 146 158 159 161 165 169 181 183 202
Symbol 73 EditableTextUses:8 72 229 231Used by:77
Symbol 74 EditableTextUses:8 72 229 231Used by:77
Symbol 75 EditableTextUses:8 72 229 231Used by:77
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]Uses:69 71 73 74 75 76Used by:78
Symbol 78 MovieClipUses:68 77Used by:97
Symbol 79 GraphicUsed by:97
Symbol 80 TextUses:8Used by:97
Symbol 81 TextUses:8Used by:97
Symbol 82 TextUses:8Used by:90 97
Symbol 83 GraphicUsed by:87 89 90
Symbol 84 GraphicUsed by:87 89 90
Symbol 85 TextUses:8Used by:87
Symbol 86 GraphicUsed by:87 89 90
Symbol 87 ButtonUses:83 84 85 86Used by:97
Symbol 88 TextUses:8Used by:89
Symbol 89 ButtonUses:83 84 88 86Used by:97
Symbol 90 ButtonUses:83 84 82 86Used by:97
Symbol 91 TextUses:8Used by:97
Symbol 92 TextUses:72Used by:97
Symbol 93 GraphicUsed by:96
Symbol 94 GraphicUsed by:96
Symbol 95 GraphicUsed by:96
Symbol 96 ButtonUses:93 94 95Used by:97 147 164 170
Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog]Uses:67 66 78 79 80 81 82 87 89 90 91 92 96
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:147 170
Symbol 100 GraphicUsed by:147
Symbol 101 TextUses:8Used by:118 147
Symbol 102 GraphicUsed by:147
Symbol 103 TextUses:8Used by:114 147
Symbol 104 GraphicUsed by:114 147
Symbol 105 TextUses:72Used by:147
Symbol 106 EditableTextUses:8 72 229 231Used by:147
Symbol 107 EditableTextUses:8 72 229 231Used by:147
Symbol 108 BitmapUsed by:109
Symbol 109 GraphicUses:108Used by:147
Symbol 110 GraphicUsed by:114 118 216
Symbol 111 GraphicUsed by:114 118
Symbol 112 TextUses:8Used by:114
Symbol 113 GraphicUsed by:114
Symbol 114 ButtonUses:110 103 104 111 112 113Used by:147 170
Symbol 115 GraphicUsed by:118
Symbol 116 TextUses:8Used by:118
Symbol 117 GraphicUsed by:118
Symbol 118 ButtonUses:110 101 115 111 116 117Used by:147 170
Symbol 119 EditableTextUses:8 72 229 231Used by:147
Symbol 120 EditableTextUses:8 72 229 231Used by:147
Symbol 121 EditableTextUses:8 72 229 231Used by:147
Symbol 122 EditableTextUses:8 72 229 231Used by:147
Symbol 123 BitmapUsed by:125
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:123 124Used by:147
Symbol 126 GraphicUsed by:147
Symbol 127 GraphicUsed by:147
Symbol 128 GraphicUsed by:147
Symbol 129 GraphicUsed by:147
Symbol 130 GraphicUsed by:147
Symbol 131 GraphicUsed by:147
Symbol 132 GraphicUsed by:147
Symbol 133 TextUses:8Used by:147
Symbol 134 TextUses:72Used by:147
Symbol 135 TextUses:72Used by:147
Symbol 136 TextUses:72Used by:147
Symbol 137 TextUses:72Used by:147
Symbol 138 TextUses:72Used by:147
Symbol 139 TextUses:72Used by:147
Symbol 140 TextUses:8Used by:147
Symbol 141 TextUses:8Used by:147
Symbol 142 TextUses:8Used by:147
Symbol 143 TextUses:8Used by:147
Symbol 144 TextUses:8Used by:147
Symbol 145 TextUses:8Used by:147
Symbol 146 TextUses:72Used by:147
Symbol 147 MovieClip {com.conceptis.res.loader.light.HowToDialog} [com.conceptis.res.loader.light.HowToDialog]Uses:99 100 101 102 103 104 105 106 107 109 114 118 96 119 120 121 122 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
Symbol 148 MovieClipUses:66Used by:164
Symbol 149 GraphicUsed by:157
Symbol 150 TextUses:8Used by:157
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:157
Symbol 153 GraphicUsed by:157
Symbol 154 TextUses:8Used by:157
Symbol 155 GraphicUsed by:157
Symbol 156 TextUses:8Used by:157
Symbol 157 ButtonUses:149 150 152 153 154 155 156Used by:164
Symbol 158 TextUses:72Used by:164
Symbol 159 TextUses:72Used by:164
Symbol 160 GraphicUsed by:163 196 212
Symbol 161 TextUses:72Used by:163
Symbol 162 TextUses:8Used by:163
Symbol 163 MovieClipUses:160 161 162Used by:164
Symbol 164 MovieClip {com.conceptis.res.loader.light.AboutDialog} [com.conceptis.res.loader.light.AboutDialog]Uses:66 148 157 158 159 96 163
Symbol 165 TextUses:72Used by:170
Symbol 166 BitmapUsed by:168
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:166 167Used by:170
Symbol 169 EditableTextUses:8 72 229 231Used by:170
Symbol 170 MovieClip {com.conceptis.res.loader.light.RulesDialog} [com.conceptis.res.loader.light.RulesDialog]Uses:99 66 165 168 169 114 118 96
Symbol 171 Sound {com.conceptis.res.loader.ShowDialogSound} [com.conceptis.res.loader.ShowDialogSound]
Symbol 172 MovieClipUses:69Used by:196
Symbol 173 GraphicUsed by:196
Symbol 174 GraphicUsed by:176
Symbol 175 GraphicUsed by:176
Symbol 176 ButtonUses:174 175Used by:196
Symbol 177 GraphicUsed by:179
Symbol 178 GraphicUsed by:179
Symbol 179 ButtonUses:177 178Used by:196
Symbol 180 GraphicUsed by:184
Symbol 181 TextUses:72Used by:184
Symbol 182 GraphicUsed by:184
Symbol 183 TextUses:72Used by:184
Symbol 184 ButtonUses:180 181 182 183Used by:196
Symbol 185 GraphicUsed by:188
Symbol 186 GraphicUsed by:188
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:185 186 187Used by:196
Symbol 189 GraphicUsed by:192
Symbol 190 GraphicUsed by:192
Symbol 191 GraphicUsed by:192
Symbol 192 ButtonUses:189 190 191Used by:196
Symbol 193 GraphicUsed by:195
Symbol 194 GraphicUsed by:195
Symbol 195 ButtonUses:193 194 19 21 22 18 20Used by:196
Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard]Uses:160 172 173 176 179 184 188 192 195
Symbol 197 GraphicUsed by:198
Symbol 198 MovieClipUses:197Used by:222
Symbol 199 GraphicUsed by:200
Symbol 200 MovieClip {haslightres_fla.saveCaption_8} [haslightres_fla.saveCaption_8]Uses:199Used by:222
Symbol 201 EditableTextUses:8Used by:222
Symbol 202 EditableTextUses:8 72 229 231Used by:222
Symbol 203 GraphicUsed by:208
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204Used by:208
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClip {com.conceptis.res.icons.SaveIcon} [com.conceptis.res.icons.SaveIcon]Uses:203 205 207Used by:222
Symbol 209 GraphicUsed by:212
Symbol 210 TextUses:8Used by:212
Symbol 211 GraphicUsed by:212
Symbol 212 ButtonUses:209 210 160 211Used by:222
Symbol 213 TextUses:8Used by:216
Symbol 214 GraphicUsed by:216
Symbol 215 TextUses:8Used by:216
Symbol 216 ButtonUses:110 213 214 215Used by:222
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:222
Symbol 219 GraphicUsed by:221
Symbol 220 GraphicUsed by:221
Symbol 221 ButtonUses:219 220Used by:222
Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog]Uses:198 69 200 201 202 208 212 216 218 221
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClipUses:223Used by:235
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:225Used by:235
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClip {genloaderres_fla.aboutBoxCaption_4} [genloaderres_fla.aboutBoxCaption_4]Uses:227Used by:235
Symbol 229 FontUsed by:58 73 74 75 106 107 119 120 121 122 169 202 230
Symbol 230 EditableTextUses:229Used by:235
Symbol 231 FontUsed by:58 73 74 75 106 107 119 120 121 122 169 202 232
Symbol 232 EditableTextUses:231Used by:235
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClipUses:233Used by:235
Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox]Uses:224 226 228 230 232 234
Symbol 236 Font {com.conceptis.gen.loader.light.genLightLoader_LightFontClass}

Instance Names

"slider"Symbol 16 MovieClip Frame 1Symbol 15 MovieClip
"loadingText"Symbol 23 MovieClip {com.conceptis.res.loader.light.Preloader} [com.conceptis.res.loader.light.Preloader] Frame 1Symbol 7 MovieClip
"clickText"Symbol 23 MovieClip {com.conceptis.res.loader.light.Preloader} [com.conceptis.res.loader.light.Preloader] Frame 1Symbol 10 MovieClip
"progressPen"Symbol 23 MovieClip {com.conceptis.res.loader.light.Preloader} [com.conceptis.res.loader.light.Preloader] Frame 1Symbol 16 MovieClip
"_sep"Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine] Frame 1Symbol 71 MovieClip
"_number"Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine] Frame 1Symbol 73 EditableText
"_status"Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine] Frame 1Symbol 74 EditableText
"_name"Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine] Frame 1Symbol 75 EditableText
"_line0"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line1"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line2"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line3"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line4"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line5"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line6"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line7"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line8"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_line9"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine]
"_tabPuzzles2"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 78 MovieClip
"_tabPuzzles1"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 78 MovieClip
"_tabPuzzles0"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 78 MovieClip
"_tabButton0"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 87 Button
"_tabButton2"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 89 Button
"_tabButton1"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 90 Button
"_closeButton"Symbol 97 MovieClip {com.conceptis.res.loader.light.NewGameDialog} [com.conceptis.res.loader.light.NewGameDialog] Frame 1Symbol 96 Button
"_backButton"Symbol 147 MovieClip {com.conceptis.res.loader.light.HowToDialog} [com.conceptis.res.loader.light.HowToDialog] Frame 1Symbol 114 Button
"_nextButton"Symbol 147 MovieClip {com.conceptis.res.loader.light.HowToDialog} [com.conceptis.res.loader.light.HowToDialog] Frame 1Symbol 118 Button
"_closeButton"Symbol 147 MovieClip {com.conceptis.res.loader.light.HowToDialog} [com.conceptis.res.loader.light.HowToDialog] Frame 1Symbol 96 Button
"_moreButton"Symbol 164 MovieClip {com.conceptis.res.loader.light.AboutDialog} [com.conceptis.res.loader.light.AboutDialog] Frame 1Symbol 157 Button
"_closeButton"Symbol 164 MovieClip {com.conceptis.res.loader.light.AboutDialog} [com.conceptis.res.loader.light.AboutDialog] Frame 1Symbol 96 Button
"_moreStatic"Symbol 164 MovieClip {com.conceptis.res.loader.light.AboutDialog} [com.conceptis.res.loader.light.AboutDialog] Frame 1Symbol 163 MovieClip
"_backButton"Symbol 170 MovieClip {com.conceptis.res.loader.light.RulesDialog} [com.conceptis.res.loader.light.RulesDialog] Frame 1Symbol 114 Button
"_nextButton"Symbol 170 MovieClip {com.conceptis.res.loader.light.RulesDialog} [com.conceptis.res.loader.light.RulesDialog] Frame 1Symbol 118 Button
"_closeButton"Symbol 170 MovieClip {com.conceptis.res.loader.light.RulesDialog} [com.conceptis.res.loader.light.RulesDialog] Frame 1Symbol 96 Button
"backBoard"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 172 MovieClip
"_newButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 176 Button
"_aboutButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 179 Button
"_moreButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 184 Button
"_rulesButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 188 Button
"_howtoButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 192 Button
"_logoButton"Symbol 196 MovieClip {com.conceptis.res.loader.light.Dashboard} [com.conceptis.res.loader.light.Dashboard] Frame 1Symbol 195 Button
"fg"Symbol 208 MovieClip {com.conceptis.res.icons.SaveIcon} [com.conceptis.res.icons.SaveIcon] Frame 1Symbol 205 MovieClip
"bg2"Symbol 208 MovieClip {com.conceptis.res.icons.SaveIcon} [com.conceptis.res.icons.SaveIcon] Frame 1Symbol 207 MovieClip
"frame"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 198 MovieClip
"captionBar"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 200 MovieClip {haslightres_fla.saveCaption_8} [haslightres_fla.saveCaption_8]
"_title"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 201 EditableText
"_message"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 202 EditableText
"_noButton"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 212 Button
"_yesButton"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 216 Button
"headings"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 218 MovieClip
"_closeButton"Symbol 222 MovieClip {com.conceptis.res.loader.light.SaveDialog} [com.conceptis.res.loader.light.SaveDialog] Frame 1Symbol 221 Button
"frame"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 224 MovieClip
"background"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 226 MovieClip
"captionBar"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 228 MovieClip {genloaderres_fla.aboutBoxCaption_4} [genloaderres_fla.aboutBoxCaption_4]
"title"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 230 EditableText
"message"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 232 EditableText
"headings"Symbol 235 MovieClip {com.conceptis.res.loader.AboutBox} [com.conceptis.res.loader.AboutBox] Frame 1Symbol 234 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 30 seconds
ExportAssets (56)Timeline Frame 1Symbol 23 as "com.conceptis.res.loader.light.Preloader"
ExportAssets (56)Timeline Frame 3Symbol 63 as "com.conceptis.res.loader.light.OpenScreen"
ExportAssets (56)Timeline Frame 3Symbol 65 as "com.conceptis.res.loader.light.ModalButton"
ExportAssets (56)Timeline Frame 3Symbol 97 as "com.conceptis.res.loader.light.NewGameDialog"
ExportAssets (56)Timeline Frame 3Symbol 147 as "com.conceptis.res.loader.light.HowToDialog"
ExportAssets (56)Timeline Frame 3Symbol 164 as "com.conceptis.res.loader.light.AboutDialog"
ExportAssets (56)Timeline Frame 3Symbol 170 as "com.conceptis.res.loader.light.RulesDialog"
ExportAssets (56)Timeline Frame 3Symbol 171 as "com.conceptis.res.loader.ShowDialogSound"
ExportAssets (56)Timeline Frame 3Symbol 196 as "com.conceptis.res.loader.light.Dashboard"
ExportAssets (56)Timeline Frame 3Symbol 222 as "com.conceptis.res.loader.light.SaveDialog"
ExportAssets (56)Timeline Frame 3Symbol 77 as "com.conceptis.res.loader.light.NewGameLine"
ExportAssets (56)Timeline Frame 3Symbol 235 as "com.conceptis.res.loader.AboutBox"
ExportAssets (56)Timeline Frame 3Symbol 208 as "com.conceptis.res.icons.SaveIcon"
ExportAssets (56)Timeline Frame 3Symbol 200 as "haslightres_fla.saveCaption_8"
ExportAssets (56)Timeline Frame 3Symbol 228 as "genloaderres_fla.aboutBoxCaption_4"
SerialNumber (41)Timeline Frame 1

Labels

"com_conceptis_gen_loader_light_genLightPreloader"Frame 1
"com_conceptis_gen_loader_light_genLightInitializer"Frame 2
"com_conceptis_gen_loader_light_genLightLoader"Frame 3
"_up"Symbol 77 MovieClip {com.conceptis.res.loader.light.NewGameLine} [com.conceptis.res.loader.light.NewGameLine] Frame 1




http://swfchan.com/27/130592/info.shtml
Created: 22/2 -2019 03:00:46 Last modified: 22/2 -2019 03:00:46 Server time: 14/11 -2024 17:40:13