Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
_arg1 = (_arg1 - 1);
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
_arg1 = (_arg1 - 1);
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 = (_arg1 - 1);
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:String = "\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:String = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!(_inited)){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!(_inited)){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!(updateTweenByIndex(_local1))){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!(Boolean(_arg1))){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!(_inited)){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!(Boolean(_local8))){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!(Boolean(_tweenList))){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!(_local7)){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!(_local2)){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!(tTweening.hasStarted)){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!(Boolean(_tweenList))){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!(Boolean(pTweening.onError))){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!(Boolean(_tweenList))){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!(Boolean(_arg1))){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!(_inited)){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {overwrite:true, time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!(_local11[_local5])){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!(Boolean(_local13))){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
};
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!(_inited)){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!(Boolean(_tweenList))){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!(Boolean(_tweenList))){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!(Boolean(_tweenList))){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!(Boolean(_tweenList))){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!(_inited)){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!(_arg1)){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local3:String;
var _local1:String = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean = true;
for (_local3 in properties) {
if (!(_local2)){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _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
//_be719 (com.herocraft._be719)
package com.herocraft {
import flash.display.*;
import caurina.transitions.*;
public class _be719 {
private var icon:DisplayObject;
private var _qv1299:DisplayObjectContainer;
private var _cu501:uint;
private var _xh1280:DisplayObjectContainer;
private var _ks658:String;
private var _hh223:Function;
private var _nq446:_pg1228;
public static const _ti710:uint = 0;
public static const _lk422:uint = 1;
public static const _nv380:uint = 2;
public function _be719(_arg1:_pg1228){
this._qv1299 = new Sprite();
this._xh1280 = new Sprite();
this._nq446 = _arg1;
this._cu501 = _lk422;
_qv1299.addChild(_xh1280);
}
public function _nc758(_arg1:uint):void{
if (_arg1 == _cu501){
return;
};
this._cu501 = _arg1;
_pi1402();
}
public function getControl():DisplayObject{
return (_qv1299);
}
public function _uf510(_arg1:DisplayObject):void{
if (this.icon == _arg1){
return;
};
this.icon = _arg1;
_qv1299.addChild(_arg1);
_pi1402();
}
public function _ma990(_arg1:String):void{
var _local2:uint;
if (((!((_ks658 == null))) && ((_ks658 == _arg1)))){
return;
};
while (_xh1280.numChildren != 0) {
_xh1280.removeChildAt(0);
};
_nq446._jw758(_xh1280, 0, 0, _arg1);
if (((!((_arg1 == null))) && (!((_hh223 == null))))){
_local2 = 0;
while (_local2 < _arg1.length) {
if (((!((_ks658 == null))) && (!((_arg1.charCodeAt(_local2) == _ks658.charCodeAt(_local2)))))){
_hh223.call(null, _xh1280.getChildAt(_local2));
};
_local2++;
};
};
this._ks658 = _arg1;
_pi1402();
}
public function _iy13(_arg1:Function):void{
if (_hh223 == _arg1){
return;
};
_hh223 = _arg1;
}
private function _pi1402():void{
var _local1:int;
if (icon != null){
icon.x = _local1;
_local1 = (_local1 + icon.width);
};
_xh1280.x = _local1;
var _local2:uint = _qv1299.width;
switch (_cu501){
case _ti710:
if (icon != null){
icon.x = (icon.x - Math.round((_local2 / 2)));
};
_xh1280.x = (_xh1280.x - Math.round((_local2 / 2)));
break;
case _nv380:
if (icon != null){
icon.x = (icon.x - _local2);
};
_xh1280.x = (_xh1280.x - _local2);
break;
};
}
public function dispose():void{
_nq446 = null;
while (_qv1299.numChildren != 0) {
_qv1299.removeChildAt(0);
};
_qv1299 = null;
while (_xh1280.numChildren != 0) {
_xh1280.removeChildAt(0);
};
_xh1280 = null;
icon = null;
_ks658 = null;
}
public static function _dm545(_arg1:Number=1.3, _arg2:Number=0.1):Function{
var scale = _arg1;
var time = _arg2;
return (function (_arg1:Bitmap):void{
var _local2:* = _arg1.parent;
var _local3:* = _local2.getChildIndex(_arg1);
var _local4:* = new Sprite();
var _local5:* = Math.round((_arg1.width / 2));
var _local6:* = Math.round((_arg1.height / 2));
_local4.x = (_arg1.x + _local5);
_local4.y = (_arg1.y + _local6);
_local4.addChild(_arg1);
_local2.addChildAt(_local4, _local3);
_arg1.x = -(_local5);
_arg1.y = -(_local6);
Tweener.addTween(_local4, {scaleX:scale, scaleY:scale, time:time, transition:"linear"});
Tweener.addTween(_local4, {scaleX:1, scaleY:1, time:time, delay:time, transition:"linear"});
});
}
}
}//package com.herocraft
Section 10
//_dk1260 (com.herocraft._dk1260)
package com.herocraft {
import flash.events.*;
import flash.display.*;
import menu.*;
import de.polygonal.ds.*;
import game.*;
public class _dk1260 {
private var _qv1299:Sprite;
private static const _vi285:uint = 5;
private static var _yw1107:Class = _dk1260__yw1107;
private static var _oh1153:Class = _dk1260__oh1153;
private static var _cq1195:Class = _dk1260__cq1195;
private static var _nx752:Class = _dk1260__nx752;
private static var _cl1445:Class = _dk1260__cl1445;
private static var _na1051:Class = _dk1260__na1051;
private static var _iq942:Class = _dk1260__iq942;
private static var _hd361:Class = _dk1260__hd361;
private static var _jy1223:Class = _dk1260__jy1223;
private static var _pd273:Class = _dk1260__pd273;
public function _dk1260(){
var _ow1114:_pg1228;
var id:String;
var _jl908:Bitmap;
var _vl769:_xy783;
super();
var flags:HashMap = new HashMap();
flags.insert("cz", new _iq942());
flags.insert("de", new _nx752());
flags.insert("es", new _na1051());
flags.insert("fr", new _pd273());
flags.insert("it", new _cl1445());
flags.insert("pl", new _yw1107());
flags.insert("pt", new _oh1153());
flags.insert("ru", new _cq1195());
flags.insert("tr", new _hd361());
flags.insert("en", new _jy1223());
_qv1299 = new Sprite();
_ow1114 = _sq637.getInstance()._uv988();
var _kj589:Array = _ow1114._wg1143();
var _tp25:int;
var _pd1061:Function = function (_arg1:Event):void{
var _local2:_xy783 = (_arg1.target as _xy783);
var _local3:String = (_local2._cl267() as String);
_ow1114._le749(_local3);
trace(("set lang " + _local3));
};
var _nw512:uint;
while (_nw512 < _kj589.length) {
id = _kj589[_nw512];
_jl908 = flags.find(id);
if (_jl908 != null){
_vl769 = new _xy783(-1, _jl908);
_vl769._by292(id);
_qv1299.addChild(_vl769);
_vl769.x = _tp25;
_tp25 = (_tp25 + (_vl769.width + _vi285));
_vl769.addEventListener(_xy783._ir1372, _pd1061);
} else {
trace((("Error: flag " + id) + " not found."));
};
_nw512 = (_nw512 + 1);
};
_ow1114.addEventListener(_pg1228._un189, refresh);
refresh();
}
private function refresh(_arg1:Event=null):void{
var _local7:DisplayObject;
var _local2:_pg1228 = _sq637.getInstance()._uv988();
var _local3:Array = _local2._wg1143();
var _local4:String = _local2._yj1110();
var _local5:int = _local3.indexOf(_local4);
var _local6:uint;
while (_local6 < _qv1299.numChildren) {
_local7 = _qv1299.getChildAt(_local6);
if (_local6 == _local5){
_local7.alpha = 1;
} else {
_local7.alpha = 0.5;
};
_local6++;
};
}
public function getControl():DisplayObject{
return (_qv1299);
}
}
}//package com.herocraft
Section 11
//_dk1260__cl1445 (com.herocraft._dk1260__cl1445)
package com.herocraft {
import mx.core.*;
public class _dk1260__cl1445 extends BitmapAsset {
}
}//package com.herocraft
Section 12
//_dk1260__cq1195 (com.herocraft._dk1260__cq1195)
package com.herocraft {
import mx.core.*;
public class _dk1260__cq1195 extends BitmapAsset {
}
}//package com.herocraft
Section 13
//_dk1260__hd361 (com.herocraft._dk1260__hd361)
package com.herocraft {
import mx.core.*;
public class _dk1260__hd361 extends BitmapAsset {
}
}//package com.herocraft
Section 14
//_dk1260__iq942 (com.herocraft._dk1260__iq942)
package com.herocraft {
import mx.core.*;
public class _dk1260__iq942 extends BitmapAsset {
}
}//package com.herocraft
Section 15
//_dk1260__jy1223 (com.herocraft._dk1260__jy1223)
package com.herocraft {
import mx.core.*;
public class _dk1260__jy1223 extends BitmapAsset {
}
}//package com.herocraft
Section 16
//_dk1260__na1051 (com.herocraft._dk1260__na1051)
package com.herocraft {
import mx.core.*;
public class _dk1260__na1051 extends BitmapAsset {
}
}//package com.herocraft
Section 17
//_dk1260__nx752 (com.herocraft._dk1260__nx752)
package com.herocraft {
import mx.core.*;
public class _dk1260__nx752 extends BitmapAsset {
}
}//package com.herocraft
Section 18
//_dk1260__oh1153 (com.herocraft._dk1260__oh1153)
package com.herocraft {
import mx.core.*;
public class _dk1260__oh1153 extends BitmapAsset {
}
}//package com.herocraft
Section 19
//_dk1260__pd273 (com.herocraft._dk1260__pd273)
package com.herocraft {
import mx.core.*;
public class _dk1260__pd273 extends BitmapAsset {
}
}//package com.herocraft
Section 20
//_dk1260__yw1107 (com.herocraft._dk1260__yw1107)
package com.herocraft {
import mx.core.*;
public class _dk1260__yw1107 extends BitmapAsset {
}
}//package com.herocraft
Section 21
//_gj681 (com.herocraft._gj681)
package com.herocraft {
public final class _gj681 {
private var _lo39:Number;
private var _st163:Number;
private var _id250:_gj681;
public function _gj681(_arg1:Number=0, _arg2:uint=0):void{
_st163 = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function toString():String{
var _local1:String = String.fromCharCode((_lo39 ^ _st163));
if (_id250 != null){
_local1 = (_local1 + _id250.toString());
};
return (_local1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
_lo39 = (_local3.charCodeAt(_temp1) ^ _st163);
if (_arg2 < _local3.length){
_id250 = new _gj681(_arg1, _arg2);
} else {
_id250 = null;
};
_gi652();
}
public function get value():Number{
return (Number(this.toString()));
}
public function _gi652():void{
var _local1:uint = int((2147483647 * Math.random()));
_lo39 = (_lo39 ^ (_local1 ^ _st163));
_st163 = _local1;
}
public function _gm948(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package com.herocraft
Section 22
//_gq1345 (com.herocraft._gq1345)
package com.herocraft {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class _gq1345 {
private var _da413:Array;
public function _gq1345(){
_da413 = new Array();
}
public function _ou177(_arg1:uint):BitmapData{
return (_da413[_arg1]);
}
public static function _vt481(_arg1:BitmapData, _arg2:ByteArray):_gq1345{
var _local7:Rectangle;
var _local8:BitmapData;
var _local3:_gq1345 = new (_gq1345);
var _local4:Point = new Point();
var _local5:uint = _arg2.readUnsignedShort();
var _local6:uint;
while (_local6 < _local5) {
_local7 = new Rectangle(_arg2.readShort(), _arg2.readShort(), _arg2.readUnsignedByte(), _arg2.readUnsignedByte());
_local8 = new BitmapData(_local7.width, _local7.height);
_local8.copyPixels(_arg1, _local7, _local4);
_local3._da413.push(_local8);
_local6++;
};
return (_local3);
}
}
}//package com.herocraft
Section 23
//_mk278 (com.herocraft._mk278)
package com.herocraft {
import flash.utils.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
public class _mk278 extends Sprite {
private var _eb1314:uint;
private var _wv1270:Array;
private var _ry987:_gq1345;
private var _ir838:int;
private var id:uint;
private var _uw1301:Timer;
private var _jd682:Boolean;
private var _hi1180:Point;
private var _mj648:Array;
public static const _io469:String = "firePointFrame";
public static const _bw1056:String = "finishedPlaying";
public static const _dt502:String = "frameChange";
private static var _es35:Timer;
public function _mk278(_arg1:uint=0){
this.id = _arg1;
this._ir838 = -1;
_jd682 = false;
}
public function stop():void{
if (_uw1301 != null){
_uw1301.removeEventListener(TimerEvent.TIMER, _sh852);
};
}
public function _nw1245():Point{
return (_hi1180);
}
public function _mq1416():uint{
return (id);
}
public function isDone():Boolean{
return ((_eb1314 == (_wv1270.length - 1)));
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
if (_arg1 == _dt502){
_jd682 = true;
};
}
public function _wl1286():uint{
return (_eb1314);
}
public function clone():_mk278{
var _local1:_mk278 = new _mk278();
_local1._wv1270 = _wv1270;
_local1.id = id;
_local1._ry987 = _ry987;
_local1._hi1180 = _hi1180;
_local1._ir838 = _ir838;
_local1._uw1301 = _uw1301;
_local1._mj648 = new Array();
_local1._jt1439(0);
return (_local1);
}
public function dispose():void{
stop();
while (numChildren != 0) {
removeChildAt(0);
};
if (_wv1270 == null){
return;
};
_mj648.length = 0;
_mj648 = null;
_ry987 = null;
_wv1270 = null;
_hi1180 = null;
_uw1301 = null;
}
private function _sh852(_arg1:Event):void{
if (_wv1270 == null){
dispose();
return;
};
_jt1439((_eb1314 + 1));
if (_wv1270 == null){
dispose();
return;
};
if (_eb1314 == (_wv1270.length - 1)){
dispatchEvent(new Event(_bw1056));
};
}
public function _ja49():uint{
return (_wv1270.length);
}
public function _jt1439(_arg1:uint):void{
var _local5:Bitmap;
var _local6:_nv1388;
if (_wv1270 == null){
return;
};
_arg1 = (_arg1 % _wv1270.length);
this._eb1314 = _arg1;
var _local2:Frame = _wv1270[_arg1];
var _local3:uint = Math.max(_local2._jd248.length, _mj648.length);
var _local4:uint;
while (_local4 < _local3) {
if (_mj648.length <= _local4){
_local5 = new Bitmap(_ry987._ou177(0));
_mj648.push(_local5);
addChild(_local5);
};
_local5 = _mj648[_local4];
if (_local4 < _local2._jd248.length){
_local6 = _local2._jd248[_local4];
_local5.bitmapData = _ry987._ou177(_local6._ce767);
_local5.x = _local6.x;
_local5.y = _local6.y;
if (_local6._fv1275){
_local5.scaleX = -1;
_local5.x = (_local5.x + _local5.width);
} else {
_local5.scaleX = 1;
};
_local5.visible = true;
} else {
_local5.visible = false;
};
_local4++;
};
if (_jd682){
dispatchEvent(new Event(_dt502));
};
if ((((_ir838 > 0)) && ((_eb1314 == _ir838)))){
dispatchEvent(new Event(_io469));
};
}
public function play(_arg1:Timer=null):void{
if (_wv1270 == null){
return;
};
if (_arg1 == null){
_arg1 = _is605();
};
this._uw1301 = _arg1;
this._uw1301.addEventListener(TimerEvent.TIMER, _sh852);
}
public static function _is605():Timer{
if (_es35 == null){
_es35 = new Timer(35);
_es35.start();
};
return (_es35);
}
public static function _vt481(_arg1:ByteArray, _arg2:_gq1345):Array{
var _local6:_mk278;
var _local7:int;
var _local8:uint;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Frame;
var _local13:uint;
var _local3:Array = new Array();
var _local4:uint = _arg1.readUnsignedShort();
var _local5:uint;
while (_local5 < _local4) {
_local6 = new _mk278(_local5);
_local6._ry987 = _arg2;
_local6._wv1270 = new Array();
_local6._mj648 = new Array();
_local3.push(_local6);
_local7 = _arg1.readByte();
_local6._hi1180 = null;
if ((_local7 & 128) != 0){
_local9 = _arg1.readByte();
_local10 = _arg1.readByte();
_local6._hi1180 = new Point(_local9, _local10);
_local6._ir838 = _arg1.readUnsignedByte();
_local7 = (_local7 & 127);
};
_local8 = 0;
while (_local8 < _local7) {
_local11 = _arg1.readByte();
if ((_local11 & 128) != 0){
_local13 = (_local11 & 127);
_local12 = _local6._wv1270[_local13];
} else {
_local12 = Frame._vt481(_arg1, _local11, _arg2);
};
_local6._wv1270.push(_local12);
_local8++;
};
_local6._jt1439(0);
_local5++;
};
return (_local3);
}
}
}//package com.herocraft
import flash.utils.*;
class _nv1388 {
public var _vu696:_gq1345;
public var _fv1275:Boolean;
public var _ce767:uint;
public var x:int;
public var y:int;
private function _nv1388(){
}
}
class Frame {
public var _jd248:Array;
private function Frame(){
_jd248 = new Array();
}
public static function _vt481(_arg1:ByteArray, _arg2:uint, _arg3:_gq1345):Frame{
var _local6:_nv1388;
var _local7:uint;
var _local4:Frame = new (Frame);
var _local5:uint;
while (_local5 < _arg2) {
_local6 = new _nv1388();
_local4._jd248.push(_local6);
_local6._vu696 = _arg3;
_local6.x = _arg1.readShort();
_local6.y = _arg1.readShort();
_local7 = _arg1.readUnsignedShort();
_local6._ce767 = (_local7 & 32767);
_local6._fv1275 = !(((_local7 & 0x8000) == 0));
_local5++;
};
return (_local4);
}
}
Section 24
//_pg1228 (com.herocraft._pg1228)
package com.herocraft {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import de.polygonal.ds.*;
import flash.geom.*;
public class _pg1228 extends EventDispatcher {
private var _fl1288:HashMap;
private var _dv1022:Array;
private var _tw269:int;
private var _fa1125:int;
private var _tt80:Array;
private var textWidth:int;
private var _lc148:uint;
private var _vm569:Array;
private var _tp25:int;
private var _ip184:Set;
private var _wn998:DisplayObjectContainer;
private var _ya562:uint;// = 1
private var _ho258:String;
private var _gs357:Sprite;
private var textHeight:uint;
private var _qp285:Array;
private var _vu616:_dm1104;
private static const _yy1337:uint = 4;
private static const _aq368:uint = 1;
private static const _cp861:uint = 3;
public static const _ti710:uint = 0;
private static const _py123:uint = 2;
public static const _nv380:uint = 2;
private static const _xk899:uint = 5;
private static const _ao914:uint = 2;
public static const _lk422:uint = 1;
public static const _un189:String = "lic";
private static const _nt1342:uint = 1;
public function _pg1228(){
_ip184 = new Set();
_tt80 = new Array();
_dv1022 = new Array();
_fl1288 = new HashMap();
textHeight = 23;
_gs357 = new Sprite();
}
private function _jx524(_arg1:ByteArray):void{
var _local6:uint;
var _local7:_ct1075;
var _local8:uint;
var _local9:uint;
var _local10:ByteArray;
if (textWidth <= 0){
return;
};
var _local2:uint = _arg1.position;
var _local3:_dm1104 = _vu616;
var _local4:uint;
var _local5:Boolean;
while (((!((_arg1.bytesAvailable == 0))) && (!(_local5)))) {
_local6 = _arg1.readUnsignedByte();
if ((_local6 & 128) == 0){
_local7 = _vu616._jd115[_local6];
_local4 = (_local4 + _local7._ig631.width);
} else {
_local8 = (_local6 & 127);
switch (_local8){
case _aq368:
_local9 = _arg1.readUnsignedByte();
break;
case _cp861:
_vu616 = _tt80[_arg1.readUnsignedByte()];
break;
case _yy1337:
_local5 = true;
break;
case _py123:
_local5 = true;
break;
case _xk899:
_local5 = true;
break;
};
};
};
if ((_local4 + _tp25) > textWidth){
_local10 = new ByteArray();
_local10.writeByte((_xk899 | 128));
_lu58(_local10);
};
_vu616 = _local3;
_arg1.position = _local2;
}
public function _qd1208():uint{
return (_lc148);
}
public function init(_arg1:BitmapData, _arg2:ByteArray):void{
var _local3:uint;
var _local4:uint;
var _local5:Rectangle;
var _local8:_dm1104;
var _local9:uint;
var _local10:uint;
var _local11:_ct1075;
var _local12:String;
var _local13:Array;
var _local14:uint;
var _local15:uint;
var _local16:ByteArray;
_lc148 = _arg2.readUnsignedByte();
var _local6:uint = _arg2.readUnsignedByte();
_local3 = 0;
while (_local3 < _local6) {
_local8 = new _dm1104();
_tt80.push(_local8);
_local9 = _arg2.readUnsignedByte();
switch (_local9){
case _ao914:
_local10 = _arg2.readUnsignedByte();
break;
case _nt1342:
_local8._fh665 = _arg2.readUTF();
_local10 = _local8._fh665.length;
break;
};
_local4 = 0;
while (_local4 < _local10) {
_local11 = new _ct1075();
_local8._jd115.push(_local11);
_local5 = new Rectangle(_arg2.readUnsignedShort(), _arg2.readUnsignedShort(), _arg2.readUnsignedByte(), _arg2.readUnsignedByte());
_local11._xq937 = new BitmapData(_local5.width, _local5.height, true);
_local11._xq937.copyPixels(_arg1, _local5, new Point(0, 0));
_local11._ig631 = new Rectangle(_arg2.readByte(), _arg2.readByte(), _arg2.readByte(), 1);
_local4++;
};
_local3++;
};
var _local7:uint = _arg2.readUnsignedByte();
_local3 = 0;
while (_local3 < _local7) {
_local12 = _arg2.readUTF();
_local13 = new Array();
_local14 = _arg2.readUnsignedByte();
_local4 = 0;
while (_local4 < _local14) {
_local15 = _arg2.readUnsignedShort();
_local16 = new ByteArray();
_local13.push(_local16);
if (_local15 != 0){
_arg2.readBytes(_local16, 0, _local15);
};
_local4++;
};
_fl1288.insert(_local12, _local13);
_dv1022.push(_local12);
_local3++;
};
}
private function _po1009(_arg1:String, _arg2:uint=0):int{
var _local3:Number = _arg1.charCodeAt(_arg2);
var _local4:uint;
while (_local4 < _vu616._fh665.length) {
if (_vu616._fh665.charCodeAt(_local4) == _local3){
return (_local4);
};
_local4++;
};
return (-1);
}
public function _pr894(_arg1:String):DisplayObject{
while (_gs357.numChildren != 0) {
_gs357.removeChildAt(0);
};
_jw758(_gs357, 0, 0, _arg1);
return (_gs357.getChildAt(0));
}
private function _lu58(_arg1:ByteArray, _arg2:Array=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:Object;
var _local7:String;
var _local8:uint;
_ip184.clear();
_arg1.position = 0;
while (_arg1.bytesAvailable != 0) {
_local3 = _arg1.readByte();
if ((_local3 & 128) != 0){
_local4 = (_local3 & 127);
switch (_local4){
case _cp861:
_vu616 = _tt80[_arg1.readUnsignedByte()];
break;
case _yy1337:
_tp25 = (_tp25 + _lc148);
_jx524(_arg1);
break;
case _aq368:
_local5 = _arg1.readUnsignedByte();
_local6 = _arg2[_local5];
_local7 = _local6.toString();
_local8 = 0;
while (_local8 < _local7.length) {
_we795(_po1009(_local7, _local8));
_local8++;
};
break;
case _py123:
_is1191(true);
break;
case _xk899:
_is1191(false);
break;
default:
trace(("unknown command " + _local4));
};
} else {
_we795(_local3);
};
};
}
public function _wg1143():Array{
return (_dv1022);
}
private function _is1191(_arg1:Boolean):void{
var _local2:Point;
var _local3:TextEvent;
_ip184.clear();
if (_arg1){
_local2 = new Point(_tp25, _fa1125);
};
_tp25 = _tw269;
_fa1125 = (_fa1125 + textHeight);
if (_arg1){
_local3 = new TextEvent(TextEvent._rx1277, _local2, new Point(_tp25, _fa1125));
dispatchEvent(_local3);
};
}
public function _le749(_arg1:String):void{
if (_ho258 == _arg1){
return;
};
_vm569 = _fl1288.find(_arg1);
_ho258 = _arg1;
dispatchEvent(new Event(_un189));
}
private function _qj434(_arg1:String):void{
var _local4:_dm1104;
var _local2:ByteArray = new ByteArray();
var _local3:uint;
while (_local3 < _tt80.length) {
_local4 = (_tt80[_local3] as _dm1104);
if (_local4._fh665 != null){
break;
};
_local3++;
};
_local2.writeByte((_cp861 | 128));
_local2.writeByte(_local3);
_local2.writeByte((_aq368 | 128));
_local2.writeByte(0);
_lu58(_local2, [_arg1]);
}
public function _rt980(_arg1:uint, _arg2:Array=null, _arg3:int=-1, _arg4:uint=1):Sprite{
var _local5:Sprite = new Sprite();
_di719(_local5, _arg1, 0, 0, _arg2, _arg3, _arg4);
return (_local5);
}
public function _jw758(_arg1:DisplayObjectContainer, _arg2:uint, _arg3:uint, _arg4:String, _arg5:Array=null):void{
_wn998 = _arg1;
_tp25 = _arg2;
_fa1125 = _arg3;
_qp285 = _arg5;
_qj434(_arg4);
}
public function _yj1110():String{
return (_ho258);
}
public function _xg37():uint{
return (textHeight);
}
public function _di719(_arg1:DisplayObjectContainer, _arg2:uint, _arg3:int, _arg4:int, _arg5:Array=null, _arg6:int=-1, _arg7:uint=1, _arg8:Array=null):void{
_tp25 = _arg3;
_tw269 = _arg3;
_fa1125 = _arg4;
_qp285 = _arg8;
_ya562 = _arg7;
this.textWidth = _arg6;
this._wn998 = _arg1;
var _local9:ByteArray = _vm569[_arg2];
_lu58(_local9, _arg5);
}
private function _we795(_arg1:uint):void{
var _local7:Iterator;
var _local8:DisplayObject;
var _local2:_ct1075 = _vu616._jd115[_arg1];
var _local3:Bitmap = new Bitmap(_local2._xq937);
_local3.x = (_tp25 - _local2._ig631.x);
_local3.y = (_fa1125 + _local2._ig631.y);
_local3.filters = this._qp285;
_wn998.addChild(_local3);
_ip184.set(_local3);
var _local4:int;
var _local5:int = _local2._ig631.width;
switch (_ya562){
case _ti710:
_local4 = Math.round((_local5 / 2));
if (Math.random() > 0.5){
_local4 = (_local5 - _local4);
};
break;
case _lk422:
_local4 = _local5;
break;
};
_tp25 = (_tp25 + _local4);
var _local6:int = -((_local5 - _local4));
if (_local6 != 0){
_local7 = _ip184.getIterator();
while (_local7.hasNext()) {
_local8 = _local7.next();
_local8.x = (_local8.x + _local6);
};
};
}
}
}//package com.herocraft
import flash.display.*;
import flash.geom.*;
class _dm1104 {
public var _jd115:Array;
public var _fh665:String;
private function _dm1104(){
_jd115 = new Array();
}
}
class _ct1075 {
public var _xq937:BitmapData;
public var _ig631:Rectangle;
private function _ct1075(){
}
}
Section 25
//_ui287 (com.herocraft._ui287)
package com.herocraft {
import flash.events.*;
import flash.display.*;
import com.rojored.command.*;
import game.*;
public class _ui287 extends _or1044 {
private var a:_mk278;
private var c:DisplayObjectContainer;
public function _ui287(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:DisplayObjectContainer, _arg5:int=1){
var _ju1450:Function;
var _nb792 = _arg1;
var xCoord = _arg2;
var yCoord = _arg3;
var c = _arg4;
var scaleX = _arg5;
super();
a = _sq637.getInstance()._rj1381(_nb792);
a.x = xCoord;
a.y = yCoord;
a.scaleX = scaleX;
this.c = c;
_ju1450 = function (_arg1:Event):void{
c.removeChild(a);
a.removeEventListener(_mk278._bw1056, _ju1450);
a.stop();
a.dispose();
_ph983();
a = null;
c = null;
};
a.addEventListener(_mk278._bw1056, _ju1450);
a.stop();
}
override public function execute():void{
c.addChild(a);
a.play();
}
public function _qg582():_mk278{
return (a);
}
}
}//package com.herocraft
Section 26
//TextEvent (com.herocraft.TextEvent)
package com.herocraft {
import flash.geom.*;
import flash.events.*;
public class TextEvent extends Event {
public var _qi282:Point;
public var _mn457:Point;
public static const _rx1277:String = "nl";
public function TextEvent(_arg1:String, _arg2:Point, _arg3:Point){
super(_arg1);
this._qi282 = _arg2;
this._mn457 = _arg3;
}
}
}//package com.herocraft
Section 27
//Debug (com.hexagonstar.util.debug.Debug)
package com.hexagonstar.util.debug {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
public final class Debug {
public static const LEVEL_WARN:int = 2;
public static const LEVEL_DEBUG:int = 0;
public static const LEVEL_INFO:int = 1;
public static const LEVEL_FATAL:int = 4;
public static const LEVEL_ERROR:int = 3;
private static var _stage:Stage;
private static var _filterLevel:int = 0;
private static var _isEnabled:Boolean = true;
private static var _isConnected:Boolean = false;
private static var _isPollingFPS:Boolean = false;
private static var _stopWatch:StopWatch;
private static var _connection:LocalConnection;
private static var _fpsMeter:FPSMeter;
public static function forceGC():void{
try {
} catch(e1:Error) {
try {
new LocalConnection().connect("forceGC");
new LocalConnection().connect("forceGC");
} catch(e2:Error) {
};
};
}
private static function send(_arg1:String, _arg2, _arg3:int=1, _arg4:int=0):void{
var _local5:Number;
var _local6:ByteArray;
if (_isEnabled){
if (!(_isConnected)){
_isConnected = true;
_connection = new LocalConnection();
_connection.addEventListener(StatusEvent.STATUS, onStatus);
};
_local5 = 0;
if (typeof(_arg2) == "string"){
_local5 = String(_arg2).length;
} else {
if (typeof(_arg2) == "object"){
_local6 = new ByteArray();
_local6.writeObject(_arg2);
_local5 = _local6.length;
_local6 = null;
};
};
if (_local5 > 39000){
storeDataLSO(_arg1, _arg2);
_arg1 = "onLargeData";
_arg2 = null;
};
_connection.send("_alcon_lc", _arg1, _arg2, _arg3, _arg4, "");
};
}
public static function stop():void{
if (_fpsMeter){
_isPollingFPS = false;
_fpsMeter.stop();
_fpsMeter.removeEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter = null;
_stage = null;
};
}
public static function timerReset():void{
if (_stopWatch){
_stopWatch.reset();
};
}
private static function onFPSUpdate(_arg1:Event):void{
send("onFPS", ((((((_fpsMeter.fps + ",") + _stage.frameRate) + ",") + _fpsMeter.frt) + ",") + System.totalMemory));
}
public static function delimiter():void{
Debug.trace("[%DLT%]", 5);
}
public static function set enabled(_arg1:Boolean):void{
_isEnabled = _arg1;
}
public static function inspect(_arg1:Object):void{
send("onInspect", _arg1, 1, -1);
}
public static function timerStart(_arg1:String=""):void{
if (_isEnabled){
if (!(_stopWatch)){
_stopWatch = new StopWatch();
};
_stopWatch.start(_arg1);
};
}
public static function createCategory(_arg1:int, _arg2:String="", _arg3:uint=0, _arg4:uint=0xFFFF00):void{
send("onCategory", [_arg1, _arg2, _arg3, _arg4], 0, 0);
}
private static function storeDataLSO(_arg1:String, _arg2):void{
var flushResult:String;
var m = _arg1;
var d = _arg2;
var sharedObject:SharedObject = SharedObject.getLocal("alcon", "/");
sharedObject.data["alconMethod"] = m;
sharedObject.data["alconData"] = d;
try {
flushResult = sharedObject.flush();
if (flushResult == SharedObjectFlushStatus.FLUSHED){
return;
};
} catch(e:Error) {
Security.showSettings(SecurityPanel.LOCAL_STORAGE);
};
}
public static function hexDump(_arg1:Object):void{
send("onHexDump", _arg1, 0, 0);
}
private static function onStatus(_arg1:StatusEvent):void{
}
public static function get enabled():Boolean{
return (_isEnabled);
}
public static function trace(... _args):void{
var _local2:int = ((_args[1] is int)) ? _args[1] : 1;
if ((((_local2 >= _filterLevel)) && ((_local2 < 7)))){
send("onData", _args[0], _local2, 0);
};
}
public static function timerToString():void{
if (_stopWatch){
Debug.trace(_stopWatch.toString());
};
}
public static function mark(_arg1:uint=0xFF00FF):void{
send("onMarker", _arg1, 1, -1);
}
public static function timerInSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInSeconds + "s"));
};
}
public static function set filterLevel(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < 5)))){
_filterLevel = _arg1;
};
}
public static function monitor(_arg1:Stage, _arg2:int=500):void{
if (_isPollingFPS){
Debug.stop();
};
if (((_isEnabled) && (!(_fpsMeter)))){
_isPollingFPS = true;
_stage = _arg1;
sendCapabilities();
_fpsMeter = new FPSMeter(_stage, _arg2);
_fpsMeter.addEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter.start();
};
}
public static function time():void{
Debug.trace("[%TME%]", 5);
}
private static function sendCapabilities():void{
var _local3:XML;
var _local4:String;
var _local1:XML = describeType(Capabilities);
var _local2:Array = [];
for each (_local3 in _local1.*) {
_local4 = _local3.@name.toString();
if ((((((_local4.length > 0)) && (!((_local4 == "_internal"))))) && (!((_local4 == "prototype"))))){
_local2.push({p:_local4, v:Capabilities[_local4].toString()});
};
};
_local2.sortOn(["p"], Array.CASEINSENSITIVE);
send("onCap", _local2);
}
public static function clear():void{
Debug.trace("[%CLR%]", 5);
}
public static function timerStop():void{
if (_stopWatch){
_stopWatch.stop();
};
}
public static function timerInMilliSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInMilliSeconds + "ms"));
};
}
public static function get filterLevel():int{
return (_filterLevel);
}
public static function traceObj(_arg1:Object, _arg2:int=64, _arg3:int=1):void{
if ((((_arg3 >= _filterLevel)) && ((_arg3 < 7)))){
send("onData", _arg1, _arg3, _arg2);
};
}
public static function timerStopToString(_arg1:Boolean=false):void{
if (_stopWatch){
_stopWatch.stop();
Debug.trace(_stopWatch.toString());
if (_arg1){
_stopWatch.reset();
};
};
}
public static function pause():void{
Debug.trace("[%PSE%]", 5);
}
}
}//package com.hexagonstar.util.debug
Section 28
//FPSMeter (com.hexagonstar.util.debug.FPSMeter)
package com.hexagonstar.util.debug {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class FPSMeter extends EventDispatcher {
private var _delayMax:int;// = 10
private var _pollInterval:int;
private var _delay:int;
private var _ms:int;
private var _timer:Timer;
private var _prev:int;
private var _frt:int;
private var _fps:int;
private var _isRunning:Boolean;
private var _stage:Stage;
public static const FPS_UPDATE:String = "fpsUpdate";
public function FPSMeter(_arg1:Stage, _arg2:int=500){
_stage = _arg1;
_pollInterval = _arg2;
reset();
}
public function stop():void{
if (_isRunning){
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, onTimer);
_stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer = null;
reset();
};
}
public function reset():void{
_fps = 0;
_frt = 0;
_ms = 0;
_delay = 0;
_prev = 0;
_isRunning = false;
}
public function start():void{
if (!(_isRunning)){
_isRunning = true;
_timer = new Timer(_pollInterval, 0);
_timer.addEventListener(TimerEvent.TIMER, onTimer);
_stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer.start();
};
}
private function onTimer(_arg1:TimerEvent):void{
dispatchEvent(new Event(FPSMeter.FPS_UPDATE));
}
public function get frt():int{
return (_frt);
}
public function get fps():int{
return (_fps);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number = getTimer();
_delay++;
if (_delay >= _delayMax){
_delay = 0;
_fps = int(((1000 * _delayMax) / (_local2 - _prev)));
_prev = _local2;
};
_frt = (_local2 - _ms);
_ms = _local2;
}
}
}//package com.hexagonstar.util.debug
Section 29
//StopWatch (com.hexagonstar.util.debug.StopWatch)
package com.hexagonstar.util.debug {
import flash.utils.*;
public class StopWatch {
private var _stopTimeKeys:Array;
private var _startTimeKeys:Array;
private var _started:Boolean;// = false
private var _title:String;
public function StopWatch(){
reset();
}
public function get started():Boolean{
return (_started);
}
public function get timeInMilliSeconds():int{
if (_started){
_stopTimeKeys[(_startTimeKeys.length - 1)] = getTimer();
};
var _local1:int;
var _local2:int;
while (_local2 < _startTimeKeys.length) {
_local1 = (_local1 + (_stopTimeKeys[_local2] - _startTimeKeys[_local2]));
_local2++;
};
return (_local1);
}
public function stop():void{
var _local1:int;
if (_started){
_local1 = getTimer();
_stopTimeKeys[(_startTimeKeys.length - 1)] = _local1;
_started = false;
};
}
public function toString():String{
var _local3:int;
var _local4:int;
var _local1:String = "\n ********************* [STOPWATCH] *********************";
if (_title != ""){
_local1 = (_local1 + ("\n * " + _title));
};
var _local2:int;
while (_local2 < _startTimeKeys.length) {
_local3 = _startTimeKeys[_local2];
_local4 = _stopTimeKeys[_local2];
_local1 = (_local1 + (((((("\n * started [" + format(_local3)) + "ms] stopped [") + format(_local4)) + "ms] time [") + format((_local4 - _local3))) + "ms]"));
_local2++;
};
if (_local2 == 0){
_local1 = (_local1 + "\n * never started.");
} else {
_local1 = (_local1 + (("\n * total runnning time: " + timeInSeconds) + "s"));
};
_local1 = (_local1 + "\n *******************************************************");
return (_local1);
}
public function get timeInSeconds():Number{
return ((timeInMilliSeconds / 1000));
}
public function reset():void{
_startTimeKeys = [];
_stopTimeKeys = [];
_started = false;
}
private function format(_arg1:int):String{
var _local2:String = "";
var _local3:int = _arg1.toString().length;
var _local4:int;
while (_local4 < (5 - _local3)) {
_local2 = (_local2 + "0");
_local4++;
};
return ((_local2 + _arg1));
}
public function start(_arg1:String=""):void{
if (!(_started)){
_title = _arg1;
_started = true;
_startTimeKeys.push(getTimer());
};
}
}
}//package com.hexagonstar.util.debug
Section 30
//_gd367 (com.rojored.command._gd367)
package com.rojored.command {
public interface _gd367 {
function undo():void;
function execute():void;
}
}//package com.rojored.command
Section 31
//_or1044 (com.rojored.command._or1044)
package com.rojored.command {
import flash.events.*;
public class _or1044 extends EventDispatcher implements _gd367 {
public static const _om601:String = "undoComplete";
protected function _hj883(_arg1:String=null):void{
dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, true, true, _arg1));
}
public function undo():void{
_nj1098();
}
protected function _nj1098():void{
dispatchEvent(new Event(_om601, true, true));
}
public function execute():void{
}
protected function _ph983():void{
dispatchEvent(new Event(Event.COMPLETE, true, true));
}
public function dispose():void{
}
}
}//package com.rojored.command
Section 32
//_sg564 (com.rojored.command._sg564)
package com.rojored.command {
import flash.events.*;
public class _sg564 extends _or1044 {
protected var _xy1400:Array;
private var _nt1354:_or1044;
private var _vk1415:Boolean;
protected var _to612:int;// = 0
public function _sg564(_arg1:Boolean=true){
_vk1415 = _arg1;
_xy1400 = [];
}
private function _ou999(_arg1:Event):void{
_pa1252(_nt1354);
_nt1354 = null;
switch (_arg1.type){
case Event.COMPLETE:
_to612++;
execute();
break;
case ErrorEvent.ERROR:
if (_vk1415){
_hj883((_arg1 as ErrorEvent).text);
} else {
_to612++;
execute();
};
break;
case _om601:
_to612--;
undo();
break;
};
}
override public function undo():void{
if (_px1319()){
return;
};
if (_to612 == -1){
_nj1098();
} else {
if (_to612 >= _xy1400.length){
_to612 = (_xy1400.length - 1);
};
_nt1354 = _xy1400[_to612];
_nt1354.addEventListener(_om601, _ou999);
_nt1354.undo();
};
}
private function _pa1252(_arg1:_or1044):void{
if (_arg1 == null){
return;
};
_arg1.removeEventListener(Event.COMPLETE, _ou999);
_arg1.removeEventListener(ErrorEvent.ERROR, _ou999);
_arg1.removeEventListener(_om601, _ou999);
}
public function _wh808(_arg1:_gd367, ... _args):void{
var _local4:int;
_args.unshift(_arg1);
var _local3:int;
while (_local3 < _args.length) {
_local4 = 0;
while (_local4 < _xy1400.length) {
if (_xy1400[_local4] === _args[_local3]){
_xy1400.splice(_local3, 1);
break;
};
_local4++;
};
_local3++;
};
}
protected function _bk328(_arg1:_or1044):void{
_arg1.dispose();
}
public function clear():void{
var _local1:_or1044;
while (_xy1400.length != 0) {
_local1 = _xy1400.pop();
_pa1252(_local1);
_bk328(_local1);
};
_to612 = 0;
_nt1354 = null;
}
override public function execute():void{
if (_px1319()){
return;
};
if (_to612 >= _xy1400.length){
_ph983();
} else {
_nt1354 = _xy1400[_to612];
_nt1354.addEventListener(Event.COMPLETE, _ou999);
_nt1354.addEventListener(ErrorEvent.ERROR, _ou999);
_nt1354.execute();
};
}
public function _px1319():Boolean{
return (!((_nt1354 == null)));
}
public function _ql124(_arg1:_or1044, ... _args):void{
_xy1400 = _xy1400.concat([_arg1].concat(_args));
}
override public function dispose():void{
clear();
_xy1400 = null;
}
}
}//package com.rojored.command
Section 33
//_uu282 (com.rojored.command._uu282)
package com.rojored.command {
public class _uu282 extends _or1044 {
private var _ju1450:Function;
private var name:String;
public function _uu282(_arg1:Function, _arg2:String=null){
this._ju1450 = _arg1;
this.name = _arg2;
}
override public function toString():String{
return (("CmdAdapter: " + name));
}
override public function execute():void{
_ju1450.call();
_ph983();
}
}
}//package com.rojored.command
Section 34
//FullScreenScrollBar (com.warmforestflash.ui.FullScreenScrollBar)
package com.warmforestflash.ui {
import flash.display.*;
import flash.events.*;
import gs.*;
import flash.geom.*;
public class FullScreenScrollBar extends Sprite {
private var _grabberPressColor:uint;
private var _easeAmount:int;
private var _trackThickness:int;
private var _grabber:Sprite;
private var msk:DisplayObject;
private var _stageH:Number;
private var _gripColor:uint;
private var _content:DisplayObjectContainer;
private var _stageW:Number;
private var _defaultPosition:Number;
private var _track:Sprite;
private var _grabberColor:uint;
private var _hasShine:Boolean;
private var _grabberThickness:int;
private var _pressed:Boolean;// = false
private var _scrollValue:Number;
private var _cH:Number;
private var _grabberArrow1:Sprite;
private var _grabberArrow2:Sprite;
private var _tH:Number;
private var _grabberGrip:Sprite;
private var _trackColor:uint;
public function FullScreenScrollBar(_arg1:DisplayObjectContainer, _arg2:DisplayObject, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:int, _arg8:int, _arg9:int, _arg10:Boolean){
this.msk = _arg2;
_content = _arg1;
_trackColor = _arg3;
_grabberColor = _arg4;
_grabberPressColor = _arg5;
_gripColor = _arg6;
_trackThickness = _arg7;
_grabberThickness = _arg8;
_easeAmount = _arg9;
_hasShine = _arg10;
init();
OverwriteManager.init();
}
private function scrollContent(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = -(((_cH - _tH) * (_grabber.y / _scrollValue)));
_local3 = ((_local2 - _content.y) + _defaultPosition);
_local4 = (_local3 / _easeAmount);
_content.y = (_content.y + Math.round(_local4));
if (Math.abs(((_content.y - _local2) - _defaultPosition)) < 1.5){
_grabber.removeEventListener(Event.ENTER_FRAME, scrollContent);
_content.y = (Math.round(_local2) + _defaultPosition);
};
positionGrips();
}
private function init():void{
createTrack();
createGrabber();
createGrips();
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_defaultPosition = Math.round(_content.y);
_grabber.y = 0;
}
private function createGrabberGrip():Sprite{
var _local1:int = 7;
var _local2:int = ((_grabberThickness - _local1) / 2);
var _local3:Sprite = new Sprite();
_local3.graphics.beginFill(_gripColor, 1);
_local3.graphics.drawRect(_local2, 0, _local1, 1);
_local3.graphics.drawRect(_local2, (0 + 2), _local1, 1);
_local3.graphics.drawRect(_local2, (0 + 4), _local1, 1);
_local3.graphics.drawRect(_local2, (0 + 6), _local1, 1);
_local3.graphics.drawRect(_local2, (0 + 8), _local1, 1);
_local3.graphics.endFill();
return (_local3);
}
private function mouseWheelListener(_arg1:MouseEvent):void{
var _local2:Number = _arg1.delta;
if (_local2 > 0){
if ((_grabber.y - (_local2 * 4)) >= 0){
_grabber.y = (_grabber.y - (_local2 * 4));
} else {
_grabber.y = 0;
};
if (!(_grabber.willTrigger(Event.ENTER_FRAME))){
_grabber.addEventListener(Event.ENTER_FRAME, scrollContent);
};
} else {
if (((_grabber.y + _grabber.height) + (Math.abs(_local2) * 4)) <= _stageH){
_grabber.y = (_grabber.y + (Math.abs(_local2) * 4));
} else {
_grabber.y = (_stageH - _grabber.height);
};
if (!(_grabber.willTrigger(Event.ENTER_FRAME))){
_grabber.addEventListener(Event.ENTER_FRAME, scrollContent);
};
};
}
private function createGrabber():void{
var _local2:Sprite;
var _local3:Graphics;
_grabber = new Sprite();
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(_grabberColor);
_local1.graphics.drawRect(0, 0, _grabberThickness, _grabberThickness);
_local1.graphics.endFill();
_local1.name = "bg";
_grabber.addChild(_local1);
if (_hasShine){
_local2 = new Sprite();
_local3 = _local2.graphics;
_local3.beginFill(0xFFFFFF, 0.15);
_local3.drawRect(0, 0, Math.ceil((_trackThickness / 2)), _trackThickness);
_local3.endFill();
_local2.x = Math.floor((_trackThickness / 2));
_local2.name = "shine";
_grabber.addChild(_local2);
};
addChild(_grabber);
}
private function createTrack():void{
_track = new Sprite();
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(_trackColor);
_local1.graphics.drawRect(0, 0, _trackThickness, _trackThickness);
_local1.graphics.endFill();
_track.addChild(_local1);
addChild(_track);
}
public function adjustSize():void{
_track.height = _stageH;
_track.y = 0;
_tH = _track.height;
_cH = (_content.height + _defaultPosition);
_grabber.getChildByName("bg").height = Math.ceil(((_tH / _cH) * _tH));
if (_grabber.getChildByName("bg").height < 35){
_grabber.getChildByName("bg").height = 35;
};
if (_hasShine){
_grabber.getChildByName("shine").height = _grabber.getChildByName("bg").height;
};
if ((_grabber.y + _grabber.getChildByName("bg").height) > _tH){
_grabber.y = (_tH - _grabber.getChildByName("bg").height);
};
_grabber.y = ((_cH)<_tH) ? 0 : _grabber.y;
this.visible = ((_cH + 8) > _tH);
_scrollValue = (_tH - _grabber.getChildByName("bg").height);
_content.y = Math.round((-(((_cH - _tH) * (_grabber.y / _scrollValue))) + _defaultPosition));
positionGrips();
if (stage != null){
if (_content.height < _stageH){
stage.removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelListener);
} else {
stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelListener);
};
};
}
private function onAddedToStage(_arg1:Event):void{
stage.addEventListener(Event.MOUSE_LEAVE, stopScroll);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelListener);
stage.addEventListener(Event.RESIZE, onStageResize, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onUpListener, false, 0, true);
_grabber.addEventListener(MouseEvent.MOUSE_DOWN, onDownListener, false, 0, true);
_grabber.buttonMode = true;
_track.addEventListener(MouseEvent.CLICK, onTrackClick, false, 0, true);
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
_stageW = msk.width;
_stageH = msk.height;
adjustSize();
}
private function onUpListener(_arg1:MouseEvent=null):void{
if (_pressed){
_pressed = false;
_grabber.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMoveListener);
TweenFilterLite.to(_grabber.getChildByName("bg"), 0.5, {tint:null});
};
}
private function positionGrips():void{
_grabberGrip.y = Math.ceil(((_grabber.getChildByName("bg").y + (_grabber.getChildByName("bg").height / 2)) - (_grabberGrip.height / 2)));
_grabberArrow1.y = (_grabber.getChildByName("bg").y + 8);
_grabberArrow2.y = (_grabber.getChildByName("bg").height - 8);
}
private function onTrackClick(_arg1:MouseEvent):void{
var p:int;
var reset:Function;
var e = _arg1;
reset = function ():void{
if (_grabber.y < 0){
_grabber.y = 0;
};
if ((_grabber.y + _grabber.getChildByName("bg").height) > _track.height){
_grabber.y = (stage.stageHeight - _grabber.getChildByName("bg").height);
};
};
_grabber.addEventListener(Event.ENTER_FRAME, scrollContent, false, 0, true);
var s:int = 150;
p = Math.ceil(e.stageY);
if (p < _grabber.y){
if (_grabber.y < _grabber.height){
TweenFilterLite.to(_grabber, 0.5, {y:0, onComplete:reset, overwrite:1});
} else {
TweenFilterLite.to(_grabber, 0.5, {y:"-150", onComplete:reset});
};
if (_grabber.y < 0){
_grabber.y = 0;
};
} else {
if ((_grabber.y + _grabber.height) > (_stageH - _grabber.height)){
TweenFilterLite.to(_grabber, 0.5, {y:(_stageH - _grabber.height), onComplete:reset, overwrite:1});
} else {
TweenFilterLite.to(_grabber, 0.5, {y:"150", onComplete:reset});
};
if ((_grabber.y + _grabber.getChildByName("bg").height) > _track.height){
_grabber.y = (stage.stageHeight - _grabber.getChildByName("bg").height);
};
};
}
private function createGrips():void{
_grabberGrip = createGrabberGrip();
_grabber.addChild(_grabberGrip);
_grabberArrow1 = createPixelArrow();
_grabber.addChild(_grabberArrow1);
_grabberArrow2 = createPixelArrow();
_grabber.addChild(_grabberArrow2);
_grabberArrow1.rotation = -90;
_grabberArrow1.x = (((_grabberThickness - 7) / 2) + 1);
_grabberArrow2.rotation = 90;
_grabberArrow2.x = (((_grabberThickness - 7) / 2) + 6);
}
public function kill():void{
stage.removeEventListener(Event.RESIZE, onStageResize);
}
private function createPixelArrow():Sprite{
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(_gripColor, 1);
_local1.graphics.drawRect(0, 0, 1, 1);
_local1.graphics.drawRect(1, 1, 1, 1);
_local1.graphics.drawRect(2, 2, 1, 1);
_local1.graphics.drawRect(1, 3, 1, 1);
_local1.graphics.drawRect(0, 4, 1, 1);
_local1.graphics.endFill();
return (_local1);
}
private function stopScroll(_arg1:Event):void{
onUpListener();
}
private function onDownListener(_arg1:MouseEvent):void{
_pressed = true;
_grabber.startDrag(false, new Rectangle(0, 0, 0, (_stageH - _grabber.getChildByName("bg").height)));
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoveListener, false, 0, true);
TweenFilterLite.to(_grabber.getChildByName("bg"), 0.5, {tint:_grabberPressColor});
}
private function onMouseMoveListener(_arg1:MouseEvent):void{
_arg1.updateAfterEvent();
if (!(_grabber.willTrigger(Event.ENTER_FRAME))){
_grabber.addEventListener(Event.ENTER_FRAME, scrollContent, false, 0, true);
};
}
private function onStageResize(_arg1:Event):void{
_stageW = msk.width;
_stageH = msk.height;
adjustSize();
}
}
}//package com.warmforestflash.ui
Section 35
//_dc504 (commands._dc504)
package commands {
import flash.events.*;
import com.rojored.command.*;
import flash.utils.*;
public class _dc504 extends _or1044 {
private var _qh596:Timer;
public function _dc504(_arg1:uint){
_qh596 = new Timer(_arg1);
}
override public function execute():void{
_qh596.addEventListener(TimerEvent.TIMER, _nh1436);
_qh596.start();
}
private function _nh1436(_arg1:Event):void{
_qh596.removeEventListener(TimerEvent.TIMER, _nh1436);
_qh596.stop();
_ph983();
}
}
}//package commands
Section 36
//_mb558 (commands._mb558)
package commands {
public class _mb558 extends _xn512 {
public function _mb558(_arg1:Array, _arg2:Function, _arg3:uint=30, _arg4:uint=30){
super(_us162(_arg1), _arg2, _arg3, _arg4);
}
private static function _us162(_arg1:Array):Array{
var _local4:Number;
var _local5:Number;
var _local6:Object;
var _local2:Number = _arg1.length;
var _local3:Array = _arg1.slice();
_local5 = 0;
while (_local5 < _local2) {
_local6 = _local3[_local5];
_local4 = Math.floor((Math.random() * _local2));
_local3[_local5] = _local3[_local4];
_local3[_local4] = _local6;
_local5++;
};
return (_local3);
}
}
}//package commands
Section 37
//_xn512 (commands._xn512)
package commands {
import flash.events.*;
import com.rojored.command.*;
import de.polygonal.ds.*;
import flash.utils.*;
public class _xn512 extends _or1044 {
private var _vo800:Array;
private var _dy126:Set;
private var _ju1450:Function;
private var _mg491:Timer;
private var _qh596:Timer;
public function _xn512(_arg1:Array, _arg2:Function, _arg3:uint=30, _arg4:uint=30){
_vo800 = _arg1.reverse();
this._ju1450 = _arg2;
_dy126 = new Set();
this._mg491 = new Timer(_arg4);
_mg491.addEventListener(TimerEvent.TIMER, _hq1342);
this._qh596 = new Timer(_arg3);
_qh596.addEventListener(TimerEvent.TIMER, _vy792);
}
private function _hq1342(_arg1:Event):void{
if (_vo800.length != 0){
_dy126.set(_vo800.pop());
};
}
private function _vy792(_arg1:Event):void{
var _local3:Object;
var _local4:Boolean;
var _local2:Iterator = _dy126.getIterator();
while (_local2.hasNext()) {
_local3 = _local2.next();
_local4 = _ju1450.call(null, _local3);
if (_local4){
_dy126.remove(_local3);
};
};
if ((((_vo800.length == 0)) && (_dy126.isEmpty()))){
_qh596.stop();
_mg491.stop();
_ph983();
};
}
override public function execute():void{
_qh596.start();
_mg491.start();
}
override public function dispose():void{
_qh596.stop();
_qh596.removeEventListener(TimerEvent.TIMER, _vy792);
_qh596 = null;
_mg491.stop();
_mg491.removeEventListener(TimerEvent.TIMER, _hq1342);
_mg491 = null;
_ju1450 = null;
_dy126.clear();
_dy126 = null;
while (_vo800.length != 0) {
_vo800.pop();
};
_vo800 = null;
}
}
}//package commands
Section 38
//compareStringCaseInSensitive (de.polygonal.ds.sort.compare.compareStringCaseInSensitive)
package de.polygonal.ds.sort.compare {
public function compareStringCaseInSensitive(_arg1:String, _arg2:String):int{
var _local3:int;
var _local4:int;
var _local5:int;
_arg1 = _arg1.toLowerCase();
_arg2 = _arg2.toLowerCase();
if ((_arg1.length + _arg2.length) > 2){
_local3 = 0;
_local4 = ((_arg1.length > _arg2.length)) ? _arg1.length : _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = (_arg1.charCodeAt(_local5) - _arg2.charCodeAt(_local5));
if (_local3 != 0){
break;
};
_local5++;
};
return (_local3);
//unresolved jump
};
return ((_arg1.charCodeAt(0) - _arg2.charCodeAt(0)));
}
}//package de.polygonal.ds.sort.compare
Section 39
//compareStringCaseInSensitiveDesc (de.polygonal.ds.sort.compare.compareStringCaseInSensitiveDesc)
package de.polygonal.ds.sort.compare {
public function compareStringCaseInSensitiveDesc(_arg1:String, _arg2:String):int{
var _local3:int;
var _local4:int;
var _local5:int;
_arg1 = _arg1.toLowerCase();
_arg2 = _arg2.toLowerCase();
if ((_arg1.length + _arg2.length) > 2){
_local3 = 0;
_local4 = ((_arg1.length > _arg2.length)) ? _arg1.length : _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = (_arg2.charCodeAt(_local5) - _arg1.charCodeAt(_local5));
if (_local3 != 0){
break;
};
_local5++;
};
return (_local3);
//unresolved jump
};
return ((_arg2.charCodeAt(0) - _arg1.charCodeAt(0)));
}
}//package de.polygonal.ds.sort.compare
Section 40
//compareStringCaseSensitive (de.polygonal.ds.sort.compare.compareStringCaseSensitive)
package de.polygonal.ds.sort.compare {
public function compareStringCaseSensitive(_arg1:String, _arg2:String):int{
var _local3:int;
var _local4:int;
var _local5:int;
if ((_arg1.length + _arg2.length) > 2){
_local3 = 0;
_local4 = ((_arg1.length > _arg2.length)) ? _arg1.length : _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = (_arg1.charCodeAt(_local5) - _arg2.charCodeAt(_local5));
if (_local3 != 0){
break;
};
_local5++;
};
return (_local3);
//unresolved jump
};
return ((_arg1.charCodeAt(0) - _arg2.charCodeAt(0)));
}
}//package de.polygonal.ds.sort.compare
Section 41
//compareStringCaseSensitiveDesc (de.polygonal.ds.sort.compare.compareStringCaseSensitiveDesc)
package de.polygonal.ds.sort.compare {
public function compareStringCaseSensitiveDesc(_arg1:String, _arg2:String):int{
var _local3:int;
var _local4:int;
var _local5:int;
if ((_arg1.length + _arg2.length) > 2){
_local3 = 0;
_local4 = ((_arg1.length > _arg2.length)) ? _arg1.length : _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = (_arg2.charCodeAt(_local5) - _arg1.charCodeAt(_local5));
if (_local3 != 0){
break;
};
_local5++;
};
return (_local3);
//unresolved jump
};
return ((_arg2.charCodeAt(0) - _arg1.charCodeAt(0)));
}
}//package de.polygonal.ds.sort.compare
Section 42
//sLinkedInsertionSort (de.polygonal.ds.sort.sLinkedInsertionSort)
package de.polygonal.ds.sort {
import de.polygonal.ds.*;
public function sLinkedInsertionSort(_arg1:SListNode, _arg2:Boolean=false):SListNode{
var _local7:int;
var _local8:Number;
var _local3:Array = [];
var _local4:int;
var _local5:SListNode = _arg1;
var _local6:SListNode = _arg1;
while (_local6) {
var _temp1 = _local4;
_local4 = (_local4 + 1);
var _local10 = _temp1;
_local3[_local10] = _local6.data;
_local6 = _local6.next;
};
if (_local4 <= 1){
return (_local5);
};
var _local9:int = 1;
while (_local9 < _local4) {
_local8 = _local3[_local9];
_local7 = _local9;
while ((((_local7 > 0)) && ((_local3[int((_local7 - 1))] > _local8)))) {
_local3[_local7] = _local3[int((_local7 - 1))];
_local7--;
};
_local3[_local7] = _local8;
_local9++;
};
_local6 = _local5;
_local9 = 0;
while (_local6) {
var _temp2 = _local9;
_local9 = (_local9 + 1);
_local6.data = _local3[_temp2];
_local6 = _local6.next;
};
return (_local5);
}
}//package de.polygonal.ds.sort
Section 43
//sLinkedInsertionSortCmp (de.polygonal.ds.sort.sLinkedInsertionSortCmp)
package de.polygonal.ds.sort {
import de.polygonal.ds.*;
public function sLinkedInsertionSortCmp(_arg1:SListNode, _arg2:Function, _arg3:Boolean=false):SListNode{
var _local8:int;
var _local9:int;
var _local10:*;
var _local4:Array = [];
var _local5:int;
var _local6:SListNode = _arg1;
var _local7:SListNode = _arg1;
while (_local7) {
var _temp1 = _local5;
_local5 = (_local5 + 1);
var _local11 = _temp1;
_local4[_local11] = _local7.data;
_local7 = _local7.next;
};
if (_arg3){
if (_local5 <= 1){
return (_local6);
};
_local9 = 1;
while (_local9 < _local5) {
_local10 = _local4[_local9];
_local8 = _local9;
while ((((_local8 > 0)) && ((_arg2(_local4[int((_local8 - 1))], _local10) < 0)))) {
_local4[_local8] = _local4[int((_local8 - 1))];
_local8--;
};
_local4[_local8] = _local10;
_local9++;
};
} else {
if (_local5 <= 1){
return (_local6);
};
_local9 = 1;
while (_local9 < _local5) {
_local10 = _local4[_local9];
_local8 = _local9;
while ((((_local8 > 0)) && ((_arg2(_local4[int((_local8 - 1))], _local10) > 0)))) {
_local4[_local8] = _local4[int((_local8 - 1))];
_local8--;
};
_local4[_local8] = _local10;
_local9++;
};
};
_local7 = _local6;
_local9 = 0;
while (_local7) {
var _temp2 = _local9;
_local9 = (_local9 + 1);
_local7.data = _local4[_temp2];
_local7 = _local7.next;
};
return (_local6);
}
}//package de.polygonal.ds.sort
Section 44
//sLinkedMergeSort (de.polygonal.ds.sort.sLinkedMergeSort)
package de.polygonal.ds.sort {
import de.polygonal.ds.*;
public function sLinkedMergeSort(_arg1:SListNode, _arg2:Boolean=false):SListNode{
var _local4:SListNode;
var _local5:SListNode;
var _local6:SListNode;
var _local7:SListNode;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
if (!(_arg1)){
return (null);
};
var _local3:SListNode = _arg1;
var _local8:int = 1;
if (_arg2){
while (true) {
_local4 = _local3;
_local7 = null;
_local3 = _local7;
_local9 = 0;
while (_local4) {
_local9++;
_local12 = 0;
_local10 = 0;
_local5 = _local4;
while (_local12 < _local8) {
_local10++;
_local5 = _local5.next;
if (!(_local5)){
break;
};
_local12++;
};
_local11 = _local8;
while ((((_local10 > 0)) || ((((_local11 > 0)) && (_local5))))) {
if (_local10 == 0){
_local6 = _local5;
_local5 = _local5.next;
_local11--;
} else {
if ((((_local11 == 0)) || (!(_local5)))){
_local6 = _local4;
_local4 = _local4.next;
_local10--;
} else {
if ((_local4.data - _local5.data) >= 0){
_local6 = _local4;
_local4 = _local4.next;
_local10--;
} else {
_local6 = _local5;
_local5 = _local5.next;
_local11--;
};
};
};
if (_local7){
_local7.next = _local6;
} else {
_local3 = _local6;
};
_local7 = _local6;
};
_local4 = _local5;
};
_local7.next = null;
if (_local9 <= 1){
return (_local3);
};
_local8 = (_local8 << 1);
};
} else {
while (true) {
_local4 = _local3;
_local7 = null;
_local3 = _local7;
_local9 = 0;
while (_local4) {
_local9++;
_local12 = 0;
_local10 = 0;
_local5 = _local4;
while (_local12 < _local8) {
_local10++;
_local5 = _local5.next;
if (!(_local5)){
break;
};
_local12++;
};
_local11 = _local8;
while ((((_local10 > 0)) || ((((_local11 > 0)) && (_local5))))) {
if (_local10 == 0){
_local6 = _local5;
_local5 = _local5.next;
_local11--;
} else {
if ((((_local11 == 0)) || (!(_local5)))){
_local6 = _local4;
_local4 = _local4.next;
_local10--;
} else {
if ((_local4.data - _local5.data) <= 0){
_local6 = _local4;
_local4 = _local4.next;
_local10--;
} else {
_local6 = _local5;
_local5 = _local5.next;
_local11--;
};
};
};
if (_local7){
_local7.next = _local6;
} else {
_local3 = _local6;
};
_local7 = _local6;
};
_local4 = _local5;
};
_local7.next = null;
if (_local9 <= 1){
return (_local3);
};
_local8 = (_local8 << 1);
};
};
return (null);
}
}//package de.polygonal.ds.sort
Section 45
//sLinkedMergeSortCmp (de.polygonal.ds.sort.sLinkedMergeSortCmp)
package de.polygonal.ds.sort {
import de.polygonal.ds.*;
public function sLinkedMergeSortCmp(_arg1:SListNode, _arg2:Function, _arg3:Boolean=false):SListNode{
var _local5:SListNode;
var _local6:SListNode;
var _local7:SListNode;
var _local8:SListNode;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
if (((!(_arg1)) || ((_arg2 == null)))){
return (null);
};
var _local4:SListNode = _arg1;
var _local9:int = 1;
if (_arg3){
while (true) {
_local5 = _local4;
_local8 = null;
_local4 = _local8;
_local10 = 0;
while (_local5) {
_local10++;
_local13 = 0;
_local11 = 0;
_local6 = _local5;
while (_local13 < _local9) {
_local11++;
_local6 = _local6.next;
if (!(_local6)){
break;
};
_local13++;
};
_local12 = _local9;
while ((((_local11 > 0)) || ((((_local12 > 0)) && (_local6))))) {
if (_local11 == 0){
_local7 = _local6;
_local6 = _local6.next;
_local12--;
} else {
if ((((_local12 == 0)) || (!(_local6)))){
_local7 = _local5;
_local5 = _local5.next;
_local11--;
} else {
if (_arg2(_local5.data, _local6.data) >= 0){
_local7 = _local5;
_local5 = _local5.next;
_local11--;
} else {
_local7 = _local6;
_local6 = _local6.next;
_local12--;
};
};
};
if (_local8){
_local8.next = _local7;
} else {
_local4 = _local7;
};
_local8 = _local7;
};
_local5 = _local6;
};
_local8.next = null;
if (_local10 <= 1){
return (_local4);
};
_local9 = (_local9 << 1);
};
} else {
while (true) {
_local5 = _local4;
_local8 = null;
_local4 = _local8;
_local10 = 0;
while (_local5) {
_local10++;
_local13 = 0;
_local11 = 0;
_local6 = _local5;
while (_local13 < _local9) {
_local11++;
_local6 = _local6.next;
if (!(_local6)){
break;
};
_local13++;
};
_local12 = _local9;
while ((((_local11 > 0)) || ((((_local12 > 0)) && (_local6))))) {
if (_local11 == 0){
_local7 = _local6;
_local6 = _local6.next;
_local12--;
} else {
if ((((_local12 == 0)) || (!(_local6)))){
_local7 = _local5;
_local5 = _local5.next;
_local11--;
} else {
if (_arg2(_local5.data, _local6.data) <= 0){
_local7 = _local5;
_local5 = _local5.next;
_local11--;
} else {
_local7 = _local6;
_local6 = _local6.next;
_local12--;
};
};
};
if (_local8){
_local8.next = _local7;
} else {
_local4 = _local7;
};
_local8 = _local7;
};
_local5 = _local6;
};
_local8.next = null;
if (_local10 <= 1){
return (_local4);
};
_local9 = (_local9 << 1);
};
};
return (null);
}
}//package de.polygonal.ds.sort
Section 46
//Array2 (de.polygonal.ds.Array2)
package de.polygonal.ds {
public class Array2 implements Collection {
private var _a:Array;
private var _h:int;
private var _w:int;
public function Array2(_arg1:int, _arg2:int){
if ((((_arg1 < 1)) || ((_arg2 < 1)))){
throw (new Error("illegal size"));
};
_a = new Array((_w = _arg1), (_h = _arg2));
fill(null);
}
public function get size():int{
return ((_w * _h));
}
public function fill(_arg1):void{
var _local3:int;
var _local4:Class;
var _local2:int = (_w * _h);
if ((_arg1 is Class)){
_local4 = (_arg1 as Class);
_local3 = 0;
while (_local3 < _local2) {
_a[_local3] = new (_local4);
_local3++;
};
} else {
_local3 = 0;
while (_local3 < _local2) {
_a[_local3] = _arg1;
_local3++;
};
};
}
public function get width():int{
return (_w);
}
public function getCol(_arg1:int):Array{
var _local2:Array = [];
var _local3:int;
while (_local3 < _h) {
_local2[_local3] = _a[int(((_local3 * _w) + _arg1))];
_local3++;
};
return (_local2);
}
public function shiftDown():void{
if (_h == 1){
return;
};
var _local1:int = ((_h - 1) * _w);
_a = _a.slice(_local1, (_local1 + _w)).concat(_a);
_a.splice((_h * _w), _w);
}
public function set width(_arg1:int):void{
resize(_arg1, _h);
}
public function appendCol(_arg1:Array):void{
_arg1.length = _h;
var _local2:int;
while (_local2 < _h) {
_a.splice((((_local2 * _w) + _w) + _local2), 0, _arg1[_local2]);
_local2++;
};
_w++;
}
public function set height(_arg1:int):void{
resize(_w, _arg1);
}
public function clear():void{
_a = new Array(size);
}
public function get(_arg1:int, _arg2:int){
return (_a[int(((_arg2 * _w) + _arg1))]);
}
public function setRow(_arg1:uint, _arg2:Array):void{
if ((((_arg1 < 0)) || ((_arg1 > _h)))){
throw (new Error("row index out of bounds"));
};
var _local3:int = (_arg1 * _w);
var _local4:int;
while (_local4 < _w) {
_a[int((_local3 + _local4))] = _arg2[_local4];
_local4++;
};
}
public function prependCol(_arg1:Array):void{
_arg1.length = _h;
var _local2:int;
while (_local2 < _h) {
_a.splice(((_local2 * _w) + _local2), 0, _arg1[_local2]);
_local2++;
};
_w++;
}
public function isEmpty():Boolean{
return (false);
}
public function toArray():Array{
var _local1:Array = _a.concat();
var _local2:int = size;
if (_local1.length > _local2){
_local1.length = _local2;
};
return (_local1);
}
public function contains(_arg1):Boolean{
var _local2:int = size;
var _local3:int;
while (_local3 < _local2) {
if (_a[_local3] === _arg1){
return (true);
};
_local3++;
};
return (false);
}
public function appendRow(_arg1:Array):void{
_arg1.length = _w;
_a = _a.concat(_arg1);
_h++;
}
public function dump():String{
var _local2:int;
var _local3:*;
var _local5:int;
var _local1:String = "Array2\n{";
var _local4:int;
while (_local4 < _h) {
_local1 = (_local1 + ("\n" + "\t"));
_local2 = (_local4 * _w);
_local5 = 0;
while (_local5 < _w) {
_local3 = _a[int((_local2 + _local5))];
_local1 = (_local1 + (("[" + (!((_local3 == undefined))) ? _local3 : "?") + "]"));
_local5++;
};
_local4++;
};
_local1 = (_local1 + "\n}");
return (_local1);
}
public function getArray():Array{
return (_a);
}
public function getRow(_arg1:int):Array{
var _local2:int = (_arg1 * _w);
return (_a.slice(_local2, (_local2 + _w)));
}
public function get height():int{
return (_h);
}
public function shiftLeft():void{
var _local2:int;
if (_w == 1){
return;
};
var _local1:int = (_w - 1);
var _local3:int;
while (_local3 < _h) {
_local2 = ((_local3 * _w) + _local1);
_a.splice(_local2, 0, _a.splice((_local2 - _local1), 1));
_local3++;
};
}
public function getIterator():Iterator{
return (new Array2Iterator(this));
}
public function prependRow(_arg1:Array):void{
_arg1.length = _w;
_a = _arg1.concat(_a);
_h++;
}
public function set(_arg1:int, _arg2:int, _arg3):void{
_a[int(((_arg2 * _w) + _arg1))] = _arg3;
}
public function resize(_arg1:int, _arg2:int):void{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
if ((((_arg1 < 1)) || ((_arg2 < 1)))){
throw (new Error("illegal size"));
};
var _local3:Array = _a.concat();
_a.length = 0;
_a.length = (_arg1 * _arg2);
var _local4:int = ((_arg1 < _w)) ? _arg1 : _w;
var _local5:int = ((_arg2 < _h)) ? _arg2 : _h;
_local7 = 0;
while (_local7 < _local5) {
_local8 = (_local7 * _arg1);
_local9 = (_local7 * _w);
_local6 = 0;
while (_local6 < _local4) {
_a[int((_local8 + _local6))] = _local3[int((_local9 + _local6))];
_local6++;
};
_local7++;
};
_w = _arg1;
_h = _arg2;
}
public function transpose():void{
var _local3:int;
var _local1:Array = _a.concat();
var _local2:int;
while (_local2 < _h) {
_local3 = 0;
while (_local3 < _w) {
_a[int(((_local3 * _w) + _local2))] = _local1[int(((_local2 * _w) + _local3))];
_local3++;
};
_local2++;
};
}
public function shiftRight():void{
var _local2:int;
if (_w == 1){
return;
};
var _local1:int = (_w - 1);
var _local3:int;
while (_local3 < _h) {
_local2 = ((_local3 * _w) + _local1);
_a.splice((_local2 - _local1), 0, _a.splice(_local2, 1));
_local3++;
};
}
public function toString():String{
return ((((("[Array2, width=" + width) + ", height=") + height) + "]"));
}
public function shiftUp():void{
if (_h == 1){
return;
};
_a = _a.concat(_a.slice(0, _w));
_a.splice(0, _w);
}
public function setCol(_arg1:int, _arg2:Array):void{
if ((((_arg1 < 0)) || ((_arg1 > _w)))){
throw (new Error("column index out of bounds"));
};
var _local3:int;
while (_local3 < _h) {
_a[int(((_local3 * _w) + _arg1))] = _arg2[_local3];
_local3++;
};
}
}
}//package de.polygonal.ds
class Array2Iterator implements Iterator {
private var _xCursor:int;
private var _a2:Array2;
private var _yCursor:int;
private function Array2Iterator(_arg1:Array2){
_a2 = _arg1;
_xCursor = (_yCursor = 0);
}
public function start():void{
_xCursor = (_yCursor = 0);
}
public function hasNext():Boolean{
return ((((_yCursor * _a2.width) + _xCursor) < _a2.size));
}
public function get data(){
return (_a2.get(_xCursor, _yCursor));
}
public function set data(_arg1):void{
_a2.set(_xCursor, _yCursor, _arg1);
}
public function next(){
var _local1:* = data;
if (++_xCursor == _a2.width){
_yCursor++;
_xCursor = 0;
};
return (_local1);
}
}
Section 47
//Collection (de.polygonal.ds.Collection)
package de.polygonal.ds {
public interface Collection {
function get size():int;
function isEmpty():Boolean;
function getIterator():Iterator;
function clear():void;
function toArray():Array;
function contains(_arg1):Boolean;
}
}//package de.polygonal.ds
Section 48
//HashMap (de.polygonal.ds.HashMap)
package de.polygonal.ds {
import flash.utils.*;
public class HashMap implements Collection {
private var _maxSize:int;
private var _initSize:int;
private var _pair:PairNode;
private var _keyMap:Dictionary;
private var _size:int;
private var _tail:PairNode;
private var _dupMap:Dictionary;
private var _head:PairNode;
public function HashMap(_arg1:int=500){
_initSize = (_maxSize = Math.max(10, _arg1));
_keyMap = new Dictionary(true);
_dupMap = new Dictionary(true);
_size = 0;
var _local2:PairNode = new PairNode();
_head = (_tail = _local2);
var _local3:int = (_initSize + 1);
var _local4:int;
while (_local4 < _local3) {
_local2.next = new PairNode();
_local2 = _local2.next;
_local4++;
};
_tail = _local2;
}
public function containsKey(_arg1):Boolean{
return (!((_keyMap[_arg1] == undefined)));
}
public function get size():int{
return (_size);
}
public function isEmpty():Boolean{
return ((_size == 0));
}
public function remove(_arg1){
var _local3:*;
var _local4:int;
var _local5:int;
var _local2:PairNode = _keyMap[_arg1];
if (_local2){
_local3 = _local2.obj;
delete _keyMap[_arg1];
if (_local2.prev){
_local2.prev.next = _local2.next;
};
if (_local2.next){
_local2.next.prev = _local2.prev;
};
if (_local2 == _pair){
_pair = _local2.next;
};
_local2.prev = null;
_local2.next = null;
_tail.next = _local2;
_tail = _local2;
var _local6 = _dupMap;
var _local7 = _local3;
var _local8 = (_local6[_local7] - 1);
_local6[_local7] = _local8;
if (_local8 <= 0){
delete _dupMap[_local3];
};
if (--_size <= (_maxSize - _initSize)){
_local4 = ((_maxSize = (_maxSize - _initSize)) + 1);
_local5 = 0;
while (_local5 < _local4) {
_head = _head.next;
_local5++;
};
};
return (_local3);
};
return (null);
}
public function find(_arg1){
var _local2:PairNode = _keyMap[_arg1];
if (_local2){
return (_local2.obj);
};
return (null);
}
public function clear():void{
var _local1:PairNode;
_keyMap = new Dictionary(true);
_dupMap = new Dictionary(true);
var _local2:PairNode = _pair;
while (_local2) {
_local1 = _local2.next;
_local2.next = (_local2.prev = null);
_local2.key = null;
_local2.obj = null;
_tail.next = _local2;
_tail = _tail.next;
_local2 = _local1;
};
_pair = null;
_size = 0;
}
public function getKeySet():Array{
var _local2:int;
var _local3:PairNode;
var _local1:Array = new Array(_size);
for each (_local3 in _keyMap) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local6 = _temp1;
_local1[_local6] = _local3.key;
};
return (_local1);
}
public function getIterator():Iterator{
return (new HashMapIterator(_pair));
}
public function toArray():Array{
var _local2:int;
var _local3:PairNode;
var _local1:Array = new Array(_size);
for each (_local3 in _keyMap) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local6 = _temp1;
_local1[_local6] = _local3.obj;
};
return (_local1);
}
public function contains(_arg1):Boolean{
return ((_dupMap[_arg1] > 0));
}
public function toString():String{
return ((("[HashMap, size=" + size) + "]"));
}
public function dump():String{
var _local2:PairNode;
var _local1:String = "HashMap:\n";
for each (_local2 in _keyMap) {
_local1 = (_local1 + (((("[key: " + _local2.key) + ", val:") + _local2.obj) + "]\n"));
};
return (_local1);
}
public function insert(_arg1, _arg2):Boolean{
var _local4:int;
var _local5:int;
if (_arg1 == null){
return (false);
};
if (_arg2 == null){
return (false);
};
if (_keyMap[_arg1]){
return (false);
};
if (_size++ == _maxSize){
_local4 = ((_maxSize = (_maxSize + _initSize)) + 1);
_local5 = 0;
while (_local5 < _local4) {
_tail.next = new PairNode();
_tail = _tail.next;
_local5++;
};
};
var _local3:PairNode = _head;
_head = _head.next;
_local3.key = _arg1;
_local3.obj = _arg2;
_local3.next = _pair;
if (_pair){
_pair.prev = _local3;
};
_pair = _local3;
_keyMap[_arg1] = _local3;
if (_dupMap[_arg2]){
var _local6 = _dupMap;
var _local7 = _arg2;
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
} else {
_dupMap[_arg2] = 1;
};
return (true);
}
}
}//package de.polygonal.ds
class PairNode {
public var prev:PairNode;
public var obj;
public var next:PairNode;
public var key;
private function PairNode(){
}
}
class HashMapIterator implements Iterator {
private var _walker:PairNode;
private var _pair:PairNode;
private function HashMapIterator(_arg1:PairNode){
_pair = (_walker = _arg1);
}
public function start():void{
_walker = _pair;
}
public function get data(){
return (_walker.obj);
}
public function hasNext():Boolean{
return (!((_walker == null)));
}
public function set data(_arg1):void{
_walker.obj = _arg1;
}
public function next(){
var _local1:* = _walker.obj;
_walker = _walker.next;
return (_local1);
}
}
Section 49
//Iterator (de.polygonal.ds.Iterator)
package de.polygonal.ds {
public interface Iterator {
function start():void;
function set data(_arg1):void;
function get data();
function next();
function hasNext():Boolean;
}
}//package de.polygonal.ds
Section 50
//LinkedListNode (de.polygonal.ds.LinkedListNode)
package de.polygonal.ds {
public interface LinkedListNode {
}
}//package de.polygonal.ds
Section 51
//LinkedQueue (de.polygonal.ds.LinkedQueue)
package de.polygonal.ds {
public class LinkedQueue implements Collection {
private var _list:SLinkedList;
public function LinkedQueue(_arg1:SLinkedList=null){
if (_arg1 == null){
_list = new SLinkedList();
} else {
_list = _arg1;
};
}
public function get size():int{
return (_list.size);
}
public function isEmpty():Boolean{
return ((_list.size == 0));
}
public function getIterator():Iterator{
return (_list.getIterator());
}
public function contains(_arg1):Boolean{
return (_list.contains(_arg1));
}
public function back(){
return (((_list.size > 0)) ? _list.tail.data : null);
}
public function enqueue(_arg1):void{
_list.append(_arg1);
}
public function toString():String{
return ((("[LinkedQueue > " + _list) + "]"));
}
public function clear():void{
_list.clear();
}
public function dequeue(){
var _local1:*;
if (_list.size > 0){
_local1 = _list.head.data;
_list.removeHead();
return (_local1);
};
return (null);
}
public function dump():String{
return (("LinkedQueue:\n" + _list.dump()));
}
public function peek(){
return (((_list.size > 0)) ? _list.head.data : null);
}
public function toArray():Array{
return (_list.toArray());
}
}
}//package de.polygonal.ds
Section 52
//Prioritizable (de.polygonal.ds.Prioritizable)
package de.polygonal.ds {
public class Prioritizable {
public var priority:int;
public function Prioritizable(_arg1:int=-1){
this.priority = _arg1;
}
public function toString():String{
return ((("[Prioritizable, priority=" + priority) + "]"));
}
}
}//package de.polygonal.ds
Section 53
//PriorityQueue (de.polygonal.ds.PriorityQueue)
package de.polygonal.ds {
import flash.utils.*;
public class PriorityQueue implements Collection {
private var _heap:Array;
private var _count:int;
private var _size:int;
private var _posLookup:Dictionary;
public function PriorityQueue(_arg1:int){
_heap = new Array((_size = (_arg1 + 1)));
_posLookup = new Dictionary(true);
_count = 0;
}
public function get size():int{
return (_count);
}
public function isEmpty():Boolean{
return ((_count == 0));
}
public function remove(_arg1:Prioritizable):Boolean{
var _local2:int;
var _local3:*;
if (_count >= 1){
_local2 = _posLookup[_arg1];
_local3 = _heap[_local2];
delete _posLookup[_local3];
_heap[_local2] = _heap[_count];
walkDown(_local2);
delete _heap[_count];
delete _posLookup[_count];
_count--;
return (true);
};
return (false);
}
public function get maxSize():int{
return (_size);
}
public function enqueue(_arg1:Prioritizable):Boolean{
if ((_count + 1) < _size){
_count++;
_heap[_count] = _arg1;
_posLookup[_arg1] = _count;
walkUp(_count);
return (true);
};
return (false);
}
public function clear():void{
_heap = new Array(_size);
_posLookup = new Dictionary(true);
_count = 0;
}
private function walkDown(_arg1:int):void{
var _local3:Prioritizable;
var _local2:int = (_arg1 << 1);
var _local4:Prioritizable = _heap[_arg1];
var _local5:int = _local4.priority;
while (_local2 < _count) {
if (_local2 < (_count - 1)){
if ((_heap[_local2].priority - _heap[int((_local2 + 1))].priority) < 0){
_local2++;
};
};
_local3 = _heap[_local2];
if ((_local5 - _local3.priority) < 0){
_heap[_arg1] = _local3;
_posLookup[_local3] = _arg1;
_posLookup[_local4] = _local2;
_arg1 = _local2;
_local2 = (_local2 << 1);
} else {
break;
};
};
_heap[_arg1] = _local4;
_posLookup[_local4] = _arg1;
}
private function walkUp(_arg1:int):void{
var _local3:Prioritizable;
var _local2:int = (_arg1 >> 1);
var _local4:Prioritizable = _heap[_arg1];
var _local5:int = _local4.priority;
while (_local2 > 0) {
_local3 = _heap[_local2];
if ((_local5 - _local3.priority) > 0){
_heap[_arg1] = _local3;
_posLookup[_local3] = _arg1;
_arg1 = _local2;
_local2 = (_local2 >> 1);
} else {
break;
};
};
_heap[_arg1] = _local4;
_posLookup[_local4] = _arg1;
}
public function toArray():Array{
return (_heap.slice(1, (_count + 1)));
}
public function contains(_arg1):Boolean{
var _local2:int = 1;
while (_local2 <= _count) {
if (_heap[_local2] === _arg1){
return (true);
};
_local2++;
};
return (false);
}
public function get front():Prioritizable{
return (_heap[1]);
}
public function getIterator():Iterator{
return (new PriorityQueueIterator(this));
}
public function toString():String{
return ((("[PriorityQueue, size=" + _size) + "]"));
}
public function dequeue():Prioritizable{
var _local1:*;
if (_count >= 1){
_local1 = _heap[1];
delete _posLookup[_local1];
_heap[1] = _heap[_count];
walkDown(1);
delete _heap[_count];
_count--;
return (_local1);
};
return (null);
}
public function reprioritize(_arg1:Prioritizable, _arg2:int):Boolean{
if (!(_posLookup[_arg1])){
return (false);
};
var _local3:int = _arg1.priority;
_arg1.priority = _arg2;
var _local4:int = _posLookup[_arg1];
if ((_arg2 > _local3)){
walkUp(_local4);
} else {
walkDown(_local4);
};
return (true);
}
public function dump():String{
if (_count == 0){
return ("PriorityQueue (empty)");
};
var _local1:String = "PriorityQueue\n{\n";
var _local2:int = (_count + 1);
var _local3:int = 1;
while (_local3 < _local2) {
_local1 = (_local1 + (("\t" + _heap[_local3]) + "\n"));
_local3++;
};
_local1 = (_local1 + "\n}");
return (_local1);
}
}
}//package de.polygonal.ds
class PriorityQueueIterator implements Iterator {
private var _values:Array;
private var _length:int;
private var _cursor:int;
private function PriorityQueueIterator(_arg1:PriorityQueue){
_values = _arg1.toArray();
_length = _values.length;
_cursor = 0;
}
public function start():void{
_cursor = 0;
}
public function next(){
return (_values[_cursor++]);
}
public function hasNext():Boolean{
return ((_cursor < _length));
}
public function get data(){
return (_values[_cursor]);
}
public function set data(_arg1):void{
_values[_cursor] = _arg1;
}
}
Section 54
//Set (de.polygonal.ds.Set)
package de.polygonal.ds {
import flash.utils.*;
public class Set implements Collection {
private var _size:int;
private var _set:Dictionary;
public function Set(){
_set = new Dictionary(true);
super();
_set = new Dictionary();
}
public function get size():int{
return (_size);
}
public function set(_arg1):void{
if (_arg1 == null){
return;
};
if (_arg1 == undefined){
return;
};
if (_set[_arg1]){
return;
};
_set[_arg1] = _arg1;
_size++;
}
public function remove(_arg1):Boolean{
if (_set[_arg1] != undefined){
delete _set[_arg1];
_size--;
return (true);
};
return (false);
}
public function isEmpty():Boolean{
return ((_size == 0));
}
public function getIterator():Iterator{
return (new SetIterator(this));
}
public function toString():String{
return ((("[Set, size=" + size) + "]"));
}
public function contains(_arg1):Boolean{
return (!((_set[_arg1] == undefined)));
}
public function clear():void{
_set = new Dictionary();
_size = 0;
}
public function get(_arg1){
var _local2:* = _set[_arg1];
return ((!((_local2 == undefined))) ? _local2 : null);
}
public function dump():String{
var _local2:*;
var _local1:String = "Set:\n";
for each (_local2 in _set) {
_local1 = (_local1 + (("[val: " + _local2) + "]\n"));
};
return (_local1);
}
public function toArray():Array{
var _local2:int;
var _local3:*;
var _local1:Array = new Array(_size);
for (_local3 in _set) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local6 = _temp1;
_local1[_local6] = _local3;
};
return (_local1);
}
}
}//package de.polygonal.ds
class SetIterator implements Iterator {
private var _size:int;
private var _a:Array;
private var _s:Set;
private var _cursor:int;
private function SetIterator(_arg1:Set){
_s = _arg1;
_a = _arg1.toArray();
_cursor = 0;
_size = _arg1.size;
}
public function start():void{
_cursor = 0;
}
public function next(){
return (_a[_cursor++]);
}
public function hasNext():Boolean{
return ((_cursor < _size));
}
public function get data(){
return (_a[_cursor]);
}
public function set data(_arg1):void{
_s.remove(_a[_cursor]);
_s.set(_arg1);
}
}
Section 55
//SLinkedList (de.polygonal.ds.SLinkedList)
package de.polygonal.ds {
import de.polygonal.ds.sort.*;
import de.polygonal.ds.sort.compare.*;
public class SLinkedList implements Collection {
private var _count:int;
public var tail:SListNode;
public var head:SListNode;
public static const MERGE_SORT:int = (1 << 2);
public static const DESCENDING:int = (1 << 4);
public static const NUMERIC:int = (1 << 3);
public static const INSERTION_SORT:int = (1 << 1);
public function SLinkedList(... _args){
head = (tail = null);
_count = 0;
if (_args.length > 0){
append.apply(this, _args);
};
}
public function get size():int{
return (_count);
}
public function isEmpty():Boolean{
return ((_count == 0));
}
public function remove(_arg1:SListIterator):Boolean{
if (((!((_arg1.list == this))) || (!(_arg1.node)))){
return (false);
};
var _local2:SListNode = head;
if (_arg1.node == head){
_arg1.forth();
removeHead();
return (true);
};
while (_local2.next != _arg1.node) {
_local2 = _local2.next;
};
_arg1.forth();
if (_local2.next == tail){
tail = _local2;
};
_local2.next = _arg1.node;
_count--;
return (true);
}
public function removeHead(){
var _local1:*;
var _local2:SListNode;
if (head){
_local1 = head.data;
if (head == tail){
head = (tail = null);
} else {
_local2 = head;
head = head.next;
_local2.next = null;
if (head == null){
tail = null;
};
};
_count--;
return (_local1);
};
return (null);
}
public function clear():void{
var _local2:SListNode;
var _local1:SListNode = head;
head = null;
while (_local1) {
_local2 = _local1.next;
_local1.next = null;
_local1 = _local2;
};
_count = 0;
}
public function prepend(... _args):SListNode{
var _local4:SListNode;
var _local5:int;
var _local2:int = _args.length;
var _local3:SListNode = new SListNode(_args[int((_local2 - 1))]);
if (head){
_local3.next = head;
head = _local3;
} else {
head = (tail = _local3);
};
if (_local2 > 1){
_local4 = _local3;
_local5 = (_local2 - 2);
while (_local5 >= 0) {
_local3 = new SListNode(_args[_local5]);
_local3.next = head;
head = _local3;
_local5--;
};
_count = (_count + _local2);
return (_local4);
};
_count++;
return (_local3);
}
public function popDown():void{
var _local2:SListNode;
var _local1:SListNode = tail;
if (head.next == tail){
tail = head;
head = _local1;
tail.next = null;
head.next = tail;
} else {
_local2 = head;
while (_local2.next != tail) {
_local2 = _local2.next;
};
tail = _local2;
tail.next = null;
_local1.next = head;
head = _local1;
};
}
public function concat(... _args):SLinkedList{
var _local3:SLinkedList;
var _local4:SListNode;
var _local2:SLinkedList = new SLinkedList();
_local4 = head;
while (_local4) {
_local2.append(_local4.data);
_local4 = _local4.next;
};
var _local5:int = _args.length;
var _local6:int;
while (_local6 < _local5) {
_local3 = _args[_local6];
_local4 = _local3.head;
while (_local4) {
_local2.append(_local4.data);
_local4 = _local4.next;
};
_local6++;
};
return (_local2);
}
public function append(... _args):SListNode{
var _local4:SListNode;
var _local5:int;
var _local2:int = _args.length;
var _local3:SListNode = new SListNode(_args[0]);
if (head){
tail.next = _local3;
tail = _local3;
} else {
head = (tail = _local3);
};
if (_local2 > 1){
_local4 = _local3;
_local5 = 1;
while (_local5 < _local2) {
_local3 = new SListNode(_args[_local5]);
tail.next = _local3;
tail = _local3;
_local5++;
};
_count = (_count + _local2);
return (_local4);
};
_count++;
return (_local3);
}
public function sort(... _args):void{
var _local2:int;
var _local3:Function;
var _local4:*;
if (_count <= 1){
return;
};
if (_args.length > 0){
_local2 = 0;
_local3 = null;
_local4 = _args[0];
if ((_local4 is Function)){
_local3 = _local4;
if (_args.length > 1){
_local4 = _args[1];
if ((_local4 is int)){
_local2 = _local4;
};
};
} else {
if ((_local4 is int)){
_local2 = _local4;
};
};
if (Boolean(_local3)){
if ((_local2 & 2)){
head = sLinkedInsertionSortCmp(head, _local3, (_local2 == 18));
} else {
head = sLinkedMergeSortCmp(head, _local3, (_local2 == 16));
};
} else {
if ((_local2 & 2)){
if ((_local2 & 4)){
if (_local2 == 22){
head = sLinkedInsertionSortCmp(head, compareStringCaseSensitiveDesc);
} else {
if (_local2 == 14){
head = sLinkedInsertionSortCmp(head, compareStringCaseInSensitive);
} else {
if (_local2 == 30){
head = sLinkedInsertionSortCmp(head, compareStringCaseInSensitiveDesc);
} else {
head = sLinkedInsertionSortCmp(head, compareStringCaseSensitive);
};
};
};
} else {
head = sLinkedInsertionSort(head, (_local2 == 18));
};
} else {
if ((_local2 & 4)){
if (_local2 == 20){
head = sLinkedMergeSortCmp(head, compareStringCaseSensitiveDesc);
} else {
if (_local2 == 12){
head = sLinkedMergeSortCmp(head, compareStringCaseInSensitive);
} else {
if (_local2 == 28){
head = sLinkedMergeSortCmp(head, compareStringCaseInSensitiveDesc);
} else {
head = sLinkedMergeSortCmp(head, compareStringCaseSensitive);
};
};
};
} else {
if ((_local2 & 16)){
head = sLinkedMergeSort(head, true);
};
};
};
};
} else {
head = sLinkedMergeSort(head);
};
}
public function reverse():void{
if (_count == 0){
return;
};
var _local1:Array = new Array(_count);
var _local2:int;
var _local3:SListNode = head;
while (_local3) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local4 = _temp1;
_local1[_local4] = _local3;
_local3 = _local3.next;
};
_local1.reverse();
_local3 = (head = _local1[0]);
_local2 = 1;
while (_local2 < _count) {
_local3 = (_local3.next = _local1[_local2]);
_local2++;
};
_local3.next = null;
tail = _local3;
_local1 = null;
}
public function insertAfter(_arg1:SListIterator, _arg2):SListNode{
var _local3:SListNode;
if (_arg1.list != this){
return (null);
};
if (_arg1.node){
_local3 = new SListNode(_arg2);
_arg1.node.insertAfter(_local3);
if (_arg1.node == tail){
tail = _arg1.node.next;
};
_count++;
return (_local3);
//unresolved jump
};
return (append(_arg2));
}
public function getIterator():Iterator{
return (new SListIterator(this, head));
}
public function toArray():Array{
var _local1:Array = [];
var _local2:SListNode = head;
while (_local2) {
_local1.push(_local2.data);
_local2 = _local2.next;
};
return (_local1);
}
public function contains(_arg1):Boolean{
var _local2:SListNode = head;
while (_local2) {
if (_local2.data == _arg1){
return (true);
};
_local2 = _local2.next;
};
return (false);
}
public function getListIterator():SListIterator{
return (new SListIterator(this, head));
}
public function join(_arg1):String{
if (_count == 0){
return ("");
};
var _local2:String = "";
var _local3:SListNode = head;
while (_local3.next) {
_local2 = (_local2 + (_local3.data + _arg1));
_local3 = _local3.next;
};
_local2 = (_local2 + _local3.data);
return (_local2);
}
public function toString():String{
return ((("[SlinkedList, size=" + size) + "]"));
}
public function removeTail(){
var _local1:*;
var _local2:SListNode;
if (tail){
_local1 = tail.data;
if (head == tail){
head = (tail = null);
} else {
_local2 = head;
while (_local2.next != tail) {
_local2 = _local2.next;
};
tail = _local2;
_local2.next = null;
};
_count--;
return (_local1);
};
return (null);
}
public function merge(... _args):void{
var _local2:SLinkedList;
if (_args.length == 0){
return;
};
_local2 = _args[0];
if (_local2.head){
if (head){
tail.next = _local2.head;
tail = _local2.tail;
} else {
head = _local2.head;
tail = _local2.tail;
};
_count = (_count + _local2.size);
};
var _local3:int = _args.length;
var _local4:int = 1;
while (_local4 < _local3) {
_local2 = _args[_local4];
if (_local2.head){
tail.next = _local2.head;
tail = _local2.tail;
_count = (_count + _local2.size);
};
_local4++;
};
}
public function nodeOf(_arg1, _arg2:SListIterator=null):SListIterator{
if (_arg2 != null){
if (_arg2.list != null){
return (null);
};
};
var _local3:SListNode = ((_arg2)==null) ? head : _arg2.node;
while (_local3) {
if (_local3.data === _arg1){
return (new SListIterator(this, _local3));
};
_local3 = _local3.next;
};
return (null);
}
public function dump():String{
if (!(head)){
return ("SLinkedList: (empty)");
};
var _local1:String = (((("SLinkedList: has " + _count) + " node") + ((_count == 1)) ? "" : "s") + "\n|< Head\n");
var _local2:SListIterator = getListIterator();
while (_local2.valid()) {
_local1 = (_local1 + (("\t" + _local2.data) + "\n"));
_local2.forth();
};
_local1 = (_local1 + "Tail >|");
return (_local1);
}
public function splice(_arg1:SListIterator, _arg2:uint=4294967295, ... _args):SLinkedList{
var _local4:SListNode;
var _local5:SListNode;
var _local6:SLinkedList;
var _local7:int;
var _local8:int;
var _local9:SListNode;
if (_arg1){
if (_arg1.list != this){
return (null);
};
};
if (_arg1.node){
_local4 = _arg1.node;
_local5 = head;
while (_local5.next != _local4) {
_local5 = _local5.next;
};
_local6 = new SLinkedList();
if (_arg2 == 4294967295){
if (_arg1.node == tail){
return (_local6);
};
while (_arg1.node) {
_local6.append(_arg1.node.data);
_arg1.remove();
};
_arg1.list = _local6;
_arg1.node = _local4;
return (_local6);
} else {
_local7 = 0;
while (_local7 < _arg2) {
if (_arg1.node){
_local6.append(_arg1.node.data);
_arg1.remove();
} else {
break;
};
_local7++;
};
};
_local8 = _args.length;
if (_local8 > 0){
if (_count == 0){
_local7 = 0;
while (_local7 < _local8) {
append(_args[_local7]);
_local7++;
};
} else {
if (_local5 == null){
_local9 = prepend(_args[0]);
_local7 = 1;
while (_local7 < _local8) {
_local9.insertAfter(new SListNode(_args[_local7]));
if (_local9 == tail){
tail = _local9.next;
};
_local9 = _local9.next;
_count++;
_local7++;
};
} else {
_local9 = _local5;
_local7 = 0;
while (_local7 < _local8) {
_local9.insertAfter(new SListNode(_args[_local7]));
if (_local9 == tail){
tail = _local9.next;
};
_local9 = _local9.next;
_count++;
_local7++;
};
};
};
_arg1.node = _local9;
} else {
_arg1.node = _local4;
};
_arg1.list = _local6;
return (_local6);
};
return (null);
}
public function shiftUp():void{
var _local1:SListNode = head;
if (head.next == tail){
head = tail;
tail = _local1;
tail.next = null;
head.next = tail;
} else {
head = head.next;
tail.next = _local1;
_local1.next = null;
tail = _local1;
};
}
}
}//package de.polygonal.ds
Section 56
//SListIterator (de.polygonal.ds.SListIterator)
package de.polygonal.ds {
public class SListIterator implements Iterator {
public var node:SListNode;
public var list:SLinkedList;
public function SListIterator(_arg1:SLinkedList=null, _arg2:SListNode=null){
this.list = _arg1;
this.node = _arg2;
}
public function remove():Boolean{
return (list.remove(this));
}
public function start():void{
if (list){
node = list.head;
};
}
public function get data(){
if (node){
return (node.data);
};
return (null);
}
public function forth():void{
if (node){
node = node.next;
};
}
public function toString():String{
return ((("{SListIterator: data=" + node.data) + "}"));
}
public function hasNext():Boolean{
return (Boolean(node));
}
public function valid():Boolean{
return (Boolean(node));
}
public function next(){
var _local1:*;
if (hasNext()){
_local1 = node.data;
node = node.next;
return (_local1);
};
return (null);
}
public function set data(_arg1):void{
node.data = _arg1;
}
public function end():void{
if (list){
node = list.tail;
};
}
}
}//package de.polygonal.ds
Section 57
//SListNode (de.polygonal.ds.SListNode)
package de.polygonal.ds {
public class SListNode implements LinkedListNode {
public var next:SListNode;
public var data;
public function SListNode(_arg1){
data = _arg1;
next = null;
}
public function insertAfter(_arg1:SListNode):void{
_arg1.next = next;
next = _arg1;
}
public function toString():String{
return ((("[SListNode, data=" + data) + "]"));
}
}
}//package de.polygonal.ds
Section 58
//_ao1296 (game.bonuses._ao1296)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _ao1296 implements _uq787 {
private static var _so820:Array2;
public function _sw584():Boolean{
return (true);
}
public function _xj698():Boolean{
return (false);
}
public function _vf1003():int{
return (_nt1089._il1058);
}
public function _po198():Boolean{
return (true);
}
public function _xl284():Array2{
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._ib360);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._ib360);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._em765);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._em765);
};
return (_so820);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _yo1162(_arg1, _arg2, 500));
}
}
}//package game.bonuses
Section 59
//_bb46 (game.bonuses._bb46)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _bb46 implements _uq787 {
private var _so820:Array2;
public function _xl284():Array2{
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._tg1190);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._tg1190);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._ur571);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._ur571);
};
return (_so820);
}
public function _xj698():Boolean{
return (false);
}
public function _vf1003():int{
return (_nt1089._mu1406);
}
public function _po198():Boolean{
return (true);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _wm970(_arg1, _arg2));
}
public function _sw584():Boolean{
return (true);
}
}
}//package game.bonuses
import game.*;
import de.polygonal.ds.*;
import flash.geom.*;
import com.herocraft.*;
import game.mumu.*;
class _wm970 extends _gm824 {
private var _pw1250:Point;
private var _pb943:uint;
private static const _fj746:uint = 64;
private static const _kj118:uint = 14;
private static const _kv1168:uint = 5;
private function _wm970(_arg1:_tp159, _arg2:_wy1415){
super(_arg1, _arg2);
_pb943 = 20;
}
override public function update():void{
var _local6:uint;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Number;
var _local10:int;
var _local11:int;
var _local12:_ui287;
var _local13:_vy1134;
var _local14:Number;
var _local1:uint;
var _local2:Rectangle = level._jw1005().getBounds(level);
var _local3:uint = (_kp1329._mc605 / 2);
var _local4:uint = ((_kv1168 * (_local3 - _pb943)) / _local3);
_local1 = 0;
while (_local1 < _local4) {
_local7 = false;
_local8 = false;
_local9 = ((Math.random() * 2) * Math.PI);
if ((((_local9 > ((2 * Math.PI) - (Math.PI / 4)))) || ((_local9 <= (Math.PI / 4))))){
_local6 = _ol205._pc664;
_local8 = true;
} else {
if ((((_local9 > (Math.PI / 4))) && ((_local9 <= ((Math.PI / 2) + (Math.PI / 4)))))){
_local6 = _ol205._tv464;
_local7 = true;
} else {
if ((((_local9 > ((Math.PI / 2) + (Math.PI / 4)))) && ((_local9 <= (Math.PI + (Math.PI / 4)))))){
_local6 = _ol205._bd330;
_local8 = true;
} else {
if ((((_local9 > (Math.PI + (Math.PI / 4)))) && ((_local9 <= ((2 * Math.PI) - (Math.PI / 4)))))){
_local6 = _ol205._ma736;
_local7 = true;
};
};
};
};
_local10 = (_pw1250.x + (Math.cos(_local9) * _pb943));
_local11 = (_pw1250.y + (Math.sin(_local9) * _pb943));
if ((_local11 - (2 * _fj746)) > _local2.y){
_local12 = new _ui287(_local6, _local10, _local11, level._jw1005());
_local12.execute();
if (((_local7) && ((Math.random() > 0.5)))){
_local12._qg582().scaleX = -1;
};
if (((_local8) && ((Math.random() > 0.5)))){
_local12._qg582().scaleY = -1;
};
};
_local1++;
};
var _local5:Iterator = level._ic468();
while (_local5.hasNext()) {
_local13 = (_local5.next() as _vy1134);
_local14 = Math.sqrt((Math.pow((_local13.x - b.x), 2) + Math.pow((_local13.y - b.y), 2)));
if ((((_local14 < _pb943)) && (!((_local13.getState() is _kg1092))))){
_local13.setState(new _kg1092(_local13, _kg1092._kp799));
};
};
_pb943 = (_pb943 + _kj118);
if (_pb943 > _local3){
level._qo1174(b);
};
}
override public function onEnter(_arg1:_vq529=null):void{
_pw1250 = new Point(b.x, b.y);
b.visible = false;
}
override public function _mu641(_arg1:_vq529=null):void{
level._sj121();
super._mu641(_arg1);
}
}
Section 60
//_bk127 (game.bonuses._bk127)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _bk127 implements _uq787 {
private static var _so820:Array2;
public function _bk127(){
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._am1010);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._am1010);
};
}
public function _xj698():Boolean{
return (false);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _sd1397(_arg1, _arg2, false));
}
public function _vf1003():int{
return (_nt1089._gw750);
}
public function _po198():Boolean{
return (false);
}
public function _xl284():Array2{
return (_so820);
}
public function _sw584():Boolean{
return (false);
}
}
}//package game.bonuses
Section 61
//_cl1341 (game.bonuses._cl1341)
package game.bonuses {
import game.*;
import game.gerasim.*;
import com.herocraft.*;
public class _cl1341 extends _gm824 {
private var _br1169:Boolean;
private var _vq707:uint;
private var _fa197:uint;
public function _cl1341(_arg1:_tp159, _arg2:_wy1415, _arg3:uint, _arg4:uint, _arg5:Boolean=true){
super(_arg1, _arg2);
this._br1169 = _arg5;
this._vq707 = _arg3;
this._fa197 = _arg4;
}
override public function onEnter(_arg1:_vq529=null):void{
var _local2:_iq1184 = level._tq820();
_local2.setState(new _ya1306(_local2, _vq707, _fa197));
if (_br1169){
new _ui287(_ol205._yd119, b.x, b.y, level).execute();
};
level._qo1174(b);
}
}
}//package game.bonuses
Section 62
//_cr862 (game.bonuses._cr862)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
import game.gerasim.*;
public class _cr862 implements _uq787 {
private static var _so820:Array2;
public function _cr862(){
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._jt866);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._jt866);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._ai862);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._ai862);
};
}
public function _xj698():Boolean{
return (true);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _cl1341(_arg1, _arg2, (2 * _iq1184._wr392), _ya1306._kj1170));
}
public function _vf1003():int{
return (_nt1089._mk1415);
}
public function _po198():Boolean{
return (false);
}
public function _xl284():Array2{
return (_so820);
}
public function _sw584():Boolean{
return (true);
}
}
}//package game.bonuses
Section 63
//_dx1080 (game.bonuses._dx1080)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
import game.gerasim.*;
public class _dx1080 implements _uq787 {
private var _so820:Array2;
public function _dx1080(){
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._uw53);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._uw53);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._ex258);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._ex258);
};
}
public function _xj698():Boolean{
return (true);
}
public function _vf1003():int{
return (_nt1089._cy289);
}
public function _po198():Boolean{
return (false);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _cl1341(_arg1, _arg2, (_iq1184._wr392 * 0.3), _ya1306._le682));
}
public function _xl284():Array2{
return (_so820);
}
public function _sw584():Boolean{
return (true);
}
}
}//package game.bonuses
Section 64
//_fi1113 (game.bonuses._fi1113)
package game.bonuses {
import flash.events.*;
import game.*;
import com.herocraft.*;
public class _fi1113 extends _gm824 {
private var _kf911:_mk278;
public function _fi1113(_arg1:_tp159){
super(_arg1, _arg1._mx1046());
}
override public function onEnter(_arg1:_vq529=null):void{
var _ju1450:Function;
var prevState = _arg1;
super.onEnter(prevState);
_kf911 = b._xi702(_tp159._dd838);
if (_kf911 != null){
_ju1450 = function (_arg1:Event):void{
_kf911.removeEventListener(_mk278._bw1056, _ju1450);
_bw1108();
};
_kf911.addEventListener(_mk278._bw1056, _ju1450);
} else {
b._xi702(_tb1260._bt340);
b.alpha = 1;
};
}
override public function update():void{
if (_kf911 == null){
b.alpha = (b.alpha + _tp159._wp1321);
if (b.alpha >= 1){
_bw1108();
};
};
}
private function _bw1108():void{
if (b != null){
b.setState(new _va61(b, level));
} else {
_kf911.dispose();
};
_kf911 = null;
}
}
}//package game.bonuses
Section 65
//_fq56 (game.bonuses._fq56)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _fq56 implements _uq787 {
private static var _so820:Array2;
public function _sw584():Boolean{
return (true);
}
public function _xj698():Boolean{
return (true);
}
public function _vf1003():int{
return (_nt1089._mx128);
}
public function _po198():Boolean{
return (false);
}
public function _xl284():Array2{
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._bs1405);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._bs1405);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._mo642);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._mo642);
};
return (_so820);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _aa706(_arg1, _arg2));
}
}
}//package game.bonuses
import game.*;
import game.gerasim.*;
class _aa706 extends _gm824 {
private static const _uo447:uint = 200;
private function _aa706(_arg1:_tp159, _arg2:_wy1415){
super(_arg1, _arg2);
}
override public function onEnter(_arg1:_vq529=null):void{
var _local2:_iq1184 = level._tq820();
_local2._mx1348(_uo447);
_local2.setState(new _ya1306(_local2, 0, _ya1306._eo1319));
level._qo1174(b);
}
}
Section 66
//_gm824 (game.bonuses._gm824)
package game.bonuses {
import game.*;
public class _gm824 implements _vq529 {
protected var b:_tp159;
protected var level:_wy1415;
public function _gm824(_arg1:_tp159, _arg2:_wy1415){
this.b = _arg1;
this.level = _arg2;
}
public function update():void{
}
public function onEnter(_arg1:_vq529=null):void{
}
public function _mu641(_arg1:_vq529=null):void{
b = null;
level = null;
}
}
}//package game.bonuses
Section 67
//_hi259 (game.bonuses._hi259)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _hi259 implements _uq787 {
private static var _so820:Array2;
public function _sw584():Boolean{
return (true);
}
public function _xj698():Boolean{
return (false);
}
public function _vf1003():int{
return (_nt1089._mi1322);
}
public function _po198():Boolean{
return (true);
}
public function _xl284():Array2{
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._bh837);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._bh837);
_so820.set(_tp159._dd838, _tb1260._wl19, _ol205._cn240);
_so820.set(_tp159._dd838, _tb1260._ww554, _ol205._cn240);
};
return (_so820);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _yo1162(_arg1, _arg2, 100));
}
}
}//package game.bonuses
Section 68
//_iy1367 (game.bonuses._iy1367)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public class _iy1367 implements _uq787 {
private static var _so820:Array2;
public function _iy1367(){
if (_so820 == null){
_so820 = new Array2(10, 4);
_so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._db1330);
_so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._db1330);
};
}
public function _xj698():Boolean{
return (false);
}
public function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529{
return (new _sd1397(_arg1, _arg2, true));
}
public function _vf1003():int{
return (_nt1089._gw750);
}
public function _po198():Boolean{
return (false);
}
public function _xl284():Array2{
return (_so820);
}
public function _sw584():Boolean{
return (false);
}
}
}//package game.bonuses
Section 69
//_ms648 (game.bonuses._ms648)
package game.bonuses {
import game.*;
import flash.events.*;
import com.herocraft.*;
public class _ms648 extends _gm824 {
private var a:_mk278;
public function _ms648(_arg1:_tp159, _arg2:_wy1415){
super(_arg1, _arg2);
}
override public function _mu641(_arg1:_vq529=null):void{
_bw1108();
super._mu641(_arg1);
}
override public function update():void{
if (a == null){
b.alpha = (b.alpha - _tp159._wp1321);
if (b.alpha <= 0){
_bw1108();
};
};
}
override public function onEnter(_arg1:_vq529=null):void{
super.onEnter(_arg1);
a = b._xi702(_tp159._dd838);
if (a != null){
a.stop();
a._jt1439((a._ja49() - 1));
_mk278._is605().addEventListener(TimerEvent.TIMER, _tn661);
} else {
b._xi702(_tb1260._bt340);
b.alpha = 1;
};
}
private function _bw1108():void{
_mk278._is605().removeEventListener(TimerEvent.TIMER, _tn661);
if (b != null){
b._mx1046()._qo1174(b);
b.dispose();
};
a = null;
}
private function _tn661(_arg1:TimerEvent):void{
if (a == null){
_bw1108();
return;
};
a._jt1439((a._wl1286() - 1));
if (a._wl1286() == 0){
_bw1108();
};
}
}
}//package game.bonuses
Section 70
//_sd1397 (game.bonuses._sd1397)
package game.bonuses {
import game.*;
import flash.events.*;
import com.herocraft.*;
import game.gerasim.*;
public class _sd1397 extends _gm824 {
private var _tk394:Boolean;
private var _we1272:_mk278;
public function _sd1397(_arg1:_tp159, _arg2:_wy1415, _arg3:Boolean=false){
super(_arg1, _arg2);
this._tk394 = _arg3;
}
override public function onEnter(_arg1:_vq529=null):void{
var _local3:uint;
var _local4:uint;
var _local2:_iq1184 = level._tq820();
_sq637.getInstance()._os569(_nt1089._gw750);
if (_tk394){
_local3 = _iq1184._qi196;
_local4 = _iq1184._wr392;
} else {
_local3 = _iq1184._gf689;
_local4 = (_iq1184._wr392 * 0.2);
};
_we1272 = _local2._xi702(_local3);
_we1272.addEventListener(_mk278._bw1056, _bw1108);
_local2._kj915(_local4);
level._qo1174(b);
}
override public function _mu641(_arg1:_vq529=null):void{
_bw1108();
super._mu641(_arg1);
}
private function _bw1108(_arg1:Event=null):void{
var _local2:_iq1184;
if (_arg1 != null){
_local2 = level._tq820();
_local2.setState(new _ft753(_local2));
};
_we1272.removeEventListener(_mk278._bw1056, _bw1108);
_we1272 = null;
}
}
}//package game.bonuses
Section 71
//_tp159 (game.bonuses._tp159)
package game.bonuses {
import de.polygonal.ds.*;
import game.*;
public class _tp159 extends _tb1260 {
private var type:_uq787;
private var _ec1327:_ci271;
private var _hp288:_vq529;
public static const _wp1321:Number = 0.07;
public static const _dd838:uint = 7;
public function _tp159(_arg1:Array2, _arg2:_wy1415, _arg3:_ci271):void{
super(_arg1, _arg2);
this._ec1327 = _arg3;
}
public function activate():void{
var _local1:uint;
if (getState() != _hp288){
_local1 = type._vf1003();
_sq637.getInstance()._os569(_local1);
setState(_hp288);
};
}
override public function _xg366(_arg1:int):int{
var _local2:uint = _vg1404();
if (_local2 == _km851){
_local2 = _wl19;
};
if (_local2 == _xl96){
_local2 = _ww554;
};
var _local3:int = _so820.get(_arg1, _local2);
return (_local3);
}
public function getType():_uq787{
return (type);
}
public function _ba1093(_arg1:_uq787):void{
this._hp288 = _arg1._is1237(this, level);
this.type = _arg1;
}
public function _oa1399():_ci271{
return (_ec1327);
}
override public function dispose():void{
if (level != null){
_hp288 = null;
type = null;
};
_ec1327 = null;
super.dispose();
}
}
}//package game.bonuses
Section 72
//_uq787 (game.bonuses._uq787)
package game.bonuses {
import game.*;
import de.polygonal.ds.*;
public interface _uq787 {
function _vf1003():int;
function _po198():Boolean;
function _xj698():Boolean;
function _is1237(_arg1:_tp159, _arg2:_wy1415):_vq529;
function _xl284():Array2;
function _sw584():Boolean;
}
}//package game.bonuses
Section 73
//_va61 (game.bonuses._va61)
package game.bonuses {
import game.*;
public class _va61 extends _gm824 {
private var ticks:uint;
public function _va61(_arg1:_tp159, _arg2:_wy1415, _arg3:uint=50){
super(_arg1, _arg2);
this.ticks = _arg3;
}
override public function onEnter(_arg1:_vq529=null):void{
super.onEnter(_arg1);
b._xi702(_tb1260._bt340);
}
override public function update():void{
ticks--;
if (ticks == 0){
b.setState(new _ms648(b, level));
};
}
}
}//package game.bonuses
Section 74
//_yo1162 (game.bonuses._yo1162)
package game.bonuses {
import game.*;
import com.herocraft.*;
public class _yo1162 extends _gm824 {
private var _sl937:uint;
public function _yo1162(_arg1:_tp159, _arg2:_wy1415, _arg3:uint){
super(_arg1, _arg2);
this._sl937 = _arg3;
}
override public function onEnter(_arg1:_vq529=null):void{
var _local2:uint;
switch (_sl937){
case 100:
_local2 = _ol205._rl319;
break;
case 500:
_local2 = _ol205._ik802;
break;
};
if (_local2 != 0){
new _ui287(_local2, b.x, b.y, level).execute();
new _ui287(_ol205._dj296, b.x, b.y, level).execute();
level._ab331()._ao142(_sl937);
};
level._qo1174(b);
}
}
}//package game.bonuses
Section 75
//_eu1316 (game.gerasim._eu1316)
package game.gerasim {
import game.mumu.*;
import game.*;
import flash.events.*;
import de.polygonal.ds.*;
import com.herocraft.*;
import flash.geom.*;
import game.bonuses.*;
public class _eu1316 implements _vq529 {
private var _ei1043:_mk278;
private var _yl1274:Boolean;
private var _px625:uint;
private var _lk881:_iq1184;
private static const _wv22:Array = new Array();
public function _eu1316(_arg1:_iq1184, _arg2:uint){
this._lk881 = _arg1;
this._px625 = _arg2;
_yl1274 = false;
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
_ei1043.removeEventListener(_mk278._io469, _cy573);
_ei1043.removeEventListener(_mk278._bw1056, end);
_lk881 = null;
_ei1043 = null;
}
public function onEnter(_arg1:_vq529=null):void{
_lk881._cf954(_px625);
_ei1043 = _lk881._xi702(((Math.random() < 0.9)) ? _tb1260._xa711 : _iq1184._ti199);
_ei1043.addEventListener(_mk278._io469, _cy573);
_ei1043.addEventListener(_mk278._bw1056, end);
_sq637.getInstance()._os569(_nt1089._js1092);
}
private function end(_arg1:Event=null):void{
_lk881.setState(new _ft753(_lk881));
}
private function _cy573(_arg1:Event=null):void{
var _local8:Array;
var _local9:_vy1134;
var _local2:uint = _iq1184._np530.find(_px625);
var _local3:_wy1415 = _lk881._mx1046();
var _local4:_ci271 = _local3._yd56()[_local2];
var _local5:_tp159 = _local3._py53(_local2, true);
var _local6:Boolean;
var _local7:Boolean;
if (((!((_local5 == null))) && (!(_local5.getType()._xj698())))){
_local7 = true;
_local5.activate();
} else {
_local8 = _fu458(_local3, _local4);
if (_local8.length > 0){
_local9 = _local8[0];
_local6 = true;
_local7 = true;
_local9._mb1140();
_lk881.dispatchEvent(new Event(_iq1184._eh270));
};
};
if (((((!(_local7)) && (!((_local5 == null))))) && (_local5.getType()._xj698()))){
_local5.activate();
};
if (!(_local6)){
_local3._qq719();
};
_yl1274 = true;
}
public static function _fu458(_arg1:_wy1415, _arg2:_ci271):Array{
var _local5:_vy1134;
var _local6:_vq529;
var _local7:Boolean;
var _local8:_fp1206;
var _local9:Array;
var _local10:_fp1206;
var _local3:PriorityQueue;
var _local4:Iterator = _arg1._ic468();
while (_local4.hasNext()) {
_local5 = _local4.next();
_local6 = _local5.getState();
_local7 = (((_local5._oa1399() == _arg2)) && (!((_local6 is _kg1092))));
if (((_local7) && ((_local6 is _wy528)))){
_local7 = (new Point((_arg2.x - _local5.x), (_arg2.y - _local5.y)).length < 14);
};
if (((_local7) && ((_local6 is _oq175)))){
_local7 = (_local6 as _oq175)._in144();
};
if (((_local7) && ((_local6 is _mt966)))){
_local7 = (_local6 as _mt966)._in144();
};
if (_local7){
_local8 = new _fp1206(_local5);
if (_local3 == null){
_local3 = new PriorityQueue(_arg1._kq1277());
};
_local3.enqueue(_local8);
};
};
if (_local3 == null){
return (_wv22);
};
_local9 = new Array();
while (_local3.size != 0) {
_local10 = (_local3.dequeue() as _fp1206);
_local9.push(_local10._wh829());
};
_local3.clear();
return (_local9);
}
public static function _vp674(_arg1:_vy1134):int{
var _local3:Boolean;
var _local4:_ci271;
var _local5:Number;
var _local2:_vq529 = _arg1.getState();
if ((_local2 is _wf172)){
_local3 = (_local2 as _wf172)._mg196();
return ((_local3) ? 0 : 10000);
};
if ((_local2 is _mh1243)){
return ((5000 - (_local2 as _mh1243)._ls1431()));
};
if ((_local2 is _wy528)){
_local4 = _arg1._oa1399();
_local5 = new Point((_local4.x - _arg1.x), (_local4.y - _arg1.y)).length;
return ((200 - _local5));
};
return (1);
}
}
}//package game.gerasim
import game.mumu.*;
import de.polygonal.ds.*;
class _fp1206 extends Prioritizable {
private var mumu:_vy1134;
private function _fp1206(_arg1:_vy1134){
super(_eu1316._vp674(_arg1));
this.mumu = _arg1;
}
public function _wh829():_vy1134{
return (mumu);
}
}
Section 76
//_ft753 (game.gerasim._ft753)
package game.gerasim {
import game.*;
public class _ft753 implements _vq529 {
protected var _lk881:_iq1184;
public function _ft753(_arg1:_iq1184){
this._lk881 = _arg1;
}
public function onEnter(_arg1:_vq529=null):void{
_lk881._xi702(_tb1260._bt340);
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
_lk881 = null;
}
}
}//package game.gerasim
Section 77
//_iq1184 (game.gerasim._iq1184)
package game.gerasim {
import game.*;
import flash.events.*;
import de.polygonal.ds.*;
import flash.ui.*;
import game.bonuses.*;
public class _iq1184 extends _tb1260 {
private var _dx634:uint;
private var _sg918:int;
private var _lk600:uint;
private var _io1102:uint;
private var _cl1343:uint;
private var _ky12:uint;
private var _pe78:int;
public static const _le111:String = "cres";
public static const _eh270:String = "attackedMumu";
public static const _dx1385:uint = 14;
public static const _dn1204:uint = 13;
public static const _ap1214:String = "damaged";
public static const _re1067:uint = 15;
public static const _wr392:uint = 100;
public static const _he86:String = "healed";
public static const _lc982:uint = 9;
public static const _ul953:uint = 10;
public static const _oc941:uint = 11;
public static const _hg597:String = "crev";
public static const _qi196:uint = 7;
public static const _gf689:uint = 8;
public static const _ti199:uint = 12;
public static var _np530:HashMap;
public function _iq1184(_arg1:_wy1415):void{
super(_sq637.getInstance()._so22(), _arg1);
if (_np530 == null){
_np530 = new HashMap();
_np530.insert(_tb1260._km851, _wy1415._al1347);
_np530.insert(_tb1260._xl96, _wy1415._xl530);
_np530.insert(_tb1260._wl19, _wy1415._dm1303);
_np530.insert(_tb1260._ww554, _wy1415._jh432);
};
_pe78 = _wr392;
_hk819 = null;
_io1102 = 0;
_yu192();
_cf954(_ww554);
}
public function _yd382():void{
if (stage != null){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, _um599);
};
}
override public function setState(_arg1:_vq529):void{
super.setState(_arg1);
if ((_arg1 is _ft753)){
_sg918 = -1;
};
}
public function init():void{
_yc748();
setState(new _ft753(this));
}
public function _mb1140(_arg1:uint):void{
_pe78 = (_pe78 - _arg1);
_pe78 = Math.max(0, _pe78);
dispatchEvent(new Event(_ap1214));
}
private function handleKeyDown(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:uint;
var _local4:_tp159;
var _local5:uint;
if ((((_pe78 > 0)) && (!((_sg918 == _arg1.keyCode))))){
_sg918 = _arg1.keyCode;
_local2 = -1;
if (_arg1.keyCode == _ky12){
_local2 = _tb1260._wl19;
} else {
if (_arg1.keyCode == _dx634){
_local2 = _tb1260._ww554;
} else {
if (_arg1.keyCode == _lk600){
_local2 = _tb1260._km851;
} else {
if (_arg1.keyCode == _cl1343){
_local2 = _tb1260._xl96;
};
};
};
};
if (_local2 != -1){
_local3 = _np530.find(_local2);
_local4 = level._py53(_local3, false);
_local5 = level._fy49();
if (_local5 == 4){
setState(new _sf116(this));
} else {
if (_local4 != null){
_local4.activate();
} else {
setState(new _eu1316(this, _local2));
};
};
};
};
}
override public function dispose():void{
_yd382();
super.dispose();
}
override public function _nh1436():void{
super._nh1436();
if (_io1102 != 0){
_io1102--;
if (_io1102 <= 0){
_yu192();
};
};
}
private function _yu192():void{
_ky12 = Keyboard.LEFT;
_dx634 = Keyboard.RIGHT;
_cl1343 = Keyboard.DOWN;
_lk600 = Keyboard.UP;
dispatchEvent(new Event(_le111));
}
public function _yc748():void{
if (stage != null){
stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, _um599);
};
}
public function _kj915(_arg1:uint):void{
_pe78 = (_pe78 + _arg1);
_pe78 = Math.min(_wr392, _pe78);
dispatchEvent(new Event(_he86));
}
public function _fw1438():Boolean{
return ((_io1102 > 0));
}
public function _bl1418():uint{
return (_pe78);
}
private function _um599(_arg1:KeyboardEvent):void{
_sg918 = -1;
}
public function _mx1348(_arg1:uint):void{
_lk600 = Keyboard.DOWN;
_cl1343 = Keyboard.UP;
_ky12 = Keyboard.RIGHT;
_dx634 = Keyboard.LEFT;
_io1102 = (_io1102 + _arg1);
dispatchEvent(new Event(_hg597));
}
}
}//package game.gerasim
Section 78
//_kh1335 (game.gerasim._kh1335)
package game.gerasim {
import game.*;
import flash.events.*;
import com.herocraft.*;
public class _kh1335 implements _vq529 {
private var gerasim:_iq1184;
private var _kf911:_mk278;
public function _kh1335(_arg1:_iq1184){
this.gerasim = _arg1;
}
public function update():void{
}
private function _dt458(_arg1:Event):void{
_kf911.stop();
}
public function onEnter(_arg1:_vq529=null):void{
gerasim._yd382();
_kf911 = gerasim._xi702(_iq1184._re1067);
_kf911.addEventListener(_mk278._bw1056, _dt458);
}
public function _mu641(_arg1:_vq529=null):void{
if (gerasim != null){
_kf911.removeEventListener(_mk278._bw1056, _dt458);
_kf911 = null;
gerasim = null;
};
}
}
}//package game.gerasim
Section 79
//_lu627 (game.gerasim._lu627)
package game.gerasim {
import game.*;
import com.herocraft.*;
public class _lu627 implements _vq529 {
private var _lk881:_iq1184;
public function _lu627(_arg1:_iq1184){
this._lk881 = _arg1;
}
public function onEnter(_arg1:_vq529=null):void{
var _kf911:_mk278;
var _ju1450:Function;
var prevState = _arg1;
_kf911 = _lk881._xi702(_tb1260._lo123);
_ju1450 = function ():void{
_kf911.stop();
_kf911.removeEventListener(_mk278._bw1056, _ju1450);
_lk881._mx1046()._md206();
};
_kf911.addEventListener(_mk278._bw1056, _ju1450);
_sq637.getInstance()._mf272(-1);
_sq637.getInstance()._os569(_nt1089._sb876);
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
_lk881 = null;
}
}
}//package game.gerasim
Section 80
//_sf116 (game.gerasim._sf116)
package game.gerasim {
import game.*;
import flash.events.*;
import com.herocraft.*;
import game.mumu.*;
import game.bonuses.*;
public class _sf116 implements _vq529 {
private var _ei1043:_mk278;
private var _mt395:uint;
private var _lk881:_iq1184;
private static const _ny744:Array = [2, 4, 6, 8];
private static const _la58:Array = [_tb1260._wl19, _tb1260._ww554, _tb1260._km851, _tb1260._xl96];
public function _sf116(_arg1:_iq1184){
this._lk881 = _arg1;
}
private function _sc861(_arg1:Event=null):void{
var _local9:_vy1134;
var _local10:_tp159;
var _local11:_uq787;
var _local2:Boolean;
var _local3:uint;
while (_local3 < _ny744.length) {
if (_ei1043._wl1286() == _ny744[_local3]){
_local2 = true;
};
_local3++;
};
if (!(_local2)){
return;
};
var _local4:uint = _iq1184._np530.find(_la58[_mt395]);
_mt395++;
var _local5:_wy1415 = _lk881._mx1046();
var _local6:_ci271 = _local5._yd56()[_local4];
var _local7:Array = _eu1316._fu458(_local5, _local6);
var _local8:Boolean;
if (_local7.length > 0){
_local9 = _local7[0];
_local9._mb1140();
_local8 = true;
};
if (!(_local8)){
_local10 = _local5._py53(_local4, true);
if (_local10 != null){
_local11 = _local10.getType();
if (((!(_local11._xj698())) && (_local11._po198()))){
_local10.activate();
_local8 = true;
};
};
};
if (_mt395 != (_la58.length - 1)){
_sq637.getInstance()._os569(_nt1089._js1092);
};
}
public function _mu641(_arg1:_vq529=null):void{
_lk881._yc748();
_ei1043.removeEventListener(_mk278._dt502, _sc861);
_ei1043.removeEventListener(_mk278._bw1056, end);
_lk881 = null;
_ei1043 = null;
}
public function update():void{
}
public function onEnter(_arg1:_vq529=null):void{
_lk881._yd382();
_mt395 = 0;
_ei1043 = _lk881._xi702(_iq1184._oc941);
_ei1043.addEventListener(_mk278._bw1056, end);
_ei1043.addEventListener(_mk278._dt502, _sc861);
_sq637.getInstance()._os569(_nt1089._js1092);
}
private function end(_arg1:Event=null):void{
_lk881.setState(new _ft753(_lk881));
}
}
}//package game.gerasim
Section 81
//_ya1306 (game.gerasim._ya1306)
package game.gerasim {
import game.*;
import flash.events.*;
import com.herocraft.*;
public class _ya1306 implements _vq529 {
private var _vq707:uint;
private var _fa197:uint;
private var _lk881:_iq1184;
private var _kf911:_mk278;
public static const _eo1319:uint = 2;
public static const _kj1170:uint = 0;
public static const _le682:uint = 1;
public function _ya1306(_arg1:_iq1184, _arg2:uint, _arg3:uint=0){
this._lk881 = _arg1;
this._vq707 = _arg2;
this._fa197 = _arg3;
}
public function onEnter(_arg1:_vq529=null):void{
var _local2:uint;
switch (_fa197){
case _kj1170:
_local2 = _tb1260._sl582;
break;
case _le682:
_local2 = _iq1184._dx1385;
break;
case _eo1319:
_local2 = _iq1184._dn1204;
break;
};
_kf911 = _lk881._xi702(_local2);
_kf911.addEventListener(_mk278._bw1056, finish);
_lk881._mb1140(_vq707);
}
private function finish(_arg1:Event=null):void{
if (_kf911 != null){
_kf911.stop();
_kf911.removeEventListener(_mk278._bw1056, finish);
_kf911 = null;
if (_lk881._bl1418() <= 0){
if (!((_lk881.getState() is _lu627))){
_lk881.setState(new _lu627(_lk881));
};
} else {
if (_arg1 != null){
_lk881.setState(new _ft753(_lk881));
};
};
};
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
finish();
_lk881 = null;
}
}
}//package game.gerasim
Section 82
//_ee860 (game.mumu._ee860)
package game.mumu {
import flash.events.*;
public class _ee860 extends Event {
private var mumu:_vy1134;
public static const _mx486:String = "mumuKilled";
public function _ee860(_arg1:_vy1134){
super(_mx486);
this.mumu = _arg1;
}
public function dispose():void{
this.mumu = null;
}
public function _wh829():_vy1134{
return (mumu);
}
}
}//package game.mumu
Section 83
//_kg1092 (game.mumu._kg1092)
package game.mumu {
import flash.events.*;
import game.*;
import com.herocraft.*;
public class _kg1092 implements _vq529 {
private var _vc122:uint;
private var mumu:_vy1134;
private var _rw438:Number;
private var _yp99:_mk278;
private var _gl836:Number;
private static const _nd216:uint = 9;
public static const _kp799:uint = 1;
public static const _ix181:uint = 0;
public function _kg1092(_arg1:_vy1134, _arg2:uint=0){
this.mumu = _arg1;
this._vc122 = _arg2;
}
public function update():void{
}
private function _ei931(_arg1:Event=null):void{
_mu641();
}
public function onEnter(_arg1:_vq529=null):void{
var _mv283:_wy1415;
var snd:uint;
var _qh596:uint;
var _hy324:Boolean;
var _rb1449:_ui287;
var _ju1450:Function;
var _di241:int;
var _kf911:_mk278;
var _kd1160:uint;
var _dr908:_ui287;
var prevState = _arg1;
_sq637.getInstance()._ah35((mumu.getType().id + 1));
_mv283 = mumu._mx1046();
var _wr400:_ee860 = new _ee860(mumu);
_mv283._ab331().dispatchEvent(_wr400);
_wr400.dispose();
var _ey364:Number = 0.85;
if (_sq637.getInstance()._ay1356()){
_ey364 = 0.77;
};
if ((((prevState is _wf172)) || ((((_vc122 == _ix181)) && ((Math.random() > _ey364)))))){
_sq637.getInstance()._tl735(true);
snd = _nt1089._uy625;
_qh596 = mumu.getType().id;
_hy324 = (((_qh596 == _vy1134._bc1055)) || ((_qh596 == _vy1134._se797)));
if ((((Math.random() > 0.8)) && (_hy324))){
_rb1449 = new _ui287(_ol205._ot752, mumu.x, mumu.y, _mv283);
_rb1449.execute();
_ju1450 = function (_arg1:Event):void{
(_arg1.target as _mk278).removeEventListener(_mk278._io469, _ju1450);
_mv283._sj121();
};
_rb1449._qg582().addEventListener(_mk278._io469, _ju1450);
if (mumu.x < (_kp1329._mc605 / 2)){
_rb1449._qg582().scaleX = -1;
};
_ei931();
} else {
_di241 = mumu._xg366(_tb1260._uh876);
if (_di241 != -1){
_kf911 = _sq637.getInstance()._rj1381(_di241);
_kf911.play();
_kf911.x = mumu.x;
_kf911.y = (mumu.y - (mumu.height * 0.5));
_kf911.addEventListener(Event.ENTER_FRAME, _nk801);
_mv283.addChild(_kf911);
_rw438 = 0;
_gl836 = 0;
switch (mumu._vg1404()){
case _tb1260._wl19:
_rw438 = _nd216;
_gl836 = (-(_nd216) * 0.1);
break;
case _tb1260._ww554:
_rw438 = -(_nd216);
_gl836 = (-(_nd216) * 0.1);
break;
case _tb1260._xl96:
_rw438 = (-(_nd216) * 0.9);
_gl836 = (-(_nd216) * 0.5);
break;
case _tb1260._km851:
_rw438 = (_nd216 * 0.7);
_gl836 = (_nd216 * 0.1);
break;
};
};
_rw438 = (_rw438 + (Math.random() * 2));
_gl836 = (_gl836 + (Math.random() * 2));
mumu._xi702(_tb1260._aw1430);
_yp99 = mumu._qg582();
};
} else {
snd = _nt1089._sf452;
if (mumu.getType().id == _vy1134._pv845){
snd = _nt1089._cd1042;
};
mumu._xi702(_tb1260._lo123);
new _ui287(_ol205._yc153, mumu.x, mumu.y, mumu._mx1046()).execute();
_yp99 = mumu._qg582();
if (Math.random() > 0.92){
_kd1160 = ((Math.random())>0.5) ? (_kp1329._mc605 * 0.2) : (_kp1329._mc605 * 0.8);
_dr908 = new _ui287(_ol205._lf16, _kd1160, mumu._mx1046().height, _mv283);
_sq637.getInstance()._os569(_nt1089._wc900);
_dr908.execute();
if (Math.random() > 0.5){
_dr908._qg582().scaleX = -1;
_dr908._qg582().x = (_dr908._qg582().x - _dr908._qg582().width);
};
};
};
_sq637.getInstance()._os569(snd);
if (_yp99 != null){
_yp99.addEventListener(_mk278._bw1056, _ei931);
} else {
_ei931();
};
}
public function _mu641(_arg1:_vq529=null):void{
if (mumu != null){
if (_yp99 != null){
_yp99.removeEventListener(_mk278._bw1056, _ei931);
};
mumu.dispose();
mumu = null;
_yp99 = null;
};
}
private function _nk801(_arg1:Event):void{
var _local2:_mk278 = (_arg1.target as _mk278);
_local2.x = (_local2.x + _rw438);
_local2.y = (_local2.y + _gl836);
if (_gl836 < (_nd216 * 0.5)){
_gl836 = (_gl836 + (_nd216 * 0.03));
};
if ((((_local2.x < -(_local2.width))) || ((_local2.x > (_kp1329._mc605 + _local2.width))))){
_local2.removeEventListener(Event.ENTER_FRAME, _nk801);
_local2.parent.removeChild(_local2);
_local2.dispose();
};
}
}
}//package game.mumu
Section 84
//_mh1243 (game.mumu._mh1243)
package game.mumu {
import game.*;
import game.gerasim.*;
public class _mh1243 implements _vq529 {
protected var mumu:_vy1134;
private var _km1280:Boolean;
private var _vg1379:uint;
public function _mh1243(_arg1:_vy1134){
this.mumu = _arg1;
}
public function _ls1431():uint{
return (_vg1379);
}
public function update():void{
var _local2:_hr1396;
_vg1379--;
var _local1:_iq1184 = mumu._mx1046()._tq820();
if ((((_vg1379 <= 0)) && (!((_local1 == null))))){
if (_km1280){
mumu.setState(new _mt966(mumu));
} else {
_local2 = mumu._mx1046()._ab331();
if (((_local2._os385()) && ((_local1._bl1418() > 0)))){
_local2._gm384();
mumu.setState(new _wf172(mumu));
};
};
};
}
public function _mu641(_arg1:_vq529=null):void{
mumu = null;
}
public function onEnter(_arg1:_vq529=null):void{
var _local3:uint;
mumu._xi702(_tb1260._bt340);
var _local2:_hr1396 = mumu._mx1046()._ab331();
_km1280 = (_local2._eb177() == _hr1396._pa845);
if (_km1280){
_local3 = _local2._co364();
_vg1379 = (_local3 / _wy1415._vx209);
} else {
_vg1379 = ((_local2._ds1319() * mumu.getType()._hy998) / _wy1415._vx209);
};
}
}
}//package game.mumu
Section 85
//_mt966 (game.mumu._mt966)
package game.mumu {
import game.*;
import flash.events.*;
import com.herocraft.*;
public class _mt966 implements _vq529 {
private var mumu:_vy1134;
private var _rn225:Boolean;
private var _kf911:_mk278;
public function _mt966(_arg1:_vy1134){
this.mumu = _arg1;
}
private function _dt458(_arg1:Event):void{
var _local2:_vy1134 = mumu;
_mu641();
_local2.dispose();
_local2 = null;
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
if (mumu != null){
mumu = null;
};
if (_kf911 != null){
_kf911.removeEventListener(_mk278._bw1056, _dt458);
_kf911.removeEventListener(_mk278._io469, _cy573);
_kf911 = null;
};
}
public function _in144():Boolean{
return (_rn225);
}
public function onEnter(_arg1:_vq529=null):void{
_rn225 = true;
_kf911 = mumu._xi702(_vy1134._ak1098, true);
_kf911.addEventListener(_mk278._io469, _cy573);
_kf911.addEventListener(_mk278._bw1056, _dt458);
}
private function _cy573(_arg1:Event):void{
_rn225 = false;
}
}
}//package game.mumu
Section 86
//_oq175 (game.mumu._oq175)
package game.mumu {
import game.*;
import flash.events.*;
import com.herocraft.*;
public class _oq175 implements _vq529 {
private var mumu:_vy1134;
private var _rn225:Boolean;
private var _kf911:_mk278;
public function _oq175(_arg1:_vy1134){
this.mumu = _arg1;
}
private function _dt458(_arg1:Event=null):void{
mumu.setState(new _mh1243(mumu));
}
public function update():void{
}
public function _mu641(_arg1:_vq529=null):void{
if (mumu != null){
mumu = null;
};
if (_kf911 != null){
_kf911.removeEventListener(_mk278._io469, _cy573);
_kf911.removeEventListener(_mk278._bw1056, _dt458);
_kf911 = null;
};
}
public function _in144():Boolean{
return (_rn225);
}
public function onEnter(_arg1:_vq529=null):void{
_rn225 = false;
_sq637.getInstance()._os569(_nt1089._vv457);
if (mumu._mx1046()._ab331()._eb177() == _hr1396._pa845){
_dt458();
} else {
_kf911 = mumu._xi702(_vy1134._dd838, true);
_kf911.addEventListener(_mk278._io469, _cy573);
_kf911.addEventListener(_mk278._bw1056, _dt458);
};
}
private function _cy573(_arg1:Event):void{
_rn225 = true;
}
}
}//package game.mumu
Section 87
//_sk466 (game.mumu._sk466)
package game.mumu {
import de.polygonal.ds.*;
public class _sk466 {
public var id:uint;
public var points:Number;
public var _ki590:uint;
public var _hy998:Number;
public var _vq707:Number;
public var _yr1083:Number;
public var _so820:Array2;
public function _sk466(_arg1:uint, _arg2:Number, _arg3:uint, _arg4:Number, _arg5:Number, _arg6:Number){
this.id = _arg1;
this._vq707 = _arg2;
this._ki590 = _arg3;
this.points = _arg4;
this._yr1083 = _arg5;
this._hy998 = _arg6;
_so820 = new Array2(9, 4);
}
}
}//package game.mumu
Section 88
//_wf172 (game.mumu._wf172)
package game.mumu {
import game.*;
import flash.events.*;
import com.herocraft.*;
import flash.geom.*;
import game.gerasim.*;
public class _wf172 implements _vq529 {
private var _ei1043:_mk278;
private var mumu:_vy1134;
private var _vq682:Boolean;
public function _wf172(_arg1:_vy1134){
this.mumu = _arg1;
_vq682 = false;
}
private function _yl652(_arg1:Event):void{
_mu641();
}
public function onEnter(_arg1:_vq529=null):void{
_ei1043 = mumu._xi702(_tb1260._xa711);
_ei1043.addEventListener(_mk278._io469, _cy573);
_ei1043.addEventListener(_mk278._bw1056, _yl652);
}
public function update():void{
}
public function _mg196():Boolean{
return (_vq682);
}
public function _mu641(_arg1:_vq529=null):void{
if (mumu != null){
_ei1043.removeEventListener(_mk278._io469, _cy573);
_ei1043.removeEventListener(_mk278._bw1056, _yl652);
if (_arg1 == null){
mumu._mx1046()._qo1174(mumu);
};
mumu = null;
_ei1043 = null;
};
}
private function _cy573(_arg1:Event):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:Boolean;
var _local7:Point;
var _local2:_iq1184 = mumu._mx1046()._tq820();
if (_local2._bl1418() > 0){
_local3 = (mumu.getType()._vq707 * mumu._mx1046()._ab331()._cg1100());
if (!((((_local2.getState() is _sf116)) || ((_local2.getState() is _ya1306))))){
_local2.setState(new _ya1306(_local2, _local3));
};
_local4 = mumu._vg1404();
_local5 = 0;
_local6 = (mumu.getType()._vq707 > 2);
if ((((_local4 == _tb1260._wl19)) || ((_local4 == _tb1260._km851)))){
_local5 = (_local6) ? _ol205._vn56 : _ol205._fx1101;
} else {
_local5 = (_local6) ? _ol205._lb664 : _ol205._rs1302;
};
_local7 = _ei1043._nw1245();
new _ui287(_local5, (mumu.x + _local7.x), (mumu.y + _local7.y), mumu._mx1046()).execute();
_sq637.getInstance()._os569(_nt1089._md367);
};
_vq682 = true;
}
}
}//package game.mumu
Section 89
//_vy1134 (game.mumu._vy1134)
package game.mumu {
import game.*;
public class _vy1134 extends _tb1260 {
private var _ec1327:_ci271;
private var type:_sk466;
public static const _se797:uint = 4;
public static const _ak1098:uint = 8;
public static const _do679:uint = 2;
public static const _pv845:uint = 1;
public static const _tp1034:uint = 3;
public static const _dd838:uint = 7;
public static const _bc1055:uint = 0;
public function _vy1134(_arg1:_wy1415, _arg2:_ci271, _arg3:_sk466):void{
super(_arg3._so820, _arg1);
_ff1374 = -1;
this.type = _arg3;
this._ec1327 = _arg2;
}
public function _mb1140():void{
if (!((_hk819 is _kg1092))){
setState(new _kg1092(this));
};
}
public function _oa1399():_ci271{
return (_ec1327);
}
override public function _xg366(_arg1:int):int{
var _local2:uint = _vg1404();
if (_local2 == _km851){
_local2 = _wl19;
};
if (_local2 == _xl96){
_local2 = _ww554;
};
var _local3:int = _so820.get(_arg1, _local2);
return (_local3);
}
public function getType():_sk466{
return (type);
}
override public function dispose():void{
var _local1:_wy1415;
if (level != null){
_local1 = level;
super.dispose();
_local1._qo1174(this);
type = null;
};
}
}
}//package game.mumu
Section 90
//_wy528 (game.mumu._wy528)
package game.mumu {
import game.*;
import flash.geom.*;
import flash.display.*;
import game.bonuses.*;
public class _wy528 implements _vq529 {
private var _ty926:Point;
private var _wg14:Point;
private var mumu:_vy1134;
private var _mb480:Number;
public function _wy528(_arg1:_vy1134){
_wg14 = new Point();
super();
this.mumu = _arg1;
}
public function update():void{
var _local3:_tp159;
if (mumu.alpha < 1){
mumu.alpha = (mumu.alpha + 0.05);
};
_wg14.x = (_ty926.x - mumu.x);
_wg14.y = (_ty926.y - mumu.y);
var _local1:Number = _wg14.length;
var _local2:Boolean;
if (_local1 >= _mb480){
_wg14.x = (_wg14.x / _local1);
_wg14.y = (_wg14.y / _local1);
mumu.x = (mumu.x + (_wg14.x * _mb480));
mumu.y = (mumu.y + (_wg14.y * _mb480));
} else {
mumu.x = _ty926.x;
mumu.y = _ty926.y;
_local2 = true;
};
if (_local1 < mumu._oa1399().width){
_local3 = mumu._oa1399()._py53();
if (((!((_local3 == null))) && (!((_local3.getState() is _ms648))))){
_local3.setState(new _ms648(_local3, _local3._mx1046()));
};
};
if (_local2){
mumu.setState(new _mh1243(mumu));
};
}
public function onEnter(_arg1:_vq529=null):void{
_ty926 = new Point();
var _local2:Point = new Point();
var _local3:DisplayObject = mumu._oa1399();
_local2.x = (_local3.x - mumu.x);
_local2.y = (_local3.y - mumu.y);
var _local4:Number = _local2.length;
_ty926.x = Math.round(((_local3.x + (Math.random() * 6)) - 3));
_ty926.y = Math.round(((_local3.y + (Math.random() * 6)) - 3));
var _local5:uint = mumu._mx1046()._ab331()._ke357();
var _local6:Number = ((_local5 * 4) / _wy1415._vx209);
_mb480 = (_local4 / _local6);
mumu._xi702(_tb1260._dm396);
}
public function _mu641(_arg1:_vq529=null):void{
mumu.alpha = 1;
mumu = null;
_ty926 = null;
}
}
}//package game.mumu
Section 91
//_ci271 (game._ci271)
package game {
import flash.geom.*;
import game.bonuses.*;
import game.gerasim.*;
import flash.display.*;
import com.herocraft.*;
import de.polygonal.ds.*;
public class _ci271 extends Sprite {
private var _cx941:uint;
private var _eh920:Point;
private var _il726:Point;
private var _so1022:_wy1415;
private var _kf911:_mk278;
public function _ci271(_arg1:_wy1415, _arg2:Point, _arg3:Point, _arg4:uint){
this._so1022 = _arg1;
this._eh920 = _arg2;
this._il726 = _arg3;
this._cx941 = _arg4;
_kf911 = _sq637.getInstance()._rj1381(_ol205._ck801);
addChild(_kf911);
_kf911.play();
}
public function _sv1420():Point{
return (_il726);
}
public function align(_arg1:_iq1184):void{
this.x = (_arg1.x + _eh920.x);
this.y = (_arg1.y + _eh920.y);
}
public function _py53():_tp159{
var _local1:Rectangle;
var _local4:_tp159;
var _local2:Iterator = _so1022._pr956();
var _local3:Rectangle = getBounds(this);
while (_local2.hasNext()) {
_local4 = _local2.next();
_local1 = _local4.getBounds(this);
if (_local1.intersects(_local3)){
return (_local4);
};
};
return (null);
}
public function dispose():void{
removeChild(_kf911);
_kf911.dispose();
_eh920 = null;
_il726 = null;
_so1022 = null;
}
public function _he283(_arg1:_tb1260):Boolean{
var _local2:Rectangle = getBounds(parent);
var _local3:int = (_local2.x + (_local2.width / 2));
var _local4:int = (_local2.y + (_local2.height / 2));
var _local5:Rectangle = _arg1.getBounds(parent);
return (_local5.contains(_local3, _local4));
}
public function _uo1076():Boolean{
var _local1:_tb1260;
var _local2:Rectangle;
var _local3:Rectangle = getBounds(this);
var _local4:Iterator = _so1022._ic468();
while (_local4.hasNext()) {
_local1 = _local4.next();
_local2 = _local1.getBounds(this);
if (_local2.intersects(_local3)){
return (true);
};
};
if (_py53() != null){
return (true);
};
return (false);
}
public function _lk603():uint{
return (_cx941);
}
}
}//package game
Section 92
//_ei813 (game._ei813)
package game {
import flash.events.*;
import flash.display.*;
import menu.*;
import de.polygonal.ds.*;
import com.herocraft.*;
public class _ei813 extends Sprite {
private var _qp1414:_fm423;
private var screens:HashMap;
private var _ps1206:DisplayObject;
private var _td505:_ti1198;
private var _sm1270:DisplayObjectContainer;
private var _xo1417:DisplayObjectContainer;
private var _rl800:DisplayObject;
private static const _oa1022:Class = _ei813__oa1022;
private static const _oo1124:Class = _ei813__oo1124;
private static const _fj1269:Class = _ei813__fj1269;
private static var _pc828:Class = _ei813__pc828;
public function _ei813(){
screens = new HashMap();
}
public function _rw975(_arg1:uint):void{
var _local2:_ti1198 = screens.find(_arg1);
if (_td505 == _local2){
return;
};
if (_td505 != null){
_td505._mu641();
_xo1417.removeChild(_td505.getControl());
};
_td505 = screens.find(_arg1);
_xo1417.addChild(_td505.getControl());
_td505.onEnter();
_qp1414._ly373(_td505._pf608());
}
public function _yg198(_arg1:uint, _arg2:_ti1198):void{
screens.insert(_arg1, _arg2);
}
public function init():void{
var _vv737:_xy783;
var _ve197:_xy783;
var _oq785:Bitmap = new _pc828();
addChild(_oq785);
_sm1270 = new Sprite();
addChild(_sm1270);
var _ap1305:_dk1260 = new _dk1260();
var _qv1299:DisplayObject = _ap1305.getControl();
addChild(_qv1299);
_qv1299.x = ((_kp1329._mc605 - _qv1299.width) - (_fy615._vi285 / 2));
_qv1299.y = _fy615._vi285;
_xo1417 = new Sprite();
addChild(_xo1417);
_qp1414 = new _fm423();
addChild(_qp1414.getControl());
_ps1206 = new _fj1269();
var _fu471:Sprite = new Sprite();
_fu471.addChild(new _oa1022());
_ps1206.x = Math.round(((_fu471.width - _ps1206.width) / 2));
_ps1206.y = Math.round(((_fu471.height - _ps1206.height) / 2));
_fu471.addChild(_ps1206);
_vv737 = new _xy783(-1, _fu471);
addChild(_vv737);
_rl800 = new _fj1269();
var _lf280:Sprite = new Sprite();
_lf280.addChild(new _oo1124());
_lf280.addChild(_rl800);
_ve197 = new _xy783(-1, _lf280);
addChild(_ve197);
_ve197.x = (_kp1329._mc605 - _ve197.width);
_ve197.y = ((_kp1329._dq388 - _ve197.height) - _fy615._vi285);
_vv737.x = ((_ve197.x - _vv737.width) - _fy615._vi285);
_vv737.y = _ve197.y;
var _dj976:Function = function (_arg1:Event):void{
var _local2:_sq637 = _sq637.getInstance();
if (_arg1.target == _ve197){
_local2._bs585(!(_local2._lm172()));
} else {
if (_arg1.target == _vv737){
_local2._qt165(!(_local2._le544()));
};
};
_cp529();
};
_ve197.addEventListener(_xy783._ir1372, _dj976);
_vv737.addEventListener(_xy783._ir1372, _dj976);
_cp529();
}
public function _ds577():DisplayObjectContainer{
return (_sm1270);
}
public function _sg78(_arg1:uint):_ti1198{
return (screens.find(_arg1));
}
private function _cp529():void{
var _local1:_sq637 = _sq637.getInstance();
_rl800.visible = !(_local1._lm172());
_ps1206.visible = !(_local1._le544());
}
}
}//package game
Section 93
//_ei813__fj1269 (game._ei813__fj1269)
package game {
import mx.core.*;
public class _ei813__fj1269 extends BitmapAsset {
}
}//package game
Section 94
//_ei813__oa1022 (game._ei813__oa1022)
package game {
import mx.core.*;
public class _ei813__oa1022 extends BitmapAsset {
}
}//package game
Section 95
//_ei813__oo1124 (game._ei813__oo1124)
package game {
import mx.core.*;
public class _ei813__oo1124 extends BitmapAsset {
}
}//package game
Section 96
//_ei813__pc828 (game._ei813__pc828)
package game {
import mx.core.*;
public class _ei813__pc828 extends BitmapAsset {
}
}//package game
Section 97
//_fm423 (game._fm423)
package game {
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.rojored.command.*;
import com.herocraft.*;
import commands.*;
public class _fm423 {
private var _xs836:Timer;
private var _cu501:uint;
private var _wd73:Rectangle;
private var _vt1336:_sg564;
private var mask:Sprite;
private var _ss251:DisplayObjectContainer;
private var _qv1299:Sprite;
private var _ao1251:uint;// = 10
private var _vi285:uint;// = 57
private static const _wm776:uint = 1;
private static const _hu1041:uint = 2;
private static const _nv380:uint = 4;
private static const _es1006:uint = 0;
private static const _lk422:uint = 3;
private static const _sc12:Number = 5.7;
public function _fm423(){
_xs836 = new Timer(30);
_qv1299 = new Sprite();
mask = new Sprite();
_qv1299.addChild(mask);
_ss251 = new Sprite();
_qv1299.addChild(_ss251);
_ss251.mask = mask;
_vt1336 = new _sg564();
_vt1336.addEventListener(Event.COMPLETE, _ky789);
}
public function _ly373(_arg1:Rectangle):void{
var bounds = _arg1;
if (bounds == null){
mask.graphics.clear();
return;
};
var _ow1330:Rectangle = _wd73;
this._wd73 = bounds;
var _local3 = mask.graphics;
with (_local3) {
clear();
beginFill(0);
drawRect((bounds.x + _ao1251), 0, (bounds.width - (2 * _ao1251)), ((bounds.y + bounds.height) - _ao1251));
endFill();
};
mask.alpha = 0.3;
if (_ow1330 == null){
_ky789();
};
_tx559();
}
public function getControl():Sprite{
return (_qv1299);
}
public function getBounds():Rectangle{
return (_wd73);
}
private function _ky789(_arg1:Event=null):void{
var _local3:Array;
var _local4:_mk278;
var _local7:uint;
var _local8:uint;
var _local9:Boolean;
var _local10:uint;
var _local11:uint;
while (_ss251.numChildren != 0) {
_ss251.removeChildAt(0);
};
var _local2:_sq637 = _sq637.getInstance();
var _local5:uint = (Math.random() * 8);
if (_local5 > 8){
_local5 = 0;
};
switch (_local5){
case 0:
_cu501 = _es1006;
_local4 = _local2._rj1381(_ol205._br1035);
_local4.play();
_ss251.addChild(_local4);
_local3 = [new _lh990(_ss251, -(_sc12), this)];
break;
case 1:
_cu501 = _wm776;
_local4 = _local2._rj1381(_ol205._me618);
_local4.play();
_ss251.addChild(_local4);
_local3 = [new _lh990(_ss251, _sc12, this)];
break;
case 2:
_cu501 = _hu1041;
_local3 = [new _ui287(_ol205._ht213, 0, 0, _ss251)];
break;
case 3:
_cu501 = _nv380;
_local3 = [new _ui287(_ol205._qk948, 0, 0, _ss251)];
break;
case 4:
_cu501 = _lk422;
_local3 = [new _ui287(_ol205._ia1442, 0, 0, _ss251)];
break;
case 5:
case 6:
_cu501 = _nv380;
_local3 = [new _ui287(_ol205._xk869, 0, 0, _ss251)];
_local7 = ((Math.random() * 3) + 1);
_local8 = 0;
while (_local8 < _local7) {
_local3.push(new _ui287(_ol205._sn1132, 0, 0, _ss251));
_local8++;
};
break;
case 7:
_cu501 = _nv380;
_local3 = [new _ui287(_ol205._tm1447, 0, 0, _ss251)];
break;
case 8:
_cu501 = _lk422;
_local3 = [new _ui287(_ol205._vw1330, 0, 0, _ss251)];
break;
};
if ((((((_cu501 == _es1006)) || ((_cu501 == _wm776)))) && ((Math.random() > 0.4)))){
_local9 = (_cu501 == _es1006);
_local4 = _local2._rj1381((_local9) ? _ol205._nr353 : _ol205._wh366);
_local4.play();
_local10 = 30;
_local4.x = (_local4.x + (_local9) ? -(_local10) : _local10);
_ss251.addChild(_local4);
};
if (_local3.length > 1){
if (Math.random() > 0.5){
_local11 = 0;
while (_local11 < _local3.length) {
(_local3[_local11] as _ui287)._qg582().scaleX = -1;
_cu501 = _lk422;
_local11++;
};
};
};
if ((((((((_cu501 == _lk422)) || ((_cu501 == _nv380)))) || ((_cu501 == _es1006)))) || ((_cu501 == _wm776)))){
_ss251.y = (((Math.random() * (_wd73.height - (2 * _vi285))) + _wd73.y) + _vi285);
};
if (_cu501 == _hu1041){
_ss251.x = (((Math.random() * (_wd73.width - (2 * _vi285))) + _wd73.x) + _vi285);
};
if (_cu501 == _wm776){
_ss251.x = -(_vi285);
};
if (_cu501 == _es1006){
_ss251.x = (_kp1329._mc605 + _vi285);
};
_tx559();
_vt1336.clear();
_vt1336._ql124(new _dc504(((Math.random() * 4000) + 500)));
var _local6:uint;
while (_local6 < _local3.length) {
_vt1336._ql124(_local3[_local6]);
_local6++;
};
_vt1336.execute();
}
private function _tx559():void{
switch (_cu501){
case _lk422:
_ss251.x = (_wd73.x + _ao1251);
break;
case _nv380:
_ss251.x = (_wd73.right - _ao1251);
break;
case _hu1041:
_ss251.y = (_wd73.bottom - _ao1251);
if ((((_ss251.x < _wd73.left)) || ((_ss251.x > _wd73.right)))){
_ss251.x = (_wd73.x + (_wd73.width / 2));
};
break;
};
if (_ss251.y > _wd73.bottom){
_ss251.y = (_wd73.bottom - _vi285);
};
if (_ss251.y < _wd73.top){
_ss251.y = (_wd73.top + _vi285);
};
}
}
}//package game
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.rojored.command.*;
class _lh990 extends _or1044 {
private var _xs836:Timer;
private var _qd795:_fm423;
private var obj:DisplayObject;
private var delta:int;
private function _lh990(_arg1:DisplayObject, _arg2:int, _arg3:_fm423){
this.delta = _arg2;
this._qd795 = _arg3;
this.obj = _arg1;
_xs836 = new Timer(30);
_xs836.addEventListener(TimerEvent.TIMER, _rw22);
}
private function _rw22(_arg1:Event):void{
obj.x = (obj.x + delta);
var _local2:Rectangle = obj.getBounds(obj.parent);
var _local3:Rectangle = _qd795.getBounds();
if ((((((delta > 0)) && ((_local2.left > _local3.right)))) || ((((delta < 0)) && ((_local2.right < _local3.left)))))){
_xs836.stop();
_ph983();
};
}
override public function execute():void{
_xs836.start();
}
override public function dispose():void{
obj = null;
_qd795 = null;
_xs836.removeEventListener(TimerEvent.TIMER, _rw22);
_xs836 = null;
}
}
Section 98
//_gx618 (game._gx618)
package game {
import game.gerasim.*;
import flash.events.*;
import com.herocraft.*;
import flash.display.*;
import flash.geom.*;
public class _gx618 extends Sprite {
private var _ug345:_mk278;
private var _fl1047:_mk278;
private var _fq1253:_mk278;
private var gerasim:_iq1184;
private var _st642:Sprite;
private var _oq558:_sq637;
private var _fa1442:Sprite;
public function _gx618(_arg1:_iq1184){
var _local2:Sprite = new Sprite();
addChild(_local2);
_fa1442 = new Sprite();
addChild(_fa1442);
_arg1.addEventListener(_iq1184._ap1214, refresh);
_arg1.addEventListener(_iq1184._eh270, refresh);
_arg1.addEventListener(_iq1184._he86, refresh);
_arg1.addEventListener(_iq1184._le111, refresh);
_arg1.addEventListener(_iq1184._hg597, refresh);
_oq558 = _sq637.getInstance();
this.gerasim = _arg1;
_st642 = new Sprite();
_ug345 = _oq558._rj1381(_ol205._oo1247);
_fl1047 = _oq558._rj1381(_ol205._kp48);
_local2.addChild(_fl1047);
_local2.addChild(_ug345);
_local2.addChild(_st642);
var _local3:Graphics = _st642.graphics;
_local3.beginFill(0);
var _local4:Rectangle = _ug345.getBounds(_ug345);
_local3.drawRect(_local4.x, _local4.y, _local4.width, _local4.height);
_local3.endFill();
_ug345.mask = _st642;
refresh(null);
_local2.x = _fq1253.width;
_local2.y = (-(_fq1253.height) * 0.5);
}
private function refresh(_arg1:Event=null):void{
var _local2:Number;
var _local3:_mk278;
var _local4:uint;
if (gerasim != null){
_local2 = (gerasim._bl1418() / _iq1184._wr392);
_st642.x = (-(_st642.width) * (1 - _local2));
_local3 = null;
if (_arg1 == null){
_lw1043();
} else {
if (_arg1.type == _iq1184._ap1214){
_local4 = _fq1253._mq1416();
if (((!((_local4 == _ol205._jt1062))) && (!((_local4 == _ol205._jl1272))))){
if (Math.random() > 0.5){
_local3 = _oq558._rj1381(_ol205._jt1062);
} else {
_local3 = _oq558._rj1381(_ol205._jl1272);
};
_local3.addEventListener(_mk278._bw1056, _lw1043);
_local3.play();
};
} else {
if (_arg1.type == _iq1184._eh270){
if (((!((_local4 == _ol205._mm966))) && ((Math.random() > 0.85)))){
_local3 = _oq558._rj1381(_ol205._mm966);
_local3.addEventListener(_mk278._bw1056, _lw1043);
_local3.play();
};
} else {
if ((((_arg1.type == _iq1184._hg597)) || ((_arg1.type == _iq1184._le111)))){
_lw1043();
};
};
};
};
if (_local3 != null){
_xo1107(_local3);
};
};
}
private function _lw1043(_arg1:Event=null):void{
var _local2:_mk278;
if (gerasim._fw1438()){
_local2 = _oq558._rj1381(_ol205._jl1272);
_local2.play();
} else {
_local2 = _oq558._rj1381(_ol205._qg745);
_local2._jt1439(0);
};
_xo1107(_local2);
}
private function _xo1107(_arg1:_mk278):void{
if (_fq1253 != null){
_fa1442.removeChild(_fq1253);
_fq1253.removeEventListener(_mk278._bw1056, _lw1043);
_fq1253.dispose();
_fq1253 = null;
};
if (_arg1 != null){
_fq1253 = _arg1;
_fa1442.addChild(_fq1253);
};
}
public function dispose():void{
gerasim.removeEventListener(_iq1184._ap1214, refresh);
gerasim.removeEventListener(_iq1184._eh270, refresh);
gerasim.removeEventListener(_iq1184._he86, refresh);
gerasim.removeEventListener(_iq1184._le111, refresh);
gerasim.removeEventListener(_iq1184._hg597, refresh);
gerasim = null;
_oq558 = null;
refresh();
_fa1442.removeChild(_fq1253);
var _local1:DisplayObjectContainer = _fl1047.parent;
_local1.removeChild(_fl1047);
_local1.removeChild(_ug345);
_local1.removeChild(_st642);
_fq1253.dispose();
_fl1047.dispose();
_ug345.dispose();
}
}
}//package game
Section 99
//_hr1396 (game._hr1396)
package game {
import game.mumu.*;
import flash.display.*;
import flash.events.*;
import com.herocraft.*;
import flash.utils.*;
import mx.events.*;
public class _hr1396 extends EventDispatcher {
private var _rl1264:uint;
private var _be445:uint;
private var _lj1095:Array;
private var _jg941:uint;
private var id:int;
private var _ed439:uint;
private var _rf858:uint;
private var _mv462:uint;
private var _jm30:uint;
public var _un669:Array;
public var _dn474:Array;
private var _bu1080:int;
private var _va1056:uint;
private var _py868:uint;
private var _ur153:uint;
private var _ln754:uint;
private var _qv715:uint;
private var _im1010:uint;
private var _vq707:uint;
private var _qf912:Number;
private var _ki590:_gj681;
private var _vd35:Number;
protected var _hl708:uint;
protected var _je750:uint;
public static const _mc1238:uint = 2;
public static const _bx504:uint = 1;
private static const _cm430:_hr1396 = new _hr1396(_pa845, 4, 0, 0, 600, 0, 0, 0, 0, 2000, 0, 0, 0, 0, _bx504);
;
public static const _pa845:uint = 0;
public static const _ut162:uint = 1;
private static const _xk490:Array = [new _hr1396(_pa845, 0, 0, 25, 150, 0, 0, 0, 0, 1000, 0, 0, 0, 0), new _hr1396(_ut162, 1, 0, 40, 1700, 1000, 800, 1500, 500, 2000, 4, 6000, 5000, 1), new _hr1396(_pa845, 2, 35, 0, 300, 0, 0, 0, 0, 900, 0, 0, 0, 0), new _hr1396(_ut162, 3, 80, 0, 1200, 600, 600, 600, 500, 1500, 5, 7000, 4000, 2), new _hr1396(_ut162, 4, 90, 50, 1300, 500, 700, 600, 500, 2000, 6, 7000, 4000, 3), new _hr1396(_pa845, 2, 35, 0, 300, 0, 0, 0, 0, 800, 0, 0, 0, 0), new _hr1396(_ut162, 1, 150, 0, 1200, 500, 500, 600, 500, 2000, 6, 6000, 4000, 4), new _hr1396(_ut162, 3, 240, 200, 1500, 600, 500, 500, 500, 2000, 7, 6000, 4000, 4), new _hr1396(_ut162, 4, 180, 100, 600, 0, 0, 0, 0, 800, 0, 0, 0, 0)];
public static const _yt1156:uint = 0;
public static const _tb1322:uint = 100;
private static var _pj774:uint;
private static var _de1079:int = 0;
private static var _pc900:ByteArray = new _kg1109();
private static var _kg1109:Class = _hr1396__kg1109;
public function _hr1396(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:Number, _arg6:uint, _arg7:uint, _arg8:uint, _arg9:uint, _arg10:uint, _arg11:uint, _arg12:uint, _arg13:uint, _arg14:uint, _arg15:uint=0){
var _ln754 = _arg1;
var _qv715 = _arg2;
var _be445 = _arg3;
var _ed439 = _arg4;
var _vd35 = _arg5;
var _sa62 = _arg6;
var _py868 = _arg7;
var _rf858 = _arg8;
var _qf912 = _arg9;
var _mv462 = _arg10;
var _vq707 = _arg11;
var _rl1264 = _arg12;
var _ur153 = _arg13;
var _va1056 = _arg14;
var _jm30 = _arg15;
_un669 = [[210, 100, 0], [170, 100, 0], [130, 100, 0], [100, 100, 0], [70, 120, 100], [50, 100, 100], [25, 100, 100], [10, 70, 100]];
_dn474 = [[0, 50, 50], [1, 40, 50], [2, 30, 36], [3, 25, 32], [4, 20, 28], [3, 15, 25], [2, 10, 20], [1, 5, 50]];
super();
this._ln754 = _ln754;
this._qv715 = _qv715;
this._be445 = _be445;
this._ed439 = _ed439;
this._vd35 = _vd35;
this._py868 = _py868;
this._rf858 = _rf858;
this._qf912 = _qf912;
this._mv462 = _mv462;
this._vq707 = _vq707;
this._rl1264 = _rl1264;
this._ur153 = _ur153;
this._va1056 = _va1056;
this._jm30 = _jm30;
this._lj1095 = new Array();
this._im1010 = 0;
this._je750 = 0;
this._hl708 = 0;
this.id = _de1079;
_de1079++;
_ki590 = new _gj681();
if ((((((_jm30 == _yt1156)) && ((_ln754 == _ut162)))) && ((_be445 > 0)))){
_bu1080 = 0;
while (_un669[_bu1080][0] > _be445) {
_bu1080++;
};
};
addEventListener(_ee860._mx486, function (_arg1:_ee860):void{
_gq640(_arg1._wh829());
});
}
public function _ke357():uint{
return (_py868);
}
public function _bp635():void{
trace((("== Level id: " + id) + " =="));
trace(("playingTime: " + _be445));
trace(("dogsToKill: " + _ed439));
trace(("NPC_freq: " + _vd35));
trace(("pass_time: " + _py868));
trace(("start_attack: " + _rf858));
trace(("A_time: " + _mv462));
}
public function _os385():Boolean{
return ((_jg941 < (_im1010 + _qf912)));
}
public function _ao142(_arg1:uint):void{
var _local2:PropertyChangeEvent = new PropertyChangeEvent(_wy1415._yl759);
_local2.oldValue = _ki590.value;
_ki590._gm948(_arg1);
_local2.newValue = _ki590.value;
dispatchEvent(_local2);
}
public function _eb177():uint{
return (_ln754);
}
public function _if497(_arg1:Boolean, _arg2:_wy1415, _arg3:uint):DisplayObjectContainer{
var _local6:uint;
var _local4:Sprite = new Sprite();
var _local5:_pg1228 = _sq637.getInstance()._uv988();
if (_jm30 == _hr1396._mc1238){
switch (_ln754){
case _hr1396._pa845:
if (_arg1){
if (_ds452(_vy1134._bc1055) == 0){
_local5._di719(_local4, _lf450._aw1254, 0, 0, [], _arg3);
} else {
_local5._di719(_local4, _lf450._mo169, 0, 0, [_ds452(_vy1134._bc1055)], _arg3);
};
};
};
} else {
if (_arg1){
_local6 = (_arg2._tq820()._bl1418()) ? _lf450._fy611 : _lf450._og278;
} else {
_local6 = _lf450._fl44;
};
_local5._di719(_local4, _local6, 0, 0, [_ds452(_vy1134._bc1055), _ds452(_vy1134._pv845), _ds452(_vy1134._do679), _ds452(_vy1134._tp1034), _ds452(_vy1134._se797)], _arg3);
};
return (_local4);
}
public function _ps664():uint{
return (_va1056);
}
public function _yy1088():uint{
return (_be445);
}
public function _nh1436(_arg1:Function, _arg2:Function, _arg3:_wy1415):void{
var _local4:uint;
var _local5:uint;
if ((((_be445 > 0)) && ((_gh1007() > _yy1088())))){
_arg3._md206();
};
if (!(_oj919())){
_local4 = (_im1010 * _wy1415._vx209);
if (((((_local4 - _hl708) > _vd35)) && ((Math.random() > 0.5)))){
_arg1.apply(_arg3);
_hl708 = _local4;
};
if (((!((_ln754 == _pa845))) && (((_local4 - _je750) > _rl1264)))){
_arg2.apply(_arg3);
_je750 = _local4;
};
_local5 = _gh1007();
if ((((((((_jm30 == _yt1156)) && ((_ln754 == _ut162)))) && ((_be445 > 0)))) && ((_bu1080 >= 0)))){
if ((_be445 - _local5) == _un669[_bu1080][0]){
_vd35 = (_vd35 - _un669[_bu1080][1]);
trace(((((((("DI=" + _bu1080) + " ; NPC_freq:") + _vd35) + "; pass_time:") + _py868) + "; attack_freq:") + _qf912));
_bu1080++;
if (_bu1080 == _un669.length){
_bu1080 = -1;
};
};
};
};
if (_oj919()){
_arg3._is222();
};
_im1010++;
}
public function _gq640(_arg1:_vy1134):void{
_lj1095.push(_arg1.getType());
_ao142((_arg1.getType()._ki590 * _arg1._mx1046()._fy49()));
}
public function _cg1100():uint{
return (_vq707);
}
public function _ds1319():uint{
return (_rf858);
}
public function _ok1185():String{
var _local1:_sq637 = _sq637.getInstance();
switch (_ln754){
case _ut162:
if (_jm30 == _yt1156){
if ((((_be445 > 0)) && ((_ed439 == 0)))){
return (_local1.format(_kp1329._nj201, [new Number(_be445)]));
};
if ((((_be445 == 0)) && ((_ed439 > 0)))){
return (_local1.format(_kp1329._cr1161, [new Number(_ed439)]));
};
if ((((_be445 > 0)) && ((_ed439 > 0)))){
return (_local1.format(_kp1329._vw1293, [new Number(_be445), new Number(_ed439)]));
};
} else {
return (_local1.format(_kp1329._tn1449));
};
break;
case _pa845:
if ((((_be445 > 0)) && ((_ed439 == 0)))){
return (_local1.format(_kp1329._xm1129, [new Number(_be445)]));
};
if ((((_be445 == 0)) && ((_ed439 > 0)))){
return (_local1.format(_kp1329._cr1161, [new Number(_ed439)]));
};
if ((((_be445 > 0)) && ((_ed439 > 0)))){
if (_jm30 == _yt1156){
return (_local1.format(_kp1329._vw1293, [new Number(_be445), new Number(_ed439)]));
};
return (_local1.format(_kp1329._ke501, [new Number(_dn474[0][1]), new Number(_dn474[0][2]), new Number(_dn474[1][1]), new Number(_dn474[1][2])]));
};
break;
};
return (null);
}
public function _lj664():uint{
return (_ki590.value);
}
public function _ih1296():uint{
return (_ed439);
}
public function _co364():uint{
return (_mv462);
}
public function equals(_arg1:_hr1396):Boolean{
return ((_arg1.id == id));
}
public function _eo1218():uint{
return (_jm30);
}
public function _ka1328():uint{
return (_ur153);
}
public function _gm384():void{
this._jg941 = _im1010;
}
public function _ds452(_arg1:uint=100):uint{
var _local4:_sk466;
if (_arg1 == _tb1322){
return (_lj1095.length);
};
var _local2:uint;
var _local3:uint;
while (_local3 < _lj1095.length) {
_local4 = _lj1095[_local3];
if (_local4.id == _arg1){
_local2++;
};
_local3++;
};
return (_local2);
}
private function _oj919():Boolean{
return ((((((_ed439 > 0)) && ((_ed439 <= _ds452())))) || ((((_be445 <= _gh1007())) && ((_ed439 <= _ds452()))))));
}
public function clone():_hr1396{
var _local1:Number = 0;
var _local2:_hr1396 = new _hr1396(_ln754, _qv715, _be445, _ed439, _vd35, _local1, _py868, _rf858, _qf912, _mv462, _vq707, _rl1264, _ur153, _va1056, _jm30);
_local2.id = id;
return (_local2);
}
public function _gh1007():uint{
return (uint(((_im1010 * _wy1415._vx209) / 1000)));
}
public function _ud1116():uint{
return (_rl1264);
}
public function _tv368(_arg1:uint=540):Sprite{
var _local2:Sprite;
var _local3:_pg1228 = _sq637.getInstance()._uv988();
switch (_ln754){
case _ut162:
if (_jm30 == _yt1156){
if ((((_be445 > 0)) && ((_ed439 == 0)))){
_local2 = _local3._rt980(_lf450._nj201, [_be445], _arg1);
} else {
if ((((_be445 == 0)) && ((_ed439 > 0)))){
_local2 = _local3._rt980(_lf450._cr1161, [_ed439], _arg1);
} else {
if ((((_be445 > 0)) && ((_ed439 > 0)))){
_local2 = _local3._rt980(_lf450._vw1293, [_be445, _ed439], _arg1);
};
};
};
} else {
_local2 = _local3._rt980(_lf450._tn1449, null, _arg1);
};
break;
case _pa845:
if ((((_be445 > 0)) && ((_ed439 == 0)))){
_local2 = _local3._rt980(_lf450._xm1129, [_be445], _arg1);
} else {
if ((((_be445 == 0)) && ((_ed439 > 0)))){
_local2 = _local3._rt980(_lf450._cr1161, [_ed439], _arg1);
} else {
if ((((_be445 > 0)) && ((_ed439 > 0)))){
if (_jm30 == _yt1156){
_local2 = _local3._rt980(_lf450._vw1293, [_be445, _ed439], _arg1);
} else {
_local2 = _local3._rt980(_lf450._ke501, [_dn474[0][1], _dn474[0][2], _dn474[1][1], _dn474[1][2]], _arg1);
};
};
};
};
break;
};
return (_local2);
}
public static function _ec1277():uint{
return (_pj774);
}
public static function _vy303():uint{
return (_xk490.length);
}
public static function _cd351(_arg1:uint):_hr1396{
if (_arg1 < _xk490.length){
return (_xk490[_arg1].clone());
};
return (null);
}
public static function _qo1382():_hr1396{
return (_cm430.clone());
}
public static function _rv1058(_arg1:uint):void{
var _local3:uint;
var _local5:uint;
var _local6:_hr1396;
var _local7:_hr1396;
_pj774 = 0;
var _local2:ByteArray = _pc900;
_local2.position = 0;
var _local4:Array = new Array();
_local3 = 0;
while (_local3 < _xk490.length) {
_local4.push(_xk490[_local3]);
_local3++;
};
_local4.push(_cm430);
while (true) {
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
_local6._be445 = _local2.readUnsignedShort();
_local6._ed439 = _local2.readUnsignedShort();
_local6._vd35 = _local2.readUnsignedShort();
_local2.readUnsignedShort();
_local6._py868 = _local2.readUnsignedShort();
_local6._rf858 = _local2.readUnsignedShort();
_local6._qf912 = (_local2.readUnsignedShort() / _wy1415._vx209);
_local6._mv462 = _local2.readUnsignedShort();
_local6._vq707 = _local2.readUnsignedShort();
_local6._rl1264 = _local2.readUnsignedShort();
_local6._ur153 = _local2.readUnsignedShort();
_local6._va1056 = _local2.readUnsignedShort();
_local5++;
};
if (_pj774 == _arg1){
_local7 = _xk490[1];
return;
};
_pj774++;
};
}
public static function _lh304(_arg1:_hr1396):int{
var _local2:uint;
while (_local2 < _xk490.length) {
if ((_xk490[_local2] as _hr1396).equals(_arg1)){
return (_local2);
};
_local2++;
};
return (-1);
}
}
}//package game
Section 100
//_hr1396__kg1109 (game._hr1396__kg1109)
package game {
import mx.core.*;
public class _hr1396__kg1109 extends ByteArrayAsset {
}
}//package game
Section 101
//_iv1303 (game._iv1303)
package game {
import flash.events.*;
import game.mumu.*;
import flash.display.*;
import com.herocraft.*;
import de.polygonal.ds.*;
import flash.utils.*;
import flash.media.*;
public class _iv1303 {
private var _nt1362:_mk278;
private var _qv1299:Sprite;
private var _ow1131:_mk278;
private var _jh690:uint;
private var _oy1365:LinkedQueue;
private var _jh568:_hr1396;
private var _hc797:Timer;
private static const _df1321:Array = [_nt1089._ex1346, _nt1089._qt1201, _nt1089._ox1447, _nt1089._ox1447];
private static const _kp1344:uint = 1000;
private static const _rh1339:Array = [_ol205._yh732, _ol205._aa13, _ol205._gn1148];
private static const _ss694:uint = 0;
private static const _tp366:Array = [_ol205._nl611, _ol205._mx38, _ol205._sn292, _ol205._gt718];
private static const _rl1412:uint = 40;
public function _iv1303(_arg1:_hr1396){
var _jh568 = _arg1;
super();
this._jh568 = _jh568;
_jh568.addEventListener(_ee860._mx486, _bu1348);
_oy1365 = new LinkedQueue();
_qv1299 = new Sprite();
_hc797 = new Timer(_kp1344, 1);
_hc797.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
_qv1299.removeChild(_ow1131);
_ow1131.dispose();
_ow1131 = null;
_jh690 = 0;
_hc797.stop();
_oy1365.clear();
});
}
private function _xl959():void{
var _ju1450:Function;
if (_oy1365.isEmpty()){
return;
};
if (_ow1131 != null){
_qv1299.removeChild(_ow1131);
_ow1131.dispose();
_ow1131 = null;
};
var _di241:uint = _oy1365.dequeue();
_hc797.stop();
_hc797.start();
_ow1131 = _sq637.getInstance()._rj1381(_di241);
_ju1450 = function (_arg1:Event):void{
var _local2:_mk278 = (_arg1.target as _mk278);
_local2.stop();
_local2.removeEventListener(_mk278._bw1056, _ju1450);
_xl959();
};
_ow1131.addEventListener(_mk278._bw1056, _ju1450);
_ow1131.y = _rl1412;
_ow1131.play();
_qv1299.addChild(_ow1131);
var _yx599:int = -1;
switch (_ow1131._mq1416()){
case _ol205._yh732:
_yx599 = _nt1089._yh732;
break;
case _ol205._aa13:
_yx599 = _nt1089._aa13;
break;
case _ol205._gn1148:
_yx599 = _nt1089._gn1148;
break;
};
if (_yx599 != -1){
_sq637.getInstance()._os569(_yx599, new SoundTransform(0.35));
};
}
public function _qq719():void{
_jh690 = 0;
}
public function getControl():DisplayObject{
return (_qv1299);
}
public function _fy49():uint{
return ((_jh690 + 1));
}
private function _bu1348(_arg1:_ee860):void{
var _dr908:_ui287;
var _ju1450:Function;
var snd:uint;
var _wr400 = _arg1;
if ((((((_nt1362 == null)) && ((_jh690 >= 0)))) && ((_jh690 < _tp366.length)))){
if ((((((_jh690 == 0)) && ((Math.random() > 0.9)))) || ((((_jh690 > 0)) && ((Math.random() > 0.7)))))){
_dr908 = new _ui287(_tp366[_jh690], 0, _ss694, _qv1299);
_dr908.execute();
_nt1362 = _dr908._qg582();
_ju1450 = function (_arg1:Event):void{
_nt1362.removeEventListener(_mk278._bw1056, _ju1450);
_nt1362 = null;
};
_nt1362.addEventListener(_mk278._bw1056, _ju1450);
snd = _df1321[_jh690];
_sq637.getInstance()._os569(snd);
};
};
var _nh430:int = (_jh690 - 1);
if ((((_nh430 >= 0)) && ((_nh430 < _rh1339.length)))){
_oy1365.enqueue(_rh1339[_nh430]);
};
_xl959();
_jh690++;
}
public function dispose():void{
_hc797.stop();
_hc797 = null;
if (_ow1131 != null){
_ow1131.dispose();
_ow1131 = null;
};
if (_nt1362 != null){
_nt1362.dispose();
_nt1362 = null;
};
_oy1365.clear();
while (_qv1299.numChildren != 0) {
_qv1299.removeChildAt(0);
};
_qv1299 = null;
_jh568.removeEventListener(_ee860._mx486, _bu1348);
_jh568 = null;
}
}
}//package game
Section 102
//_kp1329 (game._kp1329)
package game {
public class _kp1329 {
public static const _ev242:String = "http://www.herocraft.com/games/detail.php?ID=7962";
public static const _tn1449:String = "OVERKILL_BRIEF";
public static const _ke501:String = "BERSERK_BRIEF";
public static const _mc605:uint = 540;
public static const _dq388:uint = 500;
public static const _cr1161:String = "HEADS_BRIEF";
public static const _xm1129:String = "SLTIME_BRIEF";
public static const _tc517:uint = 163;
public static const _ln1233:String = "http://www.herocraft.com/en/games/detail.php?ID=7972";
public static const _nj201:String = "TLIMIT_BRIEF";
public static const _vw1293:String = "BOTH_BRIEF";
}
}//package game
Section 103
//_lf450 (game._lf450)
package game {
public class _lf450 {
public static const _md105:int = 10;
public static const _hx624:int = 83;
public static const _xf562:int = 14;
public static const _uc658:int = 58;
public static const _ky1254:int = 86;
public static const _yi519:int = 19;
public static const _fc1423:int = 38;
public static const _wp150:int = 12;
public static const _cg189:int = 63;
public static const _gj1416:int = 73;
public static const _be402:int = 67;
public static const _qk148:int = 4;
public static const _gr180:int = 51;
public static const _ea1248:int = 3;
public static const _eh1167:int = 42;
public static const _br267:int = 5;
public static const _ps88:int = 15;
public static const _jv1156:int = 13;
public static const _yd876:int = 41;
public static const _lv221:int = 22;
public static const _fy611:int = 44;
public static const _sa1439:int = 23;
public static const _mf1178:int = 60;
public static const _rr1043:int = 55;
public static const _id1010:int = 54;
public static const _na855:int = 18;
public static const _qw1172:int = 30;
public static const _rd609:int = 7;
public static const _ai1339:int = 9;
public static const _st650:int = 64;
public static const _sh1120:int = 68;
public static const _fl1244:int = 88;
public static const _nm383:int = 26;
public static const _tr1272:int = 36;
public static const _vw1293:int = 25;
public static const _ke501:int = 8;
public static const _mo929:int = 40;
public static const _kc167:int = 59;
public static const _au476:int = 17;
public static const _uy826:int = 47;
public static const _kd380:int = 21;
public static const _pc1444:int = 37;
public static const _fh701:int = 75;
public static const _gg659:int = 49;
public static const _jk815:int = 16;
public static const _ap198:int = 11;
public static const _sv1013:int = 20;
public static const _vq917:int = 2;
public static const _eq442:int = 50;
public static const _jx552:int = 0;
public static const _af62:int = 79;
public static const _hj90:int = 1;
public static const _fh552:int = 29;
public static const _ea283:int = 72;
public static const _pj736:int = 43;
public static const _tn1449:int = 74;
public static const _fl44:int = 46;
public static const _bu615:int = 65;
public static const _aj388:int = 56;
public static const _nj201:int = 84;
public static const _gw1424:int = 52;
public static const _gy1120:int = 66;
public static const _tm58:int = 31;
public static const _pg1106:int = 27;
public static const _ec758:int = 24;
public static const _wx1352:int = 61;
public static const _fa412:int = 80;
public static const _og278:int = 45;
public static const _px292:int = 28;
public static const _ku143:int = 32;
public static const _wd445:int = 71;
public static const _nq1123:int = 62;
public static const _do1422:int = 69;
public static const _is363:int = 53;
public static const _xr191:int = 33;
public static const _mo169:int = 78;
public static const _cn19:int = 70;
public static const _aw1254:int = 77;
public static const _ce655:int = 76;
public static const _kc195:int = 82;
public static const _rg1210:int = 85;
public static const _xy1075:int = 34;
public static const _gk1168:int = 87;
public static const _vv1217:int = 6;
public static const _cr1161:int = 48;
public static const _lv969:int = 57;
public static const _ww699:int = 39;
public static const _xm1129:int = 81;
public static const _pm1125:int = 35;
}
}//package game
Section 104
//_ng332 (game._ng332)
package game {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.herocraft.*;
import flash.media.*;
public class _ng332 {
private var _qv1299:Sprite;
private var _yq450:int;
private var _bm435:Timer;
private var _lu556:_mk278;
private var _rs279:Timer;
private var _xf1108:uint;
private var _xo344:uint;
private var _rw72:uint;
private static const _uy167:uint = 30;
public function _ng332(){
super();
_qv1299 = new Sprite();
_rs279 = new Timer(_uy167);
_rs279.addEventListener(TimerEvent.TIMER, update);
_bm435 = new Timer(10000);
_bm435.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
if (Math.random() > 0.8){
start();
};
});
_bm435.start();
}
private function update(_arg1:TimerEvent):void{
if (_xf1108 == 0){
_xf1108 = (((Math.random() * 300) + 100) / _uy167);
_gb501();
_lu556 = _sq637.getInstance()._rj1381(((_xo344 > _rw72)) ? _ol205._cc570 : _ol205._kn731);
_lu556.y = (Math.random() * _kp1329._dq388);
_lu556.width = _kp1329._mc605;
_yq450 = (((Math.random() > 0.5)) ? -1 : 1 * ((Math.random() * 6) + 4));
_qv1299.addChild(_lu556);
};
_xf1108--;
_lu556.y = (_lu556.y + _yq450);
_lu556._jt1439((_lu556._ja49() * Math.random()));
_xo344--;
if (_xo344 == 0){
stop();
};
}
public function start(_arg1:uint=2000):void{
_xf1108 = 0;
_xo344 = (_xo344 + (_arg1 / _uy167));
_rw72 = (_xo344 / 2);
_rs279.start();
_sq637.getInstance()._os569(_nt1089._ql859, new SoundTransform(0.6));
}
private function _gb501():void{
if (_lu556 != null){
_qv1299.removeChild(_lu556);
_lu556.dispose();
_lu556 = null;
};
}
public function dispose():void{
stop();
_bm435.stop();
_bm435 = null;
_rs279 = null;
_qv1299 = null;
}
private function stop():void{
_gb501();
_rs279.stop();
}
public function getControl():DisplayObject{
return (_qv1299);
}
}
}//package game
Section 105
//_nt1089 (game._nt1089)
package game {
import flash.media.*;
import de.polygonal.ds.*;
public class _nt1089 {
public static const _vv457:int = _mq1416();
public static const _av541:int = _mq1416();
public static const _aa13:int = _mq1416();
public static const _gw750:int = _mq1416();
public static const _gn1148:int = _mq1416();
public static const _mu1406:int = _mq1416();
public static const _md367:int = _mq1416();
public static const _mk1415:int = _mq1416();
public static const _js1092:int = _mq1416();
public static const _yh732:int = _mq1416();
public static const _sb876:int = _mq1416();
public static const _ox1447:int = _mq1416();
public static const _gt74:int = _mq1416();
public static const MEDIUM:int = _mq1416();
public static const _ex1346:int = _mq1416();
public static const _cy289:int = _mq1416();
public static const _ih635:int = _mq1416();
public static const _mi1322:int = _mq1416();
public static const _sf452:int = _mq1416();
public static const _qt1201:int = _mq1416();
public static const _mx128:int = _mq1416();
public static const _wc900:int = _mq1416();
public static const _lq816:int = _mq1416();
public static const _il1058:int = _mq1416();
public static const _uy625:int = _mq1416();
public static const _cd1042:int = _mq1416();
public static const _ql859:int = _mq1416();
public static const _my237:int = _mq1416();
public static const _en59:int = _mq1416();
private static var _yh267:Class = _nt1089__yh267;
private static var _fp1226:Class = _nt1089__fp1226;
private static var id:uint = 0;
private static var _ci1261:Class = _nt1089__ci1261;
private static var _ju370:Class = _nt1089__ju370;
private static var _ml484:Class = _nt1089__ml484;
private static var _vu496:Class = _nt1089__vu496;
private static var _et530:Class = _nt1089__et530;
private static var _cn430:Class = _nt1089__cn430;
private static var _am349:Class = _nt1089__am349;
private static var _dg1356:Class = _nt1089__dg1356;
private static var _dp701:Class = _nt1089__dp701;
private static var _ch627:Class = _nt1089__ch627;
private static var _ck733:Class = _nt1089__ck733;
private static var _ta591:Class = _nt1089__ta591;
private static var _hp273:Class = _nt1089__hp273;
private static var _ut69:Class = _nt1089__ut69;
private static var _sw824:Class = _nt1089__sw824;
private static var _he323:Class = _nt1089__he323;
private static var _bf1358:Class = _nt1089__bf1358;
private static var _ss871:Class = _nt1089__ss871;
private static var _ty1023:Class = _nt1089__ty1023;
private static var _se811:HashMap;
private static var _fp459:Class = _nt1089__fp459;
private static var _sg1082:Class = _nt1089__sg1082;
private static var _ni941:Class = _nt1089__ni941;
private static var _ey119:Class = _nt1089__ey119;
private static var _rl1133:Class = _nt1089__rl1133;
private static var _nu517:Class = _nt1089__nu517;
private static var _pr52:Class = _nt1089__pr52;
private static function init():void{
if (_se811 == null){
_se811 = new HashMap();
_se811.insert(_cy289, new _sw824());
_se811.insert(_gw750, new _ey119());
_se811.insert(_vv457, new _bf1358());
_se811.insert(_qt1201, new _dp701());
_se811.insert(_ex1346, new _he323());
_se811.insert(_ox1447, new _ut69());
_se811.insert(_sf452, new _ni941());
_se811.insert(_cd1042, new _fp459());
_se811.insert(_uy625, new _ss871());
_se811.insert(_mi1322, new _pr52());
_se811.insert(_lq816, new _ju370());
_se811.insert(_en59, new _ck733());
_se811.insert(_il1058, new _ch627());
_se811.insert(_wc900, new _ta591());
_se811.insert(_md367, new _dg1356());
_se811.insert(_sb876, new _vu496());
_se811.insert(_my237, new _et530());
_se811.insert(_gt74, new _ck733());
_se811.insert(MEDIUM, new _nu517());
_se811.insert(_mk1415, new _fp1226());
_se811.insert(_ql859, new _cn430());
_se811.insert(_ih635, new _am349());
_se811.insert(_mx128, new _yh267());
_se811.insert(_av541, new _ty1023());
_se811.insert(_mu1406, new _hp273());
_se811.insert(_yh732, new _sg1082());
_se811.insert(_aa13, new _ci1261());
_se811.insert(_gn1148, new _ml484());
_se811.insert(_js1092, new _rl1133());
};
}
public static function _oq419(_arg1:uint):Sound{
if (_se811 == null){
init();
};
return (_se811.find(_arg1));
}
private static function _mq1416():uint{
return (id++);
}
public static function _fb640(_arg1:uint, _arg2:Sound):void{
if (_se811 == null){
init();
};
_se811.remove(_arg1);
_se811.insert(_arg1, _arg2);
}
}
}//package game
Section 106
//_nt1089__am349 (game._nt1089__am349)
package game {
import mx.core.*;
public class _nt1089__am349 extends SoundAsset {
}
}//package game
Section 107
//_nt1089__bf1358 (game._nt1089__bf1358)
package game {
import mx.core.*;
public class _nt1089__bf1358 extends SoundAsset {
}
}//package game
Section 108
//_nt1089__ch627 (game._nt1089__ch627)
package game {
import mx.core.*;
public class _nt1089__ch627 extends SoundAsset {
}
}//package game
Section 109
//_nt1089__ci1261 (game._nt1089__ci1261)
package game {
import mx.core.*;
public class _nt1089__ci1261 extends SoundAsset {
}
}//package game
Section 110
//_nt1089__ck733 (game._nt1089__ck733)
package game {
import mx.core.*;
public class _nt1089__ck733 extends SoundAsset {
}
}//package game
Section 111
//_nt1089__cn430 (game._nt1089__cn430)
package game {
import mx.core.*;
public class _nt1089__cn430 extends SoundAsset {
}
}//package game
Section 112
//_nt1089__dg1356 (game._nt1089__dg1356)
package game {
import mx.core.*;
public class _nt1089__dg1356 extends SoundAsset {
}
}//package game
Section 113
//_nt1089__dp701 (game._nt1089__dp701)
package game {
import mx.core.*;
public class _nt1089__dp701 extends SoundAsset {
}
}//package game
Section 114
//_nt1089__et530 (game._nt1089__et530)
package game {
import mx.core.*;
public class _nt1089__et530 extends SoundAsset {
}
}//package game
Section 115
//_nt1089__ey119 (game._nt1089__ey119)
package game {
import mx.core.*;
public class _nt1089__ey119 extends SoundAsset {
}
}//package game
Section 116
//_nt1089__fp1226 (game._nt1089__fp1226)
package game {
import mx.core.*;
public class _nt1089__fp1226 extends SoundAsset {
}
}//package game
Section 117
//_nt1089__fp459 (game._nt1089__fp459)
package game {
import mx.core.*;
public class _nt1089__fp459 extends SoundAsset {
}
}//package game
Section 118
//_nt1089__he323 (game._nt1089__he323)
package game {
import mx.core.*;
public class _nt1089__he323 extends SoundAsset {
}
}//package game
Section 119
//_nt1089__hp273 (game._nt1089__hp273)
package game {
import mx.core.*;
public class _nt1089__hp273 extends SoundAsset {
}
}//package game
Section 120
//_nt1089__ju370 (game._nt1089__ju370)
package game {
import mx.core.*;
public class _nt1089__ju370 extends SoundAsset {
}
}//package game
Section 121
//_nt1089__ml484 (game._nt1089__ml484)
package game {
import mx.core.*;
public class _nt1089__ml484 extends SoundAsset {
}
}//package game
Section 122
//_nt1089__ni941 (game._nt1089__ni941)
package game {
import mx.core.*;
public class _nt1089__ni941 extends SoundAsset {
}
}//package game
Section 123
//_nt1089__nu517 (game._nt1089__nu517)
package game {
import mx.core.*;
public class _nt1089__nu517 extends SoundAsset {
}
}//package game
Section 124
//_nt1089__pr52 (game._nt1089__pr52)
package game {
import mx.core.*;
public class _nt1089__pr52 extends SoundAsset {
}
}//package game
Section 125
//_nt1089__rl1133 (game._nt1089__rl1133)
package game {
import mx.core.*;
public class _nt1089__rl1133 extends SoundAsset {
}
}//package game
Section 126
//_nt1089__sg1082 (game._nt1089__sg1082)
package game {
import mx.core.*;
public class _nt1089__sg1082 extends SoundAsset {
}
}//package game
Section 127
//_nt1089__ss871 (game._nt1089__ss871)
package game {
import mx.core.*;
public class _nt1089__ss871 extends SoundAsset {
}
}//package game
Section 128
//_nt1089__sw824 (game._nt1089__sw824)
package game {
import mx.core.*;
public class _nt1089__sw824 extends SoundAsset {
}
}//package game
Section 129
//_nt1089__ta591 (game._nt1089__ta591)
package game {
import mx.core.*;
public class _nt1089__ta591 extends SoundAsset {
}
}//package game
Section 130
//_nt1089__ty1023 (game._nt1089__ty1023)
package game {
import mx.core.*;
public class _nt1089__ty1023 extends SoundAsset {
}
}//package game
Section 131
//_nt1089__ut69 (game._nt1089__ut69)
package game {
import mx.core.*;
public class _nt1089__ut69 extends SoundAsset {
}
}//package game
Section 132
//_nt1089__vu496 (game._nt1089__vu496)
package game {
import mx.core.*;
public class _nt1089__vu496 extends SoundAsset {
}
}//package game
Section 133
//_nt1089__yh267 (game._nt1089__yh267)
package game {
import mx.core.*;
public class _nt1089__yh267 extends SoundAsset {
}
}//package game
Section 134
//_ol205 (game._ol205)
package game {
public class _ol205 {
public static const _gs661:int = 23;
public static const _cp1294:int = 65;
public static const _ej1039:int = 98;
public static const _ps103:int = 25;
public static const _ot752:int = 205;
public static const _yi1444:int = 54;
public static const _pp1051:int = 47;
public static const _so982:int = 168;
public static const _rl319:int = 187;
public static const _xk869:int = 146;
public static const _mb1214:int = 75;
public static const _ac839:int = 22;
public static const _vn56:int = 92;
public static const _uf782:int = 129;
public static const _is162:int = 12;
public static const _ht213:int = 143;
public static const _qr1097:int = 150;
public static const _al536:int = 48;
public static const _kp852:int = 43;
public static const _of271:int = 58;
public static const X:int = 149;
public static const _rm663:int = 170;
public static const _bx781:int = 104;
public static const V:int = 148;
public static const _bs1405:int = 163;
public static const _be1132:int = 67;
public static const _mf319:int = 68;
public static const _gs338:int = 160;
public static const _cc570:int = 158;
public static const _qx982:int = 169;
public static const _gk860:int = 136;
public static const _qi1097:int = 36;
public static const _id1211:int = 125;
public static const _lg1305:int = 6;
public static const _wh366:int = 139;
public static const _kx256:int = 17;
public static const _nr353:int = 140;
public static const _jq707:int = 26;
public static const _cn240:int = 172;
public static const _yl579:int = 44;
public static const _ul1273:int = 82;
public static const _xb759:int = 57;
public static const _ko336:int = 0;
public static const _aw583:int = 40;
public static const _ty1326:int = 116;
public static const _fx1101:int = 90;
public static const _ur571:int = 176;
public static const _be646:int = 3;
public static const _lh993:int = 102;
public static const _lx1363:int = 117;
public static const _ts627:int = 32;
public static const _rc39:int = 167;
public static const _rn467:int = 14;
public static const _id887:int = 107;
public static const _oa656:int = 100;
public static const _bd330:int = 183;
public static const _nl611:int = 154;
public static const _rm389:int = 101;
public static const _uh459:int = 171;
public static const _yq821:int = 97;
public static const _ib360:int = 181;
public static const _to178:int = 193;
public static const _lg1245:int = 134;
public static const _tg81:int = 13;
public static const _th423:int = 96;
public static const _rm161:int = 16;
public static const _bh837:int = 173;
public static const _oj255:int = 19;
public static const _uw53:int = 174;
public static const _sn292:int = 156;
public static const _pc664:int = 184;
public static const _qf614:int = 81;
public static const _mm927:int = 70;
public static const _ft127:int = 10;
public static const _ai1241:int = 200;
public static const _mj1091:int = 131;
public static const _pp961:int = 64;
public static const _qm1254:int = 35;
public static const _vr1445:int = 119;
public static const _hu90:int = 89;
public static const _sj940:int = 123;
public static const _qt1336:int = 20;
public static const _rd1400:int = 105;
public static const _ma736:int = 185;
public static const _mx1018:int = 39;
public static const _vc1010:int = 63;
public static const _be103:int = 111;
public static const _nw1408:int = 99;
public static const _ck801:int = 126;
public static const _vt496:int = 95;
public static const _if517:int = 87;
public static const _th697:int = 76;
public static const _aw290:int = 151;
public static const _gn401:int = 199;
public static const _ac136:int = 15;
public static const _lf16:int = 206;
public static const _fb643:int = 72;
public static const _sh788:int = 41;
public static const _pv177:int = 45;
public static const _ho785:int = 152;
public static const _ct1055:int = 124;
public static const _mm966:int = 197;
public static const _jl1272:int = 196;
public static const _ia1442:int = 141;
public static const _qg745:int = 195;
public static const _qr1404:int = 113;
public static const _mx38:int = 155;
public static const _yd119:int = 182;
public static const _br1035:int = 138;
public static const _wl246:int = 37;
public static const _yc153:int = 153;
public static const _sh686:int = 112;
public static const _is963:int = 71;
public static const _tr391:int = 114;
public static const _uy709:int = 83;
public static const _wk168:int = 61;
public static const _yh732:int = 202;
public static const _jt866:int = 179;
public static const _hd344:int = 132;
public static const _tf1207:int = 4;
public static const _sn1132:int = 147;
public static const _wm237:int = 133;
public static const _ax1028:int = 201;
public static const _rs1302:int = 91;
public static const _rk937:int = 86;
public static const _ew427:int = 27;
public static const _jt1062:int = 198;
public static const _em765:int = 180;
public static const _qr773:int = 33;
public static const _ga165:int = 109;
public static const _fe964:int = 121;
public static const _na480:int = 5;
public static const _qp354:int = 118;
public static const _db1330:int = 161;
public static const _nw470:int = 8;
public static const _yf214:int = 94;
public static const _yg1099:int = 28;
public static const _kv989:int = 62;
public static const _uk591:int = 166;
public static const _au1407:int = 52;
public static const _sk877:int = 69;
public static const _nb229:int = 51;
public static const _uo707:int = 60;
public static const _mv1255:int = 73;
public static const _ai862:int = 178;
public static const _go680:int = 135;
public static const _pn275:int = 194;
public static const _ik802:int = 188;
public static const _rw806:int = 46;
public static const _lv683:int = 85;
public static const _ia908:int = 1;
public static const _ch386:int = 18;
public static const _nx227:int = 128;
public static const _bo1215:int = 38;
public static const _kl508:int = 34;
public static const _tm1447:int = 144;
public static const _ek1114:int = 59;
public static const _wy1218:int = 80;
public static const _px1204:int = 2;
public static const _xe48:int = 9;
public static const _la320:int = 77;
public static const _tk589:int = 190;
public static const _aa13:int = 203;
public static const _vy1038:int = 84;
public static const _qk948:int = 142;
public static const _td957:int = 21;
public static const _he490:int = 55;
public static const _ei1404:int = 108;
public static const _tv464:int = 186;
public static const _gn1148:int = 204;
public static const _gg757:int = 11;
public static const _lb664:int = 93;
public static const _me618:int = 137;
public static const _tg1190:int = 177;
public static const _gn1038:int = 30;
public static const _aj756:int = 122;
public static const _mo642:int = 164;
public static const _ne781:int = 103;
public static const _vw1330:int = 145;
public static const _wu905:int = 31;
public static const _oo1247:int = 192;
public static const _sf1092:int = 53;
public static const _ri348:int = 49;
public static const _cx621:int = 110;
public static const _gg418:int = 66;
public static const _kp48:int = 191;
public static const _dj296:int = 189;
public static const _gt718:int = 157;
public static const _kn731:int = 159;
public static const _dt17:int = 106;
public static const _uv1122:int = 130;
public static const _ny135:int = 50;
public static const _lx568:int = 79;
public static const _bm734:int = 88;
public static const _yl715:int = 165;
public static const _hk946:int = 115;
public static const _qh360:int = 78;
public static const _wt842:int = 24;
public static const _ex258:int = 175;
public static const _kw683:int = 7;
public static const _cx539:int = 127;
public static const _xh441:int = 42;
public static const _am1010:int = 162;
public static const _tu1034:int = 74;
public static const _cf805:int = 120;
public static const _up787:int = 29;
public static const _rm992:int = 56;
}
}//package game
Section 135
//_sb171 (game._sb171)
package game {
import game.bonuses.*;
import game.mumu.*;
public class _sb171 {
private var _ga691:Array;
private var _vl372:Array;
private var count:uint;
public function _sb171(){
this.count = count;
_ga691 = new Array();
var _local1:_sk466 = new _sk466(_vy1134._bc1055, 1, 10, 1, 1, 1);
var _local2:_sk466 = new _sk466(_vy1134._pv845, 2, 15, 1.5, 0.5, 1.3);
var _local3:_sk466 = new _sk466(_vy1134._do679, 2.5, 75, 1.5, 1, 1);
var _local4:_sk466 = new _sk466(_vy1134._tp1034, 1.5, 50, 1, 1.5, 1.5);
var _local5:_sk466 = new _sk466(_vy1134._se797, 1, 35, 0.5, 1.25, 0.5);
_ga691[0] = _local1;
_local1._so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._pv177);
_local1._so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._yl579);
_local1._so820.set(_tb1260._dm396, _tb1260._ww554, _ol205._kp852);
_local1._so820.set(_tb1260._dm396, _tb1260._wl19, _ol205._xh441);
_local1._so820.set(_tb1260._lo123, _tb1260._ww554, _ol205._he490);
_local1._so820.set(_tb1260._lo123, _tb1260._wl19, _ol205._yi1444);
_local1._so820.set(_tb1260._aw1430, _tb1260._ww554, -1);
_local1._so820.set(_tb1260._aw1430, _tb1260._wl19, -1);
_local1._so820.set(_tb1260._uh876, _tb1260._ww554, _ol205._aw583);
_local1._so820.set(_tb1260._uh876, _tb1260._wl19, _ol205._sh788);
_local1._so820.set(_tb1260._xa711, _tb1260._ww554, _ol205._pp1051);
_local1._so820.set(_tb1260._xa711, _tb1260._wl19, _ol205._rw806);
_local1._so820.set(_vy1134._dd838, _tb1260._ww554, _ol205._nb229);
_local1._so820.set(_vy1134._dd838, _tb1260._wl19, _ol205._ny135);
_local1._so820.set(_vy1134._ak1098, _tb1260._ww554, _ol205._au1407);
_local1._so820.set(_vy1134._ak1098, _tb1260._wl19, _ol205._sf1092);
_ga691[1] = _local5;
_local5._so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._yq821);
_local5._so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._th423);
_local5._so820.set(_tb1260._dm396, _tb1260._ww554, _ol205._ej1039);
_local5._so820.set(_tb1260._dm396, _tb1260._wl19, _ol205._nw1408);
_local5._so820.set(_tb1260._lo123, _tb1260._ww554, _ol205._ne781);
_local5._so820.set(_tb1260._lo123, _tb1260._wl19, _ol205._lh993);
_local5._so820.set(_tb1260._aw1430, _tb1260._ww554, -1);
_local5._so820.set(_tb1260._aw1430, _tb1260._wl19, -1);
_local5._so820.set(_tb1260._uh876, _tb1260._ww554, _ol205._vt496);
_local5._so820.set(_tb1260._uh876, _tb1260._wl19, _ol205._yf214);
_local5._so820.set(_tb1260._xa711, _tb1260._ww554, _ol205._rm389);
_local5._so820.set(_tb1260._xa711, _tb1260._wl19, _ol205._oa656);
_ga691[2] = _local2;
_local2._so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._vy1038);
_local2._so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._uy709);
_local2._so820.set(_tb1260._dm396, _tb1260._ww554, _ol205._rk937);
_local2._so820.set(_tb1260._dm396, _tb1260._wl19, _ol205._lv683);
_local2._so820.set(_tb1260._lo123, _tb1260._ww554, _ol205._lx568);
_local2._so820.set(_tb1260._lo123, _tb1260._wl19, _ol205._wy1218);
_local2._so820.set(_tb1260._aw1430, _tb1260._ww554, _ol205._qh360);
_local2._so820.set(_tb1260._aw1430, _tb1260._wl19, _ol205._th697);
_local2._so820.set(_tb1260._uh876, _tb1260._ww554, _ol205._mb1214);
_local2._so820.set(_tb1260._uh876, _tb1260._wl19, _ol205._mb1214);
_local2._so820.set(_tb1260._xa711, _tb1260._ww554, _ol205._qf614);
_local2._so820.set(_tb1260._xa711, _tb1260._wl19, _ol205._ul1273);
_ga691[3] = _local4;
_local4._so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._gg418);
_local4._so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._cp1294);
_local4._so820.set(_tb1260._dm396, _tb1260._ww554, _ol205._mf319);
_local4._so820.set(_tb1260._dm396, _tb1260._wl19, _ol205._be1132);
_local4._so820.set(_tb1260._lo123, _tb1260._ww554, _ol205._mv1255);
_local4._so820.set(_tb1260._lo123, _tb1260._wl19, _ol205._tu1034);
_local4._so820.set(_tb1260._aw1430, _tb1260._ww554, -1);
_local4._so820.set(_tb1260._aw1430, _tb1260._wl19, -1);
_local4._so820.set(_tb1260._uh876, _tb1260._ww554, _ol205._vc1010);
_local4._so820.set(_tb1260._uh876, _tb1260._wl19, _ol205._pp961);
_local4._so820.set(_tb1260._xa711, _tb1260._ww554, _ol205._sk877);
_local4._so820.set(_tb1260._xa711, _tb1260._wl19, _ol205._mm927);
_ga691[4] = _local3;
_local3._so820.set(_tb1260._bt340, _tb1260._ww554, _ol205._qr1404);
_local3._so820.set(_tb1260._bt340, _tb1260._wl19, _ol205._sh686);
_local3._so820.set(_tb1260._dm396, _tb1260._ww554, _ol205._be103);
_local3._so820.set(_tb1260._dm396, _tb1260._wl19, _ol205._cx621);
_local3._so820.set(_tb1260._lo123, _tb1260._ww554, _ol205._fe964);
_local3._so820.set(_tb1260._lo123, _tb1260._wl19, _ol205._cf805);
_local3._so820.set(_tb1260._aw1430, _tb1260._ww554, -1);
_local3._so820.set(_tb1260._aw1430, _tb1260._wl19, -1);
_local3._so820.set(_tb1260._uh876, _tb1260._ww554, _ol205._vr1445);
_local3._so820.set(_tb1260._uh876, _tb1260._wl19, _ol205._qp354);
_local3._so820.set(_tb1260._xa711, _tb1260._ww554, _ol205._hk946);
_local3._so820.set(_tb1260._xa711, _tb1260._wl19, _ol205._tr391);
_vl372 = new Array(new _bb46(), new _hi259(), new _ao1296(), new _fq56(), new _iy1367(), new _bk127(), new _cr862(), new _dx1080());
}
public function _ch521(_arg1:_wy1415):_tp159{
var _local3:_ci271;
var _local2:Array = _arg1._yd56();
var _local4:Array = new Array();
var _local5:uint;
while (_local5 < _local2.length) {
_local3 = _local2[_local5];
if (!(_local3._uo1076())){
_local4.push(_local3);
};
_local5++;
};
if (_local4.length == 0){
return (null);
};
var _local6:int = (Math.random() * _local4.length);
_local3 = _local4[_local6];
_local6 = (Math.random() * _vl372.length);
var _local7:_uq787 = _vl372[_local6];
var _local8:_tp159 = new _tp159(_local7._xl284(), _arg1, _local3);
_local8._ba1093(_local7);
_local8.x = _local3.x;
_local8.y = _local3.y;
_local8._cf954(_local3._lk603());
_local8.setState(new _fi1113(_local8));
return (_local8);
}
public function _oc509(_arg1:_wy1415, _arg2:_ci271):_vy1134{
var _local3:uint = _arg1._ab331()._ps664();
if (_local3 > _ga691.length){
_local3 = _ga691.length;
};
if (_local3 < 0){
_local3 = 0;
};
var _local4:uint = (Math.random() * (_local3 + 1));
if (_local4 >= _ga691.length){
_local4 = (_ga691.length - 1);
};
var _local5:_sk466 = _ga691[_local4];
return (new _vy1134(_arg1, _arg2, _local5));
}
}
}//package game
Section 136
//_sq637 (game._sq637)
package game {
import de.polygonal.ds.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.herocraft.*;
import flash.media.*;
import flash.net.*;
import game.gerasim.*;
public class _sq637 extends Sprite {
private var _qf620:int;
private var _vs956:int;
private var _dh1305:SoundChannel;
private var _yt71:_pg1228;
private var _aw89:Array;
private var _md934:Boolean;
private var _io1248:Array;
private var _nj461:SharedObject;
private var _ni977:Boolean;
private static const _ij1376:Class = _sq637__ij1376;
private static const _kx293:Class = _sq637__kx293;
private static const _mu385:Class = _sq637__mu385;
private static const _wq583:Class = _sq637__wq583;
private static const _kd334:Class = _sq637__kd334;
private static const _mi1124:Class = _sq637__mi1124;
private static const _yx70:Class = _sq637__yx70;
private static const _mu492:Class = _sq637__mu492;
private static const _tf856:Class = _sq637__tf856;
private static const _gp1123:Class = _sq637__gp1123;
private static const _ng1145:Class = _sq637__ng1145;
private static const _np209:Class = _sq637__np209;
private static var _cm647:Class = _sq637__cm647;
private static var _eh273:_sq637;
private static var _up215:Class = _sq637__up215;
private static var _hb1110:Array2;
public function _sq637(){
super();
_eh273 = this;
_qf620 = 0;
_vs956 = -1;
try {
_nj461 = SharedObject.getLocal("mumu_hc");
if (_nj461.data._md934 != undefined){
this._md934 = _nj461.data.soundOnProp;
} else {
_md934 = true;
};
if (_nj461.data._ni977 != undefined){
this._ni977 = _nj461.data.musicOnProp;
} else {
_md934 = true;
};
if (_nj461.data.mumuTypesRevealed == undefined){
_ah35(0);
};
if (_nj461.data.maxLevelIndexEasy == undefined){
_nj461.data.maxLevelIndexEasy = -1;
};
if (_nj461.data.maxLevelIndexMedium == undefined){
_nj461.data.maxLevelIndexMedium = -1;
};
if (_nj461.data.maxLevelIndexHard == undefined){
_nj461.data.maxLevelIndexHard = -1;
};
if (_nj461.data.mumuSmashed == undefined){
_tl735(false);
};
} catch(ee:Error) {
};
_aw89 = [new _mi1124(), new _wq583(), new _kx293(), new _ij1376(), new _mu385(), new _gp1123(), new _tf856(), new _yx70(), new _kd334(), new _np209()];
}
public function _ec718(_arg1:uint):int{
var _local2:int = -1;
switch (_arg1){
case 0:
_local2 = _nj461.data.maxLevelIndexEasy;
break;
case 1:
_local2 = _nj461.data.maxLevelIndexMedium;
break;
case 2:
_local2 = _nj461.data.maxLevelIndexHard;
break;
};
return (_local2);
}
public function _bs585(_arg1:Boolean):void{
var b = _arg1;
this._md934 = b;
if (_nj461 != null){
try {
_nj461.data.soundOnProp = this._md934;
_nj461.flush();
_nj461.close();
} catch(ee:Error) {
trace(ee.getStackTrace());
};
};
}
public function _lm172():Boolean{
return (_md934);
}
public function format(_arg1:String, _arg2:Array=null):String{
return (_arg1);
}
private function _de18():void{
var _local1:Sound;
if (_dh1305 != null){
_dh1305.stop();
};
_dh1305 = null;
if (((!((_vs956 == -1))) && (_ni977))){
_local1 = _nt1089._oq419(_vs956);
_dh1305 = _local1.play(_qf620, Math.pow(2, 10), new SoundTransform(0.4));
};
}
public function init(_arg1:DisplayObjectContainer):void{
var _rs159:ByteArray;
var _so1022:Loader;
var _qv1299:int;
var _tl1249:int;
var _nd646:ByteArray;
var _nw512:uint;
var _ju1450:Function;
var b:int;
var root = _arg1;
_rs159 = new _cm647();
_so1022 = new Loader();
var _dv1371:int = _rs159.readByte();
if (_dv1371 == 1){
_qv1299 = _rs159.readByte();
_tl1249 = _rs159.readUnsignedInt();
_nd646 = new ByteArray();
_nw512 = 0;
while (_nw512 < _tl1249) {
b = _rs159.readByte();
b = (b ^ 0xFF);
_nd646.writeByte(b);
_nw512 = (_nw512 + 1);
};
_ju1450 = function (_arg1:Event):void{
_so1022.contentLoaderInfo.removeEventListener(Event.INIT, _ju1450);
var _local2:Class = (_so1022.contentLoaderInfo.applicationDomain.getDefinition("_pa14") as Class);
var _local3:* = new (_local2);
root.addChild(_local3);
_nr508(_rs159, _local3);
};
_so1022.contentLoaderInfo.addEventListener(Event.INIT, _ju1450);
_so1022.loadBytes(_nd646);
} else {
_nr508(_rs159);
};
}
public function _mf272(_arg1:int):void{
if (_vs956 == _arg1){
return;
};
trace(("set melody: " + _arg1));
_qf620 = 0;
_vs956 = _arg1;
_de18();
}
public function _ay1356():Boolean{
return (_nj461.data.mumuSmashed);
}
public function _os569(_arg1:uint, _arg2:SoundTransform=null):void{
var _local3:Sound;
if (_md934){
_local3 = _nt1089._oq419(_arg1);
_local3.play(0, 0, _arg2);
};
}
public function _ph393():uint{
return (_nj461.data.mumuTypesRevealed);
}
public function _tl735(_arg1:Boolean):void{
if ((((_nj461.data.mumuSmashed == undefined)) || ((_nj461.data.mumuSmashed == false)))){
_nj461.data.mumuSmashed = _arg1;
};
}
public function _rc348():int{
return (_vs956);
}
public function _go1062(_arg1:uint, _arg2:uint):void{
var _local3:int = _ec718(_arg2);
_local3 = Math.max(_local3, _arg1);
switch (_arg2){
case 0:
_nj461.data.maxLevelIndexEasy = _local3;
break;
case 1:
_nj461.data.maxLevelIndexMedium = _local3;
break;
case 2:
_nj461.data.maxLevelIndexHard = _local3;
break;
};
}
public function _qt165(_arg1:Boolean):void{
var b = _arg1;
if (b == _ni977){
return;
};
this._ni977 = b;
if (_nj461 != null){
try {
_nj461.data.musicOnProp = this._ni977;
_nj461.flush();
_nj461.close();
} catch(ee:Error) {
trace(ee.getStackTrace());
};
};
if (!(_ni977)){
if (_dh1305 != null){
_qf620 = _dh1305.position;
_dh1305.stop();
_dh1305 = null;
} else {
_qf620 = 0;
};
} else {
_de18();
};
}
public function _ah35(_arg1:uint):void{
if ((((_nj461.data.mumuTypesRevealed == undefined)) || ((_nj461.data.mumuTypesRevealed < _arg1)))){
_nj461.data.mumuTypesRevealed = _arg1;
};
}
public function _rj70():Array{
return (_aw89);
}
public function _rj1381(_arg1:uint):_mk278{
return (_io1248[_arg1].clone());
}
public function _le544():Boolean{
return (_ni977);
}
public function _uv988():_pg1228{
return (_yt71);
}
private function _nr508(_arg1:ByteArray, _arg2=null):void{
var _local3:uint;
_qt165(_nj461.data.muteMusicProp);
if (_arg2 != null){
_arg2.sosi(_arg1);
};
var _local4:Bitmap = new _up215();
var _local5:_gq1345 = _gq1345._vt481(_local4.bitmapData, _arg1);
_io1248 = _mk278._vt481(_arg1, _local5);
_local4 = new _ng1145();
var _local6:ByteArray = new _mu492();
_yt71 = new _pg1228();
_yt71.init(_local4.bitmapData, _local6);
var _local7:Array = _yt71._wg1143();
_yt71._le749("en");
dispatchEvent(new Event(Event.INIT));
}
public function _so22():Array2{
if (_hb1110 == null){
_hb1110 = new Array2(20, 4);
_hb1110.set(_tb1260._bt340, _tb1260._wl19, _ol205._be646);
_hb1110.set(_tb1260._bt340, _tb1260._ww554, _ol205._px1204);
_hb1110.set(_tb1260._bt340, _tb1260._km851, _ol205._be646);
_hb1110.set(_tb1260._bt340, _tb1260._xl96, _ol205._px1204);
_hb1110.set(_tb1260._xa711, _tb1260._wl19, _ol205._na480);
_hb1110.set(_tb1260._xa711, _tb1260._ww554, _ol205._tf1207);
_hb1110.set(_tb1260._xa711, _tb1260._km851, _ol205._kw683);
_hb1110.set(_tb1260._xa711, _tb1260._xl96, _ol205._lg1305);
_hb1110.set(_iq1184._lc982, _tb1260._wl19, _ol205._is162);
_hb1110.set(_iq1184._lc982, _tb1260._ww554, _ol205._tg81);
_hb1110.set(_iq1184._lc982, _tb1260._km851, _ol205._is162);
_hb1110.set(_iq1184._lc982, _tb1260._xl96, _ol205._tg81);
_hb1110.set(_tb1260._sl582, _tb1260._wl19, _ol205._xe48);
_hb1110.set(_tb1260._sl582, _tb1260._ww554, _ol205._nw470);
_hb1110.set(_tb1260._sl582, _tb1260._km851, _ol205._xe48);
_hb1110.set(_tb1260._sl582, _tb1260._xl96, _ol205._nw470);
_hb1110.set(_tb1260._lo123, _tb1260._wl19, _ol205._ft127);
_hb1110.set(_tb1260._lo123, _tb1260._ww554, _ol205._ft127);
_hb1110.set(_tb1260._lo123, _tb1260._km851, _ol205._ft127);
_hb1110.set(_tb1260._lo123, _tb1260._xl96, _ol205._ft127);
_hb1110.set(_iq1184._qi196, _tb1260._wl19, _ol205._ts627);
_hb1110.set(_iq1184._qi196, _tb1260._ww554, _ol205._ts627);
_hb1110.set(_iq1184._qi196, _tb1260._km851, _ol205._ts627);
_hb1110.set(_iq1184._qi196, _tb1260._xl96, _ol205._ts627);
_hb1110.set(_iq1184._gf689, _tb1260._wl19, _ol205._qr773);
_hb1110.set(_iq1184._gf689, _tb1260._ww554, _ol205._qr773);
_hb1110.set(_iq1184._gf689, _tb1260._km851, _ol205._qr773);
_hb1110.set(_iq1184._gf689, _tb1260._xl96, _ol205._qr773);
_hb1110.set(_iq1184._ul953, _tb1260._wl19, _ol205._gn1038);
_hb1110.set(_iq1184._ul953, _tb1260._ww554, _ol205._gn1038);
_hb1110.set(_iq1184._ul953, _tb1260._km851, _ol205._gn1038);
_hb1110.set(_iq1184._ul953, _tb1260._xl96, _ol205._gn1038);
_hb1110.set(_iq1184._oc941, _tb1260._wl19, _ol205._wu905);
_hb1110.set(_iq1184._oc941, _tb1260._ww554, _ol205._wu905);
_hb1110.set(_iq1184._oc941, _tb1260._km851, _ol205._wu905);
_hb1110.set(_iq1184._oc941, _tb1260._xl96, _ol205._wu905);
_hb1110.set(_iq1184._ti199, _tb1260._wl19, _ol205._qi1097);
_hb1110.set(_iq1184._ti199, _tb1260._ww554, _ol205._wl246);
_hb1110.set(_iq1184._ti199, _tb1260._km851, _ol205._kl508);
_hb1110.set(_iq1184._ti199, _tb1260._xl96, _ol205._qm1254);
_hb1110.set(_iq1184._dn1204, _tb1260._wl19, _ol205._bo1215);
_hb1110.set(_iq1184._dn1204, _tb1260._ww554, _ol205._bo1215);
_hb1110.set(_iq1184._dn1204, _tb1260._km851, _ol205._bo1215);
_hb1110.set(_iq1184._dn1204, _tb1260._xl96, _ol205._bo1215);
_hb1110.set(_iq1184._dx1385, _tb1260._wl19, _ol205._mx1018);
_hb1110.set(_iq1184._dx1385, _tb1260._ww554, _ol205._mx1018);
_hb1110.set(_iq1184._dx1385, _tb1260._km851, _ol205._mx1018);
_hb1110.set(_iq1184._dx1385, _tb1260._xl96, _ol205._mx1018);
_hb1110.set(_iq1184._re1067, _tb1260._wl19, _ol205._gg757);
_hb1110.set(_iq1184._re1067, _tb1260._ww554, _ol205._gg757);
_hb1110.set(_iq1184._re1067, _tb1260._xl96, _ol205._gg757);
_hb1110.set(_iq1184._re1067, _tb1260._km851, _ol205._gg757);
};
return (_hb1110);
}
public static function getInstance():_sq637{
if (_eh273 == null){
_eh273 = new (_sq637);
};
return (_eh273);
}
}
}//package game
Section 137
//_sq637__cm647 (game._sq637__cm647)
package game {
import mx.core.*;
public class _sq637__cm647 extends ByteArrayAsset {
}
}//package game
Section 138
//_sq637__gp1123 (game._sq637__gp1123)
package game {
import mx.core.*;
public class _sq637__gp1123 extends BitmapAsset {
}
}//package game
Section 139
//_sq637__ij1376 (game._sq637__ij1376)
package game {
import mx.core.*;
public class _sq637__ij1376 extends BitmapAsset {
}
}//package game
Section 140
//_sq637__kd334 (game._sq637__kd334)
package game {
import mx.core.*;
public class _sq637__kd334 extends BitmapAsset {
}
}//package game
Section 141
//_sq637__kx293 (game._sq637__kx293)
package game {
import mx.core.*;
public class _sq637__kx293 extends BitmapAsset {
}
}//package game
Section 142
//_sq637__mi1124 (game._sq637__mi1124)
package game {
import mx.core.*;
public class _sq637__mi1124 extends BitmapAsset {
}
}//package game
Section 143
//_sq637__mu385 (game._sq637__mu385)
package game {
import mx.core.*;
public class _sq637__mu385 extends BitmapAsset {
}
}//package game
Section 144
//_sq637__mu492 (game._sq637__mu492)
package game {
import mx.core.*;
public class _sq637__mu492 extends ByteArrayAsset {
}
}//package game
Section 145
//_sq637__ng1145 (game._sq637__ng1145)
package game {
import mx.core.*;
public class _sq637__ng1145 extends BitmapAsset {
}
}//package game
Section 146
//_sq637__np209 (game._sq637__np209)
package game {
import mx.core.*;
public class _sq637__np209 extends BitmapAsset {
}
}//package game
Section 147
//_sq637__tf856 (game._sq637__tf856)
package game {
import mx.core.*;
public class _sq637__tf856 extends BitmapAsset {
}
}//package game
Section 148
//_sq637__up215 (game._sq637__up215)
package game {
import mx.core.*;
public class _sq637__up215 extends BitmapAsset {
}
}//package game
Section 149
//_sq637__wq583 (game._sq637__wq583)
package game {
import mx.core.*;
public class _sq637__wq583 extends BitmapAsset {
}
}//package game
Section 150
//_sq637__yx70 (game._sq637__yx70)
package game {
import mx.core.*;
public class _sq637__yx70 extends BitmapAsset {
}
}//package game
Section 151
//_tb1260 (game._tb1260)
package game {
import flash.utils.*;
import de.polygonal.ds.*;
import com.herocraft.*;
import flash.display.*;
public class _tb1260 extends Sprite {
protected var level:_wy1415;
protected var _tl639:_mk278;
protected var _ff1374:int;
protected var _so820:Array2;
protected var _hk819:_vq529;
public static const _xa711:uint = 2;
public static const _aw1430:uint = 4;
public static const _lo123:uint = 3;
public static const _wl19:uint = 1;
public static const _bt340:uint = 1;
public static const _uh876:uint = 5;
public static const _dm396:uint = 0;
public static const _xl96:uint = 3;
public static const _km851:uint = 2;
public static const _ww554:uint = 0;
public static const _sl582:uint = 6;
private static var _pw263:Timer;
public function _tb1260(_arg1:Array2, _arg2:_wy1415){
this._so820 = _arg1;
this.level = _arg2;
}
public function getState():_vq529{
return (_hk819);
}
public function _nh1436():void{
_hk819.update();
}
public function _xi702(_arg1:int, _arg2:Boolean=false):_mk278{
var _local4:Timer;
if (_tl639 != null){
removeChild(_tl639);
_tl639.dispose();
_tl639 = null;
};
var _local3:int = _xg366(_arg1);
if (_local3 > 0){
_tl639 = _sq637.getInstance()._rj1381(_local3);
addChild(_tl639);
_local4 = null;
if (_arg2){
_local4 = _xv538();
};
_tl639.play(_local4);
};
return (_tl639);
}
public function _mx1046():_wy1415{
return (level);
}
public function _xg366(_arg1:int):int{
var _local2:int = _so820.get(_arg1, _vg1404());
return (_local2);
}
public function setState(_arg1:_vq529):void{
if (level == null){
return;
};
if (_hk819 != null){
_hk819._mu641(_arg1);
};
var _local2:_vq529 = _hk819;
_hk819 = _arg1;
if (_hk819 != null){
_arg1.onEnter(_local2);
};
}
public function _vg1404():uint{
return (_ff1374);
}
public function _qg582():_mk278{
return (_tl639);
}
public function _cf954(_arg1:uint):void{
this._ff1374 = _arg1;
}
public function dispose():void{
if (level != null){
level = null;
setState(null);
if (_tl639 != null){
removeChild(_tl639);
_tl639.dispose();
_tl639 = null;
};
_so820 = null;
};
}
private static function _xv538():Timer{
if (_pw263){
_pw263 = new Timer(20);
_pw263.start();
};
return (_pw263);
}
}
}//package game
Section 152
//_vq529 (game._vq529)
package game {
public interface _vq529 {
function update():void;
function onEnter(_arg1:_vq529=null):void;
function _mu641(_arg1:_vq529=null):void;
}
}//package game
Section 153
//_wy1415 (game._wy1415)
package game {
import flash.display.*;
import flash.events.*;
import de.polygonal.ds.*;
import game.bonuses.*;
import game.gerasim.*;
import flash.utils.*;
import com.herocraft.*;
import caurina.transitions.*;
import flash.geom.*;
import game.mumu.*;
public class _wy1415 extends Sprite {
private var _nn1302:uint;
private var bonuses:Set;
private var _vt433:_ng332;
private var _im606:Sprite;
private var _id352:Array;
private var _kg783:_iv1303;
private var _wv1069:Timer;
private var gerasim:_iq1184;
private var _cc474:Set;
private var _gd244:_sb171;
private var _jh568:_hr1396;
public var _nc1091:uint;
private var _cd733:uint;
private var _lx1270:Sprite;
private var _vu236:Array;
private static const _tq1408:Class = _wy1415__tq1408;
public static const _dm1303:uint = 3;
private static const _dt1203:Class = _wy1415__dt1203;
public static const _jh432:uint = 2;
public static const _xl530:uint = 1;
private static const _ra941:Class = _wy1415__ra941;
public static const _yl759:String = "sCh";
public static const _al1347:uint = 0;
public static const _dq1059:String = "failed";
private static const _ur126:Class = _wy1415__ur126;
public static const _vx209:uint = 60;
private static const _ur645:Class = _wy1415__ur645;
private static const _rq958:Class = _wy1415__rq958;
public function _wy1415(_arg1:_hr1396){
_id352 = [_nt1089._av541, _nt1089.MEDIUM, _nt1089._lq816];
super();
this._jh568 = _arg1;
_jh568._bp635();
_gd244 = new _sb171();
_cc474 = new Set();
bonuses = new Set();
_vu236 = new Array();
_wv1069 = new Timer(_vx209);
_wv1069.addEventListener(TimerEvent.TIMER, _nh1436);
}
public function _qq719():void{
_kg783._qq719();
}
public function _is222():void{
if ((((gerasim == null)) || ((gerasim._bl1418() <= 0)))){
return;
};
_wv1069.stop();
_sq637.getInstance()._mf272(-1);
_sq637.getInstance()._os569(_nt1089._my237);
gerasim.setState(new _kh1335(gerasim));
dispatchEvent(new Event(Event.COMPLETE));
}
private function _dy766():Sprite{
var _tg392:_mk278;
var _nw589:Sprite;
var result:Sprite = new Sprite();
var _kd1160:uint;
var _ro1030:uint = _nn1302;
var _oq558:_sq637 = _sq637.getInstance();
_kd1160 = 0;
while (_kd1160 < _kp1329._mc605) {
_tg392 = _oq558._rj1381(_ol205._ko336);
_tg392.play();
result.addChild(_tg392);
_tg392.x = _kd1160;
_tg392.y = _ro1030;
_kd1160 = (_kd1160 + _tg392.width);
};
_ro1030 = (_ro1030 + _tg392.height);
while (_ro1030 < _kp1329._dq388) {
_kd1160 = 0;
while (_kd1160 < _kp1329._mc605) {
_tg392 = _oq558._rj1381(_ol205._ia908);
result.addChild(_tg392);
_tg392.play();
_tg392.x = _kd1160;
_tg392.y = _ro1030;
_kd1160 = (_kd1160 + _tg392.width);
};
_ro1030 = (_ro1030 + _tg392.height);
};
var _hn908:Matrix = new Matrix();
var _yq314:uint = (_kp1329._dq388 * 0.25);
_hn908.createGradientBox(_kp1329._mc605, _yq314, (Math.PI / 2), 0, 0);
var _kr1387:Sprite = new Sprite();
var _gu417:Graphics = _kr1387.graphics;
_gu417.beginGradientFill(GradientType.LINEAR, [14608607, 14608607], [1, 0], [0, 0xFF], _hn908, SpreadMethod.PAD);
_gu417.drawRect(0, 0, _kp1329._mc605, _yq314);
_gu417.endFill();
result.addChild(_kr1387);
_kr1387.y = _nn1302;
_nw589 = new Sprite();
_nw589.addChild(new _ur126());
_nw589.addChild(new _ra941());
_nw589.addChild(new _dt1203());
_nw589.addChild(new _tq1408());
_nw589.addChild(new _rq958());
_nw589.width = _kp1329._mc605;
addChild(_nw589);
_nw589.y = ((_kp1329._dq388 - _nw589.height) - 20);
_mk278._is605().addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
var _local2:uint;
while (_local2 < _nw589.numChildren) {
_nw589.getChildAt(_local2).visible = false;
_local2++;
};
_nw589.getChildAt((_cd733 / 2)).visible = true;
_cd733++;
if (_cd733 == (_nw589.numChildren * 2)){
_cd733 = 0;
};
});
result.addChild(_nw589);
return (result);
}
public function init():void{
var _local5:_ci271;
this._nn1302 = this.height;
_lx1270 = _dy766();
addChild(_lx1270);
_im606 = new Sprite();
addChild(_im606);
var _local1:DisplayObject = new _ur645();
_local1.y = (_kp1329._dq388 - _local1.height);
_local1.width = _kp1329._mc605;
addChild(_local1);
gerasim = new _iq1184(this);
gerasim.x = (_kp1329._mc605 / 2);
gerasim.y = (((_kp1329._dq388 - _nn1302) / 2) + _nn1302);
var _local2:_ci271 = new _ci271(this, new Point(-40, -50), new Point(0, _nn1302), _tb1260._xl96);
_vu236.push(_local2);
_im606.addChild(_local2);
_im606.addChild(gerasim);
_local2 = new _ci271(this, new Point(30, 40), new Point(_kp1329._mc605, _kp1329._dq388), _tb1260._km851);
_vu236.push(_local2);
_im606.addChild(_local2);
_local2 = new _ci271(this, new Point(50, 0), new Point(_kp1329._mc605, (_kp1329._dq388 / 2)), _tb1260._wl19);
_vu236.push(_local2);
_im606.addChild(_local2);
_local2 = new _ci271(this, new Point(-50, 0), new Point(0, (_kp1329._dq388 / 2)), _tb1260._ww554);
_vu236.push(_local2);
_im606.addChild(_local2);
var _local3:uint;
while (_local3 < _vu236.length) {
_local5 = _vu236[_local3];
_local5.align(gerasim);
_local3++;
};
gerasim.init();
_kg783 = new _iv1303(_jh568);
var _local4:DisplayObject = _kg783.getControl();
_local4.y = (_kp1329._dq388 * 0.25);
_local4.x = (_kp1329._mc605 / 2);
addChild(_local4);
_vt433 = new _ng332();
addChild(_vt433.getControl());
_wv1069.start();
}
public function _ab331():_hr1396{
return (_jh568);
}
public function _nh1436(_arg1:TimerEvent):void{
var _local4:_vy1134;
var _local5:_tb1260;
var _local6:uint;
var _local7:uint;
gerasim._nh1436();
var _local2:Iterator = _cc474.getIterator();
while (_local2.hasNext()) {
_local4 = _local2.next();
_local4._nh1436();
};
_local2 = bonuses.getIterator();
while (_local2.hasNext()) {
_local5 = _local2.next();
_local5._nh1436();
};
_jh568._nh1436(_oc509, _ch521, this);
var _local3:uint = _id352[0];
if ((((_jh568._yy1088() > 0)) && ((_jh568._eb177() == _hr1396._ut162)))){
_local6 = (_jh568._yy1088() / 3);
_local7 = _jh568._gh1007();
if (_local7 > _local6){
if (_local7 < (2 * _local6)){
_local3 = _id352[1];
} else {
_local3 = _id352[2];
};
};
};
if (_sq637.getInstance()._rc348() != -1){
_sq637.getInstance()._mf272(_local3);
};
}
public function noise():void{
_vt433.start();
}
public function _ic468():Iterator{
return (_cc474.getIterator());
}
public function dispose():void{
var _local1:uint;
var _local3:_tb1260;
var _local4:_ci271;
var _local5:DisplayObject;
var _local6:_mk278;
if (_wv1069 == null){
return;
};
removeChild(_vt433.getControl());
_vt433.dispose();
_vt433 = null;
if (_kg783 != null){
removeChild(_kg783.getControl());
_kg783.dispose();
_kg783 = null;
};
this._jh568 = null;
_wv1069.stop();
_wv1069.removeEventListener(TimerEvent.TIMER, _nh1436);
_wv1069 = null;
gerasim.dispose();
_im606.removeChild(gerasim);
gerasim = null;
_local1 = 0;
while (_local1 < _vu236.length) {
_local4 = (_vu236[_local1] as _ci271);
_im606.removeChild(_local4);
_local4.dispose();
_local1++;
};
_vu236.length = 0;
_vu236 = null;
var _local2:Iterator = _cc474.getIterator();
while (_local2.hasNext()) {
_local3 = _local2.next();
_qo1174(_local3);
};
_cc474.clear();
_cc474 = null;
_local2 = bonuses.getIterator();
while (_local2.hasNext()) {
_local3 = _local2.next();
_qo1174(_local3);
};
bonuses.clear();
bonuses = null;
while (_lx1270.numChildren > 0) {
_local5 = _lx1270.getChildAt(0);
if ((_local5 is _mk278)){
_local6 = (_local5 as _mk278);
_local6.dispose();
};
_lx1270.removeChild(_local5);
};
removeChild(_lx1270);
_lx1270 = null;
removeChild(_im606);
}
private function _oc509():void{
var _local1:uint = (Math.random() * _vu236.length);
if (_local1 >= _vu236.length){
_local1 = (_vu236.length - 1);
};
var _local2:_ci271 = _vu236[_local1];
var _local3:Boolean = _local2._uo1076();
if (((_local3) && ((_jh568._eb177() == _hr1396._pa845)))){
return;
};
var _local4:_vy1134 = _gd244._oc509(this, _local2);
_local1 = _im606.getChildIndex(_local2);
_im606.addChildAt(_local4, (_local1 + 1));
_cc474.set(_local4);
_local4._cf954(_local2._lk603());
if (_jh568._eb177() == _hr1396._pa845){
_local4.x = _local2.x;
_local4.y = _local2.y;
_local4.setState(new _oq175(_local4));
} else {
if (((((!(_local3)) && ((_local4.getType().id == _vy1134._bc1055)))) && ((Math.random() > 0.5)))){
_local4.x = _local2.x;
_local4.y = _local2.y;
_local4.setState(new _oq175(_local4));
} else {
_local4.x = _local2._sv1420().x;
_local4.y = _local2._sv1420().y;
_local4.alpha = 0;
_local4.setState(new _wy528(_local4));
};
};
}
private function _ch521():void{
var _local2:_ci271;
var _local3:uint;
var _local1:_tp159 = _gd244._ch521(this);
if (_local1 != null){
_local2 = _local1._oa1399();
_local3 = _im606.getChildIndex(_local2);
_im606.addChildAt(_local1, (_local3 + 1));
bonuses.set(_local1);
};
}
public function _qo1174(_arg1:_tb1260):void{
var _local2:Boolean;
if (((!((_cc474 == null))) && (_cc474.contains(_arg1)))){
_local2 = true;
_cc474.remove(_arg1);
};
if (((!((bonuses == null))) && (bonuses.contains(_arg1)))){
_local2 = true;
bonuses.remove(_arg1);
};
if (_local2){
_im606.removeChild(_arg1);
_arg1.dispose();
};
}
public function _md206():void{
dispatchEvent(new Event(_wy1415._dq1059));
}
public function _py53(_arg1:uint, _arg2:Boolean):_tp159{
var _local3:Iterator;
var _local4:Rectangle;
var _local5:_tp159;
if (!(bonuses.isEmpty())){
_local3 = bonuses.getIterator();
_local4 = _vu236[_arg1].getBounds(this);
while (_local3.hasNext()) {
_local5 = _local3.next();
if (((_local4.contains(_local5.x, _local5.y)) && ((_arg2 == _local5.getType()._sw584())))){
return (_local5);
};
};
};
return (null);
}
public function _kq1277():uint{
return (_cc474.size);
}
public function _jw1005():Sprite{
return (_lx1270);
}
public function _yd56():Array{
return (_vu236);
}
public function _pr956():Iterator{
return (bonuses.getIterator());
}
public function _tq820():_iq1184{
return (gerasim);
}
public function _sj121(_arg1:Event=null):void{
var angle:Number;
var _pb943:uint;
var _kd1160:Number;
var _ro1030:Number;
var time:Number;
var _jx152:Timer;
var _ju1450:Function;
var _wr400 = _arg1;
var obj:DisplayObject = this;
var _qh596:Number = 0;
var _jq1177:Number = 0.3;
var _og474:uint = 8;
var _ku32:int = obj.x;
var _su236:int = obj.y;
while (_qh596 < _jq1177) {
angle = ((Math.random() * 2) * Math.PI);
_pb943 = (Math.random() * _og474);
_kd1160 = (_ku32 + (Math.cos(angle) * _pb943));
_ro1030 = (_su236 + (Math.sin(angle) * _pb943));
time = (((Math.random() * 50) + 20) / 1000);
Tweener.addTween(obj, {x:_kd1160, y:_ro1030, time:time, delay:_qh596, transition:"linear"});
_qh596 = (_qh596 + time);
if (_qh596 >= _jq1177){
Tweener.addTween(obj, {x:_ku32, y:_su236, time:time, delay:_qh596, transition:"linear"});
};
};
if (Math.random() > 0.5){
_jx152 = new Timer((_jq1177 * 1000), 1);
_ju1450 = function (_arg1:Event):void{
_jx152.removeEventListener(TimerEvent.TIMER, _ju1450);
noise();
};
_jx152.addEventListener(TimerEvent.TIMER, _ju1450);
_jx152.start();
};
}
public function _fy49():uint{
return (_kg783._fy49());
}
}
}//package game
Section 154
//_wy1415__dt1203 (game._wy1415__dt1203)
package game {
import mx.core.*;
public class _wy1415__dt1203 extends BitmapAsset {
}
}//package game
Section 155
//_wy1415__ra941 (game._wy1415__ra941)
package game {
import mx.core.*;
public class _wy1415__ra941 extends BitmapAsset {
}
}//package game
Section 156
//_wy1415__rq958 (game._wy1415__rq958)
package game {
import mx.core.*;
public class _wy1415__rq958 extends BitmapAsset {
}
}//package game
Section 157
//_wy1415__tq1408 (game._wy1415__tq1408)
package game {
import mx.core.*;
public class _wy1415__tq1408 extends BitmapAsset {
}
}//package game
Section 158
//_wy1415__ur126 (game._wy1415__ur126)
package game {
import mx.core.*;
public class _wy1415__ur126 extends BitmapAsset {
}
}//package game
Section 159
//_wy1415__ur645 (game._wy1415__ur645)
package game {
import mx.core.*;
public class _wy1415__ur645 extends BitmapAsset {
}
}//package game
Section 160
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.errors.*;
import flash.utils.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 1;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Array, _arg5:Array):void{
var _local6:int;
var _local7:String;
_local6 = (_arg4.length - 1);
while (_local6 > -1) {
if (_arg1[_arg4[_local6].name] != undefined){
_arg4.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg3.length - 1);
while (_local6 > -1) {
if (_arg1[_arg3[_local6][4]] != undefined){
_arg3.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg5.length - 1);
while (_local6 > -1) {
if (_arg1[_arg5[_local6].name] != undefined){
_arg5.splice(_local6, 1);
};
_local6--;
};
for (_local7 in _arg1) {
delete _arg2[_local7];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local7:int;
var _local8:TweenLite;
var _local9:Object;
var _local10:String;
var _local3:Object = _arg1.vars;
var _local4:int = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
var _local5:Number = _arg1.startTime;
var _local6:Array = [];
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (((((!((_local8 == _arg1))) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){
_local6[_local6.length] = _local8;
};
_local7--;
};
if (_local6.length == 0){
return;
};
if (_local4 == AUTO){
if (_local3.isTV == true){
_local3 = _local3.exposedProps;
};
_local9 = {};
for (_local10 in _local3) {
if ((((((((((((((((((((((((((((((((((((((((((((_local10 == "ease")) || ((_local10 == "delay")))) || ((_local10 == "overwrite")))) || ((_local10 == "onComplete")))) || ((_local10 == "onCompleteParams")))) || ((_local10 == "runBackwards")))) || ((_local10 == "persist")))) || ((_local10 == "onUpdate")))) || ((_local10 == "onUpdateParams")))) || ((_local10 == "timeScale")))) || ((_local10 == "onStart")))) || ((_local10 == "onStartParams")))) || ((_local10 == "renderOnStart")))) || ((_local10 == "proxiedEase")))) || ((_local10 == "easeParams")))) || ((_local10 == "onCompleteAll")))) || ((_local10 == "onCompleteAllParams")))) || ((_local10 == "yoyo")))) || ((_local10 == "loop")))) || ((_local10 == "onCompleteListener")))) || ((_local10 == "onStartListener")))) || ((_local10 == "onUpdateListener")))){
} else {
_local9[_local10] = 1;
if (_local10 == "shortRotate"){
_local9.rotation = 1;
} else {
if (_local10 == "removeTint"){
_local9.tint = 1;
} else {
if (_local10 == "autoAlpha"){
_local9.alpha = 1;
_local9.visible = 1;
};
};
};
};
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].killVars(_local9);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 9.29){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 161
//TweenFilterLite (gs.TweenFilterLite)
package gs {
import flash.filters.*;
import flash.utils.*;
public class TweenFilterLite extends TweenLite {
protected var _matrix:Array;
protected var _hf:Boolean;// = false
protected var _roundProps:Boolean;
protected var _cmf:ColorMatrixFilter;
protected var _filters:Array;
protected var _endMatrix:Array;
protected var _timeScale:Number;
protected var _clrsa:Array;
public static var removeTween:Function = TweenLite.removeTween;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var version:Number = 9.29;
private static var _lumG:Number = 0.71516;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
protected static var _globalTimeScale:Number = 1;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_filters = [];
super(_arg1, _arg2, _arg3);
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenFilterLite)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (TweenLite.version < 9.29){
trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
};
}
override public function killVars(_arg1:Object):void{
if (TweenLite.overwriteManager.enabled){
TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, ((_filters) || ([])));
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:int;
var _local4:Object;
var _local5:Object;
var _local6:Object;
var _local7:int;
var _local8:String;
if (((!(_arg1)) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, masterList[this.target]);
};
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps ");
_roundProps = Boolean((this.vars.roundProps is Array));
if (_isDisplayObject){
if (this.vars.blurFilter != null){
_local4 = this.vars.blurFilter;
addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2))));
};
if (this.vars.glowFilter != null){
_local4 = this.vars.glowFilter;
addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != null){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!(isNaN(_local4.colorize))){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!(isNaN(_local4.color))){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[this.tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], (_endMatrix[_local3] - _matrix[_local3]), "colorMatrixFilter"];
};
_local3++;
};
};
if (this.vars.dropShadowFilter != null){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != null){
_local4 = this.vars.bevelFilter;
addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2))));
};
if (this.vars.runBackwards == true){
_local3 = (_clrsa.length - 1);
while (_local3 > -1) {
_local6 = _clrsa[_local3];
_local6.sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3--;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
if (_roundProps){
_local3 = (this.vars.roundProps.length - 1);
while (_local3 > -1) {
_local8 = this.vars.roundProps[_local3];
_local7 = (this.tweens.length - 1);
while (_local7 > -1) {
if ((((this.tweens[_local7][1] == _local8)) && ((this.tweens[_local7][0] == this.target)))){
this.tweens[_local7][5] = true;
break;
};
_local7--;
};
_local3--;
};
};
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function get timeScale():Number{
return (_timeScale);
}
override public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:Number;
var _local7:int;
var _local8:Array;
var _local9:int;
var _local2:Number = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
if (!(_roundProps)){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
} else {
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
if (_local4[5]){
_local6 = (_local4[2] + (_local3 * _local4[3]));
_local7 = ((_local6)<0) ? -1 : 1;
_local4[0][_local4[1]] = ((((_local6 % 1) * _local7))>0.5) ? (int(_local6) + _local7) : int(_local6);
} else {
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
};
_local5--;
};
};
if (_hf){
_local5 = (_clrsa.length - 1);
while (_local5 > -1) {
_local4 = _clrsa[_local5];
_local4.f[_local4.p] = ((((_local4.sr + (_local3 * _local4.cr)) << 16) | ((_local4.sg + (_local3 * _local4.cg)) << 8)) | (_local4.sb + (_local3 * _local4.cb)));
_local5--;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local8 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local9 = (_local8.length - 1);
while (_local9 > -1) {
if ((_local8[_local9] is _filters[_local5].type)){
_local8.splice(_local9, 1, _filters[_local5].filter);
break;
};
_local9--;
};
_local5++;
};
this.target.filters = _local8;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
var _local6:Object = {type:_arg3, name:_arg1};
var _local7:Array = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7[_local7.length] = _local6.filter;
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)};
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[this.tweens.length] = [_local6.filter, _local9, _local6.filter[_local9], _local10, _arg1];
};
};
};
_local8++;
};
_filters[_filters.length] = _local6;
_hf = true;
return (_local6);
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
var _local2:Dictionary = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenFilterLite)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 162
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.geom.*;
public class TweenLite {
public var started:Boolean;
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
public var gc:Boolean;
protected var _isDisplayObject:Boolean;
public var tweens:Array;
public var vars:Object;
public var ease:Function;
protected var _specialVars:Object;
public var initTime:Number;
public var combinedTimeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 9.29;
public static var masterList:Dictionary = new Dictionary(false);
public static var currentTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (!(_classInitted)){
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
_isDisplayObject = Boolean((_arg1 is DisplayObject));
if (!((this.vars.ease is Function))){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
if (!(isNaN(Number(this.vars.autoAlpha)))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = Boolean((this.vars.alpha > 0));
};
_specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
this.tweens = [];
_subTweens = [];
_hst = (this.initted = false);
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((masterList[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
masterList[_arg1] = [];
};
masterList[_arg1].push(this);
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((_specialVars.visible == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = _specialVars.visible;
};
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (masterList[this.target] == undefined){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!(_local3)){
masterList[this.target].push(this);
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function activate():void{
this.started = (this.active = true);
if (!(this.initted)){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function clear():void{
this.tweens = [];
_subTweens = [];
this.vars = {};
_hst = (_hasUpdate = false);
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local6:String;
_subTweens[_subTweens.length] = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
for (_local6 in _arg4) {
if (typeof(_arg4[_local6]) == "number"){
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], (_arg4[_local6] - _arg3[_local6]), _arg1];
} else {
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], Number(_arg4[_local6]), _arg1];
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Array;
var _local6:ColorTransform;
var _local7:ColorTransform;
var _local8:Object;
if (((!(_arg1)) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local5.length) {
if (((!((this.target[_local4] == _local5[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = [this.target, _local4.toString(), this.target[_local4], (_local5[_local4] - this.target[_local4]), _local4.toString()];
};
_local4++;
};
} else {
if (((((!((typeof(_specialVars.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local6 = this.target.transform.colorTransform;
_local7 = new ColorTransform();
if (_specialVars.alpha != undefined){
_local7.alphaMultiplier = _specialVars.alpha;
delete _specialVars.alpha;
} else {
_local7.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_specialVars.tint == null))) && (!((_specialVars.tint == ""))))) || ((_specialVars.tint == 0)))))){
_local7.color = _specialVars.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local6, endColor:_local7});
};
if (((!((_specialVars.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_specialVars.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
if (((!((_specialVars.visible == null))) && (_isDisplayObject))){
addSubTween("visible", visibleProxy, {}, {}, {tween:this});
};
for (_local3 in _specialVars) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_specialVars[_local3]) == "number"){
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], (_specialVars[_local3] - this.target[_local3]), _local3];
} else {
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], Number(_specialVars[_local3]), _local3];
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local8 = this.tweens[_local4];
_local8[2] = (_local8[2] + _local8[3]);
_local8[3] = (_local8[3] * -1);
_local4--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!(_arg1)){
if (!(this.initted)){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function frameProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function visibleProxy(_arg1:Object, _arg2:Number):void{
var _local3:TweenLite = _arg1.info.tween;
if (_local3.duration == _arg2){
if (((!((_local3.vars.runBackwards == true))) && ((_local3.ease == _local3.vars.ease)))){
_local3.target.visible = _local3.vars.visible;
};
} else {
if (_local3.target.visible != true){
_local3.target.visible = true;
};
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && (!((masterList[_arg1] == undefined))))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6 == null){
} else {
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
};
_local5--;
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function tintProxy(_arg1:Object, _arg2:Number=0):void{
var _local3:Number = _arg1.target.progress;
var _local4:Number = (1 - _local3);
var _local5:Object = _arg1.info.color;
var _local6:Object = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local5.redMultiplier * _local4) + (_local6.redMultiplier * _local3)), ((_local5.greenMultiplier * _local4) + (_local6.greenMultiplier * _local3)), ((_local5.blueMultiplier * _local4) + (_local6.blueMultiplier * _local3)), ((_local5.alphaMultiplier * _local4) + (_local6.alphaMultiplier * _local3)), ((_local5.redOffset * _local4) + (_local6.redOffset * _local3)), ((_local5.greenOffset * _local4) + (_local6.greenOffset * _local3)), ((_local5.blueOffset * _local4) + (_local6.blueOffset * _local3)), ((_local5.alphaOffset * _local4) + (_local6.alphaOffset * _local3)));
}
public static function volumeProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.soundTransform = _arg1.target;
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local4:Array;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 163
//_ao276 (menu._ao276)
package menu {
import game.*;
import flash.display.*;
public class _ao276 extends _tp1070 {
public function _ao276(_arg1:_ei813){
super(_arg1, _sq637.getInstance()._rj70(), _kx712._lf845, _lf450._qw1172);
removeChild(_ig210);
_ig210 = _kx712._yn1117();
addChild(_ig210);
_ig210.x = (_ig210.x + (back.x + (2 * _vi285)));
_ig210.y = (_ig210.y + back.y);
_sq400.x = back.x;
_sq400.y = back.y;
}
override protected function _ob288():Boolean{
return (false);
}
override protected function _dy766():DisplayObject{
var _local1:DisplayObject = super._dy766();
var _local2:Bitmap = new _eg302();
var _local3:uint = ((_kp1329._mc605 - _local2.width) / 2);
_local2.y = _local1.y;
_local2.x = _local3;
return (_local2);
}
override protected function _rm592(_arg1:DisplayObject):void{
_arg1.visible = false;
back.visible = true;
}
override protected function _ov1341(_arg1:DisplayObject):void{
_arg1.visible = true;
back.visible = false;
}
override protected function _lf915():uint{
var _local1:int = -1;
var _local2:uint;
while (_local2 < 3) {
_local1 = Math.max(_local1, _sq637.getInstance()._ec718(_local2));
_local2++;
};
return (Math.min(_sq637.getInstance()._rj70().length, (_local1 + 2)));
}
}
}//package menu
Section 164
//_ee1338 (menu._ee1338)
package menu {
import game.*;
import flash.display.*;
import flash.filters.*;
public class _ee1338 extends _tp1070 {
private var _fq970:Array;
private static var _ij814:Class = _ee1338__ij814;
private static var _bs612:Class = _ee1338__bs612;
private static var _yi769:Class = _ee1338__yi769;
private static var _se60:Class = _ee1338__se60;
private static var _nk528:Class = _ee1338__nk528;
public function _ee1338(_arg1:_ei813){
var _local2:uint;
var _local4:Bitmap;
super(_arg1, [new _nk528(), new _yi769(), new _se60(), new _ij814(), new _bs612()], [_lf450._ea1248, _lf450._qk148, _lf450._br267, _lf450._vv1217, _lf450._rd609], _lf450._vq917);
var _local3:uint;
_local2 = 0;
while (_local2 < _iv254.length) {
_local3 = Math.max(_local3, (_iv254[_local2] as Bitmap).height);
_local2++;
};
_sq400.x = (back.x + (back.width / 2));
_sq400.y = ((back.y + _local3) + _vi285);
_ig210.x = (back.x + _vi285);
_ig210.y = ((_sq400.y + _vi285) + _sq637.getInstance()._uv988()._xg37());
_local2 = 0;
while (_local2 < _iv254.length) {
_local4 = _iv254[_local2];
_local4.x = (-(_local4.width) / 2);
_local4.y = -(_local4.height);
_local2++;
};
_fq970 = [new ColorMatrixFilter([0, 0, 0, 0, 87, 0, 0, 0, 0, 51, 0, 0, 0, 0, 20, 0, 0, 0, 1, 0]), new BlurFilter(2, 2)];
}
override protected function _rm592(_arg1:DisplayObject):void{
_arg1.filters = _fq970;
}
override protected function _ov1341(_arg1:DisplayObject):void{
_arg1.filters = [];
}
override protected function _lf915():uint{
return (_sq637.getInstance()._ph393());
}
}
}//package menu
Section 165
//_ee1338__bs612 (menu._ee1338__bs612)
package menu {
import mx.core.*;
public class _ee1338__bs612 extends BitmapAsset {
}
}//package menu
Section 166
//_ee1338__ij814 (menu._ee1338__ij814)
package menu {
import mx.core.*;
public class _ee1338__ij814 extends BitmapAsset {
}
}//package menu
Section 167
//_ee1338__nk528 (menu._ee1338__nk528)
package menu {
import mx.core.*;
public class _ee1338__nk528 extends BitmapAsset {
}
}//package menu
Section 168
//_ee1338__se60 (menu._ee1338__se60)
package menu {
import mx.core.*;
public class _ee1338__se60 extends BitmapAsset {
}
}//package menu
Section 169
//_ee1338__yi769 (menu._ee1338__yi769)
package menu {
import mx.core.*;
public class _ee1338__yi769 extends BitmapAsset {
}
}//package menu
Section 170
//_fy615 (menu._fy615)
package menu {
import game.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
import com.herocraft.*;
public class _fy615 extends Sprite implements _ti1198 {
protected var _dj1026:_ei813;
protected static const _eg302:Class = _fy615__eg302;
public static const _vi285:uint = 10;
public function _fy615(_arg1:_ei813){
this._dj1026 = _arg1;
}
public function onEnter():void{
}
protected function _dy766():DisplayObject{
var _local1:Bitmap = new _eg302();
_local1.rotation = 90;
_local1.x = _local1.width;
var _local2:Sprite = new Sprite();
_local2.addChild(_local1);
_local2.x = 280;
_local2.y = (_vi285 * 4);
_local2.scaleX = 0.75;
_local2.scaleY = 0.8;
var _local3:DropShadowFilter = new DropShadowFilter(0);
_local2.filters = new Array(_local3);
return (_local2);
}
protected function align(_arg1:Array, _arg2:DisplayObject):void{
var _local4:uint;
var _local5:DisplayObject;
var _local3:uint;
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = (_arg1[_local4] as DisplayObject);
_local3 = (_local3 + _local5.height);
_local4++;
};
var _local6:int = (_arg2.y + ((_arg2.height - _local3) / 2));
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = (_arg1[_local4] as DisplayObject);
_local5.x = (_arg2.x + (_arg2.width / 2));
_local5.y = _local6;
if ((_local5 is _xy783)){
_local6 = (_local6 + _sq637.getInstance()._uv988()._xg37());
} else {
_local6 = (_local6 + _local5.height);
};
_local4++;
};
}
public function getControl():DisplayObject{
return (this);
}
protected function _cw705(_arg1:_ei813):_xy783{
var _cx448 = _arg1;
var _ho749:_xy783 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._lg1245), _pg1228._lk422);
_ho749.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
_cx448._rw975(_xj26._nx502);
});
return (_ho749);
}
protected function _ad322():DisplayObject{
var _local1:DisplayObject = _dy766();
var _local2:Bitmap = new _eg302();
var _local3:uint = ((_kp1329._mc605 - _local2.width) / 2);
_local2.y = _local1.y;
_local2.x = _local3;
return (_local2);
}
public function _pf608():Rectangle{
return (getChildAt(0).getBounds(this));
}
public function _mu641():void{
}
}
}//package menu
Section 171
//_fy615__eg302 (menu._fy615__eg302)
package menu {
import mx.core.*;
public class _fy615__eg302 extends BitmapAsset {
}
}//package menu
Section 172
//_im973 (menu._im973)
package menu {
import flash.display.*;
import game.*;
import flash.events.*;
import flash.geom.*;
import com.rojored.command.*;
import commands.*;
public class _im973 implements _ti1198 {
private var _cx448:_ei813;
private var _qv1299:Sprite;
private var _mf380:DisplayObjectContainer;
private var _dr908:_sg564;
private var complete:Boolean;
private var _so1022:_wy1415;
private static const _ja340:Class = _im973__ja340;
private static const _vi285:uint = 20;
public function _im973(_arg1:_ei813, _arg2:_wy1415, _arg3:Boolean){
var _nw512:uint;
var d:DisplayObject;
var _cx448 = _arg1;
var _so1022 = _arg2;
var complete = _arg3;
super();
this._so1022 = _so1022;
this.complete = complete;
this._cx448 = _cx448;
_qv1299 = new Sprite();
_qv1299.alpha = 0;
_qv1299.addChild(new _ja340());
var _jg323:_hr1396 = _so1022._ab331();
_mf380 = _jg323._if497(!(complete), _so1022, (_qv1299.width * 0.85));
_mf380.y = 30;
_mf380.x = 10;
var _qk1069:Array = new Array();
_nw512 = 0;
while (_nw512 < _mf380.numChildren) {
d = _mf380.getChildAt(_nw512);
_qk1069.push(d);
d.alpha = 0;
_nw512 = (_nw512 + 1);
};
_qv1299.addChild(_mf380);
_qv1299.y = _vi285;
_qv1299.x = Math.round(((_kp1329._mc605 - _qv1299.width) / 2));
_dr908 = new _sg564();
_dr908._ql124(new _dc504(1000));
var _xs1378:Function = function (_arg1:DisplayObject):Boolean{
_arg1.alpha = (_arg1.alpha + 0.05);
if (_arg1.alpha >= 1){
return (true);
};
return (false);
};
_dr908._ql124(new _xn512([_qv1299], _xs1378));
_dr908._ql124(new _xn512(_qk1069, _xs1378));
_dr908._ql124(new _dc504(2000));
_dr908._ql124(new _uu282(function ():void{
if (_qv1299.stage != null){
_bw1108();
};
}));
}
public function onEnter():void{
_qv1299.stage.addEventListener(MouseEvent.MOUSE_DOWN, _ma1105);
_qv1299.stage.addEventListener(KeyboardEvent.KEY_DOWN, _ma1105);
_dr908.execute();
}
public function getControl():DisplayObject{
return (_qv1299);
}
public function _pf608():Rectangle{
return (null);
}
public function _mu641():void{
_qv1299.stage.removeEventListener(KeyboardEvent.KEY_DOWN, _ma1105);
_qv1299.stage.removeEventListener(MouseEvent.MOUSE_DOWN, _ma1105);
}
private function _ma1105(_arg1:Event):void{
var _local4:DisplayObject;
if (((!((_qv1299 == null))) && ((_qv1299.alpha < 0.8)))){
return;
};
var _local2:Boolean = true;
var _local3:uint;
while (_local3 < _mf380.numChildren) {
_local4 = _mf380.getChildAt(_local3);
if (_local4.alpha < 1){
_local4.alpha = 1;
_local2 = false;
};
_local3++;
};
if (_local2){
_bw1108();
};
}
private function _bw1108():void{
var _local1:int;
var _local2:_kx712;
if (complete){
_local1 = _hr1396._lh304(_so1022._ab331());
if (_local1 >= 0){
_local2 = (_cx448._sg78(_xj26._jd191) as _kx712);
_local2._is163((_local1 + 1));
_cx448._rw975(_xj26._jd191);
};
} else {
_cx448._rw975(_xj26._nx502);
};
}
public function dispose():void{
_so1022 = null;
_cx448 = null;
while (_mf380.numChildren != 0) {
_mf380.removeChildAt(0);
};
_mf380 = null;
while (_qv1299.numChildren != 0) {
_qv1299.removeChildAt(0);
};
_qv1299 = null;
_dr908.dispose();
}
}
}//package menu
Section 173
//_im973__ja340 (menu._im973__ja340)
package menu {
import mx.core.*;
public class _im973__ja340 extends BitmapAsset {
}
}//package menu
Section 174
//_kx712 (menu._kx712)
package menu {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.geom.*;
import com.rojored.command.*;
import flash.filters.*;
import com.herocraft.*;
import commands.*;
public class _kx712 implements _ti1198 {
private var _cs362:Sprite;
private var _qv1299:Sprite;
private var _pb1397:uint;
private var _up474:Sprite;
private var _lb371:Sprite;
private var _vt1336:_sg564;
private var _cx448:_ei813;
private var _vn103:_xy783;
public static const _lf845:Array = [_lf450._tm58, _lf450._ku143, _lf450._xr191, _lf450._xy1075, _lf450._pm1125, _lf450._tr1272, _lf450._pc1444, _lf450._fc1423, _lf450._ww699, _lf450._mo929];
private static const _nx1085:ColorMatrixFilter = new ColorMatrixFilter([1, 0, 0, 0, 136, 0, 1, 0, 0, 91, 0, 0, 1, 0, 43, 0, 0, 0, 1, 0]);
public function _kx712(_arg1:_ei813){
this._cx448 = _arg1;
_qv1299 = new Sprite();
_qv1299.graphics.beginFill(6069625);
_qv1299.graphics.drawRect(0, 0, _kp1329._mc605, _kp1329._dq388);
_qv1299.graphics.endFill();
_cs362 = new Sprite();
_cs362.y = 10;
var _local2:DropShadowFilter = new DropShadowFilter(0);
_local2.blurX = 7;
_local2.blurY = 7;
_local2.alpha = 0.45;
_cs362.filters = [_local2];
_qv1299.addChild(_cs362);
_lb371 = _yn1117();
_qv1299.addChild(_lb371);
_vn103 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._hd344), _pg1228._lk422);
_vn103.y = ((_kp1329._dq388 - _vn103.height) - _fy615._vi285);
_vn103.x = (_vn103.x + _fy615._vi285);
_vn103.addEventListener(_xy783._ir1372, buttonPressed);
_qv1299.addChild(_vn103);
}
public function _pf608():Rectangle{
return (null);
}
public function _is163(_arg1:uint):void{
var _local4:uint;
var _local6:DisplayObject;
this._pb1397 = _arg1;
if (_vt1336 != null){
_vt1336.dispose();
_vt1336 = null;
};
this._vt1336 = new _sg564();
while (_cs362.numChildren > 0) {
_cs362.removeChildAt(0);
};
var _local2:Bitmap = _sq637.getInstance()._rj70()[_arg1];
_cs362.alpha = 0;
_cs362.x = ((_kp1329._mc605 - _local2.width) / 2);
_cs362.addChild(_local2);
_vt1336._ql124(new _mt678(_cs362));
_lb371.x = (_cs362.x + 10);
while (_lb371.numChildren > 0) {
_lb371.removeChildAt(0);
};
_sq637.getInstance()._uv988()._di719(_lb371, _lf845[_arg1], 0, 0, null, (_local2.width - (2 * _fy615._vi285)));
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _lb371.numChildren) {
_local6 = _lb371.getChildAt(_local4);
_local6.alpha = 0;
_local3.push(_local6);
_local4++;
};
_vt1336._ql124(new _mb558(_local3, _ss143(true), 30, 50));
if (_up474 != null){
_qv1299.removeChild(_up474);
};
var _local5:_hr1396 = _hr1396._cd351(_arg1);
if (_local5 != null){
_up474 = _local5._tv368((_kp1329._mc605 - (2 * _fy615._vi285)));
_up474.x = _fy615._vi285;
_qv1299.addChild(_up474);
_local3 = new Array();
_local4 = 0;
while (_local4 < _up474.numChildren) {
_up474.getChildAt(_local4).alpha = 0;
_local3.push(_up474.getChildAt(_local4));
_local4++;
};
_vt1336._ql124(new _xn512(_local3, _ss143(false), 30, 50));
_up474.y = (_local2.height + 40);
_vn103.alpha = 0;
_vt1336._ql124(new _mt678(_vn103));
};
}
private function buttonPressed(_arg1:Event=null):void{
var _local3:_nr392;
if (_vn103.alpha < 0.2){
return;
};
var _local2:_hr1396 = _hr1396._cd351(_pb1397);
if (_local2 != null){
_local3 = (_cx448._sg78(_xj26._ym1343) as _nr392);
_local3._gd776(_pb1397);
_cx448._rw975(_xj26._ym1343);
} else {
_cx448._rw975(_xj26._nx502);
};
}
public function _mu641():void{
_qv1299.stage.removeEventListener(MouseEvent.MOUSE_DOWN, _ma1105);
_qv1299.stage.removeEventListener(KeyboardEvent.KEY_DOWN, _ma1105);
_vt1336.dispose();
_vt1336 = null;
}
private function _ma1105(_arg1:Event=null):void{
var _local2:uint;
if (_cs362.alpha < 0.8){
return;
};
if (_vn103.alpha == 1){
buttonPressed();
return;
};
_local2 = 0;
while (_local2 < _up474.numChildren) {
_up474.getChildAt(_local2).alpha = 1;
_local2++;
};
_local2 = 0;
while (_local2 < _lb371.numChildren) {
_lb371.getChildAt(_local2).alpha = 1;
_local2++;
};
_vn103.alpha = 1;
}
public function getControl():DisplayObject{
return (_qv1299);
}
public function onEnter():void{
var _local1:_hr1396 = _hr1396._cd351(_pb1397);
_sq637.getInstance()._mf272(((_local1 == null)) ? _nt1089._en59 : _nt1089._ih635);
_qv1299.stage.addEventListener(MouseEvent.MOUSE_DOWN, _ma1105);
_qv1299.stage.addEventListener(KeyboardEvent.KEY_DOWN, _ma1105);
_vt1336.execute();
}
public static function _yn1117():Sprite{
var _local1:Sprite = new Sprite();
_local1.filters = [_nx1085];
_local1.y = 40;
return (_local1);
}
private static function _ss143(_arg1:Boolean):Function{
var onPaper = _arg1;
return (function (_arg1:DisplayObject):Boolean{
_arg1.alpha = (_arg1.alpha + 0.1);
if (_arg1.alpha >= 1){
return (true);
};
return (false);
});
}
}
}//package menu
import flash.display.*;
import flash.events.*;
import com.rojored.command.*;
import flash.utils.*;
class _mt678 extends _or1044 {
private var d:DisplayObject;
private var timer:Timer;
private var _bt1308:Number;
private function _mt678(_arg1:DisplayObject, _arg2:Number=0.05){
this.d = _arg1;
timer = new Timer(30);
timer.addEventListener(TimerEvent.TIMER, update);
this._bt1308 = _arg2;
}
private function update(_arg1:Event=null):void{
if (d.alpha < 1){
d.alpha = (d.alpha + _bt1308);
} else {
timer.stop();
_ph983();
};
}
override public function execute():void{
timer.start();
}
override public function dispose():void{
timer.removeEventListener(TimerEvent.TIMER, update);
timer = null;
d = null;
}
}
Section 175
//_lj1296 (menu._lj1296)
package menu {
import flash.events.*;
import game.*;
import com.herocraft.*;
import flash.net.*;
import flash.display.*;
import flash.geom.*;
public class _lj1296 extends _fy615 {
private var _rh710:_xy783;
private var _ss413:_mk278;
public function _lj1296(_arg1:_ei813){
var _un924:Sprite;
var _dv1371 = _arg1;
super(_dv1371);
var back:DisplayObject = _dy766();
addChild(back);
var _dt77:Array = new Array();
var _gs324:Sprite = new _xy783(_lf450._ea283);
_gs324.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
var _local2:_nr392 = (_dj1026._sg78(_xj26._ym1343) as _nr392);
_local2._xp1106(_hr1396._yt1156);
_dj1026._rw975(_xj26._jq1316);
});
_dt77.push(_gs324);
_rh710 = new _xy783(_lf450._gk1168);
_rh710.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.herocraft.com/games/mumu/?ch=mumu_flash");
navigateToURL(_local2);
});
_dt77.push(_rh710);
var _yf1125:_xy783 = new _xy783(_lf450._fl1244);
_yf1125.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
_dv1371._rw975(_xj26._tp617);
});
_dt77.push(_yf1125);
var _mk42:_xy783 = new _xy783(_lf450._bu615);
_mk42.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
_dv1371._rw975(_xj26._sl823);
});
_dt77.push(_mk42);
var _ta204:Sprite = new _xy783(_lf450._kc167);
_ta204.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
_dv1371._rw975(_xj26._qf1123);
});
_dt77.push(_ta204);
var _if810:Sprite = new _xy783(_lf450._is363);
_if810.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
_dv1371._rw975(_xj26._og1337);
});
_dt77.push(_if810);
if (_dv1371._sg78(_xj26._um1141) != null){
_un924 = new _xy783(_lf450._gw1424);
_un924.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
_dv1371._rw975(_xj26._um1141);
});
_dt77.push(_un924);
};
var _nw512:uint;
while (_nw512 < _dt77.length) {
addChild(_dt77[_nw512]);
_nw512 = (_nw512 + 1);
};
align(_dt77, back);
_ss413 = _sq637.getInstance()._rj1381(_ol205._ho785);
_ss413.play();
addChild(_ss413);
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, _ll1352);
_ll1352();
}
override public function onEnter():void{
_sq637.getInstance()._mf272(_nt1089._gt74);
}
private function _ll1352(_arg1:Event=null):void{
var _local2:Rectangle = _rh710.getBounds(this);
_ss413.x = _local2.right;
_ss413.y = (_local2.top - 7);
}
}
}//package menu
Section 176
//_nm1416 (menu._nm1416)
package menu {
import game.*;
import com.herocraft.*;
import flash.events.*;
import flash.display.*;
import org.libspark.ui.*;
public class _nm1416 extends _fy615 {
private var _sm1270:DisplayObject;
private var _es733:Sprite;
private var _am609:_ys1378;
private var _pm704:Sprite;
public function _nm1416(_arg1:_ei813){
var _local6:int;
var _local7:DisplayObject;
super(_arg1);
_sm1270 = _ad322();
_am609 = new _ys1378(_sm1270);
addChild(_am609);
var _local2:Sprite = _am609._ij1393();
_es733 = new Sprite();
_local2.addChild(_es733);
_es733.x = (7 * _vi285);
_es733.y = (2 * _sq637.getInstance()._uv988()._xg37());
_pm704 = new Sprite();
_local2.addChild(_pm704);
_pm704.x = (_es733.x - _vi285);
_pm704.y = _es733.y;
var _local3:Array = [-1, _ol205._bh837, -1, _ol205._ib360, -1, _ol205._uk591, -1, _ol205._am1010, -1, _ol205._db1330, -1, _ol205._tg1190, -1, _ol205._uh459, -1, _ol205._ex258, -1, _ol205._jt866, -1, _ol205._mo642];
var _local4:uint;
while (_local4 < _local3.length) {
_local6 = _local3[_local4];
if (_local6 != -1){
_local7 = _sq637.getInstance()._rj1381(_local6);
(_local7 as _mk278).play();
} else {
_local7 = new Sprite();
};
_pm704.addChild(_local7);
_local7.x = -(Math.round((_local7.width / 2)));
_local4++;
};
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, _ol298);
var _local5:_xy783 = _cw705(_dj1026);
_local5.x = (_sm1270.x + _vi285);
_local5.y = ((_sm1270.y + _sm1270.height) - _local5.height);
addChild(_local5);
}
private function _ol298(_arg1:Event=null):void{
var _di241:uint;
var _wr400 = _arg1;
var _ta368:uint = (((_sm1270.x + _sm1270.width) - _es733.x) - (6 * _vi285));
while (_es733.numChildren != 0) {
_es733.removeChildAt(0);
};
_di241 = 0;
var _ju1450:Function = function (_arg1:TextEvent):void{
var _local2:DisplayObject;
if (_di241 < _pm704.numChildren){
_local2 = _pm704.getChildAt(_di241);
_local2.y = _arg1._mn457.y;
_di241++;
};
};
var _nq446:_pg1228 = _sq637.getInstance()._uv988();
_nq446.addEventListener(TextEvent._rx1277, _ju1450);
_nq446._di719(_es733, _lf450._eq442, 0, 0, null, _ta368);
_nq446.removeEventListener(TextEvent._rx1277, _ju1450);
_am609.refresh();
}
override public function onEnter():void{
SWFWheel.initialize(stage);
_ol298();
}
}
}//package menu
Section 177
//_nr392 (menu._nr392)
package menu {
import game.*;
import flash.events.*;
import flash.geom.*;
import com.herocraft.*;
import flash.display.*;
public class _nr392 extends _fy615 {
private var _wd1068:_gj681;
private var _jt898:Sprite;
private var _ku506:_wy1415;
private var _fo937:_im973;
private var _cb1352:_uq1382;
private var _jm30:uint;
public static const _cj331:String = "gameOver";
private static const Back:Class = _nr392_Back;
public function _nr392(_arg1:_ei813){
super(_arg1);
_wd1068 = new _gj681(0);
_jt898 = new Sprite();
addChild(_jt898);
var _local2:_xy783 = _cw705(_arg1);
addChild(_local2);
_local2.x = _vi285;
_local2.y = ((_kp1329._dq388 - _local2.height) - _vi285);
}
private function _dl230(_arg1:Event):void{
var _local3:_hr1396;
var _local4:uint;
var _local5:uint;
if (_fo937 != null){
return;
};
var _local2:Boolean = (_arg1.type == Event.COMPLETE);
if (!(_local2)){
dispatchEvent(new Event(_cj331));
_wd1068.setValue(0);
} else {
_local3 = _ku506._ab331();
_wd1068._gm948(_local3._lj664());
_local4 = _hr1396._ec1277();
_local5 = _hr1396._lh304(_local3);
_sq637.getInstance()._go1062(_local5, _local4);
};
_fo937 = new _im973(_dj1026, (_arg1.target as _wy1415), _local2);
addChild(_fo937.getControl());
_fo937.onEnter();
}
public function _gd776(_arg1:uint):void{
if (_ku506 != null){
_jt898.removeChild(_ku506);
};
if (_jm30 == _hr1396._yt1156){
_ku506 = new _wy1415(_hr1396._cd351(_arg1));
} else {
if (_jm30 == _hr1396._mc1238){
_ku506 = new _wy1415(_hr1396._qo1382());
};
};
_ku506.addEventListener(_wy1415._dq1059, _dl230);
_ku506.addEventListener(Event.COMPLETE, _dl230);
_qy246(_ku506);
_jt898.addChild(_ku506);
}
public function _mx1046():_wy1415{
return (_ku506);
}
public function _xp1106(_arg1:uint):void{
this._jm30 = _arg1;
}
override public function _pf608():Rectangle{
return (null);
}
public function _eo1218():uint{
return (_jm30);
}
public function _lj664():uint{
return ((_wd1068.value + _ku506._ab331()._lj664()));
}
override public function onEnter():void{
_ku506.init();
_cb1352 = new _uq1382(_ku506, _wd1068.value);
addChild(_cb1352);
}
override public function _mu641():void{
if (_fo937 != null){
_fo937._mu641();
removeChild(_fo937.getControl());
_fo937.dispose();
_fo937 = null;
};
_cb1352.dispose();
removeChild(_cb1352);
_cb1352 = null;
_ku506.removeEventListener(_wy1415._dq1059, _dl230);
_ku506.removeEventListener(Event.COMPLETE, _dl230);
_ku506.dispose();
_jt898.removeChild(_ku506);
_ku506 = null;
}
private static function _qy246(_arg1:_wy1415):void{
var _local2:Bitmap;
var _local3:uint;
while (_local3 < _kp1329._mc605) {
_local2 = new Back();
_local2.x = _local3;
_arg1.addChild(_local2);
_local3 = (_local3 + _local2.width);
_local3++;
};
}
}
}//package menu
Section 178
//_nr392_Back (menu._nr392_Back)
package menu {
import mx.core.*;
public class _nr392_Back extends BitmapAsset {
}
}//package menu
Section 179
//_rm823 (menu._rm823)
package menu {
import flash.events.*;
import game.*;
import flash.display.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import com.herocraft.*;
public class _rm823 extends _fy615 {
private var _ns1085:int;
private var _ti315:Timer;
private var _ph308:GlowFilter;
private var _mh1176:Array;
private var _ji663:Boolean;
private var _as558:Number;
private var _ta368:uint;
private var _es733:Sprite;
private var _tk1349:Timer;
private static const _yd1370:Number = 0.1;
private static const _nc79:Number = 3;
private static const _jy242:Number = 1;
private static const _lv1195:uint = 1;
private static var _ow520:Class = _rm823__ow520;
public function _rm823(_arg1:_ei813){
var _ns10:Sprite;
var _dv1371 = _arg1;
super(_dv1371);
var back:DisplayObject = _dy766();
addChild(back);
_ph308 = new GlowFilter(0xFFFFFF, 1, 12, 12);
_mh1176 = new Array(_ph308);
var _xh1078:Bitmap = new _ow520();
_ns10 = new Sprite();
_ns10.addChild(_xh1078);
_tk1349 = new Timer(30);
_tk1349.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
if (_ph308.strength > _nc79){
_as558 = _jy242;
} else {
if ((((_ph308.strength < _jy242)) && (_ji663))){
_as558 = _nc79;
};
};
var _local2:Number = (_as558 - _ph308.strength);
if (_local2 != 0){
_local2 = (_local2 / Math.abs(_local2));
_ph308.strength = (_ph308.strength + (_local2 * _yd1370));
_ns10.filters = _mh1176;
};
});
_ns10.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:Event):void{
_as558 = 0;
_ji663 = false;
});
_ns10.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:Event):void{
_ji663 = true;
});
_ns10.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
navigateToURL(new URLRequest("http://www.herocraft.com/?ch=mumu_flash"), "_blank");
});
_tk1349.start();
addChild(_ns10);
_ns10.x = ((back.x + ((back.width - _ns10.width) / 2)) + _vi285);
_ns10.y = (back.y + _vi285);
_ta368 = (back.width - (2 * _vi285));
_es733 = new Sprite();
addChild(_es733);
_es733.x = (back.x + Math.round((back.width / 2)));
var _vs193:int = _sq637.getInstance()._uv988()._xg37();
_ns1085 = (((back.y + _ns10.height) + _vs193) + _vi285);
var _lp1233:Sprite = new Sprite();
_lp1233.y = (_ns1085 - _vs193);
var _local3 = _lp1233.graphics;
with (_local3) {
beginFill(0);
drawRect(0, 0, _kp1329._mc605, ((back.height - (_ns1085 - back.y)) - _vi285));
endFill();
};
_es733.mask = _lp1233;
addChild(_lp1233);
var _le1386:_xy783 = _cw705(_dv1371);
_le1386.x = (back.x + _vi285);
_le1386.y = (((back.y + back.height) - _le1386.height) - _vi285);
addChild(_le1386);
_ol298();
_ti315 = new Timer(30);
_ti315.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
_es733.y = (_es733.y - _lv1195);
if (_es733.y < ((_ns1085 - _es733.height) - _vi285)){
_fn1352();
};
});
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, _ol298);
}
override protected function _dy766():DisplayObject{
var _local1:DisplayObject = super._dy766();
var _local2:Bitmap = new _eg302();
var _local3:uint = ((_kp1329._mc605 - _local2.width) / 2);
_local2.y = _local1.y;
_local2.x = _local3;
return (_local2);
}
override public function _mu641():void{
_ti315.stop();
}
override public function onEnter():void{
_fn1352();
}
private function _ol298(_arg1:Event=null):void{
while (_es733.numChildren != 0) {
_es733.removeChildAt(0);
};
_sq637.getInstance()._uv988()._di719(_es733, _lf450._hj90, 0, 0, ["1.0", "15.08.2009"], (_ta368 / 2), _pg1228._ti710);
}
private function _fn1352():void{
_es733.y = (_ns1085 + _es733.mask.height);
_ti315.start();
}
}
}//package menu
Section 180
//_rm823__ow520 (menu._rm823__ow520)
package menu {
import mx.core.*;
public class _rm823__ow520 extends BitmapAsset {
}
}//package menu
Section 181
//_rn1329 (menu._rn1329)
package menu {
import flash.events.*;
import game.*;
import de.polygonal.ds.*;
import flash.display.*;
import com.herocraft.*;
public class _rn1329 extends _fy615 {
private var _dj526:Set;
public function _rn1329(_arg1:_ei813){
var _la88:uint;
var _vl769:_xy783;
var _cx448 = _arg1;
super(_cx448);
_dj526 = new Set();
var back:DisplayObject = _dy766();
var _nq446:_pg1228 = _sq637.getInstance()._uv988();
var _ro1030:uint = ((back.y + _nq446._xg37()) + _vi285);
addChild(back);
var _nw512:uint;
while (_nw512 < _hr1396._vy303()) {
_la88 = _kx712._lf845[_nw512];
_vl769 = new _xy783(_la88);
_vl769.y = _ro1030;
_vl769.x = (back.x + (back.width / 2));
addChild(_vl769);
_vl769._by292(new Number(_nw512));
_ro1030 = (_ro1030 + _nq446._xg37());
_dj526.set(_vl769);
_nw512 = (_nw512 + 1);
};
_nq446.addEventListener(_pg1228._un189, function (_arg1:Event):void{
var _local3:_xy783;
var _local2:Iterator = _dj526.getIterator();
while (_local2.hasNext()) {
_local3 = _local2.next();
_local3.refresh();
};
});
var _ho749:_xy783 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._lg1245), _pg1228._lk422);
_ho749.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
_dj1026._rw975(_xj26._jq1316);
});
_ho749.x = (back.x + _vi285);
_ho749.y = (((back.y + back.height) - _ho749.height) - _vi285);
addChild(_ho749);
}
override public function onEnter():void{
var _local4:_xy783;
var _local5:Number;
var _local1:uint = _hr1396._ec1277();
var _local2:int = _sq637.getInstance()._ec718(_local1);
var _local3:Iterator = _dj526.getIterator();
while (_local3.hasNext()) {
_local4 = (_local3.next() as _xy783);
_local5 = (_local4._cl267() as Number);
if (_local5 > (_local2 + 1)){
_local4.alpha = 0.2;
_local4.removeEventListener(_xy783._ir1372, buttonPressed);
} else {
_local4.alpha = 1;
_local4.addEventListener(_xy783._ir1372, buttonPressed);
};
};
}
private function buttonPressed(_arg1:Event):void{
var _local5:_kx712;
var _local2:_xy783 = (_arg1.target as _xy783);
var _local3:Number = (_local2._cl267() as Number);
var _local4:_nr392 = (_dj1026._sg78(_xj26._ym1343) as _nr392);
if (_local4._eo1218() == _hr1396._yt1156){
_local5 = (_dj1026._sg78(_xj26._jd191) as _kx712);
_local5._is163(_local3);
_dj1026._rw975(_xj26._jd191);
} else {
if (_local4._eo1218() == _hr1396._mc1238){
_local4._gd776(0);
_dj1026._rw975(_xj26._ym1343);
};
};
}
}
}//package menu
Section 182
//_ti1198 (menu._ti1198)
package menu {
import flash.display.*;
import flash.geom.*;
public interface _ti1198 {
function _pf608():Rectangle;
function onEnter():void;
function _mu641():void;
function getControl():DisplayObject;
}
}//package menu
Section 183
//_tp1070 (menu._tp1070)
package menu {
import flash.events.*;
import game.*;
import flash.display.*;
import com.herocraft.*;
import caurina.transitions.*;
import flash.ui.*;
public class _tp1070 extends _fy615 {
protected var _ig210:Sprite;
protected var _iv254:Array;
private var _xh1251:int;
private var _qn392:Array;
private var _xp1010:_xy783;
protected var _sq400:Sprite;
private var _lr1253:_xy783;
protected var back:DisplayObject;
private var _lr486:int;
private var _mj1192:int;
private var _ee438:int;
protected static const _vi285:uint = 10;
public function _tp1070(_arg1:_ei813, _arg2:Array, _arg3:Array, _arg4:int){
var _dv1371 = _arg1;
var _iv254 = _arg2;
var _qn392 = _arg3;
var _mj1192 = _arg4;
super(_dv1371);
this._iv254 = _iv254;
this._qn392 = _qn392;
this._mj1192 = _mj1192;
back = _dy766();
addChild(back);
_sq400 = new Sprite();
addChild(_sq400);
_ig210 = new Sprite();
addChild(_ig210);
_lr1253 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._uv1122), _pg1228._ti710);
_xh1251 = ((back.x + back.width) + (_lr1253.width * 0.2));
_lr1253.x = _xh1251;
_lr1253.y = (back.y + (back.height / 2));
addChild(_lr1253);
_xp1010 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._uv1122), _pg1228._ti710);
_lr486 = (back.x - (_lr1253.width * 0.2));
_xp1010.x = _lr486;
_xp1010.y = _lr1253.y;
_xp1010.scaleX = -1;
addChild(_xp1010);
_lr1253.addEventListener(MouseEvent.MOUSE_DOWN, _gh1255);
_xp1010.addEventListener(MouseEvent.MOUSE_DOWN, _sq597);
var _ho749:_xy783 = _cw705(_dv1371);
_ho749.x = (back.x + _vi285);
_ho749.y = (((back.y + back.height) - _ho749.height) - _vi285);
addChild(_ho749);
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, function (_arg1:Event):void{
_iv1286(_ee438);
});
}
private function _gh1255(_arg1:Event=null):void{
Tweener.removeTweens(_lr1253);
_lr1253.x = _xh1251;
_mt861(_lr1253, 1, 2);
_iv1286((_ee438 + 1));
}
protected function _lf915():uint{
return (0);
}
protected function _ob288():Boolean{
return (true);
}
protected function _rm592(_arg1:DisplayObject):void{
}
protected function _ov1341(_arg1:DisplayObject):void{
}
private function _iv1286(_arg1:int):void{
var _local4:uint;
var _local2:uint = _iv254.length;
if (!(_ob288())){
_local4 = _lf915();
if (_local4 != _local2){
_local2 = (_local4 + 1);
};
};
while (_sq400.numChildren != 0) {
_sq400.removeChildAt(0);
};
while (_ig210.numChildren != 0) {
_ig210.removeChildAt(0);
};
var _local3:int = _mj1192;
if (_local2 != 0){
while (_arg1 < 0) {
_arg1 = (_arg1 + _local2);
};
while (_arg1 >= _local2) {
_arg1 = (_arg1 - _local2);
};
_local3 = (_qn392[_arg1] as Number);
} else {
_arg1 = 0;
};
_ee438 = _arg1;
_sq400.addChild((_iv254[_ee438] as DisplayObject));
if (_ee438 >= _lf915()){
_rm592(_sq400);
_local3 = _mj1192;
} else {
_ov1341(_sq400);
};
if (_local3 != -1){
_sq637.getInstance()._uv988()._di719(_ig210, _local3, 0, 0, null, (back.width - (2 * _vi285)));
};
}
private function _mt861(_arg1:DisplayObject, _arg2:int, _arg3:uint):void{
if (_arg3 != 0){
Tweener.addTween(_arg1, {transition:"linear", time:0.1, rounded:true, x:(_arg1.x + (_arg2 * 10)), onComplete:_mt861, onCompleteParams:[_arg1, -(_arg2), (_arg3 - 1)]});
};
}
private function _sq597(_arg1:Event=null):void{
Tweener.removeTweens(_xp1010);
_xp1010.x = _lr486;
_mt861(_xp1010, -1, 2);
_iv1286((_ee438 - 1));
}
override public function onEnter():void{
stage.addEventListener(KeyboardEvent.KEY_DOWN, _ok854);
_iv1286(0);
}
private function _ok854(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case Keyboard.RIGHT:
_gh1255();
break;
case Keyboard.LEFT:
_sq597();
break;
};
}
}
}//package menu
Section 184
//_tq940 (menu._tq940)
package menu {
import game.*;
import flash.events.*;
import flash.display.*;
import com.herocraft.*;
public class _tq940 extends _fy615 {
private var title:Sprite;
public function _tq940(_arg1:_ei813){
var _local7:_xy783;
super(_arg1);
var _local2:DisplayObject = _dy766();
addChild(_local2);
var _local3:Array = [_lf450._aj388, _lf450._lv969, _lf450._uc658];
title = new Sprite();
addChild(title);
title.x = (_local2.x + (_local2.width / 2));
title.y = (_vi285 + (2 * _sq637.getInstance()._uv988()._xg37()));
addChild(title);
var _local4:Array = new Array();
var _local5:uint;
while (_local5 < _local3.length) {
_local7 = new _xy783(_local3[_local5], null, _pg1228._ti710);
_local7._by292(_local5);
_local7.addEventListener(_xy783._ir1372, buttonPressed);
addChild(_local7);
_local4.push(_local7);
_local5++;
};
align(_local4, _local2);
var _local6:_xy783 = _cw705(_arg1);
_local6.x = (_local2.x + _vi285);
_local6.y = (((_local2.y + _local2.height) - _local6.height) - _vi285);
addChild(_local6);
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, refresh);
refresh();
}
private function buttonPressed(_arg1:Event):void{
var _local2:_xy783 = (_arg1.target as _xy783);
var _local3:uint = (_local2._cl267() as uint);
_hr1396._rv1058(_local3);
_dj1026._rw975(_xj26._sv117);
}
private function refresh(_arg1:Event=null):void{
while (title.numChildren != 0) {
title.removeChildAt(0);
};
var _local2:_pg1228 = _sq637.getInstance()._uv988();
_local2._di719(title, _lf450._rr1043, 0, 0, null, -1, _pg1228._ti710);
}
}
}//package menu
Section 185
//_uq1382 (menu._uq1382)
package menu {
import game.*;
import mx.events.*;
import flash.display.*;
import com.herocraft.*;
public class _uq1382 extends Sprite {
private var level:_wy1415;
private var _fl1047:_gx618;
private var _dg1019:_bm586;
private var time:_ah461;
private var _ve1449:uint;
private var _md1216:_be719;
private static const _vi285:uint = 30;
public function _uq1382(_arg1:_wy1415, _arg2:uint){
this.level = _arg1;
this._ve1449 = _arg2;
var _local3:_hr1396 = _arg1._ab331();
var _local4:uint = _sq637.getInstance()._uv988()._xg37();
_fl1047 = new _gx618(_arg1._tq820());
addChild(_fl1047);
_fl1047.x = ((_kp1329._mc605 - _fl1047.width) / 2);
_fl1047.y = _kp1329._dq388;
_md1216 = new _be719(_sq637.getInstance()._uv988());
_md1216._nc758(_be719._nv380);
addChild(_md1216.getControl());
_md1216.getControl().x = (_kp1329._mc605 - _fy615._vi285);
_md1216.getControl().y = _vi285;
_arg1._ab331().addEventListener(_wy1415._yl759, _by21);
time = null;
_dg1019 = null;
var _local5:uint = _vi285;
if (_local3._yy1088() > 0){
time = new _ah461(_local3);
addChild(time);
time.x = _vi285;
time.y = _local5;
_local5 = (_local5 + _local4);
};
if (_local3._ih1296() > 0){
_dg1019 = new _bm586(_arg1._ab331());
addChild(_dg1019);
_dg1019.x = _vi285;
_dg1019.y = _local5;
_local5 = (_local5 + _local4);
};
_by21();
}
private function _by21(_arg1:PropertyChangeEvent=null):void{
var _local2:Number = 0;
if (_arg1 != null){
_local2 = (_arg1.newValue as Number);
};
_md1216._ma990(((_local2 + _ve1449) + ""));
}
public function dispose():void{
removeChild(_fl1047);
_fl1047.dispose();
_fl1047 = null;
level._ab331().removeEventListener(_wy1415._yl759, _by21);
removeChild(_md1216.getControl());
_md1216.dispose();
_md1216 = null;
level = null;
if (_dg1019 != null){
_dg1019.dispose();
removeChild(_dg1019);
_dg1019 = null;
};
if (time != null){
removeChild(time);
time = null;
};
}
}
}//package menu
import game.*;
import flash.events.*;
import game.mumu.*;
import flash.display.*;
import com.herocraft.*;
import flash.utils.*;
class _bm586 extends Sprite {
private var _na1132:_mk278;
private var _dr963:_be719;
private var _un323:_hr1396;
private function _bm586(_arg1:_hr1396){
_arg1.addEventListener(_ee860._mx486, refresh);
this._un323 = _arg1;
_dr963 = new _be719(_sq637.getInstance()._uv988());
_dr963._iy13(_be719._dm545());
_na1132 = _sq637.getInstance()._rj1381(_ol205._pv177);
addChild(_dr963.getControl());
_dr963._uf510(_na1132);
refresh();
}
public function refresh(_arg1:_ee860=null):void{
var _local2:uint = Math.max(0, (_un323._ih1296() - _un323._ds452()));
_dr963._ma990((_local2 + ""));
}
public function dispose():void{
_un323.removeEventListener(_ee860._mx486, refresh);
_un323 = null;
removeChild(_dr963.getControl());
_dr963.dispose();
_dr963 = null;
_na1132.dispose();
_na1132 = null;
}
}
class _ah461 extends Sprite {
private var _xd152:Timer;
private var _mf380:_be719;
private var _un323:_hr1396;
private function _ah461(_arg1:_hr1396){
this._un323 = _arg1;
_mf380 = new _be719(_sq637.getInstance()._uv988());
addChild(_mf380.getControl());
_xd152 = new Timer(50);
_xd152.addEventListener(TimerEvent.TIMER, refresh);
_xd152.start();
refresh();
}
public function refresh(_arg1:Event=null):void{
var _local2:uint = _un323._gh1007();
var _local3:int = (_un323._yy1088() - _local2);
if (_local3 < 0){
return;
};
var _local4:uint = Math.floor((_local3 / 60));
var _local5:uint = (_local3 - (_local4 * 60));
var _local6:String = (_local5 + "");
if (_local6.length < 2){
_local6 = ("0" + _local6);
};
_local6 = ((_local4 + ":") + _local6);
if (_local6.length < 5){
_local6 = ("0" + _local6);
};
_mf380._ma990(_local6);
}
public function dispose():void{
_xd152.stop();
_xd152.removeEventListener(TimerEvent.TIMER, refresh);
_xd152 = null;
this._un323 = null;
while (numChildren > 0) {
removeChildAt(0);
};
}
}
Section 186
//_vc823 (menu._vc823)
package menu {
import game.*;
import flash.events.*;
import flash.display.*;
import com.herocraft.*;
public class _vc823 extends _fy615 {
private var _am609:_ys1378;
private var back:DisplayObject;
private var _es733:Sprite;
public function _vc823(_arg1:_ei813){
super(_arg1);
back = _ad322();
addChild(back);
_am609 = new _ys1378(back);
addChild(_am609);
var _local2:Sprite = _am609._ij1393();
_es733 = new Sprite();
_local2.addChild(_es733);
_es733.x = (2 * _vi285);
_es733.y = (2 * _sq637.getInstance()._uv988()._xg37());
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, refresh);
refresh();
var _local3:_xy783 = _cw705(_dj1026);
_local3.x = (back.x + _vi285);
_local3.y = ((back.y + back.height) - _local3.height);
addChild(_local3);
}
private function refresh(_arg1:Event=null):void{
while (_es733.numChildren != 0) {
_es733.removeChildAt(0);
};
var _local2:_pg1228 = _sq637.getInstance()._uv988();
var _local3:int = (back.width - (7 * _vi285));
_local2._di719(_es733, _lf450._gg659, 0, 0, null, _local3);
_am609.refresh();
}
}
}//package menu
Section 187
//_xy783 (menu._xy783)
package menu {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import game.*;
import com.herocraft.*;
public class _xy783 extends Sprite {
private var _ul1400:Timer;
private var _wm888:int;
private var _tx602:Object;
private var align:uint;
private var _kl309:int;
private var _hp408:Rectangle;
private var _xu1172:Array;
private var icon:DisplayObject;
private var _jd115:Sprite;
public static const _ir1372:String = "btnPressed";
private static const _li1261:int = 1;
private static const _qu905:uint = 3;
public function _xy783(_arg1:int=-1, _arg2:DisplayObject=null, _arg3:uint=0){
var _nf534:Function;
var _kl309 = _arg1;
var icon = _arg2;
var align = _arg3;
super();
_wm888 = _li1261;
_ul1400 = new Timer(30);
_ul1400.addEventListener(TimerEvent.TIMER, _bf825);
this._kl309 = _kl309;
this.icon = icon;
this.align = align;
if (icon != null){
addChild(icon);
};
if (_kl309 != -1){
_sq637.getInstance()._uv988().addEventListener(_pg1228._un189, refresh);
};
_xu1172 = new Array();
_nf534 = function (_arg1:MouseEvent):void{
if (((((((!((stage == null))) && (!((_hp408 == null))))) && (_hp408.contains(mouseX, mouseY)))) && ((_xu1172.length > 0)))){
if (_arg1.type == MouseEvent.MOUSE_MOVE){
if (!(_ul1400.running)){
_ul1400.start();
};
} else {
if (_arg1.type == MouseEvent.MOUSE_DOWN){
dispatchEvent(new Event(_ir1372));
};
};
};
};
addEventListener(Event.ADDED_TO_STAGE, function (_arg1:Event):void{
refresh();
parent.addEventListener(MouseEvent.MOUSE_MOVE, _nf534);
parent.addEventListener(MouseEvent.MOUSE_DOWN, _nf534);
});
_wm888 = _li1261;
refresh();
}
private function _bf825(_arg1:Event):void{
var _local2:uint;
var _local3:DisplayObject;
var _local4:Boolean;
var _local5:DisplayObject;
if (_hp408.contains(this.mouseX, this.mouseY)){
if (Math.abs((_xu1172[0] as DisplayObject).y) > _qu905){
_wm888 = -(_wm888);
};
_local2 = 0;
while (_local2 < _xu1172.length) {
_local3 = _xu1172[_local2];
if ((_local2 % 2) == 0){
_local3.y = (_local3.y + _wm888);
} else {
_local3.y = (_local3.y - _wm888);
};
_local2++;
};
} else {
_local4 = true;
_local2 = 0;
while (_local2 < _xu1172.length) {
_local5 = _xu1172[_local2];
if (_local5.y != 0){
_local4 = false;
if (Math.abs(_local5.y) < _li1261){
_local5.y = 0;
} else {
_local5.y = (_local5.y + ((-(_local5.y) / Math.abs(_local5.y)) * _li1261));
};
};
_local2++;
};
if (_local4){
_ul1400.stop();
};
};
}
public function _by292(_arg1:Object):void{
this._tx602 = _arg1;
}
public function _cl267():Object{
return (_tx602);
}
public function refresh(_arg1:Event=null):void{
var _local4:Sprite;
var _local5:DisplayObject;
var _local6:Sprite;
_xu1172.length = 0;
if (icon != null){
_xu1172.push(icon);
icon.x = 0;
};
if (_jd115 != null){
removeChild(_jd115);
_jd115 = null;
};
var _local2:_sq637 = _sq637.getInstance();
if (_kl309 != -1){
_local4 = _local2._uv988()._rt980(_kl309, null);
_jd115 = new Sprite();
_xu1172 = new Array();
addChild(_jd115);
while (_local4.numChildren != 0) {
_local5 = _local4.getChildAt(0);
_local6 = new Sprite();
_local6.x = _local5.x;
_local5.x = 0;
_local6.addChild(_local5);
_jd115.addChild(_local6);
_xu1172.push(_local6);
};
if (icon != null){
_jd115.x = icon.width;
};
};
var _local3:int;
switch (align){
case _pg1228._ti710:
_local3 = -(Math.round((width / 2)));
break;
case _pg1228._nv380:
_local3 = -(width);
break;
};
if (icon != null){
icon.x = (icon.x + _local3);
};
if (_jd115 != null){
_jd115.x = (_jd115.x + _local3);
};
_hp408 = getBounds(this);
}
}
}//package menu
Section 188
//_ys1378 (menu._ys1378)
package menu {
import flash.display.*;
import com.warmforestflash.ui.*;
public class _ys1378 extends Sprite {
private var _dx148:FullScreenScrollBar;
private var content:Sprite;
public function _ys1378(_arg1:DisplayObject){
var _sm1270 = _arg1;
super();
addChild(_sm1270);
content = new Sprite();
addChild(content);
content.x = _sm1270.x;
content.y = _sm1270.y;
var _lp1233:Sprite = new Sprite();
_lp1233.x = content.x;
_lp1233.y = content.y;
var _local3 = _lp1233.graphics;
with (_local3) {
beginFill(0);
drawRect(0, 0, (_sm1270.width - (3 * _fy615._vi285)), (_sm1270.height - (6 * _fy615._vi285)));
endFill();
};
addChild(_lp1233);
_lp1233.alpha = 0.4;
content.mask = _lp1233;
_lp1233.x = content.x;
_lp1233.y = (_sm1270.y + (3 * _fy615._vi285));
_dx148 = new FullScreenScrollBar(content, _lp1233, 7618576, 12096867, 7500118, 16771263, 15, 15, 4, false);
addChild(_dx148);
_dx148.x = (_lp1233.x + _lp1233.width);
_dx148.y = _lp1233.y;
}
public function refresh():void{
_dx148.adjustSize();
}
public function _ij1393():Sprite{
return (content);
}
}
}//package menu
Section 189
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.2.0.3958";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 190
//ButtonAsset (mx.core.ButtonAsset)
package mx.core {
public class ButtonAsset extends FlexSimpleButton implements IFlexAsset, IFlexDisplayObject {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function ButtonAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 191
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 192
//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.2.0.3958";
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 193
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 194
//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.2.0.3958";
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 195
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 196
//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.2.0.3958";
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 197
//FlexSimpleButton (mx.core.FlexSimpleButton)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexSimpleButton extends SimpleButton {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexSimpleButton(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 198
//FlexSprite (mx.core.FlexSprite)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexSprite extends Sprite {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexSprite(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 199
//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.2.0.3958";
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 200
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 201
//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 202
//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 203
//IContainer (mx.core.IContainer)
package mx.core {
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import mx.managers.*;
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 204
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 205
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.events.*;
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 206
//IFlexModuleFactory (mx.core.IFlexModuleFactory)
package mx.core {
public interface IFlexModuleFactory {
function create(... _args):Object;
function info():Object;
}
}//package mx.core
Section 207
//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 208
//IProgrammaticSkin (mx.core.IProgrammaticSkin)
package mx.core {
public interface IProgrammaticSkin {
function validateNow():void;
function validateDisplayList():void;
}
}//package mx.core
Section 209
//IRawChildrenContainer (mx.core.IRawChildrenContainer)
package mx.core {
public interface IRawChildrenContainer {
function get rawChildren():IChildList;
}
}//package mx.core
Section 210
//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 211
//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 212
//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 213
//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 214
//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 215
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 216
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
protected var initialHeight:Number;// = 0
private var loader:Loader;// = null
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
private var requestedHeight:Number;
private var requestedWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
if (("allowLoadBytesCodeExecution" in _local1)){
_local1["allowLoadBytesCodeExecution"] = true;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
override public function get width():Number{
if (!(initialized)){
return (initialWidth);
};
return (super.width);
}
override public function set width(_arg1:Number):void{
if (!(initialized)){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredHeight():Number{
return (initialHeight);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!(isNaN(requestedWidth))){
loader.width = requestedWidth;
};
if (!(isNaN(requestedHeight))){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function set height(_arg1:Number):void{
if (!(initialized)){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get height():Number{
if (!(initialized)){
return (initialHeight);
};
return (super.height);
}
public function get movieClipData():ByteArray{
return (null);
}
}
}//package mx.core
Section 217
//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 218
//Singleton (mx.core.Singleton)
package mx.core {
public class Singleton {
mx_internal static const VERSION:String = "3.2.0.3958";
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 219
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 220
//SpriteAsset (mx.core.SpriteAsset)
package mx.core {
public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function SpriteAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 221
//UIComponentGlobals (mx.core.UIComponentGlobals)
package mx.core {
import mx.managers.*;
import flash.display.*;
import flash.geom.*;
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 222
//ModuleEvent (mx.events.ModuleEvent)
package mx.events {
import mx.modules.*;
import flash.events.*;
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.2.0.3958";
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 223
//PropertyChangeEvent (mx.events.PropertyChangeEvent)
package mx.events {
import flash.events.*;
public class PropertyChangeEvent extends Event {
public var newValue:Object;
public var kind:String;
public var property:Object;
public var oldValue:Object;
public var source:Object;
mx_internal static const VERSION:String = "3.2.0.3958";
public static const PROPERTY_CHANGE:String = "propertyChange";
public function PropertyChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null){
super(_arg1, _arg2, _arg3);
this.kind = _arg4;
this.property = _arg5;
this.oldValue = _arg6;
this.newValue = _arg7;
this.source = _arg8;
}
override public function clone():Event{
return (new PropertyChangeEvent(type, bubbles, cancelable, kind, property, oldValue, newValue, source));
}
public static function createUpdateEvent(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Object):PropertyChangeEvent{
var _local5:PropertyChangeEvent = new PropertyChangeEvent(PROPERTY_CHANGE);
_local5.kind = PropertyChangeEventKind.UPDATE;
_local5.oldValue = _arg3;
_local5.newValue = _arg4;
_local5.source = _arg1;
_local5.property = _arg2;
return (_local5);
}
}
}//package mx.events
Section 224
//PropertyChangeEventKind (mx.events.PropertyChangeEventKind)
package mx.events {
public final class PropertyChangeEventKind {
mx_internal static const VERSION:String = "3.2.0.3958";
public static const UPDATE:String = "update";
public static const DELETE:String = "delete";
}
}//package mx.events
Section 225
//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.2.0.3958";
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 226
//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.2.0.3958";
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 227
//RectangularDropShadow (mx.graphics.RectangularDropShadow)
package mx.graphics {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
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.2.0.3958";
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 228
//IFocusManager (mx.managers.IFocusManager)
package mx.managers {
import mx.core.*;
import flash.display.*;
import flash.events.*;
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 229
//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 230
//IFocusManagerContainer (mx.managers.IFocusManagerContainer)
package mx.managers {
import flash.display.*;
import flash.events.*;
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 231
//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 232
//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 233
//ISystemManager (mx.managers.ISystemManager)
package mx.managers {
import mx.core.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.events.*;
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 234
//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;
}
}//package mx.managers
Section 235
//IModuleInfo (mx.modules.IModuleInfo)
package mx.modules {
import mx.core.*;
import flash.system.*;
import flash.utils.*;
import flash.events.*;
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 236
//ModuleManager (mx.modules.ModuleManager)
package mx.modules {
import mx.core.*;
public class ModuleManager {
mx_internal static const VERSION:String = "3.2.0.3958";
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 mx.core.*;
import flash.system.*;
import flash.utils.*;
import flash.events.*;
import mx.events.*;
import flash.display.*;
import flash.net.*;
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)) ? _loaded : false);
}
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)) ? _error : false);
}
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)) ? _ready : false);
}
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;
clearLoader();
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
}
public function get setup():Boolean{
return ((!(limbo)) ? _setup : false);
}
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 237
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals)
package mx.modules {
public class ModuleManagerGlobals {
public static var managerSingleton:Object = null;
}
}//package mx.modules
Section 238
//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 239
//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 240
//IResourceModule (mx.resources.IResourceModule)
package mx.resources {
public interface IResourceModule {
function get resourceBundles():Array;
}
}//package mx.resources
Section 241
//LocaleSorter (mx.resources.LocaleSorter)
package mx.resources {
public class LocaleSorter {
mx_internal static const VERSION:String = "3.2.0.3958";
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];
Array.prototype.push.apply(_local1, extended_langs);
if (script != ""){
_local1.push(script);
};
if (region != ""){
_local1.push(region);
};
Array.prototype.push.apply(_local1, variants);
for (_local2 in extensions) {
if (extensions.hasOwnProperty(_local2)){
_local1.push(_local2);
Array.prototype.push.apply(_local1, extensions[_local2]);
};
};
if (privates.length > 0){
_local1.push("x");
Array.prototype.push.apply(_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);
}
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 242
//ResourceBundle (mx.resources.ResourceBundle)
package mx.resources {
import flash.system.*;
import mx.core.*;
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.2.0.3958";
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 243
//ResourceManager (mx.resources.ResourceManager)
package mx.resources {
import mx.core.*;
public class ResourceManager {
mx_internal static const VERSION:String = "3.2.0.3958";
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 244
//ResourceManagerImpl (mx.resources.ResourceManagerImpl)
package mx.resources {
import mx.modules.*;
import mx.events.*;
import flash.system.*;
import flash.events.*;
import mx.core.*;
import flash.utils.*;
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.2.0.3958";
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:String = (((_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{
throw (new Error("unloadResourceModule() is not yet implemented."));
}
public static function getInstance():IResourceManager{
if (!(instance)){
instance = new (ResourceManagerImpl);
};
return (instance);
}
}
}//package mx.resources
import mx.modules.*;
import mx.events.*;
import flash.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 245
//HaloBorder (mx.skins.halo.HaloBorder)
package mx.skins.halo {
import mx.core.*;
import mx.skins.*;
import mx.graphics.*;
import flash.display.*;
import mx.utils.*;
import mx.styles.*;
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.2.0.3958";
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:Array;
var _local11: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 = (bRoundedCorners) ? radius : 0;
radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9};
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)))){
_local10 = getStyle("highlightAlphas");
_local11 = (_local10) ? _local10[0] : 0.3;
drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, 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 246
//HaloFocusRect (mx.skins.halo.HaloFocusRect)
package mx.skins.halo {
import mx.styles.*;
import mx.skins.*;
import flash.display.*;
import mx.utils.*;
public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient {
private var _focusColor:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
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();
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 247
//Border (mx.skins.Border)
package mx.skins {
import mx.core.*;
public class Border extends ProgrammaticSkin implements IBorder {
mx_internal static const VERSION:String = "3.2.0.3958";
public function get borderMetrics():EdgeMetrics{
return (EdgeMetrics.EMPTY);
}
}
}//package mx.skins
Section 248
//ProgrammaticSkin (mx.skins.ProgrammaticSkin)
package mx.skins {
import flash.geom.*;
import mx.core.*;
import mx.managers.*;
import mx.styles.*;
import flash.display.*;
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.2.0.3958";
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 249
//RectangularBorder (mx.skins.RectangularBorder)
package mx.skins {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import mx.core.*;
import mx.resources.*;
import flash.system.*;
import flash.utils.*;
import flash.net.*;
import mx.styles.*;
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.2.0.3958";
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:Boolean = !((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{
_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 250
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration)
package mx.styles {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import mx.core.*;
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.2.0.3958";
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 251
//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 252
//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 253
//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 254
//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 255
//IStyleModule (mx.styles.IStyleModule)
package mx.styles {
public interface IStyleModule {
function unload():void;
}
}//package mx.styles
Section 256
//StyleManager (mx.styles.StyleManager)
package mx.styles {
import flash.events.*;
import flash.system.*;
import mx.core.*;
public class StyleManager {
mx_internal static const VERSION:String = "3.2.0.3958";
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 257
//StyleManagerImpl (mx.styles.StyleManagerImpl)
package mx.styles {
import mx.modules.*;
import mx.events.*;
import flash.events.*;
import flash.system.*;
import mx.resources.*;
import mx.core.*;
import mx.managers.*;
import flash.utils.*;
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.2.0.3958";
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 mx.modules.*;
import mx.events.*;
import flash.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);
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 258
//ColorUtil (mx.utils.ColorUtil)
package mx.utils {
public class ColorUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
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 259
//GraphicsUtil (mx.utils.GraphicsUtil)
package mx.utils {
import flash.display.*;
public class GraphicsUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
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 260
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import flash.utils.*;
import mx.core.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
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 261
//StringUtil (mx.utils.StringUtil)
package mx.utils {
public class StringUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
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 262
//SWFWheel (org.libspark.ui.SWFWheel)
package org.libspark.ui {
import flash.display.*;
import flash.events.*;
import flash.external.*;
import flash.system.*;
public class SWFWheel {
public static const DEFINE_LIBRARY_FUNCTION:String = "function(){if(window.SWFWheel)return;var win=window,doc=document,nav=navigator;var SWFWheel=window.SWFWheel=function(id){this.setUp(id);if(SWFWheel.browser.msie)this.bind4msie();else this.bind();};SWFWheel.prototype={setUp:function(id){var el=SWFWheel.retrieveObject(id);if(el.nodeName.toLowerCase()=='embed'||SWFWheel.browser.safari)el=el.parentNode;this.target=el;this.eventType=SWFWheel.browser.mozilla?'DOMMouseScroll':'mousewheel';},bind:function(){this.target.addEventListener(this.eventType,function(evt){var target,name,delta=0;if(/XPCNativeWrapper/.test(evt.toString())){var k=evt.target.getAttribute('id')||evt.target.getAttribute('name');if(!k)return;target=SWFWheel.retrieveObject(k);}else{target=evt.target;}name=target.nodeName.toLowerCase();if(name!='object'&&name!='embed')return;evt.preventDefault();evt.returnValue=false;if(!target.externalMouseEvent)return;switch(true){case SWFWheel.browser.mozilla:delta=-evt.detail;break;case SWFWheel.browser.opera:delta=evt.wheelDelta/40;break;default:delta=evt.wheelDelta/80;break;}target.externalMouseEvent(delta);},false);},bind4msie:function(){var _wheel,_unload,target=this.target;_wheel=function(){var evt=win.event,delta=0,name=evt.srcElement.nodeName.toLowerCase();if(name!='object'&&name!='embed')return;evt.returnValue=false;if(!target.externalMouseEvent)return;delta=evt.wheelDelta/40;target.externalMouseEvent(delta);};_unload=function(){target.detachEvent('onmousewheel',_wheel);win.detachEvent('onunload',_unload);};target.attachEvent('onmousewheel',_wheel);win.attachEvent('onunload',_unload);}};SWFWheel.browser=(function(ua){return{version:(ua.match(/.+(?:rv|it|ra|ie)[/:\s]([\d.]+)/)||[0,'0'])[1],chrome:/chrome/.test(ua),stainless:/stainless/.test(ua),safari:/webkit/.test(ua)&&!/(chrome|stainless)/.test(ua),opera:/opera/.test(ua),msie:/msie/.test(ua)&&!/opera/.test(ua),mozilla:/mozilla/.test(ua)&&!/(compatible|webkit)/.test(ua)}})(nav.userAgent.toLowerCase());SWFWheel.join=function(id){var t=setInterval(function(){if(SWFWheel.retrieveObject(id)){clearInterval(t);new SWFWheel(id);}},0);};SWFWheel.force=function(id){if(SWFWheel.browser.safari||SWFWheel.browser.stainless)return true;var el=SWFWheel.retrieveObject(id),name=el.nodeName.toLowerCase();if(name=='object'){var k,v,param,params=el.getElementsByTagName('param'),len=params.length;for(var i=0;i<len;i++){param=params[i];if(param.parentNode!=el)continue;k=param.getAttribute('name');v=param.getAttribute('value')||'';if(/wmode/i.test(k)&&/(opaque|transparent)/i.test(v))return true;}}else if(name=='embed'){return/(opaque|transparent)/i.test(el.getAttribute('wmode'));}return false;};SWFWheel.retrieveObject=function(id){var el=doc.getElementById(id);if(!el){var nodes=doc.getElementsByTagName('embed'),len=nodes.length;for(var i=0;i<len;i++){if(nodes[i].getAttribute('name')==id){el=nodes[i];break;}}}return el;};}";
public static const CHECK_FORCE_EXTERNAL_FUNCTION:String = "SWFWheel.force";
public static const EXECUTE_LIBRARY_FUNCTION:String = "SWFWheel.join";
private static var _item:InteractiveObject;
private static var _event:MouseEvent;
private static var _stage:Stage;
private static function mouseMoved(_arg1:MouseEvent):void{
_item = InteractiveObject(_arg1.target);
_event = MouseEvent(_arg1);
}
private static function externalMouseEvent(_arg1:Number):void{
if ((((_event == null)) || ((_item == null)))){
return;
};
var _local2:MouseEvent = new MouseEvent(MouseEvent.MOUSE_WHEEL, true, false, _event.localX, _event.localY, _event.relatedObject, _event.ctrlKey, _event.altKey, _event.shiftKey, _event.buttonDown, int(_arg1));
_item.dispatchEvent(_local2);
}
public static function initialize(_arg1:Stage):void{
if (((!(available)) || (isReady))){
return;
};
_stage = _arg1;
ExternalInterface.call(DEFINE_LIBRARY_FUNCTION);
ExternalInterface.call(EXECUTE_LIBRARY_FUNCTION, ExternalInterface.objectID);
var _local2:Boolean = Boolean(!((Capabilities.os.toLowerCase().indexOf("mac") === -1)));
var _local3:Boolean = Boolean(ExternalInterface.call(CHECK_FORCE_EXTERNAL_FUNCTION, ExternalInterface.objectID));
if (((!(_local2)) && (!(_local3)))){
return;
};
_stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoved);
ExternalInterface.addCallback("externalMouseEvent", externalMouseEvent);
}
public static function get available():Boolean{
var f:Boolean;
if (!(ExternalInterface.available)){
return (f);
};
try {
f = Boolean(ExternalInterface.call("function(){return true;}"));
} catch(e:Error) {
trace("Warning: turn off SWFWheel because can't access external interface.");
};
return (f);
}
public static function get isReady():Boolean{
return (!((_stage == null)));
}
}
}//package org.libspark.ui
Section 263
//_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 264
//_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 265
//_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 266
//_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 267
//_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 268
//_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 269
//_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 270
//_globalStyle (_globalStyle)
package {
import mx.core.*;
import mx.skins.halo.*;
import mx.styles.*;
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 271
//_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 272
//_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 273
//_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 274
//_nu1109 (_nu1109)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class _nu1109 extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):_nu1109{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:_nu1109 = new (_nu1109);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4:String = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 275
//_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 276
//_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 277
//_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 278
//_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 279
//_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 280
//_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 281
//_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 282
//_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 283
//_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 284
//_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 285
//_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
Section 286
//_xj26 (_xj26)
package {
import flash.events.*;
import flash.display.*;
import game.*;
import menu.*;
public class _xj26 extends Sprite {
protected var _lo1407:_ei813;
private var _fl268:Boolean;// = false
public static const _sl823:uint = 1;
public static const _sv117:uint = 9;
public static const _jq1316:uint = 8;
public static const _nx502:uint = 0;
public static const _jd191:uint = 6;
public static const _ym1343:uint = 2;
public static const _qf1123:uint = 7;
public static const _tp617:uint = 10;
public static const _um1141:uint = 3;
public static const _og1337:uint = 5;
public static const _ss905:uint = 4;
public function _xj26(){
super();
trace("Run game");
_lo1407 = new _ei813();
addChild(_lo1407);
addEventListener(Event.ADDED_TO_STAGE, function (_arg1:Event):void{
_ky144();
});
_ky144();
}
protected function init(_arg1:Event=null):void{
_lo1407.init();
_hr1396._rv1058(0);
var _local2:_nr392 = new _nr392(_lo1407);
var _local3:_kx712 = new _kx712(_lo1407);
_local3._is163(0);
_lo1407._yg198(_sl823, new _nm1416(_lo1407));
_lo1407._yg198(_tp617, new _vc823(_lo1407));
_lo1407._yg198(_ym1343, _local2);
_lo1407._yg198(_um1141, new _rm823(_lo1407));
_lo1407._yg198(_og1337, new _ee1338(_lo1407));
_lo1407._yg198(_qf1123, new _ao276(_lo1407));
_lo1407._yg198(_nx502, new _lj1296(_lo1407));
_lo1407._yg198(_jq1316, new _tq940(_lo1407));
_lo1407._yg198(_jd191, _local3);
_lo1407._yg198(_sv117, new _rn1329(_lo1407));
_local2._gd776(0);
_lo1407._rw975(_nx502);
}
private function _ky144():void{
if (((_fl268) || ((stage == null)))){
return;
};
_fl268 = true;
var _local1:_sq637 = _sq637.getInstance();
_local1.addEventListener(Event.INIT, init);
_local1.init(this);
}
}
}//package
Section 287
//en_US$core_properties (en_US$core_properties)
package {
import mx.resources.*;
public class en_US$core_properties extends ResourceBundle {
public function en_US$core_properties(){
super("en_US", "core");
}
override protected function getContent():Object{
var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."};
return (_local1);
}
}
}//package
Section 288
//en_US$skins_properties (en_US$skins_properties)
package {
import mx.resources.*;
public class en_US$skins_properties extends ResourceBundle {
public function en_US$skins_properties(){
super("en_US", "skins");
}
override protected function getContent():Object{
var _local1:Object = {notLoaded:"Unable to load '{0}'."};
return (_local1);
}
}
}//package
Section 289
//en_US$styles_properties (en_US$styles_properties)
package {
import mx.resources.*;
public class en_US$styles_properties extends ResourceBundle {
public function en_US$styles_properties(){
super("en_US", "styles");
}
override protected function getContent():Object{
var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."};
return (_local1);
}
}
}//package
Section 290
//MyFactory (MyFactory)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import game.*;
public class MyFactory extends MovieClip {
private var _nl38:Number;
private var _xd152:Timer;
private var preloader:DisplayObject;
private var Preloader:Class;
public function MyFactory(){
Preloader = MyFactory_Preloader;
super();
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.quality = StageQuality.BEST;
_nl38 = 0;
_xd152 = new Timer(100);
_xd152.addEventListener(TimerEvent.TIMER, onEnterFrame);
_xd152.start();
preloader = new Preloader();
preloader.x = ((_kp1329._mc605 - preloader.width) / 2);
preloader.y = ((_kp1329._dq388 - preloader.height) / 2);
addChild(preloader);
}
private function init():void{
var _local2:DisplayObject;
trace("MyFactory.init()");
trace("enter frame listener removed again");
removeChild(preloader);
nextFrame();
trace("next frame reached");
trace("searching for main class...");
var _local1:Class = Class(getDefinitionByName("RunPort"));
trace("...found");
if (_local1){
_local2 = new (_local1);
trace("app class created");
addChild((_local2 as DisplayObject));
};
}
public function onEnterFrame(_arg1:Event):void{
_nl38 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
if (_nl38 >= 1){
_nl38 = 1;
};
if (_nl38 >= 1){
_xc25();
};
}
private function _xc25():void{
if (_nl38 == 1){
_xd152.removeEventListener(TimerEvent.TIMER, onEnterFrame);
_xd152.stop();
trace("enter frame listener removed");
init();
};
}
}
}//package
Section 291
//MyFactory_Preloader (MyFactory_Preloader)
package {
import flash.utils.*;
import mx.core.*;
public class MyFactory_Preloader extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function MyFactory_Preloader(){
dataClass = MyFactory_Preloader_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package
Section 292
//MyFactory_Preloader_dataClass (MyFactory_Preloader_dataClass)
package {
import mx.core.*;
public class MyFactory_Preloader_dataClass extends ByteArrayAsset {
}
}//package
Section 293
//RunPort (RunPort)
package {
import flash.events.*;
import flash.display.*;
import game.*;
import flash.net.*;
import menu.*;
import flash.utils.*;
import com.herocraft.*;
public class RunPort extends Sprite {
private const _du730:Class;
private const _ve575:Class;
private const _dn774:Class;
private const _ci514:Class;
private const _pe1144:Class;
private const _gu1439:Class;
private var _pw1041:Sprite;
protected var _lo1407:_ei813;
private var _bf836:DisplayObject;
private var _fl268:Boolean;// = false
public static const _sl823:uint = 1;
private static const _ci661:uint = 322;
public static const _jd191:uint = 6;
public static const _ym1343:uint = 2;
public static const _sv117:uint = 9;
public static const _um1141:uint = 3;
public static const _qf1123:uint = 7;
public static const _ss905:uint = 4;
public static const _tp617:uint = 10;
private static const _gb1204:String = "zjqPfVwO0gZqJCb";
private static const _jy891:String = "dog-pound";
public static const _jq1316:uint = 8;
public static const _nx502:uint = 0;
private static const _xj1263:String = "http://www.badhed.com/";
public static const _og1337:uint = 5;
public function RunPort(){
_dn774 = RunPort__dn774;
_du730 = RunPort__du730;
_pe1144 = RunPort__pe1144;
_ve575 = RunPort__ve575;
_ci514 = RunPort__ci514;
_gu1439 = RunPort__gu1439;
super();
_lo1407 = new _ei813();
addChild(_lo1407);
_pw1041 = new Sprite();
var s:DisplayObject = new _gu1439();
_pw1041.addChild(s);
s.x = ((_kp1329._mc605 - s.width) / 2);
s.y = ((_kp1329._dq388 - s.height) / 2);
var _local2 = _pw1041.graphics;
with (_local2) {
beginFill(0);
drawRect(0, 0, _kp1329._mc605, _kp1329._dq388);
endFill();
};
var _vl769:Sprite = new Sprite();
_local2 = _vl769.graphics;
with (_local2) {
beginFill(0);
drawRect(0, 0, _kp1329._mc605, _kp1329._dq388);
endFill();
};
_vl769.alpha = 0;
_vl769.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
navigateToURL(new URLRequest("http://www.herocraft.com/?ch=mumu_flash"));
});
_pw1041.addChild(_vl769);
addChild(_pw1041);
addEventListener(Event.ADDED_TO_STAGE, function (_arg1:Event):void{
_ky144();
});
}
private function _ky144():void{
if (((_fl268) || ((stage == null)))){
return;
};
_fl268 = true;
var _local1:_sq637 = _sq637.getInstance();
_local1.addEventListener(Event.INIT, init);
_local1.init(this);
}
protected function init(_arg1:Event=null):void{
var _xt1345:_nr392;
var _ta69:Sprite;
var _bi1377:ZattikkaHiScores;
var _id1397:DisplayObject;
var _qh596:Timer;
var _ob323:Timer;
var _wr400 = _arg1;
_nu1109.track(this, "ae45256e");
_lo1407.init();
_hr1396._rv1058(0);
_xt1345 = new _nr392(_lo1407);
var _vu696:_kx712 = new _kx712(_lo1407);
_vu696._is163(0);
var _xf534:_nm1416 = new _nm1416(_lo1407);
_lo1407._yg198(_sl823, _xf534);
_lo1407._yg198(_tp617, new _vc823(_lo1407));
_lo1407._yg198(_ym1343, _xt1345);
_lo1407._yg198(_um1141, new _rm823(_lo1407));
_lo1407._yg198(_og1337, new _ee1338(_lo1407));
_lo1407._yg198(_qf1123, new _ao276(_lo1407));
var _lu438:_lj1296 = new _lj1296(_lo1407);
_lo1407._yg198(_nx502, _lu438);
_lo1407._yg198(_jq1316, new _tq940(_lo1407));
_lo1407._yg198(_jd191, _vu696);
_lo1407._yg198(_sv117, new _rn1329(_lo1407));
_xt1345._gd776(0);
var _vl769:Sprite = new _du730();
_kf311(_vl769, (_xj1263 + "?ref=dog-pound_TITLE"));
_vl769.x = ((_kp1329._mc605 - _vl769.width) / 2);
_vl769.y = ((_kp1329._dq388 - _vl769.height) - _fy615._vi285);
_lo1407._ds577().addChild(_vl769);
var c:DisplayObjectContainer = (_vu696.getControl() as DisplayObjectContainer);
_vl769 = new _dn774();
_kf311(_vl769, (_xj1263 + "?ref=dog-pound_INTERVAL"));
_vl769.x = ((_kp1329._mc605 - _vl769.width) / 2);
_vl769.y = ((_kp1329._dq388 - _vl769.height) - _fy615._vi285);
c.addChild(_vl769);
c = (_xt1345.getControl() as DisplayObjectContainer);
_vl769 = new _pe1144();
_kf311(_vl769, (_xj1263 + "?ref=dog-pound_INGAMELOGO"));
_vl769.x = ((_kp1329._mc605 - _vl769.width) / 2);
_vl769.y = _fy615._vi285;
c.addChild(_vl769);
_ta69 = new Sprite();
_bi1377 = new ZattikkaHiScores();
_ta69.addChild(_bi1377);
var _jo552:_xy783 = new _xy783(-1, _sq637.getInstance()._rj1381(_ol205._gk860), _pg1228._lk422);
_jo552.addEventListener(_xy783._ir1372, function (_arg1:Event):void{
removeChild(_ta69);
});
_ta69.addChild(_jo552);
_jo552.x = ((_bi1377.x + _bi1377.width) - 10);
_jo552.y = (_bi1377.y - 10);
_ta69.x = ((_kp1329._mc605 - _ta69.width) / 2);
_ta69.y = 70;
_xt1345.addEventListener(_nr392._cj331, function (_arg1:Event):void{
addChild(_ta69);
var _local2:uint = _xt1345._lj664();
_bi1377.setDetails(_ci661, _hr1396._ec1277(), _jy891, _gb1204, false, _local2, (_local2 + ""), "points!", false);
});
_id1397 = new _ci514();
_qh596 = new Timer(3000);
_qh596.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
_qh596.stop();
_id1397.x = ((_kp1329._mc605 - _id1397.width) / 2);
_id1397.y = 400;
addChild(_id1397);
});
_bf836 = new _ve575();
_bf836.x = ((_kp1329._mc605 - _bf836.width) / 2);
_bf836.y = ((_kp1329._dq388 - _bf836.height) / 2);
_id1397.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
removeChild(_bf836);
removeChild(_id1397);
_lo1407._rw975(_nx502);
});
_ob323 = new Timer(3500);
_ob323.addEventListener(TimerEvent.TIMER, function (_arg1:Event):void{
_ob323.stop();
removeChild(_pw1041);
addChild(_bf836);
_qh596.start();
});
_ob323.start();
}
private static function _kf311(_arg1:Sprite, _arg2:String):void{
var d = _arg1;
var link = _arg2;
var _kt1429:Sprite = new Sprite();
_kt1429.alpha = 0;
d.addChild(_kt1429);
var _gu417:Graphics = _kt1429.graphics;
_gu417.beginFill(0);
_gu417.drawRect(0, 0, d.width, d.height);
_gu417.endFill();
d.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:Event):void{
navigateToURL(new URLRequest(link));
});
}
}
}//package
Section 294
//RunPort__ci514 (RunPort__ci514)
package {
import mx.core.*;
public class RunPort__ci514 extends ButtonAsset {
}
}//package
Section 295
//RunPort__dn774 (RunPort__dn774)
package {
import mx.core.*;
public class RunPort__dn774 extends SpriteAsset {
}
}//package
Section 296
//RunPort__du730 (RunPort__du730)
package {
import mx.core.*;
public class RunPort__du730 extends SpriteAsset {
}
}//package
Section 297
//RunPort__gu1439 (RunPort__gu1439)
package {
import flash.utils.*;
import mx.core.*;
public class RunPort__gu1439 extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function RunPort__gu1439(){
dataClass = RunPort__gu1439_dataClass;
super();
initialWidth = (10000 / 20);
initialHeight = (7000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package
Section 298
//RunPort__gu1439_dataClass (RunPort__gu1439_dataClass)
package {
import mx.core.*;
public class RunPort__gu1439_dataClass extends ByteArrayAsset {
}
}//package
Section 299
//RunPort__pe1144 (RunPort__pe1144)
package {
import mx.core.*;
public class RunPort__pe1144 extends SpriteAsset {
}
}//package
Section 300
//RunPort__ve575 (RunPort__ve575)
package {
import flash.utils.*;
import mx.core.*;
public class RunPort__ve575 extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function RunPort__ve575(){
dataClass = RunPort__ve575_dataClass;
super();
initialWidth = (16000 / 20);
initialHeight = (12000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package
Section 301
//RunPort__ve575_dataClass (RunPort__ve575_dataClass)
package {
import mx.core.*;
public class RunPort__ve575_dataClass extends ByteArrayAsset {
}
}//package
Section 302
//ZattikkaHiScores (ZattikkaHiScores)
package {
import flash.events.*;
import flash.net.*;
import flash.display.*;
import flash.external.*;
import com.hexagonstar.util.debug.*;
public class ZattikkaHiScores extends MovieClip {
private const EVENT_VIEW_HI_SCORE:String = "ViewHiScore=";
private const MSG_SERVER_ERROR:String = "Could not contact server, please try again in a few minutes.";
private const FB_ACTION:String = "/Facebook.action?";
private const HS_PLATFORM_WEB:int = 0;
private const TEST_SERVER_URL:String = "http://api.staging.zattikka.com";
private const DEV_TEST_MODE_FB:int = 2;
private const EVENT_SUBMIT_HI_SCORE:String = "SubmitHiScore=";
private const DEV_TEST_MODE_G5:int = 1;
private const VERSION_NUM:String = "1.0.13 (AS3)";
private const TW_ACTION:String = "/Twitter.action?";
private const LIVE_SERVER_URL:String = "http://api.zattikka.com";
private const MSG_SUBMITTING_DETAILS:String = "Submitting hi-score details to the server, please wait.";
private const GFTP_URL:String = "http://www.gamesfortheplanet.com";
private const MSG_PLEASE_ENTER_NICKNAME:String = "Please enter your nickname.";
private const EVENT_GET_HI_SCORES_RANGE:String = "GetHiScoresRange=";
private const EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL:String = "PublishHiScoreFeedExternal=";
private const EVENT_POST_TWEET:String = "PostTweet=";
private const HS_PLATFORM_FACEBOOK:int = 1;
private const HS_ACTION:String = "/HiScore.action?";
private const EVENT_PUBLISH_HI_SCORE_FEED:String = "PublishHiScoreFeed=";
private const DEV_TEST_MODE_OFF:int = 0;
public var btnGFTP:SimpleButton;
private var gameKey:String;
private var SERVER_URL:String;// = "http://api.zattikka.com"
private var g5UserExists:Boolean;
private var entryScreen:MovieClip;// = null
private var devTestMode:int;// = 0
private var caller:Object;
private var score:Number;
private var g5User:Object;
private var cxn:LocalConnection;
private var lowIsBest:Boolean;
private var fbUser:Object;
private var gameId:Number;
private var infoScreen:MovieClip;// = null
private var levelId:Number;
private var fbSessionKey:String;
public var movEntryScreen:MovieClip;
private var msg1:String;
private var msg2:String;
private var fbUserExists:Boolean;
public var movInfoScreen:MovieClip;
private var gameCode:String;
public function ZattikkaHiScores(){
debug((("[ZattikkaHiScores VERSION " + VERSION_NUM) + "]"));
this.visible = false;
}
private function grabG5User():void{
this.g5User = ExternalInterface.call("getG5User");
this.g5UserExists = ((g5User == null)) ? false : !(isNaN(this.g5User[0]));
if (devTestMode == DEV_TEST_MODE_G5){
this.g5User = new Array("9", "RocketRonz");
this.g5UserExists = ((g5User == null)) ? false : !(isNaN(this.g5User[0]));
};
debug(("[ZattikkaHiScores::grabG5User] " + (g5UserExists) ? ((("userId = " + this.g5User[0]) + ", userName = ") + this.g5User[1]) : "g5User is empty"));
}
private function grabFacebookUser():void{
this.fbUser = ExternalInterface.call("getFBUser");
this.fbUserExists = ((fbUser == null)) ? false : !(isNaN(this.fbUser[0]));
this.fbSessionKey = ExternalInterface.call("getFBSessionKey");
if (devTestMode == DEV_TEST_MODE_FB){
this.fbUser = new Array("1383775213", "Dolphin Gimme-Five");
this.fbUserExists = ((fbUser == null)) ? false : !(isNaN(this.fbUser[0]));
this.fbSessionKey = "ad4dff81c4d2467efc456072-1383775213";
};
debug(("[ZattikkaHiScores::grabFacebookUser] " + (fbUserExists) ? ((((("userId = " + this.fbUser[0]) + ", userName = ") + this.fbUser[1]) + ", sessionKey = ") + this.fbSessionKey) : "fbUser is empty"));
}
public function getHiScoresRange(_arg1:Object, _arg2:Number, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Boolean, _arg8:Boolean=false):void{
debug(((((((((((("[ZattikkaHiScores::getHiScoresRange] gameId = " + _arg2) + ", startLevel = ") + _arg3) + ", endLevel = ") + _arg4) + ", startPos = ") + _arg5) + ", endPos = ") + _arg6) + ", lowIsBest = ") + _arg7));
initServerURL(_arg8);
this.caller = _arg1;
var _local9:URLVariables = new URLVariables();
_local9.gameId = _arg2;
_local9.startLevel = _arg3;
_local9.endLevel = _arg4;
_local9.startPos = _arg5;
_local9.endPos = _arg6;
_local9.lowIsBest = _arg7;
hitServer(HS_ACTION, EVENT_GET_HI_SCORES_RANGE, _local9);
}
private function getRandomString(_arg1:int):String{
var _local2:String = "";
var _local3:int;
while (_local3 < _arg1) {
_local2 = (_local2 + String.fromCharCode(getRandom(48, 122)));
_local3++;
};
return (_local2);
}
public function showInfoMessage(_arg1:String, _arg2:Boolean):void{
infoScreen["txtInfo"].text = _arg1;
infoScreen["btnBack"].visible = _arg2;
infoScreen["btnView"].visible = ((!(_arg2)) && (!(fbUserExists)));
infoScreen.visible = true;
entryScreen.visible = false;
}
private function showEntryScreen():void{
entryScreen["txtMsg1"].text = msg1;
entryScreen["txtMsg2"].text = msg2;
entryScreen["movNameAuto"].visible = ((g5UserExists) || (fbUserExists));
entryScreen["movNameManual"].visible = ((!(g5UserExists)) && (!(fbUserExists)));
entryScreen["movNameAuto"]["txtName"].text = (g5UserExists) ? this.g5User[1] : (fbUserExists) ? this.fbUser[1] : "";
entryScreen["movNameManual"]["txtName"].text = "";
entryScreen.visible = true;
infoScreen.visible = false;
}
private function replaceAll(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:String = "";
var _local5:int;
while (_local5 < _arg1.length) {
if (_arg1.charAt(_local5) == _arg2){
_local4 = (_local4 + _arg3);
} else {
_local4 = (_local4 + _arg1.charAt(_local5));
};
_local5++;
};
return (_local4);
}
private function xor(_arg1:String, _arg2:String, _arg3:Boolean):String{
var _local7:int;
var _local4:String = "";
var _local5:int;
var _local6:int;
while (_local5 < _arg1.length) {
if (_local6 >= _arg2.length){
_local6 = 0;
};
_local7 = ((_arg1.charCodeAt(_local5) ^ _arg2.charCodeAt(_local6)) + 1);
if (_arg3){
debug(((("charCode = " + _local7) + " = ") + String.fromCharCode(_local7)));
};
_local4 = (_local4 + String.fromCharCode(_local7));
_local5++;
_local6++;
};
return (_local4);
}
private function submitScore():void{
showInfoMessage(MSG_SUBMITTING_DETAILS, false);
infoScreen.visible = true;
entryScreen.visible = false;
var _local1:int = (fbUserExists) ? HS_PLATFORM_FACEBOOK : HS_PLATFORM_WEB;
var _local2:String = "";
var _local3:String = "";
if (fbUserExists){
_local3 = this.fbUser[0];
_local2 = this.fbUser[1];
} else {
if (g5UserExists){
_local3 = this.g5User[0];
_local2 = this.g5User[1];
} else {
_local2 = entryScreen["movNameManual"]["txtName"].text;
};
};
var _local4:String = String(new Date().getTime());
var _local5:String = _local4.split("").reverse().join("");
var _local6:String = xor(_local5, this.gameKey, false);
var _local7:String = "";
_local7 = (_local7 + (this.gameId + ","));
_local7 = (_local7 + (this.levelId + ","));
_local7 = (_local7 + (_local1 + ","));
_local7 = (_local7 + (this.score + ","));
_local7 = (_local7 + (_local3 + ","));
_local7 = (_local7 + (replaceAll(_local2, ",", "") + ","));
_local7 = (_local7 + ",");
_local7 = (_local7 + lowIsBest);
var _local8:String = xor(_local7, _local6, false);
debug(((("key [" + _local6.length) + "] = ") + _local6));
debug(((("plain [" + _local7.length) + "] = ") + _local7));
debug(((("cipher [" + _local8.length) + "] = ") + _local8));
_local8 = ((getRandomString(5) + _local8) + getRandomString(5));
var _local9:URLVariables = new URLVariables();
_local9.gameId = this.gameId;
_local9.platformId = _local1;
_local9.time = _local4;
_local9.data = _local8;
_local9.returnMessage = true;
hitServer(HS_ACTION, EVENT_SUBMIT_HI_SCORE, _local9);
}
private function debug(_arg1:String):void{
trace(_arg1);
Debug.trace(_arg1);
}
private function facebookFeedExternal():void{
navigateToURL(new URLRequest(((SERVER_URL + FB_ACTION) + EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL)), "_blank");
try {
cxn = new LocalConnection();
cxn.allowDomain("*");
cxn.client = this;
cxn.connect("_cxnZattikkaHS");
} catch(err:Error) {
};
}
public function setDetails(_arg1:Number, _arg2:Number, _arg3:String, _arg4:String, _arg5:Boolean, _arg6:Number, _arg7:String, _arg8:String, _arg9:Boolean=false):void{
var gameId = _arg1;
var levelId = _arg2;
var gameCode = _arg3;
var gameKey = _arg4;
var lowIsBest = _arg5;
var score = _arg6;
var msg1 = _arg7;
var msg2 = _arg8;
var testMode = _arg9;
debug(((((((((("[ZattikkaHiScores::setDetails] gameId = " + gameId) + ", levelId = ") + levelId) + ", gameCode = ") + gameCode) + ", lowIsBest = ") + lowIsBest) + ", score = ") + score));
initServerURL(testMode);
entryScreen = this["movEntryScreen"];
infoScreen = this["movInfoScreen"];
entryScreen.visible = false;
infoScreen.visible = false;
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.gameKey = gameKey;
this.lowIsBest = lowIsBest;
this.score = score;
this.msg1 = msg1;
this.msg2 = msg2;
try {
grabG5User();
if (!(g5UserExists)){
grabFacebookUser();
};
} catch(err:Error) {
};
this["btnGFTP"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnSubmit"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnTwitter"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnFacebook"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnView"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnBack"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
if (fbUserExists){
btn_submitScore();
} else {
showEntryScreen();
};
this.visible = true;
}
private function facebookFeed():void{
var _local1:URLVariables = new URLVariables();
_local1.gameId = this.gameId;
_local1.levelId = this.levelId;
_local1.score = this.score;
_local1.sessionKey = this.fbSessionKey;
_local1.returnMessage = true;
hitServer(FB_ACTION, EVENT_PUBLISH_HI_SCORE_FEED, _local1);
}
public function setFBUser(_arg1:String, _arg2:String):void{
debug(((("[ZattikkaHiScores::setFBUser] fbUserId = " + _arg1) + ", fbSessionKey = ") + _arg2));
this.fbUser = new Array(_arg1, "");
this.fbUserExists = true;
this.fbSessionKey = _arg2;
cxn.close();
facebookFeed();
}
public function loadHandler(_arg1:String, _arg2:Boolean, _arg3:Event):void{
var response:URLLoader;
var xml:XML;
var resCode:int;
var stripesEvent = _arg1;
var success = _arg2;
var event = _arg3;
debug(((((("[ZattikkaHiScores::loadHandler] stripesEvent = " + stripesEvent) + ", success = ") + success) + ", event = ") + event.toString()));
if (!(success)){
if (stripesEvent == EVENT_GET_HI_SCORES_RANGE){
caller.getHiScoresRange_Error();
} else {
showInfoMessage(MSG_SERVER_ERROR, true);
};
} else {
response = URLLoader(event.target);
xml = new XML(response.data);
resCode = xml.@code;
switch (stripesEvent){
case EVENT_SUBMIT_HI_SCORE:
showInfoMessage(xml.@msg, (resCode == -1));
if (((fbUserExists) && ((((resCode == 1)) || ((resCode == 2)))))){
try {
ExternalInterface.call("refreshFBHiScores", this.score, this.levelId);
ExternalInterface.call("streamPublish_FBConnect", this.msg1, this.levelId);
} catch(err:Error) {
};
};
break;
case EVENT_PUBLISH_HI_SCORE_FEED:
submitScore();
break;
case EVENT_GET_HI_SCORES_RANGE:
caller.getHiScoresRange_Callback(xml);
break;
};
};
}
private function getRandom(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1));
}
private function hitServer(_arg1:String, _arg2:String, _arg3:URLVariables):void{
var stripesAction = _arg1;
var stripesEvent = _arg2;
var vars = _arg3;
debug(((("[ZattikkaHiScores::hitServer] url = " + SERVER_URL) + stripesAction) + stripesEvent));
var request:URLRequest = new URLRequest(((SERVER_URL + stripesAction) + stripesEvent));
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
request.data = vars;
request.method = URLRequestMethod.POST;
request.requestHeaders = new Array(new URLRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"));
loader.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
loadHandler(stripesEvent, true, _arg1);
});
loader.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:Event):void{
loadHandler(stripesEvent, false, _arg1);
});
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (_arg1:Event):void{
loadHandler(stripesEvent, false, _arg1);
});
loader.load(request);
}
private function twitterTweet():void{
var _local1:String = ((SERVER_URL + TW_ACTION) + EVENT_POST_TWEET);
_local1 = (_local1 + ("&gameId=" + this.gameId));
_local1 = (_local1 + ("&levelId=" + this.levelId));
_local1 = (_local1 + ("&score=" + this.score));
navigateToURL(new URLRequest(_local1), "_blank");
submitScore();
}
public function onButtonPress(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "btnGFTP":
navigateToURL(new URLRequest(GFTP_URL), "_blank");
break;
case "btnSubmit":
btn_submitScore();
break;
case "btnTwitter":
if (((((!(this.g5UserExists)) && (!(this.fbUserExists)))) && ((entryScreen["movNameManual"]["txtName"].text.length == 0)))){
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
twitterTweet();
};
break;
case "btnFacebook":
if (this.fbUserExists){
facebookFeed();
} else {
facebookFeedExternal();
};
break;
case "btnView":
viewScore();
break;
case "btnBack":
setDetails(this.gameId, this.levelId, this.gameCode, this.gameKey, this.lowIsBest, this.score, this.msg1, this.msg2);
break;
};
}
public function viewScore():void{
var _local1:String = ((SERVER_URL + HS_ACTION) + EVENT_VIEW_HI_SCORE);
_local1 = (_local1 + ("&gameId=" + this.gameId));
_local1 = (_local1 + ("&levelId=" + this.levelId));
_local1 = (_local1 + ("&platformId=" + HS_PLATFORM_WEB));
_local1 = (_local1 + ("&gameCode=" + this.gameCode));
if (this.g5UserExists){
_local1 = (_local1 + ("&userId=" + this.g5User[0]));
} else {
_local1 = (_local1 + ("&name=" + entryScreen["movNameManual"]["txtName"].text));
};
navigateToURL(new URLRequest(_local1), "_blank");
}
private function btn_submitScore():void{
if (((((!(this.g5UserExists)) && (!(this.fbUserExists)))) && ((entryScreen["movNameManual"]["txtName"].text.length == 0)))){
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
submitScore();
};
}
public function initServerURL(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_arg1){
SERVER_URL = TEST_SERVER_URL;
} else {
_local2 = LoaderInfo(this.root.loaderInfo).parameters;
_local3 = _local2["svrUrl"];
if (((!((_local3 == null))) && ((_local3.length > 0)))){
SERVER_URL = String(_local3);
};
};
debug(("[ZattikkaHiScores::initServerURL] SERVER_URL = " + SERVER_URL));
}
}
}//package