Section 1
//_ad1194 (ambiera._ad1194)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class _ad1194 extends UIComponent {
private var _nd429:Array;
private var _nd2522:Array;
private var _sw689:Number;
public function _ad1194(_arg1:DisplayObjectContainer){
_sw689 = 0;
_nd2522 = new Array();
_nd429 = new Array();
if (_arg1){
_arg1.addChild(this);
};
}
public function _vx1068(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < _nd429.length)))){
_sw689 = _arg1;
_hp519();
};
}
private function _so2912(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _nd2522.length) {
if (_nd2522[_local3] == _local2){
_sw689 = _local3;
break;
};
_local3++;
};
_hp519();
}
public function _fr2300():void{
var _local1:Graphics = graphics;
var _local2:Bitmap = _ks1885._oj3099._na1609;
_local1.beginFill(15259841);
graphics.drawRect(0, 0, width, (height - _local2.height));
_local1.endFill();
var _local3:Matrix = new Matrix();
_local3.a = -1;
_local3.d = -1;
_local3.ty = (height - _local2.height);
graphics.beginBitmapFill(_local2.bitmapData, _local3);
graphics.drawRect(0, (height - _local2.height), width, _local2.height);
graphics.endFill();
_local1.lineStyle(1, 0, 1);
graphics.drawRect(0, 25, width, (height - 25));
_local1.lineStyle();
}
public function _td246():int{
return (_sw689);
}
public function _oy2532(_arg1:int):UIComponent{
if (_arg1 >= _nd429.length){
return (null);
};
return ((_nd429[_arg1] as UIComponent));
}
public function addItem(_arg1:DisplayObject, _arg2:Number):void{
var _local3:UIComponent = _nd429[_arg2];
_local3.addChild(_arg1);
}
private function _hp519():void{
var _local1:Number = 0;
var _local2:Number = 0;
while (_local2 < _nd2522.length) {
_nd2522[_local2].x = _local1;
_nd2522[_local2].enabled = !((_sw689 == _local2));
_nd2522[_local2]._yi2089((_sw689 == _local2));
_local1 = (_local1 + (_nd2522[_local2].width + 1));
_nd429[_local2].visible = (_sw689 == _local2);
_local2++;
};
}
public function _ne1505(_arg1:String):void{
var _local3:UIComponent;
var _local2:_oc1935 = new _oc1935(_arg1);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _so2912);
_nd2522.push(_local2);
addChild(_local2);
_local3 = new UIComponent();
_local3.x = 0;
_local3.y = _local2.height;
_local3.width = width;
_local3.height = ((height - _local3.height) - _local3.y);
_nd429.push(_local3);
_hp519();
addChild(_local3);
}
}
}//package ambiera
Section 2
//_ai258 (ambiera._ai258)
package ambiera {
import flash.utils.*;
public class _ai258 {
private static const _md2047:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
public static function decode(_arg1:String):ByteArray{
var _local6:uint;
var _local7:uint;
var _local2:ByteArray = new ByteArray();
var _local3:Array = new Array(4);
var _local4:Array = new Array(3);
var _local5:uint;
while (_local5 < _arg1.length) {
_local6 = 0;
while ((((_local6 < 4)) && (((_local5 + _local6) < _arg1.length)))) {
_local3[_local6] = _md2047.indexOf(_arg1.charAt((_local5 + _local6)));
_local6++;
};
_local4[0] = ((_local3[0] << 2) + ((_local3[1] & 48) >> 4));
_local4[1] = (((_local3[1] & 15) << 4) + ((_local3[2] & 60) >> 2));
_local4[2] = (((_local3[2] & 3) << 6) + _local3[3]);
_local7 = 0;
while (_local7 < _local4.length) {
if (_local3[(_local7 + 1)] == 64){
break;
};
_local2.writeByte(_local4[_local7]);
_local7++;
};
_local5 = (_local5 + 4);
};
_local2.position = 0;
return (_local2);
}
public static function encode(_arg1:ByteArray):String{
var _local3:Array;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local2 = "";
var _local4:Array = new Array(4);
_arg1.position = 0;
while (_arg1.bytesAvailable > 0) {
_local3 = new Array();
_local5 = 0;
while ((((_local5 < 3)) && ((_arg1.bytesAvailable > 0)))) {
_local3[_local5] = _arg1.readUnsignedByte();
_local5++;
};
_local4[0] = ((_local3[0] & 252) >> 2);
_local4[1] = (((_local3[0] & 3) << 4) | (_local3[1] >> 4));
_local4[2] = (((_local3[1] & 15) << 2) | (_local3[2] >> 6));
_local4[3] = (_local3[2] & 63);
_local6 = _local3.length;
while (_local6 < 3) {
_local4[(_local6 + 1)] = 64;
_local6++;
};
_local7 = 0;
while (_local7 < _local4.length) {
_local2 = (_local2 + _md2047.charAt(_local4[_local7]));
_local7++;
};
};
return (_local2);
}
}
}//package ambiera
Section 3
//_by515 (ambiera._by515)
package ambiera {
import flash.geom.*;
public class _by515 {
private var _ic1337:int;
private var entries:Array;
private var _xa220:int;
private var _hb1964:_ce283;
public static const _ow930:int = 10;
public function _by515(_arg1:int, _arg2:int, _arg3:_ce283){
_hb1964 = _arg3;
_xa220 = _arg1;
_ic1337 = _arg2;
entries = new Array();
_vm865();
}
private function _vm865():void{
var _local1:int = (_xa220 * _ic1337);
var _local2:int;
while (_local2 < _local1) {
entries[_local2] = -1;
_local2++;
};
}
public function _id875(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int=30):Point{
var _local9:int;
var _local10:Point;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
if ((((_arg1 == _arg3)) && ((_arg2 == _arg4)))){
return (null);
};
if ((((Math.abs((_arg1 - _arg3)) < 2)) && ((Math.abs((_arg2 - _arg4)) < 2)))){
return (new Point(_arg3, _arg4));
};
_vm865();
var _local6:Array = new Array();
var _local7:Array = new Array();
var _local8:int;
_local6.push(new Point(_arg1, _arg2));
while (((!((_local6.length == 0))) && ((_local8 < _arg5)))) {
_local7 = _local6;
_local6 = new Array();
_local9 = 0;
while (_local9 < _local7.length) {
_local10 = _local7[_local9];
_local11 = -1;
while (_local11 < 2) {
_local12 = -1;
while (_local12 < 2) {
_local13 = (_local10.x + _local11);
_local14 = (_local10.y + _local12);
if ((((((((((_local13 >= 0)) && ((_local13 < _xa220)))) && ((_local14 >= 0)))) && ((_local14 < _ic1337)))) && (!((((_local11 == 0)) && ((_local12 == 0))))))){
};
if ((((_local13 == _arg3)) && ((_local14 == _arg4)))){
return (_it1851(_arg1, _arg2, _arg3, _arg4));
};
if (entries[((_local14 * _xa220) + _local13)] == -1){
if (!_hb1964._uc1272(_local13, _local14)){
_local15 = 0;
if (_local13 != _arg3){
_local15++;
};
if (_local14 != _arg4){
_local15++;
};
entries[((_local14 * _xa220) + _local13)] = ((_local8 * _ow930) + _local15);
_local6.push(new Point(_local13, _local14));
} else {
entries[((_local14 * _xa220) + _local13)] = 65000;
};
};
_local12++;
};
_local11++;
};
_local9++;
};
_local8++;
};
return (null);
}
private function _it1851(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Point{
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local5:Point = new Point(0, 0);
var _local6:int = _arg3;
var _local7:int = _arg4;
var _local8 = -1;
var _local9:int;
var _local10:int;
while (true) {
_local8 = 65000;
_local14 = -1;
while (_local14 < 2) {
_local15 = -1;
while (_local15 < 2) {
_local11 = (_local6 + _local14);
_local12 = (_local7 + _local15);
if ((((((((((_local11 >= 0)) && ((_local11 < _xa220)))) && ((_local12 >= 0)))) && ((_local12 < _ic1337)))) && (!((((_local14 == 0)) && ((_local15 == 0))))))){
};
_local13 = entries[((_local12 * _xa220) + _local11)];
if (_local13 != -1){
if (_local13 < (2 * _ow930)){
return (new Point(_local11, _local12));
};
if (_local13 < _local8){
_local8 = _local13;
_local9 = _local11;
_local10 = _local12;
};
};
_local15++;
};
_local14++;
};
_local6 = _local9;
_local7 = _local10;
};
return (null);
}
}
}//package ambiera
Section 4
//_cb3393 (ambiera._cb3393)
package ambiera {
public class _cb3393 extends _iu1662 {
private var _ja922:int;
private var _ta654:int;
private var _mb2398:_xk85;
public function _cb3393(_arg1:_ex557, _arg2:_ps2722, _arg3:_gm2472, _arg4:_xk85, _arg5:_cb3393){
super(_arg1, _arg2, _arg3);
_mb2398 = _arg4;
_ja922 = 0;
if (_arg5){
_nm2269 = _arg5._cg411();
_ta654 = _arg5._em2028();
_uc3401 = _arg5._ra1205();
_eg927 = _arg5._up2621();
_mx3057 = _arg5._jt3165();
_ja922 = _arg5._ja922;
_jo1435 = _arg5._jo1435;
} else {
_nm2269 = _xq320();
_ta654 = _yi2782();
};
}
override protected function _uo1318():uint{
if (!_mb2398){
return (0);
};
return (_mb2398._uo1318());
}
override public function _fd2901():Boolean{
var _local2:uint;
if (!_mb2398){
return (false);
};
var _local1:uint = _mb2398._yd30();
if (_local1){
_local2 = _tv609._xe421(_local1);
return ((((((_local2 == _tv609._qr2537)) || ((_local2 == _tv609._vv2837)))) || ((_local2 == _tv609._mu1419))));
};
return (false);
}
public function _em2028():int{
return (_ta654);
}
public function _cu534(_arg1:int):void{
_ta654 = _arg1;
}
public function _yi2782():int{
if (!_mb2398){
return (0);
};
return (_mb2398._cy1309(_tv609._pj1857, true));
}
override public function _pw1802():Boolean{
if (!_mb2398){
return (false);
};
return (!((_mb2398._yd30() == 0)));
}
override public function _ac1551(_arg1:uint):int{
if (!_mb2398){
return (0);
};
if ((_arg1 & _tv609._vx2298)){
return (_mb2398._nn2548(_tv609._vx2298));
};
if ((_arg1 & _tv609._md25)){
return (_mb2398._nn2548(_tv609._md25));
};
if ((_arg1 & _tv609._hc397)){
return (_mb2398._nn2548(_tv609._hc397));
};
return (_mb2398._ga787());
}
override public function _vb2548():void{
super._vb2548();
if (_ja922){
_ja922 = (_ja922 - _hu1349);
if (_ja922 < 0){
_ja922 = 0;
};
} else {
_ta654 = (_ta654 + 1);
_ta654 = Math.min(_ta654, _yi2782());
_ja922 = (1000 * 60);
if (((_mb2398) && (_mb2398._sx1887(true)))){
_ja922 = Math.min(_ja922, ((1000 * 15) / _mb2398._sx1887(true)));
};
};
}
override protected function _hp1932():Number{
if (!_mb2398){
return (0);
};
return (_mb2398._op3085());
}
override public function _xq320():int{
if (!_mb2398){
return (0);
};
return (_mb2398._cy1309(_tv609._hi3134, true));
}
override public function _ol1457():Boolean{
if (!_mb2398){
return (false);
};
var _local1:uint = _mb2398._yd30();
if (_local1){
return (_tv609._on3351(_local1));
};
return (false);
}
}
}//package ambiera
Section 5
//_ce283 (ambiera._ce283)
package ambiera {
public class _ce283 {
private var _xa220:int;
private var entries:Array;
private var _ic1337:int;
private static const _mu1050:uint = 0xFF00;
private static const _kx2110:uint = 0xFF0000;
private static const _mi590:uint = 4278190080;
private static const _ij689:uint = 16;
private static const _wq265:uint = 24;
private static const _gp1717:uint = 8;
public function _ce283(_arg1:int, _arg2:int){
_xa220 = _arg1;
_ic1337 = _arg2;
entries = new Array();
var _local3:int;
while (_local3 < (_arg1 * _arg2)) {
entries[_local3] = null;
_local3++;
};
}
public function _ou1151(_arg1:int, _arg2:int):Boolean{
return (!((_fi585(_bb579(_arg1, _arg2)) == 0)));
}
public function _gq3031(_arg1:int, _arg2:int):uint{
return (_te3416(_bb579(_arg1, _arg2)));
}
public function _yx214(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int = _fi585(_bb579(_arg1, _arg2));
_local4 = (_local4 + _arg3);
if (_local4 < 0){
_local4 = 0;
};
if (_local4 > 127){
_local4 = 127;
};
_sb1444(_arg1, _arg2, _ra1931(_bb579(_arg1, _arg2), _local4));
}
public function _nw296():int{
return (_ic1337);
}
public function _uc1272(_arg1:int, _arg2:int):Boolean{
var _local3:uint = _bb579(_arg1, _arg2);
return (((!((_ab1405(_local3) == 0))) || (!((_fi585(_local3) == 0)))));
}
public function _mm1118(_arg1:int, _arg2:int):uint{
return (_fi585(_bb579(_arg1, _arg2)));
}
public function _xw1652():int{
return (_xa220);
}
private function _sb1444(_arg1:int, _arg2:int, _arg3:uint):void{
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
entries[((_arg2 * _xa220) + _arg1)] = _arg3;
};
}
public function _do1248(_arg1:int, _arg2:int, _arg3:Boolean):void{
_sb1444(_arg1, _arg2, _ty1074(_bb579(_arg1, _arg2), (_arg3) ? 1 : 0));
}
private function _bb579(_arg1:int, _arg2:int):uint{
var _local3:uint;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = entries[((_arg2 * _xa220) + _arg1)];
return (_local3);
};
return (0);
}
public function _cb622(_arg1:int, _arg2:int):Boolean{
return (!((_ab1405(_bb579(_arg1, _arg2)) == 0)));
}
public function _ic1388(_arg1:int, _arg2:int):Boolean{
return ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337))));
}
public function _ag675(_arg1:int, _arg2:int, _arg3:Boolean):void{
_sb1444(_arg1, _arg2, _ra1931(_bb579(_arg1, _arg2), (_arg3) ? 1 : 0));
}
public function _mf2792(_arg1:int, _arg2:int, _arg3:uint):void{
if (_arg3 > 0xFF){
_arg3 = 0xFF;
};
_sb1444(_arg1, _arg2, _tr795(_bb579(_arg1, _arg2), _arg3));
}
private static function _ty1074(_arg1:uint, _arg2:uint):uint{
return (((_arg1 & ~(_mi590)) | (_arg2 << _wq265)));
}
private static function _ra1931(_arg1:uint, _arg2:uint):uint{
return (((_arg1 & ~(_mu1050)) | (_arg2 << _gp1717)));
}
private static function _ab1405(_arg1:uint):uint{
return (((_arg1 & _mi590) >>> _wq265));
}
private static function _te3416(_arg1:uint):uint{
return (((_arg1 & _kx2110) >>> _ij689));
}
private static function _tr795(_arg1:uint, _arg2:uint):uint{
return (((_arg1 & ~(_kx2110)) | (_arg2 << _ij689)));
}
private static function _fi585(_arg1:uint):uint{
return (((_arg1 & _mu1050) >>> _gp1717));
}
}
}//package ambiera
Section 6
//_cf177 (ambiera._cf177)
package ambiera {
public class _cf177 {
public var _aw772:int;
public var _js3192:int;
}
}//package ambiera
Section 7
//_cm768 (ambiera._cm768)
package ambiera {
public class _cm768 {
private var _ph1183:_ex557;// = null
private var _kd3461:_qy2760;
private var _hj205:_ot519;// = null
public function _cm768(_arg1:_qy2760):void{
_kd3461 = _arg1;
}
private function _mu2850():void{
var item:_ps2722 = _ph1183._fn629();
var _iq1580:String = _kd3461._xf2603(_hj205, item.itemType);
var _st2210:Boolean = _tv609._st2210(item.itemType);
if (_hj205._rr2640 == _ot519._hu1351){
if (_st2210){
_rt2598._oj3099._rq326(_hj205._vv2934, _iq1580, _hy2528._rp1861, _hy2528._fo2705, _hy2528._yi3102, function ():void{
_nj1244();
}, _di1224._sl1837);
} else {
_rt2598._oj3099._gd375(_hj205._vv2934, _iq1580, _hy2528._rp1861, _hy2528._fo2705, function ():void{
_nj1244();
}, _di1224._sl1837);
};
} else {
if (_st2210){
_rt2598._oj3099._gd375(_hj205._vv2934, _iq1580, _hy2528._ve3033, _hy2528._yi3102, function ():void{
_ua2423();
}, _di1224._sl1837);
} else {
_rt2598._oj3099._hh2204(_hj205._vv2934, _iq1580, null, _di1224._sl1837);
};
};
}
public function _mn2894(_arg1:_lj345):Boolean{
var _local4:_ot519;
var _local2:Array = _kd3461._yj3030()._fg1749();
var _local3:int;
while (_local3 < _local2.length) {
_local4 = _local2[_local3];
if ((((_local4._rr2640 == _ot519._hu1351)) && ((_local4._en1708 == _arg1.getUID())))){
if (_kd3461._by1802()._fd218(_local4.uid) == _xk85._dk3046){
return (true);
};
};
_local3++;
};
return (false);
}
public function _kd1817(_arg1:_ex557):void{
var _om1898:_ot519;
var state:int;
var _tx1848:Function;
var _mf179:String;
var _fu296:_di1224;
var _mr3406 = _arg1;
if (!_mr3406){
return;
};
_ph1183 = _mr3406;
var item:_ps2722 = _mr3406._fn629();
var _st2210:Boolean = _tv609._st2210(item.itemType);
var _no2172:int = _tv609._vi1826(item.itemType);
var _me1260:int = _tv609._ef2514(item.itemType);
var _rh1516:String;
var _le1606:int = _kd3461._yj3030()._wo612().length;
var _aw2562:Boolean;
if (_no2172 == _tv609._ec1178){
_om1898 = _qh907(item.itemType);
_hj205 = _om1898;
if (_om1898){
state = _tr1161(_om1898);
_fm197._oj3099._ub2003(_ks1885._mj1547);
switch (state){
case _xk85._xa819:
if (_st2210){
_jk1899();
};
_rh1516 = _om1898._vi1748;
_tx1848 = function ():void{
_ub2032();
};
if (_st2210){
_rt2598._oj3099._rq326(_rh1516, _kd3461._xf2603(_om1898, item.itemType), _hy2528._hw3289, _hy2528._gr2885, _hy2528._yi3102, _tx1848, _di1224._sl1837);
_aw2562 = true;
} else {
_rt2598._oj3099._gd375(_rh1516, _kd3461._xf2603(_om1898, item.itemType), _hy2528._hw3289, _hy2528._gr2885, _tx1848, _di1224._sl1837);
_aw2562 = true;
};
break;
case _xk85._jg2863:
if (_st2210){
_jk1899();
};
_mu2850();
_aw2562 = true;
break;
case _xk85._dk3046:
if (_st2210){
_rt2598._oj3099._gd375(_om1898._pf2480, _kd3461._xf2603(_om1898, item.itemType), _hy2528._ve3033, _hy2528._yi3102, function ():void{
_ua2423();
}, _di1224._sl1837);
_aw2562 = true;
} else {
_rt2598._oj3099._hh2204(_om1898._pf2480, _kd3461._xf2603(_om1898, item.itemType), null, _di1224._sl1837);
_aw2562 = true;
};
break;
};
} else {
_hj205 = null;
if (_le1606){
if (_st2210){
_jk1899();
};
_fm197._oj3099._ub2003(_ks1885._mj1547);
_rh1516 = _kd3461._yj3030()._wo612()[int((Math.random() * _le1606))];
if (_tv609._ek344(item.itemType)){
_rh1516 = _hy2528._ci2613;
};
_mf179 = _kd3461._xf2603(_kd3461._yj3030()._sb1470(_tv609._ef2514(item.itemType)), item.itemType);
if (_st2210){
_rt2598._oj3099._gd375(_rh1516, _mf179, _hy2528._ve3033, _hy2528._yi3102, function ():void{
_xv1607();
}, _di1224._sl1837);
_aw2562 = true;
} else {
_rt2598._oj3099._hh2204(_rh1516, _mf179, null, _di1224._sl1837);
_aw2562 = true;
};
};
};
} else {
_hj205 = null;
if (_le1606){
if (_st2210){
_jk1899();
};
_fm197._oj3099._ub2003(_ks1885._mj1547);
_rh1516 = _kd3461._yj3030()._wo612()[int((Math.random() * _le1606))];
if (_tv609._ek344(item.itemType)){
_rh1516 = _hy2528._ci2613;
};
if (_st2210){
_rt2598._oj3099._gd375(_rh1516, _tv609._kl2415(item.itemType), _hy2528._ve3033, _hy2528._yi3102, function ():void{
_xv1607();
}, _di1224._sl1837);
_aw2562 = true;
} else {
_rt2598._oj3099._hh2204(_rh1516, _tv609._kl2415(item.itemType), null, _di1224._sl1837);
_aw2562 = true;
};
};
};
if (_aw2562){
_fu296 = _rt2598._oj3099._rq83();
_fu296._bu2522(_tv609._ux2139(item.itemType));
};
}
private function _jk1899():void{
var _local1:_cb3393 = _kd3461._ry1510();
if (_local1){
if (((!((_local1._em2028() == _local1._yi2782()))) || (!((_local1._cg411() == _local1._xq320()))))){
_local1._cu534(_local1._yi2782());
_local1._pi101(_local1._xq320());
_fm197._oj3099._ub2003(_ks1885._cg1619);
};
};
}
private function _ym1734(_arg1:_ot519):Boolean{
var _local2:_lj345;
var _local3:_lj345;
var _local4:Array;
var _local5:int;
var _local6:_ps2722;
var _local7:uint;
var _local8:uint;
if (_arg1){
switch (_arg1._rr2640){
case _ot519._od3259:
_local2 = _kd3461._yj3030()._qv1265(_arg1._po1435);
if (((_local2) && (_local2._ak1857()))){
_local3 = _local2._qi1235(false);
if (_local3){
_local4 = _local3._xr3453();
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
_local7 = _local6.itemType;
if (((_tv609._au2821(_local7)) && (_tv609._fd2696(_local7)))){
return (false);
};
_local5++;
};
return (true);
};
};
break;
case _ot519._bf730:
_local8 = _arg1.itemType;
if (_kd3461._uq2518(_local8) >= _arg1._kb109){
_kd3461._cv3137(_local8, _arg1._kb109);
return (true);
};
return (false);
case _ot519._nm2095:
if (_arg1._wp3400){
if (_kd3461._by1802()._fd218(_arg1._wp3400) == _xk85._dk3046){
return (true);
};
};
if (_arg1._qg381){
if (_kd3461._by1802()._fd218(_arg1._qg381) == _xk85._dk3046){
return (true);
};
};
if (_arg1._in3160){
if (_kd3461._by1802()._fd218(_arg1._in3160) == _xk85._dk3046){
return (true);
};
};
if (_arg1._kt3079){
if (_kd3461._by1802()._fd218(_arg1._kt3079) == _xk85._dk3046){
return (true);
};
};
break;
case _ot519._fy173:
if (_arg1._wp3400){
if (_kd3461._by1802()._fd218(_arg1._wp3400) != _xk85._dk3046){
return (false);
};
};
if (_arg1._qg381){
if (_kd3461._by1802()._fd218(_arg1._qg381) != _xk85._dk3046){
return (false);
};
};
if (_arg1._in3160){
if (_kd3461._by1802()._fd218(_arg1._in3160) != _xk85._dk3046){
return (false);
};
};
if (_arg1._kt3079){
if (_kd3461._by1802()._fd218(_arg1._kt3079) != _xk85._dk3046){
return (false);
};
};
return (true);
};
};
return (false);
}
private function _qh907(_arg1:uint):_ot519{
var _local2:_ot519 = _kd3461._yj3030()._sb1470(_tv609._ef2514(_arg1));
return (_tu3519(_local2, 1));
}
private function _xv1607():void{
var _local1:_ps2722;
if (_rt2598._oj3099._mv1993() == 1){
_local1 = _ph1183._fn629();
_kd3461._dp1447(_local1.itemType);
};
}
private function _ua2423():void{
var _local1:_ps2722;
if (_rt2598._oj3099._mv1993() == 1){
_local1 = _ph1183._fn629();
_kd3461._dp1447(_local1.itemType);
};
}
public function _hs2348(_arg1:_lj345):Boolean{
var _local4:_ot519;
var _local2:Array = _kd3461._yj3030()._fg1749();
var _local3:int;
while (_local3 < _local2.length) {
_local4 = _local2[_local3];
if (_local4._om777 == _arg1.getUID()){
if (_kd3461._by1802()._fd218(_local4.uid) == _xk85._xa819){
return (false);
};
};
if (_local4._en1708 == _arg1.getUID()){
if (_kd3461._by1802()._fd218(_local4.uid) != _xk85._dk3046){
return (false);
};
};
_local3++;
};
return (true);
}
private function _ub2032():void{
var item:_ps2722;
var _iq1580:String;
var _fu296:_di1224;
switch (_rt2598._oj3099._mv1993()){
case 0:
_kd3461._by1802()._qf966(_hj205.uid, _xk85._jg2863);
_kd3461._jy991(_hy2528._jh1430);
_kd3461._ef956();
item = _ph1183._fn629();
_iq1580 = _kd3461._xf2603(_hj205, item.itemType);
_rt2598._oj3099._hh2204(_hj205._vl2038, _iq1580, ((_hj205._rr2640)==_ot519._hu1351) ? function ():void{
_qb2321();
} : null, _di1224._sl1837);
_fu296 = _rt2598._oj3099._rq83();
_fu296._bu2522(_tv609._ux2139(item.itemType));
break;
case 1:
break;
case 2:
var _local2 = _ph1183._fn629();
item = _local2;
_local2;
_kd3461._dp1447(item.itemType);
break;
};
}
private function _tu3519(_arg1:_ot519, _arg2:int):_ot519{
var _local4:_ot519;
if (_arg2 > 20){
return (null);
};
var _local3:int;
if (_arg1){
if (_arg1._ka875 != 0){
_local3 = _kd3461._by1802()._fd218(_arg1._ka875);
if (_local3 != _xk85._dk3046){
return (null);
};
};
if (_arg1._dw2674 != 0){
_local3 = _kd3461._by1802()._fd218(_arg1.uid);
if (_local3 == _xk85._dk3046){
_local4 = _tu3519(_kd3461._yj3030()._sb1470(_arg1._dw2674), (_arg2 + 1));
if (_local4 != null){
_arg1 = _local4;
};
};
};
};
return (_arg1);
}
private function _qb2321():void{
_mu2850();
var _local1:_di1224 = _rt2598._oj3099._rq83();
var _local2:_ps2722 = _ph1183._fn629();
_local1._bu2522(_tv609._ux2139(_local2.itemType));
}
public function _tr1161(_arg1:_ot519, _arg2:Boolean=false):int{
var _local4:Array;
var _local5:int;
var _local6:_ot519;
var _local3:int = _kd3461._by1802()._fd218(_arg1.uid);
if (_local3 == _xk85._jg2863){
if (((_arg2) || (_ym1734(_arg1)))){
_kd3461._by1802()._qf966(_arg1.uid, _xk85._dk3046);
_local3 = _xk85._dk3046;
_local4 = _kd3461._yj3030()._fg1749();
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
if (((((_local6) && ((_local6._rr2640 == _ot519._hq3282)))) && ((_arg1.uid == _local6._kt3079)))){
_kd3461._by1802()._qf966(_local6.uid, _xk85._dk3046);
};
_local5++;
};
_kd3461._jy991(_hy2528._jh1430);
if (_arg1._mk1959 > 0){
if (_arg1._rr2640 != _ot519._hu1351){
_kd3461._iw1600(_arg1._mk1959);
} else {
_kd3461._iw1600((_arg1._mk1959 * -1));
};
};
if (_arg1._xq1580 > 0){
_kd3461._av128(_arg1._xq1580);
};
_kd3461._ef956();
_fm197._oj3099._ub2003(_ks1885._rj948);
};
};
return (_local3);
}
public function _cb1096(_arg1:_lj345):Boolean{
var _local4:_ot519;
var _local2:Array = _kd3461._yj3030()._fg1749();
var _local3:int;
while (_local3 < _local2.length) {
_local4 = _local2[_local3];
if ((((_local4._rr2640 == _ot519._od3259)) && ((_local4._po1435 == _arg1.getUID())))){
if (_kd3461._by1802()._fd218(_local4.uid) == _xk85._dk3046){
return (true);
};
};
_local3++;
};
return (false);
}
private function _nj1244():void{
var _local1:_ps2722;
var _local2:int;
var _local3:_xk85;
switch (_rt2598._oj3099._mv1993()){
case 0:
_local2 = _hj205._mk1959;
_local3 = _kd3461._by1802();
if (_local2 > _local3._ix2542()){
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._rn1020, String(_local2)), _hj205._kl3227(), null, _di1224._sl1837);
} else {
_tr1161(_hj205, true);
};
break;
case 1:
break;
case 2:
_local1 = _ph1183._fn629();
_kd3461._dp1447(_local1.itemType);
break;
};
}
public static function _ns3203(_arg1:_ot519, _arg2:_xk85):String{
if (((_arg1) && (_arg2))){
if (_arg1._rr2640 == _ot519._hq3282){
if (((_arg1._in3160) && ((_arg2._fd218(_arg1._in3160) == _xk85._dk3046)))){
return (_arg1._pf2480);
};
if (((_arg1._qg381) && ((_arg2._fd218(_arg1._qg381) == _xk85._dk3046)))){
return (_arg1._vv2934);
};
if (((_arg1._wp3400) && ((_arg2._fd218(_arg1._wp3400) == _xk85._dk3046)))){
return (_arg1._vl2038);
};
return (_arg1._vi1748);
} else {
return (_arg1._vl2038);
};
};
return ("");
}
}
}//package ambiera
Section 8
//_cr1330 (ambiera._cr1330)
package ambiera {
public class _cr1330 {
public static const _kd1934:Boolean = false;
public static const _rd2711:Boolean = true;
public static const _op3351:Boolean = false;
public static const _ky2785:int = (_ii566) ? (10 * 1000) : ((2 * 60) * 1000);
;
public static const _ry2518:int = 3;
public static const _ii566:Boolean = false;
public static const _ij1646:Boolean = false;
public static const _xc1865:Boolean = false;
public static const _bj428:Boolean = !(_ii566);
public static const _uq3190:String = "http://www.darkness-springs.eu";
public static const _ra3067:Boolean = false;
public static const _tk795:Boolean = true;
public static const _vu1287:int = 4;
public static const _jl3342:String = "http://www.darkness-springs.eu/helpdsdefense.html";
public static const _ss3414:Boolean = false;
public static const _sj388:int = (_ii566) ? (5 * 1000) : ((2 * 60) * 1000);
;
public static const _da2797:int = 2;
public static const _tq934:Boolean = false;
public static const _bs1886:int = (_hu2720) ? 6 : 7;
;
public static const _fb714:int = 50;
public static const _ar689:Boolean = false;
public static const _dp301:Boolean = true;
public static const _ma144:int = 10;
public static const _aj2955:String = "dsdefense.php";
public static const _hu2720:Boolean = false;
public static const _ba517:int = 64;
}
}//package ambiera
Section 9
//_dh260 (ambiera._dh260)
package ambiera {
import flash.net.*;
public class _dh260 {
private static var _iv3065:int;
private static var _xi3066:Boolean;
public static function _gb3421():int{
if (!_xi3066){
_io1602();
};
return (_iv3065);
}
public static function _st2731(_arg1:int):void{
if (_iv3065 < _arg1){
_iv3065 = _arg1;
_ik1373();
};
}
public static function clear():void{
var _po3239:SharedObject;
try {
_po3239 = SharedObject.getLocal("dsdefense1");
_po3239.clear();
} catch(err:Error) {
_ni2054.print("error clearing data");
};
}
private static function _io1602():void{
var _po3239:SharedObject;
try {
_xi3066 = true;
_po3239 = SharedObject.getLocal("dsdefense1");
if (!_po3239){
_xi3066 = true;
};
_iv3065 = _po3239.data["campaignsolved"];
if (_iv3065 < 0){
_iv3065 = 0;
};
} catch(err:Error) {
_ni2054.print("error loading data");
};
}
private static function _ik1373():void{
var _po3239:SharedObject;
try {
_po3239 = SharedObject.getLocal("dsdefense1");
if (!_po3239){
return;
};
_po3239.data["campaignsolved"] = _iv3065;
_po3239.flush();
_xi3066 = true;
} catch(err:Error) {
_ni2054.print("error saving data");
};
}
}
}//package ambiera
Section 10
//_di1224 (ambiera._di1224)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
public class _di1224 extends UIComponent {
private var _dx2450:TextField;
private var _hq1406:_if3335;
private var _og2376:UIComponent;
private var Style:int;
private var _up2775:int;
private var _iq290:Array;
private var _gs2853:Array;
private var _xu458:UIComponent;
public static const _mn1531:int = (1 << 3);
public static const _sl1837:int = (1 << 2);
public static const _gq3491:int = 0;
public static const _ck2889:int = (1 << 1);
public static const _ke880:int = (1 << 2);
public static const _md1885:int = (1 << 3);
public static const _ce2573:int = (1 << 6);
public static const _og408:int = (1 << 5);
public static const _ve902:int = (1 << 4);
public static const _kr941:int = (1 << 7);
public static const _bb2467:int = (1 << 4);
public static const _ha2193:int = 0;
public static const _ki1196:int = (1 << 1);
private static var _eh1673:Number = 10;
private static var _xa229:Number = 10;
public function _di1224(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Array, _arg5:Array=null, _arg6:Array=null, _arg7:Array=null, _arg8:Boolean=false, _arg9:Array=null, _arg10:int=0, _arg11:int=0, _arg12:int=0){
var _local13:TextField;
super();
Style = _arg10;
width = 200;
height = 50;
_up2775 = 0;
if ((_arg10 & _sl1837)){
width = (_arg1.width - 2);
};
if (width < _arg11){
width = _arg11;
};
if (height < _arg12){
height = _arg12;
};
_ui467(_arg1, _arg2, _arg3);
_lf696(_arg1, _arg5, _arg6, _arg7);
if (_arg8){
_hf1793(_arg1);
};
if (_arg9){
_kq318(_arg1, _arg9);
};
if (height > (_arg1.height - 50)){
height = (_arg1.height - 50);
};
_yv1313(_arg1, _arg4, !(((_arg10 & _ki1196) == 0)), !(((_arg10 & _md1885) == 0)));
_arg1.addChild(this);
_fr2300();
_cl1623(!(((_arg10 & _sl1837) == 0)));
if (((((_gs2853) && ((_gs2853.length > 0)))) && (_gs2853[0]))){
_local13 = (_gs2853[0] as TextField);
if (((_local13) && (_local13.stage))){
_local13.stage.focus = _local13;
};
};
}
private function _yv1313(_arg1:DisplayObjectContainer, _arg2:Array, _arg3:Boolean, _arg4:Boolean):void{
var _local10:_oc1935;
var _local11:int;
var _local12:Number;
if (!_arg2){
return;
};
if (!_arg2.length){
return;
};
var _local5:Array = new Array();
_iq290 = new Array();
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:int;
_local8 = 0;
while (_local8 < _arg2.length) {
_local10 = new _oc1935((_arg2[_local8]) ? _arg2[_local8] : "", this, null, _local8);
_local10.addEventListener(MouseEvent.MOUSE_UP, _fw1067, false, 0, true);
_local5.push(_local10);
_iq290.push(_local10);
_local6 = (_local6 + _local10.width);
_local7 = (_local7 + _local10.height);
_local8++;
};
var _local9:Number = (_local6 + (_xa229 * (_arg2.length - 1)));
if (((!(_arg4)) && (((_arg3) || ((((_arg2.length == 1)) || ((_local9 < width)))))))){
_local11 = (_arg1.width - 100);
if (_local9 > _local11){
_local9 = _local11;
};
if (width < _local9){
width = _local9;
};
height = (height + _eh1673);
_local12 = ((width - _local9) / 2);
_local8 = 0;
while (_local8 < _local5.length) {
_local5[_local8].x = _local12;
_local5[_local8].y = height;
_local12 = (_local12 + (_local5[_local8].width + _xa229));
if (width < _local12){
width = _local12;
};
if ((((_local12 > _local11)) && (!((_local8 == (_local5.length - 1)))))){
_local12 = ((width - _local9) / 2);
height = (height + ((_local7 / _arg2.length) + _eh1673));
};
_local8++;
};
height = (height + (_eh1673 + (_local7 / _arg2.length)));
} else {
height = (height + _eh1673);
_local8 = 0;
while (_local8 < _local5.length) {
_local5[_local8].x = ((width - _local5[_local8].width) / 2);
_local5[_local8].y = height;
height = (height + (_local5[_local8].height + _eh1673));
_local8++;
};
};
height = (height + 10);
}
public function _yl840(_arg1:int):String{
var _local2:TextField;
if (!_gs2853){
return (null);
};
if ((((_arg1 >= 0)) && ((_arg1 < _gs2853.length)))){
_local2 = (_gs2853[_arg1] as TextField);
if (_local2){
if (_local2.text){
return (_local2.text);
};
return ("");
};
};
return (null);
}
public function _gl493():int{
return (Style);
}
private function _kq318(_arg1:DisplayObjectContainer, _arg2:Array):void{
var _local3 = 5;
if (_arg2.length > 30){
_local3 = 7;
} else {
if (_arg2.length > 10){
_local3 = 5;
};
};
var _local4:_if3335 = new _if3335(this, (width - (_xa229 * 2)), _local3);
_local4.x = _xa229;
_local4.y = height;
var _local5:int;
while (_local5 < _local3) {
_local4._au1064(_local5).addEventListener(MouseEvent.MOUSE_UP, _th463, false, 0, true);
_local5++;
};
var _local6:int;
while (_local6 < _arg2.length) {
_local4.addItem(_arg2[_local6]);
_local6++;
};
height = (height + (_local4.height + (_eh1673 / 2)));
if (width < (_local4.width + (_xa229 * 2))){
width = (_local4.width + (_xa229 * 2));
};
_hq1406 = _local4;
}
private function _ui467(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String):void{
var _local6:TextField;
var _local7:TextFormat;
var _local4:TextField = _ks1885._nd1190(false);
_local4.text = (_arg2) ? _arg2 : "";
_local4.wordWrap = true;
_dx2450 = _local4;
var _local5:Number = ((_arg1.width * 8) / 10);
_local4.width = _local5;
_local4.width = (_local4.textWidth + 10);
if (width < (_local4.width + (_xa229 * 2))){
width = (_local4.width + (_xa229 * 2));
};
if (height < (_local4.height + (_eh1673 * 2))){
height = (_local4.height + (_eh1673 * 2));
};
_local4.x = _xa229;
_local4.y = _eh1673;
addChild(_local4);
if (_arg3){
_local6 = new TextField();
_local6.text = _arg3;
_local6.textColor = _ks1885._he2727;
_local6.wordWrap = false;
_local6.multiline = false;
_local6.selectable = false;
_local6.autoSize = TextFieldAutoSize.LEFT;
_local7 = _local6.getTextFormat();
_local7.size = 14;
_local7.bold = true;
_local7.italic = true;
_local6.setTextFormat(_local7);
_local6.x = _xa229;
_local6.y = _eh1673;
_local4.y = (_local4.y + (_local6.height + (_eh1673 / 2)));
height = (height + (_local6.height + (_eh1673 / 2)));
addChild(_local6);
};
}
private function _oa715(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Number, _arg5:int):void{
var _local6:TextField = new TextField();
if (_arg2){
_local6.text = _arg2;
};
_local6.textColor = _ks1885._he2727;
_local6.wordWrap = false;
_local6.selectable = false;
_local6.autoSize = TextFieldAutoSize.LEFT;
_local6.y = height;
_local6.x = _xa229;
addChild(_local6);
var _local7:TextField = new TextField();
if (_arg3){
_local7.text = _arg3;
};
_local7.textColor = 0xFFFFFF;
_local7.wordWrap = false;
_local7.selectable = true;
_local7.border = true;
_local7.borderColor = _ks1885._he2727;
_local7.y = height;
_local7.x = _arg4;
_local7.height = _local6.height;
_local7.width = _arg4;
_local7.type = TextFieldType.INPUT;
_local7.background = true;
_local7.backgroundColor = 0x333333;
if (_arg5 != 0){
if ((_arg5 & _ke880)){
_local7.maxChars = 16;
};
if ((_arg5 & _mn1531)){
_local7.maxChars = 32;
};
if ((_arg5 & _bb2467)){
_local7.maxChars = 64;
};
if ((_arg5 & _og408)){
_local7.maxChars = 22;
};
if ((_arg5 & _ck2889)){
_local7.restrict = "a-zA-Z0-9_\\-.@{}()=*+";
_local7.displayAsPassword = true;
};
if ((_arg5 & _ce2573)){
_local7.restrict = "a-zA-Z0-9_\\-.@{}()=*+";
};
if ((_arg5 & _kr941)){
_local7.restrict = "a-zA-Z0-9_\\-.@";
};
};
addChild(_local7);
if (!_gs2853){
_gs2853 = new Array();
};
_gs2853.push(_local7);
height = (height + (_local6.height + 3));
}
private function _lf696(_arg1:DisplayObjectContainer, _arg2:Array, _arg3:Array, _arg4:Array):void{
var _local9:String;
var _local10:int;
if (!_arg2){
return;
};
if (!_arg2.length){
return;
};
var _local5:Number = 80;
var _local6:Number = ((width - (_xa229 * 2)) / 2);
var _local7:Number = 0;
if (_local6 < _local5){
width = ((_local5 * 2) + (_xa229 * 2));
_local7 = _local5;
} else {
_local7 = _local6;
};
height = (height + _eh1673);
var _local8:int;
while (_local8 < _arg2.length) {
if (_arg2[_local8]){
_local9 = "";
if (((((_arg3) && ((_arg3.length > _local8)))) && (_arg3[_local8]))){
_local9 = _arg3[_local8];
};
_local10 = 0;
if (((_arg4) && ((_arg4.length > _local8)))){
_local10 = _arg4[_local8];
};
_oa715(_arg1, _arg2[_local8], _local9, _local7, _local10);
};
_local8++;
};
height = (height + _eh1673);
}
private function _fw1067(_arg1:Event):void{
if (((_og2376) && ((_up2775 < 70)))){
return;
};
var _local2:_oc1935 = (_arg1.target as _oc1935);
if (!_local2.enabled){
return;
};
var _local3:_rt2598 = _rt2598._oj3099;
var _local4:int = _local2._bi2092();
_local3._fw1067(_local4, !((((Style & _ve902)) && ((_local4 == 1)))));
}
private function _hf1793(_arg1:DisplayObjectContainer):void{
var _local2:Bitmap = _ks1885._oj3099._sv1361;
var _local3:int = _local2.height;
var _local4:int = (_local2.width * 8);
_og2376 = new UIComponent();
_og2376.y = height;
_og2376.x = ((width - _local4) / 2);
height = (height + (_local3 * 2));
var _local5:Graphics = _og2376.graphics;
_local5 = _og2376.graphics;
_local5.beginBitmapFill(_local2.bitmapData);
_local5.drawRect(0, 0, _local4, _local3);
_local5.endFill();
addChild(_og2376);
addEventListener(Event.ENTER_FRAME, _hi3278, false, 0, true);
}
public function _hi3278(_arg1:Event):void{
var _local2:Graphics = _og2376.graphics;
_local2 = _og2376.graphics;
var _local3:Matrix = new Matrix();
_up2775++;
_local3.tx = -(_up2775);
var _local4:Bitmap = _ks1885._oj3099._sv1361;
var _local5:int = _local4.height;
var _local6:int = (_local4.width * 8);
_local2.clear();
_local2.beginBitmapFill(_local4.bitmapData, _local3);
_local2.drawRect(0, 0, _local6, _local5);
_local2.endFill();
}
public function _fr2300():void{
var _local1:Bitmap = _ks1885._oj3099._na1609;
var _local2:Graphics = graphics;
_local2.beginFill(15259841);
graphics.drawRect(0, 0, width, height);
_local2.endFill();
graphics.beginBitmapFill(_local1.bitmapData);
graphics.drawRect(0, 0, width, (_local1.height - 1));
graphics.endFill();
var _local3:Matrix = new Matrix();
_local3.a = -1;
_local3.d = -1;
_local3.ty = (height - _local1.height);
graphics.beginBitmapFill(_local1.bitmapData, _local3);
graphics.drawRect(0, ((1 + height) - _local1.height), width, (_local1.height - 1));
graphics.endFill();
}
public function _au1064(_arg1:int):_oc1935{
if (((((_iq290) && ((_arg1 >= 0)))) && ((_arg1 < _iq290.length)))){
return (_iq290[_arg1]);
};
return (null);
}
private function _cl1623(_arg1:Boolean):void{
x = ((parent.width - width) / 2);
if (_arg1){
y = (parent.height - height);
} else {
y = ((parent.height - height) / 2);
};
}
public function _pe3128():_if3335{
return (_hq1406);
}
public function _bu2522(_arg1:BitmapData):void{
var _local2:UIComponent;
var _local3:Graphics;
if (_arg1){
_local2 = new UIComponent();
_xu458 = _local2;
_local2.width = _arg1.width;
_local2.height = _arg1.height;
_local2.x = 20;
_local2.y = 40;
_local3 = _local2.graphics;
_local3.beginBitmapFill(_arg1);
_local3.drawRect(0, 0, _arg1.width, _arg1.height);
_local3.endFill();
addChild(_local2);
_dx2450.x = (40 + _arg1.width);
};
}
private function _th463(_arg1:Event):void{
var _local2:_oc1935 = (_arg1.target as _oc1935);
var _local3:_rt2598 = _rt2598._oj3099;
_local3._th463(_hq1406._fj3135(_local2));
}
public function close():void{
if (_og2376){
removeEventListener(Event.ENTER_FRAME, _hi3278);
};
}
}
}//package ambiera
Section 11
//_dm739 (ambiera._dm739)
package ambiera {
import flash.display.*;
import flash.geom.*;
public class _dm739 extends _oc1935 {
private var _xo3296:Sprite;
private var _mx2381:Boolean;
private var _fv801:Sprite;
public function _dm739(_arg1:DisplayObjectContainer, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:int=-1, _arg6:Number=1, _arg7:Boolean=false){
_mx2381 = _arg7;
super(null, _arg1, _arg2, _arg5, _arg3, _arg6, true, _arg4);
}
public function _gq1107(_arg1:Boolean):void{
if (_arg1){
upState = _fv801;
} else {
upState = _xo3296;
};
}
override protected function _rk3161(_arg1:String, _arg2:Boolean, _arg3:BitmapData=null):void{
var _local4:Number = _pr449;
var _local5:Number = _cw2959;
var _local6:Sprite = new Sprite();
_ax1293(true, false, _local6, _local4, _local5, _arg3);
var _local7:Sprite = new Sprite();
_ax1293(false, false, _local7, _local4, _local5, _arg3);
var _local8:Sprite = new Sprite();
_ax1293(true, true, _local8, _local4, _local5, _arg3);
var _local9:Sprite = new Sprite();
_ax1293(true, true, _local9, _local4, _local5, null);
_xo3296 = _local9;
_fv801 = _local6;
upState = _local6;
overState = _local8;
downState = _local7;
useHandCursor = false;
hitTestState = _local6;
_df2667 = _local6;
_hk1250 = _local7;
}
public function _ax1293(_arg1:Boolean, _arg2:Boolean, _arg3:Sprite, _arg4:Number, _arg5:Number, _arg6:BitmapData=null):void{
var _local9:Number;
var _local10:int;
var _local11:int;
var _local7:Bitmap = _ks1885._oj3099._hd806;
_arg3.graphics.beginBitmapFill(_local7.bitmapData);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.endFill();
if (_arg2){
_arg3.graphics.beginFill(11898720, 0.3);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.endFill();
} else {
if (!_arg1){
_arg3.graphics.beginFill(11898720, 0.7);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.endFill();
};
};
var _local8:Matrix;
if (_arg6){
_local9 = _br2308;
if ((((_local9 > 0.99)) && ((_local9 < 1.01)))){
_arg3.graphics.beginBitmapFill(_arg6, null, false, true);
_arg3.graphics.drawRect(0, 0, Math.min(_arg4, _arg6.width), Math.min(_arg5, _arg6.height));
_arg3.graphics.endFill();
} else {
_local10 = ((_arg4 - (_arg6.width * _local9)) / 2);
_local11 = (_arg5 - (_arg6.height * _local9));
_local8 = new Matrix();
_local8.a = _local9;
_local8.d = _local9;
_local8.tx = _local10;
_local8.ty = _local11;
_arg3.graphics.beginBitmapFill(_arg6, _local8, false, true);
_arg3.graphics.drawRect(_local10, _local11, Math.min((_arg4 - _local10), (_arg6.width * _local9)), Math.min(_arg5, (_arg6.height * _local9)));
_arg3.graphics.endFill();
};
};
if (_mx2381){
if (((!(_arg2)) && (_arg1))){
_arg3.graphics.beginFill(11898720, 0.7);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.endFill();
};
if (_arg2){
_arg3.graphics.beginFill(11898720, 0.3);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.endFill();
};
if (((!(_arg1)) || (_arg2))){
_arg3.graphics.lineStyle(3, 7030040, 1);
_arg3.graphics.drawRect(0, 0, _arg4, _arg5);
_arg3.graphics.lineStyle();
};
};
}
}
}//package ambiera
Section 12
//_dq2173 (ambiera._dq2173)
package ambiera {
import flash.utils.*;
public class _dq2173 {
private static const _gd2342:Class = _dq2173__gd2342;
private static const _xo3102:Class = _dq2173__xo3102;
private static const _nc2524:Class = _dq2173__nc2524;
private static const _jt439:Class = _dq2173__jt439;
private static const _mt2309:Class = _dq2173__mt2309;
private static const _iy2224:Class = _dq2173__iy2224;
private static const _xp1431:Class = _dq2173__xp1431;
private static const _tl2983:Class = _dq2173__tl2983;
private static const _by1784:Class = _dq2173__by1784;
private static const _ly433:Class = _dq2173__ly433;
private static const _gm3205:Class = _dq2173__gm3205;
private static const _rv122:Class = _dq2173__rv122;
private static const _le1970:Class = _dq2173__le1970;
private static const _pd461:Class = _dq2173__pd461;
private static const _uf2987:Class = _dq2173__uf2987;
private static const _yu3435:Class = _dq2173__yu3435;
private static function _mn2858(_arg1:int):Class{
switch (_arg1){
case 0:
return (_nc2524);
case 1:
return (_ly433);
case 2:
return (_xp1431);
case 3:
return (_xo3102);
case 4:
return (_uf2987);
case 5:
return (_pd461);
case 6:
return (_gd2342);
case 7:
return (_iy2224);
case 8:
return (_gm3205);
case 9:
return (_tl2983);
case 10:
return (_le1970);
case 11:
return (_by1784);
case 12:
return (_yu3435);
case 13:
return (_rv122);
case 14:
return (_jt439);
};
return (null);
}
public static function _xr1552(_arg1:int):String{
var _local2:Class = _mn2858(_arg1);
if (!_local2){
return ("failed");
};
var _local3:ByteArray = (new (_local2) as ByteArray);
return (("ok" + _local3.toString()));
}
public static function _hg1894(_arg1:int):Boolean{
return (!((_mn2858(_arg1) == null)));
}
public static function _tf2694():String{
var _local1:ByteArray = (new _mt2309() as ByteArray);
var _local2:String = ("ok" + _local1.toString());
return (_local2);
}
}
}//package ambiera
Section 13
//_dq2173__by1784 (ambiera._dq2173__by1784)
package ambiera {
import mx.core.*;
public class _dq2173__by1784 extends ByteArrayAsset {
}
}//package ambiera
Section 14
//_dq2173__gd2342 (ambiera._dq2173__gd2342)
package ambiera {
import mx.core.*;
public class _dq2173__gd2342 extends ByteArrayAsset {
}
}//package ambiera
Section 15
//_dq2173__gm3205 (ambiera._dq2173__gm3205)
package ambiera {
import mx.core.*;
public class _dq2173__gm3205 extends ByteArrayAsset {
}
}//package ambiera
Section 16
//_dq2173__iy2224 (ambiera._dq2173__iy2224)
package ambiera {
import mx.core.*;
public class _dq2173__iy2224 extends ByteArrayAsset {
}
}//package ambiera
Section 17
//_dq2173__jt439 (ambiera._dq2173__jt439)
package ambiera {
import mx.core.*;
public class _dq2173__jt439 extends ByteArrayAsset {
}
}//package ambiera
Section 18
//_dq2173__le1970 (ambiera._dq2173__le1970)
package ambiera {
import mx.core.*;
public class _dq2173__le1970 extends ByteArrayAsset {
}
}//package ambiera
Section 19
//_dq2173__ly433 (ambiera._dq2173__ly433)
package ambiera {
import mx.core.*;
public class _dq2173__ly433 extends ByteArrayAsset {
}
}//package ambiera
Section 20
//_dq2173__mt2309 (ambiera._dq2173__mt2309)
package ambiera {
import mx.core.*;
public class _dq2173__mt2309 extends ByteArrayAsset {
}
}//package ambiera
Section 21
//_dq2173__nc2524 (ambiera._dq2173__nc2524)
package ambiera {
import mx.core.*;
public class _dq2173__nc2524 extends ByteArrayAsset {
}
}//package ambiera
Section 22
//_dq2173__pd461 (ambiera._dq2173__pd461)
package ambiera {
import mx.core.*;
public class _dq2173__pd461 extends ByteArrayAsset {
}
}//package ambiera
Section 23
//_dq2173__rv122 (ambiera._dq2173__rv122)
package ambiera {
import mx.core.*;
public class _dq2173__rv122 extends ByteArrayAsset {
}
}//package ambiera
Section 24
//_dq2173__tl2983 (ambiera._dq2173__tl2983)
package ambiera {
import mx.core.*;
public class _dq2173__tl2983 extends ByteArrayAsset {
}
}//package ambiera
Section 25
//_dq2173__uf2987 (ambiera._dq2173__uf2987)
package ambiera {
import mx.core.*;
public class _dq2173__uf2987 extends ByteArrayAsset {
}
}//package ambiera
Section 26
//_dq2173__xo3102 (ambiera._dq2173__xo3102)
package ambiera {
import mx.core.*;
public class _dq2173__xo3102 extends ByteArrayAsset {
}
}//package ambiera
Section 27
//_dq2173__xp1431 (ambiera._dq2173__xp1431)
package ambiera {
import mx.core.*;
public class _dq2173__xp1431 extends ByteArrayAsset {
}
}//package ambiera
Section 28
//_dq2173__yu3435 (ambiera._dq2173__yu3435)
package ambiera {
import mx.core.*;
public class _dq2173__yu3435 extends ByteArrayAsset {
}
}//package ambiera
Section 29
//_ex557 (ambiera._ex557)
package ambiera {
import flash.display.*;
import flash.geom.*;
import flash.text.*;
public class _ex557 extends Sprite {
private var _yl2290:int;
protected var _hn1788:_vs1897;
private var _ba1397:int;
private var _el3187:_ps2722;// = null
private var _ey1081:BitmapData;
protected var _mx3324:Point;
private var _ex1503:int;
public function _ex557(_arg1:_ps2722){
_ex1503 = 0;
_yl2290 = -1;
_el3187 = _arg1;
_mx3324 = new Point(0, 0);
_nk337();
}
public function _ho613(_arg1:int):void{
if (_yl2290 != _arg1){
_yl2290 = _arg1;
_tg184();
};
}
public function _dq2131(_arg1:int, _arg2:int):void{
if (((!((_ba1397 == _arg1))) || (!((_ex1503 == _arg2))))){
_ba1397 = _arg1;
_ex1503 = _arg2;
_tg184();
};
}
public function _be2858():int{
return (_ba1397);
}
public function _xc1677():Point{
return (new Point((x + _mx3324.x), (y + _mx3324.y)));
}
public function _kq768(_arg1:int):void{
if (_ba1397 != _arg1){
_ba1397 = _arg1;
_tg184();
};
}
public function _ow925():int{
return (_ex1503);
}
public function _vc1137():Point{
return (_mx3324);
}
public function _tg184():void{
var _local1:TextField;
var _local2:BitmapData;
if (_tv609._cf2078(_el3187.itemType)){
while (numChildren) {
removeChildAt(0);
};
graphics.clear();
graphics.beginFill(0xFFFF00);
graphics.drawRect(0, 0, (_mx3324.x * 2), 20);
graphics.drawRect((_mx3324.x - 2), 20, 1, (_mx3324.y - 20));
graphics.endFill();
_local1 = _ks1885._nd1190();
_local1.text = _tv609._kl2415(_el3187.itemType);
_local1.textColor = 0;
addChild(_local1);
} else {
_local2 = _tv609._ue323(_el3187.itemType, _yl2290, _ba1397, _ex1503);
_ey1081 = _local2;
graphics.clear();
if (_local2 != null){
graphics.beginBitmapFill(_local2);
graphics.drawRect(0, 0, _local2.width, _local2.height);
graphics.endFill();
} else {
graphics.beginFill(0xFFFF00);
graphics.drawRect(0, 0, 20, 20);
graphics.endFill();
};
};
}
public function _qi31(_arg1:_vs1897):void{
if (_hn1788){
_hn1788._mh2151();
};
_hn1788 = _arg1;
}
override public function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{
var _local4:Point;
if (((((((_arg3) && (!((_ey1081 == null))))) && ((_ey1081.width > 55)))) && (!((parent == null))))){
_local4 = globalToLocal(new Point(_arg1, _arg2));
return (_ey1081.hitTest(new Point(0, 0), 1, _local4));
};
return (super.hitTestPoint(_arg1, _arg2, _arg3));
}
public function _fn629():_ps2722{
return (_el3187);
}
public function _pu916(_arg1:int):void{
if (_ex1503 != _arg1){
_ex1503 = _arg1;
_tg184();
};
}
public function _nk337():void{
var _local2:uint;
var _local1:BitmapData = _tv609._ue323(_el3187.itemType);
if (_local1){
_mx3324.x = (_local1.width / 2);
_mx3324.y = (_local1.height - 5);
if (_tv609._xe421(_el3187.itemType) == _tv609._ww915){
_mx3324.y = (_mx3324.y - 5);
} else {
if ((((_local1 == _ks1885._oj3099._rx671(_ks1885._gd1112))) || ((_local1 == _ks1885._oj3099._rx671(_ks1885._kr141))))){
_mx3324.y = (_mx3324.y - 60);
} else {
if (_tv609._xe421(_el3187.itemType) == _tv609._cq3482){
_mx3324.y = (_mx3324.y + 40);
} else {
if (_tv609._xe421(_el3187.itemType) == _tv609._ee2004){
_local2 = _tv609._cy1922(_el3187.itemType);
if ((((((_local2 == _ks1885._tq1319)) || ((_local2 == _ks1885._so969)))) || ((_local2 == _ks1885._vy640)))){
_mx3324.y = (_mx3324.y - 5);
};
};
};
};
};
} else {
if (_tv609._cf2078(_el3187.itemType)){
_mx3324.x = (40 / 2);
_mx3324.y = 50;
};
};
x = (20 - _mx3324.x);
y = (10 - _mx3324.y);
}
}
}//package ambiera
Section 30
//_fm197 (ambiera._fm197)
package ambiera {
import flash.media.*;
public class _fm197 {
private var _ov1691:SoundChannel;
private var _xk711:SoundTransform;
private var _fh2884:Sound;
private var _ut2514:Class;
private var _pu1673:SoundTransform;
private var _fp1713:Class;
private var _pf2358:Sound;
private var _ph3448:int;
public static const _dj2375:int = 1;
public static const _of2190:int = 0;
public static const _kq1517:int = 2;
public static const _cy2890:int = 1;
public static const _es2147:Number = 1;
public static const _xo682:int = 2;
public static const _lo3198:int = 0;
public static var _oj3099:_fm197;
public function _fm197(){
_ut2514 = _fm197__ut2514;
_fp1713 = _fm197__fp1713;
super();
_oj3099 = this;
_ph3448 = -1;
_xk711 = new SoundTransform(_es2147);
_pu1673 = new SoundTransform(_es2147);
if (_cr1330._op3351){
_pu1673.volume = 0;
};
_pf2358 = new _ut2514();
_fh2884 = new _fp1713();
}
public function _ey741(_arg1:int):void{
if (_arg1 == _ph3448){
return;
};
_ph3448 = _arg1;
switch (_arg1){
case _lo3198:
_ru2706(_pf2358);
break;
case _dj2375:
_ru2706(_fh2884);
break;
default:
if (_ov1691){
_ov1691.stop();
};
};
}
public function _wk2050(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 1){
_arg1 = 1;
};
_pu1673.volume = _arg1;
if (_ov1691){
_ov1691.soundTransform = _pu1673;
};
}
public function _ep2567():Number{
return (_pu1673.volume);
}
public function _ei289(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 1){
_arg1 = 1;
};
_xk711.volume = _arg1;
}
public function _xm3092():Number{
return (_xk711.volume);
}
public function _hp839():void{
_ub2003(_ks1885._mg3438);
}
public function _uq741():int{
if ((((_xm3092() == 0)) && ((_ep2567() == 0)))){
return (_kq1517);
};
if (_ep2567() == 0){
return (_cy2890);
};
return (_of2190);
}
public function _er512(_arg1:int):void{
switch (_arg1){
case _kq1517:
_ei289(0);
_wk2050(0);
break;
case _of2190:
_ei289(_es2147);
_wk2050(_es2147);
break;
case _cy2890:
_ei289(_es2147);
_wk2050(0);
break;
};
}
private function _ru2706(_arg1:Sound):void{
if (_arg1){
if (_ov1691){
_ov1691.stop();
};
_ov1691 = _arg1.play(0, 65000, _pu1673);
};
}
public function _ub2003(_arg1:int):void{
var _local2:Sound = _ks1885._oj3099._gp2469(_arg1);
if (_local2){
_local2.play(0, 0, _xk711);
};
}
}
}//package ambiera
Section 31
//_fm197__fp1713 (ambiera._fm197__fp1713)
package ambiera {
import mx.core.*;
public class _fm197__fp1713 extends SoundAsset {
}
}//package ambiera
Section 32
//_fm197__ut2514 (ambiera._fm197__ut2514)
package ambiera {
import mx.core.*;
public class _fm197__ut2514 extends SoundAsset {
}
}//package ambiera
Section 33
//_fq2465 (ambiera._fq2465)
package ambiera {
import flash.geom.*;
public class _fq2465 {
public var radius:int;
public var x:int;
public var y:int;
public var _lg1977:Rectangle;
public function _fq2465(_arg1:int, _arg2:int, _arg3:int){
x = _arg1;
y = _arg2;
radius = _arg3;
_lg1977 = null;
}
public function _bf2523():Rectangle{
var _local1:int = (((radius + 1) * (radius + 1)) + 1);
var _local2:Rectangle = new Rectangle((x - _local1), (y - _local1), (_local1 * 2), (_local1 * 2));
return (_local2);
}
public function _vr588(_arg1:int, _arg2:int):int{
var _local4:int;
var _local3:Number = Math.sqrt(_th783(x, y, _arg1, _arg2));
if (_local3 <= radius){
return (_ks1885._im873);
};
_local4 = (_ks1885._im873 - ((_local3 - radius) / (radius / 2)));
if (_local4 < 0){
_local4 = 0;
};
return (_local4);
}
public function _oo3401(_arg1:int, _arg2:int):int{
var _local3:Number = Math.sqrt(_th783(x, y, _arg1, _arg2));
if (_local3 <= radius){
return (0);
};
return (((_local3 - radius) / (radius / 2)));
}
private static function _th783(_arg1:int, _arg2:int, _arg3:int, _arg4:int):int{
var _local5:int = (_arg3 - _arg1);
var _local6:int = (_arg4 - _arg2);
return (((_local5 * _local5) + (_local6 * _local6)));
}
}
}//package ambiera
Section 34
//_gm2472 (ambiera._gm2472)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class _gm2472 extends Sprite {
private const tileWidth:int = 20;
private const tileHeight:int = 20;
private var _fo3083:int;
private var tiles:Array;
private var _hb1964:_ce283;
private var _cp2069:Boolean;
private var _pm2052:Sprite;
private var _jj770:Boolean;
private var _dt2656:_lj345;
private var _ix510:Boolean;
private var resources:_ks1885;
private var _hl2492:Boolean;
private var _ja2773:Array;
private var _ic1337:int;// = 0
private var _sq3388:BitmapData;
private var _le546:_by515;
private var _xp1284:Array;
private var _rg3521:_ju1817;
private var _xa220:int;// = 0
private var _vt3005:Array;
public function _gm2472(_arg1:_ks1885):void{
_ni2054.print("iso engine init");
resources = _arg1;
_xp1284 = new Array();
_vt3005 = new Array();
_ja2773 = new Array();
_ix510 = true;
_hl2492 = false;
addEventListener(Event.ENTER_FRAME, _jj1244, false, 0, true);
var _local2:_lj345 = new _lj345();
_local2._ri1792(1, 1);
_wa3159(_local2);
_ni2054.print("iso engine init end");
}
public function _hg2178(_arg1:_ex557, _arg2:Boolean=false):Boolean{
var _local4:Point;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Sprite;
var _local12:int;
var _local13:int;
var _local3:_ps2722 = _arg1._fn629();
if (_local3){
_local4 = _arg1._xc1677();
_local5 = _rw1773(_local3.x, _local3.y);
_local6 = _ou1013(_local3.x, _local3.y);
_local7 = (_local5 + _local4.x);
_local8 = (_local6 + _local4.y);
_local9 = _wf1652(_local7, _local8);
_local10 = _vr2593(_local7, _local8);
if (((!((_local9 == _local3.x))) || (!((_local10 == _local3.y))))){
_local11 = (_eu1822(_local9, _local10) as Sprite);
if (_local11){
if (!_arg2){
if (_dt2656._nr1810(_local9, _local10) < _ks1885._cr162){
return (false);
};
};
_local3.x = _local9;
_local3.y = _local10;
_local12 = (_local5 - _rw1773(_local9, _local10));
_local13 = (_local6 - _ou1013(_local9, _local10));
_arg1.x = (_arg1.x + _local12);
_arg1.y = (_arg1.y + _local13);
if (_arg1.parent){
_arg1.parent.removeChild(_arg1);
};
_local11.addChild(_arg1);
_arg1._ho613(_wl690(_local9, _local10));
return (true);
} else {
if (_arg2){
if (_arg1.parent){
_arg1.parent.removeChild(_arg1);
};
return (true);
};
};
};
};
return (false);
}
public function _wf1652(_arg1:int, _arg2:int):int{
_arg1 = (_arg1 - tileWidth);
return (((_arg1 + (_arg2 * 2)) / (tileWidth * 2)));
}
public function _xd2222(_arg1:int, _arg2:int):void{
var _local4:int;
var _local5:int;
var _local6:_ex557;
var _local3:Sprite = (_eu1822(_arg1, _arg2) as Sprite);
if (_local3){
_local4 = _wl690(_arg1, _arg2);
resources._uh2803(_local3, _dt2656._hk2716(_arg1, _arg2), _local4);
_local5 = 0;
while (_local5 < _local3.numChildren) {
_local6 = (_local3.getChildAt(_local5) as _ex557);
if (_local6){
_local6._ho613(_local4);
};
_local5++;
};
};
}
public function _eu1822(_arg1:int, _arg2:int):DisplayObject{
var _local3:DisplayObject;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = tiles[((_arg2 * _xa220) + _arg1)];
return (_local3);
};
return (null);
}
public function _uw624(_arg1:int):void{
if (_arg1 == 0){
return;
};
var _local2:int = (y + _arg1);
var _local3:int = ((_rw1773(0, 0) + parent.height) - (tileHeight * 2));
var _local4:int = (_rw1773(0, _ic1337) + (tileHeight * 2));
if (_local2 > _local3){
_local2 = _local3;
};
if (_local2 < _local4){
_local2 = _local4;
};
y = _local2;
}
public function _ts82(_arg1:int, _arg2:int, _arg3:int, _arg4:BitmapData, _arg5:Boolean=false, _arg6:Boolean=false):void{
var _local9:int;
var _local10:int;
var _local11:Bitmap;
var _local12:Bitmap;
var _local13:int;
var _local14:int;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Array;
var _local19:ColorMatrixFilter;
var _local20:Array;
var _local21:int;
var _local22:DisplayObject;
if (((((((((!(_pm2052)) || (!((_fo3083 == _arg3))))) || (!((_arg4 == _sq3388))))) || (!((_cp2069 == _arg5))))) || (!((_jj770 == _arg6))))){
if (((_pm2052) && ((_pm2052.parent == this)))){
removeChild(_pm2052);
};
_pm2052 = null;
_fo3083 = _arg3;
if (!_arg3){
return;
};
_pm2052 = new Sprite();
_local9 = 0;
while (_local9 < _arg3) {
_local10 = 0;
while (_local10 < _arg3) {
_local11 = resources._fv3121();
_local11.alpha = 0.1;
_local11.x = _rw1773(_local9, _local10);
_local11.y = _ou1013(_local9, _local10);
_pm2052.addChild(_local11);
_local10++;
};
_local9++;
};
_cp2069 = _arg5;
_jj770 = _arg6;
if (_arg4){
_local12 = new Bitmap(_arg4);
_local12.alpha = 0.6;
_local13 = 0;
_local14 = 0;
_local13 = (_arg4.width / 2);
_local14 = (_arg4.height - 20);
_local12.x = (20 - _local13);
_local12.y = ((0 - _local14) + ((_arg3 - 1) * 22));
_pm2052.addChild(_local12);
if (((_arg5) || (_arg6))){
_local15 = 0.2;
_local16 = 0.2;
_local17 = 0.2;
if (_arg5){
_local15 = 1;
};
if (_arg6){
_local16 = 1;
};
_local18 = [_local15, 0, 0, 0, 0, 0, _local16, 0, 0, 0, 0, 0, _local17, 0, 0, 0, 0, 0, 1, 0];
_local19 = new ColorMatrixFilter(_local18);
_local20 = new Array();
_local20.push(_local19);
_local12.filters = _local20;
_pm2052.cacheAsBitmap = true;
};
};
addChild(_pm2052);
};
var _local7:int = _wf1652(_arg1, _arg2);
var _local8:int = _vr2593(_arg1, _arg2);
if ((((((((_local7 >= 0)) && ((_local7 < _xa220)))) && ((_local8 >= 0)))) && ((_local8 < _ic1337)))){
_pm2052.x = _rw1773(_local7, _local8);
_pm2052.y = _ou1013(_local7, _local8);
_pm2052.visible = true;
if (_dt2656){
_local21 = 0;
_local9 = 0;
while (_local9 < _arg3) {
_local10 = 0;
while (_local10 < _arg3) {
_local22 = _pm2052.getChildAt(_local21);
if (_local22){
_local22.y = ((_ou1013((_local7 + _local9), (_local8 + _local10)) - _pm2052.y) + _dt2656._nr1810((_local7 + _local9), (_local8 + _local10)));
};
_local21++;
_local10++;
};
_local9++;
};
};
} else {
_pm2052.visible = false;
};
}
public function _pa3307():Array{
return (_ja2773);
}
private function _nr656(_arg1:_ex557):void{
var _local3:_ex557;
var _local2:int;
while (_local2 < _ja2773.length) {
_local3 = (_ja2773[_local2] as _ex557);
if (_arg1 == _local3){
_ja2773.splice(_local2, 1);
break;
};
_local2++;
};
}
public function _jf770(_arg1:int, _arg2:int):int{
return ((((_arg1 * tileWidth) - (_arg2 * tileHeight)) + tileWidth));
}
public function _he1651(_arg1:_ex557):void{
_nr656(_arg1);
}
public function _ou1013(_arg1:int, _arg2:int):int{
return (((_arg1 * (tileWidth / 2)) + (_arg2 * (tileHeight / 2))));
}
public function _mp3341(_arg1:int, _arg2:int, _arg3:int):void{
if (_arg3 <= 0){
return;
};
var _local4:_fq2465 = new _fq2465(_arg1, _arg2, _arg3);
_ix510 = true;
_vt3005.push(_local4);
}
public function _dk664():void{
var _local3:int;
var _local4:_fq2465;
var _local5:Number;
var _local6:int;
var _local1:_ce283 = _kr1759();
var _local2:int;
while (_local2 < _xa220) {
_local3 = 0;
while (_local3 < _ic1337) {
_local4 = null;
_local5 = 0;
_local6 = 0;
while (_local6 < _vt3005.length) {
_local4 = _vt3005[_local6];
_local5 = (_local5 + _local4._vr588(_local2, _local3));
_local6++;
};
if (_local5 < 0){
_local5 = 0;
};
if (_local5 >= _ks1885._im873){
_local5 = (_ks1885._im873 - 1);
};
_local1._mf2792(_local2, _local3, _local5);
_local3++;
};
_local2++;
};
}
public function _es2323():void{
var _local2:int;
_hl2492 = false;
_ix510 = false;
var _local1:int;
while (_local1 < _xa220) {
_local2 = 0;
while (_local2 < _ic1337) {
_xd2222(_local1, _local2);
_local2++;
};
_local1++;
};
}
public function _ks1104(_arg1:int, _arg2:int):void{
var _local4:Boolean;
var _local5:int;
var _local6:_ex557;
var _local7:_fq2465;
var _local3:Sprite = (_eu1822(_arg1, _arg2) as Sprite);
if (_local3){
if (_dt2656){
_local5 = 0;
while (_local5 < _local3.numChildren) {
_local6 = (_local3.getChildAt(_local5) as _ex557);
if (_local6){
_dt2656._np721(_local6._fn629());
};
_local5++;
};
};
while (_local3.numChildren) {
_nr656((_local3.getChildAt(0) as _ex557));
_local3.removeChildAt(0);
};
_local4 = false;
_local5 = 0;
while (_local5 < _vt3005.length) {
_local7 = _vt3005[_local5];
if ((((_local7.x == _arg1)) && ((_local7.y == _arg2)))){
_vt3005.splice(_local5, 1);
_local4 = true;
} else {
_local5++;
};
};
if (_local4){
_dk664();
};
};
}
public function _rd100(_arg1:int, _arg2:int, _arg3:int):int{
if (_arg3 <= 0){
return (-1);
};
var _local4:_fq2465 = new _fq2465(_arg1, _arg2, _arg3);
_ix510 = true;
var _local5:int;
while (_local5 < _xp1284.length) {
if (_xp1284[_local5] == null){
_xp1284[_local5] = _local4;
return (_local5);
};
_local5++;
};
_xp1284.push(_local4);
return ((_xp1284.length - 1));
}
private function _hm213(_arg1:_ex557):void{
_ja2773.push(_arg1);
}
public function _io955(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:_fq2465;
if ((((_arg1 >= 0)) && ((_arg1 < _xp1284.length)))){
if (_xp1284[_arg1]){
_local4 = _xp1284[_arg1];
if (((!((_local4.x == _arg2))) || (!((_local4.y == _arg3))))){
_local4.x = _arg2;
_local4.y = _arg3;
_ix510 = true;
};
};
};
}
public function removeItem(_arg1:_ex557, _arg2:Boolean=true):void{
if (!_arg1){
return;
};
if (_arg1.parent){
_arg1.parent.removeChild(_arg1);
};
var _local3:_ps2722 = _arg1._fn629();
if (((_arg2) && (_dt2656))){
_dt2656._np721(_local3);
};
_nr656(_arg1);
}
public function _pg1785(_arg1:int, _arg2:int, _arg3:Boolean=true):void{
var _local6:int;
var _local7:int;
var _local4:_cf177 = _dt2656._eu1822(_arg1, _arg2);
var _local5:Sprite;
if (_local4){
_local5 = resources._xn2161(_local4._aw772, _wl690(_arg1, _arg2));
};
if (_local5){
_local6 = _rw1773(_arg1, _arg2);
_local7 = _ou1013(_arg1, _arg2);
_local5.x = _local6;
_local5.y = (_local7 + _local4._js3192);
};
_pr2557(_arg1, _arg2, _local5, _arg3);
}
public function _ax2656():_by515{
if (!_le546){
_le546 = new _by515(_xa220, _ic1337, _kr1759());
};
return (_le546);
}
public function _vu1561(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < _xp1284.length)))){
_xp1284[_arg1] = null;
_ix510 = true;
_hl2492 = true;
};
}
public function _kl2485():_lj345{
return (_dt2656);
}
public function _jj1244(_arg1:Event):void{
var event = _arg1;
try {
if (_hl2492){
_es2323();
} else {
if (_ix510){
_bt985();
};
};
} catch(err:Error) {
_ni2054._ev1283(err);
};
}
public function _yh1531():int{
return (-((x - (parent.width / 2))));
}
private function _pr2557(_arg1:int, _arg2:int, _arg3:DisplayObject, _arg4:Boolean=false):void{
var _local5:Sprite;
var _local6:Sprite;
var _local7:int;
var _local8:DisplayObject;
var _local9:int;
var _local10:DisplayObject;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local5 = tiles[((_arg2 * _xa220) + _arg1)];
_local6 = (_arg3 as Sprite);
tiles[((_arg2 * _xa220) + _arg1)] = _local6;
if (_arg4){
if (((_local5) && ((_local5.parent == this)))){
if (!_local6){
removeChild(_local5);
_local7 = 0;
while (_local7 < _local5.numChildren) {
_nr656((_local5.getChildAt(_local7) as _ex557));
_local7++;
};
} else {
addChild(_local6);
while (_local5.numChildren) {
_local8 = _local5.getChildAt(0);
_local5.removeChildAt(0);
_local6.addChild(_local8);
};
swapChildren(_local5, _local6);
removeChild(_local5);
};
} else {
if (_local6){
_local9 = 0;
while (true) {
_arg1--;
if (_arg1 < 0){
_arg1 = (_xa220 - 1);
_arg2--;
};
if ((((_arg1 < 0)) || ((_arg2 < 0)))){
break;
};
_local10 = tiles[((_arg2 * _xa220) + _arg1)];
if (_local10){
_local9 = (getChildIndex(_local10) + 1);
break;
};
};
addChild(_local6);
setChildIndex(_local6, _local9);
};
};
} else {
if (((_local5) && ((_local5.parent == this)))){
removeChild(_local5);
};
if (_local6){
addChild(_local6);
};
};
};
}
public function _kr1759():_ce283{
if (!_hb1964){
_hb1964 = new _ce283(_xa220, _ic1337);
};
return (_hb1964);
}
public function _qf3320():_ju1817{
return (_rg3521);
}
public function _ef314(_arg1:int, _arg2:int):void{
var _local3:int = (parent.width / 2);
var _local4:int = (parent.height / 2);
_local3 = (_local3 - _arg1);
_local4 = (_local4 - _arg2);
_eu2830((_local3 - x));
_uw624((_local4 - y));
}
public function _wl690(_arg1:int, _arg2:int):int{
var _local3:_fq2465;
var _local4:Number;
var _local5:int;
var _local6:_ce283;
var _local7:int;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = null;
_local4 = 0;
_local5 = 0;
while (_local5 < _xp1284.length) {
if (_xp1284[_local5]){
_local3 = _xp1284[_local5];
_local4 = (_local4 + _local3._vr588(_arg1, _arg2));
};
_local5++;
};
_local6 = _kr1759();
_local4 = (_local4 + _kr1759()._gq3031(_arg1, _arg2));
_local7 = _dt2656._mn2166();
if (_local4 < _local7){
_local4 = _local7;
};
if (_local4 >= _ks1885._im873){
_local4 = (_ks1885._im873 - 1);
};
return (((_ks1885._im873 - 1) - _local4));
};
return (0);
}
public function _xs2611(_arg1:int, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:int;
var _local8:Bitmap;
var _local9:int;
var _local10:DisplayObject;
if (((!(_pm2052)) || (!((_fo3083 == _arg3))))){
if (((_pm2052) && ((_pm2052.parent == this)))){
removeChild(_pm2052);
};
_pm2052 = null;
_fo3083 = _arg3;
if (!_arg3){
return;
};
_pm2052 = new Sprite();
_local6 = 0;
while (_local6 < _arg3) {
_local7 = 0;
while (_local7 < _arg3) {
_local8 = resources._fv3121();
_local8.x = _rw1773(_local6, _local7);
_local8.y = _ou1013(_local6, _local7);
_pm2052.addChild(_local8);
_local7++;
};
_local6++;
};
addChild(_pm2052);
};
var _local4:int = _wf1652(_arg1, _arg2);
var _local5:int = _vr2593(_arg1, _arg2);
if ((((((((_local4 >= 0)) && ((_local4 < _xa220)))) && ((_local5 >= 0)))) && ((_local5 < _ic1337)))){
_pm2052.x = _rw1773(_local4, _local5);
_pm2052.y = _ou1013(_local4, _local5);
_pm2052.visible = true;
if (_dt2656){
_local9 = 0;
_local6 = 0;
while (_local6 < _arg3) {
_local7 = 0;
while (_local7 < _arg3) {
_local10 = _pm2052.getChildAt(_local9);
if (_local10){
_local10.y = ((_ou1013((_local4 + _local6), (_local5 + _local7)) - _pm2052.y) + _dt2656._nr1810((_local4 + _local6), (_local5 + _local7)));
};
_local9++;
_local7++;
};
_local6++;
};
};
} else {
_pm2052.visible = false;
};
}
private function _bt985():void{
var _local2:_fq2465;
var _local3:Rectangle;
var _local4:int;
var _local5:int;
_ix510 = false;
var _local1:int;
while (_local1 < _xp1284.length) {
if (_xp1284[_local1] != null){
_local2 = _xp1284[_local1];
_local3 = _local2._bf2523();
if (((!(_local2._lg1977)) || (((_local2._lg1977) && (!(_local2._lg1977.equals(_local3))))))){
_local4 = 0;
_local5 = 0;
_local5 = _local3.y;
while (_local5 < (_local3.y + _local3.height)) {
_local4 = _local3.x;
while (_local4 < (_local3.x + _local3.width)) {
_xd2222(_local4, _local5);
_local4++;
};
_local5++;
};
if (_local2._lg1977){
_local5 = _local2._lg1977.y;
while (_local5 < (_local2._lg1977.y + _local2._lg1977.height)) {
_local4 = _local2._lg1977.x;
while (_local4 < (_local2._lg1977.x + _local2._lg1977.width)) {
if (!_local3.contains(_local4, _local5)){
_xd2222(_local4, _local5);
};
_local4++;
};
_local5++;
};
};
};
_local2._lg1977 = _local3;
};
_local1++;
};
}
public function _rw1773(_arg1:int, _arg2:int):int{
return (((_arg1 * tileWidth) - (_arg2 * tileHeight)));
}
public function _no2900(_arg1:int, _arg2:int, _arg3:_ex557, _arg4:Boolean=false, _arg5:_hj325=null, _arg6:Boolean=true):void{
var _local7:Sprite = (_eu1822(_arg1, _arg2) as Sprite);
if (_local7){
_local7.addChild(_arg3);
if (((_arg3._fn629()) && (_dt2656))){
if (_arg6){
_hm213(_arg3);
};
if (_arg4){
_dt2656.addItem(_arg3._fn629());
};
};
if (_arg3){
_arg3._ho613(_wl690(_arg1, _arg2));
};
if (_arg5){
_arg5._yu2882(_arg3._fn629(), _arg3);
};
};
}
public function _wd1294(_arg1:_ju1817):void{
_rg3521 = _arg1;
}
public function _wa3159(_arg1:_lj345, _arg2:_hj325=null):void{
var _local9:int;
var _local10:int;
var _local11:_ps2722;
var _local12:_ex557;
_dt2656 = _arg1;
_xa220 = _dt2656._xw1652();
_ic1337 = _dt2656._nw296();
tiles = new Array();
_ja2773 = new Array();
_xp1284 = new Array();
_vt3005 = new Array();
_hb1964 = null;
_le546 = null;
while (numChildren) {
removeChildAt(0);
};
var _local3:int = _xa220;
var _local4:int = _ic1337;
var _local5:int = tileWidth;
var _local6:int = tileHeight;
var _local7:int;
while (_local7 < _local3) {
_local9 = 0;
while (_local9 < _local4) {
_pg1785(_local7, _local9, false);
_local9++;
};
_local7++;
};
var _local8:Array = _dt2656._xr3453();
if (_local8){
_local10 = 0;
while (_local10 < _local8.length) {
_local11 = (_local8[_local10] as _ps2722);
_local12 = new _ex557(_local11);
_no2900(_local11.x, _local11.y, _local12, false);
if (_arg2){
_arg2._yu2882(_local11, _local12);
};
_local10++;
};
};
_dk664();
}
public function _ix747(_arg1:int, _arg2:int):int{
return ((((_arg1 * (tileWidth / 2)) + (_arg2 * (tileHeight / 2))) + (tileHeight / 2)));
}
public function _eu2830(_arg1:int):void{
if (_arg1 == 0){
return;
};
var _local2:int = (x + _arg1);
var _local3:int = ((_rw1773(_xa220, 0) + parent.width) - (tileWidth * 2));
var _local4:int = (-(_rw1773(_xa220, 0)) + (tileWidth * 2));
if (_local2 > _local3){
_local2 = _local3;
};
if (_local2 < _local4){
_local2 = _local4;
};
x = _local2;
}
private function _dp3373(_arg1:int, _arg2:int, _arg3:DisplayObject):void{
tiles[((_arg2 * _xa220) + _arg1)] = _arg3;
}
public function _vr2593(_arg1:int, _arg2:int):int{
_arg1 = (_arg1 - tileWidth);
return ((((_arg2 * 2) - _arg1) / (tileHeight * 2)));
}
public function _pf2892():int{
return (-((y - (parent.height / 2))));
}
}
}//package ambiera
Section 35
//_he2800 (ambiera._he2800)
package ambiera {
public class _he2800 {
public static const _wp2904:String = "=";
public static const _wr1759:uint = 0;
public static const _ap1143:String = "";
public static const _yy1252:uint = 1;
public static var _fp3227:String = "";
public static var _oy2815:uint = 0;
public static function _ok27(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function _ji1723(_arg1:String, _arg2:String, _arg3:String):String{
return (_et2249(_yj1393(_gb3306(_arg1), _gb3306(_arg2)), _arg3));
}
public static function _ks661(_arg1:Array):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function _gl1056(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (_uv1486(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function _rv875(_arg1:String):String{
var _local6:Number;
var _local7:Number;
var _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local4:Number = _arg1.length;
var _local5:Number = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + _fp3227);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function _qf923(_arg1:String):String{
return (_rv875(_ft1057(_gb3306(_arg1))));
}
public static function _ke52(_arg1:String):Array{
var _local3:Number;
var _local2:Array = new Array((_arg1.length >> 2));
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = 0;
_local3++;
};
_local3 = 0;
while (_local3 < (_arg1.length * 8)) {
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | ((_arg1.charCodeAt((_local3 / 8)) & 0xFF) << (_local3 % 32)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function _ew1899(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (_uv1486(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function _gh1799(_arg1:String):String{
var _local4:Number;
var _local2:String = (_oy2815) ? "0123456789ABCDEF" : "0123456789abcdef";
var _local3 = "";
var _local5:Number = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function _ew1818(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (_uv1486((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function _ps2022():Boolean{
return ((_fm2724("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function _uu1462(_arg1:Array, _arg2:Number):Array{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
var _local3:Number = 1732584193;
var _local4:Number = -271733879;
var _local5:Number = -1732584194;
var _local6:Number = 271733878;
var _local7:Number = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = _gl1056(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = _gl1056(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = _gl1056(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = _gl1056(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = _gl1056(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = _gl1056(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = _gl1056(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = _gl1056(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = _gl1056(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = _gl1056(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = _gl1056(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = _gl1056(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = _gl1056(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = _gl1056(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = _gl1056(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = _gl1056(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = _bc1469(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = _bc1469(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = _bc1469(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = _bc1469(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = _bc1469(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = _bc1469(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = _bc1469(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = _bc1469(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = _bc1469(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = _bc1469(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = _bc1469(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = _bc1469(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = _bc1469(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = _bc1469(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = _bc1469(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = _bc1469(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = _ew1899(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = _ew1899(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = _ew1899(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = _ew1899(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = _ew1899(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = _ew1899(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = _ew1899(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = _ew1899(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = _ew1899(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = _ew1899(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = _ew1899(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = _ew1899(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = _ew1899(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = _ew1899(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = _ew1899(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = _ew1899(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = _ew1818(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = _ew1818(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = _ew1818(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = _ew1818(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = _ew1818(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = _ew1818(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = _ew1818(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = _ew1818(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = _ew1818(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = _ew1818(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = _ew1818(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = _ew1818(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = _ew1818(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = _ew1818(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = _ew1818(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = _ew1818(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = _bq2309(_local3, _local8);
_local4 = _bq2309(_local4, _local9);
_local5 = _bq2309(_local5, _local10);
_local6 = _bq2309(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function _gb3306(_arg1:String):String{
var _local4:Number;
var _local5:Number;
var _local2 = "";
var _local3:Number = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function _nw275(_arg1:String, _arg2:String):String{
return (_gh1799(_yj1393(_gb3306(_arg1), _gb3306(_arg2))));
}
public static function _js1278(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function _et2249(_arg1:String, _arg2:String):String{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local3:Number = _arg2.length;
var _local4:Array = [];
var _local9:Array = new Array((_arg1.length / 2));
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
var _local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function _jy2088(_arg1:String, _arg2:String):String{
return (_et2249(_ft1057(_gb3306(_arg1)), _arg2));
}
public static function _fm2724(_arg1:String):String{
return (_gh1799(_ft1057(_gb3306(_arg1))));
}
public static function _ft1057(_arg1:String):String{
return (_ks661(_uu1462(_ke52(_arg1), (_arg1.length * 8))));
}
public static function _gv78(_arg1:String, _arg2:String):String{
return (_rv875(_yj1393(_gb3306(_arg1), _gb3306(_arg2))));
}
public static function _uv1486(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (_bq2309(_ok27(_bq2309(_bq2309(_arg2, _arg1), _bq2309(_arg4, _arg6)), _arg5), _arg3));
}
public static function _ls1111(_arg1:String):String{
return (_fm2724(_arg1));
}
public static function _cb2182(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function _bq2309(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function _yj1393(_arg1:String, _arg2:String):String{
var _local3:Array = _ke52(_arg1);
if (_local3.length > 16){
_local3 = _uu1462(_local3, (_arg1.length * 8));
};
var _local4:Array = new Array(16);
var _local5:Array = new Array(16);
var _local6:Number = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
var _local7:Array = _uu1462(_local4.concat(_ke52(_arg2)), (0x0200 + (_arg2.length * 8)));
return (_ks661(_uu1462(_local5.concat(_local7), (0x0200 + 128))));
}
public static function _bc1469(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (_uv1486(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
}
}//package ambiera
Section 36
//_hj325 (ambiera._hj325)
package ambiera {
public interface _hj325 {
function _yu2882(_arg1:_ps2722, _arg2:_ex557):void;
}
}//package ambiera
Section 37
//_hy184 (ambiera._hy184)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
public class _hy184 extends Sprite {
protected var _gf938:_ad1194;
private var _po2346:Class;
private var _jk1369:int;
private var _jd1329:int;
private var _ay3172:Class;
private var _ax2782:Bitmap;
private var _yl3459:Bitmap;
private var _os2393:Class;
public function _hy184(_arg1:DisplayObjectContainer){
_po2346 = _hy184__po2346;
_os2393 = _hy184__os2393;
_ay3172 = _hy184__ay3172;
super();
buttonMode = true;
useHandCursor = true;
_jd1329 = getTimer();
graphics.beginFill(0);
graphics.drawRect(0, 0, _arg1.width, _arg1.height);
graphics.endFill();
_arg1.addChild(this);
addEventListener(MouseEvent.MOUSE_DOWN, _go1638);
addEventListener(Event.ENTER_FRAME, _jj1244);
var _local2:Number = 1;
if (_arg1.height < 480){
_local2 = (_arg1.height / 480);
};
_ax2782 = new _ay3172();
addChild(_ax2782);
_ax2782.smoothing = true;
_ax2782.width = (_ax2782.width * _local2);
_ax2782.height = (_ax2782.height * _local2);
_ax2782.x = ((_arg1.width - _ax2782.width) / 2);
_ax2782.y = ((_arg1.height - _ax2782.height) / 2);
_ax2782.alpha = 0;
_yl3459 = new _po2346();
addChild(_yl3459);
_yl3459.smoothing = true;
_yl3459.width = (_yl3459.width * _local2);
_yl3459.height = (_yl3459.height * _local2);
_yl3459.x = ((_arg1.width - _yl3459.width) / 2);
_yl3459.y = (_ax2782.y + (144 * _local2));
_yl3459.alpha = 0;
var _local3:Sound = new _os2393();
_local3.play(0, 0);
}
private function _go1638(_arg1:Event):void{
var _local2:URLRequest = new URLRequest(_cr1330._uq3190);
navigateToURL(_local2);
}
public function _jj1244(_arg1:Event):void{
_jk1369++;
if (_jk1369 == 1){
_qy2760._qk2392._xx1753(true);
};
var _local2:int = getTimer();
var _local3:int = (_local2 - _jd1329);
var _local4:Number = ((_local3 - 3000) / 1000);
var _local5:Number = (_local3 / 1000);
if (_local4 < 0){
_local4 = 0;
};
if (_local4 > 1){
_local4 = 1;
};
if (_local5 > 1){
_local5 = 1;
};
_ax2782.alpha = _local4;
_yl3459.alpha = _local5;
if (((parent) && ((_local3 > 11000)))){
removeEventListener(Event.ENTER_FRAME, _jj1244);
parent.removeChild(this);
_fm197._oj3099._ey741(_fm197._dj2375);
_qy2760._qk2392._xx1753(false);
};
}
}
}//package ambiera
Section 38
//_hy184__ay3172 (ambiera._hy184__ay3172)
package ambiera {
import mx.core.*;
public class _hy184__ay3172 extends BitmapAsset {
}
}//package ambiera
Section 39
//_hy184__os2393 (ambiera._hy184__os2393)
package ambiera {
import mx.core.*;
public class _hy184__os2393 extends SoundAsset {
}
}//package ambiera
Section 40
//_hy184__po2346 (ambiera._hy184__po2346)
package ambiera {
import mx.core.*;
public class _hy184__po2346 extends BitmapAsset {
}
}//package ambiera
Section 41
//_hy2528 (ambiera._hy2528)
package ambiera {
import mx.utils.*;
public class _hy2528 {
public static const _bf3440:String = "Damage";
public static const _vv2677:String = "Removed {0} Gold";
public static const _ig2009:String = "Needed Intelligence: {0}";
public static const _bs2709:String = "Magical Power: +{0} points";
public static const _rs187:String = "Cannot save this character, there are already {0} characters existing in your account. Please delete at least one of the existing characters using Menu->Account Options before saving the new one.";
public static const _md1042:String = "Saving game";
public static const _ik305:String = "You need to build one of these for each guard tower.";
public static const _lc2383:String = "Transfer error";
public static const _bf1272:String = "Start position for the player in this map";
public static const _ur1962:String = "Please select the appearance of your character.";
public static const _kc3042:String = "Build a wall.";
public static const _yc2141:String = "Text shown after rel.Quest 3 is solved";
public static const _ju254:String = "Could not delete character.";
public static const _ys2384:String = "You don't have a premium account";
public static const _me454:String = "Save";
public static const _vc193:String = "Ring";
public static const _mu2182:String = "Spr";
public static const _gr2885:String = "Deny";
public static const _iu1576:String = "Historic ";
public static const _gl3450:String = "Please select one from your previously saved characters to delete.";
public static const _lb1272:String = "unique";
public static const _qx1019:String = "Delete this map";
public static const _pq2085:String = "Not enough gold. The price for the item is {0} gold.";
public static const _jd2824:String = "Damage per Impact: {0}";
public static const _dp2247:String = "Magic Damage Types";
public static const _kx2217:String = "Debug RPG Values";
public static const _sw1848:String = "Backpack";
public static const _yh2406:String = "Please select an option.";
public static const _at3448:String = "- Sound";
public static const _gb1332:String = "Login";
public static const _vo3249:String = "Terrain";
public static const _kn85:String = "End the running game";
public static const _ni879:String = "
Price (buy): {0} Gold";
public static const _vg576:String = "Referenced Map: ";
public static const _ur1751:String = "Effect Duration: {0} sec";
public static const _yl668:String = "Build a fire magic guild";
public static const _ya1243:String = "Blacksmith";
public static const _gj413:String = "v1.0, Created and Copyright by N.Gebhardt / Ambiera e.U.";
public static const _fa1590:String = "FGoblin";
public static const _wm2997:String = "Create a new Account";
public static const _dy3026:String = "Only users with Premium Accounts may advance over level {0}.";
public static const _rb458:String = "Strength";
public static const _uk906:String = "Jellyphall Mushroom";
public static const _bw3292:String = "Ghost";
public static const _et726:String = "Play full game (opens website)";
public static const _ta2876:String = "toggle";
public static const _cu3400:String = "Back to editor";
public static const _nb2773:String = "Fetch Items";
public static const _rl363:String = "Build dwellings";
public static const _qh3478:String = "Unnamed Realm";
public static const _ed83:String = "Go to {0}";
public static const _pj1943:String = "Lost Ghost";
public static const _lf2830:String = "This feature has not been made available for public use yet, sorry.";
public static const _np1840:String = "Cursor Size:";
public static const _cn1397:String = "Not possible in this game version";
public static const _iy64:String = "Fire Magic Tower";
public static const _rx215:String = "Damage: {0}";
public static const _bt1488:String = "Succub";
public static const _wx2290:String = "Click to select, Shift+Click on target to cast";
public static const _vu625:String = "Go To www.darkness-springs.eu";
public static const _sh1208:String = "Please select a realm to load or create a new one.";
public static const _sq2455:String = "Decoration Sprite";
public static const _ww2498:String = "Build a ice magic guild";
public static const _dg3215:String = "Could not delete the realm.";
public static const _ve1383:String = "Delete "{0}"";
public static const _dn166:String = "Switch to map";
public static const _sn597:String = "Lightning magic tower. For each 3 of these, you need one Lightning magic guild. Upgradeable.";
public static const _ak2235:String = "Load a character";
public static const _xo2576:String = "Needed for next Level";
public static const _id1110:String = "Back to game";
public static const _im1271:String = "Succubus";
public static const _hd1163:String = "Items";
public static const _sq2226:String = "Level up";
public static const _dc2933:String = "[not set]";
public static const _km2989:String = "Advance the character to the next level";
public static const _yi3102:String = "Trade";
public static const _tv1808:String = "Fire Resistance";
public static const _cm23:String = "Fire Magic Guild";
public static const _lw2646:String = "Please enter a unique name for your new character.";
public static const _uk2574:String = "Shortcut: "Q"";
public static const _lx1126:String = "Click to drink";
public static const _gx2504:String = "In order to play premium maps in this game, you need an account on www.darkness-springs.eu. Would you like to create or log into an existing account now?";
public static const _tf1800:String = "Cannot delete the last map in the realm.";
public static const _nu763:String = "Reaching this level is not possible in this game version. This flash game is a stripped down version of the full game. (The full version contains a huge amount of maps and data which would not be possible to be included in this single swf file.)
You can play the full game for free on www.darkness-springs.eu.";
public static const _hx1609:String = "A strong wall to protect your village.";
public static const _yx545:String = "Do you really want to start the editor now (current game progress will be lost if not saved before)?";
public static const _jw2282:String = "Text shown after rel.Quest 1 is solved";
public static const _mx2650:String = "Restart this map";
public static const _fp1116:String = "This map cannot be entered in this game version. This flash game is a stripped down version of the full game. (The full version contains a huge amount of maps and data which would not be possible to be included in this single swf file.)
You can play the full game for free on www.darkness-springs.eu.";
public static const _uc2468:String = "Menu";
public static const _ex1046:String = "Ode to the Shores of Galgag";
public static const _pg2192:String = "Map Selection";
public static const _lf340:String = "Guard tower, shoots silver bullets. To build 3 of these, you need one dwelling.";
public static const _so472:String = "Delete a map";
public static const _ok1112:String = "Skills";
public static const _mj2026:String = "Creates a random Goblin or Warg";
public static const _id3315:String = "Wall:";
public static const _pa339:String = "Email Adress";
public static const _dn2477:String = "This text will appear on the realm entry page. HTML Tags <img>, <a>, <b> and <br> are allowed.";
public static const _aa381:String = "Wall";
public static const _ic2674:String = "Save the character to the game server";
public static const _id3325:String = "Quests";
public static const _kf794:String = "Properties";
public static const _mk609:String = "Unnamed Map";
public static const _lo170:String = "Cannot equip {0}. {1}";
public static const _ce2135:String = "Map Finished!";
public static const _le270:String = "Book of Darkness Volume II";
public static const _uh2962:String = "An error occurred during changing the email adress.";
public static const _fw2541:String = "Intelligence";
public static const _vl1021:String = "Items";
public static const _dv1033:String = "Unused item slot";
public static const _oc972:String = "toggle quest type";
public static const _di513:String = "Finish one other quest";
public static const _uo1952:String = "New Game";
public static const _up2601:String = "Selected Item:";
public static const _nh1791:String = "Item/Monster Type: ";
public static const _rc1838:String = "You just died. Click ok to respawn at the nearest safe place. Half of your gold will be removed from your inventory.";
public static const _qn2018:String = "Short Sword";
public static const _bt3491:String = "Sucessfully Registered";
public static const _qr1849:String = "Bolt of Lightning";
public static const _og1704:String = "Finished Quests";
public static const _uh1652:String = "Current map style: {0}. Please select a new one.";
public static const _ow1709:String = "Fire Goblin Mage";
public static const _qc2980:String = "Needed Magic: {0}";
public static const _tg1425:String = "Swords";
public static const _hg2954:String = "Certificate of Power";
public static const _cn3170:String = "Change Level";
public static const _fm2854:String = "close";
public static const _rh3270:String = "The Legend of Aryzea";
public static const _bs601:String = "For three lightning magic towers, one of these needs to be built.";
public static const _oy1315:String = "Locks map until started: ";
public static const _ku2207:String = "Hero";
public static const _mx814:String = "Open Menu";
public static const _wm1284:String = "Circle of Ice";
public static const _dc2756:String = "Mage";
public static const _dg129:String = "Enter your house";
public static const _vu220:String = "Will-o'-the-wisp";
public static const _js3501:String = "Character";
public static const _xt1307:String = "state: ";
public static const _aw2622:String = "depends on quest";
public static const _cg567:String = "Map does not exist. (Maybe it was deleted?)";
public static const _se147:String = "Lightning Damage";
public static const _pb474:String = "Thanks for registering and have fun playing!
Note: Never show your account name, password or email-adress to anybody in order to protect your account.";
public static const _ob439:String = "Depends on solved quest: ";
public static const _ci2613:String = "[The ghost doesn't talk to you.]";
public static const _de194:String = "Account Options";
public static const _ho1985:String = "You can only save the realm about every {0} minutes, please wait a bit before saving again.";
public static const _gm311:String = "publish now!";
public static const _lv604:String = "For three fire magic towers, one of these needs to be built.";
public static const _iq1302:String = "Inventory";
public static const _af643:String = "Ice magic tower. For each 3 of these, you need one ice magic guild. Upgradeable.";
public static const _jd146:String = "Protection: {0}";
public static const _tn2848:String = "Set this map as startup map";
public static const _sx2383:String = "There is no saved character in this account.";
public static const _sa2070:String = "Health";
public static const _dt541:String = "Finished and Reward Text";
public static const _xf2261:String = "Hammer";
public static const _hr1166:String = "Unnamed";
public static const _dn2052:String = "The email adress was changed successfully.";
public static const _lu1325:String = "Points Remaining: ";
public static const _nv1740:String = "This account is already a premium account.";
public static const _de1289:String = "Set and send a new password";
public static const _cc1492:String = "Play";
public static const _vf49:String = "Shift+Click to cast";
public static const _tp1133:String = "No description set yet.";
public static const _uo1763:int = 10;
public static const _ko3041:String = "Fix zorder problems";
public static const _ea408:String = "Strength: +{0} points";
public static const _iy258:String = "This portal cannot be used yet. Speaking to people in the vicinity or accepting or solving quests may unlock it.";
public static const _gf2511:String = "New Password";
public static const _xn2391:String = "Ice Damage";
public static const _mv1327:String = "An error occurred during changing the password.";
public static const _th3201:String = "Not enough intelligence to cast {0}.";
public static const _ti2156:String = "Password";
public static const _tp2233:String = "Guard Tower";
public static const _xs906:String = "Chapter beginning text";
public static const _vl3271:String = "Select";
public static const _fl2617:String = "Accepted and Reasking Text";
public static const _al1811:String = "Map";
public static const _lc1751:String = "The old password is not correct.";
public static const _cp180:String = "Did you forget your password? Not a problem.
Please enter your account name and the email adress you spefified when creating the account. A new password will be generated and sent to that email-adress.";
public static const _wd537:String = "Witch";
public static const _sg1297:String = "Please select a spell to learn.";
public static const _eb2964:String = "Landlord";
public static const _mo3215:String = "Build a ice magic tower";
public static const _dj1564:String = "Level up!";
public static const _qd1282:String = "Logged in successfully. Welcome, {0}.";
public static const _ah873:String = "Village";
public static const _wa1304:String = "Skin of the Goblin";
public static const _hb3391:String = "Thanks for registering, you are now a Premium Member.
You might need to quit this game and log into your account again in order to take effect. Happy playing!";
public static const _fp837:String = "Dungeon";
public static const _qa1402:String = "Add new Dialog";
public static const _rv935:String = "Quest type: ";
public static const _sk1984:String = "Needed Hammers Skill: {0}";
public static const _aw1118:String = "Creating Account";
public static const _vq1358:String = "Price of House";
public static const _rg103:String = "Use portal to {0}";
public static const _uy1045:String = "Add new Quest";
public static const _mo2133:String = "Build a lightning magic guild";
public static const _qi2619:String = "Repeat New Password";
public static const _yc1537:String = "Change email adress";
public static const _kb1795:String = "
Price (sell): {0} Gold";
public static const _rm2011:String = "Create new Realm";
public static const _aw1369:String = "InteractionType: ";
public static const _la777:String = "Book of Darkness Volume I";
public static const _om1835:String = "Text shown after rel.Quest 2 is solved";
public static const _hy1060:String = "Main Quest";
public static const _dl3128:String = "Shortcut: "W"";
public static const _go2485:String = "Could not log in.";
public static const _bh3306:String = "Toggle Book Title";
public static const _jw2936:String = "Potion of Speed";
public static const _vm103:String = "Armor";
public static const _ey876:String = "Upgrade";
public static const _bf1776:String = "Character Selection";
public static const _th3264:String = "Failed to create the new account with the data you supplied.";
public static const _fa276:String = "Build a lightning magic tower";
public static const _rl2234:String = "The Life of Magoror the Great";
public static const _un883:String = "Other";
public static const _km1096:String = "For three ice magic towers, one of these needs to be built.";
public static const _dx992:String = "Delete a character";
public static const _tl2612:String = "Create a new account now";
public static const _ru3483:String = "Buy House";
public static const _nw1142:String = "Do you want to sell '{0}' for {1} gold?";
public static const _nx3364:String = "Ice Magic Guild";
public static const _vk3295:String = "Heals {0} points";
public static const _ea2724:String = "Account needed";
public static const _db774:String = "Repair";
public static const _jh1430:String = "Updated quest log";
public static const _yy2932:String = "On Enthpia";
public static const _px2424:String = "The first entered password is not the same as the second password, please correct.";
public static const _xc2237:String = "User Realm";
public static const _ur3193:String = "Load "{0}"";
public static const _lk239:String = "Repeat Password";
public static const _vr3145:String = "Finish all other quests";
public static const _hp3122:String = "Skills";
public static const _nd447:String = "Right Hand (Shield)";
public static const _kp2849:String = "Brief History of Vesril";
public static const _nu1570:String = "Toggle interaction type";
public static const _fl2462:String = "Toggle Ghost";
public static const _yd2006:String = "Static Light";
public static const _qy34:String = "Please select one from your previously saved characters to start playing with.";
public static const _fq2702:String = "Creates a random Ghost";
public static const _kh185:String = "Ice Magic Tower";
public static const _bf2664:String = "In order to start the Game Editor, your character must have at least level {0} or you must have premium account. You don't have a premium account or such a character at the moment.";
public static const _rb3408:String = "Level";
public static const _pg1566:String = "Tunnel Digging for Beginners";
public static const _to3148:String = "Remove Quest";
public static const _qo1867:String = "Login in";
public static const _gd2543:String = "Skin of the Warg";
public static const _rp1861:String = "OK, buy house";
public static const _qt3056:String = "The History of Traor";
public static const _oq3276:String = "Please assign the points to the prefered values.";
public static const _fc3407:String = "Maces";
public static const _ia2052:String = "Edit Quest";
public static const _ee404:String = "Porecup Flower";
public static const _is590:String = "Fire";
public static const _dg1778:String = "Values";
public static const _dr2389:String = "Experience";
public static const _io1364:String = "Locks map until finished: ";
public static const _cy1188:String = "Begin Text (asking for accept)";
public static const _sa2726:String = "Undead";
public static const _xp2875:String = "Retry";
public static const _dh1342:String = "Toggle Sound Options";
public static const _yu2070:String = "Get Premium Account Now";
public static const _no246:String = "Error while saving realm.";
public static const _in911:String = "Left Finger (Ring)";
public static const _ti2806:String = "Magical Power";
public static const _ss2338:String = "item/monster type";
public static const _bd1777:String = "Started Quests";
public static const _je2709:String = "Needed Armor Skill: {0}";
public static const _nt2426:String = "Delete";
public static const _tx582:String = "Living";
public static const _ei1588:String = "Lightning Magic Tower";
public static const _ti1961:String = "Change name of map";
public static const _ss3430:String = "Fragments of Artemisias Journal";
public static const _rg1507:String = "Set target map";
public static const _xl942:String = "Is Mage: ";
public static const _cp2381:String = "Click to cast";
public static const _hk2614:String = "Gate";
public static const _eo2961:String = "Error while loading realm.";
public static const _ol1638:String = "Resetting password failed.";
public static const _sw466:String = "To the main menu";
public static const _sq2983:String = "Premium maps are only available for Darkness Springs premium players, playing at www.darkness-springs.eu";
public static const _wm1500:String = "Add a new map";
public static const _jh1274:String = "Load or Create a new Realm";
public static const _xk2199:String = "Cannon Tower";
public static const _nc190:String = "Sword";
public static const _dm1612:String = "Old Password";
public static const _oh440:String = "This is a campaign map. You need to survive {0} waves to unlock the next map.";
public static const _ow2040:String = "Darkness Springs Realm";
public static const _xx1226:String = "Undead Guard";
public static const _pt37:String = "Unused spell slot";
public static const _sl244:String = "Cannot delete the currently active character.";
public static const _hw3289:String = "Accept";
public static const _cu1551:String = "Not enough magic power to cast {0}.";
public static const _de424:String = "Level up";
public static const _qy1183:String = "not published";
public static const _le543:String = "rel. Quest";
public static const _if3444:String = "Room";
public static const _ir1818:String = "Feet of the Rabbit";
public static const _wn1320:String = "Text";
public static const _mx2714:String = "Ice Resistance";
public static const _wh3238:String = "Lvl";
public static const _gs1488:String = "Cancel";
public static const _nm1060:String = "Spellbook of Dradoor";
public static const _yq3532:String = "Goblin";
public static const _fo2705:String = "Cancel";
public static const _fa2552:String = "Piece of Paper";
public static const _dd586:String = "Please enter a new email adress. This adress should be correct in order to work for lost password recovery.";
public static const _sj3311:String = "Lost: Your town center has been destroyed. You made it until wave {0}!";
public static const _lj1288:String = "Darkness Springs Defense";
public static const _ma1301:String = "Loading map";
public static const _df1566:String = "Secrets of the Fire Island";
public static const _eh3532:String = "The password was changed successfully.";
public static const _xw985:String = "Bolt of Fire";
public static const _vq369:String = "Armor";
public static const _ch3165:String = "Deleting Character";
public static const _ug3071:String = "Toggle Fire";
public static const _hu2142:String = "Username";
public static const _ul2467:String = "Creates a random succubus";
public static const _tp446:String = "Deleting realm";
public static const _ha535:String = "Toggle Mage";
public static const _qp1058:String = "Open Character & Quests (shortcut "O")";
public static const _pm1228:String = "Next following quest: ";
public static const _hl3323:String = "Amount of Bolts: {0}";
public static const _gv878:String = "Circle of Lightning";
public static const _gn911:String = "Select quest";
public static const _xq2287:String = "Needed Maces Skill: {0}";
public static const _nj2543:String = "NPCs";
public static const _id3405:String = "Town Center";
public static const _ai1663:String = "Change name of realm";
public static const _na2874:String = "Start Game Editor";
public static const _la2495:String = "Toggle Patrolling";
public static const _jx231:String = "Sell";
public static const _or2620:String = "Axes Skill: +{0} points";
public static const _mb2492:String = "Transfering data, please wait...";
public static const _ks1819:String = "Gold";
public static const _vk1554:String = "Toggle use dynamic light";
public static const _mj1048:String = "Witcher";
public static const _ke328:String = "Attributes";
public static const _ff2844:String = "Book";
public static const _aa1563:String = "Quest: ";
public static const _lr3151:String = "locked map until finished";
public static const _wh3292:String = "Please enter name and password of your existing account.";
public static const _ar2214:String = "Bolt of Ice";
public static const _wn2488:String = "Undead Mage";
public static const _nt3383:String = "Fire Goblin";
public static const _rm1646:String = "Creates a random Fire Goblin";
public static const _od923:String = "Right Finger (Ring)";
public static const _bk3421:String = "Added {0} Exp";
public static const _ta2320:String = "The Realm was deleted.";
public static const _aw489:String = "Enter Premium registration code";
public static const _js1648:String = "None";
public static const _vg3069:String = "The password was wrong.";
public static const _yn1545:String = "Trade";
public static const _tg1758:String = "Items:";
public static const _mg128:String = "Scroll down";
public static const _re420:String = "An error occurred during registering with the registration code you entered.";
public static const _vc2790:String = "Drag/Drop items to buy and sell.";
public static const _dm1234:String = "Is Patrolling: ";
public static const _jt2544:String = "Needed Swords Skill: {0}";
public static const _pf2292:String = "Protection";
public static const _dw2043:String = "This entry is locked. Speaking to people in the vicinity or accepting or solving quests may unlock it.";
public static const _lr567:String = "locked map until started";
public static const _up2707:String = "Forge";
public static const _li991:String = "Dead";
public static const _rh1188:String = "Unnamed Realm";
public static const _de2450:String = "Needed Axes Skill: {0}";
public static const _je316:String = "This map is only playable for premium accounts. You need to make your account a premium account first.";
public static const _nj1029:String = "Set map style";
public static const _ba1303:String = "Please select a realm to delete.";
public static const _xm81:String = "Build a fire magic tower";
public static const _ul2052:String = "Failed registering";
public static const _gq2108:String = "Delete a realm";
public static const _cm1033:String = "Build a cannon tower";
public static const _eh2058:String = "Ice";
public static const _pb2623:String = "Scroll up";
public static const _gq1264:String = "Shields";
public static const _yx481:String = "Auto";
public static const _hp1419:String = "Scroll to map content";
public static const _ct1140:String = "Congratulations, you finished this map and survived wave {0}!
The next map in the campaign has been unlocked.
(Your progress will be saved now)";
public static const _xh3289:String = "following quest";
public static const _ky183:String = "Clear target map";
public static const _tp2559:String = "Mace";
public static const _ba1564:String = "Creates a random Undead Skeleton";
public static const _es120:String = "Please fill in the following fields. Revealing your email adress is optional, it will only be used to send you a mail in case you forgot your password or to notify you of changes to your game account such as problems with your account or new available game addons (about 3 or 4 times a year).";
public static const _em2302:String = "Shield Skill: +{0} points";
public static const _mv1411:String = "Shortcut: "{0}"";
public static const _fy2051:String = "Fire Resistance: +{0} points";
public static const _ci861:String = "Options";
public static const _yh1069:String = "Show Terms and Conditions";
public static const _gy1397:String = "Save Realm";
public static const _nx2532:String = "This feature is not implemented yet.";
public static const _qf2271:String = "referenced map";
public static const _cs1355:String = "Successfully created your account:
";
public static const _ve3033:String = "OK";
public static const _bb2221:String = "Maximum amount of maps reached ({1}). You can add up to {0} maps when you have a premium account.";
public static const _ir1468:String = "Hammers";
public static const _yo2240:String = "Health: +{0} points";
public static const _yp2284:String = "Ancient ";
public static const _kf3471:String = "Description Text";
public static const _wj1533:String = "Learned Spells";
public static const _rn1020:String = "Not enough gold. The price for the house is {0} gold.";
public static const _tp2332:String = "Biography of King Voren";
public static const _sw1371:String = "Do you want to buy '{0}' for {1} gold?";
public static const _gi3355:String = "Forgot Password";
public static const _ey918:String = "Log into an existing account";
public static const _vt1069:String = "Reward Gold";
public static const _jh1704:String = "Loading realm";
public static const _gk269:String = "Potion of Magic";
public static const _oc2030:String = "Are you sure you want to delete the Character '{0}'? Please enter your password to confirm this.";
public static const _tr2183:String = "+ Sound";
public static const _mf1444:String = "Test map";
public static const _jd2358:String = "Build a guard tower";
public static const _cq1538:String = "More Darkness Springs games";
public static const _dl2102:String = "Please assign the points to the prefered skills.";
public static const _tv2628:String = "Legendary ";
public static const _vc2372:String = "Cannot delete the currently loaded realm.";
public static const _vl2055:String = "Invisibility";
public static const _pc1146:String = "Creates a random Goblin, Undead Guard or Warg";
public static const _gx2238:String = "Added {0} Gold";
public static const _lf2351:String = "Depth:";
public static const _am1726:String = "Goto Game Website";
public static const _rw2056:String = "Name";
public static const _ti3125:String = "Change password";
public static const _ca2409:String = "Sound Volume: ";
public static const _lt2754:String = "Bandit";
public static const _yd247:String = "Needed Shields Skill: {0}";
public static const _xy348:String = "Realm";
public static const _vq2546:String = "Pufftooth Mushroom";
public static const _ks2772:String = "Gold";
public static const _wl3114:String = "For three cannon towers, one of these needs to be built.";
public static const _wy557:String = "Open realm web page";
public static const _le1001:String = "Beltbag (only available for premium users)";
public static const _qp227:String = "Goblin Mage";
public static const _lm2214:String = "Left Hand (Weapon)";
public static const _yf1048:String = "Are you sure you want to delete the Realm '{0}'? Please enter your password to confirm this.";
public static const _so1062:String = "Item count: ";
public static const _ql2132:String = "public";
public static const _ij1160:String = "Maces Skill: +{0} points";
public static const _qk3424:String = "The merchant refuses to buy this item.";
public static const _cy1218:String = "Potion of Healing";
public static const _px2740:String = "Body (Armor)";
public static const _yg1097:String = "Shield";
public static const _ap2496:String = "Cannot create account";
public static const _br2281:String = "Swords Skill: +{0} points";
public static const _sk1637:String = "Could not save character.";
public static const _ww2800:String = "Needed Strength: {0}";
public static const _vy3305:String = "Fire Damage";
public static const _ho3401:String = "Axe";
public static const _ao1375:String = "Publication";
public static const _tl776:String = "Bandit";
public static const _tw1153:String = "Monstr";
public static const _gm1682:String = "Warg";
public static const _du350:String = "Lightning Magic Guild";
public static const _uo3406:String = "The Beltbag is only available for premium users";
public static const _mn2477:String = "Projectile Speed: {0}";
public static const _cl740:String = "+ Music";
public static const _ld937:String = "None";
public static const _ui3139:String = "Continue playing this map";
public static const _rl34:String = "Error in Map";
public static const _ot1809:String = "nothing";
public static const _le3228:String = "Error while loading map.";
public static const _aw3207:String = "Fire magic tower. For each 3 of these, you need one fire magic guild. Upgradeable.";
public static const _ll1361:String = "make hidden";
public static const _dj1002:String = "House";
public static const _mt2524:String = "The password is too short, please correct.";
public static const _xa1419:String = "Please enter the following fields in order to change your password.";
public static const _pr656:String = "The Character was deleted.";
public static const _wq1221:String = "Open Inventory & Spells (shortcut "I")";
public static const _xx1731:String = "Music Volume: ";
public static const _ox3443:String = "Architecture of the Oracle of Cibur";
public static const _ig352:String = "Dagger";
public static const _xp2714:String = "Please Select a quest";
public static const _wp1681:String = "Premium Code:";
public static const _qf150:String = "Hands of Healing";
public static const _km505:String = "Beltbag";
public static const _og1249:String = "Axes";
public static const _sv3385:String = "Kill all Monsters in map";
public static const _fl2340:String = "Hammers Skill: +{0} points";
public static const _mk1304:String = "Ice Resistance: +{0} points";
public static const _sv3141:String = "Lightning";
public static const _sm627:String = "Realm description:";
public static const _dv1825:String = "Reward Experience";
public static const _kj1121:String = "Please select a map as target for the gate";
public static const _up1075:String = "Toggle Ice";
public static const _ss178:String = "Hero";
public static const _mb1878:String = "Intelligence: +{0} points";
public static const _ah3280:String = "Toggle Lighting";
public static const _jo2750:String = "Floor:";
public static const _io2563:String = "Saving Character";
public static const _qd2096:String = "Bones of the Undead";
public static const _gu809:String = "Resetting password succeeded. An email has been sent to your email account with instructions on how to reset your password.";
public static const _ys1241:String = "Dwelling";
public static const _bu2758:String = "Confirm Trade";
public static const _un2577:String = "Help";
public static const _ec3345:String = "Edit Dialog";
public static const _nt1672:String = "Remove Dialog";
public static const _cd1825:String = "Agabole Herbs";
public static const _se926:String = "An error occured while transfering data with the server.
Please ensure that you are playing the game from www.darkness-springs.eu and that the server is online.";
public static const _oh3490:String = "magical";
public static const _cp2231:String = "Lightning Resistance";
public static const _bk675:String = "Finish this map";
public static const _tp963:String = "Armor Skill: +{0} points";
public static const _af3471:String = "Please select a map to open in the editor";
public static const _lo518:String = "Please enter the premium account registration code you received after purchasing it. It should have the form XXXX-XXXX-XXXX-XXXX-XX.";
public static const _ck3099:String = "This is not possible in this game version. This flash game is a stripped down version of the full game. (The full version contains a huge amount of maps and data which would not be possible to be included in this single swf file.)
You can play the full game for free on www.darkness-springs.eu.";
public static const _om1318:String = "Maximum amount of maps reached.";
public static const _av638:String = "Cannon tower, shoots cannon balls. To build 3 of these, you need one forge.";
public static const _ao23:String = "Target Map: '{0}'";
public static const _wh1366:String = "You need to save this realm before its website is available.";
public static const _xl807:String = "Build a forge";
public static const _jx3307:String = "The user name is too short, please correct.";
public static const _fh2937:String = "Restart this map";
public static const _no3154:String = "- Music";
public static const _fd3356:String = "Your weapon has no effect";
public static const _yi585:String = "Lightning Resistance: +{0} points";
public static const _lx584:Array = new Array(_yy2932, _qt3056, _ex1046, _kp2849, _tp2332, _df1566, _ss3430, _rh3270, _ox3443, _rl2234, _la777, _le270, _hg2954, _nm1060, _pg1566);
public static const _ei2318:String = "Quest/Person name";
public static const _ei2319:String = "Start";
public static const _ck1922:String = "Quest";
public static const _yl2288:String = "Circle of Fire";
public static const _xj3345:String = "Cannot start premium map";
public static const _bu1219:String = "Sound & Music";
public static const _wm2704:String = "Ghost";
public static function formatString(_arg1:String, ... _args):String{
if (_arg1){
return (StringUtil.substitute(_arg1, _args));
};
return (_arg1);
}
}
}//package ambiera
Section 42
//_if3335 (ambiera._if3335)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
public class _if3335 extends UIComponent {
private const _gc1123:int = 20;
private var _ml1113:Array;
private var _pw182:int;
private var _dx658:Array;
private var _kd2098:_oc1935;
private var _iq290:Array;
private var _ww2239:int;
private var _fy2324:Array;
private var _pr449:int;
private var _mw1365:_oc1935;
public function _if3335(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int=3){
var _local5:_oc1935;
super();
_pr449 = _arg2;
_pw182 = _arg3;
_iq290 = new Array();
_fy2324 = new Array();
_dx658 = new Array();
_ml1113 = null;
_kd2098 = new _oc1935(null, this, _ks1885._oj3099._go492.bitmapData, -1, _gc1123, 1, true);
_kd2098.addEventListener(MouseEvent.MOUSE_DOWN, _ck1865);
_kd2098.x = (_arg2 - _gc1123);
_mw1365 = new _oc1935(null, this, _ks1885._oj3099._ao530.bitmapData, -1, _gc1123, 1, true);
_mw1365.addEventListener(MouseEvent.MOUSE_DOWN, _cx2234);
_mw1365.x = (_arg2 - _gc1123);
_mw1365.y = (_kd2098.height * (_arg3 - 1));
var _local4:int;
while (_local4 < _arg3) {
_local5 = new _oc1935("", this, null, -1, (_arg2 - _gc1123));
_local5.y = (_kd2098.height * _local4);
_iq290.push(_local5);
_local4++;
};
width = _arg2;
height = (_mw1365.y + _mw1365.height);
_sh2186();
if (_arg1){
_arg1.addChild(this);
};
_xv2988();
}
public function _gr2562(_arg1:Boolean=true):void{
_fy2324 = new Array();
_dx658 = new Array();
if (_arg1){
_sh2186();
};
}
public function getItemCount():int{
return (_fy2324.length);
}
public function _sh2186():void{
var _local2:_oc1935;
var _local3:String;
var _local4:BitmapData;
_kd2098.enabled = !((_ww2239 == 0));
_kd2098.alpha = (_kd2098.enabled) ? 1 : 0.5;
_mw1365.enabled = ((_ww2239 + _pw182) < _fy2324.length);
_mw1365.alpha = (_mw1365.enabled) ? 1 : 0.5;
var _local1:int = _ww2239;
while (_local1 < (_ww2239 + _pw182)) {
_local2 = (_iq290[(_local1 - _ww2239)] as _oc1935);
_local3 = "";
_local4 = null;
if (_local1 < _fy2324.length){
_local3 = (_fy2324[_local1] as String);
_local4 = (_dx658[_local1] as BitmapData);
} else {
_local3 = null;
};
if (_local2){
if (((_local4) && (_local3))){
_local2._ub2042(_local3, _local4);
} else {
if (_local3){
_local2._mr1085(_local3);
};
};
_local2.visible = !((_local3 == null));
if (((((_local3) && (_ml1113))) && ((_local1 < _ml1113.length)))){
_local2._cb2006(_ml1113[_local1]);
};
};
_local1++;
};
}
public function addItem(_arg1:String, _arg2:Boolean=true, _arg3:BitmapData=null):void{
_fy2324.push((_arg1) ? _arg1 : "");
_dx658.push(_arg3);
if (_arg2){
_sh2186();
};
}
public function _ux2892(_arg1:_kn2066, _arg2:Array):void{
var _local4:_oc1935;
_ml1113 = _arg2;
var _local3:int;
while (_local3 < _iq290.length) {
_local4 = (_iq290[_local3] as _oc1935);
if (_local4){
_local4._sk293(_arg1, "");
};
_local3++;
};
_sh2186();
}
public function _fj3135(_arg1:_oc1935):int{
var _local2:int;
while (_local2 < _iq290.length) {
if (_arg1 == _iq290[_local2]){
return ((_local2 + _ww2239));
};
_local2++;
};
return (-1);
}
public function _xv2988():void{
var _local1:Graphics = graphics;
_local1.beginFill(3813938);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
var _local2:Bitmap = _ks1885._oj3099._yi1856;
_local1.beginFill(2169884);
_local1.drawRect((width - _gc1123), 0, _gc1123, height);
_local1.endFill();
}
private function _ck1865(_arg1:Event):void{
if (!_kd2098.enabled){
return;
};
if (_ww2239 > 0){
_ww2239 = (_ww2239 - _pw182);
if (_ww2239 < 0){
_ww2239 = 0;
};
_sh2186();
};
}
public function setItemIcon(_arg1:int, _arg2:BitmapData):void{
if ((((_arg1 >= 0)) && ((_arg1 < _dx658.length)))){
_dx658[_arg1] = _arg2;
};
}
public function _au1064(_arg1:int):_oc1935{
if (_iq290.length > _arg1){
return ((_iq290[_arg1] as _oc1935));
};
return (null);
}
private function _cx2234(_arg1:Event):void{
if (!_mw1365.enabled){
return;
};
if (_ww2239 < (_fy2324.length + _pw182)){
_ww2239 = (_ww2239 + _pw182);
if (_ww2239 >= (_fy2324.length + _pw182)){
_ww2239 = ((_fy2324.length + _pw182) - 1);
};
_sh2186();
};
}
}
}//package ambiera
Section 43
//_ig1593 (ambiera._ig1593)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.filters.*;
public class _ig1593 extends _td2957 implements _hj325, _kn2066 {
private const _pv2820:int = 10;
private const _fg3060:int = 3;
private const _mr1704:int = -30;
private var _fh3525:_oc1935;
private var _or1534:_oc1935;
private var _fr2035:int;// = 0
private var _te2817:Array;
private var _wr2350:Array;
private var _pg264:int;
private var _ck2197:UIComponent;
private var _vg827:_ex557;// = null
private var _xe1663:int;// = 0
private var _ys951:int;
private var _tu3483:int;
private var _qd403:Array;
private var _mw2340:_oc1935;// = null
private var _hu422:_ad1194;
private var _et2781:Timer;
private var _lc1078:int;
private var _wf831:int;// = 1
private var _jy1655:_ad1194;
private var _cb525:Array;
private var _dw187:int;
private var _cu761:Array;
private var _dv1553:Array;
private var _ow3310:_oc1935;// = null
private var _gq204:Array;
private var _ah1438:_oc1935;
private var _oo2907:_oc1935;
private var _ob3249:int;
private var _ld3237:int;
private var _jg3059:Sprite;
private var _ed1126:TextField;
private var _bb1083:_ex557;// = null
private var _ut1014:int;
private var _kg2968:int;// = 1
private var _yg833:TextField;
private var _ww1719:int;// = 0
private var _mr3036:TextField;
private var _eo3404:int;
private var _wf88:_gm2472;
private var _yn2169:int;
private var _xu2972:_oc1935;
private static const _il1440:uint = 0;
private static const _rs1279:uint = 3;
private static const _nr1759:uint = 4;
private static const _by2853:uint = 2;
private static const _qq1242:uint = 1;
private static const _rs1000:uint = 5;
public static var _oj3099:_ig1593;
public function _ig1593(_arg1:DisplayObjectContainer, _arg2:_gm2472){
_wf88 = _arg2;
_oj3099 = this;
_xh1372 = _arg1;
_ld3237 = 2;
_ut1014 = 1;
_ob3249 = 3;
_yn2169 = 1;
_ys951 = 2;
_eo3404 = 2;
_dw187 = 0;
_hu422 = new _ad1194(_arg1);
_hu422.x = 0;
_hu422.y = 5;
_hu422.width = 153;
_hu422.height = (_xh1372.height - _hu422.y);
_hu422._ne1505(_hy2528._if3444);
_hu422._ne1505(_hy2528._vl1021);
_hu422._ne1505(_hy2528._un883);
_hu422._fr2300();
_wg1681();
_pl2513();
_oc367();
_fd2522();
_ov3363();
_tj1753();
_lf321();
_xs431();
_ho2448();
_xb2622();
_sn1643();
_fh3525 = new _oc1935(_hy2528._xy348, _arg1);
_fh3525.addEventListener(MouseEvent.MOUSE_DOWN, _px3533);
_fh3525.x = 200;
_fh3525.y = 0;
_ah1438 = new _oc1935(_hy2528._al1811, _arg1);
_ah1438.addEventListener(MouseEvent.MOUSE_DOWN, _ng439);
_ah1438.x = (_fh3525.x + _fh3525.width);
_ah1438.y = 0;
_xu2972 = new _oc1935(_hy2528._ci861, _arg1);
_xu2972.addEventListener(MouseEvent.MOUSE_DOWN, _fe1755);
_xu2972.x = (_ah1438.x + _ah1438.width);
_xu2972.y = 0;
_oo2907 = new _oc1935(_hy2528._id3325, _arg1);
_oo2907.addEventListener(MouseEvent.MOUSE_DOWN, _aa2000);
_oo2907.x = (_xu2972.x + _xu2972.width);
_oo2907.y = 0;
_rg3319(true);
_qg2641(false);
var _local3:_fm197 = _fm197._oj3099;
_local3._er512(_fm197._cy2890);
}
private function _fc2876(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _cb525.length) {
if (_cb525[_local3] == _local2){
_ut1014 = _local3;
break;
};
_local3++;
};
_ov3363();
}
private function _aa2000(_arg1:Event):void{
var event = _arg1;
_rt2598._oj3099._lx2182(_hy2528._yh2406, _hy2528._ci861, _hy2528._qa1402, _hy2528._ec3345, _hy2528._nt1672, _hy2528._uy1045, _hy2528._ia2052, _hy2528._to3148, _hy2528._fo2705, function ():void{
_lc493();
});
}
private function _lr123():void{
if (_rt2598._oj3099._mv1993() == -1){
_fr2035 = _rt2598._oj3099._ye2732();
_ek3356();
};
}
private function _xk971(_arg1:_lj345):void{
if (_ae2040._fu463() < 2){
_rt2598._oj3099._hh2204(_hy2528._tf1800, _hy2528._so472);
return;
};
_ae2040._ke1083(_arg1);
if (_arg1 == _dt2656){
_bi1390(_ae2040._bn1309());
};
}
public function _yu2882(_arg1:_ps2722, _arg2:_ex557):void{
var _local3:uint = _tv609._xe421(_arg1.itemType);
switch (_local3){
case _tv609._pg2441:
_wf88._mp3341(_arg1.x, _arg1.y, _tv609._pv909(_arg1.itemType));
break;
};
}
public function _hs854():void{
_wf88._wa3159(_dt2656, this);
_rg3319(true);
_wf88._xs2611(0, 0, 0);
_wy1228(true);
var _local1:_fm197 = _fm197._oj3099;
_local1._er512(_fm197._cy2890);
}
private function _bt2595():void{
var _local1:_ot519 = _ae2040._fg1749()[_fr2035];
if (!_local1){
return;
};
_local1.name = _rt2598._oj3099._yl840(0);
_local1._mk1959 = int(_rt2598._oj3099._yl840(1));
_local1._xq1580 = int(_rt2598._oj3099._yl840(2));
_local1._vi1748 = _rt2598._oj3099._yl840(3);
_local1._vl2038 = _rt2598._oj3099._yl840(4);
_local1._vv2934 = _rt2598._oj3099._yl840(5);
_local1._pf2480 = _rt2598._oj3099._yl840(6);
_local1._kb109 = int(_rt2598._oj3099._yl840(7));
_local1._mk1959 = Math.min(999999, _local1._mk1959);
_local1._mk1959 = Math.max(0, _local1._mk1959);
_local1._xq1580 = Math.min(999999, _local1._xq1580);
_local1._xq1580 = Math.max(0, _local1._xq1580);
var _local2 = 1500;
var _local3 = 86;
if (_local1.name.length > _local3){
_local1.name = _local1.name.substr(0, _local3);
};
if (_local1._vi1748.length > _local2){
_local1._vi1748 = _local1._vi1748.substr(0, _local2);
};
if (_local1._vl2038.length > _local2){
_local1._vl2038 = _local1._vl2038.substr(0, _local2);
};
if (_local1._vv2934.length > _local2){
_local1._vv2934 = _local1._vv2934.substr(0, _local2);
};
if (_local1._pf2480.length > _local2){
_local1._pf2480 = _local1._pf2480.substr(0, _local2);
};
}
private function _ov2986(_arg1:int, _arg2:int, _arg3:int):int{
switch (_arg3){
case 1:
return (((Math.random() > 0.5)) ? _ks1885._ey2185 : _ks1885._qt3533);
case 2:
return ((((_arg1 + _arg2) % 2)) ? _ks1885._qe729 : _ks1885._fu1749);
case 3:
return (((Math.random() > 0.8)) ? _ks1885._bj2522 : ((Math.random() > 0.5)) ? _ks1885._ur2852 : _ks1885._kp1916);
case 4:
return (_ks1885._hi2054);
case 5:
return ((((_arg1 + _arg2) % 2)) ? _ks1885._qo1814 : _ks1885._qg1970);
case 6:
return (((Math.random() > 0.5)) ? _ks1885._qi1773 : _ks1885._xn2300);
case 7:
return (((Math.random() > 0.9)) ? _ks1885._dj2835 : ((Math.random() > 0.5)) ? _ks1885._xn2300 : _ks1885._qi1773);
case 8:
return (((Math.random() > 0.8)) ? _ks1885._lh742 : ((Math.random() > 0.5)) ? _ks1885._mk3213 : _ks1885._qi1773);
case 9:
return (((Math.random() > 0.5)) ? _ks1885._mk3213 : _ks1885._lh742);
case 10:
return (((Math.random() > 0.66)) ? _ks1885._jv1655 : ((Math.random() > 0.5)) ? _ks1885._hj334 : _ks1885._bb1991);
case 11:
return (((Math.random() > 0.66)) ? _ks1885._is3353 : ((Math.random() > 0.5)) ? _ks1885._aw2584 : _ks1885._ex2262);
case 12:
return (((Math.random() > 0.5)) ? _ks1885._xo721 : _ks1885._eq1715);
case 13:
return (((Math.random() > 0.5)) ? _ks1885._sd1755 : _ks1885._ag187);
case 14:
return (((Math.random() > 0.5)) ? _ks1885._ax1124 : _ks1885._og1609);
case 15:
return (((Math.random() > 0.5)) ? _ks1885._ec1788 : _ks1885._ln470);
case 16:
return (((Math.random() > 0.5)) ? _ks1885._yl1087 : _ks1885._rt22);
default:
return (0);
};
}
private function _nw143():void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local1 = 30;
_local2 = 1;
while (_local2 < _local1) {
_ni2054.print(((("Exp needed for level" + _local2) + ": ") + _tv609._se2766(_local2)));
_local3 = (_tv609._se2766(_local2) - _tv609._se2766((_local2 - 1)));
_local4 = (_local3 / _tv609._pf1923(_tv609._lf1426(_tv609._mf3458, (_local2 - 1))));
_local5 = (_local3 / _tv609._pf1923(_tv609._lf1426(_tv609._qj2375, (_local2 - 1))));
_ni2054.print(((("Goblins/Skeletons to kill:" + _local4) + " ") + _local5));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._mp331, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._qj2375, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._mf3458, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._xu1450, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._cq3482, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ew2156(_tv609._lf1426(_tv609._ou985, _local2));
_local2++;
};
_ni2054.print("");
_ni2054.print("");
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ru94(_tv609._ba3524(_tv609._id3076, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ru94(_tv609._ba3524(_tv609._qe451, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ru94(_tv609._ba3524(_tv609._wc1920, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ru94(_tv609._ba3524(_tv609._qr2537, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 1;
while (_local2 < _local1) {
_ru94(_tv609._ba3524(_tv609._vv2837, _local2));
_local2++;
};
_ni2054.print("");
_local2 = 0;
while (_local2 < _local1) {
_hb811(_lf35._er1964(_local2));
_local2++;
};
}
private function _lr2724():void{
var _local1:int;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = _rt2598._oj3099._ye2732();
_ae2040._ug1553(_local1);
};
}
private function _ai1384():void{
var _local1:String = _pf406(_dt2656);
System.setClipboard(_local1);
}
private function _hb811(_arg1:uint):void{
_ni2054.print(((((((((((_tv609._kl2415(_arg1) + " heal:") + _tv609._xt3522(_arg1)) + " duration:") + _tv609._tu2715(_arg1)) + " mana:") + _tv609._oo1657(_arg1)) + " intelligence:") + _tv609._vv2083(_arg1)) + " hit:") + _tv609._hh3347(_arg1)));
}
private function _jm1870():void{
var _local5:int;
var _local6:int;
var _local7:int;
var _local1:_lj345 = _wf88._kl2485();
var _local2:int = _local1._xw1652();
var _local3:int = _local1._nw296();
var _local4:int;
while (_local4 < _local2) {
_local5 = 0;
while (_local5 < _local3) {
if (_wf88._eu1822(_local4, _local5)){
_local6 = _wf88._rw1773(_local4, _local5);
_local7 = _wf88._ou1013(_local4, _local5);
_wf88._ef314(_local6, _local7);
return;
};
_local5++;
};
_local4++;
};
}
private function _ic2258():void{
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:Boolean;
var _local15:int;
var _local16:int;
var _local17:int;
var _local1:int = _wf88.mouseX;
var _local2:int = _wf88.mouseY;
var _local3:int = _wf88._wf1652(_local1, _local2);
var _local4:int = _wf88._vr2593(_local1, _local2);
var _local5:_lj345 = _wf88._kl2485();
var _local6:int = (_mr1704 + (_ob3249 * _pv2820));
var _local7:Boolean = _ks1885._sg2241(_ov2986(_local10, _local11, _ut1014));
if (_local7){
_local6 = (_local6 - 70);
};
var _local8:int;
while (_local8 < (_ld3237 + 1)) {
_local9 = 0;
while (_local9 < (_ld3237 + 1)) {
_local10 = (_local3 + _local8);
_local11 = (_local4 + _local9);
_local12 = _ov2986(_local10, _local11, _ut1014);
if (!_local12){
_wf88._ks1104(_local10, _local11);
};
_local5._pr2557(_local10, _local11, _local12, _local6);
_wf88._pg1785(_local10, _local11);
_local9++;
};
_local8++;
};
if (((!(_local7)) && (((!((_ut1014 == 0))) || ((((_ut1014 == 0)) && ((_yn2169 > 1)))))))){
_local8 = -1;
while (_local8 < (_ld3237 + 2)) {
_local9 = -1;
while (_local9 < (_ld3237 + 2)) {
if ((((((((_local8 == -1)) || ((_local9 == -1)))) || ((_local8 == (_ld3237 + 1))))) || ((_local9 == (_ld3237 + 1))))){
_local10 = (_local3 + _local8);
_local11 = (_local4 + _local9);
if (_local5._ic1388(_local10, _local11)){
_local13 = _ov2986(_local10, _local11, _ut1014);
_local14 = _bw2815(_local10, _local11, _local13, _local6);
if (((!(_local14)) && (!((_ut1014 == 0))))){
if (((!((_local5._hk2716(_local10, _local11) == 0))) && (((((!((_local5._nr1810(_local10, _local11) == _local6))) && (!(_ks1885._sg2241(_local5._hk2716(_local10, _local11)))))) || ((((_local5._nr1810(_local10, _local11) > _local6)) && (_ks1885._sg2241(_local5._hk2716(_local10, _local11))))))))){
_local15 = _local10;
_local16 = _local11;
if (_local15 < _local3){
_local15 = _local3;
};
if (_local16 < _local4){
_local16 = _local4;
};
if (_local15 > (_local3 + _ld3237)){
_local15 = (_local3 + _ld3237);
};
if (_local16 > (_local4 + _ld3237)){
_local16 = (_local4 + _ld3237);
};
if (((Math.abs((_local15 - _local10)) + Math.abs((_local16 - _local11))) < 2)){
_local17 = Math.min(_local5._nr1810(_local10, _local11), _local6);
_local5._pr2557(_local15, _local16, _mj3083(_local13), _local17);
_wf88._pg1785(_local15, _local16);
};
};
};
};
};
_local9++;
};
_local8++;
};
};
_local5._fl2890(true);
}
private function _ec663():void{
var _local4:_ex557;
if (!_oq570()){
_lt1178(null);
return;
};
var _local1:Array = _wf88._pa3307();
var _local2:Point = new Point(_wf88.mouseX, _wf88.mouseY);
_local2 = _wf88.localToGlobal(_local2);
var _local3:int;
while (_local3 < _local1.length) {
_local4 = (_local1[_local3] as _ex557);
if (_local4.hitTestPoint(_local2.x, _local2.y, false)){
if (_local4.hitTestPoint(_local2.x, _local2.y, true)){
_lt1178(_local4);
return;
};
};
_local3++;
};
_lt1178(null);
}
private function _wy1228(_arg1:Boolean):void{
var _local5:int;
var _local6:int;
var _local2:int = (_ld3237 + 1);
var _local3:int = _wf88.mouseX;
var _local4:int = _wf88.mouseY;
if (((_hu422) && (!((_hu422._td246() == 0))))){
if (_oq570()){
_local2 = 0;
} else {
_local2 = 1;
};
};
_wf88._xs2611(_local3, _local4, _local2);
if (_arg1){
_local5 = _wf88._wf1652(_local3, _local4);
_local6 = _wf88._vr2593(_local3, _local4);
_wf88._io955(_lc1078, _local5, _local6);
};
}
private function _ux1321(_arg1:int):int{
switch (_arg1){
case 0:
return (0);
case 1:
return (0);
case 2:
return (_tv609._od2004(_tv609._cp2279));
case 3:
return (_tv609._od2004(_tv609._du1781));
case 4:
return (_tv609._od2004(_tv609._ei2241));
case 5:
return (_tv609._od2004(_tv609._dr3518));
case 6:
return (_tv609._od2004(_tv609._ws1827));
case 7:
return (_tv609._od2004(_tv609._vr2222));
case 8:
return (_tv609._od2004(_tv609._dm906));
case 9:
return (_tv609._eu2563(_ks1885._cd1736));
case 10:
return (_tv609._eu2563(_ks1885._ud1618));
case 11:
return (_tv609._eu2563(_ks1885._ka3350));
case 12:
return (_tv609._eu2563(_ks1885._kq1981));
case 13:
return (_tv609._eu2563(_ks1885._rc1837));
case 14:
return (_tv609._eu2563(_ks1885._ph675));
case 15:
return (_tv609._eu2563(_ks1885._ic2367));
case 16:
return (_tv609._eu2563(_ks1885._vp431));
case 17:
return (_tv609._eu2563(_ks1885._ls1293));
case 18:
return (_tv609._eu2563(_ks1885._jw270));
case 19:
return (_tv609._rj1313(_ks1885._xg1048));
case 20:
return (_tv609._rj1313(_ks1885._uv2326));
case 21:
return (_tv609._eu2563(_ks1885._jw270));
case 22:
return (_tv609._eu2563(_ks1885._oa2678));
case 23:
return (_tv609._rj1313(_ks1885._wh2269));
case 24:
return (_tv609._rj1313(_ks1885._lk843));
case 25:
return (_tv609._rj1313(_ks1885._tq1319));
case 26:
return (_tv609._rj1313(_ks1885._so969));
case 27:
return (_tv609._rj1313(_ks1885._vy640));
case 28:
return (_tv609._rj1313(_ks1885._lv2789));
case 29:
return (_tv609._rj1313(_ks1885._ps2051));
case 30:
return (_tv609._rj1313(_ks1885._ab1013));
case 31:
return (_tv609._rj1313(_ks1885._lj2807));
case 32:
return (_tv609._rj1313(_ks1885._lf2052));
case 33:
return (_tv609._rj1313(_ks1885._fu2788));
case 34:
return (_tv609._rj1313(_ks1885._oq281));
case 35:
return (_tv609._rj1313(_ks1885._vf549));
case 36:
return (_tv609._rj1313(_ks1885._gd1112));
case 37:
return (_tv609._rj1313(_ks1885._kr141));
case 38:
return (_tv609._ii3477(_tv609._di3381));
case 39:
return (_tv609._ii3477(_tv609._eg1411));
case 40:
return (_tv609._ii3477(_tv609._fq1371));
case 41:
return (_tv609._rj1313(((Math.random() > 0.5)) ? _ks1885._rj677 : _ks1885._qo2812));
};
return (0);
}
private function _tb2228():void{
if (_rt2598._oj3099._mv1993() == -1){
_ww1719 = _rt2598._oj3099._ye2732();
_rt2598._oj3099._pw2871(null, _hy2528._ec3345, _hy2528._wn1320, _ae2040._wo612()[_ww1719], function ():void{
_oc2724();
});
};
}
private function createItem():void{
var _local7:Sprite;
var _local8:_ps2722;
var _local9:uint;
var _local10:_ex557;
var _local1:int = _wf88.mouseX;
var _local2:int = _wf88.mouseY;
var _local3:int = _wf88._wf1652(_local1, _local2);
var _local4:int = _wf88._vr2593(_local1, _local2);
var _local5:_lj345 = _wf88._kl2485();
var _local6:int;
if (_jy1655._td246() == 0){
_local6 = _ys951;
} else {
if (_jy1655._td246() == 1){
_local6 = _eo3404;
} else {
if (_jy1655._td246() == 2){
_local6 = _pg264;
};
};
};
if (_local6 == 0){
if (_vg827){
setSelectedItem(_vg827);
};
} else {
if (_local6 == 1){
_wf88._ks1104(_local3, _local4);
} else {
_local7 = null;
_local8 = null;
_local9 = 0;
if (_jy1655._td246() == 0){
_local9 = _xd1395(_local6);
} else {
if (_jy1655._td246() == 1){
_local9 = _sm1504(_local6);
} else {
if (_jy1655._td246() == 2){
_local9 = _ux1321(_local6);
};
};
};
_wf88._ks1104(_local3, _local4);
_local10 = _tv609._qf1864(_local9, _local3, _local4);
if (_local10){
_wf88._no2900(_local3, _local4, _local10, true);
if (_tv609._uo1324(_local9)){
_wf88._mp3341(_local3, _local4, _tv609._pv909(_local9));
_wf88._dk664();
_wf88._es2323();
};
};
};
};
_local5._fl2890(true);
}
public function _jf205(_arg1:_oc1935):void{
_hh270(_arg1);
}
private function _fj541():void{
var _local1 = 126;
if (_xd3169._oj3099._ap2180){
_local1 = _cr1330._ba517;
} else {
_local1 = _cr1330._ma144;
};
if (_cr1330._ij1646){
_local1 = 0xFF;
};
if (_ae2040._fu463() >= _local1){
if (!_xd3169._oj3099._ap2180){
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._bb2221, _cr1330._ba517, _cr1330._ma144), _hy2528._wm1500);
} else {
_rt2598._oj3099._hh2204(_hy2528._om1318, _hy2528._wm1500);
};
return;
};
var _local2:_lj345 = new _lj345();
_local2.setName(_hy2528._mk609);
_local2._ay728(45, 45);
_local2._ux2778(true);
_ae2040._gs3054(_local2);
_bi1390(_local2);
}
private function _ng439(_arg1:Event):void{
var event = _arg1;
_rt2598._oj3099._lx2182(_hy2528._yh2406, _hy2528._al1811, _hy2528._ti1961, _hy2528._mf1444, _hy2528._ko3041, _hy2528._tn2848, _hy2528._nj1029, _hy2528._dn166, _hy2528._fo2705, function ():void{
_mt3411();
});
}
private function _gj904():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:_lj345;
if (_rt2598._oj3099._kn2177()){
_local1 = _rt2598._oj3099._ae248();
_local2 = _local1.substr(0, 2);
if (_local2 == "ok"){
if (_ae2040.getUID() == -1){
_ae2040._ks567(int(_local1.substr(2)));
};
_local3 = _ae2040._mt2976();
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = (_local3[_local4] as _lj345);
if (_local5){
_local5._fl2890(false);
};
_local4++;
};
if (_ae2040.getUID() != 0){
_xd3169._oj3099._jx2572(_ae2040);
};
} else {
_rt2598._oj3099._hh2204(((_hy2528._no246 + "\n") + _local1), _hy2528._gy1397);
};
};
}
private function _hw2351():void{
_lc1078 = _wf88._rd100(0, 0, _fg3060);
_wf88._xs2611(0, 0, 0);
_wy1228(true);
}
override protected function _wg874():void{
_wf88._wa3159(_dt2656, this);
_mr1411();
_hw2351();
}
private function _tj2191():void{
if (_rt2598._oj3099._mv1993() == 0){
_dt2656.setName(_rt2598._oj3099._yl840(0));
};
}
override protected function _wu2447():void{
_rt2598._oj3099._pw2871(null, _hy2528._ai1663, _hy2528._rw2056, _ae2040.getName(), function ():void{
_jl2979();
});
}
private function _mj3083(_arg1:int):int{
if (_yn2169 > 1){
return (_ig273(_yn2169));
};
switch (_arg1){
case _ks1885._qi1773:
case _ks1885._xn2300:
case _ks1885._dj2835:
case _ks1885._lh742:
case _ks1885._mk3213:
return (((Math.random() > 0.5)) ? _ks1885._yl1087 : _ks1885._rt22);
case _ks1885._qo1814:
case _ks1885._qg1970:
return (((Math.random() > 0.5)) ? _ks1885._ec1788 : _ks1885._ec1788);
};
return (((Math.random() > 0.5)) ? _ks1885._sd1755 : _ks1885._ag187);
}
private function _ua2605():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
_ai1384();
break;
case 1:
_qg2641(true);
break;
case 2:
_wu2447();
break;
case 3:
_fj541();
break;
case 4:
_xe1663 = _by2853;
_ma23(_hy2528._so472);
break;
};
}
private function _ca2493(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _gq204.length) {
if (_gq204[_local3] == _local2){
_yn2169 = _local3;
break;
};
_local3++;
};
_tj1753();
}
private function _tk1474():void{
var _local1:int;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = _rt2598._oj3099._ye2732();
_ae2040._he2261(_local1);
};
}
private function _sn1643():void{
_ae2040 = new _nm2373();
_ae2040.setName(_hy2528._rh1188);
_ae2040._yp1652(_hy2528._tp1133);
_ae2040._ks567(-1);
_dt2656 = new _lj345();
_dt2656._ri1792(50, 50);
_dt2656.setName(_hy2528._mk609);
_ae2040._gs3054(_dt2656);
_dt2656._ux2778(true);
_wf88._wa3159(_dt2656, this);
setSelectedItem(null);
_mr1411();
_hw2351();
_tm3451();
}
private function _jm3275(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _te2817.length) {
if (_te2817[_local3] == _local2){
_ys951 = _local3;
break;
};
_local3++;
};
_xs431();
}
override protected function _fs251():void{
_sn1643();
_wu2447();
}
private function _rg3319(_arg1:Boolean):void{
_hu422.visible = _arg1;
_ah1438.visible = _arg1;
_fh3525.visible = _arg1;
_xu2972.visible = _arg1;
_oo2907.visible = _arg1;
if (_jg3059){
_jg3059.visible = _arg1;
};
if (_arg1){
_lc1078 = _wf88._rd100(0, 0, _fg3060);
_wf88.addEventListener(MouseEvent.MOUSE_MOVE, _gc1295);
_wf88.addEventListener(MouseEvent.MOUSE_DOWN, _nk2733);
_et2781 = new Timer(50);
_et2781.addEventListener(TimerEvent.TIMER, _yh3054);
_et2781.start();
} else {
_wf88._vu1561(_lc1078);
_wf88.removeEventListener(MouseEvent.MOUSE_MOVE, _gc1295);
_wf88.removeEventListener(MouseEvent.MOUSE_DOWN, _nk2733);
_et2781.stop();
_et2781.removeEventListener(TimerEvent.TIMER, _yh3054);
};
}
private function _hq1791():void{
if (_rt2598._oj3099._mv1993() == 3){
return;
};
_dt2656._pd1523(_rt2598._oj3099._mv1993());
}
private function _oc2724():void{
var _local1:String;
if (_rt2598._oj3099._mv1993() != 0){
return;
};
if (_ww1719 == _ae2040._wo612().length){
_local1 = _rt2598._oj3099._yl840(0);
_ae2040._rn2099(_local1);
} else {
_ae2040._wo612()[_ww1719] = _rt2598._oj3099._yl840(0);
};
}
private function _px3533(_arg1:Event):void{
var event = _arg1;
_rt2598._oj3099._ph3167(_hy2528._yh2406, ((_hy2528._xy348 + " - ") + _ae2040.getName()), _hy2528._gy1397, _hy2528._jh1274, _hy2528._ai1663, _hy2528._wm1500, _hy2528._so472, _hy2528._fo2705, function ():void{
_ua2605();
});
}
public function _yh3054(_arg1:TimerEvent):void{
if (!_rt2598._oj3099._bv921()){
_xi2098();
};
_xx2221();
}
private function _xi2098():void{
var _local1 = 10;
var _local2 = 10;
var _local3 = 32;
if (_xh1372.mouseX < _local1){
_wf88._eu2830(_wf831);
_wf831 = (_wf831 + 2);
if (_wf831 > _local3){
_wf831 = _local3;
};
} else {
if (_xh1372.mouseX > (_xh1372.width - _local1)){
_wf88._eu2830(-(_wf831));
_wf831 = (_wf831 + 2);
if (_wf831 > _local3){
_wf831 = _local3;
};
} else {
_wf831 = _local2;
};
};
if (_xh1372.mouseY < _local1){
_wf88._uw624(_kg2968);
_kg2968 = (_kg2968 + 2);
if (_kg2968 > _local3){
_kg2968 = _local3;
};
} else {
if (_xh1372.mouseY > (_xh1372.height - _local1)){
_wf88._uw624(-(_kg2968));
_kg2968 = (_kg2968 + 2);
if (_kg2968 > _local3){
_kg2968 = _local3;
};
} else {
_kg2968 = _local2;
};
};
_wy1228(false);
}
private function _tb3220(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _qd403.length) {
if (_qd403[_local3] == _local2){
_eo3404 = _local3;
break;
};
_local3++;
};
_ho2448();
}
private function _yk2284():void{
var _local1:_ot519;
var _local2:Array;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = _ae2040._fg1749()[_fr2035];
_local2 = _pd1764();
_local1.itemType = _local2[_rt2598._oj3099._ye2732()];
_ek3356();
};
}
private function _ru94(_arg1:uint):void{
_ni2054.print(((((((((((((_tv609._kl2415(_arg1) + " level:") + _tv609._cy1922(_arg1)) + " hit:") + _tv609._df3211(_arg1)) + " protection:") + _tv609._ml2220(_arg1)) + " skill:") + _tv609._uy931(_arg1)) + " strength:") + _tv609._wh1796(_arg1)) + " price:") + _tv609._vi2733(_arg1)));
}
private function _pf406(_arg1:_lj345):String{
var _local10:_cf177;
var _local11:int;
var _local12:int;
var _local13:_cf177;
var _local14:_ps2722;
var _local2:String = new String();
_local2 = (_local2 + (((((((("<map name=\"" + _we3492.encode(_arg1.getName())) + "\" style=\"") + _arg1._jh2116()) + "\" width=\"") + _arg1._xw1652()) + "\" height=\"") + _arg1._nw296()) + "\">\n"));
_local2 = (_local2 + "<tiles>");
var _local3:int = _arg1._xw1652();
var _local4:int = _arg1._nw296();
var _local5:int = (_local3 * _local4);
var _local6:Array = _arg1._xv555();
var _local7:Array = _arg1._xr3453();
var _local8:int;
while (_local8 < _local5) {
_local10 = (_local6[_local8] as _cf177);
_local11 = (_local8 + 1);
_local12 = 0;
while (_local11 < _local5) {
_local13 = (_local6[_local11] as _cf177);
if (((((!(_local10)) && (!(_local13)))) || (((((((_local10) && (_local13))) && ((_local10._aw772 == _local13._aw772)))) && ((_local10._js3192 == _local13._js3192)))))){
_local12++;
} else {
break;
};
_local11++;
};
if (_local12 > 4){
if (_local10){
_local2 = (_local2 + "r");
_local2 = (_local2 + " ");
_local2 = (_local2 + _local12);
_local2 = (_local2 + " ");
_local2 = (_local2 + _local10._aw772);
_local2 = (_local2 + " ");
_local2 = (_local2 + (-1 * _local10._js3192));
_local2 = (_local2 + " ");
} else {
_local2 = (_local2 + (("r " + _local12) + " 0 0 "));
};
_local8 = (_local8 + _local12);
} else {
if (_local10){
_local2 = (_local2 + _local10._aw772);
_local2 = (_local2 + " ");
_local2 = (_local2 + (-1 * _local10._js3192));
_local2 = (_local2 + " ");
} else {
_local2 = (_local2 + "0 0 ");
};
};
_local8++;
};
_local2 = (_local2 + "</tiles>\n");
var _local9:int;
while (_local9 < _local7.length) {
if (_local7[_local9]){
_local14 = (_local7[_local9] as _ps2722);
if (_local14){
_local2 = (_local2 + _local14._ly1930());
_local2 = (_local2 + "\n");
};
};
_local9++;
};
_local2 = (_local2 + "</map>");
return (_local2);
}
private function _lc493():void{
var _xs225:_ot519;
switch (_rt2598._oj3099._mv1993()){
case 0:
_ww1719 = _ae2040._wo612().length;
_rt2598._oj3099._pw2871(null, _hy2528._ec3345, _hy2528._wn1320, "", function ():void{
_oc2724();
});
break;
case 1:
_vj1021(_hy2528._ec3345, function ():void{
_tb2228();
});
break;
case 2:
_vj1021(_hy2528._ec3345, function ():void{
_tk1474();
});
break;
case 3:
_fr2035 = _ae2040._fg1749().length;
_xs225 = new _ot519();
_ae2040._ut1713(_xs225);
_ek3356();
break;
case 4:
_gl277(_hy2528._ia2052, function ():void{
_lr123();
});
break;
case 5:
_gl277(_hy2528._to3148, function ():void{
_lr2724();
});
break;
};
}
private function _hh270(_arg1:_oc1935):void{
if (_mw2340 != _arg1){
_mw2340 = _arg1;
_xx2221();
};
}
private function _qc1361():void{
var _local1:_ot519;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = _ae2040._fg1749()[_fr2035];
_local1._dw2674 = 0;
if (_rt2598._oj3099._ye2732() < _ae2040._fg1749().length){
_local1._dw2674 = _ae2040._fg1749()[_rt2598._oj3099._ye2732()].uid;
};
_ek3356();
};
}
private function _rk2003():void{
var _local2:uint;
var _local3:int;
var _local4:uint;
switch (_rt2598._oj3099._mv1993()){
case 0:
_local2 = _bb1083._fn629().itemType;
_local3 = _tv609._ls2912(_local2);
_local3++;
if (_local3 >= _hy2528._lx584.length){
_local3 = 0;
};
_local4 = _tv609._yp757(_tv609._ni2675, _local3);
_bb1083._fn629().itemType = _local4;
break;
case 1:
return;
};
var _local1:Event = new Event("");
_ps3474(_local1);
}
private function _ei568():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
_mf2502(_tv609._lw1786, _tv609._yt3037);
break;
case 1:
_mf2502(_tv609._tl2614, _tv609._fw702);
break;
case 2:
_mf2502(_tv609._pc2955, _tv609._mi1454);
break;
case 3:
_mf2502(_tv609._fo523, _tv609._ty2035);
break;
case 4:
_mf2502(_tv609._qh805, _tv609._ew2451);
break;
case 5:
_mf2502(_tv609._nd190, _tv609._jq1381);
break;
};
}
private function _xb2622():void{
var _local1:Number = 0;
while (_local1 < _cu761.length) {
_cu761[_local1].enabled = !((_pg264 == _local1));
_cu761[_local1]._yi2089((_pg264 == _local1));
_local1++;
};
}
private function _xx2221():void{
var _local1:int;
var _local2:TextField;
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:Graphics;
var _local7:Boolean;
var _local8:Point;
if (!_jg3059){
_jg3059 = new Sprite();
_xh1372.addChild(_jg3059);
};
if (((!((_ow3310 == _mw2340))) || (_rt2598._oj3099._sp495()))){
_ow3310 = _mw2340;
_jg3059.visible = false;
_tu3483 = getTimer();
return;
};
if (!_jg3059.visible){
_local1 = getTimer();
if (((_local1) && (((_local1 - _tu3483) < 500)))){
return;
};
};
if (_mw2340){
_jg3059.visible = true;
while (_jg3059.numChildren) {
_jg3059.removeChildAt(0);
};
_local2 = _ks1885._nd1190();
_local2.multiline = true;
_local3 = _mw2340._el862();
if (_local3){
_local2.text = _local3;
};
_local2.textColor = _ks1885._nb1049;
_local4 = _local2.width;
_local5 = _local2.height;
_local6 = _jg3059.graphics;
_local6.clear();
_local7 = false;
_local6.beginFill(0x222222, 0.4);
_local6.drawRect(0, 0, _local4, _local5);
_local6.endFill();
_local6.lineStyle(1, _ks1885._nb1049, 0.5);
_local6.drawRect(0, 0, _local4, _local5);
_jg3059.addChild(_local2);
_local8 = _mw2340.localToGlobal(new Point(0, 0));
_jg3059.x = _local8.x;
if ((_jg3059.x + _local2.width) > _xh1372.width){
_jg3059.x = (_jg3059.x - (((_jg3059.x + _local2.width) - _xh1372.width) + 5));
};
if (_local8.y > (_xh1372.height - 50)){
_jg3059.y = ((_local8.y - _local2.height) - 5);
} else {
_jg3059.y = ((_local8.y + _mw2340.height) + 5);
};
} else {
_jg3059.visible = false;
};
}
private function _mt3411():void{
var _ko980:String;
var _qo2215:String;
var map:_lj345;
switch (_rt2598._oj3099._mv1993()){
case 0:
_rt2598._oj3099._pw2871(null, _hy2528._ti1961, _hy2528._rw2056, _dt2656.getName(), function ():void{
_tj2191();
});
break;
case 1:
_fl2130();
break;
case 2:
map = _wf88._kl2485();
_wf88._wa3159(map);
_hw2351();
break;
case 3:
_ae2040._lk1031(_dt2656.getUID());
break;
case 4:
_ko980 = _hy2528._fp837;
if (_dt2656._jh2116() == _lj345._jf3508){
_ko980 = _hy2528._ah873;
} else {
if (_dt2656._jh2116() == _lj345._oq2371){
_ko980 = _hy2528._vo3249;
};
};
_qo2215 = _hy2528.formatString(_hy2528._uh1652, _ko980);
_rt2598._oj3099._nl2454(_hy2528._yh2406, _hy2528._nj1029, _hy2528._fp837, _hy2528._ah873, _hy2528._vo3249, _hy2528._fo2705, function ():void{
_hq1791();
});
break;
case 5:
_xe1663 = _il1440;
_ma23(_hy2528._af3471);
break;
};
}
private function _fd2522():void{
var _local1:Number = 0;
while (_local1 < _dv1553.length) {
_dv1553[_local1].enabled = !((_ld3237 == _local1));
_dv1553[_local1]._yi2089((_ld3237 == _local1));
_local1++;
};
}
private function _ov3363():void{
var _local1:Number = 0;
while (_local1 < _cb525.length) {
_cb525[_local1].enabled = !((_ut1014 == _local1));
_cb525[_local1]._yi2089((_ut1014 == _local1));
_local1++;
};
}
private function _ja641(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _dv1553.length) {
if (_dv1553[_local3] == _local2){
_ld3237 = _local3;
break;
};
_local3++;
};
_fd2522();
}
private function _bi1390(_arg1:_lj345):void{
if (((_arg1) && (!((_arg1 == _dt2656))))){
_dt2656 = _arg1;
if (!_dt2656._ak1857()){
_ai861(_dt2656);
} else {
_wf88._wa3159(_dt2656, this);
_mr1411();
_hw2351();
};
};
}
private function _ps3474(_arg1:Event):void{
var _pq2079:int;
var _em2520:String;
var _no2172:int;
var _me1260:int;
var _pl3118:String;
var _mb106:int;
var _cg2050:_lj345;
var _ru388:String;
var event = _arg1;
if (!_bb1083){
return;
};
var _th3073:uint = _bb1083._fn629().itemType;
switch (_tv609._xe421(_th3073)){
case _tv609._gj2896:
case _tv609._fv102:
case _tv609._qj2375:
case _tv609._mf3458:
case _tv609._mp331:
case _tv609._wl2634:
case _tv609._xu1450:
case _tv609._cq3482:
case _tv609._wl2095:
_pq2079 = _tv609._nn1505(_th3073);
_em2520 = _hy2528._xl942;
if ((_pq2079 & _tv609._lw1786)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_em2520 = (_em2520 + _hy2528._dm1234);
if ((_pq2079 & _tv609._tl2614)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_em2520 = (_em2520 + (_hy2528._is590 + ": "));
if ((_pq2079 & _tv609._pc2955)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_em2520 = (_em2520 + (_hy2528._eh2058 + ": "));
if ((_pq2079 & _tv609._fo523)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_em2520 = (_em2520 + (_hy2528._sv3141 + ": "));
if ((_pq2079 & _tv609._qh805)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_em2520 = (_em2520 + (_hy2528._bw3292 + ": "));
if ((_pq2079 & _tv609._nd190)){
_em2520 = (_em2520 + "true\n");
} else {
_em2520 = (_em2520 + "false\n");
};
_rt2598._oj3099._lx2182(_em2520, ((_hy2528._kf794 + " - ") + _tv609._kl2415(_th3073)), _hy2528._ha535, _hy2528._la2495, _hy2528._ug3071, _hy2528._up1075, _hy2528._ah3280, _hy2528._fl2462, _hy2528._fo2705, function ():void{
_ei568();
}, _di1224._ki1196);
break;
case _tv609._ou985:
case _tv609._dx664:
case _tv609._sr2614:
case _tv609._vy139:
case _tv609._qy3104:
case _tv609._yg1036:
case _tv609._rb2324:
_no2172 = _tv609._vi1826(_th3073);
_me1260 = _tv609._ef2514(_th3073);
_pl3118 = _hy2528._aw1369;
if (_no2172 == _tv609._ec1178){
_pl3118 = (_pl3118 + _hy2528._ck1922);
} else {
_pl3118 = (_pl3118 + _hy2528._js1648);
};
if (_no2172 == _tv609._ec1178){
_pl3118 = (_pl3118 + "\n");
_pl3118 = (_pl3118 + _hy2528._aa1563);
_pl3118 = (_pl3118 + _ae2040._ip1545(_me1260));
};
_pl3118 = (_pl3118 + "\n");
_pl3118 = (_pl3118 + (_hy2528._rb3408 + ": "));
_mb106 = _tv609._cy1922(_th3073);
_pl3118 = (_pl3118 + _mb106);
switch (_mb106){
case _tv609._fv3061:
_pl3118 = (_pl3118 + " (type one)");
break;
case _tv609._gl1296:
_pl3118 = (_pl3118 + " (type two)");
break;
case _tv609._rw2219:
_pl3118 = (_pl3118 + " (type one, ghost)");
break;
case _tv609._nk147:
_pl3118 = (_pl3118 + " (type two, ghost)");
break;
};
_rt2598._oj3099._nl2454(_pl3118, ((_hy2528._kf794 + " - ") + _tv609._kl2415(_th3073)), _hy2528._nu1570, _hy2528._gn911, _hy2528._cn3170, _hy2528._fo2705, function ():void{
_vl1203();
});
break;
case _tv609._og2636:
_cg2050 = _ae2040._qv1265(_tv609._gm3294(_th3073));
_ru388 = _hy2528.formatString(_hy2528._ao23, (_cg2050) ? _cg2050.getName() : _hy2528._dc2933);
_rt2598._oj3099._rq326(_ru388, ((_hy2528._kf794 + " - ") + _tv609._kl2415(_th3073)), _hy2528._rg1507, _hy2528._ky183, _hy2528._fo2705, function ():void{
_ll944();
});
break;
case _tv609._fe444:
switch (_tv609._ly3044(_th3073)){
case _tv609._ni2675:
_rt2598._oj3099._gd375(_hy2528._ff2844, ((_hy2528._kf794 + " - ") + _tv609._kl2415(_th3073)), _hy2528._bh3306, _hy2528._fo2705, function ():void{
_rk2003();
});
};
};
}
private function _sm1504(_arg1:int):int{
switch (_arg1){
case 0:
return (0);
case 1:
return (0);
case 2:
return (_tv609._lf1426(_tv609._gj2896, _tv609._db2186));
case 3:
return (_tv609._lf1426(_tv609._gj2896, _tv609._qx1241));
case 4:
return (_tv609._lf1426(_tv609._fv102, _tv609._db2186));
case 5:
return (_tv609._lf1426(_tv609._fv102, _tv609._qx1241));
case 6:
return (_tv609._lf1426(_tv609._mp331, _tv609._db2186));
case 7:
return (_tv609._lf1426(_tv609._mp331, _tv609._qx1241));
case 8:
return (_tv609._lf1426(_tv609._wl2634, _tv609._db2186));
case 9:
return (_tv609._lf1426(_tv609._wl2634, _tv609._qx1241));
case 10:
return (_tv609._lf1426(_tv609._qj2375, _tv609._db2186));
case 11:
return (_tv609._lf1426(_tv609._qj2375, _tv609._ly3224));
case 12:
return (_tv609._lf1426(_tv609._qj2375, _tv609._qx1241));
case 13:
return (_tv609._lf1426(_tv609._qj2375, _tv609._uj694));
case 14:
return (_tv609._lf1426(_tv609._mf3458, _tv609._db2186));
case 15:
return (_tv609._lf1426(_tv609._mf3458, _tv609._ly3224));
case 16:
return (_tv609._lf1426(_tv609._mf3458, _tv609._qx1241));
case 17:
return (_tv609._lf1426(_tv609._mf3458, _tv609._uj694));
case 18:
return (_tv609._lf1426(_tv609._mf3458, _tv609._db2186, _tv609._pc2955));
case 19:
return (_tv609._lf1426(_tv609._mf3458, _tv609._ly3224, _tv609._pc2955));
case 20:
return (_tv609._lf1426(_tv609._mf3458, _tv609._qx1241, _tv609._pc2955));
case 21:
return (_tv609._lf1426(_tv609._xu1450, _tv609._db2186));
case 22:
return (_tv609._lf1426(_tv609._xu1450, _tv609._ly3224));
case 23:
return (_tv609._lf1426(_tv609._xu1450, _tv609._qx1241));
case 24:
return (_tv609._lf1426(_tv609._xu1450, _tv609._uj694));
case 25:
return (_tv609._lf1426(_tv609._cq3482, _tv609._db2186, _tv609._tl2614));
case 26:
return (_tv609._lf1426(_tv609._wl2095, _tv609._ly3224));
case 27:
return (_tv609._lf1426(_tv609._wl2095, _tv609._qx1241));
case 28:
return (_tv609._gw75(_tv609._qy3104));
case 29:
return (_tv609._gw75(_tv609._yg1036));
case 30:
return (_tv609._gw75(_tv609._rb2324));
case 31:
return (_tv609._gw75(_tv609._ou985));
case 32:
return (_tv609._gw75(_tv609._ou985, _tv609._gl1296));
case 33:
return (_tv609._gw75(_tv609._sr2614));
case 34:
return (_tv609._gw75(_tv609._sr2614, _tv609._gl1296));
case 35:
return (_tv609._gw75(_tv609._dx664));
case 36:
return (_tv609._gw75(_tv609._dx664, _tv609._gl1296));
case 37:
return (_tv609._gw75(_tv609._vy139));
case 38:
return (_tv609._gw75(_tv609._vy139, _tv609._gl1296));
};
return (0);
}
private function _fe1755(_arg1:Event):void{
var event = _arg1;
_rt2598._oj3099._ph3167(_hy2528._yh2406, _hy2528._ci861, _hy2528._vk1554, _hy2528._gq2108, (_cr1330._dp301) ? _hy2528._un2577 : _hy2528._kx2217, _hy2528._hp1419, _hy2528._wy557, _hy2528._fo2705, function ():void{
_bp581();
});
}
private function _oq570():Boolean{
if (((!(_hu422)) || (!(_ck2197)))){
return (false);
};
return ((((((((_jy1655._td246() == 0)) && ((_ys951 == 0)))) || ((((_jy1655._td246() == 1)) && ((_eo3404 == 0)))))) || ((((_jy1655._td246() == 2)) && ((_pg264 == 0))))));
}
private function _lt1178(_arg1:_ex557):void{
var _local2:GlowFilter;
var _local3:Array;
if (_vg827 != _arg1){
if (_vg827){
_vg827.filters = new Array();
};
_vg827 = _arg1;
if (_arg1){
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 3);
_local3 = new Array();
_local3.push(_local2);
_arg1.filters = _local3;
_arg1.cacheAsBitmap = true;
};
};
}
private function _ig273(_arg1:int):int{
switch (_arg1){
case 0:
return (0);
case 1:
return (0);
case 2:
return (((Math.random() > 0.5)) ? _ks1885._sd1755 : _ks1885._ag187);
case 3:
return (((Math.random() > 0.5)) ? _ks1885._ax1124 : _ks1885._og1609);
case 4:
return (((Math.random() > 0.5)) ? _ks1885._ec1788 : _ks1885._ln470);
case 5:
return (((Math.random() > 0.5)) ? _ks1885._yl1087 : _ks1885._rt22);
};
return (_arg1);
}
public function _ir1602(_arg1:_oc1935):void{
_hh270(null);
}
private function _xs431():void{
var _local1:Number = 0;
while (_local1 < _te2817.length) {
_te2817[_local1].enabled = !((_ys951 == _local1));
_te2817[_local1]._yi2089((_ys951 == _local1));
_local1++;
};
}
private function _mf2502(_arg1:uint, _arg2:uint):void{
var _local3:uint = _bb1083._fn629().itemType;
var _local4:int = _tv609._nn1505(_local3);
_local4 = ((_local4 & ~(_arg1)) | (((_local4 & _arg1)) ? 0 : 1 << _arg2));
var _local5:uint = _tv609._lf1426(_tv609._xe421(_local3), _tv609._cy1922(_local3), _local4);
_bb1083._fn629().itemType = _local5;
var _local6:Event = new Event("");
_ps3474(_local6);
_dt2656._fl2890(true);
}
private function _nk2733(_arg1:Event):void{
_cn2086();
}
private function _xn1419():void{
var _local1:int;
var _local2:uint;
var _local3:uint;
var _local4:Event;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = 0;
if (_rt2598._oj3099._ye2732() < _ae2040._fg1749().length){
_local1 = _ae2040._fg1749()[_rt2598._oj3099._ye2732()].uid;
};
_local2 = _bb1083._fn629().itemType;
_local3 = _tv609._gw75(_tv609._xe421(_local2), _tv609._cy1922(_local2), _tv609._vi1826(_local2), _local1);
_bb1083._fn629().itemType = _local3;
_local4 = new Event("");
_ps3474(_local4);
};
}
private function _cn2086():void{
var _nb1694:int;
try {
_nb1694 = _hu422._td246();
if (_nb1694 == 0){
_ic2258();
} else {
if (_nb1694 == 1){
createItem();
};
};
} catch(err:Error) {
_ni2054._ev1283(err);
};
}
private function _pl2513():void{
var _local2:_oc1935;
var _local6:int;
var _local9:int;
var _local10:uint;
var _local11:String;
var _local12:BitmapData;
var _local13:String;
var _local1:int;
var _local3 = 50;
var _local4 = 25;
_te2817 = new Array();
_qd403 = new Array();
_cu761 = new Array();
var _local5:TextField = _ks1885._nd1190();
_local5.text = _hy2528._up2601;
_local5.y = _local1;
_local1 = (_local1 + _local5.height);
_hu422.addItem(_local5, 1);
_ck2197 = new UIComponent();
_ck2197.y = _local1;
_ck2197.height = 50;
_local1 = (_local1 + _ck2197.height);
_hu422.addItem(_ck2197, 1);
_local6 = 0;
_ed1126 = _ks1885._nd1190();
_ed1126.text = _hy2528._ot1809;
_ed1126.y = 0;
_local6 = (_local6 + _local5.height);
_ck2197.addChild(_ed1126);
_local2 = new _oc1935(_hy2528._kf794);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _ps3474);
_local2.x = 50;
_local2.y = _local6;
_local6 = (_local6 + _local2.height);
_ck2197.addChild(_local2);
_local1 = (_local1 + 2);
_jy1655 = new _ad1194(null);
_jy1655.x = 0;
_jy1655.y = _local1;
_jy1655.width = _ck2197.width;
_jy1655.height = (_ck2197.height - _jy1655.y);
_hu422.addItem(_jy1655, 1);
_jy1655._ne1505(_hy2528._hd1163);
_jy1655._ne1505(_hy2528._nj2543);
_jy1655._ne1505(_hy2528._mu2182);
_jy1655._fr2300();
var _local7:int;
_local1 = 5;
var _local8:int;
while (_local8 < 13) {
_local9 = 0;
while (_local9 < 3) {
if (_local7 == 0){
_local2 = new _oc1935(_hy2528._vl3271, null, null);
} else {
if (_local7 == 1){
_local2 = new _oc1935(_hy2528._nt2426, null, null);
} else {
_local10 = _xd1395(_local7);
_local2 = new _oc1935(null, null, _tv609._ue323(_local10));
_local2._sk293(this, _tv609._kl2415(_local10));
};
};
_local2.x = (_local9 * _local3);
_local2.y = _local1;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _jm3275);
_te2817.push(_local2);
_jy1655.addItem(_local2, 0);
_local7++;
_local9++;
};
_local1 = (_local1 + _local4);
_local8++;
};
_local7 = 0;
_local1 = 5;
_local8 = 0;
while (_local8 < 13) {
_local9 = 0;
while (_local9 < 3) {
if (_local7 == 0){
_local2 = new _oc1935(_hy2528._vl3271, null, null);
} else {
if (_local7 == 1){
_local2 = new _oc1935(_hy2528._nt2426, null, null);
} else {
_local10 = _sm1504(_local7);
if (_local10){
_local2 = new _oc1935(null, null, _tv609._ue323(_local10), -1, -1, 0.7);
_local11 = _tv609._kl2415(_local10);
if (_tv609._mw892(_local10)){
_local11 = (_local11 + " (patrolling)");
};
_local2._sk293(this, _local11);
} else {
_local2 = null;
};
};
};
if (_local2){
_local2.x = (_local9 * _local3);
_local2.y = _local1;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _tb3220);
_qd403.push(_local2);
_jy1655.addItem(_local2, 1);
_local7++;
};
_local9++;
};
_local1 = (_local1 + _local4);
_local8++;
};
_local7 = 0;
_local1 = 5;
_local8 = 0;
while (_local8 < 14) {
_local9 = 0;
while (_local9 < 3) {
if (_local7 == 0){
_local2 = new _oc1935(_hy2528._vl3271, null, null);
} else {
if (_local7 == 1){
_local2 = new _oc1935(_hy2528._nt2426, null, null);
} else {
_local10 = _ux1321(_local7);
if (_local10){
_local12 = _tv609._ue323(_local10);
_local2 = new _oc1935((_local12) ? null : _tv609._kl2415(_local10), null, _local12, -1, -1, 0.5);
if (_tv609._xe421(_local10) == _tv609._bn2161){
_local13 = "";
switch (_tv609._da912(_local10)){
case _tv609._cp2279:
_local13 = _hy2528._bf1272;
break;
case _tv609._du1781:
_local13 = _hy2528._pc1146;
break;
case _tv609._ei2241:
_local13 = _hy2528._mj2026;
break;
case _tv609._dr3518:
_local13 = _hy2528._ba1564;
break;
case _tv609._ws1827:
_local13 = _hy2528._rm1646;
break;
case _tv609._vr2222:
_local13 = _hy2528._ul2467;
break;
case _tv609._dm906:
_local13 = _hy2528._fq2702;
break;
};
_local2._sk293(this, _local13);
} else {
_local2._sk293(this, _tv609._kl2415(_local10));
};
} else {
_local2 = null;
};
};
};
if (_local2){
_local2.x = (_local9 * _local3);
_local2.y = _local1;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _ux1545);
_cu761.push(_local2);
_jy1655.addItem(_local2, 2);
_local7++;
};
_local9++;
};
_local1 = (_local1 + _local4);
_local8++;
};
}
private function _fl2130():void{
_ae2040._lr3330();
var _local1:_lj345 = _dt2656._qi1235();
_rg3319(false);
new _qy2760(_xh1372, _wf88, _ae2040, _local1);
}
private function _xd1395(_arg1:int):int{
switch (_arg1){
case 0:
return (0);
case 1:
return (0);
case 2:
return (_tv609._rk158(true, false, _tv609._db2186));
case 3:
return (_tv609._rk158(false, true, _tv609._db2186));
case 4:
return (_tv609._rk158(true, true, _tv609._db2186));
case 5:
return (_tv609._rk158(true, false, _tv609._qx1241));
case 6:
return (_tv609._rk158(false, true, _tv609._qx1241));
case 7:
return (_tv609._rk158(true, true, _tv609._qx1241));
case 8:
return (_tv609._wn2345(_tv609._db2186));
case 9:
return (_tv609._wn2345(_tv609._qx1241));
case 10:
return (_tv609._yp757(_tv609._xe2767));
case 11:
return (_tv609._yp757(_tv609._yy1761));
case 12:
return (_tv609._yp757(_tv609._wn2141));
case 13:
return (_tv609._yp757(_tv609._ts2137));
case 14:
return (_tv609._yp757(_tv609._xv166));
case 15:
return (_tv609._yp757(_tv609._ni2675, Math.min((_hy2528._uo1763 - 1), (Math.random() * _hy2528._uo1763))));
case 16:
return (_tv609._fp1369(_tv609._db2186, 0, true));
case 17:
return (_tv609._ba3524(_tv609._id3076, _tv609._db2186, 0, true));
case 18:
return (_tv609._ba3524(_tv609._id3076, _tv609._qx1241, 0, true));
case 19:
return (_tv609._ba3524(_tv609._id3076, _tv609._uj694, 0, true));
case 20:
return (_tv609._ba3524(_tv609._qe451, _tv609._db2186, 0, true));
case 21:
return (_tv609._ba3524(_tv609._qe451, _tv609._qx1241, 0, true));
case 22:
return (_tv609._ba3524(_tv609._qe451, _tv609._uj694, 0, true));
case 23:
return (_tv609._ba3524(_tv609._wc1920, _tv609._db2186, 0, true));
case 24:
return (_tv609._ba3524(_tv609._wc1920, _tv609._qx1241, 0, true));
case 25:
return (_tv609._ba3524(_tv609._wc1920, _tv609._uj694, 0, true));
case 26:
return (_tv609._ba3524(_tv609._qr2537, _tv609._db2186, 0, true));
case 27:
return (_tv609._ba3524(_tv609._qr2537, _tv609._qx1241, 0, true));
case 28:
return (_tv609._ba3524(_tv609._qr2537, _tv609._uj694, 0, true));
case 29:
return (_tv609._ba3524(_tv609._vv2837, _tv609._db2186, 0, true));
case 30:
return (_tv609._ba3524(_tv609._vv2837, _tv609._qx1241, 0, true));
case 31:
return (_tv609._ba3524(_tv609._vv2837, _tv609._uj694, 0, true));
case 32:
return (_tv609._ba3524(_tv609._mu1419, _tv609._db2186, 0, true));
case 33:
return (_tv609._ba3524(_tv609._mu1419, _tv609._qx1241, 0, true));
case 34:
return (_tv609._ba3524(_tv609._mu1419, _tv609._uj694, 0, true));
case 35:
return (_tv609._ba3524(_tv609._jq178, _tv609._db2186, 0, true));
case 36:
return (_tv609._ba3524(_tv609._jq178, _tv609._qx1241, 0, true));
case 37:
return (_tv609._ba3524(_tv609._jq178, _tv609._uj694, 0, true));
case 38:
return (_tv609._ba3524(_tv609._fs3141, _tv609._db2186, 0, true));
case 39:
return (_tv609._ba3524(_tv609._fs3141, _tv609._ly3224, 0, true));
case 40:
return (_tv609._ba3524(_tv609._fs3141, _tv609._qx1241, 0, true));
case 41:
return (_tv609._ba3524(_tv609._fs3141, _tv609._uj694, 0, true));
};
return (0);
}
private function _jl2979():void{
if (_rt2598._oj3099._mv1993() == 0){
_ae2040.setName(_rt2598._oj3099._yl840(0));
};
}
private function _mr1411():void{
var _local1:_lj345 = _wf88._kl2485();
var _local2:int = (_local1._xw1652() / 2);
var _local3:int = (_local1._nw296() / 2);
var _local4:int = _wf88._rw1773(_local2, _local3);
var _local5:int = _wf88._ou1013(_local2, _local3);
_wf88._ef314(_local4, _local5);
}
private function _vl1203():void{
var _th3073:uint;
var _no2172:int;
var level:int;
var _bm2203:uint;
var _gi2766:Event;
switch (_rt2598._oj3099._mv1993()){
case 0:
_th3073 = _bb1083._fn629().itemType;
_no2172 = _tv609._vi1826(_th3073);
_no2172 = (_no2172 + 1);
if (_no2172 > _tv609._ec1178){
_no2172 = _tv609._xn474;
};
_bm2203 = _tv609._gw75(_tv609._xe421(_th3073), _tv609._cy1922(_th3073), _no2172, _tv609._ef2514(_th3073));
_bb1083._fn629().itemType = _bm2203;
_gi2766 = new Event("");
_ps3474(_gi2766);
break;
case 1:
_gl277(_hy2528._gn911, function ():void{
_xn1419();
}, true);
break;
case 2:
_th3073 = _bb1083._fn629().itemType;
_no2172 = _tv609._vi1826(_th3073);
level = _tv609._cy1922(_th3073);
level = (level + 1);
if (level > 3){
level = 0;
};
_bm2203 = _tv609._gw75(_tv609._xe421(_th3073), level, _no2172, _tv609._ef2514(_th3073));
_bb1083._fn629().itemType = _bm2203;
_gi2766 = new Event("");
_ps3474(_gi2766);
break;
};
}
private function _wg1681():void{
var _local8:int;
var _local9:int;
var _local10:String;
var _local1 = 50;
var _local2 = 25;
var _local3:int;
var _local4:_oc1935;
_dv1553 = new Array();
_cb525 = new Array();
_wr2350 = new Array();
_gq204 = new Array();
var _local5:TextField = _ks1885._nd1190();
_local5.text = _hy2528._np1840;
_local5.y = _local3;
_local3 = (_local3 + _local5.height);
_hu422.addItem(_local5, 0);
var _local6:int;
var _local7:int;
while (_local7 < 2) {
_local8 = 0;
while (_local8 < 3) {
_local4 = new _oc1935(((_local6 + 1) * (_local6 + 1)).toString());
_local4.x = (_local8 * _local1);
_local4.y = _local3;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _ja641);
_dv1553.push(_local4);
_hu422.addItem(_local4, 0);
_local6++;
_local8++;
};
_local3 = (_local3 + _local2);
_local7++;
};
_local5 = _ks1885._nd1190();
_local5.text = _hy2528._jo2750;
_local5.y = _local3;
_local3 = (_local3 + _local5.height);
_hu422.addItem(_local5, 0);
_local6 = 0;
_local7 = 0;
while (_local7 < 6) {
_local8 = 0;
while (_local8 < 3) {
_local9 = _ov2986(0, 0, _local6);
_local4 = new _oc1935(((_local6 == 0)) ? _hy2528._nt2426 : null, null, _ks1885._oj3099._yy1620(_local9));
_local4.x = (_local8 * _local1);
_local4.y = _local3;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _fc2876);
_cb525.push(_local4);
_hu422.addItem(_local4, 0);
_local6++;
_local8++;
};
_local3 = (_local3 + _local2);
_local7++;
};
_local5 = _ks1885._nd1190();
_local5.text = _hy2528._id3315;
_local5.y = _local3;
_local3 = (_local3 + _local5.height);
_hu422.addItem(_local5, 0);
_local6 = 0;
_local7 = 0;
while (_local7 < 2) {
_local8 = 0;
while (_local8 < 3) {
_local9 = _ig273(_local6);
_local10 = null;
if (_local6 == 0){
_local10 = _hy2528._ld937;
} else {
if (_local6 == 1){
_local10 = _hy2528._yx481;
};
};
_local4 = new _oc1935(_local10, null, _ks1885._oj3099._yy1620(_local9));
_local4.x = (_local8 * _local1);
_local4.y = _local3;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _ca2493);
_gq204.push(_local4);
_hu422.addItem(_local4, 0);
_local6++;
_local8++;
};
_local3 = (_local3 + _local2);
_local7++;
};
_local5 = _ks1885._nd1190();
_local5.text = _hy2528._lf2351;
_local5.y = _local3;
_local3 = (_local3 + _local5.height);
_hu422.addItem(_local5, 0);
_local6 = 0;
_local7 = 0;
while (_local7 < 3) {
_local8 = 0;
while (_local8 < 3) {
_local4 = new _oc1935((_mr1704 + (_local6 * _pv2820)).toString());
_local4.x = (_local8 * _local1);
_local4.y = _local3;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _ul181);
_wr2350.push(_local4);
_hu422.addItem(_local4, 0);
_local6++;
_local8++;
};
_local3 = (_local3 + _local2);
_local7++;
};
}
private function _ek3356():void{
var _xs225:_ot519 = _ae2040._fg1749()[_fr2035];
if (!_xs225){
return;
};
var _rm2671:String = _hy2528._rv935;
switch (_xs225._rr2640){
case _ot519._mu2118:
_rm2671 = (_rm2671 + _hy2528._dc2933);
break;
case _ot519._od3259:
_rm2671 = (_rm2671 + _hy2528._sv3385);
break;
case _ot519._bf730:
_rm2671 = (_rm2671 + _hy2528._nb2773);
break;
case _ot519._hq3282:
_rm2671 = (_rm2671 + _hy2528._hy1060);
break;
case _ot519._hu1351:
_rm2671 = (_rm2671 + _hy2528._ru3483);
break;
case _ot519._nm2095:
_rm2671 = (_rm2671 + _hy2528._di513);
break;
case _ot519._fy173:
_rm2671 = (_rm2671 + _hy2528._vr3145);
break;
};
_rm2671 = (_rm2671 + "\n");
_rm2671 = (_rm2671 + _hy2528._vg576);
_rm2671 = (_rm2671 + _ae2040._en1578(_xs225._po1435));
_rm2671 = (_rm2671 + " ");
_rm2671 = (_rm2671 + _hy2528._nh1791);
_rm2671 = (_rm2671 + ((_xs225.itemType)!=0) ? _tv609._kl2415(_xs225.itemType) : _hy2528._dc2933);
_rm2671 = (_rm2671 + "\n");
_rm2671 = (_rm2671 + _hy2528._ob439);
_rm2671 = (_rm2671 + _ae2040._ip1545(_xs225._ka875));
_rm2671 = (_rm2671 + " ");
_rm2671 = (_rm2671 + _hy2528._pm1228);
_rm2671 = (_rm2671 + _ae2040._ip1545(_xs225._dw2674));
_rm2671 = (_rm2671 + "\n");
_rm2671 = (_rm2671 + _hy2528._oy1315);
_rm2671 = (_rm2671 + _ae2040._en1578(_xs225._om777));
_rm2671 = (_rm2671 + " ");
_rm2671 = (_rm2671 + _hy2528._io1364);
_rm2671 = (_rm2671 + _ae2040._en1578(_xs225._en1708));
_rm2671 = (_rm2671 + "\n");
_rm2671 = (_rm2671 + ((_hy2528._le543 + "1: ") + _ae2040._ip1545(_xs225._wp3400)));
_rm2671 = (_rm2671 + (((" " + _hy2528._le543) + "2: ") + _ae2040._ip1545(_xs225._qg381)));
_rm2671 = (_rm2671 + (((" " + _hy2528._le543) + "3: ") + _ae2040._ip1545(_xs225._in3160)));
_rm2671 = (_rm2671 + (((" " + _hy2528._le543) + "4: ") + _ae2040._ip1545(_xs225._kt3079)));
var _nd2522:Array = new Array();
_nd2522.push(_hy2528._ve3033);
_nd2522.push(_hy2528._oc972);
_nd2522.push(_hy2528._aw2622);
_nd2522.push(_hy2528._xh3289);
_nd2522.push(_hy2528._lr567);
_nd2522.push(_hy2528._lr3151);
_nd2522.push(_hy2528._qf2271);
_nd2522.push(_hy2528._ss2338);
_nd2522.push(_hy2528._fm2854);
if ((((((_xs225._rr2640 == _ot519._hq3282)) || ((_xs225._rr2640 == _ot519._nm2095)))) || ((_xs225._rr2640 == _ot519._fy173)))){
_nd2522.push((_hy2528._le543 + "1"));
_nd2522.push((_hy2528._le543 + "2"));
_nd2522.push((_hy2528._le543 + "3"));
_nd2522.push((_hy2528._le543 + "4"));
};
var _dk1731:Array = new Array();
_dk1731.push(_hy2528._ei2318);
if (_xs225._rr2640 == _ot519._hu1351){
_dk1731.push(_hy2528._vq1358);
} else {
_dk1731.push(_hy2528._vt1069);
};
_dk1731.push(_hy2528._dv1825);
if (_xs225._rr2640 == _ot519._hq3282){
_dk1731.push(_hy2528._xs906);
_dk1731.push(_hy2528._jw2282);
_dk1731.push(_hy2528._om1835);
_dk1731.push(_hy2528._yc2141);
} else {
_dk1731.push(_hy2528._cy1188);
_dk1731.push(_hy2528._kf3471);
_dk1731.push(_hy2528._fl2617);
_dk1731.push(_hy2528._dt541);
};
_dk1731.push(_hy2528._so1062);
var _rm322:Array = new Array();
_rm322.push(_xs225.name);
_rm322.push(String(_xs225._mk1959));
_rm322.push(String(_xs225._xq1580));
_rm322.push(_xs225._vi1748);
_rm322.push(_xs225._vl2038);
_rm322.push(_xs225._vv2934);
_rm322.push(_xs225._pf2480);
_rm322.push(String(_xs225._kb109));
_rt2598._oj3099._db3055(_rm2671, _hy2528._ia2052, _nd2522, _dk1731, _rm322, null, function ():void{
_wo1601();
}, _di1224._ki1196, 600);
}
private function setSelectedItem(_arg1:_ex557):void{
var _local2:String;
_bb1083 = _arg1;
_ck2197.visible = !((_bb1083 == null));
if (!_arg1){
_ed1126.text = _hy2528._ot1809;
} else {
_local2 = _tv609._kl2415(_arg1._fn629().itemType);
if (_tv609._mw892(_arg1._fn629().itemType)){
_local2 = (_local2 + " (patrolling)");
};
_ed1126.text = _local2;
};
}
private function _tj1753():void{
var _local1:Number = 0;
while (_local1 < _gq204.length) {
_gq204[_local1].enabled = !((_yn2169 == _local1));
_gq204[_local1]._yi2089((_yn2169 == _local1));
_local1++;
};
}
private function _fy1526():void{
if (((!(_ae2040)) || (!(_mr3036)))){
return;
};
_ae2040._yp1652(_mr3036.text);
}
private function _bj913(_arg1:int):int{
if (_yn2169 > 1){
return (_ig273(_yn2169));
};
switch (_arg1){
case _ks1885._qi1773:
case _ks1885._xn2300:
case _ks1885._dj2835:
case _ks1885._lh742:
case _ks1885._mk3213:
return (0);
case _ks1885._qo1814:
case _ks1885._qg1970:
return (((Math.random() > 0.5)) ? _ks1885._ec1788 : _ks1885._ec1788);
};
return (((Math.random() > 0.5)) ? _ks1885._sd1755 : _ks1885._ag187);
}
private function _wo1601():void{
var _xs225:_ot519 = _ae2040._fg1749()[_fr2035];
if (!_xs225){
return;
};
switch (_rt2598._oj3099._mv1993()){
case 0:
_bt2595();
break;
case 1:
_bt2595();
_xs225._rr2640++;
if (_xs225._rr2640 > _ot519._fm2148){
_xs225._rr2640 = _ot519._mu2118;
};
_ek3356();
break;
case 2:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_yp774();
}, true);
break;
case 3:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_qc1361();
}, true);
break;
case 4:
_bt2595();
_xe1663 = _nr1759;
_ma23(_hy2528._lr567, true);
break;
case 5:
_bt2595();
_xe1663 = _rs1279;
_ma23(_hy2528._lr3151, true);
break;
case 6:
_bt2595();
_xe1663 = _rs1000;
_ma23(_hy2528._qf2271, true);
break;
case 7:
_bt2595();
_so3108(_hy2528._ss2338, function ():void{
_yk2284();
});
break;
case 8:
return;
case 9:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_gn2295(1);
}, true);
break;
case 10:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_gn2295(2);
}, true);
break;
case 11:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_gn2295(3);
}, true);
break;
case 12:
_bt2595();
_gl277(_hy2528._ia2052, function ():void{
_gn2295(4);
}, true);
break;
};
}
private function _bw2815(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Boolean{
var _local5:_lj345;
var _local6:int;
if (_yn2169 != 0){
_local5 = _wf88._kl2485();
if (((_local5._ic1388(_arg1, _arg2)) && ((_local5._hk2716(_arg1, _arg2) == 0)))){
_local6 = _bj913(_arg3);
if (_local6 != 0){
_local5._pr2557(_arg1, _arg2, _local6, (_arg4 - 69));
_wf88._pg1785(_arg1, _arg2);
return (true);
};
};
};
return (false);
}
private function _dg2242(_arg1:Event):void{
_ae2040._ay3295(!(_ae2040._tu2887()));
_fy1526();
_tm3451();
_ai1384();
}
private function _oc367():void{
var _local1:TextField = _ks1885._nd1190();
_local1.text = _hy2528._sm627;
_hu422.addItem(_local1, 2);
_local1.y = 10;
var _local2:TextField = new TextField();
_local2.textColor = 12033437;
_local2.selectable = true;
_local2.wordWrap = true;
_local2.border = true;
_local2.multiline = true;
_local2.borderColor = 12033437;
_local2.maxChars = 0x0200;
_local2.autoSize = TextFieldAutoSize.NONE;
_local2.type = TextFieldType.INPUT;
_hu422.addItem(_local2, 2);
_mr3036 = _local2;
_local2.x = 5;
_local2.y = 30;
_local2.width = 140;
_local2.height = 120;
var _local3:TextFormat = _local2.getTextFormat();
_local3.size = 9;
_local2.setTextFormat(_local3);
_local1 = _ks1885._nd1190();
_local1.text = _hy2528._dn2477;
_local1.wordWrap = true;
_local1.textColor = 12033437;
_hu422.addItem(_local1, 2);
_local1.x = 5;
_local1.y = 152;
_local1.width = 140;
_local1.height = 60;
_local3 = _local1.getTextFormat();
_local3.size = 9;
_local1.setTextFormat(_local3);
_local1 = _ks1885._nd1190();
_local1.text = _hy2528._ao1375;
_hu422.addItem(_local1, 2);
_local1.y = 210;
_local1 = _ks1885._nd1190();
_local1.text = _hy2528._xt1307;
_hu422.addItem(_local1, 2);
_local1.y = 230;
_local1.x = 5;
_yg833 = _local1;
var _local4:_oc1935 = new _oc1935(_hy2528._ta2876);
_local4.x = 50;
_local4.y = 0xFF;
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _dg2242);
_hu422.addItem(_local4, 2);
_or1534 = _local4;
}
private function _gn2295(_arg1:int):void{
var _local2:_ot519;
var _local3:int;
if (_rt2598._oj3099._mv1993() == -1){
_local2 = _ae2040._fg1749()[_fr2035];
_local3 = 0;
if (_rt2598._oj3099._ye2732() < _ae2040._fg1749().length){
_local3 = _ae2040._fg1749()[_rt2598._oj3099._ye2732()].uid;
};
switch (_arg1){
case 1:
_local2._wp3400 = _local3;
break;
case 2:
_local2._qg381 = _local3;
break;
case 3:
_local2._in3160 = _local3;
break;
case 4:
_local2._kt3079 = _local3;
break;
};
_ek3356();
};
}
override protected function _tm3451():void{
if (((!(_mr3036)) || (!(_ae2040)))){
return;
};
_mr3036.text = _ae2040._vb292();
_yg833.text = (_hy2528._xt1307 + (_ae2040._tu2887()) ? _hy2528._ql2132 : _hy2528._qy1183);
_or1534._mr1085((_ae2040._tu2887()) ? _hy2528._ll1361 : _hy2528._gm311);
}
private function _yp774():void{
var _local1:_ot519;
if (_rt2598._oj3099._mv1993() == -1){
_local1 = _ae2040._fg1749()[_fr2035];
_local1._ka875 = 0;
if (_rt2598._oj3099._ye2732() < _ae2040._fg1749().length){
_local1._ka875 = _ae2040._fg1749()[_rt2598._oj3099._ye2732()].uid;
};
_ek3356();
};
}
private function _ux1545(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _cu761.length) {
if (_cu761[_local3] == _local2){
_pg264 = _local3;
break;
};
_local3++;
};
_xb2622();
}
private function _bp581():void{
var _local1:URLRequest;
switch (_rt2598._oj3099._mv1993()){
case 0:
if (_dt2656._mn2166() == 0){
_dt2656._kb367(15);
} else {
_dt2656._kb367(0);
};
_wf88._es2323();
break;
case 1:
_qg2641(true, true);
break;
case 2:
if (_cr1330._dp301){
_local1 = new URLRequest("http://www.darkness-springs.eu/editorhelp.html");
navigateToURL(_local1);
} else {
_nw143();
};
break;
case 3:
_jm1870();
break;
case 4:
if (_ae2040.getUID() > 0){
_local1 = new URLRequest(("http://www.darkness-springs.eu/usermaps.php?realmid=" + _ae2040.getUID()));
navigateToURL(_local1);
} else {
_rt2598._oj3099._hh2204(_hy2528._wh1366, _hy2528._wy557);
};
break;
};
}
override protected function _tx2958():void{
var _local4:uint;
var _local5:uint;
if (_rt2598._oj3099._mv1993() != -1){
return;
};
var _local1:int = _rt2598._oj3099._ye2732();
if (_local1 == -1){
if ((((((_xe1663 == _rs1279)) || ((_xe1663 == _nr1759)))) || ((_xe1663 == _rs1000)))){
_ek3356();
};
return;
};
var _local2:_lj345 = _ae2040._mn2858(_local1);
var _local3:_ot519;
switch (_xe1663){
case _qq1242:
if (!_bb1083){
return;
};
_local4 = _bb1083._fn629().itemType;
_local5 = _tv609._fp316(_tv609._ry922(_local4), (_local2) ? _local2.getUID() : _tv609._fx1407);
_bb1083._fn629().itemType = _local5;
break;
case _il1440:
if (_local2){
_bi1390(_local2);
};
break;
case _by2853:
if (_local2){
_xk971(_local2);
};
break;
case _rs1279:
_local3 = _ae2040._fg1749()[_fr2035];
_local3._en1708 = (_local2) ? _local2.getUID() : -1;
_ek3356();
break;
case _nr1759:
_local3 = _ae2040._fg1749()[_fr2035];
_local3._om777 = (_local2) ? _local2.getUID() : -1;
_ek3356();
break;
case _rs1000:
_local3 = _ae2040._fg1749()[_fr2035];
_local3._po1435 = (_local2) ? _local2.getUID() : -1;
_ek3356();
break;
};
}
private function _ew2156(_arg1:uint):void{
_ni2054.print(((((((((((_tv609._kl2415(_arg1) + " level:") + _tv609._cy1922(_arg1)) + " hit:") + _tv609._fc330(_arg1)) + " health:") + _tv609._gy127(_arg1)) + " armor:") + _tv609._aj2495(_arg1)) + " exp:") + _tv609._pf1923(_arg1)));
}
private function _ho2448():void{
var _local1:Number = 0;
while (_local1 < _qd403.length) {
_qd403[_local1].enabled = !((_eo3404 == _local1));
_qd403[_local1]._yi2089((_eo3404 == _local1));
_local1++;
};
}
private function _lf321():void{
var _local1:Number = 0;
while (_local1 < _wr2350.length) {
_wr2350[_local1].enabled = !((_ob3249 == _local1));
_wr2350[_local1]._yi2089((_ob3249 == _local1));
_local1++;
};
}
private function _ll944():void{
var _local1:uint;
var _local2:uint;
switch (_rt2598._oj3099._mv1993()){
case 0:
_xe1663 = _qq1242;
_ma23(_hy2528._kj1121);
break;
case 1:
_local1 = _bb1083._fn629().itemType;
_local2 = _tv609._fp316(_tv609._ry922(_local1), _tv609._fx1407);
_bb1083._fn629().itemType = _local2;
_dt2656._fl2890(true);
break;
};
}
private function _ul181(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _wr2350.length) {
if (_wr2350[_local3] == _local2){
_ob3249 = _local3;
break;
};
_local3++;
};
_lf321();
}
public function _gc1295(_arg1:Event):void{
if (MouseEvent(_arg1).buttonDown){
_cn2086();
};
_wy1228(true);
_ec663();
}
public static function _th1173():Boolean{
return (false);
}
}
}//package ambiera
Section 44
//_iu1662 (ambiera._iu1662)
package ambiera {
import flash.geom.*;
import flash.filters.*;
public class _iu1662 extends _xv1434 {
protected const _hu1349:int = 50;
protected var _ge1215:int;
protected var _gc2507:Point;
protected var _mx3057:int;
protected var _mi53:_ex557;
protected var _ls2261:Point;
protected var _jo1435:Number;// = 1
protected var _gs2798:Number;
protected var _sh360:int;
protected var _ui373:_ex557;
protected var _ki1510:int;
protected var _rn2495:Boolean;
protected var _uc3401:int;
protected var initialized:Boolean;
protected var _eg927:int;
private var _ip2271:Number;
protected var _nm2269:Number;
protected var _eo2592:uint;
protected var _lj1836:Point;
protected var _yg247:int;
protected var _ss1524:Point;
protected var _fh304:Point;
protected var _gp307:int;
protected static const _mt82:int = 2;
protected static const _tu2309:int = 3;
protected static const _vw1914:int = 1;
protected static const _mv1349:int = 5;
protected static const _dt1188:int = 0;
protected static const _ma58:int = 4;
public function _iu1662(_arg1:_ex557, _arg2:_ps2722, _arg3:_gm2472){
super(_arg1, _arg2, _arg3);
if (_arg1){
_arg1.alpha = _hd2166();
};
_ki1510 = _dt1188;
initialized = false;
_ip2271 = _tv609._ws2874(_arg2.itemType);
_gs2798 = 0;
_nm2269 = _xq320();
_mx3057 = 0;
}
public function _jt3165():int{
return (_mx3057);
}
private function _mt471():void{
var _local2:_ju1817;
if (!_ui373){
return;
};
var _local1:_ps2722 = _ui373._fn629();
if (_tv609._au2821(_local1.itemType)){
_local2 = _wf88._qf3320();
if (((_local2) && (_local2._lg1210(_ui373)))){
_iv1090();
return;
};
};
if ((((Math.abs((_el3187.x - _local1.x)) < 2)) && ((Math.abs((_el3187.y - _local1.y)) < 2)))){
_fw398._pu916(_ks1885._fj2767);
_iv1090();
return;
};
(_fh304 = new Point(_local1.x, _local1.y));
_pl2254();
}
private function _sk858():void{
if (_gc2507 == null){
(_gc2507 = new Point(_el3187.x, _el3187.y));
_wf88._kr1759()._yx214(_el3187.x, _el3187.y, 1);
} else {
_wf88._kr1759()._yx214(_gc2507.x, _gc2507.y, -1);
(_gc2507 = new Point(_el3187.x, _el3187.y));
_wf88._kr1759()._yx214(_el3187.x, _el3187.y, 1);
};
}
public function _nw2754(_arg1:int, _arg2:int):void{
if (_gt3189()){
return;
};
_ki1510 = _vw1914;
_fh304 = new Point(_arg1, _arg2);
_lj1836 = null;
_gs2798 = 0;
_ui373 = null;
_ah2212();
}
private function _bn2629(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Point{
var _local6:Point;
var _local7:Point;
if ((((_arg1 == _arg3)) && ((_arg2 == _arg4)))){
return (null);
};
var _local5:Point = new Point(_arg1, _arg2);
if (_arg3 > _arg1){
(_local5.x = (_local5.x + 1));
} else {
if (_arg3 < _arg1){
(_local5.x = (_local5.x - 1));
};
};
if (_arg4 > _arg2){
(_local5.y = (_local5.y + 1));
} else {
if (_arg4 < _arg2){
(_local5.y = (_local5.y - 1));
};
};
if (_wf88._kr1759()._cb622(_local5.x, _local5.y)){
_local6 = new Point(_arg1, _arg2);
_local7 = _cc1939(_local6, _local5);
if (_wf88._kr1759()._cb622(_local7.x, _local7.y)){
_local7 = _cc1939(_local6, _local7);
_local7;
if (_wf88._kr1759()._cb622(_local7.x, _local7.y)){
_local7 = _cc1939(_local6, _local5);
_local7;
if (_wf88._kr1759()._cb622(_local7.x, _local7.y)){
_local7 = _cc1939(_local6, _local7);
_local7;
if (_wf88._kr1759()._cb622(_local7.x, _local7.y)){
return (null);
};
return (_local7);
} else {
return (_local7);
};
} else {
return (_local7);
};
} else {
return (_local7);
};
};
return (_local5);
}
public function _pw1802():Boolean{
return (true);
}
public function _ol1457():Boolean{
return (false);
}
public function _ek3451(_arg1:uint, _arg2:_ex557, _arg3:Point):void{
if (_gt3189()){
return;
};
_ki1510 = _mv1349;
_fh304 = null;
_lj1836 = null;
_gs2798 = 0;
_ui373 = null;
_rn2495 = false;
_ls2261 = _arg3;
_mi53 = _arg2;
_eo2592 = _arg1;
_ah2212();
var _local4:int = _tv609._gh3308(_arg1);
var _local5:_ju1817 = _wf88._qf3320();
if (((_local5) && (_local5._jn525(_arg1, this)))){
_local5._xt264(_fw398, _local4);
};
}
private function _bi1942():void{
var _local1:GlowFilter;
var _local2:Array;
var _local3:uint;
var _local4:_ju1817;
if (_mx3057){
(_mx3057 = (_mx3057 - _hu1349));
if (_mx3057 < 0){
(_mx3057 = 0);
};
if (_mx3057){
(_fw398.alpha = 0.2);
if (_mx3057 < 3000){
(_fw398.alpha = Math.max(0.2, (1 - (_mx3057 / 3000))));
};
} else {
(_fw398.alpha = _hd2166());
};
};
if (_ge1215){
(_ge1215 = (_ge1215 - _hu1349));
if (_ge1215 < 0){
(_ge1215 = 0);
};
if (_ge1215){
_local3 = (_ge1215 & 0xFF);
_local3;
_local1 = new GlowFilter(((_local3 << 16) | _local3), 1, 4, 4, 3);
_local1;
_local2 = new Array();
_local2;
_local2.push(_local1);
(_fw398.filters = _local2);
(_fw398.cacheAsBitmap = true);
} else {
if (_fw398){
(_fw398.filters = new Array());
};
};
};
if (_uc3401){
(_uc3401 = (_uc3401 - _hu1349));
if (_uc3401 < 0){
(_uc3401 = 0);
};
if (_uc3401){
(_ip2271 = (7.5 * _jo1435));
_local3 = (_uc3401 & 0xFF);
_local3;
_local1 = new GlowFilter((_local3 << 8), 1, 4, 4, 2);
_local1;
_local2 = new Array();
_local2;
_local2.push(_local1);
(_fw398.filters = _local2);
(_fw398.cacheAsBitmap = true);
} else {
(_ip2271 = _tv609._ws2874(_el3187.itemType));
(_jo1435 = 1);
if (_fw398){
(_fw398.filters = new Array());
};
};
};
if (_eg927){
(_eg927 = (_eg927 - _hu1349));
if (_eg927 < 0){
(_eg927 = 0);
};
if (_eg927){
} else {
_local4 = _wf88._qf3320();
if (_local4){
(_el3187.itemType = _tv609._sx3421(_local4._by1802()._le2192()));
_fw398._nk337();
_fm197._oj3099._ub2003(_ks1885._cg1619);
_fw398._tg184();
};
};
};
}
protected function _uo1318():uint{
return (_tv609._hv2511(_el3187.itemType));
}
public function _wx917():void{
if (_ki1510 == _ma58){
return;
};
var _local1:int = _tv609._dc2713(_el3187.itemType);
_fm197._oj3099._ub2003(_local1);
_ki1510 = _ma58;
_fh304 = null;
_lj1836 = null;
_gs2798 = 0;
_ui373 = null;
_ah2212();
}
override public function _xq320():int{
return (_tv609._gy127(_el3187.itemType));
}
private function _ah2212():void{
if (_lj1836 == null){
if (_ss1524 != null){
_wf88._kr1759()._yx214(_ss1524.x, _ss1524.y, -1);
(_ss1524 = null);
};
} else {
if (_ss1524 == null){
(_ss1524 = new Point(_lj1836.x, _lj1836.y));
_wf88._kr1759()._yx214(_ss1524.x, _ss1524.y, 1);
} else {
if (((!((_lj1836.x == _ss1524.x))) || (!((_lj1836.y == _ss1524.y))))){
_wf88._kr1759()._yx214(_ss1524.x, _ss1524.y, -1);
(_ss1524 = new Point(_lj1836.x, _lj1836.y));
_wf88._kr1759()._yx214(_ss1524.x, _ss1524.y, 1);
};
};
};
}
public function _dn421(_arg1:_ex557):void{
if (_gt3189()){
return;
};
_ki1510 = _tu2309;
_fh304 = null;
_lj1836 = null;
_gs2798 = 0;
_ui373 = _arg1;
_rn2495 = false;
_ah2212();
}
private function _jo1877():void{
var _local4:_ju1817;
var _local1:int = _ks1885._fj2767;
var _local2:int = _ks1885._cd2255;
_gs2798 = (_gs2798 + 0.5);
var _local3:int = int(_gs2798);
switch (_local3){
case 0:
case 1:
_local1 = _ks1885._fj2767;
_local2 = _ks1885._cd2255;
break;
case 2:
case 3:
_local1 = _ks1885._sg1213;
_local2 = _ks1885._pp892;
break;
case 4:
_local1 = _ks1885._sg1213;
_local2 = _ks1885._vc1397;
break;
};
if (_local3 >= 4){
if (_gc2507){
_wf88._kr1759()._yx214(_gc2507.x, _gc2507.y, -1);
};
_lj1836 = null;
_ah2212();
_iv1090();
_local4 = _wf88._qf3320();
if (_local4){
_local4._jm2978(_fw398);
};
};
_fw398._dq2131(_local2, _local1);
}
override public function _os1868():String{
var _local1 = "cmd:";
switch (_ki1510){
case _dt1188:
_local1 = (_local1 + "none");
break;
case _vw1914:
_local1 = (_local1 + "moveto");
break;
case _mt82:
_local1 = (_local1 + "reachItem");
break;
case _tu2309:
_local1 = (_local1 + "attackitem");
break;
case _ma58:
_local1 = (_local1 + "die");
break;
case _mv1349:
_local1 = (_local1 + "castSpell");
break;
};
if (((!((_ui373 == null))) && (!((_ui373._fn629() == null))))){
_local1 = (_local1 + (" target:" + _tv609._kl2415(_ui373._fn629().itemType)));
};
return (_local1);
}
protected function _hp1932():Number{
return (_tv609._fc330(_el3187.itemType));
}
public function _ra1205():int{
return (_uc3401);
}
public function _ju2645():void{
if (_gt3189()){
return;
};
_ki1510 = _dt1188;
_fh304 = null;
_lj1836 = null;
_gs2798 = 0;
_ui373 = null;
_ah2212();
_fw398._pu916(_ks1885._fj2767);
}
override public function _an2934(_arg1:_ex557, _arg2:Number, _arg3:uint):Boolean{
if (_nm2269 <= 0){
return (false);
};
(_nm2269 = (_nm2269 - _arg2));
if (_nm2269 <= 0){
(_nm2269 = 0);
_wx917();
return (true);
};
return (false);
}
public function _up2621():int{
return (_eg927);
}
private function _qu3237(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Point{
if ((((_arg1 == _arg3)) && ((_arg2 == _arg4)))){
return (null);
};
var _local5:Point = _wf88._ax2656()._id875(_arg1, _arg2, _arg3, _arg4);
if (_local5){
return (_local5);
};
return (_bn2629(_arg1, _arg2, _arg3, _arg4));
}
public function _ub2430():void{
(_uc3401 = 5000);
(_jo1435 = 2);
}
public function _wc2333():void{
(_uc3401 = 9000);
}
private function _vi3359():void{
var _local6:_ju1817;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
if (!_ui373){
return;
};
var _local1:int = _ks1885._fj2767;
(_gs2798 = (_gs2798 + 0.5));
var _local2:int = int(_gs2798);
switch (_local2){
case 0:
_local1 = _ks1885._uu673;
_local1;
break;
case 1:
_local1 = _ks1885._uu673;
_local1;
break;
case 2:
_local1 = _ks1885._ap1866;
_local1;
break;
case 4:
_local1 = _ks1885._fj2767;
_local1;
break;
};
if ((((_local2 >= 1)) && (!(_rn2495)))){
(_rn2495 = true);
_local6 = _wf88._qf3320();
if (_local6){
_local7 = _local6._an2934(_ui373, _fw398, _hp1932(), _uo1318(), false, _ol1457());
_local8 = -1;
_local9 = _tv609._xe421(_el3187.itemType);
if (_local9 == _tv609._xu1450){
_local10 = (Math.random() * 10);
if (_local10 < 5){
_local8 = _ks1885._bw159;
_local8;
} else {
if (_local10 >= 9){
_local8 = _ks1885._kx2395;
_local8;
} else {
_local8 = _ks1885._jv2520;
_local8;
};
};
} else {
if (_local9 == _tv609._cq3482){
_local8 = _ks1885._gg445;
_local8;
} else {
if (((!(_pw1802())) || ((((_local7 <= 0.5)) && ((Math.random() > 0.5)))))){
_local8 = _ks1885._wv1941;
_local8;
} else {
_local8 = (_ks1885._te3199 + (Math.random() * ((_ks1885._gh3021 - _ks1885._te3199) + 1)));
_local8;
};
};
};
_fm197._oj3099._ub2003(_local8);
};
};
if (_local2 > 4){
_iv1090();
};
var _local3:Point = _mv3197(_ui373);
var _local4:Point = _mv3197(_fw398);
var _local5:Point = _local3.subtract(_local4);
_fw398._dq2131(_je3361(_local5.x, _local5.y), _local1);
}
public function _hw2037():Boolean{
return ((((_ki1510 == _tu2309)) || ((_ki1510 == _mv1349))));
}
override public function _vb2548():void{
if (!initialized){
initialized = true;
_sk858();
};
_bi1942();
switch (_ki1510){
case _dt1188:
break;
case _vw1914:
_pl2254();
break;
case _mt82:
_mt471();
break;
case _tu2309:
_vi3359();
break;
case _ma58:
_jo1877();
break;
case _mv1349:
_gb1852();
break;
};
}
public function _pi101(_arg1:Number):void{
_nm2269 = _arg1;
}
private function _hd2166():Number{
if (_tv609._ek344(_el3187.itemType)){
return (0.5);
};
return (1);
}
public function _gt3189():Boolean{
return ((((_ki1510 == _ma58)) || ((_nm2269 == 0))));
}
private function _iv1090():void{
_ki1510 = _dt1188;
}
override public function _cg411():Number{
return (_nm2269);
}
public function _en2838(_arg1:_ex557):void{
if (_gt3189()){
return;
};
_ki1510 = _mt82;
_fh304 = null;
_lj1836 = null;
_gs2798 = 0;
_ui373 = _arg1;
_ah2212();
}
private function _pl2254():void{
var _local7:int;
if (!_fh304){
return;
};
var _local1:Point = _fw398._xc1677();
var _local2:int = _wf88._rw1773(_el3187.x, _el3187.y);
var _local3:int = _wf88._ou1013(_el3187.x, _el3187.y);
if (_lj1836 == null){
(_lj1836 = _qu3237(_el3187.x, _el3187.y, _fh304.x, _fh304.y));
};
_ah2212();
if (!_lj1836){
if ((((_el3187.x == _fh304.x)) && ((_el3187.y == _fh304.y)))){
(_yg247 = 0);
_iv1090();
_fw398._pu916(_ks1885._fj2767);
return;
};
if (((!((_sh360 == _fh304.x))) || (!((_gp307 == _fh304.y))))){
(_yg247 = 1);
(_sh360 = _fh304.x);
(_gp307 = _fh304.y);
} else {
++_yg247;
};
return;
} else {
(_yg247 = 0);
};
var _local4:Point = new Point(_wf88._jf770(_lj1836.x, _lj1836.y), _wf88._ix747(_lj1836.x, _lj1836.y));
var _local5:Point = new Point((_local2 + _local1.x), (_local3 + _local1.y));
var _local6:Point = _local4.subtract(_local5);
if (_local6.length > _ip2271){
_local6.normalize(_ip2271);
(_fw398.x = (_fw398.x + _local6.x));
(_fw398.y = (_fw398.y + _local6.y));
(_local5.x = (_local5.x + _local6.x));
(_local5.y = (_local5.y + _local6.y));
if (_wf88._hg2178(_fw398)){
_sk858();
};
_local7 = 0;
(_gs2798 = (_gs2798 + 0.5));
switch ((int(_gs2798) % 4)){
case 0:
_local7 = _ks1885._fj2767;
_local7;
break;
case 1:
_local7 = _ks1885._ap1866;
_local7;
break;
case 2:
_local7 = _ks1885._fj2767;
_local7;
break;
case 3:
_local7 = _ks1885._nx2701;
_local7;
break;
};
_fw398._dq2131(_je3361(_local6.x, _local6.y), _local7);
};
if ((((Math.abs((_local4.x - _local5.x)) <= (_ip2271 * 2))) && ((Math.abs((_local4.y - _local5.y)) <= (_ip2271 * 2))))){
(_lj1836 = null);
};
}
override public function _qm436():Boolean{
return ((_mx3057 > 0));
}
public function _fd2901():Boolean{
return (false);
}
private function _gb1852():void{
var _local3:int;
var _local4:int;
var _local6:Point;
var _local9:_ju1817;
var _local10:int;
var _local1:int = _ks1885._fj2767;
_gs2798 = (_gs2798 + 0.5);
var _local2:int = int(_gs2798);
switch (_local2){
case 0:
_local1 = _ks1885._uu673;
break;
case 1:
_local1 = _ks1885._uu673;
break;
case 2:
_local1 = _ks1885._ap1866;
break;
case 4:
_local1 = _ks1885._fj2767;
break;
};
var _local5:Point;
if (_ls2261){
_local3 = _ls2261.x;
_local4 = _ls2261.y;
_local5 = new Point(0, 0);
_local5.x = _wf88._jf770(_local3, _local4);
_local5.y = _wf88._ix747(_local3, _local4);
} else {
if (_mi53){
_local3 = _mi53._fn629().x;
_local4 = _mi53._fn629().y;
_local5 = _mi53._xc1677();
_mi53._xc1677().x = (_local5.x + _wf88._rw1773(_local3, _local4));
_local5.y = (_local5.y + _wf88._ou1013(_local3, _local4));
};
};
if ((((_local2 >= 1)) && (!(_rn2495)))){
_rn2495 = true;
_local9 = _wf88._qf3320();
if (_local9){
if (_local9._wa2220(_eo2592, this, _local5)){
_local10 = _tv609._gh3308(_eo2592);
switch (_local10){
case _tv609._vn912:
break;
case _tv609._py1306:
if (_cg411() < _xq320()){
(_ge1215 = 600);
} else {
(_ge1215 = 300);
};
break;
case _tv609._ei1061:
(_uc3401 = (_tv609._tu2715(_eo2592) * 1000));
break;
case _tv609._ns1027:
(_mx3057 = (_tv609._tu2715(_eo2592) * 1000));
break;
case _tv609._mn2179:
(_eg927 = (_tv609._tu2715(_eo2592) * 1000));
switch (_tv609._cy1922(_eo2592)){
case 1:
(_el3187.itemType = _tv609._sx3421(_tv609._xu1450));
break;
case 2:
(_el3187.itemType = _tv609._sx3421(_tv609._mf3458));
break;
case 3:
(_el3187.itemType = _tv609._sx3421(_tv609._qj2375));
break;
};
_fw398._nk337();
break;
};
};
};
};
if (_local2 > 4){
_iv1090();
};
if (_mi53){
_local6 = _mv3197(_mi53);
_local6;
} else {
_local6 = new Point(_wf88._jf770(_local3, _local4), _wf88._ix747(_local3, _local4));
_local6;
};
var _local7:Point = _mv3197(_fw398);
var _local8:Point = _local6.subtract(_local7);
_fw398._dq2131(_je3361(_local8.x, _local8.y), _local1);
}
private static function _cc1939(_arg1:Point, _arg2:Point):Point{
var _local3:int = (_arg2.x - _arg1.x);
var _local4:int = (_arg2.y - _arg1.y);
var _local5:int = _local3;
var _local6:int = _local4;
if (_local4 == -1){
if (_local3 == 1){
_local6++;
} else {
_local5++;
};
} else {
if (_local4 == 1){
if (_local3 == -1){
_local6--;
} else {
_local5--;
};
} else {
if (_local3 == -1){
_local6--;
} else {
_local6++;
};
};
};
var _local7:Point = new Point((_arg1.x + _local5), (_arg1.y + _local6));
return (_local7);
}
private static function _uf86(_arg1:Point, _arg2:Point):Point{
var _local3:int = (_arg2.x - _arg1.x);
var _local4:int = (_arg2.y - _arg1.y);
var _local5:int = _local3;
var _local6:int = _local4;
if (_local4 == -1){
if (_local3 == -1){
_local6++;
} else {
_local5--;
};
} else {
if (_local4 == 1){
if (_local3 == 1){
_local6--;
} else {
_local5++;
};
} else {
if (_local3 == -1){
_local6++;
} else {
_local6--;
};
};
};
var _local7:Point = new Point((_arg1.x + _local5), (_arg1.y + _local6));
return (_local7);
}
private static function _tx2169(_arg1:Number, _arg2:Number):Number{
if (_arg1 == 0){
return (((_arg2 < 0)) ? 270 : 90);
} else {
if (_arg2 == 0){
return (((_arg1 < 0)) ? 180 : 0);
};
};
if (_arg2 > 0){
if (_arg1 > 0){
return ((Math.atan((_arg2 / _arg1)) * (180 / 3.14159265359)));
};
return ((180 - (Math.atan((_arg2 / -(_arg1))) * (180 / 3.14159265359))));
//unresolved jump
};
if (_arg1 > 0){
return ((360 - (Math.atan((-(_arg2) / _arg1)) * (180 / 3.14159265359))));
};
return ((180 + (Math.atan((-(_arg2) / -(_arg1))) * (180 / 3.14159265359))));
}
private static function _je3361(_arg1:Number, _arg2:Number):Number{
var _local3:Number = _tx2169(_arg1, _arg2);
if ((((_local3 > (315 + 22.5))) || ((_local3 <= (45 - 22.5))))){
return (_ks1885._in264);
};
if ((((_local3 >= (45 - 22.5))) && ((_local3 <= (45 + 22.5))))){
return (_ks1885._sf1703);
};
if ((((_local3 >= (90 - 22.5))) && ((_local3 <= (90 + 22.5))))){
return (_ks1885._hu1077);
};
if ((((_local3 >= (135 - 22.5))) && ((_local3 <= (135 + 22.5))))){
return (_ks1885._cd2255);
};
if ((((_local3 >= (180 - 22.5))) && ((_local3 <= (180 + 22.5))))){
return (_ks1885._uy533);
};
if ((((_local3 >= (225 - 22.5))) && ((_local3 <= (225 + 22.5))))){
return (_ks1885._jq309);
};
if ((((_local3 >= (270 - 22.5))) && ((_local3 <= (270 + 22.5))))){
return (_ks1885._bm1026);
};
if ((((_local3 >= (315 - 22.5))) && ((_local3 <= (315 + 22.5))))){
return (_ks1885._bk2767);
};
return (_ks1885._hu1077);
}
}
}//package ambiera
Section 45
//_ju1817 (ambiera._ju1817)
package ambiera {
import flash.geom.*;
public interface _ju1817 {
function _uv12():_cm768;
function _pn2449():Array;
function _wa2220(_arg1:uint, _arg2:_xv1434, _arg3:Point=null):Boolean;
function _lg1210(_arg1:_ex557):Boolean;
function _jm2978(_arg1:_ex557):void;
function _rt540(_arg1:int, _arg2:int, _arg3:int=1):Point;
function _an2934(_arg1:_ex557, _arg2:_ex557, _arg3:Number, _arg4:uint, _arg5:Boolean, _arg6:Boolean):Number;
function _jn525(_arg1:uint, _arg2:_iu1662):Boolean;
function _ef956():void;
function _xt264(_arg1:_ex557, _arg2:int=-1):void;
function _by1802():_xk85;
}
}//package ambiera
Section 46
//_kn2066 (ambiera._kn2066)
package ambiera {
public interface _kn2066 {
function _jf205(_arg1:_oc1935):void;
function _ir1602(_arg1:_oc1935):void;
}
}//package ambiera
Section 47
//_ks1885 (ambiera._ks1885)
package ambiera {
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.filters.*;
public class _ks1885 {
public var _cy1089:Bitmap;
private var _gu2020:Class;
private var _nq2913:Class;
private var _kv374:Class;
private var _yi3504:Class;
private var _hk989:Class;
private var _ss2472:Class;
private var _mc3422:Class;
private var _tp758:Class;
private var _px1050:Class;
private var _sx681:Class;
public var _jk350:Bitmap;
private var _uf3356:Class;
private var _sh1873:Class;
private var _qg1698:Class;
private var _il82:Class;
private var _fc1169:Class;
public var _kd525:Bitmap;
private var _wh441:Class;
private var _dh2595:Class;
private var _kl28:Class;
public var _na1609:Bitmap;
private var _dm264:Class;
private var _rw2733:Class;
private var _ku1951:Class;
private var _gs1592:Class;
private var _cm1312:Class;
private var _jw3308:Class;
private var _vo285:Class;
public var _ex2537:Bitmap;
private var _rs3154:Class;
private var _es3159:Class;
private var _jf2668:Class;
public var _uv3357:Bitmap;
private var _lu3099:Class;
private var _be1253:Class;
private var _mn283:Array;
private var _my2875:Class;
private var _yh2642:Class;
private var _tk1482:Class;
private var _ne2159:Class;
private var _vn78:Class;
private var _vs1505:Class;
private var _ow3279:Class;
private var _ss2269:Class;
public var _vv3327:Bitmap;
private var _sb2236:Class;
private var _bc305:Class;
private var _sh1424:Class;
private var _sf2913:Class;
private var _oj2834:Class;
private var _wj411:Class;
private var _uq1724:Class;
private var _hp1933:Class;
private var _xq2150:Class;
private var _pe1463:Class;
private var _vl1202:Class;
private var _yp2787:Class;
private var _wn2568:Class;
private var _qi1099:Class;
private var _he18:Class;
private var _jn1489:Class;
private var _eg2548:Class;
public var _gw600:Bitmap;
private var _la2125:Class;
private var _ti2526:Class;
private var _ni2865:Class;
private var _dq433:Class;
private var _lo2529:Class;
private var _lf1997:Class;
private var _jk176:Class;
private var _dt1872:Class;
private var _lu2807:Class;
private var _xy3140:Class;
private var _wu1330:Class;
private var _ei993:Class;
private var _lp474:Class;
private var _eo2206:Class;
private var _gn812:Class;
private var _yq2376:Class;
private var _tg1854:Class;
private var _ac1045:Class;
private var _wu2435:Class;
private var _dw2140:Class;
private var _hs2227:Class;
private var _gy3401:Class;
private var _su1822:Class;
private var _om3132:Class;
public var _lv1780:Bitmap;
private var _jt2651:Class;
private var _aj1138:Class;
private var _th1432:Class;
private var _ul2399:Class;
private var _pa1835:Class;
private var _wj1609:Class;
private var _tq1359:Class;
private var _ti502:Class;
private var _lg681:Class;
private var _hr2447:Class;
private var _dv2122:Class;
private var _he830:Class;
private var _pc2535:Class;
private var _jl1227:Class;
private var _ro2464:Array;
private var _ey3051:Class;
private var _cc2789:Class;
private var _ke241:Class;
public var _wm3204:Bitmap;
private var _ld1971:Class;
private var _lh2023:Class;
private var _ry3288:Class;
private var _wt1340:Class;
private var _qu1007:Class;
private var _om899:Class;
private var _sn2640:Class;
public var _ec2701:Bitmap;
private var _ig836:Array;
private var _nc3034:Class;
private var _rd2506:Class;
private var _hn1711:Class;
private var _ew3240:Class;
private var _yd579:Class;
private var _tr2041:Class;
private var _nv1739:Class;
private var _an2956:Class;
private var _oh2868:Array;
private var _ku11:Array;
private var _me1753:Class;
private var _sh669:Class;
private var _jt3324:Class;
private var _mx2247:Class;
private var _af2848:Class;
private var _lk1607:Class;
private var _rn1395:Class;
private var _pu1090:Class;
private var _wv2079:Class;
private var _ps1253:Class;
private var _cl1183:Array;
public var _jv3175:Bitmap;
private var _dt321:Class;
private var _mx3103:Class;
private var _qf3270:Class;
private var _kw915:Class;
private var _yl1410:Class;
private var _be1904:Class;
private var _yw2268:Class;
private var _ev796:Class;
public var _ir1131:Bitmap;
private var _yp683:Class;
private var _yl2752:Class;
private var _ai708:Class;
private var _og2853:Class;
private var _ps3454:Class;
private var _yd2641:Class;
private var _lq190:Class;
private var _yl1675:Class;
private var _td1844:Class;
private var _tf1448:Class;
public var _vw94:Bitmap;
private var _vn883:Class;
private var _uk331:Class;
private var _nw1340:Class;
private var _dl631:Class;
private var _rq480:Class;
private var _fu2556:Class;
private var _tr3191:Class;
private var _im1914:Class;
private var _eu3207:Class;
private var _gg2352:Class;
private var _ln3474:Class;
private var _vy2323:Class;
private var _jp1991:Class;
private var _br2169:Class;
private var _aw2215:Class;
private var _ea450:Class;
private var _fg2174:Class;
private var _su1232:Array;
private var _cj1399:Class;
private var _vf944:Class;
private var _oa1288:Class;
private var _qk1381:Class;
private var _bc3070:Array;
private var _nc796:Class;
private var _ta3183:Class;
public var _gk1963:Bitmap;
private var _xe3146:Class;
private var _rd2356:Class;
private var _ia3334:Class;
private var _qh1753:Class;
private var _lv2053:Class;
private var _jq2432:Class;
private var _wy1219:Class;
private var _tc1619:Class;
private var _sb2714:Class;
private var _kc3324:Class;
private var _ec2338:Array;
private var _lt2223:Class;
private var _is552:Class;
private var _rd3461:Class;
private var _uf2542:Class;
private var _mt1568:Class;
public var _yi1856:Bitmap;
private var _cl889:Class;
private var _lb422:Class;
private var _nt2608:Class;
private var _oo2323:Class;
private var _uv2540:Class;
private var _of2642:Class;
private var _rw840:Class;
private var _gd139:Class;
private var _dx1766:Class;
private var _qp2754:Class;
private var _vo2423:Class;
private var _ao2154:Array;
private var _qv1945:Array;
private var _kx1643:Class;
private var _cf1768:Class;
private var _uy3293:Class;
private var _id1832:Class;
private var _pm2931:Class;
private var _cg3510:Class;
private var _ww2987:Class;
private var _st2347:Class;
private var _km882:Class;
private var _un690:Class;
private var _eq2525:Class;
private var _vx3450:Class;
public var _ci2279:Bitmap;
private var _fl2489:Class;
private var _xb1381:Class;
private var _ev184:Class;
private var _fh2807:Class;
private var _gh762:Class;
private var _be2892:Class;
private var _ih1056:Class;
private var _ao2184:Class;
private var _me2274:Class;
private var _ct1716:Class;
private var _cf2651:Class;
private var _do1677:Class;
private var _gr1645:Class;
private var _yv881:Class;
private var _bu2424:Class;
private var _uc247:Class;
private var _th1920:Class;
private var _mb1795:Class;
private var _vw2357:Class;
private var _xh102:Class;
private var _ac2647:Class;
private var _vg2360:Class;
public var _au2482:Bitmap;
private var _pp3227:Class;
private var _td1259:Class;
private var _tb377:Class;
private var _cy3160:Class;
private var _rw2604:Class;
private var _ri2452:Class;
public var _ps233:Bitmap;
private var _pb938:Class;
private var _dq3482:Class;
private var _oo3018:Class;
private var _yl3281:Class;
private var _ns645:Class;
private var _ri188:Class;
private var _cx346:Class;
private var _gt1280:Class;
private var _ui827:Class;
private var _mc1398:Class;
private var _xj321:Class;
private var _ln1967:Class;
private var _gx2826:Class;
private var _if3223:Class;
private var _hc2547:Class;
private var _nr1552:Class;
private var _ff1712:Class;
private var _bc1553:Class;
private var _do1254:Class;
private var _ej3388:Class;
private var _xh2110:Class;
private var _fy2684:Class;
private var _nr582:Class;
private var _pj460:Class;
private var _pc55:Class;
private var _wb811:Class;
private var _rm1600:Class;
public var _hd806:Bitmap;
private var _pl889:Class;
private var _rw2655:Class;
private var _lx2552:Class;
private var _be2259:Class;
public var _rg2414:Bitmap;
private var _ht2580:Class;
private var _ga2774:Class;
private var _kh3224:Class;
private var _lp2684:Class;
private var _gt1085:Class;
private var _pv322:Class;
private var _ln167:Class;
private var _gq1202:Class;
private var _fx2668:Class;
private var _od3317:Class;
private var _vr1869:Class;
private var _fp2792:Class;
private var _ft679:Class;
private var _sh92:Class;
private var _td149:Class;
private var _kp2269:Class;
private var _jm2444:Class;
private var _re406:Class;
private var _ra3021:Class;
private var _mo2619:Class;
private var _tb3202:Class;
private var _fu1955:Class;
private var _yf2503:Class;
private var _th1548:Class;
private var _id2103:Class;
private var _vi1965:Class;
private var _je3429:Class;
public var _ky3293:Array;
private var _kp2043:Class;
private var _xh3258:Class;
private var _cj2968:Class;
private var _gw1510:Class;
private var _he3298:Array;
private var _wx3065:Class;
private var _rf751:Class;
private var _ya3373:Class;
private var _hh2601:Class;
public var _ao530:Bitmap;
private var _qm2559:Class;
private var _eq394:Class;
private var _qf1393:Class;
private var _xf2338:Class;
private var _uc1035:Class;
private var _nq1585:Class;
private var _vt464:Class;
private var _ry2078:Class;
private var _tg455:Class;
private var _qr1958:Class;
private var _ur494:Class;
private var _ao1999:Class;
private var _ga562:Class;
private var _sf1549:Class;
private var _ut3024:Class;
public var _uw708:Bitmap;
private var _jy133:Class;
private var _fe1756:Class;
private var _fe2609:Class;
private var _lw2104:Class;
private var _xy523:Class;
private var _mq3349:Class;
private var _xj1706:Class;
private var _mk518:Class;
private var _pn39:Class;
private var _dk1661:Class;
private var _se1764:Class;
private var _mm704:Class;
private var _gj2054:Class;
private var _cx2927:Class;
private var _tw1552:Class;
private var _ku2330:Class;
private var _ym1791:Class;
private var _pa1766:Array;
private var _nm753:Class;
private var _wd2589:Class;
private var _mf2529:Class;
private var _qt2208:Class;
private var _nv1869:Class;
private var _go867:Class;
private var _wl1146:Class;
private var _id475:Class;
private var _bv2915:Class;
private var _wk269:Class;
private var _is1284:Array;
public var _xf2390:Bitmap;
private var _oa1116:Class;
private var _up1456:Class;
private var _ip2741:Class;
private var _xm1394:Class;
private var _bm1926:Class;
private var _ke2374:Class;
private var _pn3098:Class;
public var _mj467:Bitmap;
private var _bx1684:Class;
private var _ff2464:Class;
private var _na464:Class;
private var _la865:Class;
private var _qf558:Class;
private var _qg649:Class;
private var _au2700:Class;
private var _wo1806:Class;
private var _ms2912:Class;
public var _lg2397:Bitmap;
private var _op622:Class;
private var _ft1539:Class;
private var _wt1054:Class;
private var _uy713:Class;
public var _sv1361:Bitmap;
private var _ts1924:Class;
private var _yg3021:Class;
private var _wc337:Class;
private var _cr2219:Class;
private var _xb1898:Class;
private var _pb2221:Class;
private var _wl3129:Class;
private var _rm3457:Class;
private var _va361:Class;
private var _pr1138:Class;
private var _iq2332:Class;
private var _nx320:Class;
private var _nl1717:Class;
private var _uq2140:Class;
private var _vs2173:Class;
private var _kd3456:Array;
private var _rm1048:Class;
private var _sl2525:Class;
private var _ba1168:Class;
private var _hg2676:Class;
private var _gf1118:Class;
private var _lv1069:Class;
private var _iw1533:Class;
private var _qw2909:Class;
private var _qp2832:Class;
private var _qr1105:Class;
private var _rr2866:Class;
public var _jy1577:Bitmap;
private var _bx1259:Class;
private var _bq160:Class;
private var _vv1500:Class;
private var _bo1103:Class;
private var _qj1480:Class;
private var _ff611:Class;
private var _cx1218:Class;
private var _uo2336:Class;
private var _lb775:Class;
private var _kb736:Class;
private var _pv1858:Class;
private var _lx1936:Class;
private var _kk2001:Class;
private var _ae2783:Class;
private var _nw74:Class;
private var _ch3415:Class;
private var _jq1482:Class;
private var _nf1253:Class;
private var _wr1284:Class;
private var _is442:Class;
private var _tm1472:Class;
private var _gn1040:Class;
private var _mc447:Class;
private var _ri1892:Class;
private var _we589:Array;
public var _go492:Bitmap;
private var _lw217:Class;
private var _ai3085:Class;
public var _am3512:Bitmap;
private var _ws856:Class;
public var _sa790:Bitmap;
private var _nx3040:Class;
private var _nw94:Class;
private var _cn730:Class;
private var _no342:Class;
private var _yl1166:Class;
private var _rk1274:Class;
private var _xs3473:Class;
private var _md1004:Class;
private var _tm1495:Class;
private var _ej1246:Array;
public var _gk2515:Bitmap;
private var _wy160:Class;
private var _bl1753:Class;
private var _fl2367:Class;
public var _gb1506:Bitmap;
private var _xr1260:Class;
private var _ot844:Class;
private var _by705:Class;
private var _al3510:Class;
private var _gg561:Class;
private var _gt1359:Class;
private var _vq420:Class;
private var _np212:Class;
private var _gp1919:Array;
private var _kv362:Class;
private var _rj117:Class;
private var _eh1667:Class;
private var _ty1835:Class;
private var _jx1137:Class;
private var _yt1070:Class;
private var _ux269:Class;
private var _tb2857:Class;
private var _kp80:Class;
private var _nk1541:Class;
private var _ek3250:Class;
public static const _cd1736:int = 62;
public static const _qd904:int = 88;
public static const _yl1087:int = 28;
public static const _ny1703:int = 7;
public static const _dx2699:int = 6;
public static const _ag187:int = 23;
public static const _ls1293:int = 70;
public static const _vg1285:int = 110;
public static const _wg2686:int = 27;
public static const _yj1135:int = 24;
public static const _jv2520:int = 24;
public static const _lk1182:int = 42;
public static const _ln470:int = 27;
public static const _mx181:int = 8;
public static const _fl3155:int = 26;
public static const _ff69:int = 4;
public static const _im873:int = 8;
public static const _as1343:int = 77;
public static const _wh2269:int = 86;
public static const _eh988:int = 50;
public static const _po2491:int = 92;
public static const _pf1247:int = 16;
public static const _dt909:int = 9;
public static const _ib1953:int = 15925198;
public static const _ka3350:int = 64;
public static const _xt224:int = 29;
public static const _jp3362:int = 4;
public static const _hk2531:int = 11171839;
public static const _eb2283:int = 8;
public static const _qq2047:int = 19;
public static const _oq281:int = 103;
public static const _bm1026:int = 4;
public static const _sk3361:int = 4;
public static const _bl3409:int = 107;
public static const _py802:int = 7;
public static const _hj334:int = 17;
public static const _sf1703:int = 1;
public static const _ur2852:int = 5;
public static const _jh3253:int = 22;
public static const _bb1991:int = 18;
public static const _xa2037:int = 5;
public static const _bk2767:int = 3;
public static const _ps2828:int = 39;
public static const _mk3213:int = 9;
public static const _ok1316:int = 78;
public static const _fq2451:int = 5;
public static const _rt22:int = 29;
public static const _ni2989:int = 11;
public static const _co2297:int = 3;
public static const _hu1077:int = 0;
public static const _tq1319:int = 94;
public static const _nx2701:int = 2;
public static const _ap1866:int = 1;
public static const _lh742:int = 8;
public static const _lq3347:int = 10;
public static const _te3199:int = 32;
public static const _en2529:int = 6;
public static const _xn2300:int = 13;
public static const _tq444:int = 35;
public static const _jw270:int = 71;
public static const _xv1456:int = 10;
public static const _uy2972:int = 6;
public static const _bw159:int = 23;
public static const _kx2395:int = 21;
public static const _bj2522:int = 7;
public static const _rx2002:int = 1;
public static const _um1092:int = 23;
public static const _qe729:int = 3;
public static const _sg2406:int = 79;
public static const _ab1013:int = 99;
public static const _ex2262:int = 21;
public static const _ey2185:int = 1;
public static const _cr1871:int = 3;
public static const _ks728:int = 7;
public static const _xo721:int = 30;
public static const _ec1704:int = 80;
public static const _is1465:int = 18;
public static const _xg2133:int = 25;
public static const _xg1048:int = 60;
public static const _hp2602:int = 85;
public static const _sg1213:int = 4;
public static const _rm1660:int = 9;
public static const _ok2587:int = 17;
public static const _rm1546:int = 15;
public static const _ij1795:int = 21;
public static const _wr2946:int = 30;
public static const _eh3375:int = 42;
public static const _is2683:int = 83;
private static const _yw382:Number = 0.8;
public static const _ug1721:int = 18;
public static const _fu1749:int = 4;
public static const _rc1837:int = 66;
public static const _lv2789:int = 97;
public static const _ds1535:int = 0;
public static const _ga2361:int = 0xFFFFFF;
public static const _nb1049:int = 16770441;
public static const _yx1175:int = 0;
public static const _cf3295:int = 41;
public static const _xs2711:int = 19;
public static const _yy2188:int = 84;
public static const _kw3130:int = 2;
public static const _bg2932:int = 34;
public static const _cl69:int = 2;
public static const _dj2835:int = 14;
public static const _cg568:int = 14;
public static const _pm2042:int = 31;
public static const _lk843:int = 87;
public static const _xl1552:int = 44;
public static const _kg569:int = 0;
public static const _cd2255:int = 7;
public static const _jq309:int = 5;
public static const _og1609:int = 25;
public static const _nw1414:int = 22;
public static const _ix1981:int = 9;
public static const _uu673:int = 3;
public static const _lh464:int = 90;
public static const _ic2367:int = 68;
public static const _ke2468:int = 81;
public static const _vt147:int = 29;
public static const _mq2047:int = 91;
public static const _qt3533:int = 2;
public static const _vc1397:int = 1;
public static const _oa2678:int = 72;
public static const _bc3492:int = 38;
public static const _bw19:int = 2;
public static const _xt2304:int = 40;
public static const _jh636:int = 18;
public static const _up1329:int = 28;
public static const _in264:int = 2;
public static const _kp1901:int = 22;
public static const _tk3087:int = 76;
public static const _sd1755:int = 22;
public static const _ax1124:int = 24;
public static const _wl240:int = 8;
public static const _tc1909:int = 3;
public static const _is3353:int = 19;
public static const _fy2094:int = 30;
public static const _et1571:int = 0;
public static const _rj948:int = 16;
public static const _mg3438:int = 12;
public static const _kp1916:int = 6;
public static const _pp892:int = 0;
public static const _rk2977:int = 27;
public static const _vt3154:int = 16;
public static const _vo841:int = 53;
public static const _rj1614:int = 43;
public static const _ec1788:int = 26;
public static const _gh3463:int = 51;
public static const _lj2807:int = 100;
public static const _fu2788:int = 102;
public static const _rs899:int = 10;
public static const _ih2642:int = 28;
public static const _eo3292:int = 11;
public static const _rs2632:int = 21;
public static const _fj1821:int = 17;
public static const _vy640:int = 96;
public static const _eq1715:int = 31;
public static const _cg1619:int = 20;
public static const _lk2618:int = 37;
public static const _kq1981:int = 65;
public static const _kr141:int = 106;
public static const _lv3476:int = 29;
public static const _di258:int = 7;
public static const _qi1773:int = 12;
public static const _eb1770:int = 19;
public static const _qo1814:int = 10;
public static const _aw2584:int = 20;
public static const _gh3021:int = 34;
public static const _ap3355:int = 14;
public static const _cr162:int = -40;
public static const _he2727:int = 6898731;
public static const _gm2895:int = 36;
public static const _mx662:int = 93;
public static const _sv3227:int = 82;
public static const _iv925:int = 5;
public static const _lf2052:int = 101;
public static const _ps2051:int = 98;
public static const _hi2054:int = 15;
public static const _fb482:int = 3;
public static const _nd2960:int = 11;
public static const _ph1453:int = 75;
public static const _wv1941:int = 2;
public static const _qo2812:int = 109;
public static const _xd158:int = 40;
public static const _uy533:int = 6;
public static const _qg351:int = 31;
public static const _qg1970:int = 11;
public static const _eb2544:int = 40;
public static const _lu1182:int = 1;
public static const _yd2351:int = 73;
public static const _ud1618:int = 63;
public static const _iy2386:int = 1;
public static const _tj154:int = 5;
public static const _fa1850:int = 9;
public static const _pr2284:int = 1;
public static const _rj677:int = 108;
public static const _rj678:int = 32;
public static const _st1129:int = 34;
public static const _ou2857:int = 13;
public static const _mh3098:int = 74;
public static const _yq1875:int = 20;
public static const _vo1589:int = 4;
public static const _ds2290:int = 12;
public static const _pw2771:int = 33;
public static const _uv2326:int = 61;
public static const _ec1041:int = 15;
public static const _ph675:int = 67;
public static const _vp431:int = 69;
public static const _bf3410:int = 52;
public static const _fj2767:int = 0;
public static const _ob3096:int = 43;
public static const _gd1112:int = 105;
public static const _mm3359:int = 8;
public static const _ie1531:int = 6;
public static const _im1886:int = 32;
public static const _vf549:int = 104;
public static const _op373:int = 0;
public static const _tb1754:int = 8;
public static const _ds11:int = 89;
public static const _gg445:int = 25;
public static const _so969:int = 95;
public static const _mj1547:int = 13;
public static const _io2113:int = 5;
public static const _is132:int = 1;
public static const _pw2323:int = 0;
public static const _bb2904:int = 33;
public static const _jv1655:int = 16;
public static const _ja3365:int = 41;
public static const _vq3288:int = 26;
public static var _oj3099:_ks1885;
public function _ks1885(){
_xh3258 = _ks1885__xh3258;
_tw1552 = _ks1885__tw1552;
_ey3051 = _ks1885__ey3051;
_qj1480 = _ks1885__qj1480;
_jx1137 = _ks1885__jx1137;
_sx681 = _ks1885__sx681;
_rw840 = _ks1885__rw840;
_iw1533 = _ks1885__iw1533;
_cj1399 = _ks1885__cj1399;
_jf2668 = _ks1885__jf2668;
_dw2140 = _ks1885__dw2140;
_wj1609 = _ks1885__wj1609;
_pa1766 = new Array(_xh3258, _tw1552, _ey3051, _qj1480, _jx1137, _sx681, _rw840, _iw1533, _cj1399, _dw2140, _jf2668, _wj1609);
_xj1706 = _ks1885__xj1706;
_xf2338 = _ks1885__xf2338;
_ln1967 = _ks1885__ln1967;
_hg2676 = _ks1885__hg2676;
_go867 = _ks1885__go867;
_ui827 = _ks1885__ui827;
_bl1753 = _ks1885__bl1753;
_eg2548 = _ks1885__eg2548;
_pb2221 = _ks1885__pb2221;
_re406 = _ks1885__re406;
_af2848 = _ks1885__af2848;
_ri188 = _ks1885__ri188;
_vs1505 = _ks1885__vs1505;
_jm2444 = _ks1885__jm2444;
_hp1933 = _ks1885__hp1933;
_nk1541 = _ks1885__nk1541;
_vf944 = _ks1885__vf944;
_ip2741 = _ks1885__ip2741;
_yl1166 = _ks1885__yl1166;
_fp2792 = _ks1885__fp2792;
_rd2356 = _ks1885__rd2356;
_ff2464 = _ks1885__ff2464;
_wj411 = _ks1885__wj411;
_nw94 = _ks1885__nw94;
_nc3034 = _ks1885__nc3034;
_yh2642 = _ks1885__yh2642;
_yp2787 = _ks1885__yp2787;
_ln3474 = _ks1885__ln3474;
_xm1394 = _ks1885__xm1394;
_ff1712 = _ks1885__ff1712;
_vo285 = _ks1885__vo285;
_ae2783 = _ks1885__ae2783;
_pl889 = _ks1885__pl889;
_ke2374 = _ks1885__ke2374;
_om3132 = _ks1885__om3132;
_vg2360 = _ks1885__vg2360;
_pu1090 = _ks1885__pu1090;
_ry2078 = _ks1885__ry2078;
_jk176 = _ks1885__jk176;
_ux269 = _ks1885__ux269;
_wb811 = _ks1885__wb811;
_ke241 = _ks1885__ke241;
_jp1991 = _ks1885__jp1991;
_cy3160 = _ks1885__cy3160;
_bc3070 = new Array(_xj1706, _xf2338, _ln1967, _hg2676, _go867, _ui827, _bl1753, _eg2548, _pb2221, _re406, _af2848, _ri188, _vs1505, _jm2444, _hp1933, _nk1541, _vf944, _ip2741, _yl1166, _fp2792, _rd2356, _wj411, _ff2464, _nw94, _nc3034, _yh2642, _yp2787, _ln3474, _xm1394, _ff1712, _ae2783, _vo285, _pl889, _ke2374, _om3132, _vg2360, _pu1090, _ry2078, _jk176, _ux269, _wb811, _ke241, _jp1991, _cy3160);
_bv2915 = _ks1885__bv2915;
_jw3308 = _ks1885__jw3308;
_jn1489 = _ks1885__jn1489;
_yv881 = _ks1885__yv881;
_wl1146 = _ks1885__wl1146;
_ev796 = _ks1885__ev796;
_qg1698 = _ks1885__qg1698;
_ws856 = _ks1885__ws856;
_yl2752 = _ks1885__yl2752;
_ri2452 = _ks1885__ri2452;
_ku2330 = _ks1885__ku2330;
_sh1873 = _ks1885__sh1873;
_an2956 = _ks1885__an2956;
_wu1330 = _ks1885__wu1330;
_lt2223 = _ks1885__lt2223;
_lp2684 = _ks1885__lp2684;
_gt1359 = _ks1885__gt1359;
_dl631 = _ks1885__dl631;
_kk2001 = _ks1885__kk2001;
_op622 = _ks1885__op622;
_lo2529 = _ks1885__lo2529;
_tg1854 = _ks1885__tg1854;
_je3429 = _ks1885__je3429;
_td1259 = _ks1885__td1259;
_km882 = _ks1885__km882;
_rf751 = _ks1885__rf751;
_vl1202 = _ks1885__vl1202;
_ff611 = _ks1885__ff611;
_tb3202 = _ks1885__tb3202;
_uc247 = _ks1885__uc247;
_ti502 = _ks1885__ti502;
_ej1246 = new Array(null, _bv2915, _jw3308, _jn1489, _yv881, _wl1146, _ev796, _qg1698, _ws856, _yl2752, _ri2452, _ku2330, _sh1873, _an2956, _wu1330, _lt2223, _lp2684, _gt1359, _dl631, _kk2001, _op622, _lo2529, _td1259, _km882, _rf751, _vl1202, _ff611, _tb3202, _uc247, _ti502, _tg1854, _je3429);
_rw2733 = _ks1885__rw2733;
_ga2774 = _ks1885__ga2774;
_cx346 = _ks1885__cx346;
_id1832 = _ks1885__id1832;
_fe1756 = _ks1885__fe1756;
_td149 = _ks1885__td149;
_yw2268 = _ks1885__yw2268;
_uf2542 = _ks1885__uf2542;
_kp80 = _ks1885__kp80;
_cc2789 = _ks1885__cc2789;
_dh2595 = _ks1885__dh2595;
_vv1500 = _ks1885__vv1500;
_ps3454 = _ks1885__ps3454;
_fu1955 = _ks1885__fu1955;
_vs2173 = _ks1885__vs2173;
_ni2865 = _ks1885__ni2865;
_qf3270 = _ks1885__qf3270;
_pr1138 = _ks1885__pr1138;
_qp2832 = _ks1885__qp2832;
_jq2432 = _ks1885__jq2432;
_vn883 = _ks1885__vn883;
_wv2079 = _ks1885__wv2079;
_ns645 = _ks1885__ns645;
_bc1553 = _ks1885__bc1553;
_lp474 = _ks1885__lp474;
_lw217 = _ks1885__lw217;
_gq1202 = _ks1885__gq1202;
_wn2568 = _ks1885__wn2568;
_dv2122 = _ks1885__dv2122;
_fu2556 = _ks1885__fu2556;
_xh102 = _ks1885__xh102;
_no342 = _ks1885__no342;
_hn1711 = _ks1885__hn1711;
_va361 = _ks1885__va361;
_nv1869 = _ks1885__nv1869;
_hh2601 = _ks1885__hh2601;
_gh762 = _ks1885__gh762;
_rw2655 = _ks1885__rw2655;
_xs3473 = _ks1885__xs3473;
_mc1398 = _ks1885__mc1398;
_nf1253 = _ks1885__nf1253;
_mt1568 = _ks1885__mt1568;
_lu3099 = _ks1885__lu3099;
_mn283 = new Array(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, _rw2733, _ga2774, _cx346, _id1832, _fe1756, _td149, _yw2268, _uf2542, _kp80, _cc2789, _dh2595, _vv1500, _ps3454, _fu1955, _vs2173, _ni2865, _qf3270, null, null, null, _pr1138, _qp2832, _jq2432, _vn883, _wv2079, _ns645, _bc1553, null, _lp474, _lw217, _gq1202, _wn2568, _dv2122, _fu2556, _xh102, _no342, _hn1711, _va361, _nv1869, _hh2601, _gh762, _rw2655, null, _xs3473, null, _mc1398, null, null, _nf1253, _mt1568, _lu3099);
_ht2580 = _ks1885__ht2580;
_qk1381 = _ks1885__qk1381;
_ia3334 = _ks1885__ia3334;
_jl1227 = _ks1885__jl1227;
_br2169 = _ks1885__br2169;
_me2274 = _ks1885__me2274;
_rn1395 = _ks1885__rn1395;
_ac2647 = _ks1885__ac2647;
_is552 = _ks1885__is552;
_tg455 = _ks1885__tg455;
_bo1103 = _ks1885__bo1103;
_qg649 = _ks1885__qg649;
_cx1218 = _ks1885__cx1218;
_gg2352 = _ks1885__gg2352;
_fy2684 = _ks1885__fy2684;
_og2853 = _ks1885__og2853;
_fl2489 = _ks1885__fl2489;
_il82 = _ks1885__il82;
_ut3024 = _ks1885__ut3024;
_pa1835 = _ks1885__pa1835;
_wc337 = _ks1885__wc337;
_yd2641 = _ks1885__yd2641;
_uy713 = _ks1885__uy713;
_ao2184 = _ks1885__ao2184;
_jt2651 = _ks1885__jt2651;
_ai708 = _ks1885__ai708;
_ch3415 = _ks1885__ch3415;
_oj2834 = _ks1885__oj2834;
_be1904 = _ks1885__be1904;
_px1050 = _ks1885__px1050;
_kx1643 = _ks1885__kx1643;
_rm1048 = _ks1885__rm1048;
_ts1924 = _ks1885__ts1924;
_mm704 = _ks1885__mm704;
_he3298 = new Array(_ht2580, _qk1381, _ia3334, _jl1227, _br2169, _me2274, _rn1395, _ac2647, _is552, _tg455, _bo1103, _qg649, _cx1218, _gg2352, _fy2684, _og2853, _fl2489, _il82, _ut3024, _pa1835, _wc337, _yd2641, _uy713, _ao2184, _jt2651, _ai708, _ch3415, _oj2834, _be1904, _px1050, _kx1643, _rm1048, _ts1924, _mm704, null, null, null, null, null, null);
_au2700 = _ks1885__au2700;
_xh2110 = _ks1885__xh2110;
_kp2043 = _ks1885__kp2043;
_yl1675 = _ks1885__yl1675;
_pv322 = _ks1885__pv322;
_if3223 = _ks1885__if3223;
_bm1926 = _ks1885__bm1926;
_ul2399 = _ks1885__ul2399;
_qf1393 = _ks1885__qf1393;
_th1432 = _ks1885__th1432;
_qh1753 = _ks1885__qh1753;
_la865 = _ks1885__la865;
_mb1795 = _ks1885__mb1795;
_wy1219 = _ks1885__wy1219;
_lx2552 = _ks1885__lx2552;
_lv1069 = _ks1885__lv1069;
_rk1274 = _ks1885__rk1274;
_uy3293 = _ks1885__uy3293;
_vy2323 = _ks1885__vy2323;
_mx2247 = _ks1885__mx2247;
_tm1472 = _ks1885__tm1472;
_vw2357 = _ks1885__vw2357;
_nr582 = _ks1885__nr582;
_wh441 = _ks1885__wh441;
_rm3457 = _ks1885__rm3457;
_uf3356 = _ks1885__uf3356;
_nx3040 = _ks1885__nx3040;
_sh1424 = _ks1885__sh1424;
_aw2215 = _ks1885__aw2215;
_yi3504 = _ks1885__yi3504;
_he18 = _ks1885__he18;
_sf1549 = _ks1885__sf1549;
_wk269 = _ks1885__wk269;
_kv374 = _ks1885__kv374;
_is1284 = new Array(_au2700, _xh2110, _kp2043, _yl1675, _pv322, _if3223, _bm1926, _ul2399, _qf1393, _th1432, _qh1753, _la865, _mb1795, _wy1219, _lx2552, _lv1069, _rk1274, _uy3293, _vy2323, _mx2247, _tm1472, _vw2357, _nr582, _wh441, _rm3457, _uf3356, _nx3040, _sh1424, _aw2215, _yi3504, _he18, _sf1549, _wk269, _kv374, null, null, null, null, null, null);
_tk1482 = _ks1885__tk1482;
_vq420 = _ks1885__vq420;
_cl889 = _ks1885__cl889;
_oa1116 = _ks1885__oa1116;
_oo2323 = _ks1885__oo2323;
_be1253 = _ks1885__be1253;
_dm264 = _ks1885__dm264;
_ct1716 = _ks1885__ct1716;
_pc55 = _ks1885__pc55;
_un690 = _ks1885__un690;
_lf1997 = _ks1885__lf1997;
_sb2236 = _ks1885__sb2236;
_my2875 = _ks1885__my2875;
_dq3482 = _ks1885__dq3482;
_np212 = _ks1885__np212;
_xj321 = _ks1885__xj321;
_lb422 = _ks1885__lb422;
_vn78 = _ks1885__vn78;
_rs3154 = _ks1885__rs3154;
_fx2668 = _ks1885__fx2668;
_vx3450 = _ks1885__vx3450;
_gr1645 = _ks1885__gr1645;
_dk1661 = _ks1885__dk1661;
_nv1739 = _ks1885__nv1739;
_tp758 = _ks1885__tp758;
_do1254 = _ks1885__do1254;
_bc305 = _ks1885__bc305;
_pv1858 = _ks1885__pv1858;
_se1764 = _ks1885__se1764;
_ti2526 = _ks1885__ti2526;
_by705 = _ks1885__by705;
_oo3018 = _ks1885__oo3018;
_ao1999 = _ks1885__ao1999;
_nt2608 = _ks1885__nt2608;
_oh2868 = new Array(_tk1482, _vq420, _cl889, _oa1116, _oo2323, _be1253, _dm264, _ct1716, _pc55, _un690, _lf1997, _sb2236, _my2875, _dq3482, _np212, _xj321, _lb422, _vn78, _rs3154, _fx2668, _vx3450, _gr1645, _dk1661, _nv1739, _tp758, _do1254, _bc305, _pv1858, _se1764, _ti2526, _by705, _oo3018, _ao1999, _nt2608, null, null, null, null, null, null);
_ew3240 = _ks1885__ew3240;
_jq1482 = _ks1885__jq1482;
_ps1253 = _ks1885__ps1253;
_wt1054 = _ks1885__wt1054;
_kl28 = _ks1885__kl28;
_qm2559 = _ks1885__qm2559;
_qi1099 = _ks1885__qi1099;
_wl3129 = _ks1885__wl3129;
_lg681 = _ks1885__lg681;
_gs1592 = _ks1885__gs1592;
_ac1045 = _ks1885__ac1045;
_td1844 = _ks1885__td1844;
_qt2208 = _ks1885__qt2208;
_na464 = _ks1885__na464;
_tf1448 = _ks1885__tf1448;
_mx3103 = _ks1885__mx3103;
_wu2435 = _ks1885__wu2435;
_xe3146 = _ks1885__xe3146;
_nw74 = _ks1885__nw74;
_ft679 = _ks1885__ft679;
_gn812 = _ks1885__gn812;
_qr1105 = _ks1885__qr1105;
_yg3021 = _ks1885__yg3021;
_up1456 = _ks1885__up1456;
_ym1791 = _ks1885__ym1791;
_cj2968 = _ks1885__cj2968;
_mc447 = _ks1885__mc447;
_bx1684 = _ks1885__bx1684;
_yt1070 = _ks1885__yt1070;
_mc3422 = _ks1885__mc3422;
_gn1040 = _ks1885__gn1040;
_kw915 = _ks1885__kw915;
_pj460 = _ks1885__pj460;
_dq433 = _ks1885__dq433;
_cl1183 = new Array(_ew3240, _jq1482, _ps1253, _wt1054, _kl28, _qm2559, _qi1099, _wl3129, _lg681, _gs1592, _ac1045, _td1844, _qt2208, _na464, _tf1448, _mx3103, _wu2435, _xe3146, _nw74, _ft679, _gn812, _qr1105, _yg3021, _up1456, _ym1791, _cj2968, _mc447, _bx1684, _yt1070, _mc3422, _gn1040, _kw915, _pj460, _dq433, null, null, null, null, null, null);
_qp2754 = _ks1885__qp2754;
_vr1869 = _ks1885__vr1869;
_cf2651 = _ks1885__cf2651;
_fe2609 = _ks1885__fe2609;
_cx2927 = _ks1885__cx2927;
_be2892 = _ks1885__be2892;
_sh669 = _ks1885__sh669;
_qr1958 = _ks1885__qr1958;
_tm1495 = _ks1885__tm1495;
_ku1951 = _ks1885__ku1951;
_xr1260 = _ks1885__xr1260;
_xy3140 = _ks1885__xy3140;
_pm2931 = _ks1885__pm2931;
_tr2041 = _ks1885__tr2041;
_pc2535 = _ks1885__pc2535;
_fc1169 = _ks1885__fc1169;
_ww2987 = _ks1885__ww2987;
_mo2619 = _ks1885__mo2619;
_qf558 = _ks1885__qf558;
_qw2909 = _ks1885__qw2909;
_ln167 = _ks1885__ln167;
_ev184 = _ks1885__ev184;
_yd579 = _ks1885__yd579;
_eh1667 = _ks1885__eh1667;
_tq1359 = _ks1885__tq1359;
_rq480 = _ks1885__rq480;
_lx1936 = _ks1885__lx1936;
_ty1835 = _ks1885__ty1835;
_tr3191 = _ks1885__tr3191;
_hk989 = _ks1885__hk989;
_ei993 = _ks1885__ei993;
_ga562 = _ks1885__ga562;
_ra3021 = _ks1885__ra3021;
_dt321 = _ks1885__dt321;
_qv1945 = new Array(_qp2754, _vr1869, _cf2651, _fe2609, _cx2927, _be2892, _sh669, _qr1958, _tm1495, _ku1951, _xr1260, _xy3140, _pm2931, _tr2041, _pc2535, _fc1169, _ww2987, _mo2619, _qf558, _qw2909, _ln167, _ev184, _yd579, _eh1667, _tq1359, _rq480, _lx1936, _ty1835, _tr3191, _hk989, _ei993, _ga562, _ra3021, _dt321, null, null, null, null, null, null);
_ft1539 = _ks1885__ft1539;
_ya3373 = _ks1885__ya3373;
_kh3224 = _ks1885__kh3224;
_ur494 = _ks1885__ur494;
_nl1717 = _ks1885__nl1717;
_cr2219 = _ks1885__cr2219;
_he830 = _ks1885__he830;
_uv2540 = _ks1885__uv2540;
_gg561 = _ks1885__gg561;
_eq394 = _ks1885__eq394;
_sl2525 = _ks1885__sl2525;
_ss2269 = _ks1885__ss2269;
_md1004 = _ks1885__md1004;
_uk331 = _ks1885__uk331;
_yl1410 = _ks1885__yl1410;
_gf1118 = _ks1885__gf1118;
_gu2020 = _ks1885__gu2020;
_gx2826 = _ks1885__gx2826;
_nm753 = _ks1885__nm753;
_uq1724 = _ks1885__uq1724;
_xq2150 = _ks1885__xq2150;
_uq2140 = _ks1885__uq2140;
_gd139 = _ks1885__gd139;
_tb377 = _ks1885__tb377;
_tb2857 = _ks1885__tb2857;
_sb2714 = _ks1885__sb2714;
_nr1552 = _ks1885__nr1552;
_ba1168 = _ks1885__ba1168;
_iq2332 = _ks1885__iq2332;
_eu3207 = _ks1885__eu3207;
_sf2913 = _ks1885__sf2913;
_lu2807 = _ks1885__lu2807;
_xy523 = _ks1885__xy523;
_kp2269 = _ks1885__kp2269;
_we589 = new Array(_ft1539, _ya3373, _kh3224, _ur494, _nl1717, _cr2219, _he830, _uv2540, _gg561, _eq394, _sl2525, _ss2269, _md1004, _uk331, _yl1410, _gf1118, _gu2020, _gx2826, _nm753, _uq1724, _xq2150, _uq2140, _gd139, _tb377, _tb2857, _sb2714, _nr1552, _ba1168, _iq2332, _eu3207, _sf2913, _lu2807, _xy523, _kp2269, null, null, null, null, null, null);
_id475 = _ks1885__id475;
_dt1872 = _ks1885__dt1872;
_oa1288 = _ks1885__oa1288;
_rm1600 = _ks1885__rm1600;
_yf2503 = _ks1885__yf2503;
_vt464 = _ks1885__vt464;
_lh2023 = _ks1885__lh2023;
_ne2159 = _ks1885__ne2159;
_nw1340 = _ks1885__nw1340;
_ej3388 = _ks1885__ej3388;
_th1548 = _ks1885__th1548;
_yq2376 = _ks1885__yq2376;
_bx1259 = _ks1885__bx1259;
_rd2506 = _ks1885__rd2506;
_ri1892 = _ks1885__ri1892;
_al3510 = _ks1885__al3510;
_uo2336 = _ks1885__uo2336;
_ek3250 = _ks1885__ek3250;
_xb1381 = _ks1885__xb1381;
_of2642 = _ks1885__of2642;
_rw2604 = _ks1885__rw2604;
_pp3227 = _ks1885__pp3227;
_gj2054 = _ks1885__gj2054;
_ot844 = _ks1885__ot844;
_jt3324 = _ks1885__jt3324;
_ai3085 = _ks1885__ai3085;
_mk518 = _ks1885__mk518;
_jy133 = _ks1885__jy133;
_tc1619 = _ks1885__tc1619;
_gt1085 = _ks1885__gt1085;
_sn2640 = _ks1885__sn2640;
_pn3098 = _ks1885__pn3098;
_ea450 = _ks1885__ea450;
_fl2367 = _ks1885__fl2367;
_gp1919 = new Array(_id475, _dt1872, _oa1288, _rm1600, _yf2503, _vt464, _lh2023, _ne2159, _nw1340, _ej3388, _th1548, _yq2376, _bx1259, _rd2506, _ri1892, _al3510, _uo2336, _ek3250, _xb1381, _of2642, _rw2604, _pp3227, _gj2054, _ot844, _jt3324, _ai3085, _mk518, _jy133, _tc1619, _gt1085, _sn2640, _pn3098, _ea450, _fl2367, null, null, null, null, null, null);
_nc796 = _ks1885__nc796;
_wr1284 = _ks1885__wr1284;
_qu1007 = _ks1885__qu1007;
_wo1806 = _ks1885__wo1806;
_gw1510 = _ks1885__gw1510;
_is442 = _ks1885__is442;
_id2103 = _ks1885__id2103;
_rr2866 = _ks1885__rr2866;
_aj1138 = _ks1885__aj1138;
_lv2053 = _ks1885__lv2053;
_uc1035 = _ks1885__uc1035;
_kc3324 = _ks1885__kc3324;
_mf2529 = _ks1885__mf2529;
_wx3065 = _ks1885__wx3065;
_nq1585 = _ks1885__nq1585;
_cg3510 = _ks1885__cg3510;
_st2347 = _ks1885__st2347;
_bu2424 = _ks1885__bu2424;
_gy3401 = _ks1885__gy3401;
_be2259 = _ks1885__be2259;
_sh92 = _ks1885__sh92;
_do1677 = _ks1885__do1677;
_cn730 = _ks1885__cn730;
_wd2589 = _ks1885__wd2589;
_im1914 = _ks1885__im1914;
_ry3288 = _ks1885__ry3288;
_eq2525 = _ks1885__eq2525;
_ow3279 = _ks1885__ow3279;
_gt1280 = _ks1885__gt1280;
_nx320 = _ks1885__nx320;
_vi1965 = _ks1885__vi1965;
_kv362 = _ks1885__kv362;
_wy160 = _ks1885__wy160;
_hr2447 = _ks1885__hr2447;
_ao2154 = new Array(_nc796, _wr1284, _qu1007, _wo1806, _gw1510, _is442, _id2103, _rr2866, _aj1138, _lv2053, _uc1035, _kc3324, _mf2529, _wx3065, _nq1585, _cg3510, _st2347, _bu2424, _gy3401, _be2259, _sh92, _do1677, _cn730, _wd2589, _im1914, _ry3288, _eq2525, _ow3279, _gt1280, _nx320, _vi1965, _kv362, _wy160, _hr2447, null, null, null, null, null, null);
_pb938 = _ks1885__pb938;
_mq3349 = _ks1885__mq3349;
_lq190 = _ks1885__lq190;
_vo2423 = _ks1885__vo2423;
_xb1898 = _ks1885__xb1898;
_yl3281 = _ks1885__yl3281;
_om899 = _ks1885__om899;
_th1920 = _ks1885__th1920;
_yp683 = _ks1885__yp683;
_cm1312 = _ks1885__cm1312;
_fh2807 = _ks1885__fh2807;
_od3317 = _ks1885__od3317;
_fg2174 = _ks1885__fg2174;
_lb775 = _ks1885__lb775;
_hs2227 = _ks1885__hs2227;
_hc2547 = _ks1885__hc2547;
_lw2104 = _ks1885__lw2104;
_pn39 = _ks1885__pn39;
_ld1971 = _ks1885__ld1971;
_cf1768 = _ks1885__cf1768;
_la2125 = _ks1885__la2125;
_pe1463 = _ks1885__pe1463;
_ms2912 = _ks1885__ms2912;
_bq160 = _ks1885__bq160;
_ih1056 = _ks1885__ih1056;
_kb736 = _ks1885__kb736;
_rd3461 = _ks1885__rd3461;
_me1753 = _ks1885__me1753;
_es3159 = _ks1885__es3159;
_eo2206 = _ks1885__eo2206;
_su1822 = _ks1885__su1822;
_wt1340 = _ks1885__wt1340;
_nq2913 = _ks1885__nq2913;
_ta3183 = _ks1885__ta3183;
_dx1766 = _ks1885__dx1766;
_lk1607 = _ks1885__lk1607;
_rj117 = _ks1885__rj117;
_ss2472 = _ks1885__ss2472;
super();
_oj3099 = this;
_yi1856 = new _pb938();
_kd525 = new _lq190();
_gk1963 = new _vo2423();
_jk350 = new _xb1898();
_au2482 = new _yl3281();
_na1609 = new _om899();
_mj467 = new _th1920();
_gk2515 = new _yp683();
_hd806 = new _cm1312();
_sv1361 = new _fh2807();
_sa790 = new _od3317();
_ec2701 = new _fg2174();
_cy1089 = new _lb775();
_vv3327 = new _hs2227();
_ir1131 = new _hc2547();
_go492 = new _lw2104();
_ao530 = new _pn39();
_lv1780 = new _ld1971();
_ex2537 = new _cf1768();
_uw708 = new _la2125();
_vw94 = new _pe1463();
_gw600 = new _ms2912();
_am3512 = new _bq160();
_rg2414 = new _ih1056();
_wm3204 = new _kb736();
_lg2397 = new _rd3461();
_uv3357 = new _me1753();
_jy1577 = new _es3159();
_ps233 = new _eo2206();
_jv3175 = new _su1822();
_ci2279 = new _wt1340();
_gb1506 = new _nq2913();
_xf2390 = new _ta3183();
_ky3293 = new Array();
_ky3293.push(new _dx1766());
_ky3293.push(new _lk1607());
_ky3293.push(new _rj117());
_ky3293.push(new _ss2472());
_uh1288();
_kp2047();
_qt511();
}
public function _rx671(_arg1:int, _arg2:int=0):BitmapData{
if ((((_arg1 >= _mn283.length)) || (!(_arg1)))){
return (null);
};
if (_arg2 > (_im873 - 1)){
_arg2 = (_im873 - 1);
} else {
if (_arg2 < 0){
_arg2 = 0;
};
};
return (_ro2464[(_arg1 + (_arg2 * _mn283.length))]);
}
public function _nb1242(_arg1:int):BitmapData{
return (null);
}
public function _gp2469(_arg1:int):Sound{
if (_arg1 > _ec2338.length){
return (null);
};
return (_ec2338[_arg1]);
}
public function _xn2161(_arg1:int, _arg2:int=0):Sprite{
if ((((_arg1 >= _ej1246.length)) || (!(_arg1)))){
return (null);
};
var _local3:Sprite = new Sprite();
_uh2803(_local3, _arg1, _arg2);
return (_local3);
}
private function _ld1100(_arg1:BitmapData):BitmapData{
var _local2:Number = 1;
var _local3:Number = 0.5;
var _local4:Number = 0.5;
var _local5:Array = [_local2, 0, 0, 0, 0, 0, _local3, 0, 0, 0, 0, 0, _local4, 0, 0, 0, 0, 0, 1, 0];
var _local6:ColorMatrixFilter = new ColorMatrixFilter(_local5);
var _local7:BitmapData = new BitmapData(_arg1.width, _arg1.height, _arg1.transparent);
_local7.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local6);
return (_local7);
}
private function _og726(_arg1:BitmapData):BitmapData{
var _local2:BitmapData = new BitmapData(_arg1.width, _arg1.height, _arg1.transparent);
var _local3:Rectangle = new Rectangle(0, 0, 1, _arg1.height);
var _local4:Point = new Point(0, 0);
var _local5:int;
while (_local5 < _arg1.width) {
_local3.x = _local5;
_local4.x = ((_arg1.width - _local5) - 1);
_local2.copyPixels(_arg1, _local3, _local4);
_local5++;
};
return (_local2);
}
private function _qt511():void{
var _local2:Bitmap;
_ku11 = new Array();
_kd3456 = new Array();
var _local1:int;
_local1 = 0;
while (_local1 < _pa1766.length) {
if (_pa1766[_local1]){
_local2 = new (_pa1766[_local1]);
_ku11.push(_local2.bitmapData);
} else {
_ku11.push(null);
};
_local1++;
};
}
private function _uh1288():void{
_ig836 = new Array();
_ro2464 = new Array();
_su1232 = new Array();
var _local1:Bitmap;
var _local2:BitmapData;
var _local3:Number = 0;
var _local4:int;
while (_local4 < _ej1246.length) {
if (_ej1246[_local4]){
_local1 = new (_ej1246[_local4]);
_ig836.push(_local1.bitmapData);
} else {
_ig836.push(null);
};
_local4++;
};
_local4 = 0;
while (_local4 < _mn283.length) {
if (_mn283[_local4]){
_local1 = new (_mn283[_local4]);
_ro2464.push(_local1.bitmapData);
} else {
_ro2464.push(null);
};
_local4++;
};
var _local5:Array = new Array();
_ox3167(_he3298, _local5);
_ox3167(_oh2868, _local5);
_ox3167(_cl1183, _local5);
_ox3167(_we589, _local5);
_ox3167(_gp1919, _local5);
_ox3167(_we589, _local5);
_ox3167(_is1284, _local5);
_ox3167(_qv1945, _local5);
_ox3167(_ao2154, _local5);
_local4 = 0;
while (_local4 < _local5.length) {
if ((((_local4 >= (_xt2304 * _io2113))) && ((_local4 < (_xt2304 * (_io2113 + 1)))))){
if (_local5[_local4]){
_su1232.push(_ld1100(_su1232[(_local4 - (_xt2304 * 2))]));
} else {
_su1232.push(null);
};
} else {
if (_local5[_local4]){
_local1 = new (_local5[_local4]);
_su1232.push(_local1.bitmapData);
} else {
_su1232.push(null);
};
};
_local4++;
};
var _local6 = 1;
while (_local6 < _im873) {
_local4 = 0;
while (_local4 < _ej1246.length) {
if (_ej1246[_local4]){
_local2 = _ig836[_local4];
if (!_wp424(_local4)){
_local3 = (1 - ((_local6 / _im873) * _yw382));
_ig836.push(_ii1521(_local2, _local3));
} else {
_ig836.push(_local2);
};
} else {
_ig836.push(null);
};
_local4++;
};
_local6++;
};
_local6 = 1;
while (_local6 < _im873) {
_local4 = 0;
while (_local4 < _mn283.length) {
if (_ro2464[_local4]){
_local2 = _ro2464[_local4];
if ((((_local6 == (_im873 - 1))) && (!(_rb319(_local4))))){
_local3 = (1 - ((_local6 / _im873) * _yw382));
_ro2464.push(_ii1521(_local2, _local3));
} else {
_ro2464.push(_local2);
};
} else {
_ro2464.push(null);
};
_local4++;
};
_local6++;
};
_local6 = 1;
while (_local6 < _im873) {
_local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4]){
_local2 = _su1232[_local4];
if (_local6 == (_im873 - 1)){
_local3 = (1 - ((_local6 / _im873) * _yw382));
_su1232.push(_ii1521(_local2, _local3));
} else {
_su1232.push(_local2);
};
} else {
_su1232.push(null);
};
_local4++;
};
_local6++;
};
}
public function _yy1620(_arg1:int):BitmapData{
if ((((_arg1 >= _ej1246.length)) || (!(_arg1)))){
return (null);
};
return (_ig836[_arg1]);
}
public function _jv694(_arg1:int, _arg2:int=1, _arg3:int=0, _arg4:int=0):BitmapData{
if (_arg4 > (_im873 - 1)){
_arg4 = (_im873 - 1);
} else {
if (_arg4 < 0){
_arg4 = 0;
};
};
var _local5:int = (((((_arg4 * _ix1981) * _xt2304) + (_arg1 * _xt2304)) + (_arg3 * _mx181)) + _arg2);
return (_su1232[_local5]);
}
public function _uh2803(_arg1:Sprite, _arg2:int, _arg3:int=0):void{
if ((((_arg2 >= _ej1246.length)) || (!(_arg2)))){
return;
};
if (_arg3 > (_im873 - 1)){
_arg3 = (_im873 - 1);
} else {
if (_arg3 < 0){
_arg3 = 0;
};
};
var _local4:BitmapData = _ig836[(_arg2 + (_arg3 * _ej1246.length))];
_arg1.graphics.clear();
_arg1.graphics.beginBitmapFill(_local4);
_arg1.graphics.drawRect(0, 0, _local4.width, _local4.height);
_arg1.graphics.endFill();
}
private function _xm51(_arg1:BitmapData, _arg2:BitmapData):BitmapData{
var _local3:BitmapData = new BitmapData(_arg1.width, _arg1.height, _arg1.transparent);
var _local4:Rectangle = new Rectangle(0, 0, _arg1.width, _arg1.height);
var _local5:Point = new Point(0, 0);
_local3.copyPixels(_arg1, _local4, _local5);
_local3.copyPixels(_arg2, _local4, _local5, null, null, true);
return (_local3);
}
private function _kp2047():void{
var _local2:Sound;
_ec2338 = new Array();
var _local1:int;
while (_local1 < _bc3070.length) {
_local2 = new (_bc3070[_local1]);
_ec2338.push(_local2);
_local1++;
};
}
private function _ii1521(_arg1:BitmapData, _arg2:Number):BitmapData{
var _local3:Number = _arg2;
var _local4:Number = _arg2;
var _local5:Number = _arg2;
var _local6:Array = [_local3, 0, 0, 0, 0, 0, _local4, 0, 0, 0, 0, 0, _local5, 0, 0, 0, 0, 0, 1, 0];
var _local7:ColorMatrixFilter = new ColorMatrixFilter(_local6);
var _local8:BitmapData = new BitmapData(_arg1.width, _arg1.height, _arg1.transparent);
_local8.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local7);
return (_local8);
}
public function _py1430(_arg1:int):BitmapData{
if (_arg1 >= _ku11.length){
return (null);
};
return (_ku11[_arg1]);
}
private function _ng1461(_arg1:BitmapData):BitmapData{
var _local2:Number = 0.85;
var _local3:Number = 0.7;
var _local4:Number = 1;
var _local5:Array = [_local2, 0, 0, 0, 0, 0, _local3, 0, 0, 0, 0, 0, _local4, 0, 0, 0, 0, 0, 1, 0];
var _local6:ColorMatrixFilter = new ColorMatrixFilter(_local5);
var _local7:BitmapData = new BitmapData(_arg1.width, _arg1.height, _arg1.transparent);
_local7.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local6);
return (_local7);
}
public function _ny1070(_arg1:int):BitmapData{
if (_arg1 >= _kd3456.length){
return (null);
};
return (_kd3456[_arg1]);
}
public function _ov184(_arg1:int):BitmapData{
return (null);
}
public function _fv3121():Bitmap{
return (new _mq3349());
}
private static function _ox3167(_arg1:Array, _arg2:Array):void{
var _local3:int;
while (_local3 < _arg1.length) {
_arg2.push(_arg1[_local3]);
_local3++;
};
}
public static function _rb319(_arg1:int):Boolean{
return ((((((((((((((((_arg1 == _ec1704)) || ((_arg1 == _ke2468)))) || ((_arg1 == _sv3227)))) || ((_arg1 == _is2683)))) || ((_arg1 == _yy2188)))) || ((_arg1 == _hp2602)))) || ((_arg1 == _gd1112)))) || ((_arg1 == _kr141))));
}
public static function _bf2168(_arg1:int):Boolean{
return (((!((((_arg1 >= _vt3154)) && ((_arg1 <= _is1465))))) && (!((((_arg1 >= _qq2047)) && ((_arg1 <= _rs2632)))))));
}
public static function _nd1190(_arg1:Boolean=true, _arg2:Boolean=false):TextField{
var _local4:TextFormat;
var _local3:TextField = new TextField();
_local3.textColor = (_arg1) ? _ga2361 : _he2727;
_local3.wordWrap = false;
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.selectable = false;
if (_arg2){
_local4 = _local3.getTextFormat();
_local4.font = "Arial";
_local3.setTextFormat(_local4);
};
return (_local3);
}
public static function _sg2241(_arg1:int):Boolean{
return ((((_arg1 >= _jh3253)) && ((_arg1 <= _vt147))));
}
public static function _wp424(_arg1:int):Boolean{
return ((((_arg1 >= _vt3154)) && ((_arg1 <= _is1465))));
}
public static function _xp2638(_arg1:String, _arg2:Boolean=true):TextField{
var _local3:TextField = new TextField();
_local3.textColor = (_arg2) ? 0xFFFFFF : 6898731;
_local3.wordWrap = false;
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.selectable = false;
_local3.text = (_arg1) ? _arg1 : "";
_local3.multiline = false;
var _local4:TextFormat = _local3.getTextFormat();
_local4.size = 14;
_local4.bold = true;
_local4.italic = false;
_local3.setTextFormat(_local4);
return (_local3);
}
}
}//package ambiera
Section 48
//_ks1885__ac1045 (ambiera._ks1885__ac1045)
package ambiera {
import mx.core.*;
public class _ks1885__ac1045 extends BitmapAsset {
}
}//package ambiera
Section 49
//_ks1885__ac2647 (ambiera._ks1885__ac2647)
package ambiera {
import mx.core.*;
public class _ks1885__ac2647 extends BitmapAsset {
}
}//package ambiera
Section 50
//_ks1885__ae2783 (ambiera._ks1885__ae2783)
package ambiera {
import mx.core.*;
public class _ks1885__ae2783 extends SoundAsset {
}
}//package ambiera
Section 51
//_ks1885__af2848 (ambiera._ks1885__af2848)
package ambiera {
import mx.core.*;
public class _ks1885__af2848 extends SoundAsset {
}
}//package ambiera
Section 52
//_ks1885__ai3085 (ambiera._ks1885__ai3085)
package ambiera {
import mx.core.*;
public class _ks1885__ai3085 extends BitmapAsset {
}
}//package ambiera
Section 53
//_ks1885__ai708 (ambiera._ks1885__ai708)
package ambiera {
import mx.core.*;
public class _ks1885__ai708 extends BitmapAsset {
}
}//package ambiera
Section 54
//_ks1885__aj1138 (ambiera._ks1885__aj1138)
package ambiera {
import mx.core.*;
public class _ks1885__aj1138 extends BitmapAsset {
}
}//package ambiera
Section 55
//_ks1885__al3510 (ambiera._ks1885__al3510)
package ambiera {
import mx.core.*;
public class _ks1885__al3510 extends BitmapAsset {
}
}//package ambiera
Section 56
//_ks1885__an2956 (ambiera._ks1885__an2956)
package ambiera {
import mx.core.*;
public class _ks1885__an2956 extends BitmapAsset {
}
}//package ambiera
Section 57
//_ks1885__ao1999 (ambiera._ks1885__ao1999)
package ambiera {
import mx.core.*;
public class _ks1885__ao1999 extends BitmapAsset {
}
}//package ambiera
Section 58
//_ks1885__ao2184 (ambiera._ks1885__ao2184)
package ambiera {
import mx.core.*;
public class _ks1885__ao2184 extends BitmapAsset {
}
}//package ambiera
Section 59
//_ks1885__au2700 (ambiera._ks1885__au2700)
package ambiera {
import mx.core.*;
public class _ks1885__au2700 extends BitmapAsset {
}
}//package ambiera
Section 60
//_ks1885__aw2215 (ambiera._ks1885__aw2215)
package ambiera {
import mx.core.*;
public class _ks1885__aw2215 extends BitmapAsset {
}
}//package ambiera
Section 61
//_ks1885__ba1168 (ambiera._ks1885__ba1168)
package ambiera {
import mx.core.*;
public class _ks1885__ba1168 extends BitmapAsset {
}
}//package ambiera
Section 62
//_ks1885__bc1553 (ambiera._ks1885__bc1553)
package ambiera {
import mx.core.*;
public class _ks1885__bc1553 extends BitmapAsset {
}
}//package ambiera
Section 63
//_ks1885__bc305 (ambiera._ks1885__bc305)
package ambiera {
import mx.core.*;
public class _ks1885__bc305 extends BitmapAsset {
}
}//package ambiera
Section 64
//_ks1885__be1253 (ambiera._ks1885__be1253)
package ambiera {
import mx.core.*;
public class _ks1885__be1253 extends BitmapAsset {
}
}//package ambiera
Section 65
//_ks1885__be1904 (ambiera._ks1885__be1904)
package ambiera {
import mx.core.*;
public class _ks1885__be1904 extends BitmapAsset {
}
}//package ambiera
Section 66
//_ks1885__be2259 (ambiera._ks1885__be2259)
package ambiera {
import mx.core.*;
public class _ks1885__be2259 extends BitmapAsset {
}
}//package ambiera
Section 67
//_ks1885__be2892 (ambiera._ks1885__be2892)
package ambiera {
import mx.core.*;
public class _ks1885__be2892 extends BitmapAsset {
}
}//package ambiera
Section 68
//_ks1885__bl1753 (ambiera._ks1885__bl1753)
package ambiera {
import mx.core.*;
public class _ks1885__bl1753 extends SoundAsset {
}
}//package ambiera
Section 69
//_ks1885__bm1926 (ambiera._ks1885__bm1926)
package ambiera {
import mx.core.*;
public class _ks1885__bm1926 extends BitmapAsset {
}
}//package ambiera
Section 70
//_ks1885__bo1103 (ambiera._ks1885__bo1103)
package ambiera {
import mx.core.*;
public class _ks1885__bo1103 extends BitmapAsset {
}
}//package ambiera
Section 71
//_ks1885__bq160 (ambiera._ks1885__bq160)
package ambiera {
import mx.core.*;
public class _ks1885__bq160 extends BitmapAsset {
}
}//package ambiera
Section 72
//_ks1885__br2169 (ambiera._ks1885__br2169)
package ambiera {
import mx.core.*;
public class _ks1885__br2169 extends BitmapAsset {
}
}//package ambiera
Section 73
//_ks1885__bu2424 (ambiera._ks1885__bu2424)
package ambiera {
import mx.core.*;
public class _ks1885__bu2424 extends BitmapAsset {
}
}//package ambiera
Section 74
//_ks1885__bv2915 (ambiera._ks1885__bv2915)
package ambiera {
import mx.core.*;
public class _ks1885__bv2915 extends BitmapAsset {
}
}//package ambiera
Section 75
//_ks1885__bx1259 (ambiera._ks1885__bx1259)
package ambiera {
import mx.core.*;
public class _ks1885__bx1259 extends BitmapAsset {
}
}//package ambiera
Section 76
//_ks1885__bx1684 (ambiera._ks1885__bx1684)
package ambiera {
import mx.core.*;
public class _ks1885__bx1684 extends BitmapAsset {
}
}//package ambiera
Section 77
//_ks1885__by705 (ambiera._ks1885__by705)
package ambiera {
import mx.core.*;
public class _ks1885__by705 extends BitmapAsset {
}
}//package ambiera
Section 78
//_ks1885__cc2789 (ambiera._ks1885__cc2789)
package ambiera {
import mx.core.*;
public class _ks1885__cc2789 extends BitmapAsset {
}
}//package ambiera
Section 79
//_ks1885__cf1768 (ambiera._ks1885__cf1768)
package ambiera {
import mx.core.*;
public class _ks1885__cf1768 extends BitmapAsset {
}
}//package ambiera
Section 80
//_ks1885__cf2651 (ambiera._ks1885__cf2651)
package ambiera {
import mx.core.*;
public class _ks1885__cf2651 extends BitmapAsset {
}
}//package ambiera
Section 81
//_ks1885__cg3510 (ambiera._ks1885__cg3510)
package ambiera {
import mx.core.*;
public class _ks1885__cg3510 extends BitmapAsset {
}
}//package ambiera
Section 82
//_ks1885__ch3415 (ambiera._ks1885__ch3415)
package ambiera {
import mx.core.*;
public class _ks1885__ch3415 extends BitmapAsset {
}
}//package ambiera
Section 83
//_ks1885__cj1399 (ambiera._ks1885__cj1399)
package ambiera {
import mx.core.*;
public class _ks1885__cj1399 extends BitmapAsset {
}
}//package ambiera
Section 84
//_ks1885__cj2968 (ambiera._ks1885__cj2968)
package ambiera {
import mx.core.*;
public class _ks1885__cj2968 extends BitmapAsset {
}
}//package ambiera
Section 85
//_ks1885__cl889 (ambiera._ks1885__cl889)
package ambiera {
import mx.core.*;
public class _ks1885__cl889 extends BitmapAsset {
}
}//package ambiera
Section 86
//_ks1885__cm1312 (ambiera._ks1885__cm1312)
package ambiera {
import mx.core.*;
public class _ks1885__cm1312 extends BitmapAsset {
}
}//package ambiera
Section 87
//_ks1885__cn730 (ambiera._ks1885__cn730)
package ambiera {
import mx.core.*;
public class _ks1885__cn730 extends BitmapAsset {
}
}//package ambiera
Section 88
//_ks1885__cr2219 (ambiera._ks1885__cr2219)
package ambiera {
import mx.core.*;
public class _ks1885__cr2219 extends BitmapAsset {
}
}//package ambiera
Section 89
//_ks1885__ct1716 (ambiera._ks1885__ct1716)
package ambiera {
import mx.core.*;
public class _ks1885__ct1716 extends BitmapAsset {
}
}//package ambiera
Section 90
//_ks1885__cx1218 (ambiera._ks1885__cx1218)
package ambiera {
import mx.core.*;
public class _ks1885__cx1218 extends BitmapAsset {
}
}//package ambiera
Section 91
//_ks1885__cx2927 (ambiera._ks1885__cx2927)
package ambiera {
import mx.core.*;
public class _ks1885__cx2927 extends BitmapAsset {
}
}//package ambiera
Section 92
//_ks1885__cx346 (ambiera._ks1885__cx346)
package ambiera {
import mx.core.*;
public class _ks1885__cx346 extends BitmapAsset {
}
}//package ambiera
Section 93
//_ks1885__cy3160 (ambiera._ks1885__cy3160)
package ambiera {
import mx.core.*;
public class _ks1885__cy3160 extends SoundAsset {
}
}//package ambiera
Section 94
//_ks1885__dh2595 (ambiera._ks1885__dh2595)
package ambiera {
import mx.core.*;
public class _ks1885__dh2595 extends BitmapAsset {
}
}//package ambiera
Section 95
//_ks1885__dk1661 (ambiera._ks1885__dk1661)
package ambiera {
import mx.core.*;
public class _ks1885__dk1661 extends BitmapAsset {
}
}//package ambiera
Section 96
//_ks1885__dl631 (ambiera._ks1885__dl631)
package ambiera {
import mx.core.*;
public class _ks1885__dl631 extends BitmapAsset {
}
}//package ambiera
Section 97
//_ks1885__dm264 (ambiera._ks1885__dm264)
package ambiera {
import mx.core.*;
public class _ks1885__dm264 extends BitmapAsset {
}
}//package ambiera
Section 98
//_ks1885__do1254 (ambiera._ks1885__do1254)
package ambiera {
import mx.core.*;
public class _ks1885__do1254 extends BitmapAsset {
}
}//package ambiera
Section 99
//_ks1885__do1677 (ambiera._ks1885__do1677)
package ambiera {
import mx.core.*;
public class _ks1885__do1677 extends BitmapAsset {
}
}//package ambiera
Section 100
//_ks1885__dq3482 (ambiera._ks1885__dq3482)
package ambiera {
import mx.core.*;
public class _ks1885__dq3482 extends BitmapAsset {
}
}//package ambiera
Section 101
//_ks1885__dq433 (ambiera._ks1885__dq433)
package ambiera {
import mx.core.*;
public class _ks1885__dq433 extends BitmapAsset {
}
}//package ambiera
Section 102
//_ks1885__dt1872 (ambiera._ks1885__dt1872)
package ambiera {
import mx.core.*;
public class _ks1885__dt1872 extends BitmapAsset {
}
}//package ambiera
Section 103
//_ks1885__dt321 (ambiera._ks1885__dt321)
package ambiera {
import mx.core.*;
public class _ks1885__dt321 extends BitmapAsset {
}
}//package ambiera
Section 104
//_ks1885__dv2122 (ambiera._ks1885__dv2122)
package ambiera {
import mx.core.*;
public class _ks1885__dv2122 extends BitmapAsset {
}
}//package ambiera
Section 105
//_ks1885__dw2140 (ambiera._ks1885__dw2140)
package ambiera {
import mx.core.*;
public class _ks1885__dw2140 extends BitmapAsset {
}
}//package ambiera
Section 106
//_ks1885__dx1766 (ambiera._ks1885__dx1766)
package ambiera {
import mx.core.*;
public class _ks1885__dx1766 extends BitmapAsset {
}
}//package ambiera
Section 107
//_ks1885__ea450 (ambiera._ks1885__ea450)
package ambiera {
import mx.core.*;
public class _ks1885__ea450 extends BitmapAsset {
}
}//package ambiera
Section 108
//_ks1885__eg2548 (ambiera._ks1885__eg2548)
package ambiera {
import mx.core.*;
public class _ks1885__eg2548 extends SoundAsset {
}
}//package ambiera
Section 109
//_ks1885__eh1667 (ambiera._ks1885__eh1667)
package ambiera {
import mx.core.*;
public class _ks1885__eh1667 extends BitmapAsset {
}
}//package ambiera
Section 110
//_ks1885__ei993 (ambiera._ks1885__ei993)
package ambiera {
import mx.core.*;
public class _ks1885__ei993 extends BitmapAsset {
}
}//package ambiera
Section 111
//_ks1885__ej3388 (ambiera._ks1885__ej3388)
package ambiera {
import mx.core.*;
public class _ks1885__ej3388 extends BitmapAsset {
}
}//package ambiera
Section 112
//_ks1885__ek3250 (ambiera._ks1885__ek3250)
package ambiera {
import mx.core.*;
public class _ks1885__ek3250 extends BitmapAsset {
}
}//package ambiera
Section 113
//_ks1885__eo2206 (ambiera._ks1885__eo2206)
package ambiera {
import mx.core.*;
public class _ks1885__eo2206 extends BitmapAsset {
}
}//package ambiera
Section 114
//_ks1885__eq2525 (ambiera._ks1885__eq2525)
package ambiera {
import mx.core.*;
public class _ks1885__eq2525 extends BitmapAsset {
}
}//package ambiera
Section 115
//_ks1885__eq394 (ambiera._ks1885__eq394)
package ambiera {
import mx.core.*;
public class _ks1885__eq394 extends BitmapAsset {
}
}//package ambiera
Section 116
//_ks1885__es3159 (ambiera._ks1885__es3159)
package ambiera {
import mx.core.*;
public class _ks1885__es3159 extends BitmapAsset {
}
}//package ambiera
Section 117
//_ks1885__eu3207 (ambiera._ks1885__eu3207)
package ambiera {
import mx.core.*;
public class _ks1885__eu3207 extends BitmapAsset {
}
}//package ambiera
Section 118
//_ks1885__ev184 (ambiera._ks1885__ev184)
package ambiera {
import mx.core.*;
public class _ks1885__ev184 extends BitmapAsset {
}
}//package ambiera
Section 119
//_ks1885__ew3240 (ambiera._ks1885__ew3240)
package ambiera {
import mx.core.*;
public class _ks1885__ew3240 extends BitmapAsset {
}
}//package ambiera
Section 120
//_ks1885__ev796 (ambiera._ks1885__ev796)
package ambiera {
import mx.core.*;
public class _ks1885__ev796 extends BitmapAsset {
}
}//package ambiera
Section 121
//_ks1885__ey3051 (ambiera._ks1885__ey3051)
package ambiera {
import mx.core.*;
public class _ks1885__ey3051 extends BitmapAsset {
}
}//package ambiera
Section 122
//_ks1885__fc1169 (ambiera._ks1885__fc1169)
package ambiera {
import mx.core.*;
public class _ks1885__fc1169 extends BitmapAsset {
}
}//package ambiera
Section 123
//_ks1885__fe1756 (ambiera._ks1885__fe1756)
package ambiera {
import mx.core.*;
public class _ks1885__fe1756 extends BitmapAsset {
}
}//package ambiera
Section 124
//_ks1885__fe2609 (ambiera._ks1885__fe2609)
package ambiera {
import mx.core.*;
public class _ks1885__fe2609 extends BitmapAsset {
}
}//package ambiera
Section 125
//_ks1885__ff1712 (ambiera._ks1885__ff1712)
package ambiera {
import mx.core.*;
public class _ks1885__ff1712 extends SoundAsset {
}
}//package ambiera
Section 126
//_ks1885__ff2464 (ambiera._ks1885__ff2464)
package ambiera {
import mx.core.*;
public class _ks1885__ff2464 extends SoundAsset {
}
}//package ambiera
Section 127
//_ks1885__ff611 (ambiera._ks1885__ff611)
package ambiera {
import mx.core.*;
public class _ks1885__ff611 extends BitmapAsset {
}
}//package ambiera
Section 128
//_ks1885__fg2174 (ambiera._ks1885__fg2174)
package ambiera {
import mx.core.*;
public class _ks1885__fg2174 extends BitmapAsset {
}
}//package ambiera
Section 129
//_ks1885__fh2807 (ambiera._ks1885__fh2807)
package ambiera {
import mx.core.*;
public class _ks1885__fh2807 extends BitmapAsset {
}
}//package ambiera
Section 130
//_ks1885__fl2367 (ambiera._ks1885__fl2367)
package ambiera {
import mx.core.*;
public class _ks1885__fl2367 extends BitmapAsset {
}
}//package ambiera
Section 131
//_ks1885__fl2489 (ambiera._ks1885__fl2489)
package ambiera {
import mx.core.*;
public class _ks1885__fl2489 extends BitmapAsset {
}
}//package ambiera
Section 132
//_ks1885__fp2792 (ambiera._ks1885__fp2792)
package ambiera {
import mx.core.*;
public class _ks1885__fp2792 extends SoundAsset {
}
}//package ambiera
Section 133
//_ks1885__ft1539 (ambiera._ks1885__ft1539)
package ambiera {
import mx.core.*;
public class _ks1885__ft1539 extends BitmapAsset {
}
}//package ambiera
Section 134
//_ks1885__ft679 (ambiera._ks1885__ft679)
package ambiera {
import mx.core.*;
public class _ks1885__ft679 extends BitmapAsset {
}
}//package ambiera
Section 135
//_ks1885__fu1955 (ambiera._ks1885__fu1955)
package ambiera {
import mx.core.*;
public class _ks1885__fu1955 extends BitmapAsset {
}
}//package ambiera
Section 136
//_ks1885__fu2556 (ambiera._ks1885__fu2556)
package ambiera {
import mx.core.*;
public class _ks1885__fu2556 extends BitmapAsset {
}
}//package ambiera
Section 137
//_ks1885__fx2668 (ambiera._ks1885__fx2668)
package ambiera {
import mx.core.*;
public class _ks1885__fx2668 extends BitmapAsset {
}
}//package ambiera
Section 138
//_ks1885__fy2684 (ambiera._ks1885__fy2684)
package ambiera {
import mx.core.*;
public class _ks1885__fy2684 extends BitmapAsset {
}
}//package ambiera
Section 139
//_ks1885__ga2774 (ambiera._ks1885__ga2774)
package ambiera {
import mx.core.*;
public class _ks1885__ga2774 extends BitmapAsset {
}
}//package ambiera
Section 140
//_ks1885__ga562 (ambiera._ks1885__ga562)
package ambiera {
import mx.core.*;
public class _ks1885__ga562 extends BitmapAsset {
}
}//package ambiera
Section 141
//_ks1885__gd139 (ambiera._ks1885__gd139)
package ambiera {
import mx.core.*;
public class _ks1885__gd139 extends BitmapAsset {
}
}//package ambiera
Section 142
//_ks1885__gf1118 (ambiera._ks1885__gf1118)
package ambiera {
import mx.core.*;
public class _ks1885__gf1118 extends BitmapAsset {
}
}//package ambiera
Section 143
//_ks1885__gg2352 (ambiera._ks1885__gg2352)
package ambiera {
import mx.core.*;
public class _ks1885__gg2352 extends BitmapAsset {
}
}//package ambiera
Section 144
//_ks1885__gg561 (ambiera._ks1885__gg561)
package ambiera {
import mx.core.*;
public class _ks1885__gg561 extends BitmapAsset {
}
}//package ambiera
Section 145
//_ks1885__gh762 (ambiera._ks1885__gh762)
package ambiera {
import mx.core.*;
public class _ks1885__gh762 extends BitmapAsset {
}
}//package ambiera
Section 146
//_ks1885__gj2054 (ambiera._ks1885__gj2054)
package ambiera {
import mx.core.*;
public class _ks1885__gj2054 extends BitmapAsset {
}
}//package ambiera
Section 147
//_ks1885__gn1040 (ambiera._ks1885__gn1040)
package ambiera {
import mx.core.*;
public class _ks1885__gn1040 extends BitmapAsset {
}
}//package ambiera
Section 148
//_ks1885__gn812 (ambiera._ks1885__gn812)
package ambiera {
import mx.core.*;
public class _ks1885__gn812 extends BitmapAsset {
}
}//package ambiera
Section 149
//_ks1885__go867 (ambiera._ks1885__go867)
package ambiera {
import mx.core.*;
public class _ks1885__go867 extends SoundAsset {
}
}//package ambiera
Section 150
//_ks1885__gq1202 (ambiera._ks1885__gq1202)
package ambiera {
import mx.core.*;
public class _ks1885__gq1202 extends BitmapAsset {
}
}//package ambiera
Section 151
//_ks1885__gr1645 (ambiera._ks1885__gr1645)
package ambiera {
import mx.core.*;
public class _ks1885__gr1645 extends BitmapAsset {
}
}//package ambiera
Section 152
//_ks1885__gs1592 (ambiera._ks1885__gs1592)
package ambiera {
import mx.core.*;
public class _ks1885__gs1592 extends BitmapAsset {
}
}//package ambiera
Section 153
//_ks1885__gt1085 (ambiera._ks1885__gt1085)
package ambiera {
import mx.core.*;
public class _ks1885__gt1085 extends BitmapAsset {
}
}//package ambiera
Section 154
//_ks1885__gt1280 (ambiera._ks1885__gt1280)
package ambiera {
import mx.core.*;
public class _ks1885__gt1280 extends BitmapAsset {
}
}//package ambiera
Section 155
//_ks1885__gt1359 (ambiera._ks1885__gt1359)
package ambiera {
import mx.core.*;
public class _ks1885__gt1359 extends BitmapAsset {
}
}//package ambiera
Section 156
//_ks1885__gu2020 (ambiera._ks1885__gu2020)
package ambiera {
import mx.core.*;
public class _ks1885__gu2020 extends BitmapAsset {
}
}//package ambiera
Section 157
//_ks1885__gw1510 (ambiera._ks1885__gw1510)
package ambiera {
import mx.core.*;
public class _ks1885__gw1510 extends BitmapAsset {
}
}//package ambiera
Section 158
//_ks1885__gx2826 (ambiera._ks1885__gx2826)
package ambiera {
import mx.core.*;
public class _ks1885__gx2826 extends BitmapAsset {
}
}//package ambiera
Section 159
//_ks1885__gy3401 (ambiera._ks1885__gy3401)
package ambiera {
import mx.core.*;
public class _ks1885__gy3401 extends BitmapAsset {
}
}//package ambiera
Section 160
//_ks1885__hc2547 (ambiera._ks1885__hc2547)
package ambiera {
import mx.core.*;
public class _ks1885__hc2547 extends BitmapAsset {
}
}//package ambiera
Section 161
//_ks1885__he18 (ambiera._ks1885__he18)
package ambiera {
import mx.core.*;
public class _ks1885__he18 extends BitmapAsset {
}
}//package ambiera
Section 162
//_ks1885__he830 (ambiera._ks1885__he830)
package ambiera {
import mx.core.*;
public class _ks1885__he830 extends BitmapAsset {
}
}//package ambiera
Section 163
//_ks1885__hg2676 (ambiera._ks1885__hg2676)
package ambiera {
import mx.core.*;
public class _ks1885__hg2676 extends SoundAsset {
}
}//package ambiera
Section 164
//_ks1885__hh2601 (ambiera._ks1885__hh2601)
package ambiera {
import mx.core.*;
public class _ks1885__hh2601 extends BitmapAsset {
}
}//package ambiera
Section 165
//_ks1885__hk989 (ambiera._ks1885__hk989)
package ambiera {
import mx.core.*;
public class _ks1885__hk989 extends BitmapAsset {
}
}//package ambiera
Section 166
//_ks1885__hn1711 (ambiera._ks1885__hn1711)
package ambiera {
import mx.core.*;
public class _ks1885__hn1711 extends BitmapAsset {
}
}//package ambiera
Section 167
//_ks1885__hp1933 (ambiera._ks1885__hp1933)
package ambiera {
import mx.core.*;
public class _ks1885__hp1933 extends SoundAsset {
}
}//package ambiera
Section 168
//_ks1885__hr2447 (ambiera._ks1885__hr2447)
package ambiera {
import mx.core.*;
public class _ks1885__hr2447 extends BitmapAsset {
}
}//package ambiera
Section 169
//_ks1885__hs2227 (ambiera._ks1885__hs2227)
package ambiera {
import mx.core.*;
public class _ks1885__hs2227 extends BitmapAsset {
}
}//package ambiera
Section 170
//_ks1885__ht2580 (ambiera._ks1885__ht2580)
package ambiera {
import mx.core.*;
public class _ks1885__ht2580 extends BitmapAsset {
}
}//package ambiera
Section 171
//_ks1885__ia3334 (ambiera._ks1885__ia3334)
package ambiera {
import mx.core.*;
public class _ks1885__ia3334 extends BitmapAsset {
}
}//package ambiera
Section 172
//_ks1885__id1832 (ambiera._ks1885__id1832)
package ambiera {
import mx.core.*;
public class _ks1885__id1832 extends BitmapAsset {
}
}//package ambiera
Section 173
//_ks1885__id2103 (ambiera._ks1885__id2103)
package ambiera {
import mx.core.*;
public class _ks1885__id2103 extends BitmapAsset {
}
}//package ambiera
Section 174
//_ks1885__id475 (ambiera._ks1885__id475)
package ambiera {
import mx.core.*;
public class _ks1885__id475 extends BitmapAsset {
}
}//package ambiera
Section 175
//_ks1885__if3223 (ambiera._ks1885__if3223)
package ambiera {
import mx.core.*;
public class _ks1885__if3223 extends BitmapAsset {
}
}//package ambiera
Section 176
//_ks1885__ih1056 (ambiera._ks1885__ih1056)
package ambiera {
import mx.core.*;
public class _ks1885__ih1056 extends BitmapAsset {
}
}//package ambiera
Section 177
//_ks1885__il82 (ambiera._ks1885__il82)
package ambiera {
import mx.core.*;
public class _ks1885__il82 extends BitmapAsset {
}
}//package ambiera
Section 178
//_ks1885__im1914 (ambiera._ks1885__im1914)
package ambiera {
import mx.core.*;
public class _ks1885__im1914 extends BitmapAsset {
}
}//package ambiera
Section 179
//_ks1885__ip2741 (ambiera._ks1885__ip2741)
package ambiera {
import mx.core.*;
public class _ks1885__ip2741 extends SoundAsset {
}
}//package ambiera
Section 180
//_ks1885__iq2332 (ambiera._ks1885__iq2332)
package ambiera {
import mx.core.*;
public class _ks1885__iq2332 extends BitmapAsset {
}
}//package ambiera
Section 181
//_ks1885__is442 (ambiera._ks1885__is442)
package ambiera {
import mx.core.*;
public class _ks1885__is442 extends BitmapAsset {
}
}//package ambiera
Section 182
//_ks1885__is552 (ambiera._ks1885__is552)
package ambiera {
import mx.core.*;
public class _ks1885__is552 extends BitmapAsset {
}
}//package ambiera
Section 183
//_ks1885__iw1533 (ambiera._ks1885__iw1533)
package ambiera {
import mx.core.*;
public class _ks1885__iw1533 extends BitmapAsset {
}
}//package ambiera
Section 184
//_ks1885__je3429 (ambiera._ks1885__je3429)
package ambiera {
import mx.core.*;
public class _ks1885__je3429 extends BitmapAsset {
}
}//package ambiera
Section 185
//_ks1885__jf2668 (ambiera._ks1885__jf2668)
package ambiera {
import mx.core.*;
public class _ks1885__jf2668 extends BitmapAsset {
}
}//package ambiera
Section 186
//_ks1885__jk176 (ambiera._ks1885__jk176)
package ambiera {
import mx.core.*;
public class _ks1885__jk176 extends SoundAsset {
}
}//package ambiera
Section 187
//_ks1885__jl1227 (ambiera._ks1885__jl1227)
package ambiera {
import mx.core.*;
public class _ks1885__jl1227 extends BitmapAsset {
}
}//package ambiera
Section 188
//_ks1885__jm2444 (ambiera._ks1885__jm2444)
package ambiera {
import mx.core.*;
public class _ks1885__jm2444 extends SoundAsset {
}
}//package ambiera
Section 189
//_ks1885__jn1489 (ambiera._ks1885__jn1489)
package ambiera {
import mx.core.*;
public class _ks1885__jn1489 extends BitmapAsset {
}
}//package ambiera
Section 190
//_ks1885__jp1991 (ambiera._ks1885__jp1991)
package ambiera {
import mx.core.*;
public class _ks1885__jp1991 extends SoundAsset {
}
}//package ambiera
Section 191
//_ks1885__jq1482 (ambiera._ks1885__jq1482)
package ambiera {
import mx.core.*;
public class _ks1885__jq1482 extends BitmapAsset {
}
}//package ambiera
Section 192
//_ks1885__jq2432 (ambiera._ks1885__jq2432)
package ambiera {
import mx.core.*;
public class _ks1885__jq2432 extends BitmapAsset {
}
}//package ambiera
Section 193
//_ks1885__jt2651 (ambiera._ks1885__jt2651)
package ambiera {
import mx.core.*;
public class _ks1885__jt2651 extends BitmapAsset {
}
}//package ambiera
Section 194
//_ks1885__jt3324 (ambiera._ks1885__jt3324)
package ambiera {
import mx.core.*;
public class _ks1885__jt3324 extends BitmapAsset {
}
}//package ambiera
Section 195
//_ks1885__jw3308 (ambiera._ks1885__jw3308)
package ambiera {
import mx.core.*;
public class _ks1885__jw3308 extends BitmapAsset {
}
}//package ambiera
Section 196
//_ks1885__jx1137 (ambiera._ks1885__jx1137)
package ambiera {
import mx.core.*;
public class _ks1885__jx1137 extends BitmapAsset {
}
}//package ambiera
Section 197
//_ks1885__jy133 (ambiera._ks1885__jy133)
package ambiera {
import mx.core.*;
public class _ks1885__jy133 extends BitmapAsset {
}
}//package ambiera
Section 198
//_ks1885__kb736 (ambiera._ks1885__kb736)
package ambiera {
import mx.core.*;
public class _ks1885__kb736 extends BitmapAsset {
}
}//package ambiera
Section 199
//_ks1885__kc3324 (ambiera._ks1885__kc3324)
package ambiera {
import mx.core.*;
public class _ks1885__kc3324 extends BitmapAsset {
}
}//package ambiera
Section 200
//_ks1885__ke2374 (ambiera._ks1885__ke2374)
package ambiera {
import mx.core.*;
public class _ks1885__ke2374 extends SoundAsset {
}
}//package ambiera
Section 201
//_ks1885__ke241 (ambiera._ks1885__ke241)
package ambiera {
import mx.core.*;
public class _ks1885__ke241 extends SoundAsset {
}
}//package ambiera
Section 202
//_ks1885__kh3224 (ambiera._ks1885__kh3224)
package ambiera {
import mx.core.*;
public class _ks1885__kh3224 extends BitmapAsset {
}
}//package ambiera
Section 203
//_ks1885__kk2001 (ambiera._ks1885__kk2001)
package ambiera {
import mx.core.*;
public class _ks1885__kk2001 extends BitmapAsset {
}
}//package ambiera
Section 204
//_ks1885__kl28 (ambiera._ks1885__kl28)
package ambiera {
import mx.core.*;
public class _ks1885__kl28 extends BitmapAsset {
}
}//package ambiera
Section 205
//_ks1885__km882 (ambiera._ks1885__km882)
package ambiera {
import mx.core.*;
public class _ks1885__km882 extends BitmapAsset {
}
}//package ambiera
Section 206
//_ks1885__kp2043 (ambiera._ks1885__kp2043)
package ambiera {
import mx.core.*;
public class _ks1885__kp2043 extends BitmapAsset {
}
}//package ambiera
Section 207
//_ks1885__kp2269 (ambiera._ks1885__kp2269)
package ambiera {
import mx.core.*;
public class _ks1885__kp2269 extends BitmapAsset {
}
}//package ambiera
Section 208
//_ks1885__kp80 (ambiera._ks1885__kp80)
package ambiera {
import mx.core.*;
public class _ks1885__kp80 extends BitmapAsset {
}
}//package ambiera
Section 209
//_ks1885__ku1951 (ambiera._ks1885__ku1951)
package ambiera {
import mx.core.*;
public class _ks1885__ku1951 extends BitmapAsset {
}
}//package ambiera
Section 210
//_ks1885__ku2330 (ambiera._ks1885__ku2330)
package ambiera {
import mx.core.*;
public class _ks1885__ku2330 extends BitmapAsset {
}
}//package ambiera
Section 211
//_ks1885__kv362 (ambiera._ks1885__kv362)
package ambiera {
import mx.core.*;
public class _ks1885__kv362 extends BitmapAsset {
}
}//package ambiera
Section 212
//_ks1885__kv374 (ambiera._ks1885__kv374)
package ambiera {
import mx.core.*;
public class _ks1885__kv374 extends BitmapAsset {
}
}//package ambiera
Section 213
//_ks1885__kw915 (ambiera._ks1885__kw915)
package ambiera {
import mx.core.*;
public class _ks1885__kw915 extends BitmapAsset {
}
}//package ambiera
Section 214
//_ks1885__kx1643 (ambiera._ks1885__kx1643)
package ambiera {
import mx.core.*;
public class _ks1885__kx1643 extends BitmapAsset {
}
}//package ambiera
Section 215
//_ks1885__la2125 (ambiera._ks1885__la2125)
package ambiera {
import mx.core.*;
public class _ks1885__la2125 extends BitmapAsset {
}
}//package ambiera
Section 216
//_ks1885__la865 (ambiera._ks1885__la865)
package ambiera {
import mx.core.*;
public class _ks1885__la865 extends BitmapAsset {
}
}//package ambiera
Section 217
//_ks1885__lb422 (ambiera._ks1885__lb422)
package ambiera {
import mx.core.*;
public class _ks1885__lb422 extends BitmapAsset {
}
}//package ambiera
Section 218
//_ks1885__lb775 (ambiera._ks1885__lb775)
package ambiera {
import mx.core.*;
public class _ks1885__lb775 extends BitmapAsset {
}
}//package ambiera
Section 219
//_ks1885__ld1971 (ambiera._ks1885__ld1971)
package ambiera {
import mx.core.*;
public class _ks1885__ld1971 extends BitmapAsset {
}
}//package ambiera
Section 220
//_ks1885__lf1997 (ambiera._ks1885__lf1997)
package ambiera {
import mx.core.*;
public class _ks1885__lf1997 extends BitmapAsset {
}
}//package ambiera
Section 221
//_ks1885__lg681 (ambiera._ks1885__lg681)
package ambiera {
import mx.core.*;
public class _ks1885__lg681 extends BitmapAsset {
}
}//package ambiera
Section 222
//_ks1885__lh2023 (ambiera._ks1885__lh2023)
package ambiera {
import mx.core.*;
public class _ks1885__lh2023 extends BitmapAsset {
}
}//package ambiera
Section 223
//_ks1885__lk1607 (ambiera._ks1885__lk1607)
package ambiera {
import mx.core.*;
public class _ks1885__lk1607 extends BitmapAsset {
}
}//package ambiera
Section 224
//_ks1885__ln167 (ambiera._ks1885__ln167)
package ambiera {
import mx.core.*;
public class _ks1885__ln167 extends BitmapAsset {
}
}//package ambiera
Section 225
//_ks1885__ln1967 (ambiera._ks1885__ln1967)
package ambiera {
import mx.core.*;
public class _ks1885__ln1967 extends SoundAsset {
}
}//package ambiera
Section 226
//_ks1885__ln3474 (ambiera._ks1885__ln3474)
package ambiera {
import mx.core.*;
public class _ks1885__ln3474 extends SoundAsset {
}
}//package ambiera
Section 227
//_ks1885__lo2529 (ambiera._ks1885__lo2529)
package ambiera {
import mx.core.*;
public class _ks1885__lo2529 extends BitmapAsset {
}
}//package ambiera
Section 228
//_ks1885__lp2684 (ambiera._ks1885__lp2684)
package ambiera {
import mx.core.*;
public class _ks1885__lp2684 extends BitmapAsset {
}
}//package ambiera
Section 229
//_ks1885__lp474 (ambiera._ks1885__lp474)
package ambiera {
import mx.core.*;
public class _ks1885__lp474 extends BitmapAsset {
}
}//package ambiera
Section 230
//_ks1885__lq190 (ambiera._ks1885__lq190)
package ambiera {
import mx.core.*;
public class _ks1885__lq190 extends BitmapAsset {
}
}//package ambiera
Section 231
//_ks1885__lt2223 (ambiera._ks1885__lt2223)
package ambiera {
import mx.core.*;
public class _ks1885__lt2223 extends BitmapAsset {
}
}//package ambiera
Section 232
//_ks1885__lu2807 (ambiera._ks1885__lu2807)
package ambiera {
import mx.core.*;
public class _ks1885__lu2807 extends BitmapAsset {
}
}//package ambiera
Section 233
//_ks1885__lu3099 (ambiera._ks1885__lu3099)
package ambiera {
import mx.core.*;
public class _ks1885__lu3099 extends BitmapAsset {
}
}//package ambiera
Section 234
//_ks1885__lv1069 (ambiera._ks1885__lv1069)
package ambiera {
import mx.core.*;
public class _ks1885__lv1069 extends BitmapAsset {
}
}//package ambiera
Section 235
//_ks1885__lv2053 (ambiera._ks1885__lv2053)
package ambiera {
import mx.core.*;
public class _ks1885__lv2053 extends BitmapAsset {
}
}//package ambiera
Section 236
//_ks1885__lw2104 (ambiera._ks1885__lw2104)
package ambiera {
import mx.core.*;
public class _ks1885__lw2104 extends BitmapAsset {
}
}//package ambiera
Section 237
//_ks1885__lw217 (ambiera._ks1885__lw217)
package ambiera {
import mx.core.*;
public class _ks1885__lw217 extends BitmapAsset {
}
}//package ambiera
Section 238
//_ks1885__lx1936 (ambiera._ks1885__lx1936)
package ambiera {
import mx.core.*;
public class _ks1885__lx1936 extends BitmapAsset {
}
}//package ambiera
Section 239
//_ks1885__lx2552 (ambiera._ks1885__lx2552)
package ambiera {
import mx.core.*;
public class _ks1885__lx2552 extends BitmapAsset {
}
}//package ambiera
Section 240
//_ks1885__mb1795 (ambiera._ks1885__mb1795)
package ambiera {
import mx.core.*;
public class _ks1885__mb1795 extends BitmapAsset {
}
}//package ambiera
Section 241
//_ks1885__mc1398 (ambiera._ks1885__mc1398)
package ambiera {
import mx.core.*;
public class _ks1885__mc1398 extends BitmapAsset {
}
}//package ambiera
Section 242
//_ks1885__mc3422 (ambiera._ks1885__mc3422)
package ambiera {
import mx.core.*;
public class _ks1885__mc3422 extends BitmapAsset {
}
}//package ambiera
Section 243
//_ks1885__mc447 (ambiera._ks1885__mc447)
package ambiera {
import mx.core.*;
public class _ks1885__mc447 extends BitmapAsset {
}
}//package ambiera
Section 244
//_ks1885__md1004 (ambiera._ks1885__md1004)
package ambiera {
import mx.core.*;
public class _ks1885__md1004 extends BitmapAsset {
}
}//package ambiera
Section 245
//_ks1885__me1753 (ambiera._ks1885__me1753)
package ambiera {
import mx.core.*;
public class _ks1885__me1753 extends BitmapAsset {
}
}//package ambiera
Section 246
//_ks1885__me2274 (ambiera._ks1885__me2274)
package ambiera {
import mx.core.*;
public class _ks1885__me2274 extends BitmapAsset {
}
}//package ambiera
Section 247
//_ks1885__mf2529 (ambiera._ks1885__mf2529)
package ambiera {
import mx.core.*;
public class _ks1885__mf2529 extends BitmapAsset {
}
}//package ambiera
Section 248
//_ks1885__mk518 (ambiera._ks1885__mk518)
package ambiera {
import mx.core.*;
public class _ks1885__mk518 extends BitmapAsset {
}
}//package ambiera
Section 249
//_ks1885__mm704 (ambiera._ks1885__mm704)
package ambiera {
import mx.core.*;
public class _ks1885__mm704 extends BitmapAsset {
}
}//package ambiera
Section 250
//_ks1885__mo2619 (ambiera._ks1885__mo2619)
package ambiera {
import mx.core.*;
public class _ks1885__mo2619 extends BitmapAsset {
}
}//package ambiera
Section 251
//_ks1885__mq3349 (ambiera._ks1885__mq3349)
package ambiera {
import mx.core.*;
public class _ks1885__mq3349 extends BitmapAsset {
}
}//package ambiera
Section 252
//_ks1885__ms2912 (ambiera._ks1885__ms2912)
package ambiera {
import mx.core.*;
public class _ks1885__ms2912 extends BitmapAsset {
}
}//package ambiera
Section 253
//_ks1885__mt1568 (ambiera._ks1885__mt1568)
package ambiera {
import mx.core.*;
public class _ks1885__mt1568 extends BitmapAsset {
}
}//package ambiera
Section 254
//_ks1885__mx2247 (ambiera._ks1885__mx2247)
package ambiera {
import mx.core.*;
public class _ks1885__mx2247 extends BitmapAsset {
}
}//package ambiera
Section 255
//_ks1885__mx3103 (ambiera._ks1885__mx3103)
package ambiera {
import mx.core.*;
public class _ks1885__mx3103 extends BitmapAsset {
}
}//package ambiera
Section 256
//_ks1885__my2875 (ambiera._ks1885__my2875)
package ambiera {
import mx.core.*;
public class _ks1885__my2875 extends BitmapAsset {
}
}//package ambiera
Section 257
//_ks1885__na464 (ambiera._ks1885__na464)
package ambiera {
import mx.core.*;
public class _ks1885__na464 extends BitmapAsset {
}
}//package ambiera
Section 258
//_ks1885__nc3034 (ambiera._ks1885__nc3034)
package ambiera {
import mx.core.*;
public class _ks1885__nc3034 extends SoundAsset {
}
}//package ambiera
Section 259
//_ks1885__nc796 (ambiera._ks1885__nc796)
package ambiera {
import mx.core.*;
public class _ks1885__nc796 extends BitmapAsset {
}
}//package ambiera
Section 260
//_ks1885__ne2159 (ambiera._ks1885__ne2159)
package ambiera {
import mx.core.*;
public class _ks1885__ne2159 extends BitmapAsset {
}
}//package ambiera
Section 261
//_ks1885__nf1253 (ambiera._ks1885__nf1253)
package ambiera {
import mx.core.*;
public class _ks1885__nf1253 extends BitmapAsset {
}
}//package ambiera
Section 262
//_ks1885__ni2865 (ambiera._ks1885__ni2865)
package ambiera {
import mx.core.*;
public class _ks1885__ni2865 extends BitmapAsset {
}
}//package ambiera
Section 263
//_ks1885__nk1541 (ambiera._ks1885__nk1541)
package ambiera {
import mx.core.*;
public class _ks1885__nk1541 extends SoundAsset {
}
}//package ambiera
Section 264
//_ks1885__nl1717 (ambiera._ks1885__nl1717)
package ambiera {
import mx.core.*;
public class _ks1885__nl1717 extends BitmapAsset {
}
}//package ambiera
Section 265
//_ks1885__nm753 (ambiera._ks1885__nm753)
package ambiera {
import mx.core.*;
public class _ks1885__nm753 extends BitmapAsset {
}
}//package ambiera
Section 266
//_ks1885__no342 (ambiera._ks1885__no342)
package ambiera {
import mx.core.*;
public class _ks1885__no342 extends BitmapAsset {
}
}//package ambiera
Section 267
//_ks1885__np212 (ambiera._ks1885__np212)
package ambiera {
import mx.core.*;
public class _ks1885__np212 extends BitmapAsset {
}
}//package ambiera
Section 268
//_ks1885__nq1585 (ambiera._ks1885__nq1585)
package ambiera {
import mx.core.*;
public class _ks1885__nq1585 extends BitmapAsset {
}
}//package ambiera
Section 269
//_ks1885__nq2913 (ambiera._ks1885__nq2913)
package ambiera {
import mx.core.*;
public class _ks1885__nq2913 extends BitmapAsset {
}
}//package ambiera
Section 270
//_ks1885__nr1552 (ambiera._ks1885__nr1552)
package ambiera {
import mx.core.*;
public class _ks1885__nr1552 extends BitmapAsset {
}
}//package ambiera
Section 271
//_ks1885__nr582 (ambiera._ks1885__nr582)
package ambiera {
import mx.core.*;
public class _ks1885__nr582 extends BitmapAsset {
}
}//package ambiera
Section 272
//_ks1885__ns645 (ambiera._ks1885__ns645)
package ambiera {
import mx.core.*;
public class _ks1885__ns645 extends BitmapAsset {
}
}//package ambiera
Section 273
//_ks1885__nt2608 (ambiera._ks1885__nt2608)
package ambiera {
import mx.core.*;
public class _ks1885__nt2608 extends BitmapAsset {
}
}//package ambiera
Section 274
//_ks1885__nw1340 (ambiera._ks1885__nw1340)
package ambiera {
import mx.core.*;
public class _ks1885__nw1340 extends BitmapAsset {
}
}//package ambiera
Section 275
//_ks1885__nv1739 (ambiera._ks1885__nv1739)
package ambiera {
import mx.core.*;
public class _ks1885__nv1739 extends BitmapAsset {
}
}//package ambiera
Section 276
//_ks1885__nv1869 (ambiera._ks1885__nv1869)
package ambiera {
import mx.core.*;
public class _ks1885__nv1869 extends BitmapAsset {
}
}//package ambiera
Section 277
//_ks1885__nw74 (ambiera._ks1885__nw74)
package ambiera {
import mx.core.*;
public class _ks1885__nw74 extends BitmapAsset {
}
}//package ambiera
Section 278
//_ks1885__nw94 (ambiera._ks1885__nw94)
package ambiera {
import mx.core.*;
public class _ks1885__nw94 extends SoundAsset {
}
}//package ambiera
Section 279
//_ks1885__nx3040 (ambiera._ks1885__nx3040)
package ambiera {
import mx.core.*;
public class _ks1885__nx3040 extends BitmapAsset {
}
}//package ambiera
Section 280
//_ks1885__nx320 (ambiera._ks1885__nx320)
package ambiera {
import mx.core.*;
public class _ks1885__nx320 extends BitmapAsset {
}
}//package ambiera
Section 281
//_ks1885__oa1116 (ambiera._ks1885__oa1116)
package ambiera {
import mx.core.*;
public class _ks1885__oa1116 extends BitmapAsset {
}
}//package ambiera
Section 282
//_ks1885__oa1288 (ambiera._ks1885__oa1288)
package ambiera {
import mx.core.*;
public class _ks1885__oa1288 extends BitmapAsset {
}
}//package ambiera
Section 283
//_ks1885__od3317 (ambiera._ks1885__od3317)
package ambiera {
import mx.core.*;
public class _ks1885__od3317 extends BitmapAsset {
}
}//package ambiera
Section 284
//_ks1885__of2642 (ambiera._ks1885__of2642)
package ambiera {
import mx.core.*;
public class _ks1885__of2642 extends BitmapAsset {
}
}//package ambiera
Section 285
//_ks1885__og2853 (ambiera._ks1885__og2853)
package ambiera {
import mx.core.*;
public class _ks1885__og2853 extends BitmapAsset {
}
}//package ambiera
Section 286
//_ks1885__oj2834 (ambiera._ks1885__oj2834)
package ambiera {
import mx.core.*;
public class _ks1885__oj2834 extends BitmapAsset {
}
}//package ambiera
Section 287
//_ks1885__om3132 (ambiera._ks1885__om3132)
package ambiera {
import mx.core.*;
public class _ks1885__om3132 extends SoundAsset {
}
}//package ambiera
Section 288
//_ks1885__om899 (ambiera._ks1885__om899)
package ambiera {
import mx.core.*;
public class _ks1885__om899 extends BitmapAsset {
}
}//package ambiera
Section 289
//_ks1885__oo2323 (ambiera._ks1885__oo2323)
package ambiera {
import mx.core.*;
public class _ks1885__oo2323 extends BitmapAsset {
}
}//package ambiera
Section 290
//_ks1885__oo3018 (ambiera._ks1885__oo3018)
package ambiera {
import mx.core.*;
public class _ks1885__oo3018 extends BitmapAsset {
}
}//package ambiera
Section 291
//_ks1885__op622 (ambiera._ks1885__op622)
package ambiera {
import mx.core.*;
public class _ks1885__op622 extends BitmapAsset {
}
}//package ambiera
Section 292
//_ks1885__ot844 (ambiera._ks1885__ot844)
package ambiera {
import mx.core.*;
public class _ks1885__ot844 extends BitmapAsset {
}
}//package ambiera
Section 293
//_ks1885__ow3279 (ambiera._ks1885__ow3279)
package ambiera {
import mx.core.*;
public class _ks1885__ow3279 extends BitmapAsset {
}
}//package ambiera
Section 294
//_ks1885__pa1835 (ambiera._ks1885__pa1835)
package ambiera {
import mx.core.*;
public class _ks1885__pa1835 extends BitmapAsset {
}
}//package ambiera
Section 295
//_ks1885__pb2221 (ambiera._ks1885__pb2221)
package ambiera {
import mx.core.*;
public class _ks1885__pb2221 extends SoundAsset {
}
}//package ambiera
Section 296
//_ks1885__pb938 (ambiera._ks1885__pb938)
package ambiera {
import mx.core.*;
public class _ks1885__pb938 extends BitmapAsset {
}
}//package ambiera
Section 297
//_ks1885__pc2535 (ambiera._ks1885__pc2535)
package ambiera {
import mx.core.*;
public class _ks1885__pc2535 extends BitmapAsset {
}
}//package ambiera
Section 298
//_ks1885__pc55 (ambiera._ks1885__pc55)
package ambiera {
import mx.core.*;
public class _ks1885__pc55 extends BitmapAsset {
}
}//package ambiera
Section 299
//_ks1885__pe1463 (ambiera._ks1885__pe1463)
package ambiera {
import mx.core.*;
public class _ks1885__pe1463 extends BitmapAsset {
}
}//package ambiera
Section 300
//_ks1885__pj460 (ambiera._ks1885__pj460)
package ambiera {
import mx.core.*;
public class _ks1885__pj460 extends BitmapAsset {
}
}//package ambiera
Section 301
//_ks1885__pl889 (ambiera._ks1885__pl889)
package ambiera {
import mx.core.*;
public class _ks1885__pl889 extends SoundAsset {
}
}//package ambiera
Section 302
//_ks1885__pm2931 (ambiera._ks1885__pm2931)
package ambiera {
import mx.core.*;
public class _ks1885__pm2931 extends BitmapAsset {
}
}//package ambiera
Section 303
//_ks1885__pn3098 (ambiera._ks1885__pn3098)
package ambiera {
import mx.core.*;
public class _ks1885__pn3098 extends BitmapAsset {
}
}//package ambiera
Section 304
//_ks1885__pn39 (ambiera._ks1885__pn39)
package ambiera {
import mx.core.*;
public class _ks1885__pn39 extends BitmapAsset {
}
}//package ambiera
Section 305
//_ks1885__pp3227 (ambiera._ks1885__pp3227)
package ambiera {
import mx.core.*;
public class _ks1885__pp3227 extends BitmapAsset {
}
}//package ambiera
Section 306
//_ks1885__pr1138 (ambiera._ks1885__pr1138)
package ambiera {
import mx.core.*;
public class _ks1885__pr1138 extends BitmapAsset {
}
}//package ambiera
Section 307
//_ks1885__ps1253 (ambiera._ks1885__ps1253)
package ambiera {
import mx.core.*;
public class _ks1885__ps1253 extends BitmapAsset {
}
}//package ambiera
Section 308
//_ks1885__ps3454 (ambiera._ks1885__ps3454)
package ambiera {
import mx.core.*;
public class _ks1885__ps3454 extends BitmapAsset {
}
}//package ambiera
Section 309
//_ks1885__pu1090 (ambiera._ks1885__pu1090)
package ambiera {
import mx.core.*;
public class _ks1885__pu1090 extends SoundAsset {
}
}//package ambiera
Section 310
//_ks1885__pv1858 (ambiera._ks1885__pv1858)
package ambiera {
import mx.core.*;
public class _ks1885__pv1858 extends BitmapAsset {
}
}//package ambiera
Section 311
//_ks1885__pv322 (ambiera._ks1885__pv322)
package ambiera {
import mx.core.*;
public class _ks1885__pv322 extends BitmapAsset {
}
}//package ambiera
Section 312
//_ks1885__px1050 (ambiera._ks1885__px1050)
package ambiera {
import mx.core.*;
public class _ks1885__px1050 extends BitmapAsset {
}
}//package ambiera
Section 313
//_ks1885__qf1393 (ambiera._ks1885__qf1393)
package ambiera {
import mx.core.*;
public class _ks1885__qf1393 extends BitmapAsset {
}
}//package ambiera
Section 314
//_ks1885__qf3270 (ambiera._ks1885__qf3270)
package ambiera {
import mx.core.*;
public class _ks1885__qf3270 extends BitmapAsset {
}
}//package ambiera
Section 315
//_ks1885__qf558 (ambiera._ks1885__qf558)
package ambiera {
import mx.core.*;
public class _ks1885__qf558 extends BitmapAsset {
}
}//package ambiera
Section 316
//_ks1885__qg1698 (ambiera._ks1885__qg1698)
package ambiera {
import mx.core.*;
public class _ks1885__qg1698 extends BitmapAsset {
}
}//package ambiera
Section 317
//_ks1885__qg649 (ambiera._ks1885__qg649)
package ambiera {
import mx.core.*;
public class _ks1885__qg649 extends BitmapAsset {
}
}//package ambiera
Section 318
//_ks1885__qh1753 (ambiera._ks1885__qh1753)
package ambiera {
import mx.core.*;
public class _ks1885__qh1753 extends BitmapAsset {
}
}//package ambiera
Section 319
//_ks1885__qi1099 (ambiera._ks1885__qi1099)
package ambiera {
import mx.core.*;
public class _ks1885__qi1099 extends BitmapAsset {
}
}//package ambiera
Section 320
//_ks1885__qj1480 (ambiera._ks1885__qj1480)
package ambiera {
import mx.core.*;
public class _ks1885__qj1480 extends BitmapAsset {
}
}//package ambiera
Section 321
//_ks1885__qk1381 (ambiera._ks1885__qk1381)
package ambiera {
import mx.core.*;
public class _ks1885__qk1381 extends BitmapAsset {
}
}//package ambiera
Section 322
//_ks1885__qm2559 (ambiera._ks1885__qm2559)
package ambiera {
import mx.core.*;
public class _ks1885__qm2559 extends BitmapAsset {
}
}//package ambiera
Section 323
//_ks1885__qp2754 (ambiera._ks1885__qp2754)
package ambiera {
import mx.core.*;
public class _ks1885__qp2754 extends BitmapAsset {
}
}//package ambiera
Section 324
//_ks1885__qp2832 (ambiera._ks1885__qp2832)
package ambiera {
import mx.core.*;
public class _ks1885__qp2832 extends BitmapAsset {
}
}//package ambiera
Section 325
//_ks1885__qr1105 (ambiera._ks1885__qr1105)
package ambiera {
import mx.core.*;
public class _ks1885__qr1105 extends BitmapAsset {
}
}//package ambiera
Section 326
//_ks1885__qr1958 (ambiera._ks1885__qr1958)
package ambiera {
import mx.core.*;
public class _ks1885__qr1958 extends BitmapAsset {
}
}//package ambiera
Section 327
//_ks1885__qt2208 (ambiera._ks1885__qt2208)
package ambiera {
import mx.core.*;
public class _ks1885__qt2208 extends BitmapAsset {
}
}//package ambiera
Section 328
//_ks1885__qu1007 (ambiera._ks1885__qu1007)
package ambiera {
import mx.core.*;
public class _ks1885__qu1007 extends BitmapAsset {
}
}//package ambiera
Section 329
//_ks1885__qw2909 (ambiera._ks1885__qw2909)
package ambiera {
import mx.core.*;
public class _ks1885__qw2909 extends BitmapAsset {
}
}//package ambiera
Section 330
//_ks1885__ra3021 (ambiera._ks1885__ra3021)
package ambiera {
import mx.core.*;
public class _ks1885__ra3021 extends BitmapAsset {
}
}//package ambiera
Section 331
//_ks1885__rd2356 (ambiera._ks1885__rd2356)
package ambiera {
import mx.core.*;
public class _ks1885__rd2356 extends SoundAsset {
}
}//package ambiera
Section 332
//_ks1885__rd2506 (ambiera._ks1885__rd2506)
package ambiera {
import mx.core.*;
public class _ks1885__rd2506 extends BitmapAsset {
}
}//package ambiera
Section 333
//_ks1885__rd3461 (ambiera._ks1885__rd3461)
package ambiera {
import mx.core.*;
public class _ks1885__rd3461 extends BitmapAsset {
}
}//package ambiera
Section 334
//_ks1885__re406 (ambiera._ks1885__re406)
package ambiera {
import mx.core.*;
public class _ks1885__re406 extends SoundAsset {
}
}//package ambiera
Section 335
//_ks1885__rf751 (ambiera._ks1885__rf751)
package ambiera {
import mx.core.*;
public class _ks1885__rf751 extends BitmapAsset {
}
}//package ambiera
Section 336
//_ks1885__ri188 (ambiera._ks1885__ri188)
package ambiera {
import mx.core.*;
public class _ks1885__ri188 extends SoundAsset {
}
}//package ambiera
Section 337
//_ks1885__ri1892 (ambiera._ks1885__ri1892)
package ambiera {
import mx.core.*;
public class _ks1885__ri1892 extends BitmapAsset {
}
}//package ambiera
Section 338
//_ks1885__ri2452 (ambiera._ks1885__ri2452)
package ambiera {
import mx.core.*;
public class _ks1885__ri2452 extends BitmapAsset {
}
}//package ambiera
Section 339
//_ks1885__rj117 (ambiera._ks1885__rj117)
package ambiera {
import mx.core.*;
public class _ks1885__rj117 extends BitmapAsset {
}
}//package ambiera
Section 340
//_ks1885__rk1274 (ambiera._ks1885__rk1274)
package ambiera {
import mx.core.*;
public class _ks1885__rk1274 extends BitmapAsset {
}
}//package ambiera
Section 341
//_ks1885__rm1048 (ambiera._ks1885__rm1048)
package ambiera {
import mx.core.*;
public class _ks1885__rm1048 extends BitmapAsset {
}
}//package ambiera
Section 342
//_ks1885__rm1600 (ambiera._ks1885__rm1600)
package ambiera {
import mx.core.*;
public class _ks1885__rm1600 extends BitmapAsset {
}
}//package ambiera
Section 343
//_ks1885__rm3457 (ambiera._ks1885__rm3457)
package ambiera {
import mx.core.*;
public class _ks1885__rm3457 extends BitmapAsset {
}
}//package ambiera
Section 344
//_ks1885__rn1395 (ambiera._ks1885__rn1395)
package ambiera {
import mx.core.*;
public class _ks1885__rn1395 extends BitmapAsset {
}
}//package ambiera
Section 345
//_ks1885__rq480 (ambiera._ks1885__rq480)
package ambiera {
import mx.core.*;
public class _ks1885__rq480 extends BitmapAsset {
}
}//package ambiera
Section 346
//_ks1885__rr2866 (ambiera._ks1885__rr2866)
package ambiera {
import mx.core.*;
public class _ks1885__rr2866 extends BitmapAsset {
}
}//package ambiera
Section 347
//_ks1885__rs3154 (ambiera._ks1885__rs3154)
package ambiera {
import mx.core.*;
public class _ks1885__rs3154 extends BitmapAsset {
}
}//package ambiera
Section 348
//_ks1885__rw2604 (ambiera._ks1885__rw2604)
package ambiera {
import mx.core.*;
public class _ks1885__rw2604 extends BitmapAsset {
}
}//package ambiera
Section 349
//_ks1885__rw2655 (ambiera._ks1885__rw2655)
package ambiera {
import mx.core.*;
public class _ks1885__rw2655 extends BitmapAsset {
}
}//package ambiera
Section 350
//_ks1885__rw2733 (ambiera._ks1885__rw2733)
package ambiera {
import mx.core.*;
public class _ks1885__rw2733 extends BitmapAsset {
}
}//package ambiera
Section 351
//_ks1885__rw840 (ambiera._ks1885__rw840)
package ambiera {
import mx.core.*;
public class _ks1885__rw840 extends BitmapAsset {
}
}//package ambiera
Section 352
//_ks1885__ry2078 (ambiera._ks1885__ry2078)
package ambiera {
import mx.core.*;
public class _ks1885__ry2078 extends SoundAsset {
}
}//package ambiera
Section 353
//_ks1885__ry3288 (ambiera._ks1885__ry3288)
package ambiera {
import mx.core.*;
public class _ks1885__ry3288 extends BitmapAsset {
}
}//package ambiera
Section 354
//_ks1885__sb2236 (ambiera._ks1885__sb2236)
package ambiera {
import mx.core.*;
public class _ks1885__sb2236 extends BitmapAsset {
}
}//package ambiera
Section 355
//_ks1885__sb2714 (ambiera._ks1885__sb2714)
package ambiera {
import mx.core.*;
public class _ks1885__sb2714 extends BitmapAsset {
}
}//package ambiera
Section 356
//_ks1885__se1764 (ambiera._ks1885__se1764)
package ambiera {
import mx.core.*;
public class _ks1885__se1764 extends BitmapAsset {
}
}//package ambiera
Section 357
//_ks1885__sf1549 (ambiera._ks1885__sf1549)
package ambiera {
import mx.core.*;
public class _ks1885__sf1549 extends BitmapAsset {
}
}//package ambiera
Section 358
//_ks1885__sf2913 (ambiera._ks1885__sf2913)
package ambiera {
import mx.core.*;
public class _ks1885__sf2913 extends BitmapAsset {
}
}//package ambiera
Section 359
//_ks1885__sh1424 (ambiera._ks1885__sh1424)
package ambiera {
import mx.core.*;
public class _ks1885__sh1424 extends BitmapAsset {
}
}//package ambiera
Section 360
//_ks1885__sh1873 (ambiera._ks1885__sh1873)
package ambiera {
import mx.core.*;
public class _ks1885__sh1873 extends BitmapAsset {
}
}//package ambiera
Section 361
//_ks1885__sh669 (ambiera._ks1885__sh669)
package ambiera {
import mx.core.*;
public class _ks1885__sh669 extends BitmapAsset {
}
}//package ambiera
Section 362
//_ks1885__sh92 (ambiera._ks1885__sh92)
package ambiera {
import mx.core.*;
public class _ks1885__sh92 extends BitmapAsset {
}
}//package ambiera
Section 363
//_ks1885__sl2525 (ambiera._ks1885__sl2525)
package ambiera {
import mx.core.*;
public class _ks1885__sl2525 extends BitmapAsset {
}
}//package ambiera
Section 364
//_ks1885__sn2640 (ambiera._ks1885__sn2640)
package ambiera {
import mx.core.*;
public class _ks1885__sn2640 extends BitmapAsset {
}
}//package ambiera
Section 365
//_ks1885__ss2269 (ambiera._ks1885__ss2269)
package ambiera {
import mx.core.*;
public class _ks1885__ss2269 extends BitmapAsset {
}
}//package ambiera
Section 366
//_ks1885__ss2472 (ambiera._ks1885__ss2472)
package ambiera {
import mx.core.*;
public class _ks1885__ss2472 extends BitmapAsset {
}
}//package ambiera
Section 367
//_ks1885__st2347 (ambiera._ks1885__st2347)
package ambiera {
import mx.core.*;
public class _ks1885__st2347 extends BitmapAsset {
}
}//package ambiera
Section 368
//_ks1885__su1822 (ambiera._ks1885__su1822)
package ambiera {
import mx.core.*;
public class _ks1885__su1822 extends BitmapAsset {
}
}//package ambiera
Section 369
//_ks1885__sx681 (ambiera._ks1885__sx681)
package ambiera {
import mx.core.*;
public class _ks1885__sx681 extends BitmapAsset {
}
}//package ambiera
Section 370
//_ks1885__ta3183 (ambiera._ks1885__ta3183)
package ambiera {
import mx.core.*;
public class _ks1885__ta3183 extends BitmapAsset {
}
}//package ambiera
Section 371
//_ks1885__tb2857 (ambiera._ks1885__tb2857)
package ambiera {
import mx.core.*;
public class _ks1885__tb2857 extends BitmapAsset {
}
}//package ambiera
Section 372
//_ks1885__tb3202 (ambiera._ks1885__tb3202)
package ambiera {
import mx.core.*;
public class _ks1885__tb3202 extends BitmapAsset {
}
}//package ambiera
Section 373
//_ks1885__tb377 (ambiera._ks1885__tb377)
package ambiera {
import mx.core.*;
public class _ks1885__tb377 extends BitmapAsset {
}
}//package ambiera
Section 374
//_ks1885__tc1619 (ambiera._ks1885__tc1619)
package ambiera {
import mx.core.*;
public class _ks1885__tc1619 extends BitmapAsset {
}
}//package ambiera
Section 375
//_ks1885__td1259 (ambiera._ks1885__td1259)
package ambiera {
import mx.core.*;
public class _ks1885__td1259 extends BitmapAsset {
}
}//package ambiera
Section 376
//_ks1885__td149 (ambiera._ks1885__td149)
package ambiera {
import mx.core.*;
public class _ks1885__td149 extends BitmapAsset {
}
}//package ambiera
Section 377
//_ks1885__td1844 (ambiera._ks1885__td1844)
package ambiera {
import mx.core.*;
public class _ks1885__td1844 extends BitmapAsset {
}
}//package ambiera
Section 378
//_ks1885__tf1448 (ambiera._ks1885__tf1448)
package ambiera {
import mx.core.*;
public class _ks1885__tf1448 extends BitmapAsset {
}
}//package ambiera
Section 379
//_ks1885__tg1854 (ambiera._ks1885__tg1854)
package ambiera {
import mx.core.*;
public class _ks1885__tg1854 extends BitmapAsset {
}
}//package ambiera
Section 380
//_ks1885__tg455 (ambiera._ks1885__tg455)
package ambiera {
import mx.core.*;
public class _ks1885__tg455 extends BitmapAsset {
}
}//package ambiera
Section 381
//_ks1885__th1432 (ambiera._ks1885__th1432)
package ambiera {
import mx.core.*;
public class _ks1885__th1432 extends BitmapAsset {
}
}//package ambiera
Section 382
//_ks1885__th1548 (ambiera._ks1885__th1548)
package ambiera {
import mx.core.*;
public class _ks1885__th1548 extends BitmapAsset {
}
}//package ambiera
Section 383
//_ks1885__th1920 (ambiera._ks1885__th1920)
package ambiera {
import mx.core.*;
public class _ks1885__th1920 extends BitmapAsset {
}
}//package ambiera
Section 384
//_ks1885__ti2526 (ambiera._ks1885__ti2526)
package ambiera {
import mx.core.*;
public class _ks1885__ti2526 extends BitmapAsset {
}
}//package ambiera
Section 385
//_ks1885__ti502 (ambiera._ks1885__ti502)
package ambiera {
import mx.core.*;
public class _ks1885__ti502 extends BitmapAsset {
}
}//package ambiera
Section 386
//_ks1885__tk1482 (ambiera._ks1885__tk1482)
package ambiera {
import mx.core.*;
public class _ks1885__tk1482 extends BitmapAsset {
}
}//package ambiera
Section 387
//_ks1885__tm1472 (ambiera._ks1885__tm1472)
package ambiera {
import mx.core.*;
public class _ks1885__tm1472 extends BitmapAsset {
}
}//package ambiera
Section 388
//_ks1885__tm1495 (ambiera._ks1885__tm1495)
package ambiera {
import mx.core.*;
public class _ks1885__tm1495 extends BitmapAsset {
}
}//package ambiera
Section 389
//_ks1885__tp758 (ambiera._ks1885__tp758)
package ambiera {
import mx.core.*;
public class _ks1885__tp758 extends BitmapAsset {
}
}//package ambiera
Section 390
//_ks1885__tq1359 (ambiera._ks1885__tq1359)
package ambiera {
import mx.core.*;
public class _ks1885__tq1359 extends BitmapAsset {
}
}//package ambiera
Section 391
//_ks1885__tr2041 (ambiera._ks1885__tr2041)
package ambiera {
import mx.core.*;
public class _ks1885__tr2041 extends BitmapAsset {
}
}//package ambiera
Section 392
//_ks1885__tr3191 (ambiera._ks1885__tr3191)
package ambiera {
import mx.core.*;
public class _ks1885__tr3191 extends BitmapAsset {
}
}//package ambiera
Section 393
//_ks1885__ts1924 (ambiera._ks1885__ts1924)
package ambiera {
import mx.core.*;
public class _ks1885__ts1924 extends BitmapAsset {
}
}//package ambiera
Section 394
//_ks1885__tw1552 (ambiera._ks1885__tw1552)
package ambiera {
import mx.core.*;
public class _ks1885__tw1552 extends BitmapAsset {
}
}//package ambiera
Section 395
//_ks1885__ty1835 (ambiera._ks1885__ty1835)
package ambiera {
import mx.core.*;
public class _ks1885__ty1835 extends BitmapAsset {
}
}//package ambiera
Section 396
//_ks1885__uc1035 (ambiera._ks1885__uc1035)
package ambiera {
import mx.core.*;
public class _ks1885__uc1035 extends BitmapAsset {
}
}//package ambiera
Section 397
//_ks1885__uc247 (ambiera._ks1885__uc247)
package ambiera {
import mx.core.*;
public class _ks1885__uc247 extends BitmapAsset {
}
}//package ambiera
Section 398
//_ks1885__uf2542 (ambiera._ks1885__uf2542)
package ambiera {
import mx.core.*;
public class _ks1885__uf2542 extends BitmapAsset {
}
}//package ambiera
Section 399
//_ks1885__uf3356 (ambiera._ks1885__uf3356)
package ambiera {
import mx.core.*;
public class _ks1885__uf3356 extends BitmapAsset {
}
}//package ambiera
Section 400
//_ks1885__ui827 (ambiera._ks1885__ui827)
package ambiera {
import mx.core.*;
public class _ks1885__ui827 extends SoundAsset {
}
}//package ambiera
Section 401
//_ks1885__uk331 (ambiera._ks1885__uk331)
package ambiera {
import mx.core.*;
public class _ks1885__uk331 extends BitmapAsset {
}
}//package ambiera
Section 402
//_ks1885__ul2399 (ambiera._ks1885__ul2399)
package ambiera {
import mx.core.*;
public class _ks1885__ul2399 extends BitmapAsset {
}
}//package ambiera
Section 403
//_ks1885__un690 (ambiera._ks1885__un690)
package ambiera {
import mx.core.*;
public class _ks1885__un690 extends BitmapAsset {
}
}//package ambiera
Section 404
//_ks1885__uo2336 (ambiera._ks1885__uo2336)
package ambiera {
import mx.core.*;
public class _ks1885__uo2336 extends BitmapAsset {
}
}//package ambiera
Section 405
//_ks1885__up1456 (ambiera._ks1885__up1456)
package ambiera {
import mx.core.*;
public class _ks1885__up1456 extends BitmapAsset {
}
}//package ambiera
Section 406
//_ks1885__uq1724 (ambiera._ks1885__uq1724)
package ambiera {
import mx.core.*;
public class _ks1885__uq1724 extends BitmapAsset {
}
}//package ambiera
Section 407
//_ks1885__uq2140 (ambiera._ks1885__uq2140)
package ambiera {
import mx.core.*;
public class _ks1885__uq2140 extends BitmapAsset {
}
}//package ambiera
Section 408
//_ks1885__ur494 (ambiera._ks1885__ur494)
package ambiera {
import mx.core.*;
public class _ks1885__ur494 extends BitmapAsset {
}
}//package ambiera
Section 409
//_ks1885__ut3024 (ambiera._ks1885__ut3024)
package ambiera {
import mx.core.*;
public class _ks1885__ut3024 extends BitmapAsset {
}
}//package ambiera
Section 410
//_ks1885__uv2540 (ambiera._ks1885__uv2540)
package ambiera {
import mx.core.*;
public class _ks1885__uv2540 extends BitmapAsset {
}
}//package ambiera
Section 411
//_ks1885__ux269 (ambiera._ks1885__ux269)
package ambiera {
import mx.core.*;
public class _ks1885__ux269 extends SoundAsset {
}
}//package ambiera
Section 412
//_ks1885__uy3293 (ambiera._ks1885__uy3293)
package ambiera {
import mx.core.*;
public class _ks1885__uy3293 extends BitmapAsset {
}
}//package ambiera
Section 413
//_ks1885__uy713 (ambiera._ks1885__uy713)
package ambiera {
import mx.core.*;
public class _ks1885__uy713 extends BitmapAsset {
}
}//package ambiera
Section 414
//_ks1885__va361 (ambiera._ks1885__va361)
package ambiera {
import mx.core.*;
public class _ks1885__va361 extends BitmapAsset {
}
}//package ambiera
Section 415
//_ks1885__wb811 (ambiera._ks1885__wb811)
package ambiera {
import mx.core.*;
public class _ks1885__wb811 extends SoundAsset {
}
}//package ambiera
Section 416
//_ks1885__wc337 (ambiera._ks1885__wc337)
package ambiera {
import mx.core.*;
public class _ks1885__wc337 extends BitmapAsset {
}
}//package ambiera
Section 417
//_ks1885__wd2589 (ambiera._ks1885__wd2589)
package ambiera {
import mx.core.*;
public class _ks1885__wd2589 extends BitmapAsset {
}
}//package ambiera
Section 418
//_ks1885__vf944 (ambiera._ks1885__vf944)
package ambiera {
import mx.core.*;
public class _ks1885__vf944 extends SoundAsset {
}
}//package ambiera
Section 419
//_ks1885__vg2360 (ambiera._ks1885__vg2360)
package ambiera {
import mx.core.*;
public class _ks1885__vg2360 extends SoundAsset {
}
}//package ambiera
Section 420
//_ks1885__wh441 (ambiera._ks1885__wh441)
package ambiera {
import mx.core.*;
public class _ks1885__wh441 extends BitmapAsset {
}
}//package ambiera
Section 421
//_ks1885__vi1965 (ambiera._ks1885__vi1965)
package ambiera {
import mx.core.*;
public class _ks1885__vi1965 extends BitmapAsset {
}
}//package ambiera
Section 422
//_ks1885__wj1609 (ambiera._ks1885__wj1609)
package ambiera {
import mx.core.*;
public class _ks1885__wj1609 extends BitmapAsset {
}
}//package ambiera
Section 423
//_ks1885__wj411 (ambiera._ks1885__wj411)
package ambiera {
import mx.core.*;
public class _ks1885__wj411 extends SoundAsset {
}
}//package ambiera
Section 424
//_ks1885__wk269 (ambiera._ks1885__wk269)
package ambiera {
import mx.core.*;
public class _ks1885__wk269 extends BitmapAsset {
}
}//package ambiera
Section 425
//_ks1885__wl1146 (ambiera._ks1885__wl1146)
package ambiera {
import mx.core.*;
public class _ks1885__wl1146 extends BitmapAsset {
}
}//package ambiera
Section 426
//_ks1885__vl1202 (ambiera._ks1885__vl1202)
package ambiera {
import mx.core.*;
public class _ks1885__vl1202 extends BitmapAsset {
}
}//package ambiera
Section 427
//_ks1885__wl3129 (ambiera._ks1885__wl3129)
package ambiera {
import mx.core.*;
public class _ks1885__wl3129 extends BitmapAsset {
}
}//package ambiera
Section 428
//_ks1885__wn2568 (ambiera._ks1885__wn2568)
package ambiera {
import mx.core.*;
public class _ks1885__wn2568 extends BitmapAsset {
}
}//package ambiera
Section 429
//_ks1885__vn78 (ambiera._ks1885__vn78)
package ambiera {
import mx.core.*;
public class _ks1885__vn78 extends BitmapAsset {
}
}//package ambiera
Section 430
//_ks1885__vn883 (ambiera._ks1885__vn883)
package ambiera {
import mx.core.*;
public class _ks1885__vn883 extends BitmapAsset {
}
}//package ambiera
Section 431
//_ks1885__wo1806 (ambiera._ks1885__wo1806)
package ambiera {
import mx.core.*;
public class _ks1885__wo1806 extends BitmapAsset {
}
}//package ambiera
Section 432
//_ks1885__vo2423 (ambiera._ks1885__vo2423)
package ambiera {
import mx.core.*;
public class _ks1885__vo2423 extends BitmapAsset {
}
}//package ambiera
Section 433
//_ks1885__vo285 (ambiera._ks1885__vo285)
package ambiera {
import mx.core.*;
public class _ks1885__vo285 extends SoundAsset {
}
}//package ambiera
Section 434
//_ks1885__vq420 (ambiera._ks1885__vq420)
package ambiera {
import mx.core.*;
public class _ks1885__vq420 extends BitmapAsset {
}
}//package ambiera
Section 435
//_ks1885__wr1284 (ambiera._ks1885__wr1284)
package ambiera {
import mx.core.*;
public class _ks1885__wr1284 extends BitmapAsset {
}
}//package ambiera
Section 436
//_ks1885__vr1869 (ambiera._ks1885__vr1869)
package ambiera {
import mx.core.*;
public class _ks1885__vr1869 extends BitmapAsset {
}
}//package ambiera
Section 437
//_ks1885__vs1505 (ambiera._ks1885__vs1505)
package ambiera {
import mx.core.*;
public class _ks1885__vs1505 extends SoundAsset {
}
}//package ambiera
Section 438
//_ks1885__vs2173 (ambiera._ks1885__vs2173)
package ambiera {
import mx.core.*;
public class _ks1885__vs2173 extends BitmapAsset {
}
}//package ambiera
Section 439
//_ks1885__ws856 (ambiera._ks1885__ws856)
package ambiera {
import mx.core.*;
public class _ks1885__ws856 extends BitmapAsset {
}
}//package ambiera
Section 440
//_ks1885__wt1054 (ambiera._ks1885__wt1054)
package ambiera {
import mx.core.*;
public class _ks1885__wt1054 extends BitmapAsset {
}
}//package ambiera
Section 441
//_ks1885__wt1340 (ambiera._ks1885__wt1340)
package ambiera {
import mx.core.*;
public class _ks1885__wt1340 extends BitmapAsset {
}
}//package ambiera
Section 442
//_ks1885__vt464 (ambiera._ks1885__vt464)
package ambiera {
import mx.core.*;
public class _ks1885__vt464 extends BitmapAsset {
}
}//package ambiera
Section 443
//_ks1885__wu1330 (ambiera._ks1885__wu1330)
package ambiera {
import mx.core.*;
public class _ks1885__wu1330 extends BitmapAsset {
}
}//package ambiera
Section 444
//_ks1885__wu2435 (ambiera._ks1885__wu2435)
package ambiera {
import mx.core.*;
public class _ks1885__wu2435 extends BitmapAsset {
}
}//package ambiera
Section 445
//_ks1885__vv1500 (ambiera._ks1885__vv1500)
package ambiera {
import mx.core.*;
public class _ks1885__vv1500 extends BitmapAsset {
}
}//package ambiera
Section 446
//_ks1885__wv2079 (ambiera._ks1885__wv2079)
package ambiera {
import mx.core.*;
public class _ks1885__wv2079 extends BitmapAsset {
}
}//package ambiera
Section 447
//_ks1885__vw2357 (ambiera._ks1885__vw2357)
package ambiera {
import mx.core.*;
public class _ks1885__vw2357 extends BitmapAsset {
}
}//package ambiera
Section 448
//_ks1885__ww2987 (ambiera._ks1885__ww2987)
package ambiera {
import mx.core.*;
public class _ks1885__ww2987 extends BitmapAsset {
}
}//package ambiera
Section 449
//_ks1885__wx3065 (ambiera._ks1885__wx3065)
package ambiera {
import mx.core.*;
public class _ks1885__wx3065 extends BitmapAsset {
}
}//package ambiera
Section 450
//_ks1885__vx3450 (ambiera._ks1885__vx3450)
package ambiera {
import mx.core.*;
public class _ks1885__vx3450 extends BitmapAsset {
}
}//package ambiera
Section 451
//_ks1885__wy1219 (ambiera._ks1885__wy1219)
package ambiera {
import mx.core.*;
public class _ks1885__wy1219 extends BitmapAsset {
}
}//package ambiera
Section 452
//_ks1885__wy160 (ambiera._ks1885__wy160)
package ambiera {
import mx.core.*;
public class _ks1885__wy160 extends BitmapAsset {
}
}//package ambiera
Section 453
//_ks1885__vy2323 (ambiera._ks1885__vy2323)
package ambiera {
import mx.core.*;
public class _ks1885__vy2323 extends BitmapAsset {
}
}//package ambiera
Section 454
//_ks1885__xb1381 (ambiera._ks1885__xb1381)
package ambiera {
import mx.core.*;
public class _ks1885__xb1381 extends BitmapAsset {
}
}//package ambiera
Section 455
//_ks1885__xb1898 (ambiera._ks1885__xb1898)
package ambiera {
import mx.core.*;
public class _ks1885__xb1898 extends BitmapAsset {
}
}//package ambiera
Section 456
//_ks1885__xe3146 (ambiera._ks1885__xe3146)
package ambiera {
import mx.core.*;
public class _ks1885__xe3146 extends BitmapAsset {
}
}//package ambiera
Section 457
//_ks1885__xf2338 (ambiera._ks1885__xf2338)
package ambiera {
import mx.core.*;
public class _ks1885__xf2338 extends SoundAsset {
}
}//package ambiera
Section 458
//_ks1885__xh102 (ambiera._ks1885__xh102)
package ambiera {
import mx.core.*;
public class _ks1885__xh102 extends BitmapAsset {
}
}//package ambiera
Section 459
//_ks1885__xh2110 (ambiera._ks1885__xh2110)
package ambiera {
import mx.core.*;
public class _ks1885__xh2110 extends BitmapAsset {
}
}//package ambiera
Section 460
//_ks1885__xh3258 (ambiera._ks1885__xh3258)
package ambiera {
import mx.core.*;
public class _ks1885__xh3258 extends BitmapAsset {
}
}//package ambiera
Section 461
//_ks1885__xj1706 (ambiera._ks1885__xj1706)
package ambiera {
import mx.core.*;
public class _ks1885__xj1706 extends SoundAsset {
}
}//package ambiera
Section 462
//_ks1885__xj321 (ambiera._ks1885__xj321)
package ambiera {
import mx.core.*;
public class _ks1885__xj321 extends BitmapAsset {
}
}//package ambiera
Section 463
//_ks1885__xm1394 (ambiera._ks1885__xm1394)
package ambiera {
import mx.core.*;
public class _ks1885__xm1394 extends SoundAsset {
}
}//package ambiera
Section 464
//_ks1885__xq2150 (ambiera._ks1885__xq2150)
package ambiera {
import mx.core.*;
public class _ks1885__xq2150 extends BitmapAsset {
}
}//package ambiera
Section 465
//_ks1885__xr1260 (ambiera._ks1885__xr1260)
package ambiera {
import mx.core.*;
public class _ks1885__xr1260 extends BitmapAsset {
}
}//package ambiera
Section 466
//_ks1885__xs3473 (ambiera._ks1885__xs3473)
package ambiera {
import mx.core.*;
public class _ks1885__xs3473 extends BitmapAsset {
}
}//package ambiera
Section 467
//_ks1885__xy3140 (ambiera._ks1885__xy3140)
package ambiera {
import mx.core.*;
public class _ks1885__xy3140 extends BitmapAsset {
}
}//package ambiera
Section 468
//_ks1885__xy523 (ambiera._ks1885__xy523)
package ambiera {
import mx.core.*;
public class _ks1885__xy523 extends BitmapAsset {
}
}//package ambiera
Section 469
//_ks1885__ya3373 (ambiera._ks1885__ya3373)
package ambiera {
import mx.core.*;
public class _ks1885__ya3373 extends BitmapAsset {
}
}//package ambiera
Section 470
//_ks1885__yd2641 (ambiera._ks1885__yd2641)
package ambiera {
import mx.core.*;
public class _ks1885__yd2641 extends BitmapAsset {
}
}//package ambiera
Section 471
//_ks1885__yd579 (ambiera._ks1885__yd579)
package ambiera {
import mx.core.*;
public class _ks1885__yd579 extends BitmapAsset {
}
}//package ambiera
Section 472
//_ks1885__yf2503 (ambiera._ks1885__yf2503)
package ambiera {
import mx.core.*;
public class _ks1885__yf2503 extends BitmapAsset {
}
}//package ambiera
Section 473
//_ks1885__yg3021 (ambiera._ks1885__yg3021)
package ambiera {
import mx.core.*;
public class _ks1885__yg3021 extends BitmapAsset {
}
}//package ambiera
Section 474
//_ks1885__yh2642 (ambiera._ks1885__yh2642)
package ambiera {
import mx.core.*;
public class _ks1885__yh2642 extends SoundAsset {
}
}//package ambiera
Section 475
//_ks1885__yi3504 (ambiera._ks1885__yi3504)
package ambiera {
import mx.core.*;
public class _ks1885__yi3504 extends BitmapAsset {
}
}//package ambiera
Section 476
//_ks1885__yl1166 (ambiera._ks1885__yl1166)
package ambiera {
import mx.core.*;
public class _ks1885__yl1166 extends SoundAsset {
}
}//package ambiera
Section 477
//_ks1885__yl1410 (ambiera._ks1885__yl1410)
package ambiera {
import mx.core.*;
public class _ks1885__yl1410 extends BitmapAsset {
}
}//package ambiera
Section 478
//_ks1885__yl1675 (ambiera._ks1885__yl1675)
package ambiera {
import mx.core.*;
public class _ks1885__yl1675 extends BitmapAsset {
}
}//package ambiera
Section 479
//_ks1885__yl2752 (ambiera._ks1885__yl2752)
package ambiera {
import mx.core.*;
public class _ks1885__yl2752 extends BitmapAsset {
}
}//package ambiera
Section 480
//_ks1885__yl3281 (ambiera._ks1885__yl3281)
package ambiera {
import mx.core.*;
public class _ks1885__yl3281 extends BitmapAsset {
}
}//package ambiera
Section 481
//_ks1885__ym1791 (ambiera._ks1885__ym1791)
package ambiera {
import mx.core.*;
public class _ks1885__ym1791 extends BitmapAsset {
}
}//package ambiera
Section 482
//_ks1885__yp2787 (ambiera._ks1885__yp2787)
package ambiera {
import mx.core.*;
public class _ks1885__yp2787 extends SoundAsset {
}
}//package ambiera
Section 483
//_ks1885__yp683 (ambiera._ks1885__yp683)
package ambiera {
import mx.core.*;
public class _ks1885__yp683 extends BitmapAsset {
}
}//package ambiera
Section 484
//_ks1885__yq2376 (ambiera._ks1885__yq2376)
package ambiera {
import mx.core.*;
public class _ks1885__yq2376 extends BitmapAsset {
}
}//package ambiera
Section 485
//_ks1885__yt1070 (ambiera._ks1885__yt1070)
package ambiera {
import mx.core.*;
public class _ks1885__yt1070 extends BitmapAsset {
}
}//package ambiera
Section 486
//_ks1885__yw2268 (ambiera._ks1885__yw2268)
package ambiera {
import mx.core.*;
public class _ks1885__yw2268 extends BitmapAsset {
}
}//package ambiera
Section 487
//_ks1885__yv881 (ambiera._ks1885__yv881)
package ambiera {
import mx.core.*;
public class _ks1885__yv881 extends BitmapAsset {
}
}//package ambiera
Section 488
//_lf35 (ambiera._lf35)
package ambiera {
public class _lf35 {
private var _kd3461:_qy2760;
public function _lf35(_arg1:_qy2760):void{
_kd3461 = _arg1;
}
public static function _er1964(_arg1:int):uint{
var _local2:int;
var _local3:int;
if (_arg1 < _xk85._cx34){
_local2 = ((_arg1 % 3) + 1);
_local3 = (_arg1 / 3);
return (_tv609._ts1885(_local3, _local2));
};
return (0);
}
public static function _kg1707(_arg1:_xk85):Array{
var _local4:uint;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:uint;
var _local9:int;
var _local2:Array = new Array();
var _local3:int;
while (_local3 < _xk85._cx34) {
if (_arg1._wy1447(_local3) == _xk85._sw2759){
_local4 = _er1964(_local3);
_local5 = _tv609._cy1922(_local4);
if (_local5 > 1){
_local6 = _tv609._gh3308(_local4);
_local7 = 0;
while (_local7 < _xk85._cx34) {
if ((((_local7 < _local3)) && ((_arg1._wy1447(_local7) == _xk85._mu2397)))){
_local8 = _er1964(_local7);
_local9 = _tv609._gh3308(_local8);
if ((((_local9 == _local6)) && ((_tv609._cy1922(_local8) == (_local5 - 1))))){
_local2.push(_local4);
break;
};
};
_local7++;
};
} else {
_local2.push(_local4);
};
};
_local3++;
};
return (_local2);
}
public static function _ja1235(_arg1:_xk85):Array{
var _local2:Array = new Array();
var _local3:int;
while (_local3 < _xk85._cx34) {
if (_arg1._wy1447(_local3) == _xk85._mu2397){
_local2.push(_er1964(_local3));
};
_local3++;
};
return (_local2);
}
public static function _ag252(_arg1:uint):int{
var _local2:int;
while (_local2 < _xk85._cx34) {
if (_arg1 == _er1964(_local2)){
return (_local2);
};
_local2++;
};
return (-1);
}
public static function _yj429(_arg1:_xk85, _arg2:Array, _arg3:Array):void{
var _local5:uint;
_gr2237(_arg1, _tv609._ln279, _tv609._tm582, 0, (_tv609._qx1241 - 1), _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, _tv609._tm582, _tv609._qx1241, (_tv609._uj694 - 1), _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, _tv609._tm582, _tv609._uj694, 127, _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, _tv609._mf3313, 0, (_tv609._qx1241 - 1), _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, _tv609._mf3313, _tv609._qx1241, (_tv609._uj694 - 1), _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, _tv609._mf3313, _tv609._uj694, 127, _arg2, _arg3);
_gr2237(_arg1, _tv609._ln279, (_tv609._mf3313 | _tv609._tm582), 0, 127, _arg2, _arg3);
var _local4:int;
while (_local4 < _xk85._vb958) {
_local5 = _arg1._gc424(_local4);
if (((_local5) && ((_tv609._xe421(_local5) == _tv609._gh3226)))){
_arg2.push(_local5);
_arg3.push(1);
};
_local4++;
};
}
private static function _gr2237(_arg1:_xk85, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Array, _arg7:Array):void{
var _local10:uint;
var _local11:int;
var _local8:int;
var _local9:int;
while (_local9 < _xk85._vb958) {
_local10 = _arg1._gc424(_local9);
if (((_local10) && ((_tv609._xe421(_local10) == _arg2)))){
if (((!(_arg3)) || (((_arg3) && ((_arg3 == _tv609._lr3188(_local10))))))){
_local11 = _tv609._cy1922(_local10);
if ((((_local11 >= _arg4)) && ((_local11 <= _arg5)))){
if (!_local8){
_arg6.push(_local10);
};
_local8++;
};
};
};
_local9++;
};
if (_local8){
_arg7.push(_local8);
};
}
}
}//package ambiera
Section 489
//_lj345 (ambiera._lj345)
package ambiera {
import flash.xml.*;
public class _lj345 {
private var _uu1831:int;
private var tiles:Array;
private var name:String;
private var _kl1618:Boolean;
private var _ne25:Boolean;
private var waves:int;
private var mapdescr:String;
private var _rw1517:int;
private var _oj3099:_lj345;
private var _ic1337:int;
private var items:Array;
private var _al43:Boolean;
private var uid:int;
private var _fn2585:Boolean;
private var _xa220:int;
public static const _jf3508:int = 1;
public static const _io2118:int = 0;
public static const _oq2371:int = 2;
public function _lj345():void{
_rw1517 = _io2118;
uid = -1;
_ne25 = false;
_fn2585 = true;
_kl1618 = false;
_uu1831 = 0;
mapdescr = "";
waves = 0;
_al43 = false;
}
public function _jh2116():int{
return (_rw1517);
}
public function _ay728(_arg1:int, _arg2:int):void{
var _local4:_cf177;
_xa220 = _arg1;
_ic1337 = _arg2;
tiles = new Array();
items = new Array();
var _local3:int;
while (_local3 < (_arg1 * _arg2)) {
_local4 = new _cf177();
_local4._aw772 = _ks1885._qi1773;
_local4._js3192 = 0;
tiles[_local3] = _local4;
_local3++;
};
}
public function _vn2234(_arg1:String):Boolean{
var _ua1328:XMLDocument;
var _ca2960:int;
var _yo2284:int;
var _ix3360:_cf177;
var _ns1989:int;
var _pt2443:XMLNode;
var _ow1725:XMLNode;
var _gu1816:int;
var _nj2184:int;
var token:String;
var _de2614:int;
var _af2227:int;
var x:int;
var y:int;
var t:uint;
var item:_ps2722;
var _ub3510 = _arg1;
_kl1618 = true;
_fn2585 = false;
items = new Array();
try {
_ua1328 = new XMLDocument(_ub3510);
if (_ua1328.firstChild){
if (_ua1328.firstChild.attributes.name != null){
};
if (_ua1328.firstChild.attributes.width != null){
_xa220 = int(_ua1328.firstChild.attributes.width);
};
if (_ua1328.firstChild.attributes.height != null){
_ic1337 = int(_ua1328.firstChild.attributes.height);
};
if (_ua1328.firstChild.attributes.style != null){
_rw1517 = int(_ua1328.firstChild.attributes.style);
};
_ri1792(_xa220, _ic1337);
_ns1989 = 0;
while (_ns1989 < _ua1328.firstChild.childNodes.length) {
_pt2443 = _ua1328.firstChild.childNodes[_ns1989];
if (((_pt2443) && ((_pt2443.nodeName == "tiles")))){
if (_pt2443.childNodes.length > 0){
_ow1725 = _pt2443.childNodes[0];
_ub3510 = String(_ow1725.nodeValue);
_ub3510 = _we3492._th1037(_ub3510, "\n", "");
_gu1816 = 0;
_nj2184 = 0;
while (true) {
token = _yf3431(_ub3510, _gu1816);
if (((!(token)) || (!(token.length)))){
break;
};
_gu1816 = (_gu1816 + (token.length + 1));
if (token == "r"){
token = _yf3431(_ub3510, _gu1816);
_gu1816 = (_gu1816 + (token.length + 1));
_de2614 = int(token);
token = _yf3431(_ub3510, _gu1816);
_gu1816 = (_gu1816 + (token.length + 1));
_ca2960 = int(token);
token = _yf3431(_ub3510, _gu1816);
_gu1816 = (_gu1816 + (token.length + 1));
_yo2284 = (int(token) * -1);
_af2227 = 0;
while (_af2227 < (_de2614 + 1)) {
if (_ca2960 != 0){
_ix3360 = new _cf177();
_ix3360._aw772 = _ca2960;
_ix3360._js3192 = _yo2284;
tiles[_nj2184] = _ix3360;
};
_nj2184 = (_nj2184 + 1);
_af2227 = (_af2227 + 1);
};
} else {
_ca2960 = int(token);
token = _yf3431(_ub3510, _gu1816);
_gu1816 = (_gu1816 + (token.length + 1));
_yo2284 = (int(token) * -1);
if (_ca2960 != 0){
_ix3360 = new _cf177();
_ix3360._aw772 = _ca2960;
_ix3360._js3192 = _yo2284;
tiles[_nj2184] = _ix3360;
};
_nj2184 = (_nj2184 + 1);
};
};
_ni2054.print(("deserialized amount of tiles: " + _nj2184));
};
} else {
if (((_pt2443) && ((_pt2443.nodeName == "item")))){
x = int(_pt2443.attributes.x);
y = int(_pt2443.attributes.y);
t = uint(("0x" + _pt2443.attributes.t));
item = _tv609._ol2939(t, x, y);
if (item){
addItem(item);
};
};
};
_ns1989 = (_ns1989 + 1);
};
};
} catch(err:Error) {
_ni2054._ev1283(err);
return (false);
};
return (true);
}
public function setName(_arg1:String):void{
if (name != _arg1){
name = _arg1;
_fn2585 = true;
};
}
public function getName():String{
return (name);
}
public function _bw91(_arg1:String):void{
mapdescr = _arg1;
}
public function _im3379():int{
return (waves);
}
public function _ri1792(_arg1:int, _arg2:int):void{
_xa220 = _arg1;
_ic1337 = _arg2;
tiles = new Array();
items = new Array();
var _local3:int;
while (_local3 < (_arg1 * _arg2)) {
tiles[_local3] = null;
_local3++;
};
}
public function _hs2250():Boolean{
return (_fn2585);
}
public function _ne367(_arg1:int):void{
waves = _arg1;
}
public function getUID():int{
return (uid);
}
public function _ta684(_arg1:int, _arg2:int, _arg3:int):void{
tiles[((_arg2 * _xa220) + _arg1)]._aw772 = _arg3;
}
public function _xw1652():int{
return (_xa220);
}
public function _ux2778(_arg1:Boolean):void{
_kl1618 = _arg1;
}
public function _fq697():Boolean{
return (_al43);
}
public function _np721(_arg1:_ps2722):void{
var _local2:int;
while (_local2 < items.length) {
if (items[_local2] == _arg1){
if (_local2 == (items.length - 1)){
items.pop();
} else {
items.splice(_local2, 1);
};
break;
};
_local2++;
};
}
private function _yf3431(_arg1:String, _arg2:int):String{
if (((!(_arg1)) || ((_arg2 >= _arg1.length)))){
return ("");
};
var _local3:int = _arg1.indexOf(" ", _arg2);
var _local4:int = ((_local3)!=-1) ? (_local3 - _arg2) : (_arg1.length - _arg2);
if (!_local4){
return ("");
};
return (_arg1.substr(_arg2, _local4));
}
public function _fl2890(_arg1:Boolean):void{
_fn2585 = _arg1;
}
public function _pr2557(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:_cf177;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local5 = new _cf177();
_local5._aw772 = _arg3;
_local5._js3192 = _arg4;
tiles[((_arg2 * _xa220) + _arg1)] = _local5;
};
}
public function _cq2440():String{
return (mapdescr);
}
public function _hk2716(_arg1:int, _arg2:int):int{
var _local3:_cf177;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = tiles[((_arg2 * _xa220) + _arg1)];
if (_local3){
return (_local3._aw772);
};
};
return (0);
}
public function _ks567(_arg1:int):void{
uid = _arg1;
}
public function _ak1857():Boolean{
return (_kl1618);
}
public function addItem(_arg1:_ps2722):void{
items.push(_arg1);
}
public function _xv555():Array{
return (tiles);
}
public function _ic1388(_arg1:int, _arg2:int):Boolean{
return ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337))));
}
public function _xr3453():Array{
return (items);
}
public function _rm3317(_arg1:Boolean):void{
_al43 = _arg1;
}
private function _ib3382():Array{
var _local1:Array = new Array();
return (_local1);
}
public function _nr1810(_arg1:int, _arg2:int):int{
var _local3:_cf177;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = tiles[((_arg2 * _xa220) + _arg1)];
if (_local3){
return (_local3._js3192);
};
};
return (0);
}
public function deleteInstance():void{
_oj3099 = null;
}
public function _nw296():int{
return (_ic1337);
}
public function _pd1523(_arg1:int):void{
if (_arg1 != _rw1517){
_fn2585 = true;
_rw1517 = _arg1;
};
}
public function _so2022():Boolean{
return (_ne25);
}
public function _qi1235(_arg1:Boolean=true):_lj345{
var _local4:_ps2722;
if (_ne25){
return (null);
};
if (_oj3099){
return (_oj3099);
};
if (!_arg1){
return (null);
};
var _local2:_lj345 = new _lj345();
_oj3099 = _local2;
_local2._ne25 = true;
_local2._ks567(getUID());
_local2._ri1792(_xa220, _ic1337);
_local2.setName(name);
_local2._pd1523(_rw1517);
_local2._ne367(waves);
_local2._rm3317(_al43);
var _local3:int;
_local2.tiles = tiles;
_local3 = 0;
while (_local3 < items.length) {
_local4 = items[_local3];
if (_local4){
_local2.items.push(_local4._km234());
} else {
_local2.items.push(null);
};
_local3++;
};
return (_local2);
}
public function _eu1822(_arg1:int, _arg2:int):_cf177{
var _local3:_cf177;
if ((((((((_arg1 >= 0)) && ((_arg1 < _xa220)))) && ((_arg2 >= 0)))) && ((_arg2 < _ic1337)))){
_local3 = tiles[((_arg2 * _xa220) + _arg1)];
return (_local3);
};
return (null);
}
public function _kb367(_arg1:int):void{
_uu1831 = _arg1;
}
public function _mn2166():int{
return (_uu1831);
}
}
}//package ambiera
Section 490
//_nd3324 (ambiera._nd3324)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class _nd3324 extends _yn3144 {
private var _rv1865:Class;
private var _hp512:TextField;
private var _aq2721:Class;
private var _je2241:int;// = 9
private var _bu1623:int;// = 6
protected var _gf938:_ad1194;
private var _cp121:Class;
private var _uw270:Class;
private var _mv2811:Class;
private var _xk1581:Class;
private var _dn1533:Class;
private var _sv1261:Class;
private var _du2341:Class;
private var _sg994:TextField;
private var _gm2200:Class;
private var _qt2251:Array;
private var _sd1360:Class;
private var _pa1154:Class;
private var _ti1271:Boolean;// = true
private var _kd3461:_qy2760;
private var _pe661:Class;
private var _va3162:Class;
private var _ci1046:Class;
private var _ty150:TextField;
private var intro:_hy184;
private var _py3290:Class;
private var _ht3414:int;// = 0
private var _eg178:Class;
private var _sc1933:Class;
private var _is2919:Array;
public function _nd3324(_arg1:DisplayObjectContainer, _arg2:_qy2760){
_pa1154 = _nd3324__pa1154;
_uw270 = _nd3324__uw270;
_eg178 = _nd3324__eg178;
_va3162 = _nd3324__va3162;
_gm2200 = _nd3324__gm2200;
_sd1360 = _nd3324__sd1360;
_pe661 = _nd3324__pe661;
_du2341 = _nd3324__du2341;
_dn1533 = _nd3324__dn1533;
_ci1046 = _nd3324__ci1046;
_rv1865 = _nd3324__rv1865;
_sc1933 = _nd3324__sc1933;
_mv2811 = _nd3324__mv2811;
_sv1261 = _nd3324__sv1261;
_xk1581 = _nd3324__xk1581;
_py3290 = _nd3324__py3290;
_aq2721 = _nd3324__aq2721;
_cp121 = _nd3324__cp121;
if (_cr1330._ii566){
};
super(_arg1, _arg1.width, _arg1.height);
_kd3461 = _arg2;
y = 0;
var _local3:Bitmap = new _eg178();
addChild(_local3);
var _local4:Number = ((_arg1.width * 0.85) / _local3.width);
_local3.width = (_local3.width * _local4);
_local3.height = (_local3.height * _local4);
_local3.x = (_arg1.width - _local3.width);
_local3.y = ((_arg1.height - _local3.height) - 10);
_local3.alpha = 0.4;
var _local5:Bitmap = new _pa1154();
addChild(_local5);
_local5.x = ((_arg1.width - _local5.width) / 2);
_local5.y = 40;
var _local6:Bitmap = new _uw270();
var _local7:Sprite = new Sprite();
_local7.useHandCursor = true;
_local7.buttonMode = true;
addChild(_local7);
_local7.addChild(_local6);
_local7.x = 0;
_local7.y = ((_arg1.height - _local6.height) - 10);
_local7.addEventListener(MouseEvent.MOUSE_DOWN, _cl2080);
var _local8 = 7;
var _local9:_oc1935 = new _oc1935(_hy2528._uo1952, this);
_local9.addEventListener(MouseEvent.MOUSE_DOWN, _nv1289);
_local9.y = ((_local5.y + _local5.height) + 60);
_bu2527(_arg1, _local9);
var _local10:_oc1935 = new _oc1935(_hy2528._un2577, this);
_local10.addEventListener(MouseEvent.MOUSE_DOWN, _lh1446);
_local10.y = ((_local9.y + _local9.height) + _local8);
_bu2527(_arg1, _local10);
var _local11:_oc1935 = new _oc1935(_hy2528._cq1538, this);
_local11.addEventListener(MouseEvent.MOUSE_DOWN, _cl2080);
_local11.y = ((_local10.y + _local10.height) + _local8);
_bu2527(_arg1, _local11);
var _local12:TextField = _ks1885._nd1190(false);
_local12.text = _hy2528._gj413;
_local12.textColor = _ks1885._he2727;
addChild(_local12);
_local12.y = ((_arg1.height - _local12.height) - 10);
_local12.x = ((_arg1.width - _local12.width) - 5);
_gf938 = new _ad1194(this);
_gf938.x = 20;
_gf938.y = (_local5.y + _local5.height);
_gf938.width = ((_arg1.width - 20) - _gf938.x);
_gf938.height = ((_arg1.height - _gf938.y) - 50);
_gf938._fr2300();
_gf938.visible = false;
_gf938._ne1505("Campaign");
_gf938._ne1505("Endless Game");
_gf938._ne1505("Premium Maps");
var _local13:_oc1935 = new _oc1935(_hy2528._cc1492, _gf938);
_local13.addEventListener(MouseEvent.MOUSE_DOWN, _bj3385);
_local13.y = (_gf938.height - 40);
var _local14:_oc1935 = new _oc1935(_hy2528._gs1488, _gf938);
_local14.addEventListener(MouseEvent.MOUSE_DOWN, _gg2103);
_local14.y = _local13.y;
_local13.x = ((((_gf938.width - _local14.width) - _local13.width) - 5) / 2);
_local14.x = ((_local13.x + _local13.width) + 5);
var _local15:TextField = _ks1885._nd1190(false);
_local15.text = "Please select a map to play:";
_gf938.addChild(_local15);
_local15.y = 30;
_local15.x = 10;
_ty150 = _ks1885._nd1190(false);
_ty150.multiline = true;
_ty150.wordWrap = true;
_gf938.addItem(_ty150, 0);
_hp512 = _ks1885._nd1190(false);
_hp512.multiline = true;
_hp512.wordWrap = true;
_gf938.addItem(_hp512, 1);
_sg994 = _ks1885._nd1190(false);
_sg994.multiline = true;
_sg994.wordWrap = true;
_gf938.addItem(_sg994, 2);
if (_kd3461._ij3282()){
_ti1271 = false;
};
if (_ti1271){
intro = new _hy184(this);
} else {
_fm197._oj3099._ey741(_fm197._dj2375);
};
}
private function _lh1446(_arg1:Event):void{
var _local2:URLRequest = new URLRequest(_cr1330._jl3342);
navigateToURL(_local2);
}
private function _gg2103(_arg1:Event):void{
_jj2140();
}
private function _oq3167(_arg1:Event):void{
this.visible = false;
}
private function _wj1553(_arg1:Event):void{
var _local2:_oc1935 = (_arg1.target as _oc1935);
if (!_local2.enabled){
return;
};
var _local3:int = _local2._bi2092();
if (_gf938._td246() == 0){
_ht3414 = _local3;
} else {
if (_gf938._td246() == 1){
_bu1623 = _local3;
} else {
if (_gf938._td246() == 2){
_je2241 = _local3;
};
};
};
_be2496();
}
private function _yc1295(_arg1:int):int{
var _local2 = 6;
if (_arg1 == 1){
_local2 = 3;
};
if (_arg1 == 2){
_local2 = 6;
};
return (_local2);
}
private function _bj3385(_arg1:Event):void{
var _af2227 = _arg1;
if (_gf938._td246() == 2){
if (!_kd3461._ij3282()){
_fm197._oj3099._ub2003(_ks1885._ap3355);
_kd3461._wq1201(4);
return;
};
if (!_kd3461._wl3125(true, false)){
return;
};
if (!_xd3169._oj3099._ap2180){
_fm197._oj3099._ub2003(_ks1885._ap3355);
_rt2598._oj3099._gd375(_hy2528._je316, _hy2528._ys2384, _hy2528._ve3033, _hy2528._yu2070, function ():void{
_kd3461._wa414();
}, _di1224._ve902);
return;
};
};
var _ui1037:int;
if (_gf938._td246() == 0){
_ui1037 = _ht3414;
} else {
if (_gf938._td246() == 1){
_ui1037 = _bu1623;
} else {
if (_gf938._td246() == 2){
_ui1037 = _je2241;
};
};
};
this.visible = false;
_kd3461._mp1055(_ui1037);
}
public function _ke2889():void{
_mf2545();
_be2496();
_gf938.visible = true;
}
private function _bu2527(_arg1:DisplayObjectContainer, _arg2:_oc1935):void{
_arg2.x = ((_arg1.width - _arg2.width) / 2);
}
private function _cl2080(_arg1:Event):void{
var _local2:URLRequest = new URLRequest(_cr1330._uq3190);
navigateToURL(_local2);
}
private function _xg1672(_arg1:int):BitmapData{
if (!_qt2251){
_qt2251 = new Array();
_qt2251.push(new _va3162());
_qt2251.push(new _gm2200());
_qt2251.push(new _sd1360());
_qt2251.push(new _pe661());
_qt2251.push(new _du2341());
_qt2251.push(new _dn1533());
_qt2251.push(new _ci1046());
_qt2251.push(new _rv1865());
_qt2251.push(new _sc1933());
_qt2251.push(new _mv2811());
_qt2251.push(new _sv1261());
_qt2251.push(new _xk1581());
_qt2251.push(new _py3290());
_qt2251.push(new _aq2721());
_qt2251.push(new _cp121());
};
if ((((_arg1 < 0)) || ((_arg1 >= _qt2251.length)))){
return (null);
};
return (_qt2251[_arg1].bitmapData);
}
private function _be2496():void{
var _local3:int;
var _local4:int;
var _local5:_dm739;
var _local6:String;
var _local7:_lj345;
if (!_is2919){
return;
};
_ty150.text = "";
_hp512.text = "";
_sg994.text = "";
var _local1:int;
var _local2:int;
while (_local2 < 3) {
_local3 = _yc1295(_local2);
_local4 = 0;
while (_local4 < _local3) {
_local5 = (_is2919[(_local1 * 2)] as _dm739);
_local5._yi2089((((((_ht3414 == _local1)) || ((_bu1623 == _local1)))) || ((_je2241 == _local1))));
_local6 = "";
_local7 = _kd3461._yj3030()._mn2858(_local1);
if (_local7){
_local6 = _local7._cq2440();
};
if (_ht3414 == _local1){
_ty150.text = _local6;
};
if (_bu1623 == _local1){
_hp512.text = _local6;
};
if (_je2241 == _local1){
_sg994.text = _local6;
};
_local1++;
_local4++;
};
_local2++;
};
}
private function _nv1289(_arg1:Event):void{
_ke2889();
}
public function _jj2140():void{
_gf938.visible = false;
}
private function _mf2545():void{
var _local1:int;
var _local10:DisplayObject;
var _local11:int;
var _local12:Boolean;
var _local13:_dm739;
var _local14:String;
var _local15:_lj345;
var _local16:TextField;
var _local17:TextFormat;
if (_is2919){
_local1 = 0;
while (_local1 < _is2919.length) {
_local10 = _is2919[_local1];
_local10.parent.removeChild(_local10);
_local1++;
};
};
_is2919 = new Array();
var _local2 = 80;
var _local3 = 79;
var _local4:Number = 1;
var _local5 = 25;
var _local6 = 10;
if (_gf938.width < (_local6 + ((_local2 + 5) * 6))){
_local4 = (_gf938.width / (_local6 + ((_local2 + 5) * 6)));
_local2 = (_local2 * _local4);
_local3 = (_local3 * _local4);
} else {
_local5 = (((_gf938.height - 100) - _local3) / 2);
_local6 = ((_gf938.width - (_local6 + ((_local2 + 5) * 6))) / 2);
};
_ty150.x = _local6;
_hp512.x = _local6;
_sg994.x = _local6;
_ty150.y = ((_local5 + _local3) + 20);
_hp512.y = _ty150.y;
_sg994.y = _ty150.y;
_ty150.width = ((_gf938.width - _ty150.x) - _local6);
_hp512.width = _ty150.width;
_sg994.width = _ty150.width;
_ty150.height = 60;
_hp512.height = _ty150.height;
_sg994.height = _ty150.height;
var _local7:int;
var _local8:int = _dh260._gb3421();
var _local9:int;
while (_local9 < 3) {
_local11 = _yc1295(_local9);
_local1 = 0;
while (_local1 < _local11) {
_local12 = false;
if ((((_local9 == 0)) && ((_local7 > _local8)))){
_local12 = true;
};
_local13 = new _dm739(null, _xg1672(_local7), _local2, _local3, _local7, _local4, true);
_local13.addEventListener(MouseEvent.MOUSE_DOWN, _wj1553);
_local13.enabled = !(_local12);
_local13.x = (_local6 + (_local1 * (_local2 + 5)));
_local13.y = _local5;
_gf938.addItem(_local13, _local9);
_local14 = "";
_local15 = _kd3461._yj3030()._mn2858(_local7);
if (_local15){
_local14 = _local15.getName();
};
_local16 = _ks1885._nd1190(false);
_local16.text = (_local12) ? "not unlocked yet" : _local14;
_local16.x = _local13.x;
_local16.multiline = true;
_local16.y = (_local13.y + _local13.height);
_local17 = _local16.getTextFormat();
_local17.font = "Arial";
_local17.size = 8;
_local16.setTextFormat(_local17);
_gf938.addItem(_local16, _local9);
_local7++;
_is2919.push(_local13);
_is2919.push(_local16);
_local1++;
};
_local9++;
};
}
public function _tc1725():void{
if (_ht3414 < (_yc1295(0) - 1)){
_ht3414++;
};
}
}
}//package ambiera
Section 491
//_nd3324__aq2721 (ambiera._nd3324__aq2721)
package ambiera {
import mx.core.*;
public class _nd3324__aq2721 extends BitmapAsset {
}
}//package ambiera
Section 492
//_nd3324__ci1046 (ambiera._nd3324__ci1046)
package ambiera {
import mx.core.*;
public class _nd3324__ci1046 extends BitmapAsset {
}
}//package ambiera
Section 493
//_nd3324__cp121 (ambiera._nd3324__cp121)
package ambiera {
import mx.core.*;
public class _nd3324__cp121 extends BitmapAsset {
}
}//package ambiera
Section 494
//_nd3324__dn1533 (ambiera._nd3324__dn1533)
package ambiera {
import mx.core.*;
public class _nd3324__dn1533 extends BitmapAsset {
}
}//package ambiera
Section 495
//_nd3324__du2341 (ambiera._nd3324__du2341)
package ambiera {
import mx.core.*;
public class _nd3324__du2341 extends BitmapAsset {
}
}//package ambiera
Section 496
//_nd3324__eg178 (ambiera._nd3324__eg178)
package ambiera {
import mx.core.*;
public class _nd3324__eg178 extends BitmapAsset {
}
}//package ambiera
Section 497
//_nd3324__gm2200 (ambiera._nd3324__gm2200)
package ambiera {
import mx.core.*;
public class _nd3324__gm2200 extends BitmapAsset {
}
}//package ambiera
Section 498
//_nd3324__mv2811 (ambiera._nd3324__mv2811)
package ambiera {
import mx.core.*;
public class _nd3324__mv2811 extends BitmapAsset {
}
}//package ambiera
Section 499
//_nd3324__pa1154 (ambiera._nd3324__pa1154)
package ambiera {
import mx.core.*;
public class _nd3324__pa1154 extends BitmapAsset {
}
}//package ambiera
Section 500
//_nd3324__pe661 (ambiera._nd3324__pe661)
package ambiera {
import mx.core.*;
public class _nd3324__pe661 extends BitmapAsset {
}
}//package ambiera
Section 501
//_nd3324__py3290 (ambiera._nd3324__py3290)
package ambiera {
import mx.core.*;
public class _nd3324__py3290 extends BitmapAsset {
}
}//package ambiera
Section 502
//_nd3324__rv1865 (ambiera._nd3324__rv1865)
package ambiera {
import mx.core.*;
public class _nd3324__rv1865 extends BitmapAsset {
}
}//package ambiera
Section 503
//_nd3324__sc1933 (ambiera._nd3324__sc1933)
package ambiera {
import mx.core.*;
public class _nd3324__sc1933 extends BitmapAsset {
}
}//package ambiera
Section 504
//_nd3324__sd1360 (ambiera._nd3324__sd1360)
package ambiera {
import mx.core.*;
public class _nd3324__sd1360 extends BitmapAsset {
}
}//package ambiera
Section 505
//_nd3324__sv1261 (ambiera._nd3324__sv1261)
package ambiera {
import mx.core.*;
public class _nd3324__sv1261 extends BitmapAsset {
}
}//package ambiera
Section 506
//_nd3324__uw270 (ambiera._nd3324__uw270)
package ambiera {
import mx.core.*;
public class _nd3324__uw270 extends BitmapAsset {
}
}//package ambiera
Section 507
//_nd3324__va3162 (ambiera._nd3324__va3162)
package ambiera {
import mx.core.*;
public class _nd3324__va3162 extends BitmapAsset {
}
}//package ambiera
Section 508
//_nd3324__xk1581 (ambiera._nd3324__xk1581)
package ambiera {
import mx.core.*;
public class _nd3324__xk1581 extends BitmapAsset {
}
}//package ambiera
Section 509
//_ni2054 (ambiera._ni2054)
package ambiera {
import flash.events.*;
import flash.net.*;
public class _ni2054 {
public static var WARN:Number = 4;
public static var INFO:Number = 2;
public static var ERROR:Number = 8;
private static var _vp492:LocalConnection = null;
public static function error(_arg1:Object):void{
dump(_arg1, ERROR);
}
public static function print(_arg1:Object):void{
dump(_arg1, INFO);
}
public static function _ev1283(_arg1:Error, _arg2:String=""):void{
dump((((_arg2 + _arg1.message) + " stack: ") + _arg1.getStackTrace()), ERROR);
}
public static function info(_arg1:Object):void{
dump(_arg1, INFO);
}
private static function _xp22():void{
if (_cr1330._ss3414){
_vp492 = new LocalConnection();
_vp492.addEventListener(StatusEvent.STATUS, _ff3361);
};
}
public static function _ff3361(_arg1:Event):void{
}
public static function dump(_arg1:Object, _arg2:Number):void{
var _md2741 = _arg1;
var level = _arg2;
if (!_cr1330._ss3414){
return;
};
if (_vp492 == null){
_xp22();
};
if (isNaN(level)){
level = 2;
};
try {
_vp492.send("_tracer", "onMessage", _md2741, level);
} catch(err:Error) {
};
}
public static function warn(_arg1:Object):void{
dump(_arg1, WARN);
}
}
}//package ambiera
Section 510
//_nm2373 (ambiera._nm2373)
package ambiera {
import flash.xml.*;
public class _nm2373 {
private var name:String;
private var uid:int;
private var ispublic:Boolean;
private var _ot197:Array;
private var _xv1154:Array;
private var _jx540:Array;
private var _ln3255:int;
private var _ur266:_ot519;
private var description:String;
public function _nm2373():void{
_xv1154 = new Array();
_ot197 = new Array();
_jx540 = new Array();
_ur266 = null;
name = _hy2528._qh3478;
uid = -1;
_ln3255 = -1;
description = "";
ispublic = false;
}
public function getName():String{
return (name);
}
public function _lo3267():int{
return (_ln3255);
}
public function _fu463():int{
return ((_xv1154) ? _xv1154.length : 0);
}
public function _ut1713(_arg1:_ot519):void{
var _local2:int;
if (_arg1){
_local2 = 1;
while (!(_ts3065(_local2))) {
_local2++;
};
_arg1.uid = _local2;
_ot197.push(_arg1);
};
}
public function _wo612():Array{
return (_jx540);
}
private function _ts3065(_arg1:int):Boolean{
var _local3:_ot519;
if (!_ot197){
return (true);
};
var _local2:int;
while (_local2 < _ot197.length) {
_local3 = _ot197[_local2];
if (((_local3) && ((_local3.uid == _arg1)))){
return (false);
};
_local2++;
};
return (true);
}
public function setName(_arg1:String):void{
name = _arg1;
}
private function _yn925(_arg1:int):Boolean{
var _local3:_lj345;
if (!_xv1154){
return (true);
};
var _local2:int;
while (_local2 < _xv1154.length) {
_local3 = _xv1154[_local2];
if (((_local3) && ((_local3.getUID() == _arg1)))){
return (false);
};
_local2++;
};
return (true);
}
public function _ks567(_arg1:int):void{
uid = _arg1;
}
public function _xb2967():_ot519{
var _local1:int;
if (!_ur266){
_local1 = 0;
while (_local1 < _ot197.length) {
if (((_ot197[_local1]) && ((_ot197[_local1]._rr2640 == _ot519._hq3282)))){
_ur266 = _ot197[_local1];
break;
};
_local1++;
};
};
return (_ur266);
}
public function _fg1749():Array{
return (_ot197);
}
public function _en1578(_arg1:int):String{
var _local2:_lj345 = _qv1265(_arg1);
if (_local2){
return (_local2.getName());
};
return (_hy2528._dc2933);
}
public function _he2261(_arg1:int):void{
if (((_jx540) && ((_arg1 < _jx540.length)))){
_jx540.splice(_arg1, 1);
};
}
public function _ay3295(_arg1:Boolean):void{
ispublic = _arg1;
}
public function _lk1031(_arg1:int):void{
_ln3255 = _arg1;
}
public function _ly1930():String{
var _local3:_lj345;
var _local4:String;
var _local5:_ot519;
var _local1:String = new String();
_local1 = (_local1 + (((((((("<realm name=\"" + _we3492.encode(name)) + "\" defaultmap=\"") + String(_ln3255)) + "\" ispublic=\"") + (ispublic) ? "1" : "0") + "\" uid=\"") + String(uid)) + "\">\n"));
var _local2:int;
_local1 = (_local1 + (("<descr>" + _we3492.encode(description)) + "</descr>\n"));
_local2 = 0;
while (_local2 < _xv1154.length) {
_local3 = _xv1154[_local2];
_local1 = (_local1 + (((("<map uid=\"" + _local3.getUID()) + "\" name=\"") + _we3492.encode(_local3.getName())) + "\" />\n"));
_local2++;
};
_local2 = 0;
while (_local2 < _jx540.length) {
_local4 = _jx540[_local2];
_local1 = (_local1 + (("<dlg txt=\"" + _we3492.encode(_local4)) + "\" />\n"));
_local2++;
};
_local2 = 0;
while (_local2 < _ot197.length) {
_local5 = _ot197[_local2];
_local1 = (_local1 + (((((((((((((((((((((((((((((((("<q name=\"" + _we3492.encode(_local5.name)) + "\" uid=\"") + String(_local5.uid)) + "\" tid=\"") + String(_local5._rr2640)) + "\" itt=\"") + _local5.itemType.toString(16)) + "\" itc=\"") + String(_local5._kb109)) + "\" rmap=\"") + String(_local5._po1435)) + "\" sq=\"") + String(_local5._ka875)) + "\" nfq=\"") + String(_local5._dw2674)) + "\" lms=\"") + String(_local5._om777)) + "\" lmf=\"") + String(_local5._en1708)) + "\" re=\"") + String(_local5._xq1580)) + "\" rg=\"") + String(_local5._mk1959)) + "\" \n\tstrbeg=\"") + _we3492.encode(_local5._vi1748)) + "\" \n\tstrdesc=\"") + _we3492.encode(_local5._vl2038)) + "\" \n\tstracc=\"") + _we3492.encode(_local5._vv2934)) + "\" \n\tstrfn=\"") + _we3492.encode(_local5._pf2480)) + "\" "));
if ((((((_local5._rr2640 == _ot519._hq3282)) || ((_local5._rr2640 == _ot519._nm2095)))) || ((_local5._rr2640 == _ot519._fy173)))){
_local1 = (_local1 + (("mrq1=\"" + String(_local5._wp3400)) + "\" "));
_local1 = (_local1 + (("mrq2=\"" + String(_local5._qg381)) + "\" "));
_local1 = (_local1 + (("mrq3=\"" + String(_local5._in3160)) + "\" "));
_local1 = (_local1 + (("mqlq=\"" + String(_local5._kt3079)) + "\" "));
};
_local1 = (_local1 + "/>\n");
_local2++;
};
_local1 = (_local1 + "</realm>");
return (_local1);
}
public function _gs3054(_arg1:_lj345):void{
var _local2:int;
if (_arg1){
_local2 = 0;
while (!(_yn925(_local2))) {
_local2++;
};
_arg1._ks567(_local2);
_xv1154.push(_arg1);
};
}
public function getUID():int{
return (uid);
}
public function _lr3330():void{
var _local1:int;
while (_local1 < _xv1154.length) {
if (_xv1154[_local1]){
_xv1154[_local1].deleteInstance();
};
_local1++;
};
}
public function _bn1309():_lj345{
if (!_xv1154){
return (null);
};
if (_ln3255 == -1){
if (_xv1154.length > 0){
return (_xv1154[0]);
};
};
return (_qv1265(_ln3255));
}
public function _qv1265(_arg1:int):_lj345{
if (!_xv1154){
return (null);
};
var _local2:int;
while (_local2 < _xv1154.length) {
if (((_xv1154[_local2]) && ((_xv1154[_local2].getUID() == _arg1)))){
return (_xv1154[_local2]);
};
_local2++;
};
return (null);
}
public function _mn2858(_arg1:int):_lj345{
if (!_xv1154){
return (null);
};
if ((((_arg1 >= 0)) && ((_arg1 < _xv1154.length)))){
return (_xv1154[_arg1]);
};
return (null);
}
public function _sb1470(_arg1:int):_ot519{
if (!_ot197){
return (null);
};
var _local2:int;
while (_local2 < _ot197.length) {
if (((_ot197[_local2]) && ((_ot197[_local2].uid == _arg1)))){
return (_ot197[_local2]);
};
_local2++;
};
return (null);
}
public function _ip1545(_arg1:int):String{
var _local2:_ot519 = _sb1470(_arg1);
if (_local2){
return (_local2.name);
};
return (_hy2528._dc2933);
}
public function _vb292():String{
return (description);
}
public function _yp1652(_arg1:String):void{
description = _arg1;
}
public function _ug1553(_arg1:int):void{
if (((_ot197) && ((_arg1 < _ot197.length)))){
_ot197.splice(_arg1, 1);
};
}
public function _tu2887():Boolean{
return (ispublic);
}
public function _ke1083(_arg1:_lj345):void{
var _local2:int;
while (_local2 < _xv1154.length) {
if (_xv1154[_local2] == _arg1){
if (_local2 == (_xv1154.length - 1)){
_xv1154.pop();
} else {
_xv1154.splice(_local2, 1);
};
break;
};
_local2++;
};
if (((_arg1) && ((_arg1.getUID() == _ln3255)))){
_ln3255 = -1;
};
}
public function _rn2099(_arg1:String):void{
_jx540.push(_arg1);
}
public function _mt2976():Array{
return (_xv1154);
}
public function _vn2234(_arg1:String):Boolean{
var _ua1328:XMLDocument;
var _ns1989:int;
var _pt2443:XMLNode;
var _ia1216:_lj345;
var d:String;
var _xs225:_ot519;
var _ow1725:XMLNode;
var _ub3510 = _arg1;
if (!_xv1154){
_xv1154 = new Array();
};
if (!_jx540){
_jx540 = new Array();
};
if (!_ot197){
_ot197 = new Array();
};
try {
_ua1328 = new XMLDocument(_ub3510);
if (_ua1328.firstChild){
if (_ua1328.firstChild.attributes.name != null){
name = _we3492.decode(_ua1328.firstChild.attributes.name);
};
if (_ua1328.firstChild.attributes.uid != null){
uid = int(_ua1328.firstChild.attributes.uid);
};
if (_ua1328.firstChild.attributes.defaultmap != null){
_ln3255 = int(_ua1328.firstChild.attributes.defaultmap);
};
if (_ua1328.firstChild.attributes.ispublic != null){
ispublic = (int(_ua1328.firstChild.attributes.ispublic) == 1);
};
_ns1989 = 0;
while (_ns1989 < _ua1328.firstChild.childNodes.length) {
_pt2443 = _ua1328.firstChild.childNodes[_ns1989];
if (_pt2443.nodeName == "map"){
_ia1216 = new _lj345();
if (_pt2443.attributes.uid != null){
_ia1216._ks567(int(_pt2443.attributes.uid));
};
if (_pt2443.attributes.name != null){
_ia1216.setName(_we3492.decode(_pt2443.attributes.name));
};
if (_pt2443.attributes.mapdescr != null){
_ia1216._bw91(_we3492.decode(_pt2443.attributes.mapdescr));
};
if (_pt2443.attributes.iscampaign != null){
_ia1216._rm3317(!((int(_pt2443.attributes.iscampaign) == 0)));
};
if (_pt2443.attributes.waves != null){
_ia1216._ne367(int(_pt2443.attributes.waves));
};
_xv1154.push(_ia1216);
} else {
if (_pt2443.nodeName == "dlg"){
d = "";
if (_pt2443.attributes.txt != null){
d = _we3492.decode(_pt2443.attributes.txt);
};
_jx540.push(d);
} else {
if (_pt2443.nodeName == "q"){
_xs225 = new _ot519();
if (_pt2443.attributes.name != null){
_xs225.name = _we3492.decode(_pt2443.attributes.name);
};
if (_pt2443.attributes.uid != null){
_xs225.uid = int(_pt2443.attributes.uid);
};
if (_pt2443.attributes.tid != null){
_xs225._rr2640 = int(_pt2443.attributes.tid);
};
if (_pt2443.attributes.itt != null){
_xs225.itemType = uint(("0x" + String(_pt2443.attributes.itt)));
};
if (_pt2443.attributes.itc != null){
_xs225._kb109 = int(_pt2443.attributes.itc);
};
if (_pt2443.attributes.rmap != null){
_xs225._po1435 = int(_pt2443.attributes.rmap);
};
if (_pt2443.attributes.sq != null){
_xs225._ka875 = int(_pt2443.attributes.sq);
};
if (_pt2443.attributes.nfq != null){
_xs225._dw2674 = int(_pt2443.attributes.nfq);
};
if (_pt2443.attributes.lms != null){
_xs225._om777 = int(_pt2443.attributes.lms);
};
if (_pt2443.attributes.lmf != null){
_xs225._en1708 = int(_pt2443.attributes.lmf);
};
if (_pt2443.attributes.re != null){
_xs225._xq1580 = int(_pt2443.attributes.re);
};
if (_pt2443.attributes.rg != null){
_xs225._mk1959 = int(_pt2443.attributes.rg);
};
if (_pt2443.attributes.strbeg != null){
_xs225._vi1748 = _we3492.decode(_pt2443.attributes.strbeg);
};
if (_pt2443.attributes.strdesc != null){
_xs225._vl2038 = _we3492.decode(_pt2443.attributes.strdesc);
};
if (_pt2443.attributes.stracc != null){
_xs225._vv2934 = _we3492.decode(_pt2443.attributes.stracc);
};
if (_pt2443.attributes.strfn != null){
_xs225._pf2480 = _we3492.decode(_pt2443.attributes.strfn);
};
if (_pt2443.attributes.mrq1 != null){
_xs225._wp3400 = int(_pt2443.attributes.mrq1);
};
if (_pt2443.attributes.mrq2 != null){
_xs225._qg381 = int(_pt2443.attributes.mrq2);
};
if (_pt2443.attributes.mrq3 != null){
_xs225._in3160 = int(_pt2443.attributes.mrq3);
};
if (_pt2443.attributes.mqlq != null){
_xs225._kt3079 = int(_pt2443.attributes.mqlq);
};
_ot197.push(_xs225);
} else {
if (_pt2443.nodeName == "descr"){
if (_pt2443.childNodes.length > 0){
_ow1725 = _pt2443.childNodes[0];
if (_ow1725){
_yp1652(_we3492.decode(String(_ow1725.nodeValue)));
};
};
};
};
};
};
_ns1989 = (_ns1989 + 1);
};
};
} catch(err:Error) {
_ni2054._ev1283(err);
return (false);
};
return (true);
}
}
}//package ambiera
Section 511
//_nq1314 (ambiera._nq1314)
package ambiera {
import flash.geom.*;
public class _nq1314 extends _ex557 {
public var _je2779:_xv1434;
public var _jx593:Point;
private var _rx3520:int;
public var _ak3347:uint;
public var _ry1713:int;
public var _iv2583:int;
public function _nq1314(_arg1:_ps2722, _arg2:Point){
super(_arg1);
_jx593 = _arg2;
_rx3520 = 0;
_mx3324.y = (_mx3324.y + 30);
x = (20 - _mx3324.x);
y = (10 - _mx3324.y);
}
public function _qk936(_arg1:int):void{
_mx3324.y = (_mx3324.y - _rx3520);
y = (y + _rx3520);
_rx3520 = _arg1;
_mx3324.y = (_mx3324.y + _arg1);
y = (y - _arg1);
}
public function _mk2523():int{
return (_rx3520);
}
}
}//package ambiera
Section 512
//_nu2220 (ambiera._nu2220)
package ambiera {
import flash.events.*;
import flash.net.*;
public class _nu2220 {
private var Loader:URLLoader;
public static const _nd2739:String = "lr";
public static const _be1663:String = "ce";
public static const _fj3466:String = "fp";
public static const _pc1058:String = "ep";
public static const _pd2008:String = "nc";
public static const _wj1542:String = "li";
public static const _gg3085:String = "dc";
public static const _ng528:String = "sr";
public static const _mu3001:String = "sc";
public static const _cp3082:String = "ca";
public static const _bd2207:String = "lm";
public static const _tv2847:String = "dr";
public static const _mf161:String = "cp";
public function _nu2220(){
Loader = null;
}
private function _aa2762(_arg1:URLVariables, _arg2:Boolean):Boolean{
var _local3:String;
var _local4:String;
if ((((_arg1.cmd == _nd2739)) && ((_arg1.realmid == 0)))){
if (_arg2){
return (true);
};
_local3 = _dq2173._tf2694();
_rt2598._oj3099._ql17(_local3);
return (true);
};
if ((((((_arg1.cmd == _bd2207)) && ((_arg1.realmid == 0)))) && (_dq2173._hg1894(int(_arg1.mapid))))){
if (_arg2){
return (true);
};
_local4 = _dq2173._xr1552(int(_arg1.mapid));
_rt2598._oj3099._ql17(_local4);
return (true);
};
return (false);
}
private function _la2781(_arg1:Event):void{
var _local2 = "IOError";
var _local3:IOErrorEvent = (_arg1 as IOErrorEvent);
if (_local3){
_local2 = (_local2 + (("'" + _local3.text) + "'"));
};
_rt2598._oj3099._sg1220(_local2);
}
public function _gu1091():void{
if (Loader){
try {
Loader.close();
} catch(err:Error) {
};
};
}
public function load(_arg1:URLVariables):Boolean{
var _eq2930:URLVariables;
var _qh1617:String;
var _kc565:Object;
var _qt436:String;
var _ub3510:String;
var _kp1233 = _arg1;
if (((_cr1330._rd2711) && (_aa2762(_kp1233, true)))){
_gu1091();
Loader = null;
return (true);
};
if (_cr1330._hu2720){
return (false);
};
var request:URLRequest = new URLRequest();
request.url = _cr1330._aj2955;
request.method = URLRequestMethod.POST;
request.data = _kp1233;
_eq2930 = new URLVariables();
for (_qh1617 in _kp1233) {
_kc565 = _kp1233[_qh1617];
_qt436 = (_kc565 as String);
_eq2930[_qh1617] = _kc565;
if (_qh1617 != "realm"){
if (_qt436){
_eq2930[("irrlen" + _qh1617)] = (_qt436.length.toString(10) + "E");
};
};
};
request.data = _eq2930;
Loader = new URLLoader();
Loader.dataFormat = URLLoaderDataFormat.TEXT;
Loader.addEventListener(Event.COMPLETE, _gs2478);
Loader.addEventListener(IOErrorEvent.IO_ERROR, _la2781);
Loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _jx679);
try {
Loader.load(request);
} catch(err:Error) {
if (_aa2762(_eq2930, true)){
_gu1091();
Loader = null;
return (true);
};
_ub3510 = (("Direct Error '" + err) + "'");
_rt2598._oj3099._sg1220(_ub3510);
_ni2054._ev1283(err, "CM67 ");
return (false);
};
return (true);
}
private function _jx679(_arg1:Event):void{
var _local2 = "Security Error";
var _local3:SecurityErrorEvent = (_arg1 as SecurityErrorEvent);
if (_local3){
_local2 = (_local2 + ((" '" + _local3.text) + "'"));
};
_rt2598._oj3099._sg1220(_local2);
}
private function _gs2478(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
_rt2598._oj3099._ql17((_local2.data as String));
}
public function _du1000(_arg1:URLVariables):void{
if (Loader == null){
_aa2762(_arg1, false);
};
}
public static function _sq679(_arg1:String):URLVariables{
var _local2:URLVariables = new URLVariables();
_local2.cmd = _arg1;
_local2.pw = _xd3169._oj3099._rf417();
_local2.user = _xd3169._oj3099._rm1940;
var _local3 = (((_arg1 + _local2.pw) + _local2.user) + "irr#!$");
_local3 = _he2800._ls1111(_local3);
_local3 = _local3.substr(0, 6);
_local2.hsh = _local3;
return (_local2);
}
}
}//package ambiera
Section 513
//_oc1935 (ambiera._oc1935)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
public class _oc1935 extends SimpleButton {
protected var _cw2959:int;
protected var _br2308:Number;
protected var _tv751:Boolean;
protected var _hk1250:Sprite;
protected var _df2667:Sprite;
protected var _hp1473:String;
protected var _ms997:BitmapData;
protected var _ov501:int;
protected var _pr449:int;
protected var _yl1911:_kn2066;
protected var _xj880:Boolean;
public function _oc1935(_arg1:String, _arg2:DisplayObjectContainer=null, _arg3:BitmapData=null, _arg4:int=-1, _arg5:int=-1, _arg6:Number=1, _arg7:Boolean=false, _arg8:int=-1){
_tv751 = false;
_xj880 = _arg7;
_ov501 = _arg4;
_pr449 = _arg5;
_cw2959 = _arg8;
_ms997 = _arg3;
_br2308 = _arg6;
_rk3161(_arg1, true, _arg3);
if (_arg2){
_arg2.addChild(this);
};
addEventListener(MouseEvent.MOUSE_DOWN, _nq1093, false, 0, true);
}
public function _cb2006(_arg1:String):void{
_hp1473 = _arg1;
}
public function _yi2089(_arg1:Boolean):void{
if (_arg1){
upState = _hk1250;
downState = _df2667;
} else {
upState = _df2667;
downState = _hk1250;
};
}
public function _qb1280(_arg1:int, _arg2:int):Boolean{
return ((((((((_arg1 > x)) && ((_arg1 < (x + width))))) && ((_arg2 > y)))) && ((_arg2 < (y + height)))));
}
private function _jf205(_arg1:Event):void{
_yl1911._jf205(this);
}
private function _nq1093(_arg1:Event):void{
if (!_tv751){
_fm197._oj3099._hp839();
};
}
public function _be3299(_arg1:Boolean):void{
_tv751 = _arg1;
}
public function _mr1085(_arg1:String):void{
_rk3161(_arg1, false, _ms997);
}
public function _ub2042(_arg1:String, _arg2:BitmapData):void{
_ms997 = _arg2;
_rk3161(_arg1, false, _ms997);
}
public function _fr2300(_arg1:Boolean, _arg2:Sprite, _arg3:Number, _arg4:Number, _arg5:BitmapData=null):void{
var _local10:Number;
var _local11:int;
var _local12:int;
var _local6:Bitmap = _ks1885._oj3099._yi1856;
_arg2.graphics.beginBitmapFill(_local6.bitmapData);
_arg2.graphics.drawRect(0, 0, _arg3, _arg4);
_arg2.graphics.endFill();
var _local7:Matrix;
if (_arg5){
_local10 = _br2308;
if ((((_local10 > 0.99)) && ((_local10 < 1.01)))){
if (_xj880){
_local11 = ((_arg3 - _arg5.width) / 2);
_local12 = ((_arg4 - _arg5.height) / 2);
if (!_arg1){
_local12 = (_local12 + 2);
};
_local7 = new Matrix();
_local7.tx = _local11;
_local7.ty = _local12;
_arg2.graphics.beginBitmapFill(_arg5, _local7, false);
_arg2.graphics.drawRect(_local11, _local12, _arg5.width, _arg5.height);
_arg2.graphics.endFill();
} else {
_arg2.graphics.beginBitmapFill(_arg5, null, false);
_arg2.graphics.drawRect(0, 0, Math.min(_arg3, _arg5.width), Math.min(_arg4, _arg5.height));
_arg2.graphics.endFill();
};
} else {
_local7 = new Matrix();
_local7.a = _local10;
_local7.d = _local10;
_arg2.graphics.beginBitmapFill(_arg5, _local7, false);
_arg2.graphics.drawRect(0, 0, Math.min(_arg3, (_arg5.width * _local10)), Math.min(_arg4, (_arg5.height * _local10)));
_arg2.graphics.endFill();
};
};
var _local8:Number = 3;
var _local9:Number = 3;
if (_arg1){
_arg2.graphics.beginFill(0xFFFFFF, 0.1);
} else {
_arg2.graphics.beginFill(0, 0.5);
};
_arg2.graphics.drawRect(0, 0, (_arg3 - _local8), _local9);
_arg2.graphics.drawRect((_arg3 - _local8), 0, _local8, (_arg4 - _local9));
_arg2.graphics.endFill();
if (_arg1){
_arg2.graphics.beginFill(0, 0.5);
} else {
_arg2.graphics.beginFill(0xFFFFFF, 0.1);
};
_arg2.graphics.drawRect(0, (_arg4 - _local9), _arg3, _local9);
_arg2.graphics.drawRect(0, _local9, _local8, (_arg4 - _local9));
_arg2.graphics.endFill();
}
public function _el862():String{
return (_hp1473);
}
private function _ir1602(_arg1:Event):void{
_yl1911._ir1602(this);
}
protected function _rk3161(_arg1:String, _arg2:Boolean, _arg3:BitmapData=null):void{
var _local4:TextField;
_local4 = _ks1885._nd1190(true);
_local4.text = (_arg1) ? _arg1 : "";
_local4.textColor = _ks1885._nb1049;
var _local5:TextField = _ks1885._nd1190(true);
_local5.text = (_arg1) ? _arg1 : "";
var _local6:TextField = _ks1885._nd1190(true);
_local6.text = (_arg1) ? _arg1 : "";
var _local7:Number = (_local4.width + 15);
if (_local7 < 50){
_local7 = 50;
};
if (_pr449 != -1){
_local7 = _pr449;
};
var _local8:Number = 25;
if (_cw2959 != -1){
_local8 = _cw2959;
};
_local4.x = ((_local7 - _local4.width) / 2);
_local4.y = ((_local8 - _local4.height) / 2);
_local5.x = _local4.x;
_local5.y = (_local4.y + 1);
_local6.x = _local4.x;
_local6.y = _local4.y;
var _local9:Sprite = new Sprite();
_fr2300(true, _local9, _local7, _local8, _arg3);
_local9.addChild(_local4);
var _local10:Sprite = new Sprite();
_fr2300(false, _local10, _local7, _local8, _arg3);
_local10.addChild(_local5);
var _local11:Sprite = new Sprite();
_fr2300(true, _local11, _local7, _local8, _arg3);
_local11.addChild(_local6);
upState = _local9;
overState = _local11;
downState = _local10;
useHandCursor = false;
hitTestState = _local9;
_df2667 = _local9;
_hk1250 = _local10;
if (_arg2){
width = _local7;
height = _local8;
};
}
public function _sk293(_arg1:_kn2066, _arg2:String=null):void{
if (!_yl1911){
addEventListener(MouseEvent.MOUSE_OVER, _jf205, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, _ir1602, false, 0, true);
};
_hp1473 = _arg2;
_yl1911 = _arg1;
}
public function _bi2092():int{
return (_ov501);
}
}
}//package ambiera
Section 514
//_of687 (ambiera._of687)
package ambiera {
import flash.display.*;
import flash.geom.*;
public class _of687 extends Sprite {
public var _cd2564:Point;
public var _br2964:int;
public var _ct774:BitmapData;
public function _of687(){
_cd2564 = new Point(0, 0);
}
public function _tg184():void{
var _local3:Matrix;
graphics.clear();
var _local1 = 20;
var _local2 = 20;
if (_ct774 != null){
_local1 = _ct774.width;
_local2 = _ct774.height;
_local3 = new Matrix();
_local3.tx = ((_local1 / 2) * -1);
_local3.ty = ((_local2 / 2) * -1);
graphics.beginBitmapFill(_ct774, _local3, false);
graphics.drawRect(((_local1 / 2) * -1), ((_local2 / 2) * -1), _local1, _local2);
graphics.endFill();
} else {
graphics.beginFill(0xFFFF00);
graphics.drawRect(((_local1 / 2) * -1), ((_local2 / 2) * -1), _local1, _local2);
graphics.endFill();
};
}
}
}//package ambiera
Section 515
//_ot519 (ambiera._ot519)
package ambiera {
public class _ot519 {
public var _ka875:int;
public var _kb109:int;
public var _vv2934:String;
public var _mk1959:int;
public var name:String;
public var _pf2480:String;
public var uid:int;
public var _dw2674:int;
public var _qg381:int;
public var _wp3400:int;
public var _in3160:int;
public var _rr2640:int;
public var _po1435:int;
public var _kt3079:int;
public var itemType:uint;
public var _en1708:int;
public var _om777:int;
public var _xq1580:int;
public var _vi1748:String;
public var _vl2038:String;
public static const _hq3282:int = 3;
public static const _hu1351:int = 4;
public static const _fm2148:int = 6;
public static const _mu2118:int = 0;
public static const _bf730:int = 2;
public static const _od3259:int = 1;
public static const _nm2095:int = 5;
public static const _fy173:int = 6;
public function _ot519():void{
uid = 0;
name = "";
_rr2640 = _od3259;
_ka875 = 0;
_dw2674 = 0;
_om777 = -1;
_en1708 = -1;
_po1435 = -1;
itemType = 0;
_kb109 = 0;
_xq1580 = 0;
_mk1959 = 0;
_vi1748 = "";
_vl2038 = "";
_vv2934 = "";
_pf2480 = "";
_wp3400 = 0;
_qg381 = 0;
_in3160 = 0;
_kt3079 = 0;
}
public function _oi1465():String{
var _local1:int = name.indexOf("/");
if (_local1 != -1){
return (name.substring((_local1 + 1)));
};
return ("");
}
public function _kl3227():String{
var _local1:int = name.indexOf("/");
if (_local1 != -1){
return (name.substring(0, _local1));
};
return (name);
}
}
}//package ambiera
Section 516
//_pi2679 (ambiera._pi2679)
package ambiera {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class _pi2679 extends _xv1434 {
protected var _cf3411:int;
protected var _dy767:Bitmap;
protected var _ch2427:int;
protected var _ur491:int;
protected var _up671:Boolean;
protected var _nm2269:Number;
protected var _ya804:int;
protected var _rk3003:int;
public function _pi2679(_arg1:_ex557, _arg2:_ps2722, _arg3:_gm2472, _arg4:int){
super(_arg1, _arg2, _arg3);
_rk3003 = _arg4;
_nm2269 = _xq320();
_up671 = _tv609._et2264(_arg2.itemType);
}
override public function _ac1551(_arg1:uint):int{
return (0);
}
public function _sn2607(_arg1:int):void{
if (!_dy767){
return;
};
var _local2:int = (_fw398.width * (1 - (_arg1 / _xq320())));
if (_local2 < 10){
_local2 = 10;
};
if (_local2 > ((_fw398.width * 3) / 4)){
_local2 = ((_fw398.width * 3) / 4);
};
_dy767.width = _local2;
_dy767.x = ((_fw398.width - _dy767.width) / 2);
_dy767.y = (_fw398.height - _dy767.height);
}
private function _yb367():_ex557{
var _local5:Array;
var _local6:int;
var _local7:_xv1434;
var _local8:_ps2722;
var _local9:int;
var _local10:int;
var _local11:Number;
if (_ya804 > 0){
_ya804--;
return (null);
};
_ya804 = ((_tv609._pt849(_el3187.itemType) * Math.random()) / 4);
if (_ya804 > 20){
_ya804 = 20;
};
var _local1:_ju1817 = _wf88._qf3320();
var _local2:int = _tv609._tj2613(_el3187.itemType);
var _local3 = 999999;
var _local4:_ex557;
if (_local1){
_local5 = _local1._pn2449();
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6];
if (((_local7) && (!(_local7._qm436())))){
_local8 = _local7._fn629();
if (_tv609._iq3184(_el3187.itemType, _local8.itemType)){
_local9 = (_el3187.x - _local8.x);
_local10 = (_el3187.y - _local8.y);
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
if ((((_local11 < _local2)) && ((_local11 < _local3)))){
if (_ck1797(_local7._oi311(), true)){
_local3 = _local11;
_local4 = _local7._oi311();
};
};
};
};
_local6++;
};
};
return (_local4);
}
override public function _vb2548():void{
var _local1:int;
var _local2:_ex557;
if (_dy767){
_local1 = getTimer();
if (((!(_ur491)) || (((_local1 - _ur491) >= 200)))){
_ur491 = _local1;
_ch2427++;
if (_ch2427 > 3){
_ch2427 = 0;
};
_dy767.bitmapData = _ks1885._oj3099._ky3293[_ch2427].bitmapData;
};
};
if (_up671){
if (_cf3411 <= 0){
_local2 = _yb367();
if (((_local2) && (_se3092(_local2)))){
_cf3411 = _tv609._pt849(_el3187.itemType);
};
} else {
_cf3411--;
if (_ya804 > 0){
_ya804 = 0;
};
};
};
}
public function _ea73():void{
if (!_dy767){
return;
};
if (_fw398){
_fw398.removeChild(_dy767);
};
_dy767 = null;
}
override public function _xq320():int{
return (_tv609._gy127(_el3187.itemType));
}
public function _pi101(_arg1:Number):void{
_nm2269 = _arg1;
}
public function _ke2730():void{
_nm2269 = _xq320();
_ea73();
}
private function _se3092(_arg1:_ex557):Boolean{
var _local5:int;
var _local6:int;
var _local2:uint;
var _local3:int = _tv609._ug265(_el3187.itemType);
if (_local3 > 2){
_local3 = 2;
};
switch (_tv609._cy1922(_el3187.itemType)){
case _ks1885._oa2678:
_local2 = _tv609._ts1885(_tv609._ee138, 1);
break;
case _ks1885._yd2351:
_local2 = _tv609._ts1885(_tv609._aa2858, 1);
break;
case _ks1885._mh3098:
_local2 = _tv609._ts1885(_tv609._vn912, (_local3 + 1));
break;
case _ks1885._ph1453:
_local2 = _tv609._ts1885(_tv609._gl1446, (_local3 + 1));
break;
case _ks1885._tk3087:
_local2 = _tv609._ts1885(_tv609._jn27, (_local3 + 1));
break;
};
var _local4:_ju1817 = _wf88._qf3320();
if (_local4){
_local4._xt264(_oi311(), _tv609._gh3308(_local2));
};
var _local7:Point;
_local5 = _arg1._fn629().x;
_local6 = _arg1._fn629().y;
_local7 = _arg1._xc1677();
_arg1._xc1677().x = (_local7.x + _wf88._rw1773(_local5, _local6));
_local7.y = (_local7.y + _wf88._ou1013(_local5, _local6));
_local4._wa2220(_local2, this, _local7);
return (true);
}
public function _fd1038():void{
if (_dy767){
return;
};
if (_fw398){
_dy767 = new Bitmap(_ks1885._oj3099._ky3293[0].bitmapData);
_dy767.blendMode = BlendMode.ADD;
_dy767.x = ((_fw398.width - _dy767.width) / 2);
_dy767.y = (_fw398.height - _dy767.height);
_fw398.addChild(_dy767);
};
}
override public function _cg411():Number{
return (_nm2269);
}
public function _ey2311():int{
return (_rk3003);
}
override public function _an2934(_arg1:_ex557, _arg2:Number, _arg3:uint):Boolean{
var _local4:_ju1817;
if (_nm2269 <= 0){
return (false);
};
_nm2269 = (_nm2269 - _arg2);
if (_nm2269 <= 0){
_nm2269 = 0;
_local4 = _wf88._qf3320();
if (_local4){
_local4._jm2978(_fw398);
};
return (true);
};
if (_nm2269 < ((_xq320() * 90) / 100)){
_fd1038();
_sn2607(_nm2269);
};
return (false);
}
}
}//package ambiera
Section 517
//_ps2722 (ambiera._ps2722)
package ambiera {
public class _ps2722 {
public var x:int;
public var y:int;
public var itemType:uint;
public function _km234():_ps2722{
var _local1:_ps2722 = new _ps2722();
_local1.x = x;
_local1.y = y;
_local1.itemType = itemType;
return (_local1);
}
public function _ly1930():String{
return ((((((("<item x=\"" + x) + "\" y=\"") + y) + "\" t=\"") + itemType.toString(16)) + "\" />"));
}
}
}//package ambiera
Section 518
//_qj279 (ambiera._qj279)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
public class _qj279 {
private var _qc394:TextField;
private var _gk1050:int;
private var _ld764:int;
public function _qj279(_arg1:DisplayObjectContainer){
_gk1050 = 0;
_ld764 = getTimer();
_qc394 = new TextField();
_arg1.addChild(_qc394);
_qc394.text = "FPS: 0";
_qc394.textColor = 0xFFFFFF;
_qc394.selectable = false;
_qc394.wordWrap = false;
_qc394.multiline = false;
_qc394.autoSize = TextFieldAutoSize.LEFT;
_arg1.addEventListener(Event.ENTER_FRAME, _jj1244);
}
public function _jj1244(_arg1:Event):void{
var _local3:int;
_gk1050 = (_gk1050 + 1);
var _local2:int = getTimer();
if ((_local2 - _ld764) > 1000){
_local3 = ((_gk1050 / (_local2 - _ld764)) * 1000);
_qc394.text = (((("FPS: " + _local3) + " mem:") + (System.totalMemory / 0x0400)) + "K");
_ld764 = _local2;
_gk1050 = 0;
};
}
}
}//package ambiera
Section 519
//_qy2760 (ambiera._qy2760)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
public class _qy2760 extends _td2957 implements _hj325, _ju1817, _kn2066 {
private const _nn2297:int = 3;
private const _rl3079:int = 3000;
private const _ni2972:int = 9;
private var _vd262:int;
private var _fi1420:Boolean;
private var _ji160:_yn3144;
private var _mh1282:int;
private var _qe1959:_oc1935;
private var _ww3089:_oc1935;
private var _ea2459:int;
private var _mt1162:int;
private var _bm2560:int;
private var _tu3483:int;
private var _ml2027:int;// = 3000
private var _qr2743:int;
private var _mw2340:_oc1935;// = null
private var _ho2873:int;
private var _gy1070:_ex557;// = null
private var _ft2176:int;
private var _et2781:Timer;
private var _lt335:Boolean;
private var _de424:_oc1935;
private var _kc444:TextField;
private var _mt2396:Array;
private var _eq1140:TextField;
private var _md1190:Boolean;
private var _fd3164:_oc1935;
private var _tr2657:UIComponent;
private var _bm1386:_lj345;
private var _vu1904:Array;
private var _qi1086:_ex557;// = null
private var _sk3123:int;
private var _cf1134:int;
private var _oi1702:Array;
private var _bl363:int;
private var _js3212:Point;
private var _jh3140:Array;
private var _ey860:int;
private var _ur2623:int;
private var _ow711:int;
private var _xi2045:int;
private var _to248:TextField;
private var _ee1989:_oc1935;
private var _wf88:_gm2472;
private var _os934:int;
private var _bp1939:TextField;
private var _ci1802:_yn3144;
private var _sq3430:Array;
private var _lf3149:int;
private var _hq1085:uint;
private var _ou3234:int;
private var _kp3237:int;
private var _tg2264:Bitmap;
private var _vg827:_ex557;// = null
private var _uc2468:_oc1935;
private var _nh2293:TextField;
private var _ng76:uint;
private var _oq2280:_oc1935;
private var _ql1535:int;
private var _kg2800:_cm768;
private var _hp3483:Boolean;// = false
private var _ee2627:int;
private var _rx2819:int;
private var _bs1483:_oc1935;
private var _pi3455:int;
private var _rl2941:int;
private var _db1279:_cb3393;
private var _qq2436:TextField;
private var _pj1084:Array;
private var _ug1959:Array;
private var _pw3183:Boolean;// = false
private var _ow3310:_oc1935;// = null
private var _oo2907:_oc1935;
private var _tk1096:_oc1935;
private var _jk426:_nd3324;
private var _jg3059:Sprite;
private var _rf893:int;
private var _wy3325:int;
private var _nj2490:int;
private var _av2377:uint;
private var _ng1882:int;
private var _aw2736:Sprite;
private var _mf505:int;
private var _ax1209:int;
private var _ak2986:int;
private var _br1122:int;
private var _jg82:int;
private var _yb1229:Array;
private var _nd256:_oc1935;
private var _ik1385:Array;
private var _tn1081:TextField;
private var _al2319:int;
private var _ip1192:int;
public static var _qk2392:_qy2760;
public function _qy2760(_arg1:DisplayObjectContainer, _arg2:_gm2472, _arg3:_nm2373=null, _arg4:_lj345=null){
var _local6:Object;
var _local7:int;
var _local8:String;
var _local9:String;
super();
_qk2392 = this;
_lt335 = false;
_xh1372 = _arg1;
_wf88 = _arg2;
_ae2040 = _arg3;
_dt2656 = _arg4;
_pi1133 = new _xk85();
_nj2490 = -1;
_ou3234 = -1;
_ak2986 = 0;
_kg2800 = new _cm768(this);
_fi1420 = false;
_rl2941 = 0;
_jg82 = 0;
_mf505 = 0;
_pi3455 = 0;
_ur2623 = 0;
_pi1133._rt2504(_xk85._jm741, _tv609._ba3524(_tv609._id3076, _tv609._db2186));
_pi1133._rt2504(_xk85._yl1063, _tv609._rk158(true, false, _tv609._db2186));
_av2377 = 0;
_hq1085 = _lf35._er1964(0);
_pi1133._gs545(0);
_pi1133._xc2990(false);
if (_dt2656){
_ee1989 = new _oc1935((_cr1330._kd1934) ? _hy2528._uc2468 : _hy2528._cu3400, _arg1);
_ee1989.addEventListener(MouseEvent.MOUSE_DOWN, _qw2782);
_ee1989.x = (_arg1.width - _ee1989.width);
_ee1989.y = 0;
_kr1260();
} else {
_local6 = Application.application.parameters;
_local7 = 0;
for (_local8 in _local6) {
_local9 = String(_local6[_local8]);
if (_local8 == "realmid"){
_local7 = int(_local9);
};
};
if (_local7 > 0){
_pi1133._ek1528(_local7);
};
_av400(_local7);
if (!_jk426){
_jk426 = new _nd3324(_xh1372, this);
};
_uc2468 = new _oc1935(_hy2528._uc2468, _arg1);
_uc2468.addEventListener(MouseEvent.MOUSE_DOWN, _cb3146);
_uc2468.x = (_arg1.width - _uc2468.width);
_uc2468.y = 0;
_uc2468._sk293(this, _hy2528._mx814);
};
var _local5 = 45;
_ww3089 = new _oc1935(null, _arg1, _ks1885._oj3099._sa790.bitmapData, -1, _local5, 1, true);
_ww3089.addEventListener(MouseEvent.MOUSE_DOWN, _sr585);
_ww3089._sk293(this, _hy2528._dh1342);
if (_uc2468){
_ww3089.x = (_uc2468.x - _local5);
} else {
if (_ee1989){
_ww3089.x = (_ee1989.x - _local5);
};
};
_ww3089.y = 0;
_ww3089._be3299(true);
_nd256 = new _oc1935(_hy2528._xc2237, _arg1);
_nd256.x = (_ww3089.x - _nd256.width);
_nd256.y = 0;
_nd256.visible = false;
_nd256.addEventListener(MouseEvent.MOUSE_DOWN, _ee2941);
}
public function _te1288():Boolean{
return (false);
}
private function _qq90(_arg1:_xv1434, _arg2:uint, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):void{
var _local8:Point = new Point(0, 0);
_local8.x = _wf88._jf770(_arg3, _arg4);
_local8.y = _wf88._ix747(_arg3, _arg4);
var _local9:Point = new Point(0, 0);
_local9.x = _wf88._jf770(_arg5, _arg6);
_local9.y = _wf88._ix747(_arg5, _arg6);
_by1972(_arg1, _arg2, _local8, _local9, _arg7);
}
private function _fb1591():Boolean{
return ((_ea2459 > 0));
}
private function _wi2032(_arg1:int):int{
switch (_arg1){
case _ks1885._ud1618:
return (100);
case _ks1885._kq1981:
case _ks1885._rc1837:
return (400);
case _ks1885._ph675:
case _ks1885._ic2367:
return (600);
case _ks1885._vp431:
case _ks1885._ls1293:
case _ks1885._jw270:
return (50);
case _ks1885._oa2678:
return (250);
case _ks1885._yd2351:
return (300);
case _ks1885._mh3098:
return (450);
case _ks1885._ph1453:
return (550);
case _ks1885._tk3087:
return (700);
};
return (0);
}
private function _mm2859(_arg1:_ex557):int{
var _local3:_xv1434;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
if (!_arg1){
return (0);
};
var _local2:_ps2722 = _arg1._fn629();
if (((_tv609._ei1897(_local2.itemType)) && (!(_tv609._bb495(_local2.itemType))))){
_local3 = (_af1424(_arg1) as _xv1434);
if (_local3){
_local4 = _tv609._gy127(_local2.itemType);
_local5 = _local3._cg411();
_local6 = _tv609._cy1922(_local2.itemType);
_local7 = _wi2032(_local6);
if ((((((_local6 == _ks1885._mh3098)) || ((_local6 == _ks1885._ph1453)))) || ((_local6 == _ks1885._tk3087)))){
_local9 = _tv609._ug265(_local2.itemType);
if (_local9 == 1){
_local7 = (_local7 * 1.5);
} else {
if (_local9 >= 1){
_local7 = (_local7 * 2);
};
};
};
_local8 = ((1 - (_local5 / _local4)) * _local7);
return (_local8);
};
};
return (0);
}
override protected function _bl447():void{
if (_jg3059){
if (_jg3059.parent){
_jg3059.parent.removeChild(_jg3059);
};
_jg3059 = null;
_xx2221();
};
}
private function _uu2577(_arg1:_xv1434, _arg2:uint, _arg3:Point, _arg4:Point, _arg5:int):void{
var _local6:int = _tv609._cy1922(_arg2);
if (((!(_arg3)) || (!(_arg4)))){
return;
};
var _local7:Point = new Point(-((_arg4.y - _arg3.y)), (_arg4.x - _arg3.x));
_local7.normalize(40);
_by1972(_arg1, _arg2, _arg3, _arg4, _arg5);
if (_local6 > 1){
_by1972(_arg1, _arg2, _arg3, new Point((_arg4.x + _local7.x), (_arg4.y + _local7.y)), _arg5);
_by1972(_arg1, _arg2, _arg3, new Point((_arg4.x - _local7.x), (_arg4.y - _local7.y)), _arg5);
};
if (_local6 > 2){
_by1972(_arg1, _arg2, _arg3, new Point((_arg4.x + (_local7.x / 2)), (_arg4.y + (_local7.y / 2))), _arg5);
_by1972(_arg1, _arg2, _arg3, new Point((_arg4.x - (_local7.x / 2)), (_arg4.y - (_local7.y / 2))), _arg5);
};
}
public function _iw1600(_arg1:int):void{
if (_arg1 == 0){
return;
};
_by1802()._tu3100(_arg1);
if (_arg1 > 0){
_jy991(_hy2528.formatString(_hy2528._gx2238, String(_arg1)));
} else {
_jy991(_hy2528.formatString(_hy2528._vv2677, String((_arg1 * -1))));
};
_ef956();
_fm197._oj3099._ub2003(_ks1885._fj1821);
}
private function _sr585(_arg1:Event):void{
var _local2:_fm197 = _fm197._oj3099;
switch (_local2._uq741()){
case _fm197._of2190:
_local2._er512(_fm197._kq1517);
_ww3089._ub2042("", _ks1885._oj3099._ec2701.bitmapData);
break;
case _fm197._cy2890:
_local2._er512(_fm197._of2190);
_ww3089._ub2042("", _ks1885._oj3099._sa790.bitmapData);
_local2._hp839();
break;
case _fm197._kq1517:
_local2._er512(_fm197._cy2890);
_ww3089._ub2042("", _ks1885._oj3099._cy1089.bitmapData);
_local2._hp839();
break;
};
}
override public function _yo3115(_arg1:_xk85):void{
if (!_arg1){
return;
};
if (_pi1133 == _arg1){
return;
};
if (!_ae2040){
_ni2054.print("No realm set");
return;
};
var _local2:int = getTimer();
_pi1133._if1868(_local2);
_pi1133._xc2990(false);
_pi1133 = _arg1;
_ef956();
if (_pi1133._ri887() == _ae2040.getUID()){
_ae2040._lr3330();
_ld988();
} else {
_av400(_pi1133._ri887());
};
}
private function _tl2355():void{
if (((((!(_md1190)) && (_dt2656))) && ((_os934 > 0)))){
if (((_dt2656._fq697()) && ((_dt2656._im3379() > 0)))){
if (_os934 > _dt2656._im3379()){
_md1190 = true;
_fm197._oj3099._ub2003(_ks1885._up1329);
_rt2598._oj3099._gd375(_hy2528.formatString(_hy2528._ct1140, _dt2656._im3379()), _hy2528._ce2135, _hy2528._ui3139, _hy2528._bk675, function ():void{
_dn1797();
});
};
};
};
}
private function _dr2625(_arg1:Event):void{
var _local4:_oc1935;
var _local5:int;
var _local6:Array;
var _local7:uint;
var _local2:Object = _arg1.target;
var _local3:int;
while (_local3 < _ni2972) {
_local4 = _yb1229[_local3];
if (_local4 == _local2){
_local5 = (_local3 + _lf3149);
_local6 = _lf35._ja1235(_pi1133);
if ((((_local5 >= 0)) && ((_local5 < _local6.length)))){
_local7 = _local6[_local5];
_hq1085 = _local7;
_tc1388();
};
break;
};
_local3++;
};
}
private function _ts1347():void{
var _local2:Boolean;
var _local1:int = (_tm399(_mt1162) - _bm2560);
_ug740();
if (_local1 > 0){
if (_cf1134 <= 0){
if (_ru1312()){
_cf1134 = 2;
_bm2560++;
};
} else {
_cf1134--;
};
} else {
_local2 = (_tm399(_mt1162) == 1);
if (((((_local2) && ((_wy3325 <= 0)))) || (((!(_local2)) && ((_wy3325 <= 50)))))){
_mt1162++;
_bm2560 = 0;
_cf1134 = 300;
};
};
}
public function _jm2978(_arg1:_ex557):void{
var _local5:_ce283;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:_pi2679;
var _local10:_vs1897;
var _local11:int;
var _local12:int;
var _local13:_xr2882;
if (_gy1070 == _arg1){
_gy1070 = null;
};
var _local2:int = _arg1._fn629().x;
var _local3:int = _arg1._fn629().y;
if (_tv609._ei1897(_arg1._fn629().itemType)){
_local5 = _wf88._kr1759();
_local6 = _tv609._cy1922(_arg1._fn629().itemType);
_local7 = _lh2663(_local6);
_local8 = 0;
while (_local8 < _local7) {
_local11 = 0;
while (_local11 < _local7) {
_local5._do1248((_local2 - _local8), (_local3 - _local11), false);
_local11++;
};
_local8++;
};
_fm197._oj3099._ub2003(_ks1885._bc3492);
_local9 = (_af1424(_arg1) as _pi2679);
if (((_local9) && (!((_local9._ey2311() == -1))))){
_wf88._vu1561(_local9._ey2311());
};
_local10 = new _vs1897((_wf88._eu1822(_local2, _local3) as Sprite), 1000);
_local10._ok2588.x = 11;
_local10._ok2588.y = 0;
_local10._sb2007 = new Point(40, 5);
_local10._po63 = 500;
_local10._ta1432 = 1000;
_local10._dx757 = 300;
_local10._xm1857 = 30;
_local10._sw841 = 50;
_local10._bb3419 = 100;
_local10._is1448 = 0.025;
_local10._fh3405 = 0.05;
_local10._fu1480 = 1;
_local10._os1996 = 300;
_local10._wx1489 = 0.2;
_local10._fj467 = 30;
_local10._fi107 = _ks1885._oj3099._xf2390;
if (_tv609._bb495(_arg1._fn629().itemType)){
_ji160.visible = true;
_ea2459 = 0;
_nh2293.text = _hy2528.formatString(_hy2528._sj3311, (_mt1162 + 1));
_nh2293.x = ((_xh1372.width - _nh2293.width) / 2);
_fm197._oj3099._ub2003(_ks1885._lv3476);
};
};
var _local4:_xv1434 = _af1424(_arg1);
if (_vg827 == _arg1){
_lt1178(null);
};
_wf88._he1651(_arg1);
if (_tv609._fd2696(_local4._fn629().itemType)){
_local12 = _tv609._dw92(_local4._fn629().itemType);
_rf893 = (_rf893 + _local12);
_ow711 = (_ow711 + 31);
_local13 = new _xr2882((_wf88._eu1822(_local2, _local3) as Sprite), ("+" + _local12), 500);
_local13._je1740();
};
if (((_arg1.parent) && ((((((_arg1.parent.numChildren > 9)) || (_tv609._ei1897(_arg1._fn629().itemType)))) || ((_tv609._xe421(_arg1._fn629().itemType) == _tv609._cq3482)))))){
_arg1.parent.removeChild(_arg1);
};
_db1914(_local4);
_wd1378(_arg1._fn629().itemType, false);
_dt2656._np721(_arg1._fn629());
_wy1228(false);
_yw462();
}
private function _ug740():void{
if (_mt1162 == _os934){
return;
};
_os934 = _mt1162;
var _local1:uint;
var _local2:uint;
switch (_ru1770((_mt1162 - 1))){
case _tv609._as1086:
_local1 = _tv609._mf3458;
break;
case _tv609._bn2632:
_local1 = _tv609._xu1450;
break;
case _tv609._rf2481:
_local1 = _tv609._qj2375;
break;
case _tv609._eh3385:
_local1 = _tv609._mf3458;
_local2 = (_local2 | _tv609._lw1786);
break;
case _tv609._jn2396:
_local1 = _tv609._wl2095;
break;
case _tv609._gn3196:
_local1 = _tv609._qj2375;
break;
};
var _local3:uint = _tv609._lf1426(_local1, 0, _local2);
var _local4:BitmapData = _tv609._ue323(_local3);
if (((_eq1140) && (_local4))){
if (((_tg2264) && (_tg2264.parent))){
_tg2264.parent.removeChild(_tg2264);
};
_tg2264 = new Bitmap(_local4);
_eq1140.parent.addChild(_tg2264);
_tg2264.x = _eq1140.x;
_tg2264.y = (_eq1140.y + 15);
};
}
public function _mp1055(_arg1:int):void{
var _local2:_lj345 = _ae2040._qv1265(_arg1);
if (_local2){
_ae2040._lr3330();
_bi1390(_local2);
_kr1260();
};
}
public function _xf2603(_arg1:_ot519, _arg2:uint):String{
var _local3:String;
if (_arg1){
_local3 = _arg1._oi1465();
if (_local3 == ""){
return (_tv609._kl2415(_arg2));
};
return (_local3);
//unresolved jump
};
return (_tv609._kl2415(_arg2));
}
public function _nb670(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local6:int;
var _local7:int;
var _local8:int;
var _local4:_ce283 = _wf88._kr1759();
var _local5:int;
while (_local5 < (_arg3 * 2)) {
_local6 = 0;
while (_local6 < (_arg3 * 2)) {
_local7 = ((_local5 + _arg1) - _arg3);
_local8 = ((_local6 + _arg2) - _arg3);
if (((!(_local4._ic1388(_local7, _local8))) || (_local4._uc1272(_local7, _local8)))){
return (false);
};
_local6++;
};
_local5++;
};
return (true);
}
public function _by1802():_xk85{
return (_pi1133);
}
private function _md1742(_arg1:_ex557):void{
var _local2:_xv1434 = _af1424(_arg1);
if (_gy1070 == _arg1){
_gy1070 = null;
};
if (_vg827 == _arg1){
_lt1178(null);
};
_wf88._he1651(_arg1);
if (_arg1.parent){
_arg1.parent.removeChild(_arg1);
};
_db1914(_local2);
if (_arg1._fn629()){
_wd1378(_arg1._fn629().itemType, false);
};
_dt2656._np721(_arg1._fn629());
}
public function _jy991(_arg1:String, _arg2:Boolean=true):void{
var _local3:int;
var _local4:TextField;
var _local6:TextField;
if (_arg1 == null){
_arg1 = "";
};
_ak2986 = getTimer();
if (_arg2){
_local3 = 0;
while (_local3 < _pj1084.length) {
_local4 = _pj1084[_local3];
if (_local4.text == ""){
_local4.text = _arg1;
_local4.visible = true;
return;
};
_local3++;
};
};
_local3 = 0;
while (_local3 < (_pj1084.length - 1)) {
_local4 = _pj1084[_local3];
_local6 = _pj1084[(_local3 + 1)];
_local4.text = _local6.text;
if (((_local4.text) && (!((_local4.text == ""))))){
_local4.visible = true;
} else {
_local4.visible = false;
};
_local3++;
};
var _local5:TextField = _pj1084[(_pj1084.length - 1)];
_local5.text = _arg1;
if (((_local5.text) && (!((_local5.text == ""))))){
_local5.visible = true;
} else {
_local5.visible = false;
};
}
private function _bd848(_arg1:_xv1434, _arg2:uint, _arg3:int, _arg4:int, _arg5:int):void{
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 2), _arg4, _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 2), (_arg4 + 1), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 2), (_arg4 - 1), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 2), _arg4, _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 2), (_arg4 + 1), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 2), (_arg4 - 1), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, _arg3, (_arg4 + 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 1), (_arg4 + 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 1), (_arg4 + 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, _arg3, (_arg4 - 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 1), (_arg4 - 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 1), (_arg4 - 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 2), (_arg4 + 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 2), (_arg4 - 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 - 2), (_arg4 + 2), _arg5);
_qq90(_arg1, _arg2, _arg3, _arg4, (_arg3 + 2), (_arg4 - 2), _arg5);
}
private function _af1424(_arg1:_ex557):_xv1434{
var _local3:_xv1434;
var _local2:int;
while (_local2 < _ug1959.length) {
_local3 = _ug1959[_local2];
if (_local3._oi311() == _arg1){
return (_local3);
};
_local2++;
};
return (null);
}
private function _yh3054(_arg1:TimerEvent):void{
var paused:Boolean;
var _qe2341:int;
var _lw1706:int;
var _pc2920:int;
var _ns1989:int;
var _gj3418:_xv1434;
var evt = _arg1;
try {
if (!_lf2280()){
return;
};
if (((((!(_fi1420)) && (_xh1372))) && (_xh1372.stage))){
_xh1372.stage.addEventListener(KeyboardEvent.KEY_DOWN, _eq1427, false, 0, true);
_fi1420 = true;
};
paused = ((_rt2598._oj3099._bv921()) || (((_jk426) && (_jk426.visible))));
_qe2341 = getTimer();
_lw1706 = 1;
if (_bl363){
_lw1706 = ((_qe2341 - _bl363) / _et2781.delay);
};
if (_lw1706 > 2){
_lw1706 = 2;
};
_pc2920 = 0;
while (_pc2920 < _lw1706) {
if (!paused){
_ns1989 = 0;
while (_ns1989 < _ug1959.length) {
_gj3418 = _ug1959[_ns1989];
_gj3418._vb2548();
_ns1989 = (_ns1989 + 1);
};
_li2736();
};
_xx2221();
_su2843();
if (!paused){
_tl2355();
_xt2372();
_iu2218();
_py2586();
_mn2011();
_mu588();
_ts1347();
};
_pc2920 = (_pc2920 + 1);
};
_bl363 = getTimer();
} catch(err:Error) {
_ni2054._ev1283(err);
};
}
public function _pn2449():Array{
return (_ug1959);
}
private function _mu588():void{
if (!_pj1084){
return;
};
var _local1:int = getTimer();
if (((_ak2986) && (((_local1 - _ak2986) > 5000)))){
_jy991("", false);
};
}
private function _qw2782(_arg1:Event):void{
_vs1936();
if (_ig1593._oj3099){
_ig1593._oj3099._hs854();
};
}
private function _dn1797():void{
_dh260._st2731((_dt2656.getUID() + 1));
switch (_rt2598._oj3099._mv1993()){
case 0:
break;
case 1:
_yy1737(true);
break;
};
}
override public function _cb2562():Boolean{
return (((_jk426) && (_jk426.visible)));
}
private function _tm399(_arg1:int):int{
var _local2:int = _arg1;
if (_local2 > 20){
_local2 = 20;
};
switch ((_arg1 % 6)){
case 0:
return ((6 + _local2));
case 1:
return ((3 + _local2));
case 2:
return ((10 + _local2));
case 3:
return ((6 + _local2));
case 4:
return ((2 + (_local2 / 2)));
case 5:
return (1);
};
return (0);
}
public function _jn525(_arg1:uint, _arg2:_iu1662):Boolean{
var _local3:int;
var _local4:int;
if (_arg2 == _db1279){
_local3 = _tv609._vv2083(_arg1);
if (((!((_arg1 == _ng76))) && ((_local3 > _pi1133._sx1887(true))))){
return (false);
};
_local4 = _tv609._oo1657(_arg1);
if (_local4 > _db1279._em2028()){
return (false);
};
};
return (true);
}
private function _lc377(_arg1:int, _arg2:Boolean):String{
var _local3:int;
switch (_arg1){
case _ks1885._ud1618:
case _ks1885._ka3350:
return (null);
case _ks1885._kq1981:
_local3 = 1;
if (_sk3123 >= _local3){
return (null);
};
return ("At least one dwelling needed for a forge.");
case _ks1885._rc1837:
_local3 = 1;
if (_ft2176 >= _local3){
return (null);
};
return ("At least one forge needed for a fire magic guild.");
case _ks1885._ph675:
_local3 = 1;
if (_ho2873 >= _local3){
return (null);
};
return ("At least one fire magic guild needed for an ice magic guild.");
case _ks1885._ic2367:
_local3 = 1;
if (_vd262 >= _local3){
return (null);
};
return ("At least one ice magic guild needed for an lightning magic guild.");
case _ks1885._oa2678:
_local3 = Math.max(0, ((_ql1535 + 1) / 3));
if (!_arg2){
_local3 = 0;
};
if (_sk3123 >= _local3){
return (null);
};
return ((("At least " + _local3) + " dwellings are needed for an additional guard tower."));
case _ks1885._yd2351:
_local3 = Math.max(1, ((_ee2627 + 1) / 3));
if (!_arg2){
_local3 = 1;
};
if (_ft2176 >= _local3){
return (null);
};
return ((("At least " + _local3) + " forges are needed for an additional cannon tower."));
case _ks1885._mh3098:
_local3 = Math.max(1, ((_rx2819 + 1) / 3));
if (!_arg2){
_local3 = 1;
};
if (_ho2873 >= _local3){
return (null);
};
return ((("At least " + _local3) + " fire magic guilds are needed for an additional fire magic tower."));
case _ks1885._ph1453:
_local3 = Math.max(1, ((_ng1882 + 1) / 3));
if (!_arg2){
_local3 = 1;
};
if (_vd262 >= _local3){
return (null);
};
return ((("At least " + _local3) + " ice magic guilds are needed for an additional ice magic tower."));
case _ks1885._tk3087:
_local3 = Math.max(1, ((_kp3237 + 1) / 3));
if (!_arg2){
_local3 = 1;
};
if (_ax1209 >= _local3){
return (null);
};
return ((("At least " + _local3) + " lightning magic guilds are needed for an additional lightning magic tower."));
};
return (null);
}
private function _uu2001(_arg1:uint, _arg2:int, _arg3:int):void{
}
override public function _et3406():void{
_mp1055(_dt2656.getUID());
}
private function _hh270(_arg1:_oc1935):void{
if (_mw2340 != _arg1){
if (_vg827){
_vg827.filters = new Array();
};
_vg827 = null;
_mw2340 = _arg1;
_xx2221();
};
}
public function _cv2222():Object{
return (null);
}
private function _sd1429():void{
var _local5:int;
var _local6:_cf177;
var _local7:_ps2722;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:uint;
var _local13:uint;
var _local1:_ce283 = _wf88._kr1759();
var _local2:int;
while (_local2 < _local1._xw1652()) {
_local5 = 0;
while (_local5 < _local1._nw296()) {
_local6 = _dt2656._eu1822(_local2, _local5);
if (_local6){
if (_local6._aw772 == _ks1885._yx1175){
_local1._do1248(_local2, _local5, true);
} else {
if ((((_local6._js3192 < _ks1885._cr162)) || (!(_ks1885._bf2168(_local6._aw772))))){
_local1._do1248(_local2, _local5, true);
} else {
_local1._do1248(_local2, _local5, false);
};
};
} else {
_local1._do1248(_local2, _local5, true);
};
_local5++;
};
_local2++;
};
_local2 = 0;
while (_local2 < _local1._xw1652()) {
_local5 = 0;
while (_local5 < _local1._nw296()) {
if ((((((((_local2 == 0)) || ((_local5 == 0)))) || ((_local2 == (_local1._xw1652() - 1))))) || ((_local5 == (_local1._nw296() - 1))))){
_local1._do1248(_local2, _local5, true);
};
_local5++;
};
_local2++;
};
var _local3:Array = _wf88._kl2485()._xr3453();
var _local4:int;
while (_local4 < _local3.length) {
_local7 = (_local3[_local4] as _ps2722);
if (_local7){
switch (_tv609._xe421(_local7.itemType)){
case _tv609._ww915:
_local8 = _tv609._cy1922(_local7.itemType);
_local9 = _lh2663(_local8);
_local10 = 0;
while (_local10 < _local9) {
_local11 = 0;
while (_local11 < _local9) {
_local1._do1248((_local7.x - _local10), (_local7.y - _local11), true);
_local11++;
};
_local10++;
};
break;
case _tv609._qy3104:
case _tv609._yg1036:
case _tv609._rb2324:
_local1._do1248(_local7.x, _local7.y, true);
break;
case _tv609._og2636:
_local12 = _tv609._ry922(_local7.itemType);
switch (_local12){
case _tv609._cu622:
_local1._do1248(_local7.x, _local7.y, true);
break;
case _tv609._mb367:
_local1._do1248(_local7.x, _local7.y, true);
break;
case _tv609._pr1934:
case _tv609._yt1351:
_local1._do1248(_local7.x, _local7.y, true);
_local1._do1248((_local7.x - 1), _local7.y, true);
_local1._do1248((_local7.x - 2), _local7.y, true);
break;
case _tv609._wh1158:
case _tv609._wg2145:
_local1._do1248(_local7.x, _local7.y, true);
_local1._do1248(_local7.x, (_local7.y - 1), true);
_local1._do1248(_local7.x, (_local7.y - 2), true);
break;
case _tv609._sd1602:
_local1._do1248(_local7.x, _local7.y, true);
_local1._do1248((_local7.x - 1), _local7.y, true);
_local1._do1248((_local7.x - 2), _local7.y, true);
_local1._do1248((_local7.x - 3), _local7.y, true);
break;
case _tv609._wv2961:
_local1._do1248(_local7.x, _local7.y, true);
_local1._do1248(_local7.x, (_local7.y - 1), true);
_local1._do1248(_local7.x, (_local7.y - 2), true);
_local1._do1248(_local7.x, (_local7.y - 3), true);
break;
};
break;
case _tv609._ee2004:
_local13 = _tv609._lo2580(_local7.itemType);
switch (_local13){
case _ks1885._wh2269:
case _ks1885._lk843:
case _ks1885._tq1319:
case _ks1885._so969:
case _ks1885._vy640:
case _ks1885._ab1013:
case _ks1885._lj2807:
case _ks1885._lf2052:
case _ks1885._fu2788:
case _ks1885._oq281:
case _ks1885._vf549:
_local1._do1248(_local7.x, _local7.y, true);
break;
case _ks1885._lv2789:
case _ks1885._ps2051:
case _ks1885._xg1048:
case _ks1885._uv2326:
_local1._do1248(_local7.x, _local7.y, true);
break;
};
break;
};
};
_local4++;
};
}
private function _xx2221():void{
var _local2:int;
var _local3:TextField;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:Graphics;
var _local8:Boolean;
var _local9:_ps2722;
var _local10:_lj345;
var _local11:_ot519;
var _local12:String;
var _local13:_xv1434;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:Point;
var _local18:Point;
if (!_jg3059){
_jg3059 = new Sprite();
_xh1372.addChild(_jg3059);
};
var _local1:_ex557 = _vg827;
if (((((((!((_qi1086 == _local1))) || (!((_ow3310 == _mw2340))))) || (_rt2598._oj3099._sp495()))) || (_te1288()))){
_qi1086 = _local1;
_ow3310 = _mw2340;
_jg3059.visible = false;
_tu3483 = getTimer();
return;
};
if (!_jg3059.visible){
_local2 = getTimer();
if (((((!(_gy1070)) && (_local2))) && (((_local2 - _tu3483) < 200)))){
return;
};
};
if (((_local1) || (_mw2340))){
_jg3059.visible = true;
while (_jg3059.numChildren) {
_jg3059.removeChildAt(0);
};
_local3 = _ks1885._nd1190();
_local4 = _ks1885._nb1049;
if (_local1){
_local9 = _local1._fn629();
if (_tv609._qn2504(_local9.itemType)){
_local10 = _ae2040._qv1265(_tv609._gm3294(_local9.itemType));
if (_kg2800._mn2894(_local10)){
_local3.text = _hy2528._dg129;
} else {
_local3.text = _hy2528.formatString((_tv609._sq2959(_local9.itemType)) ? _hy2528._rg103 : _hy2528._ed83, (_local10) ? _local10.getName() : _hy2528._dc2933);
};
} else {
if (_tv609._ob2792(_local9.itemType)){
_local11 = _ae2040._sb1470(_tv609._ef2514(_local9.itemType));
_local3.text = _xf2603(_local11, _local9.itemType);
} else {
if (_tv609._uk3274(_local9.itemType)){
if (_tv609._fy1706(_local9.itemType)){
_local4 = _ks1885._ib1953;
} else {
if (_tv609._on3351(_local9.itemType)){
_local4 = _ks1885._hk2531;
};
};
};
_local3.text = _tv609._kl2415(_local9.itemType);
};
};
} else {
if (_mw2340){
_local3.multiline = true;
_local12 = _mw2340._el862();
if (_local12){
_local3.text = _local12;
} else {
_local3.text = "Unknown button";
};
};
};
_local3.textColor = _local4;
_local5 = _local3.width;
_local6 = _local3.height;
_local7 = _jg3059.graphics;
_local7.clear();
_local8 = false;
if (((((_local1) && (_local1._fn629()))) && (((_tv609._au2821(_local1._fn629().itemType)) || (_tv609._ei1897(_local1._fn629().itemType)))))){
_local13 = (_af1424(_local1) as _xv1434);
if (_local13){
_local14 = _tv609._gy127(_local9.itemType);
_local15 = _local13._cg411();
_local16 = ((_local15 / _local14) * _local5);
_local7.beginFill(13184044, 0.5);
_local7.drawRect(0, 0, _local16, _local6);
_local7.endFill();
_local7.beginFill(0x222222, 0.5);
_local7.drawRect(_local16, 0, (_local5 - _local16), _local6);
_local7.endFill();
};
};
if (!_local8){
_local7.beginFill(0x222222, (_local1) ? 0.4 : 0.7);
_local7.drawRect(0, 0, _local5, _local6);
_local7.endFill();
};
_local7.lineStyle(1, _ks1885._nb1049, 0.5);
_local7.drawRect(0, 0, _local5, _local6);
_jg3059.addChild(_local3);
if (_local1){
_local17 = _local1.localToGlobal(new Point(0, 0));
_local17 = _xh1372.globalToLocal(_local17);
_jg3059.x = ((_local17.x - (_local5 / 2)) + (_local1.width / 2));
_jg3059.y = ((_local17.y - _local6) - 35);
} else {
_local18 = new Point(_mw2340.x, _mw2340.y);
if (_mw2340.parent){
_local18 = _mw2340.parent.localToGlobal(_local18);
};
_jg3059.x = _local18.x;
if ((_jg3059.x + _local3.width) > _xh1372.width){
_jg3059.x = (_jg3059.x - (((_jg3059.x + _local3.width) - _xh1372.width) + 5));
};
if (_local18.y > (_xh1372.height / 2)){
_jg3059.y = ((_local18.y - _local3.height) - 5);
} else {
_jg3059.y = ((_local18.y + _mw2340.height) + 5);
};
};
} else {
_jg3059.visible = false;
};
}
private function _bi1390(_arg1:_lj345, _arg2:Boolean=true, _arg3:Boolean=false):void{
if (!_arg1){
return;
};
if (((_cr1330._hu2720) && (!(_dq2173._hg1894(_arg1.getUID()))))){
_wq1201(1);
return;
};
if (_arg2){
_bm1386 = _dt2656;
} else {
_bm1386 = null;
};
_sq3430 = new Array();
_dt2656 = _arg1;
_js3212 = null;
_pw3183 = _arg3;
_tr3015();
if (!_dt2656._ak1857()){
_ai861(_arg1);
} else {
_kr1260();
};
}
private function _sg33(_arg1:Event):void{
}
private function _lo3031(_arg1:_ex557):int{
var _local3:_xv1434;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (!_arg1){
return (0);
};
var _local2:_ps2722 = _arg1._fn629();
if (_tv609._ei1897(_local2.itemType)){
_local3 = (_af1424(_arg1) as _xv1434);
if (_local3){
_local4 = _tv609._gy127(_local2.itemType);
_local5 = _local3._cg411();
_local6 = _tv609._cy1922(_local2.itemType);
_local7 = ((_local5 / _local4) * _wi2032(_local6));
return ((_local7 / 2));
};
};
return (0);
}
private function _lq1373(_arg1:Event):void{
var _local3:_pi2679;
if (!_gy1070){
return;
};
var _local2:int = _mm2859(_gy1070);
if (_local2 > 0){
if (_rf893 < _local2){
_fm197._oj3099._ub2003(_ks1885._ap3355);
_jy991("Not enough money to repair");
return;
};
_rf893 = (_rf893 - _local2);
_local3 = (_af1424(_gy1070) as _pi2679);
if (_local3){
_local3._ke2730();
};
_fm197._oj3099._ub2003(_ks1885._fj1821);
};
}
private function _lh2663(_arg1:int):int{
switch (_arg1){
case _ks1885._ud1618:
return (2);
case _ks1885._kq1981:
case _ks1885._rc1837:
case _ks1885._ph675:
case _ks1885._ic2367:
case _ks1885._cd1736:
return (3);
case _ks1885._vp431:
case _ks1885._jw270:
case _ks1885._oa2678:
case _ks1885._yd2351:
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
case _ks1885._as1343:
case _ks1885._ok1316:
return (1);
};
return (0);
}
private function _ag540(_arg1:Event):void{
_ip1192 = (_ip1192 - _nn2297);
_vy2164();
}
public function _ir1602(_arg1:_oc1935):void{
_hh270(null);
}
private function _hn1092():void{
var _local1:TextField;
var _local2:_oc1935;
var _local3:_oc1935;
var _local4:_oc1935;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:BitmapData;
var _local19:Number;
var _local20:_oc1935;
var _local21:String;
var _local22:int;
var _local23:TextField;
if (!_ci1802){
_ci1802 = new _yn3144(_xh1372, _xh1372.width);
_xh1372.addChild(_ci1802);
};
if (!_ji160){
_ji160 = new _yn3144(_xh1372, _xh1372.width);
_xh1372.addChild(_ji160);
_local1 = _ks1885._nd1190(false);
_local1.text = _hy2528._sj3311;
_local1.y = 25;
_local1.x = ((_xh1372.width - _local1.width) / 2);
_ji160.addChild(_local1);
_nh2293 = _local1;
_local2 = new _oc1935(_hy2528._mx2650, _ji160);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, _rr460);
_local3 = new _oc1935(_hy2528._sw466, _ji160);
_local3.addEventListener(MouseEvent.MOUSE_DOWN, _ru2273);
_local4 = new _oc1935(_hy2528._cq1538, _ji160);
_local4.addEventListener(MouseEvent.MOUSE_DOWN, _eg697);
_local2.y = 55;
_local3.y = 55;
_local4.y = 55;
_local2.x = ((_xh1372.width - (((_local4.width + _local3.width) + _local2.width) + 5)) / 2);
_local3.x = ((_local2.x + _local2.width) + 5);
_local4.x = ((_local3.x + _local3.width) + 5);
};
if (_mt2396 == null){
_mt2396 = new Array();
_local5 = 35;
_local6 = 35;
_local7 = 5;
_local8 = 3;
_local9 = 80;
_local10 = 23;
_local11 = 5;
_local12 = 13;
_local13 = _local11;
_local14 = _local12;
_local15 = 0;
_local16 = 0;
while (_local16 < 6) {
_local17 = 0;
while (_local17 < 6) {
_local18 = null;
_local19 = 0.4;
if (_local15 == 0){
_local18 = _ks1885._oj3099._gk1963.bitmapData;
_local19 = 1;
} else {
_local18 = _ks1885._oj3099._rx671(_pu1041(_local15));
};
if (_local18 != null){
_local20 = new _dm739(_ci1802, _local18, _local5, _local6, -1, _local19);
_local21 = _yy2334(_local15);
if (_local21 != null){
_local20._sk293(this, _local21);
};
_local20.x = _local13;
_local20.y = _local14;
_local20.addEventListener(MouseEvent.MOUSE_DOWN, _va1647);
_mt2396.push(_local20);
};
_local15++;
_local13 = (_local13 + (_local5 + _local7));
_local17++;
};
_local13 = _local11;
_local14 = (_local14 + (_local6 + _local8));
_local16++;
};
_yw462();
_eq1140 = _ks1885._nd1190(false);
_eq1140.text = "Wave: 0";
_eq1140.x = (_ci1802.width - 80);
_eq1140.y = 15;
_ci1802.addChild(_eq1140);
_qq2436 = _ks1885._nd1190(false);
_qq2436.text = "Next in";
_qq2436.x = _eq1140.x;
_qq2436.y = 65;
_ci1802.addChild(_qq2436);
_to248 = _ks1885._nd1190(false);
_to248.text = "nothing selected";
_to248.x = ((_local11 + ((_local5 + _local7) * 6)) + _local7);
_to248.y = 15;
_ci1802.addChild(_to248);
_tn1081 = _ks1885._nd1190(false);
_tn1081.text = "nothing selected";
_tn1081.x = ((_local11 + ((_local5 + _local7) * 6)) + _local7);
_tn1081.y = 35;
_tn1081.wordWrap = true;
_tn1081.width = (_eq1140.x - _tn1081.x);
_tn1081.height = 60;
_ci1802.addChild(_tn1081);
_oq2280 = new _oc1935((_hy2528._jx231 + "(xxxx)"), _ci1802);
_oq2280.addEventListener(MouseEvent.MOUSE_DOWN, _ly2472);
_oq2280.x = _to248.x;
_oq2280.y = 55;
_bs1483 = new _oc1935((_hy2528._db774 + "(xxxx)"), _ci1802);
_bs1483.addEventListener(MouseEvent.MOUSE_DOWN, _lq1373);
_bs1483.x = ((_oq2280.x + _oq2280.width) + _local7);
_bs1483.y = _oq2280.y;
_qe1959 = new _oc1935((_hy2528._ey876 + "(xxxx)"), _ci1802);
_qe1959.addEventListener(MouseEvent.MOUSE_DOWN, _ii1825);
_qe1959.x = ((_bs1483.x + _bs1483.width) + _local7);
_qe1959.y = _bs1483.y;
};
if (!_bp1939){
_bp1939 = _ks1885._nd1190();
_bp1939.text = "Gold: 0";
_bp1939.x = (_xh1372.width - 240);
_bp1939.y = 5;
_bp1939.textColor = _ks1885._nb1049;
_xh1372.addChild(_bp1939);
};
if (!_kc444){
_kc444 = _ks1885._nd1190();
_kc444.text = "Score: 0";
_kc444.x = (_xh1372.width - 170);
_kc444.y = 5;
_kc444.textColor = _ks1885._nb1049;
_xh1372.addChild(_kc444);
};
if (!_pj1084){
_pj1084 = new Array();
_local22 = 0;
while (_local22 < 3) {
_local23 = _ks1885._nd1190();
_local23.textColor = _ks1885._nb1049;
_local23.text = "K";
_local23.y = (_local22 * (_local23.height - 4));
if (_cr1330._ar689){
_local23.y = (_local23.y + _local23.height);
};
_local23.visible = false;
_local23.text = "";
_xh1372.addChild(_local23);
_pj1084.push(_local23);
_local22++;
};
};
}
private function _ln1056():Point{
return (null);
}
private function _rr460(_arg1:Event):void{
_mp1055(_dt2656.getUID());
}
private function _yy2334(_arg1:int):String{
var _local2:String;
switch (_arg1){
case 0:
return (null);
case 1:
_local2 = _hy2528._rl363;
break;
case 2:
_local2 = _hy2528._xl807;
break;
case 3:
_local2 = _hy2528._yl668;
break;
case 4:
_local2 = _hy2528._ww2498;
break;
case 5:
_local2 = _hy2528._mo2133;
break;
case 6:
_local2 = _hy2528._kc3042;
break;
case 7:
_local2 = _hy2528._jd2358;
break;
case 8:
_local2 = _hy2528._cm1033;
break;
case 9:
_local2 = _hy2528._xm81;
break;
case 10:
_local2 = _hy2528._mo3215;
break;
case 11:
_local2 = _hy2528._fa276;
break;
};
if (_local2){
_local2 = (_local2 + " (Gold: ");
_local2 = (_local2 + _wi2032(_pu1041(_arg1)));
_local2 = (_local2 + " )");
};
return (_local2);
}
private function _in3230(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:int;
var _local8:uint;
var _local9:_ex557;
if (_pi1133){
_local4 = (Math.random() * 100);
_local5 = 0;
_local6 = _tv609._fw702;
_local7 = Math.max(1, (((_mt1162 / 2) + (Math.random() * 3)) - 2));
if (_local7 > _cr1330._fb714){
_local7 = _cr1330._fb714;
};
switch (_arg3){
case _tv609._as1086:
_local5 = _tv609._mf3458;
if ((Math.random() * 100) > 90){
_local6 = (_local6 | _tv609._lw1786);
};
break;
case _tv609._bn2632:
_local5 = _tv609._xu1450;
break;
case _tv609._rf2481:
_local5 = _tv609._qj2375;
if ((Math.random() * 100) > 90){
_local6 = (_local6 | _tv609._lw1786);
};
break;
case _tv609._eh3385:
_local5 = _tv609._mf3458;
_local6 = (_local6 | _tv609._pc2955);
if ((Math.random() * 100) > 90){
_local6 = (_local6 | _tv609._lw1786);
};
break;
case _tv609._jn2396:
_local5 = _tv609._wl2095;
if ((Math.random() * 100) > 45){
_local6 = (_local6 | _tv609._lw1786);
};
break;
case _tv609._gn3196:
_local5 = _tv609._qj2375;
if ((Math.random() * 100) > 90){
_local6 = (_local6 | _tv609._lw1786);
};
_local7 = (_local7 * 3);
};
_local8 = _tv609._lf1426(_local5, _local7, _local6);
_local9 = _tv609._qf1864(_local8, _arg1, _arg2);
if (_local9){
_wf88._no2900(_arg1, _arg2, _local9, true, this);
_wd1378(_local8, true);
};
};
}
private function _ee2941(_arg1:Event):void{
var _local2:URLRequest = new URLRequest(("http://www.darkness-springs.eu/usermaps.php?realmid=" + _ae2040.getUID()));
navigateToURL(_local2);
}
private function _iq583(_arg1:int):String{
var _local2:String;
switch (_arg1){
case 0:
return (null);
case 1:
_local2 = _hy2528._ik305;
break;
case 2:
_local2 = _hy2528._wl3114;
break;
case 3:
_local2 = _hy2528._lv604;
break;
case 4:
_local2 = _hy2528._km1096;
break;
case 5:
_local2 = _hy2528._bs601;
break;
case 6:
_local2 = _hy2528._hx1609;
break;
case 7:
_local2 = _hy2528._lf340;
break;
case 8:
_local2 = _hy2528._av638;
break;
case 9:
_local2 = _hy2528._aw3207;
break;
case 10:
_local2 = _hy2528._af643;
break;
case 11:
_local2 = _hy2528._sn597;
break;
};
return (_local2);
}
private function _lf2280():Boolean{
var _local1:String;
return (true);
}
public function _ik247(_arg1:Boolean):void{
}
private function _ly2472(_arg1:Event):void{
if (!_gy1070){
return;
};
var _local2:int = _lo3031(_gy1070);
if (_local2 > 0){
_rf893 = (_rf893 + _local2);
_jm2978(_gy1070);
};
}
private function _tc1388():void{
var _local3:_oc1935;
var _local4:BitmapData;
var _local5:int;
var _local6:uint;
var _local7:int;
var _local8:String;
var _local9:String;
var _local10:int;
if (((!(_pi1133)) || (!(_jh3140)))){
return;
};
var _local1:Array = _lf35._ja1235(_pi1133);
if (_lf3149 > ((_local1.length - _ni2972) + (_ni2972 - (_local1.length % _ni2972)))){
_lf3149 = ((_local1.length - _ni2972) + (_ni2972 - (_local1.length % _ni2972)));
};
if (_lf3149 < 0){
_lf3149 = 0;
};
var _local2:int;
while (_local2 < _ni2972) {
_local3 = _yb1229[_local2];
_local4 = null;
_local5 = (_local2 + _lf3149);
if ((((_local5 >= 0)) && ((_local5 < _local1.length)))){
_local6 = _local1[_local5];
_local4 = _tv609._gs44(_local6);
_local7 = _tv609._cy1922(_local6);
_local8 = "";
if (!_tv609._um1753(_local6)){
if (_local7 == 1){
_local8 = "I";
} else {
if (_local7 == 2){
_local8 = "II";
} else {
if (_local7 == 3){
_local8 = "III";
};
};
};
};
_local3._ub2042(_local8, _local4);
_local3._yi2089((_hq1085 == _local6));
_local3.enabled = !((_hq1085 == _local6));
_local9 = ((_tv609._kl2415(_local6) + "\n") + _tv609._fr2230(_local6, true));
_local10 = _tv609._gh3308(_local6);
if (_local10 < 10){
_local10++;
if (_local10 == 10){
_local10 = 0;
};
_local9 = (_local9 + ("\n" + _hy2528.formatString(_hy2528._mv1411, String.fromCharCode((_local10 + 48)))));
};
_local9 = (_local9 + ("\n" + _hy2528._vf49));
_local3._cb2006(_local9);
} else {
_local3.enabled = false;
_local3._ub2042("", null);
_local3._yi2089(false);
_local3._cb2006(_hy2528._pt37);
};
_local2++;
};
}
override protected function _mu1573():void{
_vs1936();
var _local1:_ig1593 = new _ig1593(_xh1372, _wf88);
}
override protected function _ld375():void{
_fm197._oj3099._ey741(_fm197._lo3198);
}
public function _av128(_arg1:int):void{
if ((((_arg1 <= 0)) || (!(_pi1133)))){
return;
};
var _local2:int = _pi1133._yp1275();
_pi1133._qv827(_arg1);
var _local3:int = _pi1133._yp1275();
_jy991(_hy2528.formatString(_hy2528._bk3421, String(_arg1)));
_ef956();
if (_local3 != _local2){
_jy991(_hy2528._dj1564);
_fm197._oj3099._ub2003(_ks1885._up1329);
};
}
private function _ii1825(_arg1:Event):void{
var _local3:_pi2679;
var _local4:_ps2722;
var _local5:int;
if (!_gy1070){
return;
};
var _local2:int = _sp138(_gy1070);
if (_local2 > 0){
if (_rf893 < _local2){
_fm197._oj3099._ub2003(_ks1885._ap3355);
_jy991("Not enough money to upgrade");
return;
};
_rf893 = (_rf893 - _local2);
_local3 = (_af1424(_gy1070) as _pi2679);
if (_local3){
_local4 = _local3._fn629();
_local5 = _tv609._ug265(_local4.itemType);
_local5++;
_local4.itemType = _tv609._nl1967(_local4.itemType, _local5);
};
_fm197._oj3099._ub2003(_ks1885._fj1821);
};
}
private function _iu2218():void{
var _local1:TextFormat;
var _local2:String;
var _local3:int;
var _local4:uint;
var _local5:_ps2722;
var _local6:_xv1434;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
if (_bp1939){
_bp1939.text = ("Gold: " + _rf893);
};
if (_kc444){
_kc444.text = ("Score: " + _ow711);
};
if (_eq1140){
if (_mt1162 == 0){
_eq1140.visible = false;
} else {
_eq1140.text = ("Wave: " + _mt1162);
_eq1140.visible = true;
};
};
if (_qq2436){
if (_cf1134 >= 20){
_qq2436.visible = true;
_qq2436.text = ("Next in: " + (_cf1134 / 20).toFixed(2));
} else {
_qq2436.visible = false;
};
};
if (_to248){
if (_fb1591()){
_local3 = _pu1041(_ea2459);
_local4 = _tv609._eu2563(_local3);
_local2 = ("build " + _tv609._kl2415(_local4));
_to248.text = _local2;
_local2 = ("Needed gold: " + _wi2032(_local3));
_local2 = (_local2 + "\n");
_local2 = (_local2 + _iq583(_ea2459));
_tn1081.text = _local2;
_local1 = _tn1081.getTextFormat();
_local1.font = "Arial";
_local1.size = 10;
_tn1081.setTextFormat(_local1);
_oq2280.visible = false;
_bs1483.visible = false;
_qe1959.visible = false;
_to248.visible = true;
_tn1081.visible = true;
} else {
if (_gy1070){
_local5 = _gy1070._fn629();
if (_local5){
_local6 = (_af1424(_gy1070) as _xv1434);
if (_local6){
_local7 = _tv609._gy127(_local5.itemType);
_local8 = _local6._cg411();
_local2 = (((((_tv609._kl2415(_local5.itemType) + " [") + _local8) + "/") + _local7) + "]");
_to248.text = _local2;
_local9 = _lo3031(_gy1070);
if (_local9){
_local2 = (("worth: " + _local9) + " gold");
} else {
if (_tv609._bb495(_local5.itemType)){
_local2 = "If destroyed, you lose.";
} else {
_local2 = "";
};
};
if (_cr1330._ii566){
_local2 = _local6._os1868();
};
_tn1081.text = _local2;
_local1 = _tn1081.getTextFormat();
_local1.font = "Arial";
_local1.size = 10;
_tn1081.setTextFormat(_local1);
if (_local9 > 0){
_oq2280._mr1085((((_hy2528._jx231 + " (") + _local9) + ")"));
_oq2280.visible = true;
} else {
_oq2280.visible = false;
};
_local10 = _mm2859(_gy1070);
if (_local10 > 0){
_bs1483._mr1085((((_hy2528._db774 + " (") + _local10) + ")"));
_bs1483.visible = true;
} else {
_bs1483.visible = false;
};
_local11 = _sp138(_gy1070);
if (_local11 > 0){
_qe1959._mr1085((((_hy2528._ey876 + " (") + _local11) + ")"));
_qe1959.visible = true;
} else {
_qe1959.visible = false;
};
_to248.visible = true;
_tn1081.visible = true;
};
};
} else {
_bs1483.visible = false;
_oq2280.visible = false;
_qe1959.visible = false;
_to248.visible = false;
_tn1081.visible = false;
};
};
};
}
public function _rt540(_arg1:int, _arg2:int, _arg3:int=1):Point{
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local4:int = _dt2656._xw1652();
var _local5:int = _dt2656._nw296();
var _local6:_ce283 = _wf88._kr1759();
var _local7:int = ((_local4 > _local5)) ? _local4 : _local5;
var _local8 = 3;
while (_local8 < _local7) {
_local9 = 0;
while (_local9 < _local8) {
_local10 = 0;
while (_local10 < _local8) {
if ((((((((_local9 == 0)) || ((_local10 == 0)))) || ((_local9 == (_local8 - 1))))) || ((_local10 == (_local8 - 1))))){
_local11 = ((_local9 + _arg1) - (_local8 / 2));
_local12 = ((_local10 + _arg2) - (_local8 / 2));
if (_arg3 == 1){
if (((_local6._ic1388(_local11, _local12)) && (!(_local6._uc1272(_local11, _local12))))){
return (new Point(_local11, _local12));
};
} else {
if (_nb670(_local11, _local12, _arg3)){
return (new Point(_local11, _local12));
};
};
};
_local10++;
};
_local9++;
};
_local8++;
};
return (null);
}
private function _eg697(_arg1:Event):void{
var _local2:URLRequest = new URLRequest(_cr1330._uq3190);
navigateToURL(_local2);
}
override public function _xt264(_arg1:_ex557, _arg2:int=-1):void{
var _local3:_vs1897;
switch (_arg2){
case _tv609._aa2858:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(20, 5);
_local3._po63 = 500;
_local3._ta1432 = 1000;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 20;
_local3._bb3419 = 100;
_local3._is1448 = 0.05;
_local3._fh3405 = 0.1;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 0;
_local3._fj467 = 20;
_local3._fi107 = _ks1885._oj3099._xf2390;
break;
case _tv609._ee138:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(10, 5);
_local3._po63 = 200;
_local3._ta1432 = 600;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 50;
_local3._bb3419 = 200;
_local3._is1448 = 0.025;
_local3._fh3405 = 0.05;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 0;
_local3._fj467 = 10;
_local3._fi107 = _ks1885._oj3099._xf2390;
break;
case _tv609._vn912:
case _tv609._fm845:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(20, 5);
_local3._po63 = 500;
_local3._ta1432 = 1000;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 20;
_local3._bb3419 = 100;
_local3._is1448 = 0.05;
_local3._fh3405 = 0.1;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 0;
_local3._fj467 = 20;
_local3._fi107 = _ks1885._oj3099._jy1577;
_fm197._oj3099._ub2003(_ks1885._tq444);
break;
case _tv609._gl1446:
case _tv609._ra2968:
_local3 = new _vs1897(_arg1, 1000);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(20, 5);
_local3._po63 = 600;
_local3._ta1432 = 1200;
_local3._dx757 = 300;
_local3._xm1857 = 50;
_local3._sw841 = 50;
_local3._bb3419 = 150;
_local3._is1448 = 0.03;
_local3._fh3405 = 0.07;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 10;
_local3._fj467 = 7;
_local3._fi107 = _ks1885._oj3099._ps233;
_fm197._oj3099._ub2003(_ks1885._lk2618);
break;
case _tv609._jn27:
case _tv609._nw2247:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(20, 5);
_local3._po63 = 500;
_local3._ta1432 = 1000;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 20;
_local3._bb3419 = 100;
_local3._is1448 = 0.05;
_local3._fh3405 = 0.1;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 1;
_local3._fj467 = 20;
_local3._fi107 = _ks1885._oj3099._jv3175;
_fm197._oj3099._ub2003(_ks1885._gm2895);
break;
case _tv609._py1306:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(20, 5);
_local3._po63 = 500;
_local3._ta1432 = 1000;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 20;
_local3._bb3419 = 100;
_local3._is1448 = 0.05;
_local3._fh3405 = 0.1;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 1;
_local3._fj467 = 20;
_local3._fi107 = _ks1885._oj3099._ci2279;
_fm197._oj3099._ub2003(_ks1885._cg1619);
break;
default:
_local3 = new _vs1897(_arg1, 800);
_arg1._qi31(_local3);
_local3._ok2588.x = _arg1._vc1137().x;
_local3._ok2588.y = (_arg1._vc1137().y - 30);
_local3._sb2007 = new Point(40, 5);
_local3._po63 = 500;
_local3._ta1432 = 1000;
_local3._dx757 = 300;
_local3._xm1857 = 30;
_local3._sw841 = 10;
_local3._bb3419 = 70;
_local3._is1448 = 0.05;
_local3._fh3405 = 0.1;
_local3._fu1480 = 1;
_local3._os1996 = 300;
_local3._wx1489 = 1;
_local3._fj467 = 30;
_local3._fi107 = _ks1885._oj3099._gb1506;
_fm197._oj3099._ub2003(_ks1885._cg1619);
break;
};
}
private function _bh1935(_arg1:Event):void{
_ip1192 = (_ip1192 + _nn2297);
_vy2164();
}
public function _gc1295(_arg1:Event):void{
_ec663();
_wy1228(true);
}
private function _sl1332(_arg1:_ex557):void{
}
private function _db1914(_arg1:_xv1434):void{
var _local3:_xv1434;
var _local2:int;
while (_local2 < _ug1959.length) {
_local3 = _ug1959[_local2];
if (_local3 == _arg1){
_ug1959.splice(_local2, 1);
break;
};
_local2++;
};
}
private function _by1972(_arg1:_xv1434, _arg2:uint, _arg3:Point, _arg4:Point, _arg5:int):void{
if (!_arg3){
return;
};
var _local6:int = _wf88._wf1652(_arg3.x, _arg3.y);
var _local7:int = _wf88._vr2593(_arg3.x, _arg3.y);
var _local8:uint = _tv609._rj1313(_arg5);
var _local9:_ps2722 = _tv609._ol2939(_local8, _local6, _local7);
var _local10:Point = new Point(0, 0);
var _local11:int = _tv609._ut2215(_arg2);
if (((_arg3) && (_arg4))){
_local10.x = (_arg4.x - _arg3.x);
_local10.y = (_arg4.y - _arg3.y);
_local10.normalize(_local11);
};
if ((((_local10.y == 0)) && ((_local10.y == 0)))){
_local10.x = ((Math.random() * 100) - 50);
_local10.y = ((Math.random() * 100) - 50);
if ((((_local10.y == 0)) && ((_local10.y == 0)))){
_local10.x = _local11;
};
_local10.normalize(_local11);
};
var _local12:_nq1314 = new _nq1314(_local9, _local10);
_local12._je2779 = _arg1;
_local12._ak3347 = _arg2;
_wf88._no2900(_local6, _local7, _local12, false, null, false);
_vu1904.push(_local12);
if (_arg5 == _ks1885._is2683){
_fm197._oj3099._ub2003(_ks1885._xd158);
} else {
if (_arg5 == _ks1885._yy2188){
_fm197._oj3099._ub2003(_ks1885._eh3375);
} else {
_fm197._oj3099._ub2003(_ks1885._xs2711);
};
};
}
private function _yu1959(_arg1:uint):void{
}
private function _xt2372():void{
var _local1:int = _wf88._yh1531();
_wf88._eu2830(_ep2922(_wf88._yh1531(), _ey860));
_wf88._uw624(_ep2922(_wf88._pf2892(), _al2319));
}
private function _ep2922(_arg1:int, _arg2:int):int{
var _local3:int;
var _local4:int;
var _local5:int = (_arg1 - _arg2);
var _local6:Number = 1.5;
var _local7 = 30;
var _local8 = 3;
if (_local5 > 0){
_local4 = (_local5 / _local6);
if (_local4 > _local7){
_local4 = _local7;
} else {
if (_local4 < _local8){
if (_local5 < _local8){
_local4 = _local5;
} else {
_local4 = _local8;
};
};
};
_local3 = _local4;
} else {
if (_local5 < 0){
_local4 = (_local5 / _local6);
if (_local4 < -(_local7)){
_local4 = -(_local7);
} else {
if (_local4 > -(_local8)){
if (_local5 > -(_local8)){
_local4 = _local5;
} else {
_local4 = -(_local8);
};
};
};
_local3 = _local4;
};
};
return (_local3);
}
private function _yw462():void{
var _local3:int;
var _local4:Boolean;
var _local1:Boolean;
if ((((((_ea2459 > 0)) && ((_ea2459 < _mt2396.length)))) && (!((_lc377(_pu1041(_ea2459), _local1) == null))))){
_ea2459 = 0;
_wy1228(false);
};
var _local2:Number = 0;
while (_local2 < _mt2396.length) {
_local3 = _pu1041(_local2);
_local4 = (_lc377(_local3, _local1) == null);
_mt2396[_local2].enabled = ((!((_ea2459 == _local2))) && (_local4));
if (!_local4){
_mt2396[_local2]._yi2089((_ea2459 == _local2));
_mt2396[_local2]._gq1107(_local4);
} else {
_mt2396[_local2]._gq1107(_local4);
_mt2396[_local2]._yi2089((_ea2459 == _local2));
};
_local2++;
};
}
private function _in3491():void{
var _local4:_ps2722;
var _local5:_ex557;
var _local6:_ex557;
var _local7:_ex557;
var _local8:_ex557;
var _local9:Boolean;
var _local10:Boolean;
var _local11:Boolean;
var _local12:Boolean;
var _local13:int;
var _local1:Array = _wf88._pa3307();
var _local2:int;
var _local3:_ex557;
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = (_local1[_local2] as _ex557);
_local4 = _local3._fn629();
if (_tv609._bp669(_local4.itemType)){
_local5 = _gh1214((_local4.x - 1), _local4.y);
_local6 = _gh1214((_local4.x + 1), _local4.y);
_local7 = _gh1214(_local4.x, (_local4.y - 1));
_local8 = _gh1214(_local4.x, (_local4.y + 1));
_local9 = false;
_local10 = false;
_local11 = false;
_local12 = false;
if (((_local5) && (_tv609._qs2221(_local5._fn629().itemType)))){
_local9 = true;
};
if (((_local6) && (_tv609._qs2221(_local6._fn629().itemType)))){
_local10 = true;
};
if (((_local7) && (_tv609._qs2221(_local7._fn629().itemType)))){
_local11 = true;
};
if (((_local8) && (_tv609._qs2221(_local8._fn629().itemType)))){
_local12 = true;
};
_local13 = 0;
if (_local9){
_local13++;
};
if (_local10){
_local13++;
};
if (_local11){
_local13++;
};
if (_local12){
_local13++;
};
if (_local13 == 1){
if (((_local9) || (_local10))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._vp431);
_local3._tg184();
} else {
if (((_local11) || (_local12))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._ls1293);
_local3._tg184();
};
};
} else {
if (_local13 == 2){
if (((((((((_local9) && (_local11))) || (((_local11) && (_local10))))) || (((_local10) && (_local12))))) || (((_local12) && (_local9))))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._jw270);
_local3._tg184();
} else {
if (((_local9) && (_local10))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._vp431);
_local3._tg184();
} else {
if (((_local11) && (_local12))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._ls1293);
_local3._tg184();
};
};
};
} else {
if ((((_local13 == 3)) || ((_local13 == 4)))){
_local3._fn629().itemType = _tv609._eu2563(_ks1885._jw270);
_local3._tg184();
};
};
};
};
_local2++;
};
}
private function _ec663():void{
var _local1:Point = new Point(_wf88.mouseX, _wf88.mouseY);
_local1 = _wf88.localToGlobal(_local1);
var _local2:Array = _wf88._pa3307();
var _local3:int;
var _local4:_ex557;
if (!_fb1591()){
_local3 = 0;
while (_local3 < _local2.length) {
_local4 = (_local2[_local3] as _ex557);
if (((_tv609._au2821(_local4._fn629().itemType)) && (_local4.hitTestPoint(_local1.x, _local1.y, false)))){
if (_local4.hitTestPoint(_local1.x, _local1.y, true)){
_lt1178(_local4);
return;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < _local2.length) {
_local4 = (_local2[_local3] as _ex557);
if (((!(_tv609._au2821(_local4._fn629().itemType))) && (_local4.hitTestPoint(_local1.x, _local1.y, false)))){
if (_local4.hitTestPoint(_local1.x, _local1.y, true)){
_lt1178(_local4);
return;
};
};
_local3++;
};
};
_lt1178(null);
}
public function _ju887(_arg1:uint):void{
}
private function _mn2011():void{
var _local2:int;
var _local7:int;
var _local8:int;
if (!_dt2656){
return;
};
var _local1:_lj345 = _dt2656;
var _local3:int = (_dt2656._xw1652() / 2);
var _local4:int = (_dt2656._nw296() / 2);
var _local5 = 40;
var _local6:int;
while (_local6 < 40) {
_local7 = (_local3 + int(((Math.random() * _local5) - (_local5 / 2))));
_local8 = (_local4 + int(((Math.random() * _local5) - (_local5 / 2))));
_local2 = _local1._hk2716(_local7, _local8);
if ((((_local2 >= _ks1885._qq2047)) && ((_local2 <= _ks1885._rs2632)))){
_local2++;
if (_local2 > _ks1885._rs2632){
_local2 = _ks1885._qq2047;
};
_local1._ta684(_local7, _local8, _local2);
_wf88._xd2222(_local7, _local8);
} else {
if ((((_local2 >= _ks1885._vt3154)) && ((_local2 <= _ks1885._is1465)))){
_local2++;
if (_local2 > _ks1885._is1465){
_local2 = _ks1885._vt3154;
};
_local1._ta684(_local7, _local8, _local2);
_wf88._xd2222(_local7, _local8);
};
};
_local6++;
};
}
private function _ru2273(_arg1:Event):void{
_yy1737();
}
public function _lg1210(_arg1:_ex557):Boolean{
var _local2:int = _tv609._xe421(_arg1._fn629().itemType);
if ((((((_local2 == _tv609._qy3104)) || ((_local2 == _tv609._yg1036)))) || ((_local2 == _tv609._rb2324)))){
return (false);
};
return ((_af1424(_arg1) == null));
}
private function _mr3100(_arg1:Event):void{
_lf3149 = (_lf3149 + _ni2972);
_tc1388();
}
private function _dx193(_arg1:_ps2722):void{
}
private function _hq1071(_arg1:int):void{
switch (_arg1){
case _tv609._vx2298:
_fm197._oj3099._ub2003(_ks1885._tq444);
break;
case _tv609._hc397:
_fm197._oj3099._ub2003(_ks1885._lk2618);
break;
case _tv609._md25:
_fm197._oj3099._ub2003(_ks1885._gm2895);
break;
};
_fm197._oj3099._ub2003(_ks1885._jh636);
}
override public function _ry1510():_cb3393{
return (null);
}
private function _wy1228(_arg1:Boolean):void{
var _local4:int;
var _local5:int;
var _local6:String;
var _local7:Boolean;
var _local2:int = _wf88.mouseX;
var _local3:int = _wf88.mouseY;
if (_fb1591()){
_local4 = _pu1041(_ea2459);
_local5 = _lh2663(_local4);
_local6 = _sh156(_wf88._wf1652(_local2, _local3), _wf88._vr2593(_local2, _local3), _local4);
_local7 = (_local6 == null);
_wf88._ts82(_local2, _local3, _local5, _ks1885._oj3099._rx671(_pu1041(_ea2459)), !(_local7), _local7);
} else {
_wf88._ts82(_local2, _local3, 0, null);
};
}
private function _sh156(_arg1:int, _arg2:int, _arg3:int):String{
var _local8:int;
var _local9:int;
var _local4:int = _lh2663(_arg3);
if (_local4 == 0){
return ("Invalid Building");
};
var _local5:String = _lc377(_arg3, true);
if (_local5){
return (_local5);
};
var _local6:int = _wi2032(_arg3);
if (_rf893 < _local6){
return (("Not enough money. Neeeded: " + _local6));
};
var _local7:_ce283 = _wf88._kr1759();
_local8 = 0;
while (_local8 < _local4) {
_local9 = 0;
while (_local9 < _local4) {
if (!_local7._ic1388((_local8 + _arg1), (_local9 + _arg2))){
return ("This place is blocked");
};
if (_local7._cb622((_local8 + _arg1), (_local9 + _arg2))){
return ("This place is currently blocked.");
};
if (_local7._ou1151((_local8 + _arg1), (_local9 + _arg2))){
return ("This place is currently blocked by a moving unit.");
};
_local9++;
};
_local8++;
};
_local8 = 0;
while (_local8 < _local4) {
_local9 = 0;
while (_local9 < _local4) {
if (_wf88._wl690((_local8 + _arg1), (_local9 + _arg2)) == (_ks1885._im873 - 1)){
return ("Building must be built in lighted area.");
};
_local9++;
};
_local8++;
};
return (null);
}
private function _py2586():void{
var _local2:int;
var _local3:_ex557;
var _local4:int;
var _local5:int;
if (!_ik1385){
return;
};
var _local1:int = getTimer();
if ((((_pi3455 == 0)) || (((_local1 - _pi3455) > 100)))){
_pi3455 = _local1;
_local2 = 0;
while (_local2 < _ik1385.length) {
_local3 = _ik1385[_local2];
_local4 = _local3._ow925();
_local5 = (Math.random() * 3);
if (_local5 > 2){
_local5 = 0;
};
if (_local5 == _local4){
_local5 = ((_local4 + 1) % 3);
};
_local3._pu916(_local5);
_local2++;
};
};
}
override protected function _wg874():void{
_kr1260();
}
override public function _yy1737(_arg1:Boolean=false):void{
_jk426.visible = true;
_jk426._jj2140();
_fm197._oj3099._ey741(_fm197._dj2375);
if (_arg1){
_jk426._tc1725();
_jk426._ke2889();
};
}
public function _cv3137(_arg1:uint, _arg2:int):void{
}
private function _yo2558():void{
}
override public function _ef956():void{
_tc1388();
_vy2164();
}
public function _xx1753(_arg1:Boolean):void{
if (_ww3089){
_ww3089.visible = !(_arg1);
};
if (_uc2468){
_uc2468.visible = !(_arg1);
};
}
public function _uq2518(_arg1:uint):int{
var _local4:int;
var _local5:uint;
var _local2:int;
var _local3:_xk85 = _pi1133;
if (_local3){
_local4 = 0;
while (_local4 < _xk85._vb958) {
_local5 = _local3._gc424(_local4);
if (_local5 == _arg1){
_local2++;
};
_local4++;
};
};
return (_local2);
}
public function _uv12():_cm768{
return (_kg2800);
}
private function _eq1427(_arg1:KeyboardEvent):void{
var _local2:TextField;
if (_rt2598._oj3099._bv921()){
return;
};
if (((_xh1372) && (_xh1372.stage))){
_local2 = (_xh1372.stage.focus as TextField);
if (_local2){
return;
};
};
if (_cr1330._ra3067){
if ((((_arg1.charCode == 65)) || ((_arg1.charCode == 97)))){
_rf893 = (_rf893 + 1000);
} else {
if ((((_arg1.charCode == 68)) || ((_arg1.charCode == 100)))){
if (_gy1070){
_jm2978(_gy1070);
};
} else {
if ((((_arg1.charCode == 79)) || ((_arg1.charCode == 111)))){
_os934 = (_dt2656._im3379() + 1);
};
};
};
};
}
public function _wa2220(_arg1:uint, _arg2:_xv1434, _arg3:Point=null):Boolean{
var _local9:int;
var _local10:int;
var _local11:uint;
if (((!(_arg1)) || (!(_arg2)))){
return (false);
};
if (!_vu1904){
_vu1904 = new Array();
};
if (_arg2 == _db1279){
_local9 = _tv609._vv2083(_arg1);
if (((!((_arg1 == _ng76))) && ((_local9 > _pi1133._sx1887(true))))){
_fm197._oj3099._ub2003(_ks1885._ap3355);
_jy991(_hy2528.formatString(_hy2528._th3201, _tv609._kl2415(_arg1)));
return (false);
};
_local10 = _tv609._oo1657(_arg1);
if (_local10 <= _db1279._em2028()){
_db1279._cu534((_db1279._em2028() - _local10));
} else {
_fm197._oj3099._ub2003(_ks1885._ap3355);
_jy991(_hy2528.formatString(_hy2528._cu1551, _tv609._kl2415(_arg1)));
return (false);
};
if (_ng76){
_local11 = _ng76;
_ng76 = 0;
_cv3137(_local11, 1);
};
};
var _local4:_ps2722 = _arg2._fn629();
var _local5:int = _tv609._gh3308(_arg1);
var _local6:int = _local4.x;
var _local7:int = _local4.y;
var _local8:Point = _arg2._tt2031();
switch (_local5){
case _tv609._ee138:
_uu2577(_arg2, _arg1, _local8, _arg3, _ks1885._is2683);
break;
case _tv609._aa2858:
_uu2577(_arg2, _arg1, _local8, _arg3, _ks1885._yy2188);
break;
case _tv609._fm845:
_bd848(_arg2, _arg1, _local6, _local7, _ks1885._ec1704);
break;
case _tv609._vn912:
_uu2577(_arg2, _arg1, _local8, _arg3, _ks1885._ec1704);
break;
case _tv609._ra2968:
_bd848(_arg2, _arg1, _local6, _local7, _ks1885._ke2468);
break;
case _tv609._gl1446:
_uu2577(_arg2, _arg1, _local8, _arg3, _ks1885._ke2468);
break;
case _tv609._nw2247:
_bd848(_arg2, _arg1, _local6, _local7, _ks1885._sv3227);
break;
case _tv609._jn27:
_uu2577(_arg2, _arg1, _local8, _arg3, _ks1885._sv3227);
break;
case _tv609._py1306:
break;
case _tv609._ei1061:
break;
case _tv609._ns1027:
break;
case _tv609._mn2179:
};
return (true);
}
private function _ge918(_arg1:Event):void{
_lf3149 = (_lf3149 - _ni2972);
_tc1388();
}
private function _xp2298():void{
_cf1134 = 300;
_xi2045 = 0;
_mh1282 = 0;
_wy3325 = 0;
_qr2743 = 0;
_mt1162 = 0;
_bm2560 = 0;
_sk3123 = 0;
_ft2176 = 0;
_ho2873 = 0;
_vd262 = 0;
_ax1209 = 0;
_ql1535 = 0;
_ee2627 = 0;
_rx2819 = 0;
_ng1882 = 0;
_kp3237 = 0;
_os934 = -1;
}
private function _pu1041(_arg1:int):int{
switch (_arg1){
case 0:
return (0);
case 1:
return (_ks1885._ud1618);
case 2:
return (_ks1885._kq1981);
case 3:
return (_ks1885._rc1837);
case 4:
return (_ks1885._ph675);
case 5:
return (_ks1885._ic2367);
case 6:
return (_ks1885._vp431);
case 7:
return (_ks1885._oa2678);
case 8:
return (_ks1885._yd2351);
case 9:
return (_ks1885._mh3098);
case 10:
return (_ks1885._ph1453);
case 11:
return (_ks1885._tk3087);
};
return (0);
}
private function _qc334(_arg1:int, _arg2:int, _arg3:int):void{
var _local10:int;
var _local11:_vs1897;
var _local4:_ce283 = _wf88._kr1759();
var _local5:int = _lh2663(_arg3);
_arg1 = (_arg1 + (_local5 - 1));
_arg2 = (_arg2 + (_local5 - 1));
var _local6:int = _wi2032(_arg3);
if (_rf893 < _local6){
return;
};
_rf893 = (_rf893 - _local6);
var _local7:int;
while (_local7 < _local5) {
_local10 = 0;
while (_local10 < _local5) {
_local4._do1248((_arg1 - _local7), (_arg2 - _local10), true);
_local10++;
};
_local7++;
};
var _local8:uint = _tv609._eu2563(_arg3);
var _local9:_ex557 = _tv609._qf1864(_local8, _arg1, _arg2);
if (_local9){
_wf88._no2900(_arg1, _arg2, _local9, false, this);
_wd1378(_local8, true);
setSelectedItem(_local9);
};
_in3491();
_ea2459 = 0;
_yw462();
_wy1228(false);
_fm197._oj3099._ub2003(_ks1885._ps2828);
if (_local9){
_local11 = new _vs1897((_wf88._eu1822(_arg1, _arg2) as Sprite), 1000);
_local11._ok2588.x = 22;
_local11._ok2588.y = 0;
_local11._sb2007 = new Point(_local9.width, 5);
_local11._po63 = 500;
_local11._ta1432 = 1000;
_local11._dx757 = 300;
_local11._xm1857 = 20;
_local11._sw841 = 25;
_local11._bb3419 = 50;
_local11._is1448 = 0.025;
_local11._fh3405 = 0.05;
_local11._fu1480 = 1;
_local11._os1996 = 300;
_local11._wx1489 = 0.2;
_local11._fj467 = 30;
_local11._fi107 = _ks1885._oj3099._xf2390;
};
}
private function _li2736():void{
var _local2:_nq1314;
var _local3:int;
var _local4:Boolean;
var _local5:_cf177;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:_xv1434;
var _local10:_ps2722;
var _local11:int;
var _local12:int;
var _local13:Number;
var _local14:Point;
var _local1:int;
while (_local1 < _vu1904.length) {
_local2 = _vu1904[_local1];
if (_local2._iv2583 > 0){
_local2._iv2583++;
if (_local2._iv2583 > 10){
_local4 = true;
};
_local2.scaleX = (_local2.scaleX + 0.2);
_local2.scaleY = (_local2.scaleY + 0.2);
_local2.alpha = (_local2.alpha - 0.2);
} else {
_local2.x = (_local2.x + _local2._jx593.x);
_local2.y = (_local2.y + _local2._jx593.y);
_local3 = _local2._mk2523();
_local2._qk936(0);
_local4 = false;
if (_wf88._hg2178(_local2, true)){
if (!_local2.parent){
_local4 = true;
} else {
_local5 = _dt2656._eu1822(_local2._fn629().x, _local2._fn629().y);
if (_local5){
_local2._qk936(_local5._js3192);
};
if (((!(_local5)) || (((_local5) && ((_local5._js3192 < _ks1885._cr162)))))){
_local2._iv2583 = 1;
_hq1071(_tv609._da2433(_local2._ak3347));
};
};
} else {
_local2._qk936(_local3);
};
if (!_local4){
_local6 = (_local2._xc1677().x + _wf88._rw1773(_local2._fn629().x, _local2._fn629().y));
_local7 = (_local2._xc1677().y + _wf88._ou1013(_local2._fn629().x, _local2._fn629().y));
_local8 = 0;
while (_local8 < _ug1959.length) {
_local9 = _ug1959[_local8];
if (((_local9) && (!((_local2._je2779 == _local9))))){
if (((((_local2._je2779._fn629()) && (_local9._fn629()))) && (!(_tv609._iq3184(_local9._fn629().itemType, _local2._je2779._fn629().itemType))))){
} else {
_local10 = _local9._fn629();
_local11 = (_local10.x - _local2._fn629().x);
_local12 = (_local10.y - _local2._fn629().y);
_local13 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12)));
if (_local13 < 2){
_local14 = _local9._tt2031();
_local11 = (_local6 - _local14.x);
_local12 = (_local7 - _local14.y);
_local13 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12)));
if (_local13 < 22){
_an2934(_local9._oi311(), _local2._je2779._oi311(), _tv609._hh3347(_local2._ak3347), _tv609._da2433(_local2._ak3347), true, false);
_local2._iv2583 = 1;
if (_tv609._ee138 == _tv609._gh3308(_local2._ak3347)){
_fm197._oj3099._ub2003(_ks1885._cf3295);
} else {
if (_tv609._aa2858 == _tv609._gh3308(_local2._ak3347)){
_fm197._oj3099._ub2003(_ks1885._rj1614);
} else {
_hq1071(_tv609._da2433(_local2._ak3347));
};
};
};
};
};
};
_local8++;
};
};
};
if (_local4){
if (_local2.parent){
_local2.parent.removeChild(_local2);
};
_vu1904.splice(_local1, 1);
} else {
_local1++;
};
};
}
private function _ru1770(_arg1:int):int{
switch ((_arg1 % 6)){
case 0:
return (_tv609._as1086);
case 1:
return (_tv609._bn2632);
case 2:
return (_tv609._rf2481);
case 3:
return (_tv609._eh3385);
case 4:
return (_tv609._jn2396);
case 5:
return (_tv609._gn3196);
};
return (_tv609._as1086);
}
private function _ex3375():void{
var _local2:_xv1434;
_mh1282 = 0;
_wy3325 = 0;
_qr2743 = 0;
var _local1:int;
while (_local1 < _ug1959.length) {
_local2 = (_ug1959[_local1] as _xv1434);
if (_local2){
_wd1378(_local2._fn629().itemType, true);
};
_local1++;
};
}
public function _dp1447(_arg1:uint):void{
}
private function _ti1495(_arg1:Event):void{
}
private function _km649():void{
}
public function _kr1260():void{
_bl363 = 0;
_ug1959 = new Array();
_ik1385 = new Array();
_vu1904 = new Array();
_js3212 = null;
_md1190 = false;
_br1122++;
if (!_dt2656._so2022()){
_dt2656 = _dt2656._qi1235();
};
_wf88._wd1294(this);
_wf88._wa3159(_dt2656, this);
_sd1429();
_yo2558();
_tr3015();
_vt2382();
_xp2298();
_ex3375();
_rf893 = 1000;
_ow711 = 0;
_mf505 = getTimer();
_wf88.addEventListener(MouseEvent.MOUSE_DOWN, _nk2733, false, 0, true);
_wf88.addEventListener(MouseEvent.MOUSE_MOVE, _gc1295, false, 0, true);
if (!_et2781){
_et2781 = new Timer(50);
_et2781.addEventListener(TimerEvent.TIMER, _yh3054);
_et2781.start();
};
_hn1092();
_ji160.visible = false;
_ea2459 = 0;
_yw462();
if (_br1122 != 1){
_ld375();
};
_wf88._es2323();
_tc1388();
_vy2164();
if (((_dt2656._fq697()) && ((_dt2656._im3379() > 0)))){
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._oh440, _dt2656._im3379()), _dt2656.getName());
};
}
private function _oy172(_arg1:int):uint{
var _local7:uint;
if ((Math.random() * 100) < 75){
return (0);
};
var _local2:uint;
var _local3:int = (Math.random() * 100);
var _local4 = 1;
var _local5:uint = _tv609._ba3524(_arg1, 1);
if (_local3 > 90){
_local4 = 3;
} else {
if (_local3 > 60){
_local4 = 2;
};
};
var _local6:int;
while (_local6 < _local4) {
_local7 = (1 << (Math.random() * _tv609._cl3154));
if ((((_arg1 == _tv609._jq178)) && ((_local7 == _tv609._gp2473)))){
_local7 = 0;
};
if ((((_arg1 == _tv609._fs3141)) && ((_local7 == _tv609._mc3455)))){
_local7 = 0;
};
if (_tv609._gt787(_local5)){
if ((((((((((_local7 == _tv609._ky1146)) || ((_local7 == _tv609._fl2472)))) || ((_local7 == _tv609._pe2571)))) || ((_local7 == _tv609._bi768)))) || ((_local7 == _tv609._nv95)))){
_local7 = 0;
};
} else {
if ((((((_local7 == _tv609._ta1504)) || ((_local7 == _tv609._nw1163)))) || ((_local7 == _tv609._xf2650)))){
_local7 = 0;
};
};
if (((!(_local7)) && ((_arg1 == _tv609._mu1419)))){
if ((Math.random() * 100) > 50){
_local7 = _tv609._iv2015;
} else {
_local7 = _tv609._fo3128;
};
};
if (!_local7){
_local6--;
};
_local2 = (_local2 | _local7);
_local6++;
};
return (_local2);
}
private function _vy2164():void{
var _local5:_oc1935;
var _local6:BitmapData;
var _local7:int;
var _local8:uint;
var _local9:int;
var _local10:String;
var _local11:String;
var _local12:int;
var _local13:int;
if (((!(_pi1133)) || (!(_jh3140)))){
return;
};
var _local1:Array = new Array();
var _local2:Array = new Array();
var _local3:Boolean;
_lf35._yj429(_pi1133, _local1, _local2);
if (_ip1192 > ((_local1.length - _nn2297) + (_nn2297 - (_local1.length % _nn2297)))){
_ip1192 = ((_local1.length - _nn2297) + (_nn2297 - (_local1.length % _nn2297)));
};
if (_ip1192 < 0){
_ip1192 = 0;
};
var _local4:int;
while (_local4 < _nn2297) {
_local5 = _jh3140[_local4];
_local6 = null;
_local7 = (_local4 + _ip1192);
if ((((_local7 >= 0)) && ((_local7 < _local1.length)))){
_local8 = _local1[_local7];
_local6 = _tv609._rl1874(_local8);
_local9 = _local2[_local7];
_local10 = "";
if (_local9 > 1){
_local10 = String(_local9);
};
_local5._ub2042(_local10, _local6);
_local5._yi2089(((!(_local3)) && ((_av2377 == _local8))));
_local5.enabled = !((_av2377 == _local8));
if (!_local3){
_local3 = (_av2377 == _local8);
};
_local11 = ((_tv609._kl2415(_local8) + "\n") + _tv609._fr2230(_local8, false));
_local12 = _tv609._xe421(_local8);
_local13 = _tv609._lr3188(_local8);
if (_local12 == _tv609._ln279){
_local11 = (_local11 + _hy2528._lx1126);
if (_local13 == _tv609._tm582){
_local11 = (_local11 + ("\n" + _hy2528._uk2574));
} else {
if (_local13 == _tv609._mf3313){
_local11 = (_local11 + ("\n" + _hy2528._dl3128));
};
};
} else {
if (_local12 == _tv609._gh3226){
_local11 = (_local11 + _hy2528._wx2290);
};
};
_local5._cb2006(_local11);
} else {
_local5.enabled = false;
_local5._ub2042("", null);
_local5._yi2089(false);
_local5._cb2006(_hy2528._dv1033);
};
_local4++;
};
}
private function _ok1707():void{
_ml2027 = _rl3079;
if (((!(_pi1133)) || (!(_ae2040)))){
return;
};
var _local1:int = _ae2040._lo3267();
if (_pi1133._es641() != -1){
_local1 = _pi1133._es641();
};
var _local2:_lj345 = _ae2040._qv1265(_local1);
if (_local2 == null){
_local2 = _ae2040._bn1309();
};
if (_local2){
};
}
public function _bj347():_gm2472{
return (_wf88);
}
private function _rx2607(_arg1:Event):void{
}
private function _tf1188(_arg1:Event):void{
}
private function _va1647(_arg1:Event):void{
var _local2:Object = _arg1.target;
var _local3:Number = 0;
while (_local3 < _mt2396.length) {
if (_mt2396[_local3] == _local2){
_ea2459 = _local3;
break;
};
_local3++;
};
_yw462();
}
private function _lt1178(_arg1:_ex557):void{
var _local2:GlowFilter;
var _local3:Array;
if (_vg827 != _arg1){
if (_vg827){
_vg827.filters = new Array();
};
_vg827 = _arg1;
_mw2340 = null;
if (_arg1){
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 3);
_local3 = new Array();
_local3.push(_local2);
_arg1.filters = _local3;
_arg1.cacheAsBitmap = true;
};
_xx2221();
};
}
public function _an2934(_arg1:_ex557, _arg2:_ex557, _arg3:Number, _arg4:uint, _arg5:Boolean, _arg6:Boolean):Number{
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local7:Number = 0;
var _local8:_xv1434 = _af1424(_arg1);
if (_local8 != null){
_local9 = 1;
_local9 = (1 / (2 * _tv609._we2779));
_local10 = _arg3;
_local11 = 0;
_local12 = 0;
_local13 = 0;
_local10 = Math.max(0, (_local10 - (_local9 * Math.max((Math.random() * _local8._ac1551(0))))));
_local14 = _local10;
_local14 = Math.max(_local14, _local11);
_local14 = Math.max(_local14, _local12);
_local14 = Math.max(_local14, _local13);
_local15 = _local8._cg411();
if (_local8._an2934(_arg2, _local14, _arg4)){
};
_local16 = _local8._cg411();
_local7 = (_local15 - _local16);
};
return (_local7);
}
private function _nk2733(_arg1:MouseEvent):void{
var _dn1145:Boolean;
var _hg2325:int;
var _it1426:int;
var _sx1238:int;
var _va2516:String;
var event = _arg1;
try {
_ec663();
if (_fb1591()){
_hg2325 = _pu1041(_ea2459);
_it1426 = _wf88._wf1652(_wf88.mouseX, _wf88.mouseY);
_sx1238 = _wf88._vr2593(_wf88.mouseX, _wf88.mouseY);
_va2516 = _sh156(_it1426, _sx1238, _hg2325);
if (_va2516 == null){
_qc334(_it1426, _sx1238, _hg2325);
} else {
_fm197._oj3099._ub2003(_ks1885._ap3355);
_jy991(("Cannot build: " + _va2516));
};
return;
};
if (((event.shiftKey) || (event.ctrlKey))){
return;
};
_dn1145 = false;
if (_vg827){
setSelectedItem(_vg827);
} else {
_gy1070 = null;
};
if (!_dn1145){
_ey860 = _wf88.mouseX;
_al2319 = _wf88.mouseY;
};
} catch(err:Error) {
_ni2054._ev1283(err);
};
}
private function _su2843():void{
var _local1:Point;
if (!_aw2736){
return;
};
if (((!(_gy1070)) && (_aw2736.parent))){
_aw2736.parent.removeChild(_aw2736);
_aw2736 = null;
return;
};
if (_gy1070){
_local1 = _gy1070.localToGlobal(new Point(0, 0));
_local1 = _aw2736.parent.globalToLocal(_local1);
_aw2736.x = _local1.x;
_aw2736.y = _local1.y;
};
}
override protected function _ld988():void{
if (!_pi1133){
return;
};
if (!_ae2040){
return;
};
var _local1:_lj345 = _ae2040._qv1265(_pi1133._es641());
if (!_local1){
_rt2598._oj3099._hh2204(_hy2528._cg567, _hy2528._rl34);
return;
};
_bi1390(_local1, false);
}
private function _gh1214(_arg1:int, _arg2:int):_ex557{
var _local5:_ex557;
var _local3:Sprite = (_wf88._eu1822(_arg1, _arg2) as Sprite);
if (!_local3){
return (null);
};
var _local4:int;
while (_local4 < _local3.numChildren) {
_local5 = (_local3.getChildAt(_local4) as _ex557);
if (((_local5) && (_tv609._ei1897(_local5._fn629().itemType)))){
return (_local5);
};
_local4++;
};
return (null);
}
private function _ru1312():Boolean{
var _local1:Object;
var _local2:Point;
if (((((_sq3430) && (_wf88))) && ((_sq3430.length > 0)))){
_xi2045++;
if (_xi2045 >= _sq3430.length){
_xi2045 = 0;
};
_local1 = _sq3430[_xi2045];
if (!_wf88._kr1759()._uc1272(_local1.x, _local1.y)){
_in3230(_local1.x, _local1.y, _ru1770(_mt1162));
return (true);
};
_local2 = _rt540(_local1.x, _local1.y);
if (_local2){
_in3230(_local2.x, _local2.y, _ru1770(_mt1162));
return (true);
};
};
return (false);
}
private function _vt2382():void{
var _local1:int;
var _local2:Object;
if (_sq3430){
_local1 = 0;
while (_local1 < _sq3430.length) {
_local2 = _sq3430[_local1];
_wf88._ks1104(_local2.x, _local2.y);
_local1++;
};
};
}
private function _sp138(_arg1:_ex557):int{
var _local4:int;
var _local5:int;
if (!_arg1){
return (0);
};
var _local2:_ps2722 = _arg1._fn629();
var _local3:int = _tv609._cy1922(_local2.itemType);
if ((((((_local3 == _ks1885._mh3098)) || ((_local3 == _ks1885._ph1453)))) || ((_local3 == _ks1885._tk3087)))){
_local4 = _tv609._ug265(_local2.itemType);
_local5 = _wi2032(_local3);
if (_local4 == 0){
return ((_local5 * 3));
};
if (_local4 == 1){
return ((_local5 * 5));
};
};
return (0);
}
private function setSelectedItem(_arg1:_ex557):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
if (_gy1070 != _arg1){
_gy1070 = _arg1;
if (((_aw2736) && (_aw2736.parent))){
_aw2736.parent.removeChild(_aw2736);
_aw2736 = null;
};
if (!_gy1070){
return;
};
_aw2736 = new Sprite();
_xh1372.addChild(_aw2736);
_local2 = _gy1070.width;
_local3 = _gy1070.height;
_local4 = 4;
_local5 = 4;
_aw2736.graphics.lineStyle(1, _ks1885._nb1049, 1);
_aw2736.graphics.moveTo(0, 0);
_aw2736.graphics.lineTo(_local4, 0);
_aw2736.graphics.moveTo(0, 0);
_aw2736.graphics.lineTo(0, _local5);
_aw2736.graphics.moveTo(_local2, 0);
_aw2736.graphics.lineTo((_local2 - _local4), 0);
_aw2736.graphics.moveTo(_local2, 0);
_aw2736.graphics.lineTo(_local2, _local5);
_aw2736.graphics.moveTo(_local2, _local3);
_aw2736.graphics.lineTo((_local2 - _local4), _local3);
_aw2736.graphics.moveTo(_local2, _local3);
_aw2736.graphics.lineTo(_local2, (_local3 - _local5));
_aw2736.graphics.moveTo(0, _local3);
_aw2736.graphics.lineTo(_local4, _local3);
_aw2736.graphics.moveTo(0, _local3);
_aw2736.graphics.lineTo(0, (_local3 - _local5));
_aw2736.graphics.lineStyle();
};
}
private function _ko3026(_arg1:uint):void{
}
private function _tr3015():void{
if (((_nd256) && (_ae2040))){
_nd256._mr1085((((_hy2528._xc2237 + " '") + _ae2040.getName()) + "'"));
if (_ww3089){
_nd256.x = (_ww3089.x - _nd256.width);
};
_nd256.visible = (_ae2040.getUID() > 0);
};
}
private function _vs1936():void{
var _local1:_oc1935;
var _local2:int;
var _local3:int;
var _local4:TextField;
if (((_ee1989) && (_ee1989.parent))){
_ee1989.parent.removeChild(_ee1989);
};
if (((_uc2468) && (_uc2468.parent))){
_uc2468.parent.removeChild(_uc2468);
};
if (((_ww3089) && (_ww3089.parent))){
_ww3089.parent.removeChild(_ww3089);
};
if (((_nd256) && (_nd256.parent))){
_nd256.parent.removeChild(_nd256);
};
if (((_ci1802) && (_ci1802.parent))){
_ci1802.parent.removeChild(_ci1802);
};
if (_jk426){
_jk426.visible = false;
};
if (_et2781){
_et2781.removeEventListener(TimerEvent.TIMER, _yh3054);
_et2781.stop();
_et2781 = null;
};
if (_wf88){
_wf88.removeEventListener(MouseEvent.MOUSE_MOVE, _gc1295);
_wf88.removeEventListener(MouseEvent.MOUSE_DOWN, _nk2733);
};
if (_uc2468){
_uc2468.removeEventListener(MouseEvent.MOUSE_DOWN, _cb3146);
};
if (_ww3089){
_ww3089.removeEventListener(MouseEvent.MOUSE_DOWN, _sr585);
};
if (_oo2907){
_oo2907.removeEventListener(MouseEvent.MOUSE_DOWN, _ti1495);
};
if (_de424){
_de424.removeEventListener(MouseEvent.MOUSE_DOWN, _rx2607);
};
if (_fd3164){
_fd3164.removeEventListener(MouseEvent.MOUSE_DOWN, _cv207);
};
if (_tk1096){
_tk1096.removeEventListener(MouseEvent.MOUSE_DOWN, _sg33);
};
if (((_jg3059) && (_jg3059.parent))){
_jg3059.parent.removeChild(_jg3059);
};
if (((_tk1096) && (_tk1096.parent))){
_tk1096.parent.removeChild(_tk1096);
};
if (((_oo2907) && (_oo2907.parent))){
_oo2907.parent.removeChild(_oo2907);
};
if (((_de424) && (_de424.parent))){
_de424.parent.removeChild(_de424);
};
if (((_fd3164) && (_fd3164.parent))){
_fd3164.parent.removeChild(_fd3164);
};
if (_jh3140){
_local2 = 0;
while (_local2 < _jh3140.length) {
_local1 = _jh3140[_local2];
_local1.parent.removeChild(_local1);
_local2++;
};
_jh3140 = null;
};
if (_yb1229){
_local2 = 0;
while (_local2 < _yb1229.length) {
_local1 = _yb1229[_local2];
_local1.parent.removeChild(_local1);
_local2++;
};
_yb1229 = null;
};
if (_oi1702){
_local2 = 0;
while (_local2 < _oi1702.length) {
_local1 = _oi1702[_local2];
_local1.parent.removeChild(_local1);
_local2++;
};
_oi1702 = null;
};
if (_pj1084){
_local3 = 0;
while (_local3 < _pj1084.length) {
_local4 = _pj1084[_local3];
_local4.parent.removeChild(_local4);
_local3++;
};
_pj1084 = null;
};
_wf88._wd1294(null);
}
private function _wd1378(_arg1:uint, _arg2:Boolean):void{
var _local3:int = (_arg2) ? 1 : -1;
if (_tv609._ei1897(_arg1)){
_qr2743 = (_qr2743 + _local3);
switch (_tv609._cy1922(_arg1)){
case _ks1885._ud1618:
case _ks1885._ka3350:
_sk3123 = (_sk3123 + _local3);
break;
case _ks1885._kq1981:
_ft2176 = (_ft2176 + _local3);
break;
case _ks1885._rc1837:
_ho2873 = (_ho2873 + _local3);
break;
case _ks1885._ph675:
_vd262 = (_vd262 + _local3);
break;
case _ks1885._ic2367:
_ax1209 = (_ax1209 + _local3);
break;
case _ks1885._oa2678:
_ql1535 = (_ql1535 + _local3);
break;
case _ks1885._yd2351:
_ee2627 = (_ee2627 + _local3);
break;
case _ks1885._mh3098:
_rx2819 = (_rx2819 + _local3);
break;
case _ks1885._ph1453:
_ng1882 = (_ng1882 + _local3);
break;
case _ks1885._tk3087:
_kp3237 = (_kp3237 + _local3);
break;
};
} else {
if (((_tv609._au2821(_arg1)) || (_tv609._hy1205(_arg1)))){
if (_tv609._fd2696(_arg1)){
_wy3325 = (_wy3325 + _local3);
} else {
_mh1282 = (_mh1282 + _local3);
};
};
};
}
private function _yo2367(_arg1:int):int{
switch (_arg1){
case _ks1885._kq1981:
case _ks1885._rc1837:
case _ks1885._ph675:
case _ks1885._ic2367:
case _ks1885._ud1618:
case _ks1885._ka3350:
case _ks1885._oa2678:
case _ks1885._yd2351:
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
case _ks1885._as1343:
case _ks1885._ok1316:
return (2);
case _ks1885._cd1736:
return (3);
};
return (0);
}
public function _yu2882(_arg1:_ps2722, _arg2:_ex557):void{
var _local5:uint;
var _local6:int;
var _local7:Object;
var _local3:_xv1434;
var _local4:uint = _tv609._xe421(_arg1.itemType);
switch (_local4){
case _tv609._ww915:
_local5 = _tv609._cy1922(_arg1.itemType);
if (_local5 == _ks1885._cd1736){
_ey860 = _wf88._rw1773(_arg1.x, _arg1.y);
_al2319 = _wf88._ou1013(_arg1.x, _arg1.y);
};
_local6 = _wf88._rd100(_arg1.x, _arg1.y, _yo2367(_local5));
_local3 = new _pi2679(_arg2, _arg1, _wf88, _local6);
break;
case _tv609._jj2642:
break;
case _tv609._fv102:
case _tv609._wl2634:
case _tv609._gj2896:
case _tv609._qj2375:
case _tv609._wl2095:
case _tv609._mp331:
case _tv609._mf3458:
case _tv609._xu1450:
case _tv609._cq3482:
_arg2._kq768((Math.random() * 7));
_local3 = new _vf2225(_arg2, _arg1, _wf88);
break;
case _tv609._ou985:
case _tv609._dx664:
case _tv609._sr2614:
case _tv609._vy139:
_arg2._kq768((Math.random() * 7));
_local3 = new _vf2225(_arg2, _arg1, _wf88);
break;
case _tv609._bn2161:
switch (_tv609._da912(_arg1.itemType)){
case _tv609._cp2279:
if (_js3212 == null){
_js3212 = new Point(_arg1.x, _arg1.y);
};
if (_arg2){
_wf88.removeItem(_arg2, false);
};
break;
case _tv609._du1781:
case _tv609._ei2241:
case _tv609._dr3518:
case _tv609._ws1827:
case _tv609._vr2222:
case _tv609._dm906:
if (_sq3430){
_local7 = new Object();
_local7.x = _arg1.x;
_local7.y = _arg1.y;
_local7.t = _tv609._da912(_arg1.itemType);
_sq3430.push(_local7);
};
break;
};
break;
case _tv609._ee2004:
_wf88._he1651(_arg2);
break;
case _tv609._og2636:
if (!_tv609._qn2504(_arg1.itemType)){
_wf88._he1651(_arg2);
} else {
if (((!((_bm1386 == null))) && ((_bm1386.getUID() == _tv609._gm3294(_arg1.itemType))))){
_js3212 = new Point(_arg1.x, _arg1.y);
};
};
break;
case _tv609._pg2441:
_wf88._mp3341(_arg1.x, _arg1.y, _tv609._pv909(_arg1.itemType));
_wf88._he1651(_arg2);
_ik1385.push(_arg2);
break;
};
if (_local3){
_ug1959.push(_local3);
};
}
public function _jf205(_arg1:_oc1935):void{
_hh270(_arg1);
}
}
}//package ambiera
Section 520
//_rt2598 (ambiera._rt2598)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import flash.net.*;
public class _rt2598 extends EventDispatcher {
private var _us2326:URLVariables;
private var _bk2030:Function;
private var _xh1372:DisplayObjectContainer;
private var _vt2759:_nu2220;
private var _vt2804:Function;
private var _cy1587:Array;
private var _ih2622:Boolean;
private var _py55:int;
private var _no287:int;
private var _vn2780:UIComponent;
private var _tx453:String;
private var _sg400:_di1224;
private var _mb712:String;
private var _un61:String;
private var _qv847:Boolean;
public static var _oj3099:_rt2598;
public function _rt2598(_arg1:DisplayObjectContainer){
_oj3099 = this;
_xh1372 = _arg1;
_ih2622 = false;
_py55 = -1;
_vt2759 = new _nu2220();
}
public function _mv1993():int{
return (_no287);
}
public function _ye2732():int{
return (_py55);
}
public function _sg1220(_arg1:String):void{
var _ub3510 = _arg1;
_qv847 = false;
_gd375((((_hy2528._se926 + " (") + _ub3510) + ")"), _hy2528._lc2383, _hy2528._xp2875, _hy2528._fo2705, function ():void{
_sq2968();
});
}
public function _fw1067(_arg1:int, _arg2:Boolean=true):void{
var _local4:String;
if (((((_ih2622) && (_vt2759))) && ((_arg1 == 0)))){
_vt2759._gu1091();
};
_no287 = -1;
_no287 = _arg1;
_cy1587 = new Array();
var _local3:int;
while (true) {
_local4 = _sg400._yl840(_local3);
_local3++;
if (_local4 != null){
_cy1587.push(_local4);
} else {
break;
};
};
if (_arg2){
_xs2570();
};
if (_bk2030 != null){
_bk2030.call(this, 0);
};
}
public function _rq326(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Function=null, _arg7:int=0):void{
_al3078(_arg6);
var _local8:Array = new Array();
_local8.push(_arg3);
_local8.push(_arg4);
_local8.push(_arg5);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local8, null, null, null, false, null, _arg7);
}
public function _ae248():String{
return (_un61);
}
public function _lx2182(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String, _arg9:String, _arg10:Function=null, _arg11:int=0):void{
_al3078(_arg10);
var _local12:Array = new Array();
_local12.push(_arg3);
_local12.push(_arg4);
_local12.push(_arg5);
_local12.push(_arg6);
_local12.push(_arg7);
_local12.push(_arg8);
_local12.push(_arg9);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local12, null, null, null, false, null, _arg11);
}
public function _ph3167(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String, _arg9:Function=null):void{
_al3078(_arg9);
var _local10:Array = new Array();
_local10.push(_arg3);
_local10.push(_arg4);
_local10.push(_arg5);
_local10.push(_arg6);
_local10.push(_arg7);
_local10.push(_arg8);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local10);
}
public function _pb183(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:String, _arg9:String, _arg10:String, _arg11:String, _arg12:Function=null):void{
_al3078(_arg12);
var _local13:Array = new Array();
_local13.push(_arg3);
_local13.push(_arg4);
_local13.push(_arg5);
_local13.push(_arg6);
_local13.push(_arg7);
_local13.push(_arg8);
_local13.push(_arg9);
_local13.push(_arg10);
_local13.push(_arg11);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local13);
}
public function _nl2454(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:Function=null):void{
_al3078(_arg7);
var _local8:Array = new Array();
_local8.push(_arg3);
_local8.push(_arg4);
_local8.push(_arg5);
_local8.push(_arg6);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local8);
}
public function _pw2871(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Function=null, _arg6:int=0):void{
_al3078(_arg5);
var _local7:Array = new Array();
_local7.push(_hy2528._ve3033);
_local7.push(_hy2528._fo2705);
var _local8:Array = new Array();
if (_arg3){
_local8.push(_arg3);
};
var _local9:Array = new Array();
if (_arg4){
_local9.push(_arg4);
};
var _local10:Array = new Array();
_local10.push(_arg6);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local7, _local8, _local9, _local10);
}
private function _sq2968():void{
if (_rt2598._oj3099._mv1993() == 0){
_cj2690(_tx453, _mb712, _us2326, _vt2804);
} else {
if (_vt2804 != null){
_vt2804.call(this, 0);
};
};
}
public function _xi2841(_arg1:String, _arg2:String, _arg3:String, _arg4:Function=null, _arg5:Boolean=false, _arg6:int=0):void{
_al3078(_arg4, _arg6);
var _local7:Array = new Array();
_local7.push(_arg3);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local7, null, null, null, _arg5, null, _arg6);
}
public function _gd375(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Function=null, _arg6:int=0):void{
_al3078(_arg5);
var _local7:Array = new Array();
_local7.push(_arg3);
_local7.push(_arg4);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local7, null, null, null, false, null, _arg6);
}
private function _al3078(_arg1:Function, _arg2:int=0):void{
var _local3:IToolTip = ToolTipManager.currentToolTip;
if (_local3){
_local3.visible = false;
};
_bk2030 = _arg1;
_xs2570();
_vn2780 = new UIComponent();
_vn2780.width = _xh1372.width;
_vn2780.height = _xh1372.height;
_xh1372.addChild(_vn2780);
_vn2780.graphics.beginFill(0, ((_arg2 & _di1224._sl1837)) ? 0.2 : 0.5);
_vn2780.graphics.drawRect(0, 0, _vn2780.width, _vn2780.height);
_vn2780.graphics.endFill();
}
public function _rq83():_di1224{
return (_sg400);
}
public function _db3055(_arg1:String, _arg2:String, _arg3:Array, _arg4:Array=null, _arg5:Array=null, _arg6:Array=null, _arg7:Function=null, _arg8:int=0, _arg9:int=0, _arg10:int=0):void{
_al3078(_arg7);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, false, null, _arg8, _arg9, _arg10);
}
public function _sp495():Boolean{
if (!_sg400){
return (false);
};
return (!(((_sg400._gl493() & _di1224._sl1837) == 0)));
}
public function _ql17(_arg1:String):void{
_un61 = _arg1;
_qv847 = true;
_fw1067(1);
}
public function _hh2204(_arg1:String, _arg2:String, _arg3:Function=null, _arg4:int=0):void{
_xi2841(_arg1, _arg2, _hy2528._ve3033, _arg3, false, _arg4);
}
public function _bv921():Boolean{
return (!((_sg400 == null)));
}
public function _cj2690(_arg1:String, _arg2:String, _arg3:URLVariables, _arg4:Function=null):void{
_qv847 = false;
_mb712 = _arg2;
_tx453 = _arg1;
_us2326 = _arg3;
_vt2804 = _arg4;
if (_vt2759.load(_arg3)){
_xi2841(_arg1, _arg2, _hy2528._fo2705, _arg4, true);
_ih2622 = true;
_vt2759._du1000(_arg3);
};
}
public function _dq2282(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8:Function=null, _arg9:int=0):void{
_al3078(_arg8);
var _local10:Array = new Array();
_local10.push(_arg3);
_local10.push(_arg4);
_local10.push(_arg5);
_local10.push(_arg6);
_local10.push(_arg7);
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local10, null, null, null, false, null, _arg9);
}
public function _yl840(_arg1:int):String{
if ((((_arg1 >= 0)) && ((_arg1 < _cy1587.length)))){
return (_cy1587[_arg1]);
};
return ("");
}
public function _xs2570():void{
_ih2622 = false;
if (((_vn2780) && (_vn2780.parent))){
_vn2780.parent.removeChild(_vn2780);
};
_vn2780 = null;
if (((_sg400) && (_sg400.parent))){
_sg400.close();
_sg400.parent.removeChild(_sg400);
};
_sg400 = null;
}
public function _kn2177():Boolean{
return (_qv847);
}
public function _vs613(_arg1:String, _arg2:String, _arg3:Array, _arg4:Boolean, _arg5:Function=null, _arg6:int=0):void{
_al3078(_arg5);
var _local7:Array = new Array();
if (_arg4){
_local7.push(_hy2528._fo2705);
};
_sg400 = new _di1224(_xh1372, _arg1, _arg2, _local7, null, null, null, false, _arg3, 0, _arg6);
}
public function _th463(_arg1:int):void{
_no287 = -1;
_py55 = _arg1;
_xs2570();
if (_bk2030 != null){
_bk2030.call(this, 0);
};
}
}
}//package ambiera
Section 521
//_td2957 (ambiera._td2957)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import mx.utils.*;
public class _td2957 {
private const _tt437:int = 30;
private const _lb3043:int = 10;
private const _gu2043:int = 20;
private const _pe3171:int = 25;
private const _ef1064:int = 4;
private const _rq113:int = 70;
private const _kr84:int = 150;
private const _hj1124:int = 1;
private const _gi566:int = 10;
private const _um1061:int = 0;
private var _rj1827:TextField;
private var _fx1180:Array;
private var _ol230:_oc1935;
private var _nb372:Boolean;
private var _rn3213:int;
private var _xt559:Boolean;
protected var _pi1133:_xk85;
private var _cd1069:Array;
private var _vv2607:int;
private var _bu3491:String;
private var _ny336:_xk85;
private var _qk2262:_oc1935;
private var _ok2844:_di1224;
private var _nw281:int;
private var _eo2583:int;
private var _eu1893:int;
private var _nk3233:_oc1935;
private var _tn2368:Boolean;
private var _go1365:int;
private var _gx504:int;
protected var _ae2040:_nm2373;
protected var _xh1372:DisplayObjectContainer;
private var _xe1975:TextField;
protected var _xp3032:int;// = -1
protected var _dt2656:_lj345;
private var _mu1207:String;
private var _ib1171:_oc1935;
private var _xl1421:String;
private var _fe1487:TextField;
private var _tn2715:TextField;
private var _le1153:Array;
private var _kj2099:Boolean;
private var _yr1227:int;
private var _oh1802:TextField;
private var _mg2322:TextField;
public function _td2957(){
_tn2368 = true;
_xt559 = false;
_vv2607 = _um1061;
}
private function _wi1735(_arg1:Event):void{
if ((_tv609._dr1245 - (_yr1227 + _eo2583)) > 0){
_eo2583++;
_ir1011();
};
}
private function _tt1244():void{
var _local1:String;
var _local2:String;
if (_rt2598._oj3099._kn2177()){
_local1 = _rt2598._oj3099._ae248();
_local2 = _local1.substr(0, 2);
if (_local2 == "ok"){
_rt2598._oj3099._hh2204(_hy2528._pr656, _hy2528._ch3165);
_xd3169._oj3099._an1998(_ny336);
_ny336 = null;
} else {
_ny336 = null;
_rt2598._oj3099._hh2204(((_hy2528._ju254 + "\n") + _local1), _hy2528._ch3165);
};
};
}
private function _kt2941():void{
var _nw12:String;
var _je291:String;
var _jm560:URLRequest;
var text:String;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 == "ok"){
_xd3169._oj3099._ap2180 = true;
_rt2598._oj3099._hh2204(_hy2528._hb3391, _hy2528._bt3491);
_jm560 = new URLRequest("thankyou.php");
navigateToURL(_jm560, "_blank");
} else {
text = _hy2528._re420;
if (_nw12){
text = (text + "\n\n");
text = (text + _nw12);
};
_rt2598._oj3099._hh2204(text, _hy2528._ul2052, function ():void{
_dd256();
});
};
};
}
protected function _gl2628():void{
if (_rt2598._oj3099._mv1993() == 0){
_ky48(_kj2099);
} else {
_ig150();
};
}
private function _po1370():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
_pi1133._wu2858(_tv609._gj2896);
break;
case 1:
_pi1133._wu2858(_tv609._fv102);
break;
case 2:
_pi1133._wu2858(_tv609._mp331);
break;
case 3:
_pi1133._wu2858(_tv609._wl2634);
break;
};
_ry1510()._fn629().itemType = _tv609._sx3421(_pi1133._le2192());
_ry1510()._oi311()._tg184();
_ef956();
_xt264(_ry1510()._oi311());
_ld375();
}
protected function _ay657():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
_vv2065();
break;
case 1:
_ky48(false);
};
}
protected function _ww1346():void{
var _local1:String;
var _local2:String;
if (_rt2598._oj3099._mv1993() == 0){
_local1 = _rt2598._oj3099._yl840(0);
_local2 = _rt2598._oj3099._yl840(1);
_hq3228(_local1, _local2);
} else {
_tn2368 = false;
};
}
private function _jl3330():void{
if (_rt2598._oj3099._mv1993() != 0){
return;
};
var d:URLVariables = _nu2220._sq679(_nu2220._pc1058);
d.pcode = _rt2598._oj3099._yl840(0);
_mu1207 = _rt2598._oj3099._yl840(0);
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._aw489, d, function ():void{
_kt2941();
});
}
public function _ry1510():_cb3393{
return (null);
}
protected function _bl447():void{
}
public function _yo3115(_arg1:_xk85):void{
}
public function _yj3030():_nm2373{
return (_ae2040);
}
private function _wl2001():void{
var _nw12:String;
var _je291:String;
var _ie28:String;
try {
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 != "ok"){
_rt2598._oj3099._hh2204(((_hy2528._le3228 + "\n") + _nw12), _hy2528._ma1301);
} else {
_ie28 = _nw12.substr(2);
if (_dt2656){
_dt2656._vn2234(_ie28);
};
_wg874();
};
};
} catch(err:Error) {
_ni2054._ev1283(err, "ML");
};
}
public function _cb2562():Boolean{
return (false);
}
protected function _di2392():void{
var name:String;
var email:String;
var pw:String;
var _pf1151:String;
var _bl3513:Function;
var d:URLVariables;
if (_rt2598._oj3099._mv1993() == 0){
name = StringUtil.trim(_rt2598._oj3099._yl840(0));
email = StringUtil.trim(_rt2598._oj3099._yl840(1));
pw = _rt2598._oj3099._yl840(2);
_pf1151 = _rt2598._oj3099._yl840(3);
_xd3169._oj3099._rm1940 = name;
_xd3169._oj3099._ns3110 = pw;
_xd3169._oj3099._dt107 = email;
_bl3513 = function ():void{
_ku658();
};
if (pw.length < 4){
_xd3169._oj3099._ns3110 = "";
_rt2598._oj3099._hh2204(_hy2528._mt2524, _hy2528._ap2496, _bl3513);
return;
};
if (pw != _pf1151){
_xd3169._oj3099._ns3110 = "";
_rt2598._oj3099._hh2204(_hy2528._px2424, _hy2528._ap2496, _bl3513);
return;
};
if (name.length < 4){
_rt2598._oj3099._hh2204(_hy2528._jx3307, _hy2528._ap2496, _bl3513);
return;
};
d = _nu2220._sq679(_nu2220._cp3082);
d.email = email;
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._aw1118, d, function ():void{
_ac2912();
});
} else {
_xt559 = false;
};
}
private function _xb812():void{
var _local1:String;
var _local2:String;
if (_rt2598._oj3099._kn2177()){
_local1 = _rt2598._oj3099._ae248();
_local2 = _local1.substr(0, 2);
if (_local2 == "ok"){
_rt2598._oj3099._hh2204(_hy2528._ta2320, _hy2528._tp446);
_xd3169._oj3099._sr2860(_eu1893);
_eu1893 = -1;
} else {
_eu1893 = -1;
_rt2598._oj3099._hh2204(((_hy2528._dg3215 + "\n") + _local1), _hy2528._tp446);
};
};
}
private function _mk1804():void{
if (_rt2598._oj3099._mv1993() != 0){
return;
};
var _it474:String = _rt2598._oj3099._yl840(0);
var _wr2140:String = _rt2598._oj3099._yl840(1);
var _ac295:String = _rt2598._oj3099._yl840(2);
var _bl3513:Function = function ():void{
_qn3203();
};
if (_wr2140 != _ac295){
_rt2598._oj3099._hh2204(_hy2528._px2424, _hy2528._ti3125, _bl3513);
return;
};
if (_wr2140.length < 4){
_rt2598._oj3099._hh2204(_hy2528._mt2524, _hy2528._ti3125, _bl3513);
return;
};
if (_it474 != _xd3169._oj3099._rn1757()){
_rt2598._oj3099._hh2204(_hy2528._lc1751, _hy2528._ti3125, _bl3513);
return;
};
if (_wr2140 == _it474){
return;
};
var d:URLVariables = _nu2220._sq679(_nu2220._mf161);
_bu3491 = _wr2140;
d.newpwd = _xd3169._al3481(_wr2140);
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._ti3125, d, function ():void{
_pf1160();
});
}
protected function _wu2447():void{
}
protected function _vx15():void{
var _local1:URLRequest;
switch (_rt2598._oj3099._mv1993()){
case 0:
if (_wl3125(true)){
_bb2004();
};
break;
case 1:
_tc1999();
break;
case 2:
if (_cr1330._ii566){
if (_ig1593._th1173()){
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._lf2830, String(_cr1330._vu1287)), _hy2528._na2874);
};
if (((_cr1330._ij1646) || (_wl3125(true)))){
_mu1573();
};
} else {
_local1 = new URLRequest(_cr1330._jl3342);
navigateToURL(_local1);
};
break;
case 3:
case 4:
if (_cb2562()){
} else {
if (_rt2598._oj3099._mv1993() == 3){
_yy1737();
} else {
if (_rt2598._oj3099._mv1993() == 4){
_et3406();
};
};
};
break;
};
}
protected function _wg874():void{
}
private function _hb2714(_arg1:Boolean):void{
var createNew = _arg1;
var d:URLVariables = _nu2220._sq679((createNew) ? _nu2220._pd2008 : _nu2220._mu3001);
d.charname = _pi1133.getName();
d.chartype = _pi1133._le2192();
d.exp = _pi1133._ai292();
d.level = _pi1133._mo779();
d.gold = _pi1133._ix2542();
d.realmid = _pi1133._ri887();
d.mapid = _pi1133._es641();
d.shc = _pi1133._qo350();
d.chardata = _pi1133._nf2300();
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._io2563, d, function ():void{
_ng1017();
});
}
private function _qs1178():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
break;
case 1:
_cu1964();
_wq1201(_go1365);
break;
};
}
private function _dj2474():void{
var _nw12:String;
var _je291:String;
var text:String;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 == "ok"){
_xd3169._oj3099._dt107 = _xl1421;
_rt2598._oj3099._hh2204(_hy2528._dn2052, _hy2528._yc1537);
} else {
text = _hy2528._uh2962;
if (_nw12){
text = (text + "\n\n");
text = (text + _nw12);
};
_rt2598._oj3099._hh2204(text, _hy2528._yc1537, function ():void{
_yo411();
});
};
};
}
private function _kg1950():void{
var _local2:int;
_ld375();
var _local1:_cb3393 = _ry1510();
if (_local1){
_local1._cu534(_local1._yi2782());
_local1._pi101(_local1._xq320());
_pi1133._jc578(_tv609._px1395, _rn3213);
_pi1133._jc578(_tv609._st1439, _nw281);
_pi1133._jc578(_tv609._pj1857, _eo2583);
_pi1133._jc578(_tv609._hi3134, _yr1227);
_local2 = 0;
while (_local2 < 6) {
_pi1133._jc578((_local2 + _tv609._ja535), _fx1180[_local2]);
_local2++;
};
_pi1133._ff649((_pi1133._mo779() + 1));
if (_gx504 >= 0){
_pi1133._gs545(_gx504);
};
_ef956();
};
_fm197._oj3099._ub2003(_ks1885._cg1619);
}
private function _wt1787(_arg1:Bitmap, _arg2:TextField, _arg3:UIComponent):void{
var _local4:UIComponent;
var _local5:Graphics;
if (_arg1){
_local4 = new UIComponent();
_local4.width = _arg1.width;
_local4.height = _arg1.height;
_local4.x = ((_arg2.x - _arg1.width) - 2);
_local4.y = ((_arg2.y + (_arg2.height / 2)) - (_arg1.width / 2));
_local5 = _local4.graphics;
_local5.beginBitmapFill(_arg1.bitmapData);
_local5.drawRect(0, 0, _arg1.width, _arg1.height);
_local5.endFill();
_arg3.addChild(_local4);
};
}
protected function _ky48(_arg1:Boolean):void{
var loggingInToStartGame = _arg1;
_kj2099 = loggingInToStartGame;
var _nd2522:Array = new Array();
_nd2522.push(_hy2528._ve3033);
_nd2522.push(_hy2528._fo2705);
var _dk1731:Array = new Array();
_dk1731.push(_hy2528._hu2142);
_dk1731.push(_hy2528._ti2156);
var _rm322:Array = new Array();
_rm322.push(_xd3169._oj3099._rm1940);
_rm322.push("");
var _gt3018:Array = new Array();
_gt3018.push((_di1224._ce2573 | _di1224._ke880));
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_rt2598._oj3099._db3055(_hy2528._wh3292, _hy2528._gb1332, _nd2522, _dk1731, _rm322, _gt3018, function ():void{
_ww1346();
});
}
private function _lw1867():void{
var _local1:_fm197 = _fm197._oj3099;
switch (_rt2598._oj3099._mv1993()){
case 0:
_local1._ei289((_local1._xm3092() + 0.1));
_tc1999();
break;
case 1:
_local1._ei289((_local1._xm3092() - 0.1));
_tc1999();
break;
case 2:
_local1._wk2050((_local1._ep2567() + 0.1));
_tc1999();
break;
case 3:
_local1._wk2050((_local1._ep2567() - 0.1));
_tc1999();
break;
};
}
public function _wa414():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
break;
case 1:
_uo525();
break;
};
}
protected function _mv1047():void{
}
public function _ij3282():Boolean{
var _local1:String;
if (((((_xh1372) && (_xh1372.root))) && (_xh1372.root.loaderInfo))){
_local1 = _xh1372.root.loaderInfo.url;
if (_local1.indexOf("file:") != -1){
return (false);
};
if (((!((_local1.indexOf("darkness-springs.eu") == -1))) || (!((_local1.indexOf("localhost/ds/game/") == -1))))){
return (true);
};
};
return (false);
}
public function _ef956():void{
}
protected function _ga1071():void{
var name:String;
var email:String;
var d:URLVariables;
if (_rt2598._oj3099._mv1993() == 0){
name = StringUtil.trim(_rt2598._oj3099._yl840(0));
email = StringUtil.trim(_rt2598._oj3099._yl840(1));
d = _nu2220._sq679(_nu2220._fj3466);
d.name = name;
d.email = email;
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._de1289, d, function ():void{
_wi2703();
});
};
}
protected function _so3108(_arg1:String, _arg2:Function=null):void{
var _local4:Array;
var _local5:int;
var _local6:uint;
var _local3:Array = new Array();
if (_ae2040){
_local4 = _pd1764();
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
_local3.push(_tv609._kl2415(_local6));
_local5++;
};
};
_rt2598._oj3099._vs613(_arg1, _hy2528._wn1320, _local3, true, _arg2);
}
protected function _fs251():void{
}
protected function _vv2065():void{
var _nd2522:Array = new Array();
_nd2522.push(_hy2528._ve3033);
_nd2522.push(_hy2528._fo2705);
var _dk1731:Array = new Array();
_dk1731.push(_hy2528._hu2142);
_dk1731.push(_hy2528._pa339);
_dk1731.push(_hy2528._ti2156);
_dk1731.push(_hy2528._lk239);
var _rm322:Array = new Array();
_rm322.push(_xd3169._oj3099._rm1940);
_rm322.push(_xd3169._oj3099._dt107);
_rm322.push(_xd3169._oj3099._ns3110);
_rm322.push(_xd3169._oj3099._ns3110);
var _gt3018:Array = new Array();
_gt3018.push((_di1224._ce2573 | _di1224._ke880));
_gt3018.push((_di1224._kr941 | _di1224._bb2467));
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_rt2598._oj3099._db3055(_hy2528._es120, _hy2528._wm2997, _nd2522, _dk1731, _rm322, _gt3018, function ():void{
_di2392();
});
}
protected function _cb3146(_arg1:Event):void{
var event = _arg1;
if (_cb2562()){
_rt2598._oj3099._nl2454(_hy2528._yh2406, _hy2528._lj1288, _hy2528._de194, _hy2528._bu1219, (_cr1330._ii566) ? _hy2528._na2874 : _hy2528._un2577, _hy2528._fo2705, function ():void{
_vx15();
});
} else {
_rt2598._oj3099._ph3167(_hy2528._yh2406, _hy2528._lj1288, _hy2528._de194, _hy2528._bu1219, (_cr1330._ii566) ? _hy2528._na2874 : _hy2528._un2577, _hy2528._kn85, _hy2528._fh2937, _hy2528._fo2705, function ():void{
_vx15();
});
};
}
private function _uo525():void{
var _local1:URLRequest = new URLRequest("http://www.darkness-springs.eu/premium.html");
navigateToURL(_local1);
}
protected function _cv207(_arg1:Event):void{
var _vq2443:int;
var event = _arg1;
_xt559 = false;
if (_wl3125(true, true)){
if (_xd3169._oj3099._xg3285(_pi1133)){
_hb2714(false);
} else {
_vq2443 = _xd3169._oj3099._ns1628();
if (((((_xd3169._oj3099._ap2180) && ((_vq2443 >= _cr1330._ry2518)))) || (((!(_xd3169._oj3099._ap2180)) && ((_vq2443 >= _cr1330._da2797)))))){
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._rs187, String(_vq2443)), _hy2528._io2563);
return;
};
_rt2598._oj3099._pw2871(_hy2528._lw2646, _hy2528._io2563, _hy2528._rw2056, "", function ():void{
_yc219();
}, _di1224._ce2573);
};
};
}
private function _lg3412():void{
if (_rt2598._oj3099._mv1993() != -1){
_ld375();
return;
};
var _local1:Array = _lf35._kg1707(_pi1133);
_gx504 = _lf35._ag252(_local1[_rt2598._oj3099._ye2732()]);
_kg1950();
}
private function _qn3203():void{
var _nd2522:Array = new Array();
_nd2522.push(_hy2528._ve3033);
_nd2522.push(_hy2528._fo2705);
var _dk1731:Array = new Array();
_dk1731.push(_hy2528._dm1612);
_dk1731.push(_hy2528._gf2511);
_dk1731.push(_hy2528._qi2619);
var _rm322:Array = new Array();
_rm322.push("");
_rm322.push("");
_rm322.push("");
var _gt3018:Array = new Array();
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_gt3018.push((_di1224._bb2467 | _di1224._ck2889));
_rt2598._oj3099._db3055(_hy2528._xa1419, _hy2528._ti3125, _nd2522, _dk1731, _rm322, _gt3018, function ():void{
_mk1804();
});
}
protected function _tc1999():void{
var _uw2677:_fm197 = _fm197._oj3099;
var _ue3041 = (((((_hy2528._ca2409 + int((_uw2677._xm3092() * 100))) + "%\n") + _hy2528._xx1731) + int((_uw2677._ep2567() * 100))) + "%\n");
_rt2598._oj3099._dq2282(_ue3041, _hy2528._bu1219, _hy2528._tr2183, _hy2528._at3448, _hy2528._cl740, _hy2528._no3154, _hy2528._fm2854, function ():void{
_lw1867();
}, _di1224._ki1196);
}
private function _ow897():void{
var _ba971:Array;
var _ns1989:int;
var _fu296:_di1224;
var _my931:_if3335;
var _yo2946:Array;
if (_rt2598._oj3099._mv1993() == 1){
_ld375();
return;
};
_gx504 = -1;
var spells:Array = _lf35._kg1707(_pi1133);
if (((spells) && (spells.length))){
_ba971 = new Array();
_ns1989 = 0;
while (_ns1989 < spells.length) {
_ba971.push(_tv609._kl2415(spells[_ns1989]));
_ns1989 = (_ns1989 + 1);
};
_rt2598._oj3099._vs613(_hy2528._sg1297, _hy2528._de424, _ba971, true, function ():void{
_lg3412();
});
_fu296 = _rt2598._oj3099._rq83();
if (_fu296){
_my931 = _fu296._pe3128();
_yo2946 = new Array();
_ns1989 = 0;
while (_ns1989 < spells.length) {
_yo2946.push(_tv609._fr2230(spells[_ns1989], true));
_my931.setItemIcon(_ns1989, _tv609._gs44(spells[_ns1989]));
_ns1989 = (_ns1989 + 1);
};
_my931._ux2892((this as _kn2066), _yo2946);
_my931._sh2186();
_bl447();
};
} else {
_kg1950();
};
}
private function _kh1345(_arg1:Event):void{
if ((_tv609._dr1245 - (_yr1227 + _eo2583)) > 0){
_yr1227++;
_ir1011();
};
}
private function _px2673(_arg1:Event):void{
if ((_tv609._jd2495 - (_rn3213 + _nw281)) > 0){
_rn3213++;
_ir1011();
};
}
public function _yy1737(_arg1:Boolean=false):void{
}
protected function _pd1764():Array{
var _local1:Array = new Array();
_local1.push(_tv609._yp757(_tv609._xe2767));
_local1.push(_tv609._yp757(_tv609._yy1761));
_local1.push(_tv609._yp757(_tv609._wn2141));
_local1.push(_tv609._yp757(_tv609._ts2137));
_local1.push(_tv609._yp757(_tv609._xv166));
_local1.push(_tv609._rk158(true, false, _tv609._db2186));
_local1.push(_tv609._rk158(false, true, _tv609._db2186));
_local1.push(_tv609._fp1369(_tv609._db2186, 0, true));
_local1.push(_tv609._ts1885(_tv609._ns1027, 1));
_local1.push(_tv609._ba3524(_tv609._id3076, _tv609._db2186));
_local1.push(_tv609._ba3524(_tv609._id3076, _tv609._db2186, 0, true));
_local1.push(_tv609._ba3524(_tv609._qr2537, _tv609._db2186));
_local1.push(_tv609._ba3524(_tv609._vv2837, _tv609._db2186));
_local1.push(_tv609._ba3524(_tv609._jq178, _tv609._db2186));
_local1.push(_tv609._ba3524(_tv609._jq178, _tv609._db2186, 0, true));
_local1.push(_tv609._ba3524(_tv609._qr2537, _tv609._db2186, 0, true));
_local1.push(_tv609._ba3524(_tv609._qr2537, _tv609._qx1241, 0, true));
_local1.push(_tv609._ba3524(_tv609._mu1419, _tv609._qx1241, 0, true));
_local1.push(_tv609._ba3524(_tv609._vv2837, _tv609._db2186, 0, true));
_local1.push(_tv609._yp757(_tv609._ni2675, _hy2528._uo1763));
_local1.push(_tv609._yp757(_tv609._ni2675, (_hy2528._uo1763 + 1)));
_local1.push(_tv609._yp757(_tv609._ni2675, (_hy2528._uo1763 + 2)));
_local1.push(_tv609._yp757(_tv609._ni2675, (_hy2528._uo1763 + 3)));
_local1.push(_tv609._yp757(_tv609._ni2675, (_hy2528._uo1763 + 4)));
return (_local1);
}
protected function _vj1021(_arg1:String, _arg2:Function):void{
var _local4:Array;
var _local5:int;
var _local6:String;
var _local3:Array = new Array();
if (_ae2040){
_local4 = _ae2040._wo612();
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = (_local4[_local5] as String);
if (_local6){
_local3.push(_local6.substring(0, 20));
} else {
_local3.push("internal error");
};
_local5++;
};
};
_rt2598._oj3099._vs613(_arg1, _hy2528._wn1320, _local3, true, _arg2);
}
protected function _ig2435():void{
var _km3390:Object;
var _nx1030:String;
var _fl536:String;
var _nl1661:Array;
var _fu296:_di1224;
_fm197._oj3099._ey741(_fm197._xo682);
var _qx2417:Boolean;
var _gu2461:Boolean;
var _xq769 = "";
var _wu375 = "";
if (_tn2368){
_km3390 = Application.application.parameters;
for (_nx1030 in _km3390) {
_fl536 = String(_km3390[_nx1030]);
if (_nx1030 == "login"){
_qx2417 = (_fl536 == "true");
};
if (_nx1030 == "name"){
_xq769 = _fl536;
};
if (_nx1030 == "pw"){
_wu375 = _fl536;
};
};
if (_qx2417){
_gu2461 = (((_wu375.length > 1)) && ((_xq769.length > 1)));
};
};
if (_qx2417){
if (_gu2461){
_kj2099 = true;
_hq3228(_xq769, _wu375);
} else {
_ky48(true);
};
} else {
_nl1661 = new Array();
_nl1661.push("Female1");
_nl1661.push("Female2");
_nl1661.push("Male1");
_nl1661.push("Male2");
_rt2598._oj3099._db3055(_hy2528._ur1962, _hy2528._lj1288, _nl1661, null, null, null, function ():void{
_po1370();
}, 0, 300, 135);
_fu296 = _rt2598._oj3099._rq83();
if (_fu296){
_se1133(_fu296, 15, 80, _tv609._gj2896);
_se1133(_fu296, 87, 80, _tv609._fv102);
_se1133(_fu296, 161, 80, _tv609._mp331);
_se1133(_fu296, 231, 80, _tv609._wl2634);
_fu296._au1064(0).x = 15;
_fu296._au1064(1).x = 87;
_fu296._au1064(2).x = 161;
_fu296._au1064(3).x = 231;
};
};
}
public function _et3406():void{
}
private function _cu1964():void{
var _local1:URLRequest = new URLRequest("http://www.darkness-springs.eu");
navigateToURL(_local1);
}
private function _yo411():void{
_rt2598._oj3099._pw2871(_hy2528._dd586, _hy2528._yc1537, _hy2528._pa339, _xd3169._oj3099._dt107, function ():void{
_tw741();
}, (_di1224._kr941 | _di1224._bb2467));
}
protected function _cx2207(_arg1:Boolean):void{
var _ug1114:String;
var forDeletion = _arg1;
_nb372 = forDeletion;
var _nd2522:Array = new Array();
var _ay1468:_xd3169 = _xd3169._oj3099;
var _ns1989:int;
while (_ns1989 < _ay1468._ns1628()) {
_nd2522.push(_ay1468._pc1562(_ns1989).getName());
_ns1989 = (_ns1989 + 1);
};
_nd2522.push(_hy2528._fo2705);
if (_ay1468._ns1628() <= 0){
_ug1114 = _hy2528._sx2383;
} else {
if (forDeletion){
_ug1114 = _hy2528._gl3450;
} else {
_ug1114 = _hy2528._qy34;
};
};
_rt2598._oj3099._db3055(_ug1114, _hy2528._bf1776, _nd2522, null, null, null, function ():void{
_gv2996();
}, _di1224._md1885);
}
private function _fn771(_arg1:Event):void{
var _local2:int;
var _local3:int;
while (_local3 < 6) {
_local2 = (_local2 + _fx1180[_local3]);
_local3++;
};
var _local4:int = (_tv609._ck3140 - _local2);
if (_local4 <= 0){
return;
};
var _local5:Object = _arg1.target;
var _local6:int;
while (_local6 < _cd1069.length) {
if (_cd1069[_local6] == _local5){
_fx1180[_local6] = (_fx1180[_local6] + 1);
break;
};
_local6++;
};
_cq1765();
}
protected function _hq3228(_arg1:String, _arg2:String):void{
var name = _arg1;
var pw = _arg2;
_xd3169._oj3099._rm1940 = name;
_xd3169._oj3099._ns3110 = pw;
var d:URLVariables = _nu2220._sq679(_nu2220._wj1542);
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._qo1867, d, function ():void{
_fe2204();
});
}
protected function _ld988():void{
}
public function _wl3125(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var askForCreationIfFailed = _arg1;
var forCharSaving = _arg2;
if (_cr1330._hu2720){
_wq1201(0);
return (false);
};
if (!_ij3282()){
_wq1201(3);
return (false);
};
if (_xd3169._oj3099._er2864()){
return (true);
};
if (askForCreationIfFailed){
_xt559 = forCharSaving;
_rt2598._oj3099._rq326(_hy2528._gx2504, _hy2528._ea2724, _hy2528._tl2612, _hy2528._ey918, _hy2528._fo2705, function ():void{
_ay657();
});
};
return (false);
}
private function _ye2618():void{
var d:URLVariables;
if (_rt2598._oj3099._mv1993() != 0){
return;
};
var _ay1468:_xd3169 = _xd3169._oj3099;
if (_ay1468._rn1757() == _rt2598._oj3099._yl840(0)){
d = _nu2220._sq679(_nu2220._tv2847);
d.realmid = _eu1893;
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._tp446, d, function ():void{
_xb812();
});
} else {
_eu1893 = -1;
_rt2598._oj3099._hh2204(_hy2528._vg3069, _hy2528._gq2108);
};
}
private function _tw741():void{
if (_rt2598._oj3099._mv1993() != 0){
return;
};
var _un53:String = StringUtil.trim(_rt2598._oj3099._yl840(0));
if (_un53 == _xd3169._oj3099._dt107){
return;
};
var d:URLVariables = _nu2220._sq679(_nu2220._be1663);
d.email = _un53;
_xl1421 = _un53;
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._yc1537, d, function ():void{
_dj2474();
});
}
protected function _gl277(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
var _local5:Array;
var _local6:int;
var _local7:_ot519;
var _local4:Array = new Array();
if (_ae2040){
_local5 = _ae2040._fg1749();
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = (_local5[_local6] as _ot519);
if (_local7){
_local4.push(_local7.name);
} else {
_local4.push("internal error");
};
_local6++;
};
if (_arg3){
_local4.push(_hy2528._dc2933);
};
};
_rt2598._oj3099._vs613(_arg1, _hy2528._xp2714, _local4, true, _arg2, 400);
}
protected function _sl436():void{
if (_rt2598._oj3099._mv1993() == 0){
_mu1573();
};
}
protected function _bb2004():void{
_rt2598._oj3099._nl2454(_hy2528._yh2406, _hy2528._de194, _hy2528._ti3125, _hy2528._yc1537, _hy2528._aw489, _hy2528._fo2705, function ():void{
_cl2520();
});
}
private function _rx2957():void{
var d:URLVariables;
if (_rt2598._oj3099._mv1993() != 0){
return;
};
var _ay1468:_xd3169 = _xd3169._oj3099;
if (_ay1468._rn1757() == _rt2598._oj3099._yl840(0)){
d = _nu2220._sq679(_nu2220._gg3085);
d.charname = _ny336.getName();
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._ch3165, d, function ():void{
_tt1244();
});
} else {
_ny336 = null;
_rt2598._oj3099._hh2204(_hy2528._vg3069, _hy2528._dx992);
};
}
protected function _fe2204():void{
var _nw12:String;
var _je291:String;
var _ak95:String;
var _fx416:URLVariables;
var _ay1468:_xd3169;
var charCount:int;
var _ns1989:int;
var _en3210:int;
var _lv263:_xk85;
var _md1580:_nm2373;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 == "ok"){
_ak95 = _nw12.substr(2);
_fx416 = new URLVariables(_ak95);
_ay1468 = _xd3169._oj3099;
_ay1468._di3072(true);
_ay1468._ap2180 = !((int(_fx416.premium) == 0));
_ay1468._dt107 = _fx416.email;
charCount = int(_fx416.charactercount);
_ns1989 = 0;
_ay1468._lj2466 = new Array();
_ns1989 = 0;
while (_ns1989 < charCount) {
_lv263 = new _xk85();
_lv263._pc3318(int(_fx416[(("c" + _ns1989) + "gold")]));
_lv263._ff649(int(_fx416[(("c" + _ns1989) + "level")]));
_lv263._xo2166(int(_fx416[(("c" + _ns1989) + "exp")]));
_lv263._wu2858(int(_fx416[(("c" + _ns1989) + "chartype")]));
_lv263._ek1528(int(_fx416[(("c" + _ns1989) + "realmid")]));
_lv263._rg287(int(_fx416[(("c" + _ns1989) + "mapid")]));
_lv263.setName(String(_fx416[(("c" + _ns1989) + "name")]));
_lv263._cv3244(String(_fx416[(("c" + _ns1989) + "chardata")]));
_lv263._xc2990(false);
_ay1468._lj2466.push(_lv263);
_ns1989 = (_ns1989 + 1);
};
_en3210 = int(_fx416.realmcount);
_ay1468._ra3037 = new Array();
_ns1989 = 0;
while (_ns1989 < _en3210) {
_md1580 = new _nm2373();
_md1580._ks567(int(_fx416[(("r" + _ns1989) + "realmid")]));
_md1580.setName(String(_fx416[(("r" + _ns1989) + "name")]));
_md1580._yp1652(String(_fx416[(("r" + _ns1989) + "description")]));
_ay1468._ra3037.push(_md1580);
_ns1989 = (_ns1989 + 1);
};
if (_kj2099){
_tn2368 = false;
_cx2207(false);
} else {
_rt2598._oj3099._hh2204(_hy2528.formatString(_hy2528._qd1282, _xd3169._oj3099._rm1940), _hy2528._gb1332);
};
} else {
_rt2598._oj3099._gd375(((_hy2528._go2485 + "\n") + _nw12), _hy2528._gb1332, _hy2528._ve3033, _hy2528._gi3355, function ():void{
_gl2628();
});
};
};
}
private function _ir1011():void{
if (!_ok2844){
return;
};
_mg2322.text = ((_hy2528._fw2541 + ": ") + String((_pi1133._sx1887() + _rn3213)));
_rj1827.text = ((_hy2528._rb458 + ": ") + String((_pi1133._ni1660() + _nw281)));
_fe1487.text = ((_hy2528._sa2070 + ": ") + String((_pi1133._xq320() + _yr1227)));
_xe1975.text = ((_hy2528._ti2806 + ": ") + String((_pi1133._yi2782() + _eo2583)));
_oh1802.text = (_hy2528._lu1325 + (_tv609._jd2495 - (_rn3213 + _nw281)));
_tn2715.text = (_hy2528._lu1325 + (_tv609._dr1245 - (_yr1227 + _eo2583)));
var _local1:Boolean = ((((_tv609._jd2495 - (_rn3213 + _nw281)) == 0)) && (((_tv609._dr1245 - (_yr1227 + _eo2583)) == 0)));
_ok2844._au1064(0).enabled = _local1;
_ok2844._au1064(0).alpha = (_local1) ? 1 : 0.5;
}
protected function _ku658():void{
_vv2065();
}
private function _yc219():void{
if (_rt2598._oj3099._mv1993() == 0){
_pi1133.setName(_rt2598._oj3099._yl840(0));
_hb2714(true);
};
}
protected function _ma23(_arg1:String, _arg2:Boolean=false):void{
var _xv1154:Array;
var _ns1989:int;
var caption = _arg1;
var addEmptyMap = _arg2;
var _jo787:Array = new Array();
if (_ae2040){
_xv1154 = _ae2040._mt2976();
_ns1989 = 0;
while (_ns1989 < _xv1154.length) {
_jo787.push(_xv1154[_ns1989].getName());
_ns1989 = (_ns1989 + 1);
};
};
if (addEmptyMap){
_jo787.push(_hy2528._dc2933);
};
_rt2598._oj3099._vs613(caption, _hy2528._pg2192, _jo787, true, function ():void{
_tx2958();
});
}
protected function _ig150():void{
var _nd2522:Array = new Array();
_nd2522.push(_hy2528._de1289);
_nd2522.push(_hy2528._fo2705);
var _dk1731:Array = new Array();
_dk1731.push(_hy2528._hu2142);
_dk1731.push(_hy2528._pa339);
var _rm322:Array = new Array();
_rm322.push(_xd3169._oj3099._rm1940);
_rm322.push(_xd3169._oj3099._dt107);
var _gt3018:Array = new Array();
_gt3018.push((_di1224._ce2573 | _di1224._ke880));
_gt3018.push((_di1224._kr941 | _di1224._bb2467));
_rt2598._oj3099._db3055(_hy2528._cp180, _hy2528._gi3355, _nd2522, _dk1731, _rm322, _gt3018, function ():void{
_ga1071();
});
}
protected function _bk2493(_arg1:Boolean):void{
var _wc1178:_nm2373;
var fordeletion = _arg1;
var _ay1468:_xd3169 = _xd3169._oj3099;
var _hn3429 = -1;
if (_rt2598._oj3099._mv1993() < _ay1468._gm1608()){
_hn3429 = _ay1468._nu184(_rt2598._oj3099._mv1993()).getUID();
} else {
if (((_cr1330._ij1646) && ((_rt2598._oj3099._mv1993() == _ay1468._gm1608())))){
_hn3429 = 0;
};
};
if (_hn3429 != -1){
if (!fordeletion){
_av400(_hn3429);
} else {
_wc1178 = _xd3169._oj3099._xr1720(_hn3429);
if (_wc1178){
if (_wc1178 == _ae2040){
_rt2598._oj3099._hh2204(_hy2528._vc2372, _hy2528._gq2108);
} else {
_eu1893 = _hn3429;
_rt2598._oj3099._pw2871(_hy2528.formatString(_hy2528._yf1048, _wc1178.getName()), _hy2528._gq2108, _hy2528._ti2156, "", function ():void{
_ye2618();
}, _di1224._ck2889);
};
};
};
} else {
if (!fordeletion){
if (_rt2598._oj3099._mv1993() == _ay1468._gm1608()){
_fs251();
};
};
};
}
protected function _mu1573():void{
}
protected function _gv2996():void{
var _ay1468:_xd3169 = _xd3169._oj3099;
var _mb2398:_xk85 = _ay1468._pc1562(_rt2598._oj3099._mv1993());
if (!_mb2398){
return;
};
if (_nb372){
if (_mb2398 == _pi1133){
_rt2598._oj3099._hh2204(_hy2528._sl244, _hy2528._dx992);
return;
};
_ny336 = _mb2398;
_rt2598._oj3099._pw2871(_hy2528.formatString(_hy2528._oc2030, _mb2398.getName()), _hy2528._dx992, _hy2528._ti2156, "", function ():void{
_rx2957();
}, _di1224._ck2889);
} else {
_yo3115(_mb2398);
};
}
protected function _ai861(_arg1:_lj345):void{
var _yj1921:String;
var map = _arg1;
if (!map){
_yj1921 = "[null]";
if (_ae2040){
_yj1921 = ((_ae2040.getUID() + " ") + _ae2040.getName());
};
_rt2598._oj3099._hh2204((((_hy2528._cg567 + " (realm:") + _yj1921) + ")"), _hy2528._rl34);
return;
};
var d:URLVariables = _nu2220._sq679(_nu2220._bd2207);
d.realmid = _ae2040.getUID();
d.mapid = map.getUID();
if (((_cr1330._hu2720) && (!(_dq2173._hg1894(int(d.mapid)))))){
_wq1201(1);
return;
};
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._ma1301, d, function ():void{
_wl2001();
});
}
protected function _tx2958():void{
}
private function _dd256():void{
if (_xd3169._oj3099._ap2180){
_rt2598._oj3099._hh2204(_hy2528._nv1740, _hy2528._lj1288);
} else {
_rt2598._oj3099._pw2871(_hy2528._lo518, _hy2528._aw489, _hy2528._wp1681, (_mu1207) ? _mu1207 : "", function ():void{
_jl3330();
}, _di1224._og408);
};
}
protected function _tm3451():void{
}
private function _qa2114():void{
var _nw12:String;
var _je291:String;
var _kf1367:String;
var map:_lj345;
try {
if (_rt2598._oj3099._kn2177()){
_ae2040 = new _nm2373();
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 != "ok"){
_rt2598._oj3099._hh2204(((_hy2528._eo2961 + "\n") + _nw12), _hy2528._jh1704);
} else {
_kf1367 = _nw12.substr(2);
if (!_ae2040._vn2234(_kf1367)){
_rt2598._oj3099._hh2204("Problem: The data describing the loaded realm has an internal error.", _hy2528._jh1704);
} else {
if (_ae2040.getUID() == -1){
_ae2040._ks567(_xp3032);
};
_xd3169._oj3099._cg2098(_ae2040);
_tm3451();
if (_vv2607 == _um1061){
map = _ae2040._bn1309();
if (map){
_dt2656 = map;
_ai861(map);
} else {
_rt2598._oj3099._hh2204("Problem: The loaded realm does not contain a map", _hy2528._jh1704);
};
} else {
if (_vv2607 == _hj1124){
_ld988();
};
};
};
};
};
} catch(err:Error) {
_ni2054._ev1283(err, "RL");
};
}
protected function _ld375():void{
}
public function _wq1201(_arg1:int):void{
var reason = _arg1;
(_go1365 = reason);
var _wb2004:String = _hy2528._ck3099;
var t:String = _hy2528._cn1397;
if (reason == 1){
var _local3 = _hy2528._fp1116;
_wb2004 = _local3;
_local3;
} else {
if (reason == 2){
_local3 = _hy2528._nu763;
_wb2004 = _local3;
_local3;
} else {
if (reason == 3){
_wb2004 = "You must play this game on www.darkness-springs.eu in order to use this feature.";
_local3 = "Cannot use this feature";
t = _local3;
_local3;
} else {
if (reason == 4){
_local3 = _hy2528._sq2983;
_wb2004 = _local3;
_local3;
_local3 = _hy2528._xj3345;
t = _local3;
_local3;
};
};
};
};
_rt2598._oj3099._gd375(_wb2004, t, _hy2528._ve3033, _hy2528._vu625, function ():void{
_qs1178();
});
}
private function _ng1017():void{
var _local1:String;
var _local2:String;
var _local3:int;
if (_rt2598._oj3099._kn2177()){
_local1 = _rt2598._oj3099._ae248();
_local2 = _local1.substr(0, 2);
if (_local2 == "ok"){
if (!_xd3169._oj3099._xg3285(_pi1133)){
_xd3169._oj3099._lr2731(_pi1133);
};
_local3 = getTimer();
_pi1133._if1868(_local3);
_pi1133._xc2990(false);
} else {
_rt2598._oj3099._hh2204(((_hy2528._sk1637 + "\n") + _local1), _hy2528._io2563);
};
};
}
public function _av400(_arg1:int, _arg2:int=0):void{
var realmid = _arg1;
var afterRealmLoadAction = _arg2;
var d:URLVariables = _nu2220._sq679(_nu2220._nd2739);
d.realmid = realmid;
_xp3032 = realmid;
_vv2607 = afterRealmLoadAction;
_rt2598._oj3099._cj2690(_hy2528._mb2492, _hy2528._jh1704, d, function ():void{
_qa2114();
});
}
private function _ba1331(_arg1:Event):void{
if ((_tv609._jd2495 - (_rn3213 + _nw281)) > 0){
_nw281++;
_ir1011();
};
}
protected function _ac2912():void{
var _nw12:String;
var _ub3510:String;
var text:String;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
if (_nw12 == "ok"){
_xd3169._oj3099._di3072(true);
_ub3510 = ((((_hy2528._cs1355 + "\n") + _xd3169._oj3099._rm1940) + "\n\n") + _hy2528._pb474);
if (_xt559){
_rt2598._oj3099._hh2204(_ub3510, _hy2528._aw1118, function ():void{
_cv207(new Event(""));
});
} else {
_rt2598._oj3099._hh2204(_ub3510, _hy2528._aw1118);
};
} else {
text = _hy2528._th3264;
if (_nw12){
text = (text + "\n");
text = (text + _nw12);
};
_rt2598._oj3099._hh2204(text, _hy2528._ap2496, function ():void{
_ku658();
});
};
};
}
private function _cl2520():void{
switch (_rt2598._oj3099._mv1993()){
case 0:
_qn3203();
break;
case 1:
_yo411();
break;
case 2:
_dd256();
break;
};
}
private function _pf1160():void{
var _nw12:String;
var _je291:String;
var text:String;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
_je291 = _nw12.substr(0, 2);
if (_je291 == "ok"){
_xd3169._oj3099._ns3110 = _bu3491;
_rt2598._oj3099._hh2204(_hy2528._eh3532, _hy2528._ti3125);
} else {
text = _hy2528._mv1327;
if (_nw12){
text = (text + "\n\n");
text = (text + _nw12);
};
_rt2598._oj3099._hh2204(text, _hy2528._ti3125, function ():void{
_qn3203();
});
};
};
}
private function _se1133(_arg1:_di1224, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:UIComponent = new UIComponent();
_local5.width = 50;
_local5.height = 80;
_local5.x = _arg2;
_local5.y = _arg3;
var _local6:BitmapData = _tv609._ue323(_tv609._sx3421(_arg4), 0, 1);
var _local7:Graphics = _local5.graphics;
if (_local6){
_local7.clear();
_local7.beginBitmapFill(_local6);
_local7.drawRect(0, 0, _local6.width, _local6.height);
_local7.endFill();
};
_arg1.addChild(_local5);
}
private function _cq1765():void{
var _local4:TextField;
var _local5:String;
if (!_ok2844){
return;
};
var _local1:int;
var _local2:int;
while (_local2 < 6) {
_local4 = _le1153[_local2];
_local5 = "";
switch ((_local2 + _tv609._ja535)){
case _tv609._ja535:
_local5 = _hy2528._gq1264;
break;
case _tv609._mi1257:
_local5 = _hy2528._vq369;
break;
case _tv609._lq738:
_local5 = _hy2528._tg1425;
break;
case _tv609._kj1870:
_local5 = _hy2528._og1249;
break;
case _tv609._yd1003:
_local5 = _hy2528._fc3407;
break;
case _tv609._bm1871:
_local5 = _hy2528._ir1468;
break;
};
_local4.text = ((_local5 + ": ") + String((_pi1133._cy1309((_local2 + _tv609._ja535), false) + _fx1180[_local2])));
_local1 = (_local1 + _fx1180[_local2]);
_local2++;
};
var _local3:int = (_tv609._ck3140 - _local1);
_oh1802.text = (_hy2528._lu1325 + String(_local3));
_ok2844._au1064(0).enabled = (_local3 == 0);
_ok2844._au1064(0).alpha = ((_local3)==0) ? 1 : 0.5;
}
private function _lb1087():void{
var _em552:TextField;
var _me422:int;
var _wb2004:int;
var icon:Bitmap;
var _hk1227:_oc1935;
if (_rt2598._oj3099._mv1993() == 1){
_ld375();
return;
};
var _nl1661:Array = new Array();
_nl1661.push(_hy2528._ve3033);
_nl1661.push(_hy2528._fo2705);
_rt2598._oj3099._db3055(_hy2528._dl2102, _hy2528._sq2226, _nl1661, null, null, null, function ():void{
_ow897();
}, 0, 300, 220);
_fx1180 = new Array();
var _fu296:_di1224 = _rt2598._oj3099._rq83();
if (_fu296){
_ok2844 = _fu296;
_em552 = _ks1885._nd1190(false);
_em552.text = _hy2528._lu1325;
_em552.x = _gi566;
_em552.y = _rq113;
_fu296.addChild(_em552);
_oh1802 = _em552;
_me422 = (_em552.y + _em552.height);
_me422 = (_me422 + _lb3043);
_le1153 = new Array();
_cd1069 = new Array();
_wb2004 = 0;
while (_wb2004 < 6) {
_em552 = _ks1885._nd1190(false);
_em552.x = _pe3171;
_em552.y = _me422;
_em552.text = _hy2528._fw2541;
_fu296.addChild(_em552);
_le1153.push(_em552);
_fx1180.push(0);
icon = null;
switch (_wb2004){
case 0:
icon = _ks1885._oj3099._wm3204;
break;
case 1:
icon = _ks1885._oj3099._lv1780;
break;
case 2:
icon = _ks1885._oj3099._uv3357;
break;
case 3:
icon = _ks1885._oj3099._ex2537;
break;
case 4:
icon = _ks1885._oj3099._am3512;
break;
case 5:
icon = _ks1885._oj3099._uw708;
break;
};
if (icon){
_wt1787(icon, _em552, _fu296);
};
_me422 = (_me422 + (_em552.height + _ef1064));
_hk1227 = new _oc1935("+", _fu296, null, -1, _tt437, 1, false, _gu2043);
_hk1227.x = _kr84;
_hk1227.y = ((_em552.y + (_em552.height / 2)) - (_hk1227.height / 2));
_hk1227.addEventListener(MouseEvent.MOUSE_DOWN, _fn771);
_cd1069.push(_hk1227);
_wb2004 = (_wb2004 + 1);
};
};
_cq1765();
}
public function _xt264(_arg1:_ex557, _arg2:int=-1):void{
}
protected function _qg2641(_arg1:Boolean, _arg2:Boolean=false):void{
var withCancel = _arg1;
var menuIsForDeletion = _arg2;
var _nd2522:Array = new Array();
var _ay1468:_xd3169 = _xd3169._oj3099;
var _ns1989:int;
while (_ns1989 < _ay1468._gm1608()) {
_nd2522.push(_hy2528.formatString((menuIsForDeletion) ? _hy2528._ve1383 : _hy2528._ur3193, _ay1468._nu184(_ns1989).getName()));
_ns1989 = (_ns1989 + 1);
};
if (_cr1330._ij1646){
_nd2522.push(_hy2528.formatString(_hy2528._ur3193, _hy2528._ow2040));
};
if (!menuIsForDeletion){
_nd2522.push(_hy2528._rm2011);
};
if (withCancel){
_nd2522.push(_hy2528._fo2705);
};
_rt2598._oj3099._db3055((menuIsForDeletion) ? _hy2528._ba1303 : _hy2528._sh1208, _hy2528._xy348, _nd2522, null, null, null, function ():void{
_bk2493(menuIsForDeletion);
});
}
private function _wi2703():void{
var _nw12:String;
var _ub3510:String;
var text:String;
if (_rt2598._oj3099._kn2177()){
_nw12 = _rt2598._oj3099._ae248();
if (_nw12 == "ok"){
_ub3510 = _hy2528._gu809;
_rt2598._oj3099._hh2204(_ub3510, _hy2528._de1289);
} else {
text = _hy2528._ol1638;
if (_nw12){
text = (text + "\n");
text = (text + _nw12);
};
_rt2598._oj3099._hh2204(text, _hy2528._de1289, function ():void{
_ig150();
});
};
};
}
}
}//package ambiera
Section 522
//_tv609 (ambiera._tv609)
package ambiera {
import flash.display.*;
public class _tv609 {
public static const _kg1898:uint = 13;
public static const _gk701:uint = 3;
public static const _db2186:uint = 1;
public static const _qx1241:uint = 15;
public static const _qy3104:uint = 64;
public static const _cp2279:uint = 0;
public static const _ky1146:uint = (1 << _st1439);
public static const _wh1158:uint = 5;
public static const _lq738:uint = 6;
public static const _ta1504:uint = (1 << _tq543);
public static const _ww915:uint = 23;
public static const _vx2298:uint = (1 << 1);
public static const _eg1411:uint = 1;
public static const _yt3037:uint = 1;
public static const _mp331:uint = 53;
public static const _wc1920:uint = 12;
public static const _na1975:uint = 14;
public static const _fx1407:uint = 0xFF;
public static const _ou985:uint = 60;
public static const _gj2896:uint = 50;
private static const _we2502:uint = 0xFFFF;
public static const _mc3455:uint = (1 << _mi1257);
public static const _di3381:uint = 0;
public static const _xl1925:uint = (1 << _hi3134);
public static const _ei2241:uint = 2;
public static const _gn3196:uint = 6;
public static const _gl1296:uint = 1;
public static const _nd190:uint = (1 << _jq1381);
private static const _po3114:uint = 0xFF00;
public static const _bn2161:uint = 5;
public static const _ws1827:uint = 4;
public static const _aa2858:uint = 11;
public static const _pr1934:uint = 2;
public static const _iv2015:uint = (1 << _pj1857);
private static const _fk3494:int = 5;
public static const _ee138:uint = 10;
public static const _pc2955:uint = (1 << _mi1454);
public static const _mi1454:uint = 2;
public static const _fs3141:uint = 17;
public static const _lw1786:uint = (1 << _yt3037);
public static const _du1781:uint = 1;
public static const _ln279:uint = 1;
public static const _we2779:Number = 10;
public static const _tq543:uint = 10;
public static const _ei1061:uint = 7;
public static const _kp773:int = (_bm1871 + 1);
public static const _fq1371:uint = 2;
private static const _lo1795:uint = 0;
public static const _wg2145:uint = 3;
public static const _pe2571:uint = (1 << _bm1871);
public static const _xf2650:uint = (1 << _wv3399);
public static const _ts2137:uint = 3;
public static const _fj3366:uint = 2;
public static const _ty1687:uint = 20;
public static const _fw702:uint = 0;
public static const _ly3224:uint = 10;
public static const _ns1027:uint = 8;
public static const _wl2634:uint = 57;
public static const _pj1857:uint = 1;
public static const _ew2451:uint = 4;
public static const _or2400:uint = (1 << _kg1898);
public static const _mi1257:uint = 5;
public static const _rw2219:uint = 2;
public static const _xe2767:uint = 0;
public static const _vn912:uint = 0;
public static const _wn2141:uint = 2;
public static const _ni2675:uint = 5;
public static const _jn2396:uint = 5;
public static const _fm845:uint = 3;
public static const _xu1450:uint = 54;
public static const _ur1485:uint = 2;
public static const _eh3385:uint = 4;
public static const _as1086:uint = 1;
public static const _fh3467:uint = 11;
public static const _qh805:uint = (1 << _ew2451);
public static const _dm906:uint = 6;
public static const _sd1602:uint = 9;
private static const _oc3350:uint = 0xFF0000;
public static const _xv166:uint = 4;
public static const _yg1036:uint = 65;
private static const _yw2484:int = 15;
public static const _wv3399:uint = 12;
public static const _cb1337:uint = (1 << _jy2228);
private static const _wy2702:uint = 0;
private static const _ik2003:int = 2;
public static const _rf2481:uint = 3;
public static const _uj694:uint = 30;
public static const _jj2642:uint = 0;
public static const _fv102:uint = 56;
public static const _gp2473:uint = (1 << _ja535);
public static const _jd2495:uint = 2;
public static const _qe451:uint = 11;
public static const _kj1870:uint = 7;
public static const _cu622:uint = 0;
public static const _ty2035:uint = 3;
public static const _py1306:uint = 6;
public static const _mu1419:uint = 15;
public static const _vr2222:uint = 5;
public static const _xn474:uint = 0;
public static const _gh3226:uint = 6;
private static const _ci1205:uint = 8;
public static const _kj403:uint = (1 << _na1975);
public static const _ee2004:uint = 20;
public static const _cl3154:int = 16;
public static const _fo3128:uint = (1 << _px1395);
public static const _bi768:uint = (1 << _kj1870);
public static const _og2636:uint = 21;
public static const _nk147:uint = 3;
public static const _qr2537:uint = 13;
public static const _lm3318:uint = 11;
private static const _tm2990:uint = 4261412864;
public static const _hc397:uint = (1 << 3);
public static const _mf3313:uint = (1 << 1);
public static const _id3076:uint = 10;
public static const _dr3518:uint = 3;
public static const _st1439:uint = 2;
public static const _fo523:uint = (1 << _ty2035);
public static const _xb190:uint = 6;
public static const _ck3140:uint = 3;
public static const _hi3134:uint = 0;
public static const _vy435:uint = 1;
public static const _md25:uint = (1 << 2);
public static const _mf3458:uint = 52;
public static const _tl2614:uint = (1 << _fw702);
public static const _yt1351:uint = 4;
public static const _vv2837:uint = 14;
public static const _yd1003:uint = 8;
public static const _bn2632:uint = 2;
public static const _dr1245:uint = 4;
public static const _ra2968:uint = 4;
private static const _nb490:uint = (1 << 24);
private static const _mc786:uint = 0xFF;
public static const _nw2247:uint = 5;
public static const _bm1871:uint = 9;
public static const _jq178:uint = 16;
public static const _wl2095:uint = 58;
public static const _nw1163:uint = (1 << _fh3467);
public static const _dx664:uint = 61;
public static const _sr2614:uint = 62;
public static const _jn27:uint = 2;
public static const _gl1446:uint = 1;
public static const _jy2228:uint = 15;
private static const _pg1328:uint = 16;
public static const _mb367:uint = 1;
public static const _jq1381:uint = 5;
public static const _fl2472:uint = (1 << _lq738);
public static const _rb2324:uint = 66;
public static const _fe444:uint = 4;
public static const _qj2375:uint = 51;
public static const _yy1761:uint = 1;
public static const _mn2179:uint = 9;
public static const _cq3482:uint = 55;
public static const _vy139:uint = 63;
public static const _ec1178:uint = 1;
public static const _wv2961:uint = 10;
public static const _ja535:uint = 4;
public static const _nv95:uint = (1 << _yd1003);
public static const _fv3061:uint = 0;
private static const _cm1751:int = 2;
public static const _oh3020:uint = 0;
public static const _pg2441:uint = 22;
public static const _tm582:uint = 1;
private static const _fx1726:uint = 25;
public static const _px1395:uint = 3;
public static function _vs1831(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _ee138:
case _aa2858:
return (1);
case _vn912:
case _gl1446:
case _jn27:
if (_local3 == 1){
return (1);
};
if (_local3 == 2){
return (3);
};
if (_local3 == 3){
return (5);
};
break;
};
return (0);
}
public static function _ut1681(_arg1:uint):Boolean{
return ((_xe421(_arg1) == _gh3226));
}
public static function _ue323(_arg1:uint, _arg2:int=0, _arg3:int=1, _arg4:int=0):BitmapData{
var _local8:int;
if (_qu1042(_arg1)){
if (_ut1681(_arg1)){
return (_ks1885._oj3099._rx671(_ks1885._sg2406, _arg2));
};
_local8 = _fw1915(_arg1, false);
if (_local8 != -1){
return (_ks1885._oj3099._rx671(_local8, _arg2));
};
return (null);
};
var _local5:uint = _lr3188(_arg1);
var _local6:uint = _xe421(_arg1);
var _local7:uint = _cy1922(_arg1);
switch (_local6){
case _jj2642:
if (_local7 == _fv102){
return (_ks1885._oj3099._jv694(_ks1885._en2529, _arg3, _arg4, _arg2));
};
if (_local7 == _wl2634){
return (_ks1885._oj3099._jv694(_ks1885._ny1703, _arg3, _arg4, _arg2));
};
if (_local7 == _gj2896){
return (_ks1885._oj3099._jv694(_ks1885._pw2323, _arg3, _arg4, _arg2));
};
if (_local7 == _mp331){
return (_ks1885._oj3099._jv694(_ks1885._bw19, _arg3, _arg4, _arg2));
};
if (_local7 == _qj2375){
return (_ks1885._oj3099._jv694(_ks1885._is132, _arg3, _arg4, _arg2));
};
if (_local7 == _mf3458){
return (_ks1885._oj3099._jv694(_ks1885._fb482, _arg3, _arg4, _arg2));
};
if (_local7 == _xu1450){
return (_ks1885._oj3099._jv694(_ks1885._sk3361, _arg3, _arg4, _arg2));
};
case _gj2896:
return (_ks1885._oj3099._jv694(_ks1885._pw2323, _arg3, _arg4, _arg2));
case _mp331:
return (_ks1885._oj3099._jv694(_ks1885._bw19, _arg3, _arg4, _arg2));
case _fv102:
return (_ks1885._oj3099._jv694(_ks1885._en2529, _arg3, _arg4, _arg2));
case _wl2634:
return (_ks1885._oj3099._jv694(_ks1885._ny1703, _arg3, _arg4, _arg2));
case _qj2375:
return (_ks1885._oj3099._jv694(_ks1885._is132, _arg3, _arg4, _arg2));
case _wl2095:
return (_ks1885._oj3099._jv694(_ks1885._mm3359, _arg3, _arg4, _arg2));
case _og2636:
return (_ks1885._oj3099._jv694(_ks1885._mm3359, _arg3, _arg4, _arg2));
case _ww915:
return (_ks1885._oj3099._rx671(_local7, _arg2));
case _ee2004:
return (_ks1885._oj3099._rx671(_local7, _arg2));
case _pg2441:
if (_local7 == _di3381){
return (null);
};
if (_local7 == _eg1411){
return (_ks1885._oj3099._rx671((_ks1885._qd904 + _arg4), _arg2));
};
if (_local7 == _fq1371){
return (_ks1885._oj3099._rx671((_ks1885._mq2047 + _arg4), _arg2));
};
break;
case _ou985:
case _dx664:
if ((_local7 % 2)){
return (_ks1885._oj3099._jv694(_ks1885._ny1703, _arg3, _arg4, _arg2));
};
return (_ks1885._oj3099._jv694(_ks1885._bw19, _arg3, _arg4, _arg2));
case _sr2614:
case _vy139:
if ((_local7 % 2)){
return (_ks1885._oj3099._jv694(_ks1885._en2529, _arg3, _arg4, _arg2));
};
return (_ks1885._oj3099._jv694(_ks1885._pw2323, _arg3, _arg4, _arg2));
case _mf3458:
if ((_local5 & _pc2955)){
return (_ks1885._oj3099._jv694(_ks1885._io2113, _arg3, _arg4, _arg2));
};
return (_ks1885._oj3099._jv694(_ks1885._fb482, _arg3, _arg4, _arg2));
case _xu1450:
return (_ks1885._oj3099._jv694(_ks1885._sk3361, _arg3, _arg4, _arg2));
case _cq3482:
if (_arg4 == _ks1885._uu673){
return (_ks1885._oj3099._rx671((_ks1885._is2683 + 2), _arg2));
};
return (_ks1885._oj3099._rx671((_ks1885._is2683 + (Math.random() * 2)), _arg2));
};
return (null);
}
public static function _iq3184(_arg1:uint, _arg2:uint):Boolean{
return (!((_fd2696(_arg1) == _fd2696(_arg2))));
}
public static function _fi2520(_arg1:uint, _arg2:uint, _arg3:Boolean):Number{
var _local4:uint;
var _local5:uint;
if (_arg3){
if (_fy1706(_arg2)){
return (0);
};
_local4 = _xe421(_arg1);
_local5 = _xe421(_arg2);
switch (_local4){
case _yg1036:
if (!((((_gt787(_arg2)) || ((_local5 == _jq178)))) || ((_local5 == _fs3141)))){
return (0);
};
break;
case _rb2324:
if (((((((((_gt787(_arg2)) || ((_local5 == _ur1485)))) || ((_local5 == _jq178)))) || ((_local5 == _fs3141)))) || ((_local5 == _fe444)))){
return (0);
};
break;
case _qy3104:
if (!(((_local5 == _ur1485)) || ((((_local5 == _fe444)) && ((_ly3044(_arg2) == _xv166)))))){
return (0);
};
};
};
return (1);
}
private static function _lj3322(_arg1:uint, _arg2:uint):uint{
return ((_arg1 | (_arg2 << _lo1795)));
}
public static function _qn2504(_arg1:uint):Boolean{
return ((((_xe421(_arg1) == _og2636)) && (!((_ug265(_arg1) == _fx1407)))));
}
public static function _ob2806(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((_local2 == _jj2642));
}
public static function _fj3424(_arg1:uint, _arg2:uint):Number{
return (1.9);
}
public static function _gt787(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 >= _id3076)) && ((_local2 <= _mu1419))));
}
public static function _on3351(_arg1:uint):Boolean{
return (!((_lr3188(_arg1) == 0)));
}
public static function _fr2230(_arg1:uint, _arg2:Boolean):String{
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:uint;
var _local13:int;
var _local14:int;
var _local15:String;
var _local16:int;
var _local17:int;
var _local3:uint = _xe421(_arg1);
var _local4 = "";
switch (_local3){
case _gh3226:
_local5 = _xt3522(_arg1);
_local6 = _hh3347(_arg1);
_local7 = _ut2215(_arg1);
_local8 = _tu2715(_arg1);
_local9 = _oo1657(_arg1);
_local10 = _vs1831(_arg1);
_local11 = _vv2083(_arg1);
if (_local5){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._vk3295, String(_local5)) + "\n"));
};
if (_local6){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._jd2824, String(_local6)) + "\n"));
};
if (_local10){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._hl3323, String(_local10)) + "\n"));
};
if (_local7){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._mn2477, String(_local7)) + "\n"));
};
if (_local8){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._ur1751, String(_local8)) + "\n"));
};
if (_local9){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._qc2980, String(_local9)) + "\n"));
};
if (((_arg2) && (_local11))){
_local4 = (_local4 + _hy2528.formatString(_hy2528._ig2009, String(_local11)));
};
return (_local4);
case _ur1485:
case _id3076:
case _qe451:
case _wc1920:
case _qr2537:
case _vv2837:
case _mu1419:
case _jq178:
case _fs3141:
if (_gt787(_arg1)){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._rx215, String(_df3211(_arg1))) + "\n"));
};
if ((((_local3 == _jq178)) || ((_local3 == _fs3141)))){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._jd146, String(_ml2220(_arg1))) + "\n"));
};
_local12 = _lr3188(_arg1);
if (_local12){
_local13 = _cy1922(_arg1);
_local14 = 0;
while (_local14 < _cl3154) {
if ((_local12 & (1 << _local14))){
_local15 = null;
switch (_local14){
case _hi3134:
_local15 = _hy2528._yo2240;
break;
case _pj1857:
_local15 = _hy2528._bs2709;
break;
case _px1395:
_local15 = _hy2528._mb1878;
break;
case _st1439:
_local15 = _hy2528._ea408;
break;
case _ja535:
_local15 = _hy2528._em2302;
break;
case _mi1257:
_local15 = _hy2528._tp963;
break;
case _lq738:
_local15 = _hy2528._br2281;
break;
case _kj1870:
_local15 = _hy2528._or2620;
break;
case _yd1003:
_local15 = _hy2528._ij1160;
break;
case _bm1871:
_local15 = _hy2528._fl2340;
break;
case _tq543:
_local15 = _hy2528._vy3305;
break;
case _fh3467:
_local15 = _hy2528._se147;
break;
case _wv3399:
_local15 = _hy2528._xn2391;
break;
case _kg1898:
_local15 = _hy2528._fy2051;
break;
case _na1975:
_local15 = _hy2528._yi585;
break;
case _jy2228:
_local15 = _hy2528._mk1304;
break;
};
if (_local15){
_local4 = (_local4 + (_hy2528.formatString(_local15, String(_gx335(_local14, _local13))) + "\n"));
};
};
_local14++;
};
};
if (_arg2){
_local16 = _uy931(_arg1);
if (_local16){
switch (_local3){
case _qe451:
case _wc1920:
case _id3076:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._jt2544, String(_local16)) + "\n"));
break;
case _qr2537:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._sk1984, String(_local16)) + "\n"));
break;
case _vv2837:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._de2450, String(_local16)) + "\n"));
break;
case _mu1419:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._xq2287, String(_local16)) + "\n"));
break;
case _jq178:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._yd247, String(_local16)) + "\n"));
break;
case _fs3141:
_local4 = (_local4 + (_hy2528.formatString(_hy2528._je2709, String(_local16)) + "\n"));
break;
};
};
_local17 = _wh1796(_arg1);
if (_local17){
_local4 = (_local4 + (_hy2528.formatString(_hy2528._ww2800, String(_local17)) + "\n"));
};
};
return (_local4);
};
return ("");
}
public static function _gw75(_arg1:uint=60, _arg2:int=0, _arg3:int=0, _arg4:int=0):uint{
if (_arg2 > 127){
_arg2 = 127;
};
var _local5:uint;
_local5 = _fm692(_local5, _arg1);
_local5 = _kk2830(_local5, _arg2);
_local5 = _nl1967(_local5, _arg3);
_local5 = _lj3322(_local5, _arg4);
return (_local5);
}
public static function _ut2215(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _ee138:
return (24);
case _aa2858:
return (12);
case _fm845:
case _vn912:
return (8);
case _ra2968:
case _gl1446:
return (7);
case _nw2247:
case _jn27:
return (12);
};
return (0);
}
public static function _rk158(_arg1:Boolean, _arg2:Boolean, _arg3:int, _arg4:Boolean=false):uint{
if (_arg3 > 127){
_arg3 = 127;
};
var _local5:uint;
_local5 = _fm692(_local5, _ln279);
if (_arg1){
_local5 = _tt1446(_local5, _tm582);
};
if (_arg2){
_local5 = _tt1446(_local5, _mf3313);
};
_local5 = _kk2830(_local5, _arg3);
if (_arg4){
_local5 = _rq1066(_local5);
};
return (_local5);
}
private static function _ss3256(_arg1:uint, _arg2:uint):uint{
return (_tt1446(_arg1, _arg2));
}
public static function _gm3294(_arg1:uint):int{
return (_ug265(_arg1));
}
public static function _ef2514(_arg1:uint):int{
return (_ls2912(_arg1));
}
public static function _wn2345(_arg1:int):uint{
if (_arg1 > 127){
_arg1 = 127;
};
var _local2:uint;
_local2 = _fm692(_local2, _gk701);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _cy1922(_arg1:uint):uint{
return (((_arg1 & _oc3350) >>> _pg1328));
}
public static function _tp2616(_arg1:uint):int{
if (_xe421(_arg1) == _cq3482){
return (3);
};
return (200);
}
private static function _rq1066(_arg1:uint):uint{
return ((_arg1 | _nb490));
}
public static function _vi1826(_arg1:uint):int{
return (_ug265(_arg1));
}
public static function _bg827(_arg1:uint):Boolean{
var _local2:int = _gh3308(_arg1);
switch (_local2){
case _py1306:
case _ei1061:
case _ns1027:
return (true);
};
return (false);
}
public static function _bb495(_arg1:uint):Boolean{
var _local3:int;
var _local2:uint = _xe421(_arg1);
if (_local2 == _ww915){
_local3 = _cy1922(_arg1);
return ((_local3 == _ks1885._cd1736));
};
return (false);
}
public static function _od2004(_arg1:uint=0):uint{
var _local2:uint;
_local2 = _fm692(_local2, _bn2161);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _lf1426(_arg1:uint, _arg2:int, _arg3:int=0):uint{
if (_arg2 > 127){
_arg2 = 127;
};
var _local4:uint;
_local4 = _fm692(_local4, _arg1);
_local4 = _kk2830(_local4, _arg2);
_local4 = _ss3256(_local4, _arg3);
return (_local4);
}
public static function _gs44(_arg1:uint):BitmapData{
var _local2:BitmapData;
if (_um1753(_arg1)){
switch (_cy1922(_arg1)){
case 1:
_local2 = _ks1885._oj3099._py1430(_ks1885._rs899);
break;
case 2:
_local2 = _ks1885._oj3099._py1430(_ks1885._dt909);
break;
case 3:
_local2 = _ks1885._oj3099._py1430(_ks1885._nd2960);
break;
};
} else {
_local2 = _ks1885._oj3099._py1430(_gh3308(_arg1));
};
return (_local2);
}
public static function _df3211(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _id3076:
return ((1 + (_local3 * 1)));
case _qe451:
return ((1 + (_local3 * 1.2)));
case _wc1920:
return ((2 + (_local3 * 1.5)));
case _qr2537:
return ((3 + (_local3 * 2.1)));
case _vv2837:
return ((2 + (_local3 * 1.7)));
case _mu1419:
return ((1 + (_local3 * 1.3)));
};
return (0);
}
public static function _sx3421(_arg1:int=50):uint{
var _local2:uint;
_local2 = _fm692(_local2, _jj2642);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _fp1369(_arg1:int, _arg2:int=0, _arg3:Boolean=false):uint{
if (_arg1 > 127){
_arg1 = 127;
};
var _local4:uint;
_local4 = _fm692(_local4, _ur1485);
_local4 = _kk2830(_local4, _arg1);
_local4 = _tt1446(_local4, _arg2);
if (_arg3){
_local4 = _rq1066(_local4);
};
return (_local4);
}
public static function _dc2713(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
if (_local2 == _jj2642){
_local2 = _cy1922(_arg1);
};
switch (_local2){
case _sr2614:
case _vy139:
case _gj2896:
case _fv102:
return (_ks1885._rm1660);
case _ou985:
case _dx664:
case _mp331:
case _wl2634:
return (_ks1885._ni2989);
case _qj2375:
return (_ks1885._di258);
case _mf3458:
return (_ks1885._xa2037);
case _xu1450:
return (_ks1885._kp1901);
case _cq3482:
return (_ks1885._vq3288);
case _wl2095:
return (_ks1885._pm2042);
};
return (-1);
}
public static function _vl2477(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
switch (_local2){
case _jj2642:
return (-1);
case _sr2614:
case _vy139:
case _gj2896:
case _fv102:
return (_ks1885._tb1754);
case _ou985:
case _dx664:
case _mp331:
case _wl2634:
return (_ks1885._lq3347);
case _qj2375:
return (_ks1885._ie1531);
case _mf3458:
return (((Math.random() > 0.5)) ? _ks1885._ff69 : _ks1885._cr1871);
case _xu1450:
return (_ks1885._kx2395);
case _cq3482:
return (_ks1885._gg445);
case _wl2095:
return (_ks1885._wr2946);
};
return (-1);
}
public static function _da912(_arg1:uint):int{
return (_cy1922(_arg1));
}
public static function _lr3188(_arg1:uint):uint{
return (((_arg1 & _we2502) >>> _wy2702));
}
public static function _bp669(_arg1:uint):Boolean{
var _local3:int;
var _local2:uint = _xe421(_arg1);
if (_local2 == _ww915){
_local3 = _cy1922(_arg1);
return ((((((_local3 == _ks1885._vp431)) || ((_local3 == _ks1885._ls1293)))) || ((_local3 == _ks1885._jw270))));
};
return (false);
}
public static function _ob2792(_arg1:uint):Boolean{
return (((_hy1205(_arg1)) && (!((_ef2514(_arg1) == 0)))));
}
public static function _hy1205(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 >= _ou985)) && ((_local2 <= _rb2324))));
}
public static function _vv2083(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
_local3--;
var _local4 = 2;
switch (_local2){
case _vn912:
return (((1 + (_local3 * 2)) * _local4));
case _gl1446:
return (((2 + (_local3 * 2)) * _local4));
case _jn27:
return (((2 + (_local3 * 2)) * _local4));
case _fm845:
return (((3 + (_local3 * 2)) * _local4));
case _ra2968:
return (((3 + (_local3 * 2)) * _local4));
case _nw2247:
return (((4 + (_local3 * 2)) * _local4));
case _py1306:
return (((3 + (_local3 * 2)) * _local4));
case _ei1061:
return (((4 + (_local3 * 2)) * _local4));
case _ns1027:
return (((10 + (_local3 * 2)) * _local4));
case _mn2179:
return (((10 + (_local3 * 2)) * _local4));
};
return (99);
}
public static function _lo2580(_arg1:uint):int{
return (_cy1922(_arg1));
}
public static function _ug265(_arg1:uint):uint{
return (((_arg1 & _po3114) >>> _ci1205));
}
public static function _cf2078(_arg1:uint):Boolean{
return ((_xe421(_arg1) == _bn2161));
}
private static function _kk2830(_arg1:uint, _arg2:uint):uint{
return ((_arg1 | (_arg2 << _pg1328)));
}
public static function _rl1874(_arg1:uint, _arg2:int=0, _arg3:int=1, _arg4:int=0):BitmapData{
var _local5:int;
var _local6:int;
if (_qu1042(_arg1)){
if (_ut1681(_arg1)){
if (_gh3308(_arg1) == _mn2179){
switch (_cy1922(_arg1)){
case 1:
return (_ks1885._oj3099._ny1070(_ks1885._rs899));
case 2:
return (_ks1885._oj3099._ny1070(_ks1885._dt909));
case 3:
return (_ks1885._oj3099._ny1070(_ks1885._nd2960));
};
};
return (_ks1885._oj3099._ny1070(_gh3308(_arg1)));
} else {
if (_lp2720(_arg1)){
if (((_on3351(_arg1)) || (_fy1706(_arg1)))){
_local6 = (_cy1922(_arg1) % 6);
return (_ks1885._oj3099._nb1242((_fw1915(_arg1, true) + _local6)));
};
};
};
_local5 = _fw1915(_arg1, true);
if (_local5 != -1){
if (((_uk3274(_arg1)) && (((_on3351(_arg1)) || (_fy1706(_arg1)))))){
return (_ks1885._oj3099._ov184(_local5));
};
return (_ks1885._oj3099._nb1242(_local5));
};
};
return (null);
}
public static function _dn2024(_arg1:uint, _arg2:Boolean, _arg3:uint, _arg4:Boolean=false):int{
var _local5:int = _vi2733(_arg1);
if (_arg2){
_local5 = (_local5 * _fj3424(_arg3, _arg1));
} else {
_local5 = (_local5 * _fi2520(_arg3, _arg1, _arg4));
};
return (_local5);
}
public static function _yp757(_arg1:int=0, _arg2:int=0):uint{
var _local3:uint;
_local3 = _fm692(_local3, _fe444);
_local3 = _nl1967(_local3, _arg1);
_local3 = _lj3322(_local3, _arg2);
return (_local3);
}
public static function _ws2874(_arg1:uint):Number{
var _local2:uint = _xe421(_arg1);
switch (_local2){
case _xu1450:
return (3);
case _qj2375:
return (1);
case _jj2642:
return (5);
};
return (2);
}
public static function _aj2495(_arg1:uint):int{
var _local2:uint = _cy1922(_arg1);
return ((2 + (_local2 * 6)));
}
public static function _vi2733(_arg1:uint):int{
var _local4:int;
var _local5:uint;
var _local6:int;
var _local7:uint;
var _local8:int;
var _local9:int;
var _local10:int;
var _local2:int = _cy1922(_arg1);
var _local3:uint = _lr3188(_arg1);
if (_uk3274(_arg1)){
_local4 = 0;
_local5 = 1;
_local6 = 0;
while (_local6 < 16) {
if ((_local3 & _local5)){
_local4 = (_local4 + 1);
};
_local5 = (_local5 << 1);
_local6++;
};
return (((1 + (_local2 * 11)) + ((_local4 * 30) * _local2)));
} else {
_local7 = _xe421(_arg1);
switch (_local7){
case _ln279:
_local8 = _od2933(_arg1);
_local9 = 1;
if ((((_local3 & _tm582)) && ((_local3 & _mf3313)))){
_local9 = 2;
};
return ((_local8 * _local9));
case _gh3226:
_local10 = _oo1657(_arg1);
return ((_local10 * 5));
case _fe444:
switch (_ly3044(_arg1)){
case _xe2767:
return (5);
case _yy1761:
return (6);
case _wn2141:
return (7);
case _ts2137:
return (5);
case _xv166:
return (1);
case _ni2675:
return (10);
};
};
};
return (0);
}
public static function _ly3044(_arg1:uint):int{
return (_ug265(_arg1));
}
public static function _ls2912(_arg1:uint):uint{
return (((_arg1 & _mc786) >>> _lo1795));
}
public static function _gh3308(_arg1:uint):int{
return (_ug265(_arg1));
}
public static function _kl2415(_arg1:uint):String{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:String;
var _local2:uint = _lr3188(_arg1);
var _local3:uint = _xe421(_arg1);
switch (_local3){
case _jj2642:
break;
case _ur1485:
return (((_om2646(_arg1) + _hy2528._vc193) + _yq2852(_arg1)));
case _gk701:
return (((_hy2528._ks1819 + " ") + _qk971(_arg1)));
case _fe444:
switch (_ly3044(_arg1)){
case _xe2767:
return (_hy2528._vq2546);
case _yy1761:
return (_hy2528._uk906);
case _wn2141:
return (_hy2528._ee404);
case _ts2137:
return (_hy2528._cd1825);
case _xv166:
return (_hy2528._fa2552);
case _ni2675:
_local5 = _ls2912(_arg1);
if ((((_local5 >= 0)) && ((_local5 < _hy2528._lx584.length)))){
return (_hy2528._lx584[_local5]);
};
return (_hy2528._ff2844);
};
break;
case _ln279:
if ((((_local2 & _tm582)) && ((_local2 & _mf3313)))){
return ((((_hy2528._jw2936 + " (+") + _od2933(_arg1)) + ")"));
};
if ((_local2 & _tm582)){
return ((((_hy2528._cy1218 + " (+") + _od2933(_arg1)) + ")"));
};
if ((_local2 & _mf3313)){
return ((((_hy2528._gk269 + " (+") + _od2933(_arg1)) + ")"));
};
break;
case _gh3226:
_local6 = _gh3308(_arg1);
_local7 = "";
switch (_local6){
case _vn912:
_local7 = _hy2528._xw985;
break;
case _gl1446:
_local7 = _hy2528._ar2214;
break;
case _jn27:
_local7 = _hy2528._qr1849;
break;
case _fm845:
_local7 = _hy2528._yl2288;
break;
case _ra2968:
_local7 = _hy2528._wm1284;
break;
case _nw2247:
_local7 = _hy2528._gv878;
break;
case _py1306:
_local7 = _hy2528._qf150;
break;
case _ei1061:
_local7 = _hy2528._ir1818;
break;
case _ns1027:
_local7 = _hy2528._vl2055;
break;
case _mn2179:
switch (_cy1922(_arg1)){
case 1:
return (_hy2528._gd2543);
case 2:
return (_hy2528._wa1304);
case 3:
return (_hy2528._qd2096);
};
break;
};
return ((((((_local7 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _id3076:
return (((_om2646(_arg1) + _hy2528._ig352) + _yq2852(_arg1)));
case _qe451:
return (((_om2646(_arg1) + _hy2528._qn2018) + _yq2852(_arg1)));
case _wc1920:
return (((_om2646(_arg1) + _hy2528._nc190) + _yq2852(_arg1)));
case _qr2537:
return (((_om2646(_arg1) + _hy2528._xf2261) + _yq2852(_arg1)));
case _vv2837:
return (((_om2646(_arg1) + _hy2528._ho3401) + _yq2852(_arg1)));
case _mu1419:
return (((_om2646(_arg1) + _hy2528._tp2559) + _yq2852(_arg1)));
case _jq178:
return (((_om2646(_arg1) + _hy2528._yg1097) + _yq2852(_arg1)));
case _fs3141:
return (((_om2646(_arg1) + _hy2528._vm103) + _yq2852(_arg1)));
case _fv102:
case _gj2896:
if ((_local2 & _nd190)){
return ((((((_hy2528._pj1943 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
if ((_local2 & _lw1786)){
return ((((((_hy2528._wd537 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
return ((((((_hy2528._tl776 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _wl2634:
case _mp331:
if ((_local2 & _nd190)){
return ((((((_hy2528._pj1943 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
if ((_local2 & _lw1786)){
return ((((((_hy2528._mj1048 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
return ((((((_hy2528._lt2754 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _qj2375:
if ((_local2 & _lw1786)){
return ((((((_hy2528._wn2488 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
return ((((((_hy2528._xx1226 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _wl2095:
return ((((((_hy2528._im1271 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _bn2161:
switch (_da912(_arg1)){
case _cp2279:
return (_hy2528._ei2319);
case _du1781:
return (_hy2528._tw1153);
case _ei2241:
return (_hy2528._tx582);
case _dr3518:
return (_hy2528._sa2726);
case _ws1827:
return (_hy2528._fa1590);
case _vr2222:
return (_hy2528._bt1488);
case _dm906:
return (_hy2528._bw3292);
};
break;
case _ww915:
_local4 = _ug265(_arg1);
switch (_cy1922(_arg1)){
case _ks1885._cd1736:
return (_hy2528._id3405);
case _ks1885._ud1618:
case _ks1885._ka3350:
return (_hy2528._ys1241);
case _ks1885._kq1981:
return (_hy2528._up2707);
case _ks1885._rc1837:
return (_hy2528._cm23);
case _ks1885._ph675:
return (_hy2528._nx3364);
case _ks1885._ic2367:
return (_hy2528._du350);
case _ks1885._oa2678:
return (_hy2528._tp2233);
case _ks1885._yd2351:
return (_hy2528._xk2199);
case _ks1885._mh3098:
if (_local4 == 1){
return ((_hy2528._iy64 + " II"));
};
if (_local4 > 1){
return ((_hy2528._iy64 + " III"));
};
return (_hy2528._iy64);
case _ks1885._ph1453:
if (_local4 == 1){
return ((_hy2528._kh185 + " II"));
};
if (_local4 > 1){
return ((_hy2528._kh185 + " III"));
};
return (_hy2528._kh185);
case _ks1885._tk3087:
if (_local4 == 1){
return ((_hy2528._ei1588 + " II"));
};
if (_local4 > 1){
return ((_hy2528._ei1588 + " III"));
};
return (_hy2528._ei1588);
case _ks1885._vp431:
case _ks1885._ls1293:
case _ks1885._jw270:
return (_hy2528._aa381);
};
return (_hy2528._dj1002);
case _og2636:
return (_hy2528._hk2614);
case _pg2441:
return (_hy2528._yd2006);
case _ee2004:
return (_hy2528._sq2455);
case _ou985:
case _dx664:
if ((((_cy1922(_arg1) == _rw2219)) || ((_cy1922(_arg1) == _nk147)))){
return (_hy2528._wm2704);
};
return (_hy2528._ku2207);
case _sr2614:
case _vy139:
if ((((_cy1922(_arg1) == _rw2219)) || ((_cy1922(_arg1) == _nk147)))){
return (_hy2528._wm2704);
};
return (_hy2528._ss178);
case _yg1036:
return (_hy2528._ya1243);
case _rb2324:
return (_hy2528._dc2756);
case _qy3104:
return (_hy2528._eb2964);
case _mf3458:
if ((_local2 & _lw1786)){
return ((((((((_local2 & _pc2955)) ? _hy2528._ow1709 : _hy2528._qp227 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
} else {
return ((((((((_local2 & _pc2955)) ? _hy2528._nt3383 : _hy2528._yq3532 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
case _xu1450:
return ((((((_hy2528._gm1682 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
case _cq3482:
return ((((((_hy2528._vu220 + " (") + _hy2528._wh3238) + ": ") + _cy1922(_arg1)) + ")"));
};
return ("");
}
public static function _eu2563(_arg1:int=60):uint{
var _local2:uint;
_local2 = _fm692(_local2, _ww915);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _ba3524(_arg1:uint, _arg2:int, _arg3:int=0, _arg4:Boolean=false):uint{
if (_arg2 > 127){
_arg2 = 127;
};
var _local5:uint;
_local5 = _fm692(_local5, _arg1);
_local5 = _kk2830(_local5, _arg2);
_local5 = _tt1446(_local5, _arg3);
if (_arg4){
_local5 = _rq1066(_local5);
};
return (_local5);
}
public static function _nn1505(_arg1:uint):uint{
return (_lr3188(_arg1));
}
public static function _qu1042(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 >= _ln279)) && ((_local2 <= _fs3141))));
}
public static function _uk3274(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 == _ur1485)) || ((((_local2 >= _id3076)) && ((_local2 <= _fs3141))))));
}
public static function _uy931(_arg1:uint):int{
return (_cy1922(_arg1));
}
public static function _se2766(_arg1:int):int{
var _local2:int = (_arg1 - 1);
return ((((_local2 * _local2) * _local2) * 100));
}
public static function _tu2715(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _ns1027:
return ((_local3 * 12));
case _mn2179:
return (15);
case _ei1061:
return ((_local3 * 5));
};
return (0);
}
public static function _gl1955(_arg1:uint):Boolean{
var _local2:int = _gh3308(_arg1);
switch (_local2){
case _vn912:
case _gl1446:
case _jn27:
case _fm845:
case _ra2968:
case _nw2247:
case _ee138:
case _aa2858:
return (true);
};
return (false);
}
public static function _wn3182(_arg1:uint):Boolean{
return (((!(_hy1205(_arg1))) && (!(((_nn1505(_arg1) & _lw1786) == 0)))));
}
public static function _gx335(_arg1:int, _arg2:int):int{
var _local3 = 1;
_local3 = (_local3 + (_arg2 / 5));
if ((((_arg1 == _hi3134)) || ((_arg1 == _pj1857)))){
_local3 = (_local3 * 3);
};
return (_local3);
}
public static function _xt3522(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _py1306:
return ((_yw2484 + ((_local3 * 2) * _ik2003)));
};
return (0);
}
public static function _au2821(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 == _jj2642)) || ((_local2 >= _gj2896))));
}
public static function _xe421(_arg1:uint):uint{
return (((_arg1 & _tm2990) >>> _fx1726));
}
public static function _mw892(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
if ((((_local2 == _vy139)) || ((_local2 == _dx664)))){
return (true);
};
if (((!(_hy1205(_arg1))) && (_au2821(_arg1)))){
return (!(((_nn1505(_arg1) & _tl2614) == 0)));
};
return (false);
}
public static function _pf1923(_arg1:uint):int{
var _local2:uint = _cy1922(_arg1);
var _local3:uint = _xe421(_arg1);
var _local4:uint = _nn1505(_arg1);
var _local5 = 1;
switch (_local3){
case _fv102:
case _gj2896:
_local5 = 110;
break;
case _qj2375:
_local5 = 150;
break;
case _mf3458:
_local5 = 100;
break;
case _wl2095:
_local5 = 155;
break;
case _wl2634:
case _mp331:
_local5 = 170;
break;
case _xu1450:
_local5 = 130;
break;
case _cq3482:
_local5 = 120;
break;
};
var _local6:int = (((((_local2 * _local2) * _local5) / 10) / 4) + (_local5 / 8));
if (_local2 > 11){
_local6 = (((((11 * 11) * _local5) / 10) / 4) + (_local5 / 8));
_local6 = (_local6 + ((_local5 * _local2) / 40));
};
if ((_local4 & _lw1786)){
_local6 = (_local6 * 3);
};
return (_local6);
}
public static function _oo1657(_arg1:uint):int{
var _local2:int = _xt3522(_arg1);
var _local3:int = _hh3347(_arg1);
var _local4:int = _ut2215(_arg1);
var _local5:int = _tu2715(_arg1);
var _local6:int = _cy1922(_arg1);
var _local7:int = _vs1831(_arg1);
var _local8:Number = 1;
switch (_local6){
case 2:
_local8 = 0.8;
case 3:
_local8 = 0.8;
};
if (_qi883(_arg1)){
_local8 = (_local8 * 3);
};
return (((((((_local2 / 2) + (_local7 * 2)) + (_local3 / 4)) + (_local4 / 8)) + _local5) * _local8));
}
public static function _ek344(_arg1:uint):Boolean{
var _local2:int;
if (_hy1205(_arg1)){
_local2 = _cy1922(_arg1);
return ((((_local2 == _rw2219)) || ((_local2 == _nk147))));
};
if (_au2821(_arg1)){
return (!(((_nn1505(_arg1) & _nd190) == 0)));
};
return (false);
}
public static function _uo1324(_arg1:uint):Boolean{
return ((_xe421(_arg1) == _pg2441));
}
private static function _fm692(_arg1:uint, _arg2:uint):uint{
return ((_arg1 | (_arg2 << _fx1726)));
}
public static function _qs2221(_arg1:uint):Boolean{
var _local3:int;
var _local2:uint = _xe421(_arg1);
if (_local2 == _ww915){
_local3 = _cy1922(_arg1);
return ((((((((((((((((_local3 == _ks1885._vp431)) || ((_local3 == _ks1885._ls1293)))) || ((_local3 == _ks1885._jw270)))) || ((_local3 == _ks1885._oa2678)))) || ((_local3 == _ks1885._yd2351)))) || ((_local3 == _ks1885._mh3098)))) || ((_local3 == _ks1885._ph1453)))) || ((_local3 == _ks1885._tk3087))));
};
return (false);
}
public static function _nl1967(_arg1:uint, _arg2:uint):uint{
return ((_arg1 | (_arg2 << _ci1205)));
}
private static function _fu2210(_arg1:Number):Number{
return (Math.pow(_arg1, (1 / 3)));
}
public static function _hv2511(_arg1:uint):int{
var _local2:uint = _nn1505(_arg1);
var _local3:uint;
if ((_local2 & _pc2955)){
_local3 = (_local3 | _vx2298);
};
if ((_local2 & _qh805)){
_local3 = (_local3 | _md25);
};
if ((_local2 & _fo523)){
_local3 = (_local3 | _hc397);
};
return (_local3);
}
public static function _fc330(_arg1:uint):Number{
return (2);
}
public static function _gy127(_arg1:uint):int{
if (_ei1897(_arg1)){
switch (_cy1922(_arg1)){
case _ks1885._cd1736:
return (500);
case _ks1885._ud1618:
case _ks1885._ka3350:
return (200);
case _ks1885._kq1981:
case _ks1885._rc1837:
case _ks1885._ph675:
case _ks1885._ic2367:
return (300);
case _ks1885._oa2678:
case _ks1885._yd2351:
return (100);
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
return (200);
case _ks1885._vp431:
case _ks1885._ls1293:
case _ks1885._jw270:
return (300);
};
};
if (_hy1205(_arg1)){
return (15);
};
var _local2:uint = _cy1922(_arg1);
if (!_local2){
return (10);
};
return ((2 + (_local2 * 3)));
}
public static function _um1753(_arg1:uint):Boolean{
return ((_gh3308(_arg1) == _mn2179));
}
public static function _hh3347(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _ee138:
return (3);
case _aa2858:
return (8);
case _vn912:
return (12);
case _gl1446:
return (14);
case _jn27:
return (18);
case _fm845:
return (8);
case _ra2968:
return (10);
case _nw2247:
return (14);
};
return (0);
}
public static function _rj1313(_arg1:int=60):uint{
var _local2:uint;
_local2 = _fm692(_local2, _ee2004);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _qi883(_arg1:uint):Boolean{
var _local2:int = _gh3308(_arg1);
switch (_local2){
case _fm845:
case _ra2968:
case _nw2247:
return (true);
};
return (false);
}
public static function _fy1706(_arg1:uint):Boolean{
return (!(((_arg1 & _nb490) == 0)));
}
public static function _ux2139(_arg1:uint):BitmapData{
return (null);
}
public static function _wh1796(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
if ((((_local2 == _ur1485)) || ((_local2 == _gh3226)))){
return (0);
};
return ((1 + ((_df3211(_arg1) + _ml2220(_arg1)) / 2)));
}
public static function _pv909(_arg1:uint):int{
return (1);
}
public static function _pt849(_arg1:uint):int{
switch (_cy1922(_arg1)){
case _ks1885._oa2678:
return (20);
case _ks1885._yd2351:
return (30);
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
return (40);
};
return (0);
}
public static function _da2433(_arg1:uint):int{
var _local2:int = _gh3308(_arg1);
switch (_local2){
case _vn912:
return (_vx2298);
case _gl1446:
return (_hc397);
case _jn27:
return (_md25);
case _fm845:
return (_vx2298);
case _ra2968:
return (_hc397);
case _nw2247:
return (_md25);
};
return (0);
}
public static function _ii3477(_arg1:int=0):uint{
var _local2:uint;
_local2 = _fm692(_local2, _pg2441);
_local2 = _kk2830(_local2, _arg1);
return (_local2);
}
public static function _ei1897(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((_local2 == _ww915));
}
public static function _et2264(_arg1:uint):Boolean{
var _local3:int;
var _local2:uint = _xe421(_arg1);
if (_local2 == _ww915){
_local3 = _cy1922(_arg1);
return ((((((((((_local3 == _ks1885._oa2678)) || ((_local3 == _ks1885._yd2351)))) || ((_local3 == _ks1885._mh3098)))) || ((_local3 == _ks1885._ph1453)))) || ((_local3 == _ks1885._tk3087))));
};
return (false);
}
public static function _fd2696(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
if ((((((_local2 == _jj2642)) || ((_local2 == _ww915)))) || (_hy1205(_arg1)))){
return (false);
};
return (true);
}
public static function _od2933(_arg1:uint):int{
var _local2:uint = _cy1922(_arg1);
return ((_yw2484 + (_local2 * _ik2003)));
}
public static function _st2210(_arg1:uint):Boolean{
var _local2:uint = _xe421(_arg1);
return ((((_local2 >= _qy3104)) && ((_local2 <= _rb2324))));
}
public static function _ol2939(_arg1:uint, _arg2:int, _arg3:int):_ps2722{
var _local4:_ps2722 = new _ps2722();
_local4.x = _arg2;
_local4.y = _arg3;
_local4.itemType = _arg1;
return (_local4);
}
public static function _qk971(_arg1:uint):int{
var _local2:uint = _cy1922(_arg1);
return ((_fk3494 + (_local2 * _cm1751)));
}
public static function _jg1668(_arg1:int):int{
return ((_fu2210((_arg1 / 100)) + 1));
}
private static function _tt1446(_arg1:uint, _arg2:uint):uint{
return ((_arg1 | (_arg2 << _wy2702)));
}
public static function _fp316(_arg1:uint=0, _arg2:uint=0xFF):uint{
var _local3:uint;
_local3 = _fm692(_local3, _og2636);
_local3 = _kk2830(_local3, _arg1);
_local3 = _nl1967(_local3, _arg2);
return (_local3);
}
public static function _ts1885(_arg1:uint=0, _arg2:int=1):uint{
if (_arg2 > 3){
_arg2 = 3;
};
var _local3:uint;
_local3 = _fm692(_local3, _gh3226);
_local3 = _kk2830(_local3, _arg2);
_local3 = _nl1967(_local3, _arg1);
return (_local3);
}
public static function _ry922(_arg1:uint):int{
return (_cy1922(_arg1));
}
private static function _yq2852(_arg1:uint):String{
var _local2:Boolean = _fy1706(_arg1);
var _local3:Boolean = _on3351(_arg1);
if (((!(_local2)) && (!(_local3)))){
return ("");
};
var _local4 = " (";
if (_local2){
_local4 = (_local4 + _hy2528._lb1272);
if (_local3){
_local4 = (_local4 + ", ");
};
};
if (_local3){
_local4 = (_local4 + _hy2528._oh3490);
};
_local4 = (_local4 + ")");
return (_local4);
}
public static function _eb134(_arg1:uint):int{
var _local2:BitmapData = _rl1874(_arg1);
if (_local2){
if (_local2.width < 26){
return (_oh3020);
};
if (_local2.height < 52){
return (_vy435);
};
return (_fj3366);
};
return (_oh3020);
}
public static function _sq2959(_arg1:uint):Boolean{
return ((((_xe421(_arg1) == _og2636)) && ((_cy1922(_arg1) == _lm3318))));
}
public static function _ml2220(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
var _local3:int = _cy1922(_arg1);
switch (_local2){
case _jq178:
return ((_local3 * 1.5));
case _fs3141:
return ((_local3 * 2.2));
};
return (0);
}
private static function _om2646(_arg1:uint):String{
var _local2:int;
if (_fy1706(_arg1)){
_local2 = (_cy1922(_arg1) % 3);
if (_local2 == 0){
return (_hy2528._tv2628);
};
if (_local2 == 1){
return (_hy2528._yp2284);
};
return (_hy2528._iu1576);
};
return ("");
}
private static function _fw1915(_arg1:uint, _arg2:Boolean):int{
var _local3:uint = _lr3188(_arg1);
var _local4:uint = _xe421(_arg1);
var _local5:uint = _cy1922(_arg1);
switch (_local4){
case _ur1485:
return (_ks1885._py802);
case _gk701:
return (_ks1885._ou2857);
case _gh3226:
return (0);
case _fe444:
switch (_ly3044(_arg1)){
case _xe2767:
return (_ks1885._cg568);
case _yy1761:
return (_ks1885._ec1041);
case _wn2141:
return (_ks1885._pf1247);
case _ts2137:
return (_ks1885._ok2587);
case _xv166:
return (_ks1885._sg2406);
case _ni2675:
return (_ks1885._bl3409);
};
break;
case _ln279:
if ((((_local3 & _tm582)) && ((_local3 & _mf3313)))){
return (_ks1885._co2297);
};
if ((_local3 & _tm582)){
if (_arg2){
if (_local5 >= _uj694){
return (_ks1885._eb1770);
};
if (_local5 >= _qx1241){
return (_ks1885._jp3362);
};
};
return (_ks1885._pr2284);
} else {
if ((_local3 & _mf3313)){
if (_arg2){
if (_local5 >= _uj694){
return (_ks1885._ug1721);
};
if (_local5 >= _qx1241){
return (_ks1885._fq2451);
};
};
return (_ks1885._cl69);
};
};
break;
case _id3076:
return (((_local5 >= _qx1241)) ? _ks1885._yq1875 : _ks1885._ij1795);
case _qe451:
return (_ks1885._nw1414);
case _wc1920:
if (_local5 >= _uj694){
return (_ks1885._xg2133);
};
if (_local5 >= _qx1241){
return (_ks1885._um1092);
};
return (_ks1885._yj1135);
case _qr2537:
return (((_local5 >= _qx1241)) ? _ks1885._wg2686 : _ks1885._fl3155);
case _vv2837:
if (_local5 >= _uj694){
return (_ks1885._qg351);
};
if (_local5 >= _qx1241){
return (_ks1885._xt224);
};
return (_ks1885._fy2094);
case _mu1419:
if (_local5 >= _uj694){
return (_ks1885._st1129);
};
if (_local5 >= _qx1241){
return (_ks1885._pw2771);
};
return (_ks1885._rj678);
case _jq178:
if (_local5 >= _uj694){
return (_ks1885._xl1552);
};
if (_local5 >= _ty1687){
return (_ks1885._ob3096);
};
if (_local5 >= _qx1241){
return (_ks1885._lk1182);
};
if (_local5 >= _ly3224){
return (_ks1885._ja3365);
};
return (_ks1885._eb2544);
case _fs3141:
if (_local5 >= _uj694){
return (_ks1885._vo841);
};
if (_local5 >= _qx1241){
return (_ks1885._bf3410);
};
if (_local5 >= _ly3224){
return (_ks1885._gh3463);
};
return (_ks1885._eh988);
};
return (-1);
}
public static function _qf1864(_arg1:uint, _arg2:int, _arg3:int):_ex557{
return (new _ex557(_ol2939(_arg1, _arg2, _arg3)));
}
public static function _dw92(_arg1:uint):int{
var _local2:uint = _xe421(_arg1);
var _local3:int = _gy127(_arg1);
var _local4:int;
switch (_local2){
case _qj2375:
_local4 = (20 + (_local3 * 1.1));
break;
case _mf3458:
_local4 = (21 + (_local3 * 1.1));
break;
case _wl2095:
_local4 = (20 + (_local3 * 1.2));
break;
case _xu1450:
_local4 = (22 + (_local3 * 1.1));
break;
};
return (_local4);
}
public static function _lp2720(_arg1:uint):Boolean{
return ((_xe421(_arg1) == _ur1485));
}
public static function _tj2613(_arg1:uint):int{
switch (_cy1922(_arg1)){
case _ks1885._oa2678:
return (10);
case _ks1885._yd2351:
return (10);
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
return (9);
};
return (0);
}
}
}//package ambiera
Section 523
//_we3492 (ambiera._we3492)
package ambiera {
public class _we3492 {
public static function decode(_arg1:String):String{
return (_arg1);
}
public static function encode(_arg1:String):String{
_arg1 = _th1037(_arg1, "&", " ");
_arg1 = _th1037(_arg1, "<", "<");
_arg1 = _th1037(_arg1, ">", ">");
_arg1 = _th1037(_arg1, "\"", """);
_arg1 = _th1037(_arg1, "\\", " ");
_arg1 = _th1037(_arg1, "'", "'");
return (_arg1);
}
public static function _th1037(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:int;
var _local5:String;
while (true) {
_local4 = _arg1.indexOf(_arg2);
if (_local4 == -1){
break;
};
_local5 = "";
if (_local4 > 0){
_local5 = _arg1.substring(0, _local4);
};
_local5 = (_local5 + _arg3);
_local5 = (_local5 + _arg1.substring((_local4 + _arg2.length)));
_arg1 = _local5;
};
return (_arg1);
}
}
}//package ambiera
Section 524
//_vf2225 (ambiera._vf2225)
package ambiera {
import flash.geom.*;
public class _vf2225 extends _iu1662 {
protected var _rd243:int;
protected var _bi401:int;
protected var _ti1053:int;
protected var _hv1987:_ex557;
protected var _ya804:int;
private static const _hi2621:int = 0;
private static const _sc1239:int = 2;
private static const _yl604:int = 1;
private static var _at1207:int = 1;
public function _vf2225(_arg1:_ex557, _arg2:_ps2722, _arg3:_gm2472){
_bi401 = _at1207;
_at1207++;
super(_arg1, _arg2, _arg3);
_ti1053 = 0;
_bm226();
}
private function _vs2834(_arg1:_ex557):Boolean{
var _local2:_ps2722;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:uint;
var _local8:uint;
var _local9:Boolean;
if (_tv609._wn3182(_el3187.itemType)){
if (_ti1053 > 0){
return (true);
};
if (!_ck1797(_arg1)){
return (false);
};
_local2 = _arg1._fn629();
_local3 = 2;
_local4 = (_el3187.x - _local2.x);
_local5 = (_el3187.y - _local2.y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local7 = _tv609._cy1922(_el3187.itemType);
_local8 = 0;
if (_local6 > 7){
return (false);
};
if (_local7 <= _tv609._db2186){
if (_local6 < 3){
return (false);
};
_local8 = _tv609._ts1885(_tv609._vn912, 1);
_ti1053 = 4000;
} else {
if (_local7 <= _tv609._ly3224){
if (_local6 < 3){
return (false);
};
_local8 = _tv609._ts1885((_tv609._vn912 + int((Math.random() * 3))), 2);
_ti1053 = 4000;
} else {
_local9 = ((Math.random() * 100) > 80);
if ((((_local6 < 5)) && (((Math.random() * 100) > 60)))){
_local8 = _tv609._ts1885((_tv609._fm845 + int((Math.random() * 2))), (_local9) ? 3 : 2);
} else {
_local8 = _tv609._ts1885((_tv609._vn912 + int((Math.random() * 3))), (_local9) ? 3 : 2);
};
_ti1053 = 4000;
};
};
_ek3451(_local8, _arg1, null);
return (true);
};
return (false);
}
public function _mu2099(_arg1:_ex557):void{
if (_gt3189()){
return;
};
_rd243 = _yl604;
_ya804 = 0;
_hv1987 = _arg1;
}
protected function _jy352(_arg1:uint):int{
if (_tv609._hy1205(_arg1)){
return (5);
};
if (_tv609._xe421(_arg1) == _tv609._ww915){
switch (_tv609._cy1922(_arg1)){
case _ks1885._cd1736:
return (8);
case _ks1885._ud1618:
case _ks1885._ka3350:
return (2);
case _ks1885._kq1981:
case _ks1885._rc1837:
return (3);
case _ks1885._ph675:
case _ks1885._ic2367:
return (3);
case _ks1885._oa2678:
case _ks1885._yd2351:
case _ks1885._mh3098:
case _ks1885._ph1453:
case _ks1885._tk3087:
return (4);
case _ks1885._vp431:
case _ks1885._ls1293:
case _ks1885._jw270:
return (2);
};
};
return (0);
}
override public function _os1868():String{
var _local1:String = super._os1868();
_local1 = (_local1 + "\n hlcommand:");
switch (_rd243){
case _hi2621:
_local1 = (_local1 + "enemycheck");
break;
case _yl604:
_local1 = (_local1 + "attacking");
break;
case _sc1239:
_local1 = (_local1 + "patrol");
break;
};
_local1 = (_local1 + (" failcnt:" + _yg247));
_local1 = (_local1 + ("\n uid:" + _bi401));
return (_local1);
}
protected function _gw2462():void{
var _local2:_ps2722;
var _local3:int;
var _local4:int;
var _local5:int;
var _local1:_ju1817 = _wf88._qf3320();
if (((_local1) && (_local1._lg1210(_hv1987)))){
_bm226();
return;
};
if (_yg247 > 5){
_yg247 = 2;
_bm226();
return;
};
if (_ki1510 == _iu1662._dt1188){
_local2 = _hv1987._fn629();
_local3 = 2;
_local4 = (_el3187.x - _local2.x);
_local5 = (_el3187.y - _local2.y);
if (Math.sqrt(((_local4 * _local4) + (_local5 * _local5))) < _local3){
if (_tv609._xe421(_el3187.itemType) == _tv609._cq3482){
_ek3451(_tv609._ts1885(_tv609._jn27), _hv1987, null);
} else {
_dn421(_hv1987);
};
} else {
if (!_vs2834(_hv1987)){
_en2838(_hv1987);
};
};
} else {
if (_ki1510 == _iu1662._mt82){
if ((Math.random() * 100) > 90){
_vs2834(_hv1987);
};
};
};
}
protected function _mo1788():void{
if (_ki1510 == _dt1188){
_bm226();
};
}
override public function _vb2548():void{
super._vb2548();
_ti1053 = (_ti1053 - _hu1349);
if (_ti1053 < 0){
_ti1053 = 0;
};
if (!_gt3189()){
switch (_rd243){
case _hi2621:
_mm2604();
break;
case _yl604:
_gw2462();
break;
case _sc1239:
_mo1788();
break;
};
};
}
protected function _mm2604():void{
var _local4:Array;
var _local5:Array;
var _local6:Boolean;
var _local7:int;
var _local8:_xv1434;
var _local9:_ps2722;
var _local10:int;
var _local11:int;
var _local12:Number;
var _local13:int;
var _local14:Object;
var _local15:int;
var _local16:int;
var _local17:Point;
var _local18:int;
_ya804--;
if (_ya804 > 0){
if (_tv609._xe421(_el3187.itemType) == _tv609._cq3482){
_fw398._tg184();
};
return;
};
var _local1:_ju1817 = _wf88._qf3320();
var _local2:int = _tv609._tp2616(_el3187.itemType);
if (_local1){
_local4 = _local1._pn2449();
_local5 = new Array();
_local6 = _tv609._fd2696(_el3187.itemType);
_local7 = 0;
while (_local7 < _local4.length) {
_local8 = _local4[_local7];
if (((_local8) && (!(_local8._qm436())))){
_local9 = _local8._fn629();
if (_tv609._iq3184(_el3187.itemType, _local9.itemType)){
_local10 = (_el3187.x - _local9.x);
_local11 = (_el3187.y - _local9.y);
_local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11)));
if (_local12 < _local2){
if (((_local6) || (((!(_local6)) && (!((_wf88._wl690(_local9.x, _local9.y) == (_ks1885._im873 - 1)))))))){
_local13 = (_jy352(_local9.itemType) * 100);
_local13 = (_local13 - _local12);
_local14 = new Object();
_local14.t = _local8._oi311();
_local14.x = _local13;
_local5.push(_local14);
};
};
};
};
_local7++;
};
if (_local5.length > 0){
_local15 = 0;
_local5.sortOn("x", (Array.NUMERIC | Array.DESCENDING));
if ((((_yg247 >= 2)) || (!(((_bi401 % 3) == 0))))){
_local15 = (((Math.random() * 40) / 100) * _local5.length);
};
if (_yg247 >= 2){
_ju2645();
_yg247 = 0;
};
_fm197._oj3099._ub2003(_tv609._vl2477(_el3187.itemType));
_local14 = _local5[_local15];
_mu2099(_local14.t);
return;
};
};
var _local3:Boolean;
if (_tv609._mw892(_el3187.itemType)){
if ((Math.random() * 10) > 8){
_local3 = true;
};
};
if (((_local3) && (_local1))){
_local16 = 20;
_local17 = _local1._rt540((_fw398._fn629().x + ((Math.random() * _local16) - (_local16 / 2))), (_fw398._fn629().y + ((Math.random() * _local16) - (_local16 / 2))), 3);
if (((!((_local17.x == 0))) && (!((_local17.y == 0))))){
_vt3133(_local17.x, _local17.y);
};
} else {
_local18 = _fw398._be2858();
if ((_fw398._fn629().x % 2) == 0){
_local18++;
} else {
_local18--;
};
if (_local18 < 0){
_local18 = 7;
};
_local18 = (_local18 % 8);
_fw398._dq2131(_local18, _ks1885._fj2767);
};
_bm226();
}
public function _bm226():void{
if (_gt3189()){
return;
};
_rd243 = _hi2621;
_ya804 = (20 * (1 + (Math.random() * 2.5)));
_hv1987 = null;
}
public function _vt3133(_arg1:int, _arg2:int):void{
if (_gt3189()){
return;
};
_rd243 = _sc1239;
_ya804 = 0;
_hv1987 = null;
_nw2754(_arg1, _arg2);
}
}
}//package ambiera
Section 525
//_vs1897 (ambiera._vs1897)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class _vs1897 {
public var _ok2588:Point;
public var _dx757:Number;
public var _fh3405:Number;
private var _sw3316:int;
public var _fu1480:Number;
public var _ta1432:int;
public var _os1996:Number;
public var _wx1489:int;
public var _sw841:int;
public var _fi107:Bitmap;
public var _po63:int;
public var _xm1857:int;
public var _bb3419:int;
private var parent:Sprite;// = null
private var particles:Array;
public var _mt489:int;
public var _is1448:Number;
public var _fj467:int;
public var _sb2007:Point;
public var _aa1294:Point;
private var _ld764:int;
public function _vs1897(_arg1:Sprite, _arg2:int=0){
parent = _arg1;
_ld764 = getTimer();
_sw3316 = _ld764;
particles = new Array();
_aa1294 = new Point(0, -1);
_ok2588 = new Point(0, 0);
_sb2007 = new Point(20, 5);
_po63 = 500;
_ta1432 = 1000;
_dx757 = 300;
_xm1857 = 30;
_sw841 = 10;
_bb3419 = 50;
_is1448 = 0.05;
_fh3405 = 0.1;
_fu1480 = 1;
_os1996 = 300;
_fj467 = 20;
_wx1489 = 0;
if (_arg2){
_mt489 = (_ld764 + _arg2);
} else {
_mt489 = 0;
};
_fi107 = null;
parent.addEventListener(Event.ENTER_FRAME, _jj1244);
}
public function _jj1244(_arg1:Event):void{
var _local4:Number;
var _local5:int;
var _local6:_of687;
var _local7:int;
var _local2:int = getTimer();
var _local3:int = (_local2 - _ld764);
if (_local3 > 0){
if (((_mt489) && ((_local2 > _mt489)))){
_mt489 = 0;
_mh2151();
return;
};
_ld764 = _local2;
if ((((((particles.length < _fj467)) && ((_local2 > _sw3316)))) && (!(((_mt489) && ((_local2 > (_mt489 - _os1996)))))))){
_rb3269();
};
_local4 = 100;
if (((_mt489) && ((_local2 > (_mt489 - _os1996))))){
_local4 = ((_mt489 - _local2) / _os1996);
};
_local5 = 0;
while (_local5 < particles.length) {
_local6 = (particles[_local5] as _of687);
(particles[_local5] as _of687).x = (_local6.x + (_local6._cd2564.x * _local3));
_local6.y = (_local6.y + (_local6._cd2564.y * _local3));
if (_wx1489 != 0){
_local6.rotation = (_local6.rotation + (_local3 / _wx1489));
};
if (_dx757){
_local7 = (_local6._br2964 - _local2);
if ((((_local7 >= 0)) && ((_local7 < _dx757)))){
_local6.alpha = (_local7 / _dx757);
if (_local6.alpha > _fu1480){
_local6.alpha = _fu1480;
};
};
};
if (_local4 < 1){
if (_local4 < _local6.alpha){
_local6.alpha = _local4;
};
};
if (_local6._br2964 < _local2){
particles.splice(_local5, 1);
parent.removeChild(_local6);
} else {
_local5++;
};
};
};
}
private function _rb3269():_of687{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local1:_of687 = new _of687();
var _local2:int = getTimer();
_local1._br2964 = (_local2 + ((Math.random() * (_ta1432 - _po63)) + _po63));
_local1.x = ((_ok2588.x + (Math.random() * _sb2007.x)) - (_sb2007.x / 2));
_local1.y = ((_ok2588.y + (Math.random() * _sb2007.y)) - (_sb2007.y / 2));
_sw3316 = (_local2 + ((Math.random() * (_bb3419 - _sw841)) + _sw841));
_local1._cd2564.x = _aa1294.x;
_local1._cd2564.y = _aa1294.y;
_local1._cd2564.normalize(((Math.random() * (_fh3405 - _is1448)) + _is1448));
if (_xm1857){
_local3 = ((((Math.random() * _xm1857) - (_xm1857 / 2)) * Math.PI) / 180);
_local4 = Math.cos(_local3);
_local5 = Math.sin(_local3);
_local6 = _local1._cd2564.x;
_local7 = _local1._cd2564.y;
_local1._cd2564.x = ((_local6 * _local4) - (_local7 * _local5));
_local1._cd2564.y = ((_local6 * _local5) + (_local7 * _local4));
};
_local1.alpha = _fu1480;
if (_fi107 != null){
_local1._ct774 = _fi107.bitmapData;
};
if (_wx1489 != 0){
_local1.rotation = (Math.random() * 360);
};
_local1._tg184();
particles.push(_local1);
parent.addChild(_local1);
return (_local1);
}
public function _mh2151():void{
var _local1:int;
var _local2:_of687;
if (parent){
parent.removeEventListener(Event.ENTER_FRAME, _jj1244);
_local1 = 0;
while (_local1 < particles.length) {
_local2 = (particles[_local1] as _of687);
parent.removeChild(_local2);
_local1++;
};
particles = null;
};
parent = null;
}
}
}//package ambiera
Section 526
//_xd3169 (ambiera._xd3169)
package ambiera {
public class _xd3169 {
public var _ap2180:Boolean;
public var _rm1940:String;
public var _ra3037:Array;
private var _fa3030:Boolean;
public var _lj2466:Array;
public var _ns3110:String;
public var _dt107:String;
public static var _oj3099:_xd3169;
public function _xd3169(){
_oj3099 = this;
_lj2466 = new Array();
_ra3037 = new Array();
_ns3110 = "";
_dt107 = "";
_rm1940 = "";
_ap2180 = _cr1330._xc1865;
_fa3030 = false;
}
public function _nu184(_arg1:int):_nm2373{
if (((((_ra3037) && ((_arg1 >= 0)))) && ((_arg1 < _ra3037.length)))){
return ((_ra3037[_arg1] as _nm2373));
};
return (null);
}
public function _lr2731(_arg1:_xk85):void{
if (((_lj2466) && (_arg1))){
_lj2466.push(_arg1);
};
}
public function _jx2572(_arg1:_nm2373):void{
var _local2:int;
var _local3:_nm2373;
if (_arg1){
_local2 = 0;
while (_local2 < _ra3037.length) {
_local3 = (_ra3037[_local2] as _nm2373);
if (((_local3) && ((_local3.getUID() == _arg1.getUID())))){
return;
};
_local2++;
};
_ra3037.push(_arg1);
};
}
public function _er2864():Boolean{
return (((((_fa3030) && (!((_rm1940 == ""))))) && (!((_ns3110 == "")))));
}
public function _an1998(_arg1:_xk85):Boolean{
var _local2:int;
while (_local2 < _lj2466.length) {
if (_lj2466[_local2] == _arg1){
_lj2466.splice(_local2, 1);
return (true);
};
_local2++;
};
return (false);
}
public function _ns1628():int{
if (_lj2466){
return (_lj2466.length);
};
return (0);
}
public function _di3072(_arg1:Boolean):void{
_fa3030 = _arg1;
}
public function _sr2860(_arg1:int):void{
var _local3:_nm2373;
var _local2:int;
while (_local2 < _ra3037.length) {
_local3 = (_ra3037[_local2] as _nm2373);
if (((_local3) && ((_local3.getUID() == _arg1)))){
_ra3037.splice(_local2, 1);
return;
};
_local2++;
};
}
public function _rn1757():String{
return (_ns3110);
}
public function _rf417():String{
return (_al3481(_ns3110));
}
public function _xg3285(_arg1:_xk85):Boolean{
var _local2:int;
while (_local2 < _lj2466.length) {
if (_lj2466[_local2] == _arg1){
return (true);
};
_local2++;
};
return (false);
}
public function _cg2098(_arg1:_nm2373):void{
var _local2:int;
var _local3:_nm2373;
if (_arg1){
_local2 = 0;
while (_local2 < _ra3037.length) {
_local3 = (_ra3037[_local2] as _nm2373);
if (((_local3) && ((_local3.getUID() == _arg1.getUID())))){
_ra3037[_local2] = _arg1;
return;
};
_local2++;
};
};
}
public function _pc1562(_arg1:int):_xk85{
if (((((_lj2466) && ((_arg1 >= 0)))) && ((_arg1 < _lj2466.length)))){
return ((_lj2466[_arg1] as _xk85));
};
return (null);
}
public function _gm1608():int{
if (_ra3037){
return (_ra3037.length);
};
return (0);
}
public function _tw3037():int{
var _local3:_xk85;
if (!_lj2466){
return (0);
};
var _local1:int;
var _local2:int;
while (_local2 < _lj2466.length) {
_local3 = (_lj2466[_local2] as _xk85);
if (_local3){
if (_local1 < _local3._mo779()){
_local1 = _local3._mo779();
};
};
_local2++;
};
return (_local1);
}
public function _xr1720(_arg1:int):_nm2373{
var _local3:_nm2373;
var _local2:int;
while (_local2 < _ra3037.length) {
_local3 = (_ra3037[_local2] as _nm2373);
if (((_local3) && ((_local3.getUID() == _arg1)))){
return (_local3);
};
_local2++;
};
return (null);
}
public static function _al3481(_arg1:String):String{
var _local2 = (_arg1 + "irrl#!$");
return (_he2800._ls1111(_local2));
}
}
}//package ambiera
Section 527
//_xk85 (ambiera._xk85)
package ambiera {
import flash.utils.*;
public class _xk85 {
private var _lh268:int;
private var _vy442:String;
private var _jx1596:uint;
private var _mg314:int;
private var _hx3081:int;
private var _oq1599:int;
private var _dm16:int;
private var _vr1294:Array;
public var _mj1064:uint;
private var _ed2908:Array;
private var _be3159:int;
private var _fn2585:Boolean;
private var _sp468:Array;
public static const _vn349:int = 4;
public static const _cx34:uint = 30;
public static const _dk3046:uint = 2;
public static const _cm1252:int = 10;
public static const _ln3428:int = 3;
public static const _dl2335:int = ((_yl1063 + _wv598) - 1);
public static const _gu2785:int = ((_kt1560 + _bb3258) - 1);
public static const _jm741:int = 1;
public static const _yl1063:int = 5;
public static const _wv598:int = 40;
public static const _qu846:int = 0;
public static const _xa819:uint = 0;
public static const _jg2863:uint = 1;
public static const _bb3258:int = 15;
public static const _am792:uint = 127;
public static const _kt1560:int = (_dl2335 + 1);
public static const _yd114:int = 3;
public static const _mu2397:uint = 1;
public static const _dl1835:int = 2;
public static const _vb958:int = ((_yl1063 + _wv598) + _bb3258);
public static const _sw2759:uint = 0;
public static const _tt347:int = 5;
public static const _nl2297:int = 4;
public static const _og1076:uint = 3;
public function _xk85(){
_fn2585 = false;
_oq1599 = 0;
_lh268 = -1;
_dm16 = (_cr1330._bj428) ? _tv609._qj2375 : _ks1885._pw2323;
_hx3081 = 70;
_jx1596 = 0;
_be3159 = 1;
_vy442 = _hy2528._hr1166;
_mg314 = 0;
_sp468 = new Array();
var _local1:int;
while (_local1 < _vb958) {
_sp468.push(0);
_local1++;
};
_ed2908 = new Array();
var _local2:int;
while (_local2 < _am792) {
_ed2908.push(_xa819);
_local2++;
};
_vr1294 = new Array();
var _local3:int;
while (_local3 < _tv609._kp773) {
_vr1294.push(0);
_local3++;
};
_vr1294[_tv609._hi3134] = 20;
_vr1294[_tv609._pj1857] = 10;
_vr1294[_tv609._st1439] = 2;
_vr1294[_tv609._px1395] = 2;
_vr1294[_tv609._ja535] = 1;
_vr1294[_tv609._mi1257] = 1;
_vr1294[_tv609._lq738] = 1;
_vr1294[_tv609._kj1870] = 1;
_vr1294[_tv609._yd1003] = 1;
_vr1294[_tv609._bm1871] = 1;
}
public function getName():String{
return (_vy442);
}
public function _uo1318():int{
var _local3:uint;
var _local1:uint = _sp468[_jm741];
var _local2:int;
if (_local1){
_local3 = _tv609._lr3188(_local1);
if ((_local3 & _tv609._ta1504)){
_local2 = (_local2 | _tv609._vx2298);
};
if ((_local3 & _tv609._nw1163)){
_local2 = (_local2 | _tv609._md25);
};
if ((_local3 & _tv609._xf2650)){
_local2 = (_local2 | _tv609._hc397);
};
};
return (_local2);
}
public function _hs2250():Boolean{
return (_fn2585);
}
public function _yd30():uint{
var _local1:uint = _sp468[_jm741];
return (_local1);
}
public function _gs545(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < _cx34)))){
_mj1064 = (_mj1064 | (1 << _arg1));
};
}
public function _qf966(_arg1:int, _arg2:int):void{
if ((((_arg1 > 0)) && ((_arg1 < _am792)))){
if (_ed2908[(_arg1 - 1)] != _arg2){
_fn2585 = true;
};
_ed2908[(_arg1 - 1)] = _arg2;
};
}
public function setName(_arg1:String):void{
if (_arg1 != _vy442){
_fn2585 = true;
};
_vy442 = _arg1;
}
public function _tu3100(_arg1:int):void{
if (_arg1 != 0){
_fn2585 = true;
};
var _local2:int = _hx3081;
_hx3081 = (_hx3081 + _arg1);
if (_hx3081 < 0){
_hx3081 = 0;
};
if ((((_arg1 > 0)) && ((_hx3081 < _local2)))){
_hx3081 = int.MAX_VALUE;
};
}
private function _my169(_arg1:int):void{
if (_vr1294[_arg1] < 1){
_vr1294[_arg1] = (1 + (_be3159 / 3));
};
}
public function _xq320(_arg1:Boolean=false):int{
return (_cy1309(_tv609._hi3134, _arg1));
}
public function _gc424(_arg1:int):uint{
if ((((_arg1 >= 0)) && ((_arg1 < _vb958)))){
return (_sp468[_arg1]);
};
return (0);
}
public function _ai292():int{
return (_jx1596);
}
public function _xc2990(_arg1:Boolean):void{
_fn2585 = _arg1;
}
public function _op3085():int{
var _local1:uint = _sp468[_jm741];
if (_local1){
return (_tv609._df3211(_local1));
};
return (1);
}
public function _yi2782(_arg1:Boolean=false):int{
return (_cy1309(_tv609._pj1857, _arg1));
}
public function _ek1528(_arg1:int):void{
if (_arg1 != _oq1599){
_fn2585 = true;
};
_oq1599 = _arg1;
}
public function _ri887():int{
return (_oq1599);
}
public function _qo350():int{
var _local1:int = (_hx3081 % 99);
var _local2:int = (_jx1596 % 99);
return (((_local1 + _local2) % 66));
}
public function _le2192():int{
return (_dm16);
}
public function _cv3244(_arg1:String):void{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:uint;
if (!_arg1){
_ni2054.print("error loading charData: not a string.");
return;
};
var _local2:ByteArray = _ai258.decode(_arg1);
if (_local2.readByte() != 1){
_ni2054.print("error loading charData: not version 1");
return;
};
_mj1064 = _local2.readUnsignedInt();
var _local3:int;
while (_local3 < _tv609._kp773) {
_vr1294[_local3] = _local2.readByte();
_local3++;
};
var _local4:int;
while (_local4 < 32) {
_local7 = _local2.readByte();
_local8 = 0;
while (_local8 < 4) {
_local9 = 0;
_local10 = ((_local4 * 4) + _local8);
_local9 = (_local7 & (3 << (_local8 * 2)));
_local9 = (_local9 >> (_local8 * 2));
if ((((_local10 >= 0)) && ((_local10 < _ed2908.length)))){
_ed2908[_local10] = _local9;
};
_local8++;
};
_local4++;
};
var _local5:int = _local2.readByte();
_local6 = 0;
while (_local6 < _vb958) {
_sp468[_local6] = 0;
_local6++;
};
_local6 = 0;
while (_local6 < _local5) {
_local11 = _local2.readByte();
_local12 = _local2.readUnsignedInt();
if ((((_local11 >= 0)) && ((_local11 < _vb958)))){
_sp468[_local11] = _local12;
};
_local6++;
};
_uv1536();
}
public function _qv827(_arg1:int):void{
var _local2:uint = _jx1596;
if (_arg1 != 0){
_fn2585 = true;
};
_jx1596 = (_jx1596 + _arg1);
if ((((_arg1 > 0)) && ((_jx1596 < _local2)))){
_jx1596 = uint.MAX_VALUE;
} else {
if ((((_arg1 < 0)) && ((_jx1596 > _local2)))){
_jx1596 = 0;
};
};
}
public function _pc3318(_arg1:int):void{
if (_hx3081 != _arg1){
_fn2585 = true;
};
_hx3081 = _arg1;
if (_hx3081 < 0){
_hx3081 = 0;
};
}
public function _cy1309(_arg1:int, _arg2:Boolean):int{
var _local4:int;
var _local5:uint;
var _local6:uint;
var _local3:int;
if ((((_arg1 >= 0)) && ((_arg1 < _tv609._kp773)))){
_local3 = _vr1294[_arg1];
};
if (_arg2){
_local4 = 0;
while (_local4 < _yl1063) {
_local5 = _sp468[_local4];
if (_local5){
_local6 = _tv609._lr3188(_local5);
if ((_local6 & (1 << _arg1))){
_local3 = (_local3 + _tv609._gx335(_arg1, _tv609._cy1922(_local5)));
};
};
_local4++;
};
};
return (_local3);
}
public function _es641():int{
return (_lh268);
}
private function _uv1536():void{
if (_be3159 < 1){
_be3159 = 1;
};
if (_vr1294[_tv609._hi3134] < 20){
if ((((_be3159 > 26)) && ((_vr1294[_tv609._hi3134] == -128)))){
_vr1294[_tv609._hi3134] = 127;
} else {
_vr1294[_tv609._hi3134] = (20 + _be3159);
};
};
if (_vr1294[_tv609._pj1857] < 10){
_vr1294[_tv609._pj1857] = (10 + _be3159);
};
if (_vr1294[_tv609._st1439] < 2){
_vr1294[_tv609._st1439] = (2 + (_be3159 / 2));
};
if (_vr1294[_tv609._px1395] < 2){
_vr1294[_tv609._px1395] = (2 + (_be3159 / 2));
};
_my169(_tv609._ja535);
_my169(_tv609._mi1257);
_my169(_tv609._lq738);
_my169(_tv609._kj1870);
_my169(_tv609._yd1003);
_my169(_tv609._bm1871);
}
public function _ix2542():int{
return (_hx3081);
}
public function _ow1799(_arg1:int, _arg2:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < _tv609._kp773)))){
if (_arg2 != 0){
_fn2585 = true;
};
_vr1294[_arg1] = _arg2;
if (_vr1294[_arg1] > 127){
_vr1294[_arg1] = 127;
};
};
}
public function _xo2166(_arg1:int):void{
if (_jx1596 != _arg1){
_fn2585 = true;
};
_jx1596 = _arg1;
}
public function _nf2300():String{
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local1:ByteArray = new ByteArray();
_local1.writeByte(1);
_local1.writeUnsignedInt(_mj1064);
var _local2:int;
while (_local2 < _tv609._kp773) {
_local1.writeByte(_vr1294[_local2]);
_local2++;
};
var _local3:int;
while (_local3 < 32) {
_local6 = 0;
_local7 = 0;
while (_local7 < 4) {
_local8 = 0;
_local9 = ((_local3 * 4) + _local7);
if ((((_local9 >= 0)) && ((_local9 < _ed2908.length)))){
_local8 = _ed2908[_local9];
};
_local6 = (_local6 | ((_local8 & 3) << (_local7 * 2)));
_local7++;
};
_local1.writeByte(_local6);
_local3++;
};
var _local4:int;
_local5 = 0;
while (_local5 < _vb958) {
if (_sp468[_local5] != 0){
_local4++;
};
_local5++;
};
_local1.writeByte(_local4);
_local5 = 0;
while (_local5 < _vb958) {
if (_sp468[_local5] != 0){
_local1.writeByte(_local5);
_local1.writeUnsignedInt(_sp468[_local5]);
};
_local5++;
};
return (_ai258.encode(_local1));
}
public function _pa182():int{
return (_mg314);
}
public function _rg287(_arg1:int):void{
if (_arg1 != _lh268){
_fn2585 = true;
};
_lh268 = _arg1;
}
public function _if1868(_arg1:int):void{
_mg314 = _arg1;
}
public function _nn2548(_arg1:int):int{
var _local5:uint;
var _local6:uint;
var _local2:int;
var _local3:int;
if ((_arg1 & _tv609._vx2298)){
_local3 = _tv609._kg1898;
};
if ((_arg1 & _tv609._hc397)){
_local3 = _tv609._jy2228;
};
if ((_arg1 & _tv609._md25)){
_local3 = _tv609._na1975;
};
if (!_local3){
return (0);
};
var _local4:int;
while (_local4 < _yl1063) {
_local5 = _sp468[_local4];
if (_local5){
_local6 = _tv609._lr3188(_local5);
if ((_local6 & (1 << _local3))){
_local2 = (_local2 + _tv609._gx335(_local3, _tv609._cy1922(_local5)));
};
};
_local4++;
};
return (_local2);
}
public function _rt2504(_arg1:int, _arg2:uint):void{
if ((((_arg1 >= 0)) && ((_arg1 < _vb958)))){
if (_sp468[_arg1] != _arg2){
_fn2585 = true;
};
_sp468[_arg1] = _arg2;
};
}
public function _sx1887(_arg1:Boolean=false):int{
return (_cy1309(_tv609._px1395, _arg1));
}
public function _fd218(_arg1:int):int{
if ((((_arg1 > 0)) && ((_arg1 < _am792)))){
return (_ed2908[(_arg1 - 1)]);
};
return (_xa819);
}
public function _ga787():int{
var _local1:int;
var _local2:uint = _sp468[_dl1835];
if (_local2){
_local1 = _tv609._ml2220(_local2);
};
_local2 = _sp468[_qu846];
if (_local2){
_local1 = (_local1 + _tv609._ml2220(_local2));
};
return (_local1);
}
public function _wu2858(_arg1:int):void{
if (_arg1 != _dm16){
_fn2585 = true;
};
_dm16 = _arg1;
}
public function _wy1447(_arg1:int):int{
if ((((_arg1 >= 0)) && ((_arg1 < _cx34)))){
if ((_mj1064 & (1 << _arg1))){
return (_mu2397);
};
};
return (_sw2759);
}
public function _yp1275():int{
return (_tv609._jg1668(_jx1596));
}
public function _mo779():int{
return (_be3159);
}
public function _ni1660(_arg1:Boolean=false):int{
return (_cy1309(_tv609._st1439, _arg1));
}
public function _ff649(_arg1:int):void{
if (_be3159 != _arg1){
_fn2585 = true;
};
_be3159 = _arg1;
}
public function _jc578(_arg1:int, _arg2:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < _tv609._kp773)))){
if (_arg2 != 0){
_fn2585 = true;
};
_vr1294[_arg1] = (_vr1294[_arg1] + _arg2);
if (_vr1294[_arg1] > 127){
_vr1294[_arg1] = 127;
};
};
}
}
}//package ambiera
Section 528
//_xr2882 (ambiera._xr2882)
package ambiera {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class _xr2882 {
public var _dx757:Number;
public var _os1996:Number;
public var _fu1480:Number;
public var _ro3094:Number;
public var _oh3002:int;
public var _ot2018:Number;
private var parent:Sprite;// = null
private var text:TextField;
public var _mt489:int;
public var _jv528:Number;
public var _br2964:int;
private var _ld764:int;
public function _xr2882(_arg1:Sprite, _arg2:String, _arg3:int=0){
parent = _arg1;
_ld764 = getTimer();
_oh3002 = 500;
_dx757 = 300;
_ot2018 = 0.1;
_fu1480 = 1;
_os1996 = 300;
_ro3094 = 0;
_jv528 = -0.01;
if (_arg3){
_mt489 = (_ld764 + _arg3);
} else {
_mt489 = 0;
};
text = _ks1885._nd1190(true, true);
text.textColor = _ks1885._nb1049;
text.text = _arg2;
text.blendMode = BlendMode.LAYER;
var _local4:int = getTimer();
_br2964 = (_ld764 + _oh3002);
}
public function _jj1244(_arg1:Event):void{
var _local4:Number;
var _local2:int = getTimer();
var _local3:int = (_local2 - _ld764);
if (_local3 > 0){
if (((_mt489) && ((_local2 > _mt489)))){
_mt489 = 0;
_mh2151();
return;
};
_ld764 = _local2;
_local4 = 100;
if (((_mt489) && ((_local2 > (_mt489 - _os1996))))){
_local4 = ((_mt489 - _local2) / _os1996);
};
text.x = (text.x + (_ro3094 * _local3));
text.y = (text.y + (_jv528 * _local3));
if (_local4 < 1){
if (_local4 < text.alpha){
text.alpha = _local4;
};
};
};
}
public function _je1740():void{
if (((text) && (parent))){
text.x = (text.x + (text.width / 2));
text.y = (text.y - 20);
parent.addChild(text);
parent.addEventListener(Event.ENTER_FRAME, _jj1244);
};
}
public function _mh2151():void{
if (parent){
parent.removeEventListener(Event.ENTER_FRAME, _jj1244);
parent.removeChild(text);
};
parent = null;
}
}
}//package ambiera
Section 529
//_xv1434 (ambiera._xv1434)
package ambiera {
import flash.geom.*;
public class _xv1434 {
protected var _fw398:_ex557;
protected var _el3187:_ps2722;
protected var _wf88:_gm2472;
public function _xv1434(_arg1:_ex557, _arg2:_ps2722, _arg3:_gm2472){
_wf88 = _arg3;
_el3187 = _arg2;
_fw398 = _arg1;
}
public function _ac1551(_arg1:uint):int{
var _local2:uint = _tv609._nn1505(_el3187.itemType);
var _local3:int = _tv609._aj2495(_el3187.itemType);
if ((_arg1 & _tv609._vx2298)){
if ((_local2 & _tv609._pc2955)){
return ((_local3 * 2));
};
return (0);
};
if ((_arg1 & _tv609._md25)){
if ((_local2 & _tv609._qh805)){
return ((_local3 * 2));
};
return (0);
};
if ((_arg1 & _tv609._hc397)){
if ((_local2 & _tv609._fo523)){
return ((_local3 * 2));
};
return (0);
};
return (_local3);
}
public function _os1868():String{
return ("");
}
protected function _ck1797(_arg1:_ex557, _arg2:Boolean=false):Boolean{
var _local11:Number;
var _local12:Number;
var _local3:_ce283 = _wf88._kr1759();
var _local4:_ps2722 = _arg1._fn629();
var _local5:Number = (_local4.x - _el3187.x);
var _local6:Number = (_local4.y - _el3187.y);
var _local7:Number = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
var _local8:Number = _el3187.x;
var _local9:Number = _el3187.y;
if (_local7 < 0.1){
return (true);
};
if (_local7 > 22){
return (false);
};
_local5 = (_local5 / _local7);
_local6 = (_local6 / _local7);
var _local10:int;
while (true) {
_local8 = (_local8 + _local5);
_local9 = (_local9 + _local6);
if (((!(_arg2)) || (((_arg2) && ((_local10 > 1)))))){
if (((_local3._cb622(_local8, _local9)) || (!(_local3._ic1388(_local8, _local9))))){
return (false);
};
};
_local11 = (_local8 - _local4.x);
_local12 = (_local9 - _local4.y);
if (Math.sqrt(((_local11 * _local11) + (_local12 * _local12))) < 2){
break;
};
_local10++;
};
return (true);
}
public function _cg411():Number{
return (0);
}
public function _vb2548():void{
}
public function _an2934(_arg1:_ex557, _arg2:Number, _arg3:uint):Boolean{
return (false);
}
public function _fn629():_ps2722{
return (_el3187);
}
public function _xq320():int{
return (0);
}
public function _oi311():_ex557{
return (_fw398);
}
public function _tt2031():Point{
if (_fw398){
return (_mv3197(_fw398));
};
return (new Point(0, 0));
}
public function _qm436():Boolean{
return (false);
}
protected function _mv3197(_arg1:_ex557):Point{
var _local2:Point = _arg1._xc1677();
var _local3:_ps2722 = _arg1._fn629();
var _local4:int = _wf88._rw1773(_local3.x, _local3.y);
var _local5:int = _wf88._ou1013(_local3.x, _local3.y);
return (new Point((_local4 + _local2.x), (_local5 + _local2.y)));
}
}
}//package ambiera
Section 530
//_yn3144 (ambiera._yn3144)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class _yn3144 extends UIComponent {
public static const _vo3058:int = 100;
public static const _wd2658:int = 318;
public function _yn3144(_arg1:DisplayObjectContainer=null, _arg2:int=0, _arg3:int=100){
if (_arg1){
_arg1.addChild(this);
};
if (_arg2 == 0){
width = _wd2658;
} else {
width = _arg2;
};
height = _arg3;
y = ((_arg1.height - height) + 13);
_fr2300();
}
private function _fr2300():void{
var _local1:Graphics = graphics;
var _local2:Bitmap = _ks1885._oj3099._na1609;
_local1.beginFill(15259841);
graphics.drawRect(0, _local2.height, width, (height - (_local2.height * 2)));
_local1.endFill();
graphics.beginBitmapFill(_local2.bitmapData);
graphics.drawRect(0, 0, width, _local2.height);
graphics.endFill();
var _local3:Matrix = new Matrix();
_local3.a = -1;
_local3.d = -1;
_local3.ty = (height - _local2.height);
graphics.beginBitmapFill(_local2.bitmapData, _local3);
graphics.drawRect(0, (height - _local2.height), width, _local2.height);
graphics.endFill();
}
private function _cm3120(_arg1:Event):void{
visible = false;
_kn2227();
}
protected function _kn2227():void{
}
}
}//package ambiera
Section 531
//AmbieraCanvas (ambiera.AmbieraCanvas)
package ambiera {
import mx.core.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class AmbieraCanvas extends UIComponent {
private var _ll3149:_rt2598;
private var resources:_ks1885;
private var _rr1503:_xd3169;
private var _wf88:_gm2472;
private var sound:_fm197;
private var _et2781:Timer;
private function _qb3092(_arg1:ContextMenuEvent):void{
var _local2:URLRequest = new URLRequest("http://www.ambiera.com");
navigateToURL(_local2, "_blank");
}
public function init():void{
_ni2054.print("ambiera canvas init begin");
try {
_eo2841();
_rr1503 = new _xd3169();
resources = new _ks1885();
sound = new _fm197();
_wf88 = new _gm2472(resources);
addChild(_wf88);
if (_cr1330._ar689){
new _qj279(this);
};
_ll3149 = new _rt2598(this);
if (_cr1330._tq934){
new _ig1593(this, _wf88);
} else {
new _qy2760(this, _wf88);
};
} catch(err:Error) {
_ni2054._ev1283(err);
};
_ni2054.print("ambiera canvas init end");
}
private function _eo2841():void{
var _local1:ContextMenu = new ContextMenu();
_local1.hideBuiltInItems();
var _local2:ContextMenuItem = new ContextMenuItem("Darkness Springs");
_local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, _wu2345);
_local1.customItems.push(_local2);
_local2 = new ContextMenuItem("© 2007-2008 Ambiera");
_local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, _qb3092);
_local1.customItems.push(_local2);
this.contextMenu = _local1;
}
private function _wu2345(_arg1:ContextMenuEvent):void{
var _local2:URLRequest = new URLRequest("http://www.darkness-springs.eu");
navigateToURL(_local2, "_blank");
}
}
}//package ambiera
Section 532
//IAutomationObject (mx.automation.IAutomationObject)
package mx.automation {
import flash.events.*;
public interface IAutomationObject {
function createAutomationIDPart(_arg1:IAutomationObject):Object;
function get automationName():String;
function get showInAutomationHierarchy():Boolean;
function set automationName(_arg1:String):void;
function getAutomationChildAt(_arg1:int):IAutomationObject;
function get automationDelegate():Object;
function get automationTabularData():Object;
function resolveAutomationIDPart(_arg1:Object):Array;
function replayAutomatableEvent(_arg1:Event):Boolean;
function set automationDelegate(_arg1:Object):void;
function get automationValue():Array;
function get numAutomationChildren():int;
function set showInAutomationHierarchy(_arg1:Boolean):void;
}
}//package mx.automation
Section 533
//Binding (mx.binding.Binding)
package mx.binding {
import mx.collections.errors.*;
public class Binding {
mx_internal var destFunc:Function;
mx_internal var srcFunc:Function;
mx_internal var destString:String;
mx_internal var document:Object;
private var hasHadValue:Boolean;
mx_internal var isExecuting:Boolean;
mx_internal var isHandlingEvent:Boolean;
public var twoWayCounterpart:Binding;
mx_internal var isEnabled:Boolean;
public var uiComponentWatcher:int;
private var lastValue:Object;
private var wrappedFunctionSuccessful:Boolean;
mx_internal static const VERSION:String = "3.0.0.0";
public function Binding(_arg1:Object, _arg2:Function, _arg3:Function, _arg4:String){
this.document = _arg1;
this.srcFunc = _arg2;
this.destFunc = _arg3;
this.destString = _arg4;
isEnabled = true;
isExecuting = false;
isHandlingEvent = false;
hasHadValue = false;
uiComponentWatcher = -1;
BindingManager.addBinding(_arg1, _arg4, this);
}
protected function wrapFunctionCall(_arg1:Object, _arg2:Function, _arg3:Object=null, ... _args):Object{
var result:Object;
var thisArg = _arg1;
var wrappedFunction = _arg2;
var object = _arg3;
var args = _args;
wrappedFunctionSuccessful = false;
try {
result = wrappedFunction.apply(thisArg, args);
wrappedFunctionSuccessful = true;
return (result);
} catch(itemPendingError:ItemPendingError) {
itemPendingError.addResponder(new EvalBindingResponder(this, object));
if (BindingManager.debugDestinationStrings[destString]){
trace(((("Binding: destString = " + destString) + ", error = ") + itemPendingError));
};
} catch(rangeError:RangeError) {
if (BindingManager.debugDestinationStrings[destString]){
trace(((("Binding: destString = " + destString) + ", error = ") + rangeError));
};
} catch(error:Error) {
if (((((((((!((error.errorID == 1006))) && (!((error.errorID == 1009))))) && (!((error.errorID == 1010))))) && (!((error.errorID == 1055))))) && (!((error.errorID == 1069))))){
throw (error);
} else {
if (BindingManager.debugDestinationStrings[destString]){
trace(((("Binding: destString = " + destString) + ", error = ") + error));
};
};
};
return (null);
}
private function nodeSeqEqual(_arg1:XMLList, _arg2:XMLList):Boolean{
var _local4:uint;
var _local3:uint = _arg1.length();
if (_local3 == _arg2.length()){
_local4 = 0;
while ((((_local4 < _local3)) && ((_arg1[_local4] === _arg2[_local4])))) {
_local4++;
};
return ((_local4 == _local3));
//unresolved jump
};
return (false);
}
public function watcherFired(_arg1:Boolean, _arg2:int):void{
var commitEvent = _arg1;
var cloneIndex = _arg2;
if (isHandlingEvent){
return;
};
try {
isHandlingEvent = true;
execute(cloneIndex);
} finally {
isHandlingEvent = false;
};
}
public function execute(_arg1:Object=null):void{
var o = _arg1;
if (!isEnabled){
return;
};
if (((isExecuting) || (((twoWayCounterpart) && (twoWayCounterpart.isExecuting))))){
hasHadValue = true;
return;
};
try {
isExecuting = true;
wrapFunctionCall(this, innerExecute, o);
} finally {
isExecuting = false;
};
}
private function innerExecute():void{
var _local1:Object = wrapFunctionCall(document, srcFunc);
if (BindingManager.debugDestinationStrings[destString]){
trace(((("Binding: destString = " + destString) + ", srcFunc result = ") + _local1));
};
if (((hasHadValue) || (wrappedFunctionSuccessful))){
if (((!((((((lastValue is XML)) && (lastValue.hasComplexContent()))) && ((lastValue === _local1))))) && (!((((((((lastValue is XMLList)) && (lastValue.hasComplexContent()))) && ((_local1 is XMLList)))) && (nodeSeqEqual((lastValue as XMLList), (_local1 as XMLList)))))))){
destFunc.call(document, _local1);
lastValue = _local1;
hasHadValue = true;
};
};
}
}
}//package mx.binding
Section 534
//BindingManager (mx.binding.BindingManager)
package mx.binding {
public class BindingManager {
mx_internal static const VERSION:String = "3.0.0.0";
static var debugDestinationStrings:Object = {};
public static function executeBindings(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:String;
if (((!(_arg2)) || ((_arg2 == "")))){
return;
};
if (((((((_arg1) && ((((_arg1 is IBindingClient)) || (_arg1.hasOwnProperty("_bindingsByDestination")))))) && (_arg1._bindingsByDestination))) && (_arg1._bindingsBeginWithWord[getFirstWord(_arg2)]))){
for (_local4 in _arg1._bindingsByDestination) {
if (_local4.charAt(0) == _arg2.charAt(0)){
if ((((((_local4.indexOf((_arg2 + ".")) == 0)) || ((_local4.indexOf((_arg2 + "[")) == 0)))) || ((_local4 == _arg2)))){
_arg1._bindingsByDestination[_local4].execute(_arg3);
};
};
};
};
}
public static function addBinding(_arg1:Object, _arg2:String, _arg3:Binding):void{
if (!_arg1._bindingsByDestination){
_arg1._bindingsByDestination = {};
_arg1._bindingsBeginWithWord = {};
};
_arg1._bindingsByDestination[_arg2] = _arg3;
_arg1._bindingsBeginWithWord[getFirstWord(_arg2)] = true;
}
public static function debugBinding(_arg1:String):void{
debugDestinationStrings[_arg1] = true;
}
private static function getFirstWord(_arg1:String):String{
var _local2:int = _arg1.indexOf(".");
var _local3:int = _arg1.indexOf("[");
if (_local2 == _local3){
return (_arg1);
};
var _local4:int = Math.min(_local2, _local3);
if (_local4 == -1){
_local4 = Math.max(_local2, _local3);
};
return (_arg1.substr(0, _local4));
}
public static function setEnabled(_arg1:Object, _arg2:Boolean):void{
var _local3:Array;
var _local4:uint;
var _local5:Binding;
if ((((_arg1 is IBindingClient)) && (_arg1._bindings))){
_local3 = (_arg1._bindings as Array);
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = _local3[_local4];
_local5.isEnabled = _arg2;
_local4++;
};
};
}
}
}//package mx.binding
Section 535
//EvalBindingResponder (mx.binding.EvalBindingResponder)
package mx.binding {
import mx.rpc.*;
public class EvalBindingResponder implements IResponder {
private var binding:Binding;
private var object:Object;
mx_internal static const VERSION:String = "3.0.0.0";
public function EvalBindingResponder(_arg1:Binding, _arg2:Object){
this.binding = _arg1;
this.object = _arg2;
}
public function fault(_arg1:Object):void{
}
public function result(_arg1:Object):void{
binding.execute(object);
}
}
}//package mx.binding
Section 536
//IBindingClient (mx.binding.IBindingClient)
package mx.binding {
public interface IBindingClient {
}
}//package mx.binding
Section 537
//ItemPendingError (mx.collections.errors.ItemPendingError)
package mx.collections.errors {
import mx.rpc.*;
public class ItemPendingError extends Error {
private var _responders:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function ItemPendingError(_arg1:String){
super(_arg1);
}
public function get responders():Array{
return (_responders);
}
public function addResponder(_arg1:IResponder):void{
if (!_responders){
_responders = [];
};
_responders.push(_arg1);
}
}
}//package mx.collections.errors
Section 538
//ConstraintError (mx.containers.errors.ConstraintError)
package mx.containers.errors {
public class ConstraintError extends Error {
mx_internal static const VERSION:String = "3.0.0.0";
public function ConstraintError(_arg1:String){
super(_arg1);
}
}
}//package mx.containers.errors
Section 539
//ApplicationLayout (mx.containers.utilityClasses.ApplicationLayout)
package mx.containers.utilityClasses {
import mx.core.*;
public class ApplicationLayout extends BoxLayout {
mx_internal static const VERSION:String = "3.0.0.0";
override public function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:IFlexDisplayObject;
super.updateDisplayList(_arg1, _arg2);
var _local3:Container = super.target;
if (((((_local3.horizontalScrollBar) && ((getHorizontalAlignValue() > 0)))) || (((_local3.verticalScrollBar) && ((getVerticalAlignValue() > 0)))))){
_local4 = _local3.getStyle("paddingLeft");
_local5 = _local3.getStyle("paddingTop");
_local6 = 0;
_local7 = 0;
_local8 = _local3.numChildren;
_local9 = 0;
while (_local9 < _local8) {
_local10 = IFlexDisplayObject(_local3.getChildAt(_local9));
if (_local10.x < _local4){
_local6 = Math.max(_local6, (_local4 - _local10.x));
};
if (_local10.y < _local5){
_local7 = Math.max(_local7, (_local5 - _local10.y));
};
_local9++;
};
if (((!((_local6 == 0))) || (!((_local7 == 0))))){
_local9 = 0;
while (_local9 < _local8) {
_local10 = IFlexDisplayObject(_local3.getChildAt(_local9));
IFlexDisplayObject(_local3.getChildAt(_local9)).move((_local10.x + _local6), (_local10.y + _local7));
_local9++;
};
};
};
}
}
}//package mx.containers.utilityClasses
Section 540
//BoxLayout (mx.containers.utilityClasses.BoxLayout)
package mx.containers.utilityClasses {
import mx.core.*;
import mx.controls.scrollClasses.*;
import mx.containers.*;
public class BoxLayout extends Layout {
public var direction:String;// = "vertical"
mx_internal static const VERSION:String = "3.0.0.0";
private function isVertical():Boolean{
return (!((direction == BoxDirection.HORIZONTAL)));
}
mx_internal function getHorizontalAlignValue():Number{
var _local1:String = target.getStyle("horizontalAlign");
if (_local1 == "center"){
return (0.5);
};
if (_local1 == "right"){
return (1);
};
return (0);
}
override public function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local16:Number;
var _local17:int;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:int;
var _local22:IUIComponent;
var _local23:IUIComponent;
var _local24:Number;
var _local25:Number;
var _local26:Number;
var _local27:Number;
var _local3:Container = super.target;
var _local4:int = _local3.numChildren;
if (_local4 == 0){
return;
};
var _local5:EdgeMetrics = _local3.viewMetricsAndPadding;
var _local6:Number = _local3.getStyle("paddingLeft");
var _local7:Number = _local3.getStyle("paddingTop");
var _local8:Number = getHorizontalAlignValue();
var _local9:Number = getVerticalAlignValue();
var _local10:Number = ((((_local3.scaleX > 0)) && (!((_local3.scaleX == 1))))) ? (_local3.minWidth / Math.abs(_local3.scaleX)) : _local3.minWidth;
var _local11:Number = ((((_local3.scaleY > 0)) && (!((_local3.scaleY == 1))))) ? (_local3.minHeight / Math.abs(_local3.scaleY)) : _local3.minHeight;
var _local12:Number = ((Math.max(_arg1, _local10) - _local5.right) - _local5.left);
var _local13:Number = ((Math.max(_arg2, _local11) - _local5.bottom) - _local5.top);
var _local14:ScrollBar = _local3.horizontalScrollBar;
var _local15:ScrollBar = _local3.verticalScrollBar;
if (_local4 == 1){
_local23 = IUIComponent(_local3.getChildAt(0));
_local24 = _local23.percentWidth;
_local25 = _local23.percentHeight;
if (_local24){
_local26 = Math.max(_local23.minWidth, Math.min(_local23.maxWidth, ((_local24)>=100) ? _local12 : ((_local12 * _local24) / 100)));
} else {
_local26 = _local23.getExplicitOrMeasuredWidth();
};
if (_local25){
_local27 = Math.max(_local23.minHeight, Math.min(_local23.maxHeight, ((_local25)>=100) ? _local13 : ((_local13 * _local25) / 100)));
} else {
_local27 = _local23.getExplicitOrMeasuredHeight();
};
if ((((_local23.scaleX == 1)) && ((_local23.scaleY == 1)))){
_local23.setActualSize(Math.floor(_local26), Math.floor(_local27));
} else {
_local23.setActualSize(_local26, _local27);
};
if (((!((_local15 == null))) && ((_local3.verticalScrollPolicy == ScrollPolicy.AUTO)))){
_local12 = (_local12 + _local15.minWidth);
};
if (((!((_local14 == null))) && ((_local3.horizontalScrollPolicy == ScrollPolicy.AUTO)))){
_local13 = (_local13 + _local14.minHeight);
};
_local20 = (((_local12 - _local23.width) * _local8) + _local6);
_local19 = (((_local13 - _local23.height) * _local9) + _local7);
_local23.move(Math.floor(_local20), Math.floor(_local19));
} else {
if (isVertical()){
_local16 = _local3.getStyle("verticalGap");
_local17 = _local4;
_local21 = 0;
while (_local21 < _local4) {
if (!IUIComponent(_local3.getChildAt(_local21)).includeInLayout){
_local17--;
};
_local21++;
};
_local18 = Flex.flexChildHeightsProportionally(_local3, (_local13 - ((_local17 - 1) * _local16)), _local12);
if (((!((_local14 == null))) && ((_local3.horizontalScrollPolicy == ScrollPolicy.AUTO)))){
_local18 = (_local18 + _local14.minHeight);
};
if (((!((_local15 == null))) && ((_local3.verticalScrollPolicy == ScrollPolicy.AUTO)))){
_local12 = (_local12 + _local15.minWidth);
};
_local19 = (_local7 + (_local18 * _local9));
_local21 = 0;
while (_local21 < _local4) {
_local22 = IUIComponent(_local3.getChildAt(_local21));
_local20 = (((_local12 - _local22.width) * _local8) + _local6);
_local22.move(Math.floor(_local20), Math.floor(_local19));
if (_local22.includeInLayout){
_local19 = (_local19 + (_local22.height + _local16));
};
_local21++;
};
} else {
_local16 = _local3.getStyle("horizontalGap");
_local17 = _local4;
_local21 = 0;
while (_local21 < _local4) {
if (!IUIComponent(_local3.getChildAt(_local21)).includeInLayout){
_local17--;
};
_local21++;
};
_local18 = Flex.flexChildWidthsProportionally(_local3, (_local12 - ((_local17 - 1) * _local16)), _local13);
if (((!((_local14 == null))) && ((_local3.horizontalScrollPolicy == ScrollPolicy.AUTO)))){
_local13 = (_local13 + _local14.minHeight);
};
if (((!((_local15 == null))) && ((_local3.verticalScrollPolicy == ScrollPolicy.AUTO)))){
_local18 = (_local18 + _local15.minWidth);
};
_local20 = (_local6 + (_local18 * _local8));
_local21 = 0;
while (_local21 < _local4) {
_local22 = IUIComponent(_local3.getChildAt(_local21));
_local19 = (((_local13 - _local22.height) * _local9) + _local7);
_local22.move(Math.floor(_local20), Math.floor(_local19));
if (_local22.includeInLayout){
_local20 = (_local20 + (_local22.width + _local16));
};
_local21++;
};
};
};
}
mx_internal function getVerticalAlignValue():Number{
var _local1:String = target.getStyle("verticalAlign");
if (_local1 == "middle"){
return (0.5);
};
if (_local1 == "bottom"){
return (1);
};
return (0);
}
mx_internal function heightPadding(_arg1:Number):Number{
var _local2:EdgeMetrics = target.viewMetricsAndPadding;
var _local3:Number = (_local2.top + _local2.bottom);
if ((((_arg1 > 1)) && (isVertical()))){
_local3 = (_local3 + (target.getStyle("verticalGap") * (_arg1 - 1)));
};
return (_local3);
}
mx_internal function widthPadding(_arg1:Number):Number{
var _local2:EdgeMetrics = target.viewMetricsAndPadding;
var _local3:Number = (_local2.left + _local2.right);
if ((((_arg1 > 1)) && ((isVertical() == false)))){
_local3 = (_local3 + (target.getStyle("horizontalGap") * (_arg1 - 1)));
};
return (_local3);
}
override public function measure():void{
var _local1:Container;
var _local10:Number;
var _local11:Number;
var _local12:IUIComponent;
var _local13:Number;
var _local14:Number;
_local1 = super.target;
var _local2:Boolean = isVertical();
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:int = _local1.numChildren;
var _local8:int = _local7;
var _local9:int;
while (_local9 < _local7) {
_local12 = IUIComponent(_local1.getChildAt(_local9));
if (!_local12.includeInLayout){
_local8--;
} else {
_local13 = _local12.getExplicitOrMeasuredWidth();
_local14 = _local12.getExplicitOrMeasuredHeight();
if (_local2){
_local3 = Math.max((isNaN(_local12.percentWidth)) ? _local13 : _local12.minWidth, _local3);
_local5 = Math.max(_local13, _local5);
_local4 = (_local4 + (isNaN(_local12.percentHeight)) ? _local14 : _local12.minHeight);
_local6 = (_local6 + _local14);
} else {
_local3 = (_local3 + (isNaN(_local12.percentWidth)) ? _local13 : _local12.minWidth);
_local5 = (_local5 + _local13);
_local4 = Math.max((isNaN(_local12.percentHeight)) ? _local14 : _local12.minHeight, _local4);
_local6 = Math.max(_local14, _local6);
};
};
_local9++;
};
_local10 = widthPadding(_local8);
_local11 = heightPadding(_local8);
_local1.measuredMinWidth = (_local3 + _local10);
_local1.measuredMinHeight = (_local4 + _local11);
_local1.measuredWidth = (_local5 + _local10);
_local1.measuredHeight = (_local6 + _local11);
}
}
}//package mx.containers.utilityClasses
Section 541
//CanvasLayout (mx.containers.utilityClasses.CanvasLayout)
package mx.containers.utilityClasses {
import mx.core.*;
import mx.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import mx.containers.errors.*;
public class CanvasLayout extends Layout {
private var colSpanChildren:Array;
private var constraintRegionsInUse:Boolean;// = false
private var rowSpanChildren:Array;
private var constraintCache:Dictionary;
private var _contentArea:Rectangle;
mx_internal static const VERSION:String = "3.0.0.0";
private static var r:Rectangle = new Rectangle();
public function CanvasLayout(){
colSpanChildren = [];
rowSpanChildren = [];
constraintCache = new Dictionary(true);
super();
}
private function parseConstraints(_arg1:IUIComponent=null):ChildConstraintInfo{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:String;
var _local11:String;
var _local12:String;
var _local13:String;
var _local14:String;
var _local15:String;
var _local16:String;
var _local17:Array;
var _local18:int;
var _local30:ConstraintColumn;
var _local31:Boolean;
var _local32:ConstraintRow;
var _local2:LayoutConstraints = getLayoutConstraints(_arg1);
if (!_local2){
return (null);
};
while (true) {
_local17 = parseConstraintExp(_local2.left);
if (!_local17){
_local3 = NaN;
} else {
if (_local17.length == 1){
_local3 = Number(_local17[0]);
} else {
_local10 = _local17[0];
_local3 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.right);
if (!_local17){
_local4 = NaN;
} else {
if (_local17.length == 1){
_local4 = Number(_local17[0]);
} else {
_local11 = _local17[0];
_local4 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.horizontalCenter);
if (!_local17){
_local5 = NaN;
} else {
if (_local17.length == 1){
_local5 = Number(_local17[0]);
} else {
_local12 = _local17[0];
_local5 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.top);
if (!_local17){
_local6 = NaN;
} else {
if (_local17.length == 1){
_local6 = Number(_local17[0]);
} else {
_local13 = _local17[0];
_local6 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.bottom);
if (!_local17){
_local7 = NaN;
} else {
if (_local17.length == 1){
_local7 = Number(_local17[0]);
} else {
_local14 = _local17[0];
_local7 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.verticalCenter);
if (!_local17){
_local8 = NaN;
} else {
if (_local17.length == 1){
_local8 = Number(_local17[0]);
} else {
_local15 = _local17[0];
_local8 = _local17[1];
};
};
_local17 = parseConstraintExp(_local2.baseline);
if (!_local17){
_local9 = NaN;
} else {
if (_local17.length == 1){
_local9 = Number(_local17[0]);
} else {
_local16 = _local17[0];
_local9 = _local17[1];
};
};
break;
};
var _local19:ContentColumnChild = new ContentColumnChild();
var _local20:Boolean;
var _local21:Number = 0;
var _local22:Number = 0;
var _local23:Number = 0;
_local18 = 0;
while (_local18 < IConstraintLayout(target).constraintColumns.length) {
_local30 = IConstraintLayout(target).constraintColumns[_local18];
if (_local30.mx_internal::contentSize){
if (_local30.id == _local10){
_local19.leftCol = _local30;
_local19.leftOffset = _local3;
_local21 = _local18;
_local19.left = _local21;
_local20 = true;
};
if (_local30.id == _local11){
_local19.rightCol = _local30;
_local19.rightOffset = _local4;
_local22 = (_local18 + 1);
_local19.right = _local22;
_local20 = true;
};
if (_local30.id == _local12){
_local19.hcCol = _local30;
_local19.hcOffset = _local5;
_local23 = (_local18 + 1);
_local19.hc = _local23;
_local20 = true;
};
};
_local18++;
};
if (_local20){
_local19.child = _arg1;
if (((((((_local19.leftCol) && (!(_local19.rightCol)))) || (((_local19.rightCol) && (!(_local19.leftCol)))))) || (_local19.hcCol))){
_local19.span = 1;
} else {
_local19.span = (_local22 - _local21);
};
_local31 = false;
_local18 = 0;
while (_local18 < colSpanChildren.length) {
if (_local19.child == colSpanChildren[_local18].child){
_local31 = true;
break;
};
_local18++;
};
if (!_local31){
colSpanChildren.push(_local19);
};
};
_local20 = false;
var _local24:ContentRowChild = new ContentRowChild();
var _local25:Number = 0;
var _local26:Number = 0;
var _local27:Number = 0;
var _local28:Number = 0;
_local18 = 0;
while (_local18 < IConstraintLayout(target).constraintRows.length) {
_local32 = IConstraintLayout(target).constraintRows[_local18];
if (_local32.mx_internal::contentSize){
if (_local32.id == _local13){
_local24.topRow = _local32;
_local24.topOffset = _local6;
_local25 = _local18;
_local24.top = _local25;
_local20 = true;
};
if (_local32.id == _local14){
_local24.bottomRow = _local32;
_local24.bottomOffset = _local7;
_local26 = (_local18 + 1);
_local24.bottom = _local26;
_local20 = true;
};
if (_local32.id == _local15){
_local24.vcRow = _local32;
_local24.vcOffset = _local8;
_local27 = (_local18 + 1);
_local24.vc = _local27;
_local20 = true;
};
if (_local32.id == _local16){
_local24.baselineRow = _local32;
_local24.baselineOffset = _local9;
_local28 = (_local18 + 1);
_local24.baseline = _local28;
_local20 = true;
};
};
_local18++;
};
if (_local20){
_local24.child = _arg1;
if (((((((((_local24.topRow) && (!(_local24.bottomRow)))) || (((_local24.bottomRow) && (!(_local24.topRow)))))) || (_local24.vcRow))) || (_local24.baselineRow))){
_local24.span = 1;
} else {
_local24.span = (_local26 - _local25);
};
_local31 = false;
_local18 = 0;
while (_local18 < rowSpanChildren.length) {
if (_local24.child == rowSpanChildren[_local18].child){
_local31 = true;
break;
};
_local18++;
};
if (!_local31){
rowSpanChildren.push(_local24);
};
};
var _local29:ChildConstraintInfo = new ChildConstraintInfo(_local3, _local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11, _local12, _local13, _local14, _local15, _local16);
constraintCache[_arg1] = _local29;
return (_local29);
}
private function bound(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg1 < _arg2){
_arg1 = _arg2;
} else {
if (_arg1 > _arg3){
_arg1 = _arg3;
} else {
_arg1 = Math.floor(_arg1);
};
};
return (_arg1);
}
private function shareRowSpace(_arg1:ContentRowChild, _arg2:Number):Number{
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local3:ConstraintRow = _arg1.topRow;
var _local4:ConstraintRow = _arg1.bottomRow;
var _local5:IUIComponent = _arg1.child;
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:Number = (_arg1.topOffset) ? _arg1.topOffset : 0;
var _local9:Number = (_arg1.bottomOffset) ? _arg1.bottomOffset : 0;
if (((_local3) && (_local3.height))){
_local6 = (_local6 + _local3.height);
} else {
if (((_local4) && (!(_local3)))){
_local3 = IConstraintLayout(target).constraintRows[(_arg1.bottom - 2)];
if (((_local3) && (_local3.height))){
_local6 = (_local6 + _local3.height);
};
};
};
if (((_local4) && (_local4.height))){
_local7 = (_local7 + _local4.height);
} else {
if (((_local3) && (!(_local4)))){
_local4 = IConstraintLayout(target).constraintRows[(_arg1.top + 1)];
if (((_local4) && (_local4.height))){
_local7 = (_local7 + _local4.height);
};
};
};
if (((_local3) && (isNaN(_local3.height)))){
_local3.setActualHeight(Math.max(0, _local3.maxHeight));
};
if (((_local4) && (isNaN(_local4.height)))){
_local4.setActualHeight(Math.max(0, _local4.height));
};
var _local10:Number = _local5.getExplicitOrMeasuredHeight();
if (_local10){
if (!_arg1.topRow){
if (_local10 > _local6){
_local12 = ((_local10 - _local6) + _local9);
} else {
_local12 = (_local10 + _local9);
};
};
if (!_arg1.bottomRow){
if (_local10 > _local7){
_local11 = ((_local10 - _local7) + _local8);
} else {
_local11 = (_local10 + _local8);
};
};
if (((_arg1.topRow) && (_arg1.bottomRow))){
_local13 = (_local10 / Number(_arg1.span));
if ((_local13 + _local8) < _local6){
_local11 = _local6;
_local12 = ((_local10 - (_local6 - _local8)) + _local9);
} else {
_local11 = (_local13 + _local8);
};
if ((_local13 + _local9) < _local7){
_local12 = _local7;
_local11 = ((_local10 - (_local7 - _local9)) + _local8);
} else {
_local12 = (_local13 + _local9);
};
};
_local12 = bound(_local12, _local4.minHeight, _local4.maxHeight);
_local4.setActualHeight(_local12);
_arg2 = (_arg2 - _local12);
_local11 = bound(_local11, _local3.minHeight, _local3.maxHeight);
_local3.setActualHeight(_local11);
_arg2 = (_arg2 - _local11);
};
return (_arg2);
}
private function parseConstraintExp(_arg1:String):Array{
if (!_arg1){
return (null);
};
var _local2:String = _arg1.replace(/:/g, " ");
var _local3:Array = _local2.split(/\s+/);
return (_local3);
}
private function measureColumnsAndRows():void{
var _local3:int;
var _local4:int;
var _local13:ConstraintColumn;
var _local14:ConstraintRow;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:ContentColumnChild;
var _local20:ContentRowChild;
var _local1:Array = IConstraintLayout(target).constraintColumns;
var _local2:Array = IConstraintLayout(target).constraintRows;
if ((((!(_local2.length) > 0)) && ((!(_local1.length) > 0)))){
constraintRegionsInUse = false;
return;
};
constraintRegionsInUse = true;
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:EdgeMetrics = Container(target).viewMetrics;
var _local8:Number = ((Container(target).width - _local7.left) - _local7.right);
var _local9:Number = ((Container(target).height - _local7.top) - _local7.bottom);
var _local10:Array = [];
var _local11:Array = [];
var _local12:Array = [];
if (_local1.length > 0){
_local3 = 0;
while (_local3 < _local1.length) {
_local13 = _local1[_local3];
if (!isNaN(_local13.percentWidth)){
_local11.push(_local13);
} else {
if (((!(isNaN(_local13.width))) && (!(_local13.mx_internal::contentSize)))){
_local10.push(_local13);
} else {
_local12.push(_local13);
_local13.mx_internal::contentSize = true;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < _local10.length) {
_local13 = ConstraintColumn(_local10[_local3]);
_local8 = (_local8 - _local13.width);
_local3++;
};
if (_local12.length > 0){
if (colSpanChildren.length > 0){
colSpanChildren.sortOn("span");
_local4 = 0;
while (_local4 < colSpanChildren.length) {
_local19 = colSpanChildren[_local4];
if (_local19.span == 1){
if (_local19.hcCol){
_local13 = ConstraintColumn(_local1[_local1.indexOf(_local19.hcCol)]);
} else {
if (_local19.leftCol){
_local13 = ConstraintColumn(_local1[_local1.indexOf(_local19.leftCol)]);
} else {
if (_local19.rightCol){
_local13 = ConstraintColumn(_local1[_local1.indexOf(_local19.rightCol)]);
};
};
};
_local16 = _local19.child.getExplicitOrMeasuredWidth();
if (_local19.hcOffset){
_local16 = (_local16 + _local19.hcOffset);
} else {
if (_local19.leftOffset){
_local16 = (_local16 + _local19.leftOffset);
};
if (_local19.rightOffset){
_local16 = (_local16 + _local19.rightOffset);
};
};
if (!isNaN(_local13.width)){
_local16 = Math.max(_local13.width, _local16);
};
_local16 = bound(_local16, _local13.minWidth, _local13.maxWidth);
_local13.setActualWidth(_local16);
_local8 = (_local8 - _local13.width);
} else {
_local8 = shareColumnSpace(_local19, _local8);
};
_local4++;
};
colSpanChildren = [];
};
_local3 = 0;
while (_local3 < _local12.length) {
_local13 = _local12[_local3];
if (!_local13.width){
_local16 = bound(0, _local13.minWidth, 0);
_local13.setActualWidth(_local16);
};
_local3++;
};
};
_local18 = _local8;
_local3 = 0;
while (_local3 < _local11.length) {
_local13 = ConstraintColumn(_local11[_local3]);
if (_local18 <= 0){
_local16 = 0;
} else {
_local16 = Math.round(((_local18 * _local13.percentWidth) / 100));
};
_local16 = bound(_local16, _local13.minWidth, _local13.maxWidth);
_local13.setActualWidth(_local16);
_local8 = (_local8 - _local16);
_local3++;
};
_local3 = 0;
while (_local3 < _local1.length) {
_local13 = ConstraintColumn(_local1[_local3]);
_local13.x = _local5;
_local5 = (_local5 + _local13.width);
_local3++;
};
};
_local10 = [];
_local11 = [];
_local12 = [];
if (_local2.length > 0){
_local3 = 0;
while (_local3 < _local2.length) {
_local14 = _local2[_local3];
if (!isNaN(_local14.percentHeight)){
_local11.push(_local14);
} else {
if (((!(isNaN(_local14.height))) && (!(_local14.mx_internal::contentSize)))){
_local10.push(_local14);
} else {
_local12.push(_local14);
_local14.mx_internal::contentSize = true;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < _local10.length) {
_local14 = ConstraintRow(_local10[_local3]);
_local9 = (_local9 - _local14.height);
_local3++;
};
if (_local12.length > 0){
if (rowSpanChildren.length > 0){
rowSpanChildren.sortOn("span");
_local4 = 0;
while (_local4 < rowSpanChildren.length) {
_local20 = rowSpanChildren[_local4];
if (_local20.span == 1){
if (_local20.vcRow){
_local14 = ConstraintRow(_local2[_local2.indexOf(_local20.vcRow)]);
} else {
if (_local20.baselineRow){
_local14 = ConstraintRow(_local2[_local2.indexOf(_local20.baselineRow)]);
} else {
if (_local20.topRow){
_local14 = ConstraintRow(_local2[_local2.indexOf(_local20.topRow)]);
} else {
if (_local20.bottomRow){
_local14 = ConstraintRow(_local2[_local2.indexOf(_local20.bottomRow)]);
};
};
};
};
_local17 = _local20.child.getExplicitOrMeasuredHeight();
if (_local20.baselineOffset){
_local17 = (_local17 + _local20.baselineOffset);
} else {
if (_local20.vcOffset){
_local17 = (_local17 + _local20.vcOffset);
} else {
if (_local20.topOffset){
_local17 = (_local17 + _local20.topOffset);
};
if (_local20.bottomOffset){
_local17 = (_local17 + _local20.bottomOffset);
};
};
};
if (!isNaN(_local14.height)){
_local17 = Math.max(_local14.height, _local17);
};
_local17 = bound(_local17, _local14.minHeight, _local14.maxHeight);
_local14.setActualHeight(_local17);
_local9 = (_local9 - _local14.height);
} else {
_local9 = shareRowSpace(_local20, _local9);
};
_local4++;
};
rowSpanChildren = [];
};
_local3 = 0;
while (_local3 < _local12.length) {
_local14 = ConstraintRow(_local12[_local3]);
if (!_local14.height){
_local17 = bound(0, _local14.minHeight, 0);
_local14.setActualHeight(_local17);
};
_local3++;
};
};
_local18 = _local9;
_local3 = 0;
while (_local3 < _local11.length) {
_local14 = ConstraintRow(_local11[_local3]);
if (_local18 <= 0){
_local17 = 0;
} else {
_local17 = Math.round(((_local18 * _local14.percentHeight) / 100));
};
_local17 = bound(_local17, _local14.minHeight, _local14.maxHeight);
_local14.setActualHeight(_local17);
_local9 = (_local9 - _local17);
_local3++;
};
_local3 = 0;
while (_local3 < _local2.length) {
_local14 = _local2[_local3];
_local14.y = _local6;
_local6 = (_local6 + _local14.height);
_local3++;
};
};
}
private function child_moveHandler(_arg1:MoveEvent):void{
if ((_arg1.target is IUIComponent)){
if (!IUIComponent(_arg1.target).includeInLayout){
return;
};
};
var _local2:Container = super.target;
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
_contentArea = null;
};
}
private function applyAnchorStylesDuringMeasure(_arg1:IUIComponent, _arg2:Rectangle):void{
var _local13:int;
var _local3:IConstraintClient = (_arg1 as IConstraintClient);
if (!_local3){
return;
};
var _local4:ChildConstraintInfo = constraintCache[_local3];
if (!_local4){
_local4 = parseConstraints(_arg1);
};
var _local5:Number = _local4.left;
var _local6:Number = _local4.right;
var _local7:Number = _local4.hc;
var _local8:Number = _local4.top;
var _local9:Number = _local4.bottom;
var _local10:Number = _local4.vc;
var _local11:Array = IConstraintLayout(target).constraintColumns;
var _local12:Array = IConstraintLayout(target).constraintRows;
var _local14:Number = 0;
if (!(_local11.length) > 0){
if (!isNaN(_local7)){
_arg2.x = Math.round((((target.width - _arg1.width) / 2) + _local7));
} else {
if (((!(isNaN(_local5))) && (!(isNaN(_local6))))){
_arg2.x = _local5;
_arg2.width = (_arg2.width + _local6);
} else {
if (!isNaN(_local5)){
_arg2.x = _local5;
} else {
if (!isNaN(_local6)){
_arg2.x = 0;
_arg2.width = (_arg2.width + _local6);
};
};
};
};
} else {
_arg2.x = 0;
_local13 = 0;
while (_local13 < _local11.length) {
_local14 = (_local14 + ConstraintColumn(_local11[_local13]).width);
_local13++;
};
_arg2.width = _local14;
};
if (!(_local12.length) > 0){
if (!isNaN(_local10)){
_arg2.y = Math.round((((target.height - _arg1.height) / 2) + _local10));
} else {
if (((!(isNaN(_local8))) && (!(isNaN(_local9))))){
_arg2.y = _local8;
_arg2.height = (_arg2.height + _local9);
} else {
if (!isNaN(_local8)){
_arg2.y = _local8;
} else {
if (!isNaN(_local9)){
_arg2.y = 0;
_arg2.height = (_arg2.height + _local9);
};
};
};
};
} else {
_local14 = 0;
_arg2.y = 0;
_local13 = 0;
while (_local13 < _local12.length) {
_local14 = (_local14 + ConstraintRow(_local12[_local13]).height);
_local13++;
};
_arg2.height = _local14;
};
}
override public function measure():void{
var _local1:Container;
var _local5:EdgeMetrics;
var _local6:Rectangle;
var _local7:IUIComponent;
var _local8:ConstraintColumn;
var _local9:ConstraintRow;
_local1 = super.target;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
_local5 = _local1.viewMetrics;
_local4 = 0;
while (_local4 < _local1.numChildren) {
_local7 = (_local1.getChildAt(_local4) as IUIComponent);
parseConstraints(_local7);
_local4++;
};
_local4 = 0;
while (_local4 < IConstraintLayout(_local1).constraintColumns.length) {
_local8 = IConstraintLayout(_local1).constraintColumns[_local4];
if (_local8.mx_internal::contentSize){
_local8.mx_internal::_width = NaN;
};
_local4++;
};
_local4 = 0;
while (_local4 < IConstraintLayout(_local1).constraintRows.length) {
_local9 = IConstraintLayout(_local1).constraintRows[_local4];
if (_local9.mx_internal::contentSize){
_local9.mx_internal::_height = NaN;
};
_local4++;
};
measureColumnsAndRows();
_contentArea = null;
_local6 = measureContentArea();
_local1.measuredWidth = ((_local6.width + _local5.left) + _local5.right);
_local1.measuredHeight = ((_local6.height + _local5.top) + _local5.bottom);
}
private function target_childRemoveHandler(_arg1:ChildExistenceChangedEvent):void{
DisplayObject(_arg1.relatedObject).removeEventListener(MoveEvent.MOVE, child_moveHandler);
delete constraintCache[_arg1.relatedObject];
}
override public function set target(_arg1:Container):void{
var _local3:int;
var _local4:int;
var _local2:Container = super.target;
if (_arg1 != _local2){
if (_local2){
_local2.removeEventListener(ChildExistenceChangedEvent.CHILD_ADD, target_childAddHandler);
_local2.removeEventListener(ChildExistenceChangedEvent.CHILD_REMOVE, target_childRemoveHandler);
_local4 = _local2.numChildren;
_local3 = 0;
while (_local3 < _local4) {
DisplayObject(_local2.getChildAt(_local3)).removeEventListener(MoveEvent.MOVE, child_moveHandler);
_local3++;
};
};
if (_arg1){
_arg1.addEventListener(ChildExistenceChangedEvent.CHILD_ADD, target_childAddHandler);
_arg1.addEventListener(ChildExistenceChangedEvent.CHILD_REMOVE, target_childRemoveHandler);
_local4 = _arg1.numChildren;
_local3 = 0;
while (_local3 < _local4) {
DisplayObject(_arg1.getChildAt(_local3)).addEventListener(MoveEvent.MOVE, child_moveHandler);
_local3++;
};
};
super.target = _arg1;
};
}
private function measureContentArea():Rectangle{
var _local1:int;
var _local3:Array;
var _local4:Array;
var _local5:IUIComponent;
var _local6:LayoutConstraints;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
if (_contentArea){
return (_contentArea);
};
_contentArea = new Rectangle();
var _local2:int = target.numChildren;
if ((((_local2 == 0)) && (constraintRegionsInUse))){
_local3 = IConstraintLayout(target).constraintColumns;
_local4 = IConstraintLayout(target).constraintRows;
if (_local3.length > 0){
_contentArea.right = (_local3[(_local3.length - 1)].x + _local3[(_local3.length - 1)].width);
} else {
_contentArea.right = 0;
};
if (_local4.length > 0){
_contentArea.bottom = (_local4[(_local4.length - 1)].y + _local4[(_local4.length - 1)].height);
} else {
_contentArea.bottom = 0;
};
};
_local1 = 0;
while (_local1 < _local2) {
_local5 = (target.getChildAt(_local1) as IUIComponent);
_local6 = getLayoutConstraints(_local5);
if (!_local5.includeInLayout){
} else {
_local7 = _local5.x;
_local8 = _local5.y;
_local9 = _local5.getExplicitOrMeasuredWidth();
_local10 = _local5.getExplicitOrMeasuredHeight();
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
if (((!(isNaN(_local5.percentWidth))) || (((((_local6) && (!(isNaN(_local6.left))))) && (!(isNaN(_local6.right))))))){
_local9 = _local5.minWidth;
};
} else {
if (((!(isNaN(_local5.percentWidth))) || (((((((_local6) && (!(isNaN(_local6.left))))) && (!(isNaN(_local6.right))))) && (isNaN(_local5.explicitWidth)))))){
_local9 = _local5.minWidth;
};
};
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
if (((!(isNaN(_local5.percentHeight))) || (((((_local6) && (!(isNaN(_local6.top))))) && (!(isNaN(_local6.bottom))))))){
_local10 = _local5.minHeight;
};
} else {
if (((!(isNaN(_local5.percentHeight))) || (((((((_local6) && (!(isNaN(_local6.top))))) && (!(isNaN(_local6.bottom))))) && (isNaN(_local5.explicitHeight)))))){
_local10 = _local5.minHeight;
};
};
r.x = _local7;
r.y = _local8;
r.width = _local9;
r.height = _local10;
applyAnchorStylesDuringMeasure(_local5, r);
_local7 = r.x;
_local8 = r.y;
_local9 = r.width;
_local10 = r.height;
if (isNaN(_local7)){
_local7 = _local5.x;
};
if (isNaN(_local8)){
_local8 = _local5.y;
};
_local11 = _local7;
_local12 = _local8;
if (isNaN(_local9)){
_local9 = _local5.width;
};
if (isNaN(_local10)){
_local10 = _local5.height;
};
_local11 = (_local11 + _local9);
_local12 = (_local12 + _local10);
_contentArea.right = Math.max(_contentArea.right, _local11);
_contentArea.bottom = Math.max(_contentArea.bottom, _local12);
};
_local1++;
};
return (_contentArea);
}
private function shareColumnSpace(_arg1:ContentColumnChild, _arg2:Number):Number{
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local3:ConstraintColumn = _arg1.leftCol;
var _local4:ConstraintColumn = _arg1.rightCol;
var _local5:IUIComponent = _arg1.child;
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:Number = (_arg1.rightOffset) ? _arg1.rightOffset : 0;
var _local9:Number = (_arg1.leftOffset) ? _arg1.leftOffset : 0;
if (((_local3) && (_local3.width))){
_local6 = (_local6 + _local3.width);
} else {
if (((_local4) && (!(_local3)))){
_local3 = IConstraintLayout(target).constraintColumns[(_arg1.right - 2)];
if (((_local3) && (_local3.width))){
_local6 = (_local6 + _local3.width);
};
};
};
if (((_local4) && (_local4.width))){
_local7 = (_local7 + _local4.width);
} else {
if (((_local3) && (!(_local4)))){
_local4 = IConstraintLayout(target).constraintColumns[(_arg1.left + 1)];
if (((_local4) && (_local4.width))){
_local7 = (_local7 + _local4.width);
};
};
};
if (((_local3) && (isNaN(_local3.width)))){
_local3.setActualWidth(Math.max(0, _local3.maxWidth));
};
if (((_local4) && (isNaN(_local4.width)))){
_local4.setActualWidth(Math.max(0, _local4.maxWidth));
};
var _local10:Number = _local5.getExplicitOrMeasuredWidth();
if (_local10){
if (!_arg1.leftCol){
if (_local10 > _local6){
_local12 = ((_local10 - _local6) + _local8);
} else {
_local12 = (_local10 + _local8);
};
};
if (!_arg1.rightCol){
if (_local10 > _local7){
_local11 = ((_local10 - _local7) + _local9);
} else {
_local11 = (_local10 + _local9);
};
};
if (((_arg1.leftCol) && (_arg1.rightCol))){
_local13 = (_local10 / Number(_arg1.span));
if ((_local13 + _local9) < _local6){
_local11 = _local6;
_local12 = ((_local10 - (_local6 - _local9)) + _local8);
} else {
_local11 = (_local13 + _local9);
};
if ((_local13 + _local8) < _local7){
_local12 = _local7;
_local11 = ((_local10 - (_local7 - _local8)) + _local9);
} else {
_local12 = (_local13 + _local8);
};
};
_local11 = bound(_local11, _local3.minWidth, _local3.maxWidth);
_local3.setActualWidth(_local11);
_arg2 = (_arg2 - _local11);
_local12 = bound(_local12, _local4.minWidth, _local4.maxWidth);
_local4.setActualWidth(_local12);
_arg2 = (_arg2 - _local12);
};
return (_arg2);
}
private function getLayoutConstraints(_arg1:IUIComponent):LayoutConstraints{
var _local2:IConstraintClient = (_arg1 as IConstraintClient);
if (!_local2){
return (null);
};
var _local3:LayoutConstraints = new LayoutConstraints();
_local3.baseline = _local2.getConstraintValue("baseline");
_local3.bottom = _local2.getConstraintValue("bottom");
_local3.horizontalCenter = _local2.getConstraintValue("horizontalCenter");
_local3.left = _local2.getConstraintValue("left");
_local3.right = _local2.getConstraintValue("right");
_local3.top = _local2.getConstraintValue("top");
_local3.verticalCenter = _local2.getConstraintValue("verticalCenter");
return (_local3);
}
override public function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local3:int;
var _local4:IUIComponent;
var _local10:ConstraintColumn;
var _local11:ConstraintRow;
var _local5:Container = super.target;
var _local6:int = _local5.numChildren;
_local5.mx_internal::doingLayout = false;
var _local7:EdgeMetrics = _local5.viewMetrics;
_local5.mx_internal::doingLayout = true;
var _local8:Number = ((_arg1 - _local7.left) - _local7.right);
var _local9:Number = ((_arg2 - _local7.top) - _local7.bottom);
if ((((IConstraintLayout(_local5).constraintColumns.length > 0)) || ((IConstraintLayout(_local5).constraintRows.length > 0)))){
constraintRegionsInUse = true;
};
if (constraintRegionsInUse){
_local3 = 0;
while (_local3 < _local6) {
_local4 = (_local5.getChildAt(_local3) as IUIComponent);
parseConstraints(_local4);
_local3++;
};
_local3 = 0;
while (_local3 < IConstraintLayout(_local5).constraintColumns.length) {
_local10 = IConstraintLayout(_local5).constraintColumns[_local3];
if (_local10.mx_internal::contentSize){
_local10.mx_internal::_width = NaN;
};
_local3++;
};
_local3 = 0;
while (_local3 < IConstraintLayout(_local5).constraintRows.length) {
_local11 = IConstraintLayout(_local5).constraintRows[_local3];
if (_local11.mx_internal::contentSize){
_local11.mx_internal::_height = NaN;
};
_local3++;
};
measureColumnsAndRows();
};
_local3 = 0;
while (_local3 < _local6) {
_local4 = (_local5.getChildAt(_local3) as IUIComponent);
applyAnchorStylesDuringUpdateDisplayList(_local8, _local9, _local4);
_local3++;
};
}
private function applyAnchorStylesDuringUpdateDisplayList(_arg1:Number, _arg2:Number, _arg3:IUIComponent=null):void{
var _local20:int;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:String;
var _local34:Number;
var _local35:Number;
var _local36:Number;
var _local37:Number;
var _local38:Number;
var _local39:Boolean;
var _local40:Boolean;
var _local41:Boolean;
var _local42:ConstraintColumn;
var _local43:Boolean;
var _local44:Boolean;
var _local45:Boolean;
var _local46:Boolean;
var _local47:ConstraintRow;
var _local4:IConstraintClient = (_arg3 as IConstraintClient);
if (!_local4){
return;
};
var _local5:ChildConstraintInfo = parseConstraints(_arg3);
var _local6:Number = _local5.left;
var _local7:Number = _local5.right;
var _local8:Number = _local5.hc;
var _local9:Number = _local5.top;
var _local10:Number = _local5.bottom;
var _local11:Number = _local5.vc;
var _local12:Number = _local5.baseline;
var _local13:String = _local5.leftBoundary;
var _local14:String = _local5.rightBoundary;
var _local15:String = _local5.hcBoundary;
var _local16:String = _local5.topBoundary;
var _local17:String = _local5.bottomBoundary;
var _local18:String = _local5.vcBoundary;
var _local19:String = _local5.baselineBoundary;
var _local26:Boolean;
var _local27:Boolean;
var _local28:Boolean = ((((!(_local15)) && (!(_local13)))) && (!(_local14)));
var _local29:Boolean = ((((((!(_local18)) && (!(_local16)))) && (!(_local17)))) && (!(_local19)));
var _local30:Number = 0;
var _local31:Number = _arg1;
var _local32:Number = 0;
var _local33:Number = _arg2;
if (!_local28){
_local39 = (_local13) ? true : false;
_local40 = (_local14) ? true : false;
_local41 = (_local15) ? true : false;
_local20 = 0;
while (_local20 < IConstraintLayout(target).constraintColumns.length) {
_local42 = ConstraintColumn(IConstraintLayout(target).constraintColumns[_local20]);
if (_local39){
if (_local13 == _local42.id){
_local30 = _local42.x;
_local39 = false;
};
};
if (_local40){
if (_local14 == _local42.id){
_local31 = (_local42.x + _local42.width);
_local40 = false;
};
};
if (_local41){
if (_local15 == _local42.id){
_local35 = _local42.width;
_local37 = _local42.x;
_local41 = false;
};
};
_local20++;
};
if (_local39){
_local25 = resourceManager.getString("containers", "columnNotFound", [_local13]);
throw (new ConstraintError(_local25));
};
if (_local40){
_local25 = resourceManager.getString("containers", "columnNotFound", [_local14]);
throw (new ConstraintError(_local25));
};
if (_local41){
_local25 = resourceManager.getString("containers", "columnNotFound", [_local15]);
throw (new ConstraintError(_local25));
};
} else {
if (!_local28){
_local25 = resourceManager.getString("containers", "noColumnsFound");
throw (new ConstraintError(_local25));
};
};
_arg1 = Math.round((_local31 - _local30));
if (((!(isNaN(_local6))) && (!(isNaN(_local7))))){
_local21 = ((_arg1 - _local6) - _local7);
if (_local21 < _arg3.minWidth){
_local21 = _arg3.minWidth;
};
} else {
if (!isNaN(_arg3.percentWidth)){
_local21 = ((_arg3.percentWidth / 100) * _arg1);
_local21 = bound(_local21, _arg3.minWidth, _arg3.maxWidth);
_local26 = true;
} else {
_local21 = _arg3.getExplicitOrMeasuredWidth();
};
};
if (((!(_local29)) && ((IConstraintLayout(target).constraintRows.length > 0)))){
_local43 = (_local16) ? true : false;
_local44 = (_local17) ? true : false;
_local45 = (_local18) ? true : false;
_local46 = (_local19) ? true : false;
_local20 = 0;
while (_local20 < IConstraintLayout(target).constraintRows.length) {
_local47 = ConstraintRow(IConstraintLayout(target).constraintRows[_local20]);
if (_local43){
if (_local16 == _local47.id){
_local32 = _local47.y;
_local43 = false;
};
};
if (_local44){
if (_local17 == _local47.id){
_local33 = (_local47.y + _local47.height);
_local44 = false;
};
};
if (_local45){
if (_local18 == _local47.id){
_local34 = _local47.height;
_local36 = _local47.y;
_local45 = false;
};
};
if (_local46){
if (_local19 == _local47.id){
_local38 = _local47.y;
_local46 = false;
};
};
_local20++;
};
if (_local43){
_local25 = resourceManager.getString("containers", "rowNotFound", [_local16]);
throw (new ConstraintError(_local25));
};
if (_local44){
_local25 = resourceManager.getString("containers", "rowNotFound", [_local17]);
throw (new ConstraintError(_local25));
};
if (_local45){
_local25 = resourceManager.getString("containers", "rowNotFound", [_local18]);
throw (new ConstraintError(_local25));
};
if (_local46){
_local25 = resourceManager.getString("containers", "rowNotFound", [_local19]);
throw (new ConstraintError(_local25));
};
} else {
if (((!(_local29)) && (!((IConstraintLayout(target).constraintRows.length > 0))))){
_local25 = resourceManager.getString("containers", "noRowsFound");
throw (new ConstraintError(_local25));
};
};
_arg2 = Math.round((_local33 - _local32));
if (((!(isNaN(_local9))) && (!(isNaN(_local10))))){
_local22 = ((_arg2 - _local9) - _local10);
if (_local22 < _arg3.minHeight){
_local22 = _arg3.minHeight;
};
} else {
if (!isNaN(_arg3.percentHeight)){
_local22 = ((_arg3.percentHeight / 100) * _arg2);
_local22 = bound(_local22, _arg3.minHeight, _arg3.maxHeight);
_local27 = true;
} else {
_local22 = _arg3.getExplicitOrMeasuredHeight();
};
};
if (!isNaN(_local8)){
if (_local15){
_local23 = Math.round(((((_local35 - _local21) / 2) + _local8) + _local37));
} else {
_local23 = Math.round((((_arg1 - _local21) / 2) + _local8));
};
} else {
if (!isNaN(_local6)){
if (_local13){
_local23 = (_local30 + _local6);
} else {
_local23 = _local6;
};
} else {
if (!isNaN(_local7)){
if (_local14){
_local23 = ((_local31 - _local7) - _local21);
} else {
_local23 = ((_arg1 - _local7) - _local21);
};
};
};
};
if (!isNaN(_local12)){
if (_local19){
_local24 = ((_local38 - _arg3.baselinePosition) + _local12);
} else {
_local24 = _local12;
};
};
if (!isNaN(_local11)){
if (_local18){
_local24 = Math.round(((((_local34 - _local22) / 2) + _local11) + _local36));
} else {
_local24 = Math.round((((_arg2 - _local22) / 2) + _local11));
};
} else {
if (!isNaN(_local9)){
if (_local16){
_local24 = (_local32 + _local9);
} else {
_local24 = _local9;
};
} else {
if (!isNaN(_local10)){
if (_local17){
_local24 = ((_local33 - _local10) - _local22);
} else {
_local24 = ((_arg2 - _local10) - _local22);
};
};
};
};
_local23 = (isNaN(_local23)) ? _arg3.x : _local23;
_local24 = (isNaN(_local24)) ? _arg3.y : _local24;
_arg3.move(_local23, _local24);
if (_local26){
if ((_local23 + _local21) > _arg1){
_local21 = Math.max((_arg1 - _local23), _arg3.minWidth);
};
};
if (_local27){
if ((_local24 + _local22) > _arg2){
_local22 = Math.max((_arg2 - _local24), _arg3.minHeight);
};
};
if (((!(isNaN(_local21))) && (!(isNaN(_local22))))){
_arg3.setActualSize(_local21, _local22);
};
}
private function target_childAddHandler(_arg1:ChildExistenceChangedEvent):void{
DisplayObject(_arg1.relatedObject).addEventListener(MoveEvent.MOVE, child_moveHandler);
}
}
}//package mx.containers.utilityClasses
import mx.core.*;
class LayoutConstraints {
public var baseline;
public var left;
public var bottom;
public var top;
public var horizontalCenter;
public var verticalCenter;
public var right;
private function LayoutConstraints():void{
}
}
class ChildConstraintInfo {
public var baseline:Number;
public var left:Number;
public var baselineBoundary:String;
public var leftBoundary:String;
public var hcBoundary:String;
public var top:Number;
public var right:Number;
public var topBoundary:String;
public var rightBoundary:String;
public var bottom:Number;
public var vc:Number;
public var bottomBoundary:String;
public var vcBoundary:String;
public var hc:Number;
private function ChildConstraintInfo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:String=null, _arg9:String=null, _arg10:String=null, _arg11:String=null, _arg12:String=null, _arg13:String=null, _arg14:String=null):void{
this.left = _arg1;
this.right = _arg2;
this.hc = _arg3;
this.top = _arg4;
this.bottom = _arg5;
this.vc = _arg6;
this.baseline = _arg7;
this.leftBoundary = _arg8;
this.rightBoundary = _arg9;
this.hcBoundary = _arg10;
this.topBoundary = _arg11;
this.bottomBoundary = _arg12;
this.vcBoundary = _arg13;
this.baselineBoundary = _arg14;
}
}
class ContentColumnChild {
public var rightCol:ConstraintColumn;
public var hcCol:ConstraintColumn;
public var left:Number;
public var child:IUIComponent;
public var rightOffset:Number;
public var span:Number;
public var hcOffset:Number;
public var leftCol:ConstraintColumn;
public var leftOffset:Number;
public var hc:Number;
public var right:Number;
private function ContentColumnChild():void{
}
}
class ContentRowChild {
public var topRow:ConstraintRow;
public var topOffset:Number;
public var baseline:Number;
public var baselineRow:ConstraintRow;
public var span:Number;
public var top:Number;
public var vcOffset:Number;
public var child:IUIComponent;
public var bottomOffset:Number;
public var bottom:Number;
public var vc:Number;
public var bottomRow:ConstraintRow;
public var vcRow:ConstraintRow;
public var baselineOffset:Number;
private function ContentRowChild():void{
}
}
Section 542
//ConstraintColumn (mx.containers.utilityClasses.ConstraintColumn)
package mx.containers.utilityClasses {
import mx.core.*;
import flash.events.*;
public class ConstraintColumn extends EventDispatcher implements IMXMLObject {
private var _container:IInvalidating;
private var _explicitMinWidth:Number;
mx_internal var _width:Number;
mx_internal var contentSize:Boolean;// = false
private var _percentWidth:Number;
private var _explicitWidth:Number;
private var _explicitMaxWidth:Number;
private var _x:Number;
private var _id:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function get container():IInvalidating{
return (_container);
}
public function get width():Number{
return (_width);
}
public function get percentWidth():Number{
return (_percentWidth);
}
public function set container(_arg1:IInvalidating):void{
_container = _arg1;
}
public function set maxWidth(_arg1:Number):void{
if (_explicitMaxWidth != _arg1){
_explicitMaxWidth = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("maxWidthChanged"));
};
}
public function set width(_arg1:Number):void{
if (explicitWidth != _arg1){
explicitWidth = _arg1;
if (_width != _arg1){
_width = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("widthChanged"));
};
};
}
public function get maxWidth():Number{
return (_explicitMaxWidth);
}
public function get minWidth():Number{
return (_explicitMinWidth);
}
public function get id():String{
return (_id);
}
public function initialized(_arg1:Object, _arg2:String):void{
this.id = _arg2;
if (((!(this.width)) && (!(this.percentWidth)))){
contentSize = true;
};
}
public function set explicitWidth(_arg1:Number):void{
if (_explicitWidth == _arg1){
return;
};
if (!isNaN(_arg1)){
_percentWidth = NaN;
};
_explicitWidth = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("explicitWidthChanged"));
}
public function setActualWidth(_arg1:Number):void{
if (_width != _arg1){
_width = _arg1;
dispatchEvent(new Event("widthChanged"));
};
}
public function set minWidth(_arg1:Number):void{
if (_explicitMinWidth != _arg1){
_explicitMinWidth = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("minWidthChanged"));
};
}
public function set percentWidth(_arg1:Number):void{
if (_percentWidth == _arg1){
return;
};
if (!isNaN(_arg1)){
_explicitWidth = NaN;
};
_percentWidth = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("percentWidthChanged"));
}
public function set x(_arg1:Number):void{
if (_arg1 != _x){
_x = _arg1;
dispatchEvent(new Event("xChanged"));
};
}
public function get explicitWidth():Number{
return (_explicitWidth);
}
public function set id(_arg1:String):void{
_id = _arg1;
}
public function get x():Number{
return (_x);
}
}
}//package mx.containers.utilityClasses
Section 543
//ConstraintRow (mx.containers.utilityClasses.ConstraintRow)
package mx.containers.utilityClasses {
import mx.core.*;
import flash.events.*;
public class ConstraintRow extends EventDispatcher implements IMXMLObject {
private var _container:IInvalidating;
mx_internal var _height:Number;
private var _explicitMinHeight:Number;
private var _y:Number;
private var _percentHeight:Number;
private var _explicitMaxHeight:Number;
mx_internal var contentSize:Boolean;// = false
private var _explicitHeight:Number;
private var _id:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function get container():IInvalidating{
return (_container);
}
public function set container(_arg1:IInvalidating):void{
_container = _arg1;
}
public function set y(_arg1:Number):void{
if (_arg1 != _y){
_y = _arg1;
dispatchEvent(new Event("yChanged"));
};
}
public function set height(_arg1:Number):void{
if (explicitHeight != _arg1){
explicitHeight = _arg1;
if (_height != _arg1){
_height = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("heightChanged"));
};
};
}
public function set maxHeight(_arg1:Number):void{
if (_explicitMaxHeight != _arg1){
_explicitMaxHeight = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("maxHeightChanged"));
};
}
public function setActualHeight(_arg1:Number):void{
if (_height != _arg1){
_height = _arg1;
dispatchEvent(new Event("heightChanged"));
};
}
public function get minHeight():Number{
return (_explicitMinHeight);
}
public function get id():String{
return (_id);
}
public function set percentHeight(_arg1:Number):void{
if (_percentHeight == _arg1){
return;
};
if (!isNaN(_arg1)){
_explicitHeight = NaN;
};
_percentHeight = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
}
public function initialized(_arg1:Object, _arg2:String):void{
this.id = _arg2;
if (((!(this.height)) && (!(this.percentHeight)))){
contentSize = true;
};
}
public function get percentHeight():Number{
return (_percentHeight);
}
public function get height():Number{
return (_height);
}
public function get maxHeight():Number{
return (_explicitMaxHeight);
}
public function set minHeight(_arg1:Number):void{
if (_explicitMinHeight != _arg1){
_explicitMinHeight = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("minHeightChanged"));
};
}
public function set id(_arg1:String):void{
_id = _arg1;
}
public function get y():Number{
return (_y);
}
public function get explicitHeight():Number{
return (_explicitHeight);
}
public function set explicitHeight(_arg1:Number):void{
if (_explicitHeight == _arg1){
return;
};
if (!isNaN(_arg1)){
_percentHeight = NaN;
};
_explicitHeight = _arg1;
if (container){
container.invalidateSize();
container.invalidateDisplayList();
};
dispatchEvent(new Event("explicitHeightChanged"));
}
}
}//package mx.containers.utilityClasses
Section 544
//Flex (mx.containers.utilityClasses.Flex)
package mx.containers.utilityClasses {
import mx.core.*;
public class Flex {
mx_internal static const VERSION:String = "3.0.0.0";
public static function flexChildWidthsProportionally(_arg1:Container, _arg2:Number, _arg3:Number):Number{
var _local6:Array;
var _local7:FlexChildInfo;
var _local8:IUIComponent;
var _local9:int;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local4:Number = _arg2;
var _local5:Number = 0;
_local6 = [];
var _local10:int = _arg1.numChildren;
_local9 = 0;
while (_local9 < _local10) {
_local8 = IUIComponent(_arg1.getChildAt(_local9));
_local11 = _local8.percentWidth;
_local12 = _local8.percentHeight;
if (((!(isNaN(_local12))) && (_local8.includeInLayout))){
_local13 = Math.max(_local8.minHeight, Math.min(_local8.maxHeight, ((_local12)>=100) ? _arg3 : ((_arg3 * _local12) / 100)));
} else {
_local13 = _local8.getExplicitOrMeasuredHeight();
};
if (((!(isNaN(_local11))) && (_local8.includeInLayout))){
_local5 = (_local5 + _local11);
_local7 = new FlexChildInfo();
_local7.percent = _local11;
_local7.min = _local8.minWidth;
_local7.max = _local8.maxWidth;
_local7.height = _local13;
_local7.child = _local8;
_local6.push(_local7);
} else {
_local14 = _local8.getExplicitOrMeasuredWidth();
if ((((_local8.scaleX == 1)) && ((_local8.scaleY == 1)))){
_local8.setActualSize(Math.floor(_local14), Math.floor(_local13));
} else {
_local8.setActualSize(_local14, _local13);
};
if (_local8.includeInLayout){
_local4 = (_local4 - _local8.width);
};
};
_local9++;
};
if (_local5){
_local4 = flexChildrenProportionally(_arg2, _local4, _local5, _local6);
_local10 = _local6.length;
_local9 = 0;
while (_local9 < _local10) {
_local7 = _local6[_local9];
_local8 = _local7.child;
if ((((_local8.scaleX == 1)) && ((_local8.scaleY == 1)))){
_local8.setActualSize(Math.floor(_local7.size), Math.floor(_local7.height));
} else {
_local8.setActualSize(_local7.size, _local7.height);
};
_local9++;
};
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
distributeExtraWidth(_arg1, _arg2);
};
};
return (_local4);
}
public static function distributeExtraHeight(_arg1:Container, _arg2:Number):void{
var _local5:int;
var _local6:Number;
var _local9:IUIComponent;
var _local10:Number;
var _local11:Number;
var _local3:int = _arg1.numChildren;
var _local4:Boolean;
var _local7:Number = _arg2;
var _local8:Number = 0;
_local5 = 0;
while (_local5 < _local3) {
_local9 = IUIComponent(_arg1.getChildAt(_local5));
if (!_local9.includeInLayout){
} else {
_local10 = _local9.height;
_local6 = _local9.percentHeight;
_local8 = (_local8 + _local10);
if (!isNaN(_local6)){
_local11 = Math.ceil(((_local6 / 100) * _arg2));
if (_local11 > _local10){
_local4 = true;
};
};
};
_local5++;
};
if (!_local4){
return;
};
_local7 = (_local7 - _local8);
var _local12:Boolean;
while (((_local12) && ((_local7 > 0)))) {
_local12 = false;
_local5 = 0;
while (_local5 < _local3) {
_local9 = IUIComponent(_arg1.getChildAt(_local5));
_local10 = _local9.height;
_local6 = _local9.percentHeight;
if (((((!(isNaN(_local6))) && (_local9.includeInLayout))) && ((_local10 < _local9.maxHeight)))){
_local11 = Math.ceil(((_local6 / 100) * _arg2));
if (_local11 > _local10){
_local9.setActualSize(_local9.width, (_local10 + 1));
_local7--;
_local12 = true;
if (_local7 == 0){
return;
};
};
};
_local5++;
};
};
}
public static function distributeExtraWidth(_arg1:Container, _arg2:Number):void{
var _local5:int;
var _local6:Number;
var _local9:IUIComponent;
var _local10:Number;
var _local11:Number;
var _local3:int = _arg1.numChildren;
var _local4:Boolean;
var _local7:Number = _arg2;
var _local8:Number = 0;
_local5 = 0;
while (_local5 < _local3) {
_local9 = IUIComponent(_arg1.getChildAt(_local5));
if (!_local9.includeInLayout){
} else {
_local10 = _local9.width;
_local6 = _local9.percentWidth;
_local8 = (_local8 + _local10);
if (!isNaN(_local6)){
_local11 = Math.ceil(((_local6 / 100) * _arg2));
if (_local11 > _local10){
_local4 = true;
};
};
};
_local5++;
};
if (!_local4){
return;
};
_local7 = (_local7 - _local8);
var _local12:Boolean;
while (((_local12) && ((_local7 > 0)))) {
_local12 = false;
_local5 = 0;
while (_local5 < _local3) {
_local9 = IUIComponent(_arg1.getChildAt(_local5));
_local10 = _local9.width;
_local6 = _local9.percentWidth;
if (((((!(isNaN(_local6))) && (_local9.includeInLayout))) && ((_local10 < _local9.maxWidth)))){
_local11 = Math.ceil(((_local6 / 100) * _arg2));
if (_local11 > _local10){
_local9.setActualSize((_local10 + 1), _local9.height);
_local7--;
_local12 = true;
if (_local7 == 0){
return;
};
};
};
_local5++;
};
};
}
public static function flexChildrenProportionally(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array):Number{
var _local6:Number;
var _local7:Boolean;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local5:int = _arg4.length;
var _local8:Number = (_arg2 - ((_arg1 * _arg3) / 100));
if (_local8 > 0){
_arg2 = (_arg2 - _local8);
};
do {
_local6 = 0;
_local7 = true;
_local9 = (_arg2 / _arg3);
_local10 = 0;
while (_local10 < _local5) {
_local11 = _arg4[_local10];
_local12 = (_local11.percent * _local9);
if (_local12 < _local11.min){
_local13 = _local11.min;
_local11.size = _local13;
--_local5;
_arg4[_local10] = _arg4[_local5];
_arg4[_local5] = _local11;
_arg3 = (_arg3 - _local11.percent);
_arg2 = (_arg2 - _local13);
_local7 = false;
break;
} else {
if (_local12 > _local11.max){
_local14 = _local11.max;
_local11.size = _local14;
--_local5;
_arg4[_local10] = _arg4[_local5];
_arg4[_local5] = _local11;
_arg3 = (_arg3 - _local11.percent);
_arg2 = (_arg2 - _local14);
_local7 = false;
break;
} else {
_local11.size = _local12;
_local6 = (_local6 + _local12);
};
};
_local10++;
};
} while (!(_local7));
return (Math.max(0, Math.floor((_arg2 - _local6))));
}
public static function flexChildHeightsProportionally(_arg1:Container, _arg2:Number, _arg3:Number):Number{
var _local7:FlexChildInfo;
var _local8:IUIComponent;
var _local9:int;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local4:Number = _arg2;
var _local5:Number = 0;
var _local6:Array = [];
var _local10:int = _arg1.numChildren;
_local9 = 0;
while (_local9 < _local10) {
_local8 = IUIComponent(_arg1.getChildAt(_local9));
_local11 = _local8.percentWidth;
_local12 = _local8.percentHeight;
if (((!(isNaN(_local11))) && (_local8.includeInLayout))){
_local13 = Math.max(_local8.minWidth, Math.min(_local8.maxWidth, ((_local11)>=100) ? _arg3 : ((_arg3 * _local11) / 100)));
} else {
_local13 = _local8.getExplicitOrMeasuredWidth();
};
if (((!(isNaN(_local12))) && (_local8.includeInLayout))){
_local5 = (_local5 + _local12);
_local7 = new FlexChildInfo();
_local7.percent = _local12;
_local7.min = _local8.minHeight;
_local7.max = _local8.maxHeight;
_local7.width = _local13;
_local7.child = _local8;
_local6.push(_local7);
} else {
_local14 = _local8.getExplicitOrMeasuredHeight();
if ((((_local8.scaleX == 1)) && ((_local8.scaleY == 1)))){
_local8.setActualSize(Math.floor(_local13), Math.floor(_local14));
} else {
_local8.setActualSize(_local13, _local14);
};
if (_local8.includeInLayout){
_local4 = (_local4 - _local8.height);
};
};
_local9++;
};
if (_local5){
_local4 = flexChildrenProportionally(_arg2, _local4, _local5, _local6);
_local10 = _local6.length;
_local9 = 0;
while (_local9 < _local10) {
_local7 = _local6[_local9];
_local8 = _local7.child;
if ((((_local8.scaleX == 1)) && ((_local8.scaleY == 1)))){
_local8.setActualSize(Math.floor(_local7.width), Math.floor(_local7.size));
} else {
_local8.setActualSize(_local7.width, _local7.size);
};
_local9++;
};
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
distributeExtraHeight(_arg1, _arg2);
};
};
return (_local4);
}
}
}//package mx.containers.utilityClasses
Section 545
//FlexChildInfo (mx.containers.utilityClasses.FlexChildInfo)
package mx.containers.utilityClasses {
import mx.core.*;
public class FlexChildInfo {
public var flex:Number;// = 0
public var preferred:Number;// = 0
public var percent:Number;
public var width:Number;
public var height:Number;
public var size:Number;// = 0
public var max:Number;
public var min:Number;
public var child:IUIComponent;
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.containers.utilityClasses
Section 546
//IConstraintLayout (mx.containers.utilityClasses.IConstraintLayout)
package mx.containers.utilityClasses {
public interface IConstraintLayout {
function get constraintColumns():Array;
function set constraintRows(_arg1:Array):void;
function get constraintRows():Array;
function set constraintColumns(_arg1:Array):void;
}
}//package mx.containers.utilityClasses
Section 547
//Layout (mx.containers.utilityClasses.Layout)
package mx.containers.utilityClasses {
import mx.core.*;
import mx.resources.*;
public class Layout {
private var _target:Container;
protected var resourceManager:IResourceManager;
mx_internal static const VERSION:String = "3.0.0.0";
public function Layout(){
resourceManager = ResourceManager.getInstance();
super();
}
public function get target():Container{
return (_target);
}
public function set target(_arg1:Container):void{
_target = _arg1;
}
public function measure():void{
}
public function updateDisplayList(_arg1:Number, _arg2:Number):void{
}
}
}//package mx.containers.utilityClasses
Section 548
//BoxDirection (mx.containers.BoxDirection)
package mx.containers {
public final class BoxDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.containers
Section 549
//DataGridListData (mx.controls.dataGridClasses.DataGridListData)
package mx.controls.dataGridClasses {
import mx.core.*;
import mx.controls.listClasses.*;
public class DataGridListData extends BaseListData {
public var dataField:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function DataGridListData(_arg1:String, _arg2:String, _arg3:int, _arg4:String, _arg5:IUIComponent, _arg6:int=0){
super(_arg1, _arg4, _arg5, _arg6, _arg3);
this.dataField = _arg2;
}
}
}//package mx.controls.dataGridClasses
Section 550
//BaseListData (mx.controls.listClasses.BaseListData)
package mx.controls.listClasses {
import mx.core.*;
public class BaseListData {
private var _uid:String;
public var owner:IUIComponent;
public var label:String;
public var rowIndex:int;
public var columnIndex:int;
mx_internal static const VERSION:String = "3.0.0.0";
public function BaseListData(_arg1:String, _arg2:String, _arg3:IUIComponent, _arg4:int=0, _arg5:int=0){
this.label = _arg1;
this.uid = _arg2;
this.owner = _arg3;
this.rowIndex = _arg4;
this.columnIndex = _arg5;
}
public function set uid(_arg1:String):void{
_uid = _arg1;
}
public function get uid():String{
return (_uid);
}
}
}//package mx.controls.listClasses
Section 551
//IDropInListItemRenderer (mx.controls.listClasses.IDropInListItemRenderer)
package mx.controls.listClasses {
public interface IDropInListItemRenderer {
function get listData():BaseListData;
function set listData(_arg1:BaseListData):void;
}
}//package mx.controls.listClasses
Section 552
//IListItemRenderer (mx.controls.listClasses.IListItemRenderer)
package mx.controls.listClasses {
import mx.core.*;
import flash.events.*;
import mx.managers.*;
import mx.styles.*;
public interface IListItemRenderer extends IDataRenderer, IEventDispatcher, IFlexDisplayObject, ILayoutManagerClient, ISimpleStyleClient, IUIComponent {
}
}//package mx.controls.listClasses
Section 553
//ScrollBar (mx.controls.scrollClasses.ScrollBar)
package mx.controls.scrollClasses {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.geom.*;
import mx.styles.*;
import mx.controls.*;
import flash.utils.*;
import flash.ui.*;
public class ScrollBar extends UIComponent {
private var _direction:String;// = "vertical"
private var _pageScrollSize:Number;// = 0
mx_internal var scrollTrack:Button;
mx_internal var downArrow:Button;
mx_internal var scrollThumb:ScrollThumb;
private var trackScrollRepeatDirection:int;
private var _minScrollPosition:Number;// = 0
private var trackPosition:Number;
private var _pageSize:Number;// = 0
mx_internal var _minHeight:Number;// = 32
private var _maxScrollPosition:Number;// = 0
private var trackScrollTimer:Timer;
mx_internal var upArrow:Button;
private var _lineScrollSize:Number;// = 1
private var _scrollPosition:Number;// = 0
private var trackScrolling:Boolean;// = false
mx_internal var isScrolling:Boolean;
mx_internal var oldPosition:Number;
mx_internal var _minWidth:Number;// = 16
mx_internal static const VERSION:String = "3.0.0.0";
public static const THICKNESS:Number = 16;
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
invalidateDisplayList();
}
public function set lineScrollSize(_arg1:Number):void{
_lineScrollSize = _arg1;
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
mx_internal function dispatchScrollEvent(_arg1:Number, _arg2:String):void{
var _local3:ScrollEvent = new ScrollEvent(ScrollEvent.SCROLL);
_local3.detail = _arg2;
_local3.position = scrollPosition;
_local3.delta = (scrollPosition - _arg1);
_local3.direction = direction;
dispatchEvent(_local3);
}
private function downArrow_buttonDownHandler(_arg1:FlexEvent):void{
if (isNaN(oldPosition)){
oldPosition = scrollPosition;
};
lineScroll(1);
}
private function scrollTrack_mouseDownHandler(_arg1:MouseEvent):void{
if (!(((_arg1.target == this)) || ((_arg1.target == scrollTrack)))){
return;
};
trackScrolling = true;
systemManager.addEventListener(MouseEvent.MOUSE_UP, scrollTrack_mouseUpHandler, true);
systemManager.addEventListener(MouseEvent.MOUSE_MOVE, scrollTrack_mouseMoveHandler, true);
systemManager.stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_scrollTrack_mouseMoveHandler);
systemManager.stage.addEventListener(Event.MOUSE_LEAVE, scrollTrack_mouseLeaveHandler);
var _local2:Point = new Point(_arg1.localX, _arg1.localY);
_local2 = _arg1.target.localToGlobal(_local2);
_local2 = globalToLocal(_local2);
trackPosition = _local2.y;
if (isNaN(oldPosition)){
oldPosition = scrollPosition;
};
trackScrollRepeatDirection = (((scrollThumb.y + scrollThumb.height) < _local2.y)) ? 1 : ((scrollThumb.y > _local2.y)) ? -1 : 0;
pageScroll(trackScrollRepeatDirection);
if (!trackScrollTimer){
trackScrollTimer = new Timer(getStyle("repeatDelay"), 1);
trackScrollTimer.addEventListener(TimerEvent.TIMER, trackScrollTimerHandler);
};
trackScrollTimer.start();
}
public function set minScrollPosition(_arg1:Number):void{
_minScrollPosition = _arg1;
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
mx_internal function get linePlusDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.LINE_DOWN : ScrollEventDetail.LINE_RIGHT);
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
protected function get thumbStyleFilters():Object{
return (null);
}
override public function set doubleClickEnabled(_arg1:Boolean):void{
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
private function stage_scrollTrack_mouseMoveHandler(_arg1:MouseEvent):void{
if (_arg1.target != stage){
return;
};
scrollTrack_mouseMoveHandler(_arg1);
}
mx_internal function get virtualHeight():Number{
return (unscaledHeight);
}
public function set scrollPosition(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_scrollPosition = _arg1;
if (scrollThumb){
if (!cacheAsBitmap){
cacheHeuristic = (scrollThumb.cacheHeuristic = true);
};
if (!isScrolling){
_arg1 = Math.min(_arg1, maxScrollPosition);
_arg1 = Math.max(_arg1, minScrollPosition);
_local2 = (maxScrollPosition - minScrollPosition);
_local3 = ((((_local2 == 0)) || (isNaN(_local2)))) ? 0 : ((((_arg1 - minScrollPosition) * (trackHeight - scrollThumb.height)) / _local2) + trackY);
_local4 = (((virtualWidth - scrollThumb.width) / 2) + getStyle("thumbOffset"));
scrollThumb.move(Math.round(_local4), Math.round(_local3));
};
};
}
protected function get downArrowStyleFilters():Object{
return (null);
}
public function get pageSize():Number{
return (_pageSize);
}
public function set pageScrollSize(_arg1:Number):void{
_pageScrollSize = _arg1;
}
public function set maxScrollPosition(_arg1:Number):void{
_maxScrollPosition = _arg1;
}
mx_internal function pageScroll(_arg1:int):void{
var _local4:Number;
var _local5:String;
var _local2:Number = ((_pageScrollSize)!=0) ? _pageScrollSize : pageSize;
var _local3:Number = (_scrollPosition + (_arg1 * _local2));
if (_local3 > maxScrollPosition){
_local3 = maxScrollPosition;
} else {
if (_local3 < minScrollPosition){
_local3 = minScrollPosition;
};
};
if (_local3 != scrollPosition){
_local4 = scrollPosition;
scrollPosition = _local3;
_local5 = ((_arg1 < 0)) ? pageMinusDetail : pagePlusDetail;
dispatchScrollEvent(_local4, _local5);
};
}
override protected function createChildren():void{
super.createChildren();
if (!scrollTrack){
scrollTrack = new Button();
scrollTrack.focusEnabled = false;
scrollTrack.skinName = "trackSkin";
scrollTrack.upSkinName = "trackUpSkin";
scrollTrack.overSkinName = "trackOverSkin";
scrollTrack.downSkinName = "trackDownSkin";
scrollTrack.disabledSkinName = "trackDisabledSkin";
if ((scrollTrack is ISimpleStyleClient)){
ISimpleStyleClient(scrollTrack).styleName = this;
};
addChild(scrollTrack);
scrollTrack.validateProperties();
};
if (!upArrow){
upArrow = new Button();
upArrow.enabled = false;
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
upArrow.upSkinName = "upArrowUpSkin";
upArrow.overSkinName = "upArrowOverSkin";
upArrow.downSkinName = "upArrowDownSkin";
upArrow.disabledSkinName = "upArrowDisabledSkin";
upArrow.skinName = "upArrowSkin";
upArrow.upIconName = "";
upArrow.overIconName = "";
upArrow.downIconName = "";
upArrow.disabledIconName = "";
addChild(upArrow);
upArrow.styleName = new StyleProxy(this, upArrowStyleFilters);
upArrow.validateProperties();
upArrow.addEventListener(FlexEvent.BUTTON_DOWN, upArrow_buttonDownHandler);
};
if (!downArrow){
downArrow = new Button();
downArrow.enabled = false;
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
downArrow.upSkinName = "downArrowUpSkin";
downArrow.overSkinName = "downArrowOverSkin";
downArrow.downSkinName = "downArrowDownSkin";
downArrow.disabledSkinName = "downArrowDisabledSkin";
downArrow.skinName = "downArrowSkin";
downArrow.upIconName = "";
downArrow.overIconName = "";
downArrow.downIconName = "";
downArrow.disabledIconName = "";
addChild(downArrow);
downArrow.styleName = new StyleProxy(this, downArrowStyleFilters);
downArrow.validateProperties();
downArrow.addEventListener(FlexEvent.BUTTON_DOWN, downArrow_buttonDownHandler);
};
}
private function scrollTrack_mouseOverHandler(_arg1:MouseEvent):void{
if (!(((_arg1.target == this)) || ((_arg1.target == scrollTrack)))){
return;
};
if (trackScrolling){
trackScrollTimer.start();
};
}
private function get minDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.AT_TOP : ScrollEventDetail.AT_LEFT);
}
mx_internal function isScrollBarKey(_arg1:uint):Boolean{
var _local2:Number;
if (_arg1 == Keyboard.HOME){
if (scrollPosition != 0){
_local2 = scrollPosition;
scrollPosition = 0;
dispatchScrollEvent(_local2, minDetail);
};
return (true);
} else {
if (_arg1 == Keyboard.END){
if (scrollPosition < maxScrollPosition){
_local2 = scrollPosition;
scrollPosition = maxScrollPosition;
dispatchScrollEvent(_local2, maxDetail);
};
return (true);
};
};
return (false);
}
mx_internal function get lineMinusDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.LINE_UP : ScrollEventDetail.LINE_LEFT);
}
mx_internal function get pageMinusDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.PAGE_UP : ScrollEventDetail.PAGE_LEFT);
}
private function get maxDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.AT_BOTTOM : ScrollEventDetail.AT_RIGHT);
}
private function scrollTrack_mouseLeaveHandler(_arg1:Event):void{
trackScrolling = false;
systemManager.removeEventListener(MouseEvent.MOUSE_UP, scrollTrack_mouseUpHandler, true);
systemManager.removeEventListener(MouseEvent.MOUSE_MOVE, scrollTrack_mouseMoveHandler, true);
systemManager.stage.removeEventListener(MouseEvent.MOUSE_MOVE, stage_scrollTrack_mouseMoveHandler);
systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, scrollTrack_mouseLeaveHandler);
if (trackScrollTimer){
trackScrollTimer.reset();
};
if (_arg1.target != scrollTrack){
return;
};
var _local2:String = ((oldPosition > scrollPosition)) ? pageMinusDetail : pagePlusDetail;
dispatchScrollEvent(oldPosition, _local2);
oldPosition = NaN;
}
protected function get upArrowStyleFilters():Object{
return (null);
}
private function get trackHeight():Number{
return ((virtualHeight - (upArrow.getExplicitOrMeasuredHeight() + downArrow.getExplicitOrMeasuredHeight())));
}
public function get pageScrollSize():Number{
return (_pageScrollSize);
}
override protected function measure():void{
super.measure();
upArrow.validateSize();
downArrow.validateSize();
scrollTrack.validateSize();
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
_minWidth = (scrollThumb) ? scrollThumb.getExplicitOrMeasuredWidth() : 0;
_minWidth = Math.max(scrollTrack.getExplicitOrMeasuredWidth(), upArrow.getExplicitOrMeasuredWidth(), downArrow.getExplicitOrMeasuredWidth(), _minWidth);
} else {
_minWidth = upArrow.getExplicitOrMeasuredWidth();
};
_minHeight = (upArrow.getExplicitOrMeasuredHeight() + downArrow.getExplicitOrMeasuredHeight());
}
mx_internal function lineScroll(_arg1:int):void{
var _local4:Number;
var _local5:String;
var _local2:Number = _lineScrollSize;
var _local3:Number = (_scrollPosition + (_arg1 * _local2));
if (_local3 > maxScrollPosition){
_local3 = maxScrollPosition;
} else {
if (_local3 < minScrollPosition){
_local3 = minScrollPosition;
};
};
if (_local3 != scrollPosition){
_local4 = scrollPosition;
scrollPosition = _local3;
_local5 = ((_arg1 < 0)) ? lineMinusDetail : linePlusDetail;
dispatchScrollEvent(_local4, _local5);
};
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
var _local5:Number;
this.pageSize = _arg1;
_pageScrollSize = ((_arg4)>0) ? _arg4 : _arg1;
this.minScrollPosition = Math.max(_arg2, 0);
this.maxScrollPosition = Math.max(_arg3, 0);
_scrollPosition = Math.max(this.minScrollPosition, _scrollPosition);
_scrollPosition = Math.min(this.maxScrollPosition, _scrollPosition);
if (((((this.maxScrollPosition - this.minScrollPosition) > 0)) && (enabled))){
upArrow.enabled = true;
downArrow.enabled = true;
scrollTrack.enabled = true;
addEventListener(MouseEvent.MOUSE_DOWN, scrollTrack_mouseDownHandler);
addEventListener(MouseEvent.MOUSE_OVER, scrollTrack_mouseOverHandler);
addEventListener(MouseEvent.MOUSE_OUT, scrollTrack_mouseOutHandler);
if (!scrollThumb){
scrollThumb = new ScrollThumb();
scrollThumb.focusEnabled = false;
addChildAt(scrollThumb, getChildIndex(downArrow));
scrollThumb.styleName = new StyleProxy(this, thumbStyleFilters);
scrollThumb.upSkinName = "thumbUpSkin";
scrollThumb.overSkinName = "thumbOverSkin";
scrollThumb.downSkinName = "thumbDownSkin";
scrollThumb.iconName = "thumbIcon";
scrollThumb.skinName = "thumbSkin";
};
_local5 = ((trackHeight < 0)) ? 0 : Math.round(((_arg1 / ((this.maxScrollPosition - this.minScrollPosition) + _arg1)) * trackHeight));
if (_local5 < scrollThumb.minHeight){
if (trackHeight < scrollThumb.minHeight){
scrollThumb.visible = false;
} else {
_local5 = scrollThumb.minHeight;
scrollThumb.visible = true;
scrollThumb.setActualSize(scrollThumb.measuredWidth, scrollThumb.minHeight);
};
} else {
scrollThumb.visible = true;
scrollThumb.setActualSize(scrollThumb.measuredWidth, _local5);
};
scrollThumb.setRange((upArrow.getExplicitOrMeasuredHeight() + 0), ((virtualHeight - downArrow.getExplicitOrMeasuredHeight()) - scrollThumb.height), this.minScrollPosition, this.maxScrollPosition);
scrollPosition = Math.max(Math.min(scrollPosition, this.maxScrollPosition), this.minScrollPosition);
} else {
upArrow.enabled = false;
downArrow.enabled = false;
scrollTrack.enabled = false;
if (scrollThumb){
scrollThumb.visible = false;
};
};
}
private function trackScrollTimerHandler(_arg1:Event):void{
if (trackScrollRepeatDirection == 1){
if ((scrollThumb.y + scrollThumb.height) > trackPosition){
return;
};
};
if (trackScrollRepeatDirection == -1){
if (scrollThumb.y < trackPosition){
return;
};
};
pageScroll(trackScrollRepeatDirection);
if (((trackScrollTimer) && ((trackScrollTimer.repeatCount == 1)))){
trackScrollTimer.delay = getStyle("repeatInterval");
trackScrollTimer.repeatCount = 0;
};
}
private function upArrow_buttonDownHandler(_arg1:FlexEvent):void{
if (isNaN(oldPosition)){
oldPosition = scrollPosition;
};
lineScroll(-1);
}
public function set pageSize(_arg1:Number):void{
_pageSize = _arg1;
}
private function get trackY():Number{
return (upArrow.getExplicitOrMeasuredHeight());
}
private function scrollTrack_mouseOutHandler(_arg1:MouseEvent):void{
if (trackScrolling){
trackScrollTimer.stop();
};
}
private function scrollTrack_mouseUpHandler(_arg1:MouseEvent):void{
scrollTrack_mouseLeaveHandler(_arg1);
}
private function scrollTrack_mouseMoveHandler(_arg1:MouseEvent):void{
var _local2:Point;
if (trackScrolling){
_local2 = new Point(_arg1.stageX, _arg1.stageY);
_local2 = globalToLocal(_local2);
trackPosition = _local2.y;
};
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
if ($height == 1){
return;
};
if (!upArrow){
return;
};
super.updateDisplayList(_arg1, _arg2);
if (cacheAsBitmap){
cacheHeuristic = (scrollThumb.cacheHeuristic = false);
};
upArrow.setActualSize(upArrow.getExplicitOrMeasuredWidth(), upArrow.getExplicitOrMeasuredHeight());
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
upArrow.move(((virtualWidth - upArrow.width) / 2), 0);
} else {
upArrow.move(0, 0);
};
scrollTrack.setActualSize(scrollTrack.getExplicitOrMeasuredWidth(), virtualHeight);
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
scrollTrack.x = ((virtualWidth - scrollTrack.width) / 2);
};
scrollTrack.y = 0;
downArrow.setActualSize(downArrow.getExplicitOrMeasuredWidth(), downArrow.getExplicitOrMeasuredHeight());
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
downArrow.move(((virtualWidth - downArrow.width) / 2), (virtualHeight - downArrow.getExplicitOrMeasuredHeight()));
} else {
downArrow.move(0, (virtualHeight - downArrow.getExplicitOrMeasuredHeight()));
};
setScrollProperties(pageSize, minScrollPosition, maxScrollPosition, _pageScrollSize);
scrollPosition = _scrollPosition;
}
mx_internal function get pagePlusDetail():String{
return (((direction == ScrollBarDirection.VERTICAL)) ? ScrollEventDetail.PAGE_DOWN : ScrollEventDetail.PAGE_RIGHT);
}
mx_internal function get virtualWidth():Number{
return (unscaledWidth);
}
public function set direction(_arg1:String):void{
_direction = _arg1;
invalidateSize();
invalidateDisplayList();
dispatchEvent(new Event("directionChanged"));
}
public function get direction():String{
return (_direction);
}
}
}//package mx.controls.scrollClasses
Section 554
//ScrollBarDirection (mx.controls.scrollClasses.ScrollBarDirection)
package mx.controls.scrollClasses {
public final class ScrollBarDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.controls.scrollClasses
Section 555
//ScrollThumb (mx.controls.scrollClasses.ScrollThumb)
package mx.controls.scrollClasses {
import mx.events.*;
import flash.events.*;
import flash.geom.*;
import mx.controls.*;
public class ScrollThumb extends Button {
private var lastY:Number;
private var datamin:Number;
private var ymax:Number;
private var ymin:Number;
private var datamax:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public function ScrollThumb(){
explicitMinHeight = 10;
stickyHighlighting = true;
}
private function stopDragThumb():void{
var _local1:ScrollBar = ScrollBar(parent);
_local1.isScrolling = false;
_local1.dispatchScrollEvent(_local1.oldPosition, ScrollEventDetail.THUMB_POSITION);
_local1.oldPosition = NaN;
systemManager.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true);
systemManager.stage.removeEventListener(MouseEvent.MOUSE_MOVE, stage_mouseMoveHandler);
}
override protected function mouseDownHandler(_arg1:MouseEvent):void{
super.mouseDownHandler(_arg1);
var _local2:ScrollBar = ScrollBar(parent);
_local2.oldPosition = _local2.scrollPosition;
lastY = _arg1.localY;
systemManager.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true);
systemManager.stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_mouseMoveHandler);
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
if (ymin == ymax){
return;
};
var _local2:Point = new Point(_arg1.stageX, _arg1.stageY);
_local2 = globalToLocal(_local2);
var _local3:Number = (_local2.y - lastY);
_local3 = (_local3 + y);
if (_local3 < ymin){
_local3 = ymin;
} else {
if (_local3 > ymax){
_local3 = ymax;
};
};
var _local4:ScrollBar = ScrollBar(parent);
_local4.isScrolling = true;
$y = _local3;
var _local5:Number = _local4.scrollPosition;
var _local6:Number = (Math.round((((datamax - datamin) * (y - ymin)) / (ymax - ymin))) + datamin);
_local4.scrollPosition = _local6;
_local4.dispatchScrollEvent(_local5, ScrollEventDetail.THUMB_TRACK);
_arg1.updateAfterEvent();
}
override mx_internal function buttonReleased():void{
super.buttonReleased();
stopDragThumb();
}
private function stage_mouseMoveHandler(_arg1:MouseEvent):void{
if (_arg1.target != stage){
return;
};
mouseMoveHandler(_arg1);
}
mx_internal function setRange(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
this.ymin = _arg1;
this.ymax = _arg2;
this.datamin = _arg3;
this.datamax = _arg4;
}
}
}//package mx.controls.scrollClasses
Section 556
//Button (mx.controls.Button)
package mx.controls {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import mx.styles.*;
import flash.text.*;
import mx.controls.listClasses.*;
import flash.utils.*;
import flash.ui.*;
import mx.controls.dataGridClasses.*;
public class Button extends UIComponent implements IDataRenderer, IDropInListItemRenderer, IFocusManagerComponent, IListItemRenderer, IFontContextComponent, IButton {
mx_internal var _emphasized:Boolean;// = false
mx_internal var extraSpacing:Number;
private var icons:Array;
public var selectedField:String;// = null
private var labelChanged:Boolean;// = false
private var skinMeasuredWidth:Number;
mx_internal var checkedDefaultSkin:Boolean;// = false
private var autoRepeatTimer:Timer;
mx_internal var disabledIconName:String;// = "disabledIcon"
mx_internal var disabledSkinName:String;// = "disabledSkin"
mx_internal var checkedDefaultIcon:Boolean;// = false
public var stickyHighlighting:Boolean;// = false
private var enabledChanged:Boolean;// = false
mx_internal var selectedUpIconName:String;// = "selectedUpIcon"
mx_internal var selectedUpSkinName:String;// = "selectedUpSkin"
mx_internal var upIconName:String;// = "upIcon"
mx_internal var upSkinName:String;// = "upSkin"
mx_internal var centerContent:Boolean;// = true
mx_internal var buttonOffset:Number;// = 0
private var skinMeasuredHeight:Number;
private var oldUnscaledWidth:Number;
mx_internal var downIconName:String;// = "downIcon"
mx_internal var _labelPlacement:String;// = "right"
mx_internal var downSkinName:String;// = "downSkin"
mx_internal var _toggle:Boolean;// = false
private var _phase:String;// = "up"
private var toolTipSet:Boolean;// = false
private var _data:Object;
mx_internal var currentIcon:IFlexDisplayObject;
mx_internal var currentSkin:IFlexDisplayObject;
mx_internal var overIconName:String;// = "overIcon"
mx_internal var selectedDownIconName:String;// = "selectedDownIcon"
mx_internal var overSkinName:String;// = "overSkin"
mx_internal var iconName:String;// = "icon"
mx_internal var skinName:String;// = "skin"
mx_internal var selectedDownSkinName:String;// = "selectedDownSkin"
private var skins:Array;
private var selectedSet:Boolean;
private var _autoRepeat:Boolean;// = false
private var styleChangedFlag:Boolean;// = true
mx_internal var selectedOverIconName:String;// = "selectedOverIcon"
private var _listData:BaseListData;
mx_internal var selectedOverSkinName:String;// = "selectedOverSkin"
protected var textField:IUITextField;
private var labelSet:Boolean;
mx_internal var defaultIconUsesStates:Boolean;// = false
mx_internal var defaultSkinUsesStates:Boolean;// = false
mx_internal var toggleChanged:Boolean;// = false
private var emphasizedChanged:Boolean;// = false
private var _label:String;// = ""
mx_internal var _selected:Boolean;// = false
mx_internal var selectedDisabledIconName:String;// = "selectedDisabledIcon"
mx_internal var selectedDisabledSkinName:String;// = "selectedDisabledSkin"
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var createAccessibilityImplementation:Function;
mx_internal static var TEXT_WIDTH_PADDING:Number = (UITextField.TEXT_WIDTH_PADDING + 1);
public function Button(){
skins = [];
icons = [];
extraSpacing = (10 + 10);
super();
mouseChildren = false;
addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
addEventListener(MouseEvent.CLICK, clickHandler);
}
private function previousVersion_measure():void{
var bm:EdgeMetrics;
var lineMetrics:TextLineMetrics;
var paddingLeft:Number;
var paddingRight:Number;
var paddingTop:Number;
var paddingBottom:Number;
var horizontalGap:Number;
super.measure();
var textWidth:Number = 0;
var textHeight:Number = 0;
if (label){
lineMetrics = measureText(label);
textWidth = lineMetrics.width;
textHeight = lineMetrics.height;
paddingLeft = getStyle("paddingLeft");
paddingRight = getStyle("paddingRight");
paddingTop = getStyle("paddingTop");
paddingBottom = getStyle("paddingBottom");
textWidth = (textWidth + ((paddingLeft + paddingRight) + getStyle("textIndent")));
textHeight = (textHeight + (paddingTop + paddingBottom));
};
try {
bm = currentSkin["borderMetrics"];
} catch(e:Error) {
bm = new EdgeMetrics(3, 3, 3, 3);
};
var tempCurrentIcon:IFlexDisplayObject = getCurrentIcon();
var iconWidth:Number = (tempCurrentIcon) ? tempCurrentIcon.width : 0;
var iconHeight:Number = (tempCurrentIcon) ? tempCurrentIcon.height : 0;
var w:Number = 0;
var h:Number = 0;
if ((((labelPlacement == ButtonLabelPlacement.LEFT)) || ((labelPlacement == ButtonLabelPlacement.RIGHT)))){
w = (textWidth + iconWidth);
if (iconWidth != 0){
horizontalGap = getStyle("horizontalGap");
w = (w + (horizontalGap - 2));
};
h = Math.max(textHeight, (iconHeight + 6));
} else {
w = Math.max(textWidth, iconWidth);
h = (textHeight + iconHeight);
if (iconHeight != 0){
h = (h + getStyle("verticalGap"));
};
};
if (bm){
w = (w + (bm.left + bm.right));
h = (h + (bm.top + bm.bottom));
};
if (((label) && (!((label.length == 0))))){
w = (w + extraSpacing);
} else {
w = (w + 6);
};
if (((currentSkin) && (((isNaN(skinMeasuredWidth)) || (isNaN(skinMeasuredHeight)))))){
skinMeasuredWidth = currentSkin.measuredWidth;
skinMeasuredHeight = currentSkin.measuredHeight;
};
if (!isNaN(skinMeasuredWidth)){
w = Math.max(skinMeasuredWidth, w);
};
if (!isNaN(skinMeasuredHeight)){
h = Math.max(skinMeasuredHeight, h);
};
measuredMinWidth = (measuredWidth = w);
measuredMinHeight = (measuredHeight = h);
}
public function get label():String{
return (_label);
}
mx_internal function getCurrentIconName():String{
var _local1:String;
if (!enabled){
_local1 = (selected) ? selectedDisabledIconName : disabledIconName;
} else {
if (phase == ButtonPhase.UP){
_local1 = (selected) ? selectedUpIconName : upIconName;
} else {
if (phase == ButtonPhase.OVER){
_local1 = (selected) ? selectedOverIconName : overIconName;
} else {
if (phase == ButtonPhase.DOWN){
_local1 = (selected) ? selectedDownIconName : downIconName;
};
};
};
};
return (_local1);
}
protected function mouseUpHandler(_arg1:MouseEvent):void{
if (!enabled){
return;
};
phase = ButtonPhase.OVER;
buttonReleased();
if (!toggle){
_arg1.updateAfterEvent();
};
}
override protected function adjustFocusRect(_arg1:DisplayObject=null):void{
super.adjustFocusRect((currentSkin) ? this : DisplayObject(currentIcon));
}
mx_internal function set phase(_arg1:String):void{
_phase = _arg1;
invalidateSize();
invalidateDisplayList();
}
mx_internal function viewIconForPhase(_arg1:String):IFlexDisplayObject{
var _local3:IFlexDisplayObject;
var _local4:Boolean;
var _local5:String;
var _local2:Class = Class(getStyle(_arg1));
if (!_local2){
_local2 = Class(getStyle(iconName));
if (defaultIconUsesStates){
_arg1 = iconName;
};
if (((!(checkedDefaultIcon)) && (_local2))){
_local3 = IFlexDisplayObject(new (_local2));
if (((!((_local3 is IProgrammaticSkin))) && ((_local3 is IStateClient)))){
defaultIconUsesStates = true;
_arg1 = iconName;
};
if (_local3){
checkedDefaultIcon = true;
};
};
};
_local3 = IFlexDisplayObject(getChildByName(_arg1));
if (_local3 == null){
if (_local2 != null){
_local3 = IFlexDisplayObject(new (_local2));
_local3.name = _arg1;
if ((_local3 is ISimpleStyleClient)){
ISimpleStyleClient(_local3).styleName = this;
};
addChild(DisplayObject(_local3));
_local4 = false;
if ((_local3 is IInvalidating)){
IInvalidating(_local3).validateNow();
_local4 = true;
} else {
if ((_local3 is IProgrammaticSkin)){
IProgrammaticSkin(_local3).validateDisplayList();
_local4 = true;
};
};
if (((_local3) && ((_local3 is IUIComponent)))){
IUIComponent(_local3).enabled = enabled;
};
if (_local4){
_local3.setActualSize(_local3.measuredWidth, _local3.measuredHeight);
};
icons.push(_local3);
};
};
if (currentIcon != null){
currentIcon.visible = false;
};
currentIcon = _local3;
if (((defaultIconUsesStates) && ((currentIcon is IStateClient)))){
_local5 = "";
if (!enabled){
_local5 = (selected) ? "selectedDisabled" : "disabled";
} else {
if (phase == ButtonPhase.UP){
_local5 = (selected) ? "selectedUp" : "up";
} else {
if (phase == ButtonPhase.OVER){
_local5 = (selected) ? "selectedOver" : "over";
} else {
if (phase == ButtonPhase.DOWN){
_local5 = (selected) ? "selectedDown" : "down";
};
};
};
};
IStateClient(currentIcon).currentState = _local5;
};
if (currentIcon != null){
currentIcon.visible = true;
};
return (_local3);
}
mx_internal function viewSkinForPhase(_arg1:String, _arg2:String):void{
var _local4:IFlexDisplayObject;
var _local5:Number;
var _local6:ISimpleStyleClient;
var _local3:Class = Class(getStyle(_arg1));
if (!_local3){
_local3 = Class(getStyle(skinName));
if (defaultSkinUsesStates){
_arg1 = skinName;
};
if (((!(checkedDefaultSkin)) && (_local3))){
_local4 = IFlexDisplayObject(new (_local3));
if (((!((_local4 is IProgrammaticSkin))) && ((_local4 is IStateClient)))){
defaultSkinUsesStates = true;
_arg1 = skinName;
};
if (_local4){
checkedDefaultSkin = true;
};
};
};
_local4 = IFlexDisplayObject(getChildByName(_arg1));
if (!_local4){
if (_local3){
_local4 = IFlexDisplayObject(new (_local3));
_local4.name = _arg1;
_local6 = (_local4 as ISimpleStyleClient);
if (_local6){
_local6.styleName = this;
};
addChild(DisplayObject(_local4));
_local4.setActualSize(unscaledWidth, unscaledHeight);
if ((((_local4 is IInvalidating)) && (initialized))){
IInvalidating(_local4).validateNow();
} else {
if ((((_local4 is IProgrammaticSkin)) && (initialized))){
IProgrammaticSkin(_local4).validateDisplayList();
};
};
skins.push(_local4);
};
};
if (currentSkin){
currentSkin.visible = false;
};
currentSkin = _local4;
if (((defaultSkinUsesStates) && ((currentSkin is IStateClient)))){
IStateClient(currentSkin).currentState = _arg2;
};
if (currentSkin){
currentSkin.visible = true;
};
if (enabled){
if (phase == ButtonPhase.OVER){
_local5 = textField.getStyle("textRollOverColor");
} else {
if (phase == ButtonPhase.DOWN){
_local5 = textField.getStyle("textSelectedColor");
} else {
_local5 = textField.getStyle("color");
};
};
textField.setColor(_local5);
};
}
mx_internal function getTextField():IUITextField{
return (textField);
}
protected function rollOverHandler(_arg1:MouseEvent):void{
if (phase == ButtonPhase.UP){
if (_arg1.buttonDown){
return;
};
phase = ButtonPhase.OVER;
_arg1.updateAfterEvent();
} else {
if (phase == ButtonPhase.OVER){
phase = ButtonPhase.DOWN;
_arg1.updateAfterEvent();
if (autoRepeatTimer){
autoRepeatTimer.start();
};
};
};
}
override protected function createChildren():void{
super.createChildren();
if (!textField){
textField = IUITextField(createInFontContext(UITextField));
textField.styleName = this;
addChild(DisplayObject(textField));
};
}
mx_internal function setSelected(_arg1:Boolean, _arg2:Boolean=false):void{
if (_selected != _arg1){
_selected = _arg1;
invalidateDisplayList();
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
if (toggle){
dispatchEvent(new Event(Event.CHANGE));
};
} else {
if (((toggle) && (!(_arg2)))){
dispatchEvent(new Event(Event.CHANGE));
};
};
dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
};
}
private function autoRepeatTimer_timerDelayHandler(_arg1:Event):void{
if (!enabled){
return;
};
dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
if (autoRepeat){
autoRepeatTimer.reset();
autoRepeatTimer.removeEventListener(TimerEvent.TIMER, autoRepeatTimer_timerDelayHandler);
autoRepeatTimer.delay = getStyle("repeatInterval");
autoRepeatTimer.addEventListener(TimerEvent.TIMER, autoRepeatTimer_timerHandler);
autoRepeatTimer.start();
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set selected(_arg1:Boolean):void{
selectedSet = true;
setSelected(_arg1, true);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
super.focusOutHandler(_arg1);
if (phase != ButtonPhase.UP){
phase = ButtonPhase.UP;
};
}
public function get labelPlacement():String{
return (_labelPlacement);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
if (_arg1){
autoRepeatTimer = new Timer(1);
} else {
autoRepeatTimer = null;
};
}
mx_internal function changeIcons():void{
var _local1:int = icons.length;
var _local2:int;
while (_local2 < _local1) {
removeChild(icons[_local2]);
_local2++;
};
icons = [];
checkedDefaultIcon = false;
defaultIconUsesStates = false;
}
public function set data(_arg1:Object):void{
var _local2:*;
var _local3:*;
_data = _arg1;
if (((_listData) && ((_listData is DataGridListData)))){
_local2 = _data[DataGridListData(_listData).dataField];
_local3 = "";
} else {
if (_listData){
if (selectedField){
_local2 = _data[selectedField];
};
_local3 = _listData.label;
} else {
_local2 = _data;
};
};
if (((!((_local2 === undefined))) && (!(selectedSet)))){
selected = (_local2 as Boolean);
selectedSet = false;
};
if (((!((_local3 === undefined))) && (!(labelSet)))){
label = _local3;
labelSet = false;
};
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}
mx_internal function getCurrentIcon():IFlexDisplayObject{
var _local1:String = getCurrentIconName();
if (!_local1){
return (null);
};
return (viewIconForPhase(_local1));
}
public function get fontContext():IFlexModuleFactory{
return (moduleFactory);
}
public function get emphasized():Boolean{
return (_emphasized);
}
public function get listData():BaseListData{
return (_listData);
}
mx_internal function layoutContents(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
var _local20:TextLineMetrics;
var _local28:MoveEvent;
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
previousVersion_layoutContents(_arg1, _arg2, _arg3);
return;
};
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:Number = 0;
var _local9:Number = 0;
var _local10:Number = 0;
var _local11:Number = 0;
var _local12:Number = 0;
var _local13:Number = 0;
var _local14:Number = getStyle("paddingLeft");
var _local15:Number = getStyle("paddingRight");
var _local16:Number = getStyle("paddingTop");
var _local17:Number = getStyle("paddingBottom");
var _local18:Number = 0;
var _local19:Number = 0;
if (label){
_local20 = measureText(label);
_local18 = (_local20.width + TEXT_WIDTH_PADDING);
_local19 = (_local20.height + UITextField.TEXT_HEIGHT_PADDING);
} else {
_local20 = measureText("Wj");
_local19 = (_local20.height + UITextField.TEXT_HEIGHT_PADDING);
};
var _local21:Number = (_arg3) ? buttonOffset : 0;
var _local22:String = getStyle("textAlign");
var _local23:Number = _arg1;
var _local24:Number = _arg2;
var _local25:EdgeMetrics = (((((currentSkin) && ((currentSkin is IBorder)))) && (!((currentSkin is IFlexAsset))))) ? IBorder(currentSkin).borderMetrics : null;
if (_local25){
_local23 = (_local23 - (_local25.left + _local25.right));
_local24 = (_local24 - (_local25.top + _local25.bottom));
};
if (currentIcon){
_local8 = currentIcon.width;
_local9 = currentIcon.height;
};
if ((((labelPlacement == ButtonLabelPlacement.LEFT)) || ((labelPlacement == ButtonLabelPlacement.RIGHT)))){
_local12 = getStyle("horizontalGap");
if ((((_local8 == 0)) || ((_local18 == 0)))){
_local12 = 0;
};
if (_local18 > 0){
_local4 = Math.max(Math.min(((((_local23 - _local8) - _local12) - _local14) - _local15), _local18), 0);
textField.width = _local4;
} else {
_local4 = 0;
textField.width = _local4;
};
_local5 = Math.min(_local24, _local19);
textField.height = _local5;
if (_local22 == "left"){
_local6 = (_local6 + _local14);
} else {
if (_local22 == "right"){
_local6 = (_local6 + ((((_local23 - _local4) - _local8) - _local12) - _local15));
} else {
_local6 = (_local6 + (((((((_local23 - _local4) - _local8) - _local12) - _local14) - _local15) / 2) + _local14));
};
};
if (labelPlacement == ButtonLabelPlacement.RIGHT){
_local6 = (_local6 + (_local8 + _local12));
_local10 = (_local6 - (_local8 + _local12));
} else {
_local10 = ((_local6 + _local4) + _local12);
};
_local11 = (((((_local24 - _local9) - _local16) - _local17) / 2) + _local16);
_local7 = (((((_local24 - _local5) - _local16) - _local17) / 2) + _local16);
} else {
_local13 = getStyle("verticalGap");
if ((((_local9 == 0)) || ((label == "")))){
_local13 = 0;
};
if (_local18 > 0){
_local4 = Math.max(((_local23 - _local14) - _local15), 0);
textField.width = _local4;
_local5 = Math.min(((((_local24 - _local9) - _local16) - _local17) - _local13), _local19);
textField.height = _local5;
} else {
_local4 = 0;
textField.width = _local4;
_local5 = 0;
textField.height = _local5;
};
_local6 = _local14;
if (_local22 == "left"){
_local10 = (_local10 + _local14);
} else {
if (_local22 == "right"){
_local10 = (_local10 + Math.max(((_local23 - _local8) - _local15), _local14));
} else {
_local10 = (_local10 + (((((_local23 - _local8) - _local14) - _local15) / 2) + _local14));
};
};
if (labelPlacement == ButtonLabelPlacement.TOP){
_local7 = (_local7 + (((((((_local24 - _local5) - _local9) - _local16) - _local17) - _local13) / 2) + _local16));
_local11 = (_local11 + ((_local7 + _local5) + _local13));
} else {
_local11 = (_local11 + (((((((_local24 - _local5) - _local9) - _local16) - _local17) - _local13) / 2) + _local16));
_local7 = (_local7 + ((_local11 + _local9) + _local13));
};
};
var _local26:Number = _local21;
var _local27:Number = _local21;
if (_local25){
_local26 = (_local26 + _local25.left);
_local27 = (_local27 + _local25.top);
};
textField.x = Math.round((_local6 + _local26));
textField.y = Math.round((_local7 + _local27));
if (currentIcon){
_local10 = (_local10 + _local26);
_local11 = (_local11 + _local27);
_local28 = new MoveEvent(MoveEvent.MOVE);
_local28.oldX = currentIcon.x;
_local28.oldY = currentIcon.y;
currentIcon.x = Math.round(_local10);
currentIcon.y = Math.round(_local11);
currentIcon.dispatchEvent(_local28);
};
if (currentSkin){
setChildIndex(DisplayObject(currentSkin), (numChildren - 1));
};
if (currentIcon){
setChildIndex(DisplayObject(currentIcon), (numChildren - 1));
};
if (textField){
setChildIndex(DisplayObject(textField), (numChildren - 1));
};
}
protected function mouseDownHandler(_arg1:MouseEvent):void{
if (!enabled){
return;
};
systemManager.addEventListener(MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);
systemManager.stage.addEventListener(Event.MOUSE_LEAVE, stage_mouseLeaveHandler);
buttonPressed();
_arg1.updateAfterEvent();
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
buttonPressed();
};
}
protected function rollOutHandler(_arg1:MouseEvent):void{
if (phase == ButtonPhase.OVER){
phase = ButtonPhase.UP;
_arg1.updateAfterEvent();
} else {
if ((((phase == ButtonPhase.DOWN)) && (!(stickyHighlighting)))){
phase = ButtonPhase.OVER;
_arg1.updateAfterEvent();
if (autoRepeatTimer){
autoRepeatTimer.stop();
};
};
};
}
mx_internal function get phase():String{
return (_phase);
}
override public function set enabled(_arg1:Boolean):void{
if (super.enabled == _arg1){
return;
};
super.enabled = _arg1;
enabledChanged = true;
invalidateProperties();
invalidateDisplayList();
}
override protected function measure():void{
var _local9:TextLineMetrics;
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
previousVersion_measure();
return;
};
super.measure();
var _local1:Number = 0;
var _local2:Number = 0;
if (label){
_local9 = measureText(label);
_local1 = (_local9.width + TEXT_WIDTH_PADDING);
_local2 = (_local9.height + UITextField.TEXT_HEIGHT_PADDING);
};
var _local3:IFlexDisplayObject = getCurrentIcon();
var _local4:Number = (_local3) ? _local3.width : 0;
var _local5:Number = (_local3) ? _local3.height : 0;
var _local6:Number = 0;
var _local7:Number = 0;
if ((((labelPlacement == ButtonLabelPlacement.LEFT)) || ((labelPlacement == ButtonLabelPlacement.RIGHT)))){
_local6 = (_local1 + _local4);
if (((_local1) && (_local4))){
_local6 = (_local6 + getStyle("horizontalGap"));
};
_local7 = Math.max(_local2, _local5);
} else {
_local6 = Math.max(_local1, _local4);
_local7 = (_local2 + _local5);
if (((_local2) && (_local5))){
_local7 = (_local7 + getStyle("verticalGap"));
};
};
if (((_local1) || (_local4))){
_local6 = (_local6 + (getStyle("paddingLeft") + getStyle("paddingRight")));
_local7 = (_local7 + (getStyle("paddingTop") + getStyle("paddingBottom")));
};
var _local8:EdgeMetrics = (((((currentSkin) && ((currentSkin is IBorder)))) && (!((currentSkin is IFlexAsset))))) ? IBorder(currentSkin).borderMetrics : null;
if (_local8){
_local6 = (_local6 + (_local8.left + _local8.right));
_local7 = (_local7 + (_local8.top + _local8.bottom));
};
if (((currentSkin) && (((isNaN(skinMeasuredWidth)) || (isNaN(skinMeasuredHeight)))))){
skinMeasuredWidth = currentSkin.measuredWidth;
skinMeasuredHeight = currentSkin.measuredHeight;
};
if (!isNaN(skinMeasuredWidth)){
_local6 = Math.max(skinMeasuredWidth, _local6);
};
if (!isNaN(skinMeasuredHeight)){
_local7 = Math.max(skinMeasuredHeight, _local7);
};
measuredMinWidth = (measuredWidth = _local6);
measuredMinHeight = (measuredHeight = _local7);
}
public function get toggle():Boolean{
return (_toggle);
}
mx_internal function buttonReleased():void{
systemManager.removeEventListener(MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);
systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, stage_mouseLeaveHandler);
if (autoRepeatTimer){
autoRepeatTimer.removeEventListener(TimerEvent.TIMER, autoRepeatTimer_timerDelayHandler);
autoRepeatTimer.removeEventListener(TimerEvent.TIMER, autoRepeatTimer_timerHandler);
autoRepeatTimer.reset();
};
}
mx_internal function buttonPressed():void{
phase = ButtonPhase.DOWN;
dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
if (autoRepeat){
autoRepeatTimer.delay = getStyle("repeatDelay");
autoRepeatTimer.addEventListener(TimerEvent.TIMER, autoRepeatTimer_timerDelayHandler);
autoRepeatTimer.start();
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
buttonReleased();
if (phase == ButtonPhase.DOWN){
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
phase = ButtonPhase.UP;
};
}
public function get selected():Boolean{
return (_selected);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidateSize();
invalidateDisplayList();
dispatchEvent(new Event("labelPlacementChanged"));
}
protected function clickHandler(_arg1:MouseEvent):void{
if (!enabled){
_arg1.stopImmediatePropagation();
return;
};
if (toggle){
setSelected(!(selected));
_arg1.updateAfterEvent();
};
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
public function set toggle(_arg1:Boolean):void{
_toggle = _arg1;
toggleChanged = true;
invalidateProperties();
invalidateDisplayList();
dispatchEvent(new Event("toggleChanged"));
}
override public function get baselinePosition():Number{
var _local1:String;
var _local2:TextLineMetrics;
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
_local1 = label;
if (!_local1){
_local1 = "Wj";
};
validateNow();
if (((!(label)) && ((((labelPlacement == ButtonLabelPlacement.TOP)) || ((labelPlacement == ButtonLabelPlacement.BOTTOM)))))){
_local2 = measureText(_local1);
return ((((measuredHeight - _local2.height) / 2) + _local2.ascent));
};
return ((textField.y + measureText(_local1).ascent));
};
if (!validateBaselinePosition()){
return (NaN);
};
return ((textField.y + textField.baselinePosition));
}
public function get data():Object{
return (_data);
}
public function set fontContext(_arg1:IFlexModuleFactory):void{
this.moduleFactory = _arg1;
}
mx_internal function viewSkin():void{
var _local1:String;
var _local2:String;
if (!enabled){
_local1 = (selected) ? selectedDisabledSkinName : disabledSkinName;
_local2 = (selected) ? "selectedDisabled" : "disabled";
} else {
if (phase == ButtonPhase.UP){
_local1 = (selected) ? selectedUpSkinName : upSkinName;
_local2 = (selected) ? "selectedUp" : "up";
} else {
if (phase == ButtonPhase.OVER){
_local1 = (selected) ? selectedOverSkinName : overSkinName;
_local2 = (selected) ? "selectedOver" : "over";
} else {
if (phase == ButtonPhase.DOWN){
_local1 = (selected) ? selectedDownSkinName : downSkinName;
_local2 = (selected) ? "selectedDown" : "down";
};
};
};
};
viewSkinForPhase(_local1, _local2);
}
override public function styleChanged(_arg1:String):void{
styleChangedFlag = true;
super.styleChanged(_arg1);
if (((!(_arg1)) || ((_arg1 == "styleName")))){
changeSkins();
changeIcons();
if (initialized){
viewSkin();
viewIcon();
};
} else {
if (_arg1.toLowerCase().indexOf("skin") != -1){
changeSkins();
} else {
if (_arg1.toLowerCase().indexOf("icon") != -1){
changeIcons();
invalidateSize();
};
};
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
emphasizedChanged = true;
invalidateDisplayList();
}
mx_internal function viewIcon():void{
var _local1:String = getCurrentIconName();
viewIconForPhase(_local1);
}
override public function set toolTip(_arg1:String):void{
super.toolTip = _arg1;
if (_arg1){
toolTipSet = true;
} else {
toolTipSet = false;
invalidateDisplayList();
};
}
override protected function commitProperties():void{
super.commitProperties();
if (((hasFontContextChanged()) && (!((textField == null))))){
removeChild(DisplayObject(textField));
textField = null;
};
if (!textField){
textField = IUITextField(createInFontContext(UITextField));
textField.styleName = this;
addChild(DisplayObject(textField));
enabledChanged = true;
toggleChanged = true;
};
if (!initialized){
viewSkin();
viewIcon();
};
if (enabledChanged){
textField.enabled = enabled;
if (((currentIcon) && ((currentIcon is IUIComponent)))){
IUIComponent(currentIcon).enabled = enabled;
};
enabledChanged = false;
};
if (toggleChanged){
if (!toggle){
selected = false;
};
toggleChanged = false;
};
}
mx_internal function changeSkins():void{
var _local1:int = skins.length;
var _local2:int;
while (_local2 < _local1) {
removeChild(skins[_local2]);
_local2++;
};
skins = [];
skinMeasuredWidth = NaN;
skinMeasuredHeight = NaN;
checkedDefaultSkin = false;
defaultSkinUsesStates = false;
if (((initialized) && ((FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)))){
viewSkin();
invalidateSize();
};
}
private function autoRepeatTimer_timerHandler(_arg1:Event):void{
if (!enabled){
return;
};
dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
}
private function previousVersion_layoutContents(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
var _local20:TextLineMetrics;
var _local28:Number;
var _local29:MoveEvent;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:Number = 0;
var _local8:Number = 0;
var _local9:Number = 0;
var _local10:Number = 0;
var _local11:Number = 0;
var _local12:Number = 2;
var _local13:Number = 2;
var _local14:Number = getStyle("paddingLeft");
var _local15:Number = getStyle("paddingRight");
var _local16:Number = getStyle("paddingTop");
var _local17:Number = getStyle("paddingBottom");
var _local18:Number = 0;
var _local19:Number = 0;
if (label){
_local20 = measureText(label);
if (_local20.width > 0){
_local18 = (((_local14 + _local15) + getStyle("textIndent")) + _local20.width);
};
_local19 = _local20.height;
} else {
_local20 = measureText("Wj");
_local19 = _local20.height;
};
var _local21:Number = (_arg3) ? buttonOffset : 0;
var _local22:String = getStyle("textAlign");
var _local23:EdgeMetrics = (((currentSkin) && ((currentSkin is IRectangularBorder)))) ? IRectangularBorder(currentSkin).borderMetrics : null;
var _local24:Number = _arg1;
var _local25:Number = ((_arg2 - _local16) - _local17);
if (_local23){
_local24 = (_local24 - (_local23.left + _local23.right));
_local25 = (_local25 - (_local23.top + _local23.bottom));
};
if (currentIcon){
_local8 = currentIcon.width;
_local9 = currentIcon.height;
};
if ((((labelPlacement == ButtonLabelPlacement.LEFT)) || ((labelPlacement == ButtonLabelPlacement.RIGHT)))){
_local12 = getStyle("horizontalGap");
if ((((_local8 == 0)) || ((_local18 == 0)))){
_local12 = 0;
};
if (_local18 > 0){
_local4 = Math.max(((((_local24 - _local8) - _local12) - _local14) - _local15), 0);
textField.width = _local4;
} else {
_local4 = 0;
textField.width = _local4;
};
_local5 = Math.min((_local25 + 2), (_local19 + UITextField.TEXT_HEIGHT_PADDING));
textField.height = _local5;
if (labelPlacement == ButtonLabelPlacement.RIGHT){
_local6 = (_local8 + _local12);
if (centerContent){
if (_local22 == "left"){
_local6 = (_local6 + _local14);
} else {
if (_local22 == "right"){
_local6 = (_local6 + ((((_local24 - _local4) - _local8) - _local12) - _local14));
} else {
_local28 = ((((_local24 - _local4) - _local8) - _local12) / 2);
_local6 = (_local6 + Math.max(_local28, _local14));
};
};
};
_local10 = (_local6 - (_local8 + _local12));
if (!centerContent){
_local6 = (_local6 + _local14);
};
} else {
_local6 = ((((_local24 - _local4) - _local8) - _local12) - _local15);
if (centerContent){
if (_local22 == "left"){
_local6 = 2;
} else {
if (_local22 == "right"){
_local6--;
} else {
if (_local6 > 0){
_local6 = (_local6 / 2);
};
};
};
};
_local10 = ((_local6 + _local4) + _local12);
};
_local7 = 0;
_local11 = _local7;
if (centerContent){
_local11 = (Math.round(((_local25 - _local9) / 2)) + _local16);
_local7 = (Math.round(((_local25 - _local5) / 2)) + _local16);
} else {
_local7 = (_local7 + (Math.max(0, ((_local25 - _local5) / 2)) + _local16));
_local11 = (_local11 + (Math.max(0, (((_local25 - _local9) / 2) - 1)) + _local16));
};
} else {
_local13 = getStyle("verticalGap");
if ((((_local9 == 0)) || ((_local19 == 0)))){
_local13 = 0;
};
if (_local18 > 0){
_local4 = Math.min(_local24, (_local18 + UITextField.TEXT_WIDTH_PADDING));
textField.width = _local4;
_local5 = Math.min(((_local25 - _local9) + 1), (_local19 + 5));
textField.height = _local5;
} else {
_local4 = 0;
textField.width = _local4;
_local5 = 0;
textField.height = _local5;
};
_local6 = ((_local24 - _local4) / 2);
_local10 = ((_local24 - _local8) / 2);
if (labelPlacement == ButtonLabelPlacement.TOP){
_local7 = (((_local25 - _local5) - _local9) - _local13);
if (((centerContent) && ((_local7 > 0)))){
_local7 = (_local7 / 2);
};
_local7 = (_local7 + _local16);
_local11 = (((_local7 + _local5) + _local13) - 3);
} else {
_local7 = ((_local9 + _local13) + _local16);
if (centerContent){
_local7 = (_local7 + (((((_local25 - _local5) - _local9) - _local13) / 2) + 1));
};
_local11 = (((_local7 - _local9) - _local13) + 3);
};
};
var _local26:Number = _local21;
var _local27:Number = _local21;
if (_local23){
_local26 = (_local26 + _local23.left);
_local27 = (_local27 + _local23.top);
};
textField.x = (_local6 + _local26);
textField.y = (_local7 + _local27);
if (currentIcon){
_local10 = (_local10 + _local26);
_local11 = (_local11 + _local27);
_local29 = new MoveEvent(MoveEvent.MOVE);
_local29.oldX = currentIcon.x;
_local29.oldY = currentIcon.y;
currentIcon.x = Math.round(_local10);
currentIcon.y = Math.round(_local11);
currentIcon.dispatchEvent(_local29);
};
if (currentSkin){
setChildIndex(DisplayObject(currentSkin), (numChildren - 1));
};
if (currentIcon){
setChildIndex(DisplayObject(currentIcon), (numChildren - 1));
};
if (textField){
setChildIndex(DisplayObject(textField), (numChildren - 1));
};
}
private function systemManager_mouseUpHandler(_arg1:MouseEvent):void{
if (contains(DisplayObject(_arg1.target))){
return;
};
phase = ButtonPhase.UP;
buttonReleased();
_arg1.updateAfterEvent();
}
public function set label(_arg1:String):void{
labelSet = true;
if (_label != _arg1){
_label = _arg1;
labelChanged = true;
invalidateSize();
invalidateDisplayList();
dispatchEvent(new Event("labelChanged"));
};
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local5:IFlexDisplayObject;
var _local6:Boolean;
super.updateDisplayList(_arg1, _arg2);
if (emphasizedChanged){
changeSkins();
emphasizedChanged = false;
};
var _local3:int = skins.length;
var _local4:int;
while (_local4 < _local3) {
_local5 = IFlexDisplayObject(skins[_local4]);
_local5.setActualSize(_arg1, _arg2);
_local4++;
};
viewSkin();
viewIcon();
layoutContents(_arg1, _arg2, (phase == ButtonPhase.DOWN));
if ((((((((oldUnscaledWidth > _arg1)) || (!((textField.text == label))))) || (labelChanged))) || (styleChangedFlag))){
textField.text = label;
_local6 = textField.truncateToFit();
if (!toolTipSet){
if (_local6){
super.toolTip = label;
} else {
super.toolTip = null;
};
};
styleChangedFlag = false;
labelChanged = false;
};
oldUnscaledWidth = _arg1;
}
private function stage_mouseLeaveHandler(_arg1:Event):void{
phase = ButtonPhase.UP;
buttonReleased();
}
public function set listData(_arg1:BaseListData):void{
_listData = _arg1;
}
}
}//package mx.controls
Section 557
//ButtonLabelPlacement (mx.controls.ButtonLabelPlacement)
package mx.controls {
public final class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
mx_internal static const VERSION:String = "3.0.0.0";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package mx.controls
Section 558
//ButtonPhase (mx.controls.ButtonPhase)
package mx.controls {
public final class ButtonPhase {
public static const DOWN:String = "down";
public static const OVER:String = "over";
mx_internal static const VERSION:String = "3.0.0.0";
public static const UP:String = "up";
}
}//package mx.controls
Section 559
//HScrollBar (mx.controls.HScrollBar)
package mx.controls {
import mx.controls.scrollClasses.*;
import flash.ui.*;
public class HScrollBar extends ScrollBar {
mx_internal static const VERSION:String = "3.0.0.0";
public function HScrollBar(){
super.direction = ScrollBarDirection.HORIZONTAL;
scaleX = -1;
rotation = -90;
}
override mx_internal function get virtualHeight():Number{
return (unscaledWidth);
}
override protected function measure():void{
super.measure();
measuredWidth = _minHeight;
measuredHeight = _minWidth;
}
override public function get minHeight():Number{
return (_minWidth);
}
override mx_internal function get virtualWidth():Number{
return (unscaledHeight);
}
override public function get minWidth():Number{
return (_minHeight);
}
override mx_internal function isScrollBarKey(_arg1:uint):Boolean{
if (_arg1 == Keyboard.LEFT){
lineScroll(-1);
return (true);
};
if (_arg1 == Keyboard.RIGHT){
lineScroll(1);
return (true);
};
return (super.isScrollBarKey(_arg1));
}
override public function set direction(_arg1:String):void{
}
}
}//package mx.controls
Section 560
//IFlexContextMenu (mx.controls.IFlexContextMenu)
package mx.controls {
import flash.display.*;
public interface IFlexContextMenu {
function setContextMenu(_arg1:InteractiveObject):void;
function unsetContextMenu(_arg1:InteractiveObject):void;
}
}//package mx.controls
Section 561
//ToolTip (mx.controls.ToolTip)
package mx.controls {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import flash.text.*;
public class ToolTip extends UIComponent implements IToolTip, IFontContextComponent {
private var textChanged:Boolean;
private var _text:String;
protected var textField:IUITextField;
mx_internal var border:IFlexDisplayObject;
mx_internal static const VERSION:String = "3.0.0.0";
public static var maxWidth:Number = 300;
public function ToolTip(){
mouseEnabled = false;
}
public function set fontContext(_arg1:IFlexModuleFactory):void{
this.moduleFactory = _arg1;
}
override public function styleChanged(_arg1:String):void{
super.styleChanged(_arg1);
if ((((((_arg1 == "borderStyle")) || ((_arg1 == "styleName")))) || ((_arg1 == null)))){
invalidateDisplayList();
};
}
override protected function commitProperties():void{
var _local1:int;
var _local2:TextFormat;
super.commitProperties();
if (((hasFontContextChanged()) && (!((textField == null))))){
_local1 = getChildIndex(DisplayObject(textField));
removeTextField();
createTextField(_local1);
invalidateSize();
textChanged = true;
};
if (textChanged){
_local2 = textField.getTextFormat();
_local2.leftMargin = 0;
_local2.rightMargin = 0;
textField.defaultTextFormat = _local2;
textField.text = _text;
textChanged = false;
};
}
mx_internal function getTextField():IUITextField{
return (textField);
}
override protected function createChildren():void{
var _local1:Class;
super.createChildren();
if (!border){
_local1 = getStyle("borderSkin");
border = new (_local1);
if ((border is ISimpleStyleClient)){
ISimpleStyleClient(border).styleName = this;
};
addChild(DisplayObject(border));
};
createTextField(-1);
}
override protected function measure():void{
var _local7:Number;
super.measure();
var _local1:EdgeMetrics = borderMetrics;
var _local2:Number = (_local1.left + getStyle("paddingLeft"));
var _local3:Number = (_local1.top + getStyle("paddingTop"));
var _local4:Number = (_local1.right + getStyle("paddingRight"));
var _local5:Number = (_local1.bottom + getStyle("paddingBottom"));
var _local6:Number = (_local2 + _local4);
_local7 = (_local3 + _local5);
textField.wordWrap = false;
if ((textField.textWidth + _local6) > ToolTip.maxWidth){
textField.width = (ToolTip.maxWidth - _local6);
textField.wordWrap = true;
};
measuredWidth = (textField.width + _local6);
measuredHeight = (textField.height + _local7);
}
public function get fontContext():IFlexModuleFactory{
return (moduleFactory);
}
public function set text(_arg1:String):void{
_text = _arg1;
textChanged = true;
invalidateProperties();
invalidateSize();
invalidateDisplayList();
}
public function get text():String{
return (_text);
}
mx_internal function removeTextField():void{
if (textField){
removeChild(DisplayObject(textField));
textField = null;
};
}
mx_internal function createTextField(_arg1:int):void{
if (!textField){
textField = IUITextField(createInFontContext(UITextField));
textField.autoSize = TextFieldAutoSize.LEFT;
textField.mouseEnabled = false;
textField.multiline = true;
textField.selectable = false;
textField.wordWrap = false;
textField.styleName = this;
if (_arg1 == -1){
addChild(DisplayObject(textField));
} else {
addChildAt(DisplayObject(textField), _arg1);
};
};
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
super.updateDisplayList(_arg1, _arg2);
var _local3:EdgeMetrics = borderMetrics;
var _local4:Number = (_local3.left + getStyle("paddingLeft"));
var _local5:Number = (_local3.top + getStyle("paddingTop"));
var _local6:Number = (_local3.right + getStyle("paddingRight"));
var _local7:Number = (_local3.bottom + getStyle("paddingBottom"));
var _local8:Number = (_local4 + _local6);
var _local9:Number = (_local5 + _local7);
border.setActualSize(_arg1, _arg2);
textField.move(_local4, _local5);
textField.setActualSize((_arg1 - _local8), (_arg2 - _local9));
}
private function get borderMetrics():EdgeMetrics{
if ((border is IRectangularBorder)){
return (IRectangularBorder(border).borderMetrics);
};
return (EdgeMetrics.EMPTY);
}
}
}//package mx.controls
Section 562
//VScrollBar (mx.controls.VScrollBar)
package mx.controls {
import mx.controls.scrollClasses.*;
import flash.ui.*;
public class VScrollBar extends ScrollBar {
mx_internal static const VERSION:String = "3.0.0.0";
public function VScrollBar(){
super.direction = ScrollBarDirection.VERTICAL;
}
override protected function measure():void{
super.measure();
measuredWidth = _minWidth;
measuredHeight = _minHeight;
}
override public function get minHeight():Number{
return (_minHeight);
}
override mx_internal function isScrollBarKey(_arg1:uint):Boolean{
if (_arg1 == Keyboard.UP){
lineScroll(-1);
return (true);
};
if (_arg1 == Keyboard.DOWN){
lineScroll(1);
return (true);
};
if (_arg1 == Keyboard.PAGE_UP){
pageScroll(-1);
return (true);
};
if (_arg1 == Keyboard.PAGE_DOWN){
pageScroll(1);
return (true);
};
return (super.isScrollBarKey(_arg1));
}
override public function get minWidth():Number{
return (_minWidth);
}
override public function set direction(_arg1:String):void{
}
}
}//package mx.controls
Section 563
//Application (mx.core.Application)
package mx.core {
import mx.events.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import mx.styles.*;
import mx.effects.*;
import flash.net.*;
import flash.utils.*;
import mx.containers.utilityClasses.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
public class Application extends LayoutContainer {
public var preloader:Object;
public var pageTitle:String;
private var resizeWidth:Boolean;// = true
private var _applicationViewMetrics:EdgeMetrics;
mx_internal var _parameters:Object;
private var processingCreationQueue:Boolean;// = false
public var scriptRecursionLimit:int;
private var resizeHandlerAdded:Boolean;// = false
private var preloadObj:Object;
public var usePreloader:Boolean;
mx_internal var _url:String;
private var _viewSourceURL:String;
public var resetHistory:Boolean;// = true
public var historyManagementEnabled:Boolean;// = true
public var scriptTimeLimit:Number;
public var frameRate:Number;
private var creationQueue:Array;
private var resizeHeight:Boolean;// = true
public var controlBar:IUIComponent;
private var viewSourceCMI:ContextMenuItem;
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var useProgressiveLayout:Boolean = false;
public function Application(){
creationQueue = [];
name = "application";
UIComponentGlobals.layoutManager = ILayoutManager(Singleton.getInstance("mx.managers::ILayoutManager"));
UIComponentGlobals.layoutManager.usePhasedInstantiation = true;
if (!ApplicationGlobals.application){
ApplicationGlobals.application = this;
};
super();
layoutObject = new ApplicationLayout();
layoutObject.target = this;
boxLayoutClass = ApplicationLayout;
showInAutomationHierarchy = true;
}
public function set viewSourceURL(_arg1:String):void{
_viewSourceURL = _arg1;
}
override public function set percentWidth(_arg1:Number):void{
super.percentWidth = _arg1;
invalidateDisplayList();
}
override public function prepareToPrint(_arg1:IFlexDisplayObject):Object{
var _local2:Object = {};
if (_arg1 == this){
_local2.width = width;
_local2.height = height;
_local2.verticalScrollPosition = verticalScrollPosition;
_local2.horizontalScrollPosition = horizontalScrollPosition;
_local2.horizontalScrollBarVisible = !((horizontalScrollBar == null));
_local2.verticalScrollBarVisible = !((verticalScrollBar == null));
_local2.whiteBoxVisible = !((whiteBox == null));
setActualSize(measuredWidth, measuredHeight);
horizontalScrollPosition = 0;
verticalScrollPosition = 0;
if (horizontalScrollBar){
horizontalScrollBar.visible = false;
};
if (verticalScrollBar){
verticalScrollBar.visible = false;
};
if (whiteBox){
whiteBox.visible = false;
};
updateDisplayList(unscaledWidth, unscaledHeight);
};
_local2.scrollRect = super.prepareToPrint(_arg1);
return (_local2);
}
override protected function measure():void{
var _local2:Number;
super.measure();
var _local1:EdgeMetrics = borderMetrics;
if (((controlBar) && (controlBar.includeInLayout))){
_local2 = ((controlBar.getExplicitOrMeasuredWidth() + _local1.left) + _local1.right);
measuredWidth = Math.max(measuredWidth, _local2);
measuredMinWidth = Math.max(measuredMinWidth, _local2);
};
}
override public function getChildIndex(_arg1:DisplayObject):int{
if (((controlBar) && ((_arg1 == controlBar)))){
return (-1);
};
return (super.getChildIndex(_arg1));
}
private function resizeHandler(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
if (resizeWidth){
if (isNaN(percentWidth)){
_local2 = DisplayObject(systemManager).width;
} else {
super.percentWidth = Math.max(percentWidth, 0);
super.percentWidth = Math.min(percentWidth, 100);
_local2 = ((percentWidth * screen.width) / 100);
};
if (!isNaN(explicitMaxWidth)){
_local2 = Math.min(_local2, explicitMaxWidth);
};
if (!isNaN(explicitMinWidth)){
_local2 = Math.max(_local2, explicitMinWidth);
};
} else {
_local2 = width;
};
if (resizeHeight){
if (isNaN(percentHeight)){
_local3 = DisplayObject(systemManager).height;
} else {
super.percentHeight = Math.max(percentHeight, 0);
super.percentHeight = Math.min(percentHeight, 100);
_local3 = ((percentHeight * screen.height) / 100);
};
if (!isNaN(explicitMaxHeight)){
_local3 = Math.min(_local3, explicitMaxHeight);
};
if (!isNaN(explicitMinHeight)){
_local3 = Math.max(_local3, explicitMinHeight);
};
} else {
_local3 = height;
};
if (((!((_local2 == width))) || (!((_local3 == height))))){
invalidateProperties();
invalidateSize();
};
setActualSize(_local2, _local3);
invalidateDisplayList();
}
private function initManagers(_arg1:ISystemManager):void{
if (_arg1.isTopLevel()){
focusManager = new FocusManager(this);
_arg1.activate(this);
};
}
override public function initialize():void{
var _local2:Object;
var _local1:ISystemManager = systemManager;
_url = _local1.loaderInfo.url;
_parameters = _local1.loaderInfo.parameters;
initManagers(_local1);
_descriptor = null;
if (documentDescriptor){
creationPolicy = documentDescriptor.properties.creationPolicy;
if ((((creationPolicy == null)) || ((creationPolicy.length == 0)))){
creationPolicy = ContainerCreationPolicy.AUTO;
};
_local2 = documentDescriptor.properties;
if (_local2.width != null){
width = _local2.width;
delete _local2.width;
};
if (_local2.height != null){
height = _local2.height;
delete _local2.height;
};
documentDescriptor.events = null;
};
initContextMenu();
super.initialize();
addEventListener(Event.ADDED, addedHandler);
if (((_local1.isTopLevel()) && ((Capabilities.isDebugger == true)))){
setInterval(debugTickler, 1500);
};
}
override public function set percentHeight(_arg1:Number):void{
super.percentHeight = _arg1;
invalidateDisplayList();
}
override public function get id():String{
if (((((!(super.id)) && ((this == Application.application)))) && (ExternalInterface.available))){
return (ExternalInterface.objectID);
};
return (super.id);
}
override mx_internal function setUnscaledWidth(_arg1:Number):void{
invalidateProperties();
super.setUnscaledWidth(_arg1);
}
private function debugTickler():void{
var _local1:int;
}
private function doNextQueueItem(_arg1:FlexEvent=null):void{
processingCreationQueue = true;
Application.useProgressiveLayout = true;
callLater(processNextQueueItem);
}
private function initContextMenu():void{
var _local2:String;
if (flexContextMenu != null){
if ((systemManager is InteractiveObject)){
InteractiveObject(systemManager).contextMenu = contextMenu;
};
return;
};
var _local1:ContextMenu = new ContextMenu();
_local1.hideBuiltInItems();
_local1.builtInItems.print = true;
if (_viewSourceURL){
_local2 = resourceManager.getString("core", "viewSource");
viewSourceCMI = new ContextMenuItem(_local2, true);
viewSourceCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler);
_local1.customItems.push(viewSourceCMI);
};
contextMenu = _local1;
if ((systemManager is InteractiveObject)){
InteractiveObject(systemManager).contextMenu = _local1;
};
}
private function addedHandler(_arg1:Event):void{
if ((((_arg1.target == this)) && ((creationQueue.length > 0)))){
doNextQueueItem();
};
}
public function get viewSourceURL():String{
return (_viewSourceURL);
}
override mx_internal function get usePadding():Boolean{
return (!((layout == ContainerLayout.ABSOLUTE)));
}
override mx_internal function setUnscaledHeight(_arg1:Number):void{
invalidateProperties();
super.setUnscaledHeight(_arg1);
}
mx_internal function dockControlBar(_arg1:IUIComponent, _arg2:Boolean):void{
var controlBar = _arg1;
var dock = _arg2;
if (dock){
try {
removeChild(DisplayObject(controlBar));
} catch(e:Error) {
return;
};
rawChildren.addChildAt(DisplayObject(controlBar), firstChildIndex);
setControlBar(controlBar);
} else {
try {
rawChildren.removeChild(DisplayObject(controlBar));
} catch(e:Error) {
return;
};
setControlBar(null);
addChildAt(DisplayObject(controlBar), 0);
};
}
override public function styleChanged(_arg1:String):void{
super.styleChanged(_arg1);
if ((((_arg1 == "backgroundColor")) && ((getStyle("backgroundImage") == getStyle("defaultBackgroundImage"))))){
clearStyle("backgroundImage");
};
}
override protected function layoutChrome(_arg1:Number, _arg2:Number):void{
super.layoutChrome(_arg1, _arg2);
if (!doingLayout){
createBorder();
};
var _local3:EdgeMetrics = borderMetrics;
var _local4:Number = getStyle("borderThickness");
var _local5:EdgeMetrics = new EdgeMetrics();
_local5.left = (_local3.left - _local4);
_local5.top = (_local3.top - _local4);
_local5.right = (_local3.right - _local4);
_local5.bottom = (_local3.bottom - _local4);
if (((controlBar) && (controlBar.includeInLayout))){
if ((controlBar is IInvalidating)){
IInvalidating(controlBar).invalidateDisplayList();
};
controlBar.setActualSize((width - (_local5.left + _local5.right)), controlBar.getExplicitOrMeasuredHeight());
controlBar.move(_local5.left, _local5.top);
};
}
protected function menuItemSelectHandler(_arg1:Event):void{
navigateToURL(new URLRequest(_viewSourceURL), "_blank");
}
private function printCreationQueue():void{
var _local4:Object;
var _local1 = "";
var _local2:Number = creationQueue.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = creationQueue[_local3];
_local1 = (_local1 + (((((" [" + _local3) + "] ") + _local4.id) + " ") + _local4.index));
_local3++;
};
}
override protected function resourcesChanged():void{
super.resourcesChanged();
if (viewSourceCMI){
viewSourceCMI.caption = resourceManager.getString("core", "viewSource");
};
}
override protected function commitProperties():void{
super.commitProperties();
resizeWidth = isNaN(explicitWidth);
resizeHeight = isNaN(explicitHeight);
if (((resizeWidth) || (resizeHeight))){
resizeHandler(new Event(Event.RESIZE));
if (!resizeHandlerAdded){
systemManager.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);
resizeHandlerAdded = true;
};
} else {
if (resizeHandlerAdded){
systemManager.removeEventListener(Event.RESIZE, resizeHandler);
resizeHandlerAdded = false;
};
};
}
override public function set toolTip(_arg1:String):void{
}
public function addToCreationQueue(_arg1:Object, _arg2:int=-1, _arg3:Function=null, _arg4:IFlexDisplayObject=null):void{
var _local8:int;
var _local9:int;
var _local10:int;
var _local12:int;
var _local5:int = creationQueue.length;
var _local6:Object = {};
var _local7:Boolean;
_local6.id = _arg1;
_local6.parent = _arg4;
_local6.callbackFunc = _arg3;
_local6.index = _arg2;
var _local11:int;
while (_local11 < _local5) {
_local9 = creationQueue[_local11].index;
_local10 = (creationQueue[_local11].parent) ? creationQueue[_local11].parent.nestLevel : 0;
if (_local6.index != -1){
if ((((_local9 == -1)) || ((_local6.index < _local9)))){
_local8 = _local11;
_local7 = true;
break;
};
} else {
_local12 = (_local6.parent) ? _local6.parent.nestLevel : 0;
if ((((_local9 == -1)) && ((_local10 < _local12)))){
_local8 = _local11;
_local7 = true;
break;
};
};
_local11++;
};
if (!_local7){
creationQueue.push(_local6);
_local7 = true;
} else {
creationQueue.splice(_local8, 0, _local6);
};
if (((initialized) && (!(processingCreationQueue)))){
doNextQueueItem();
};
}
override mx_internal function initThemeColor():Boolean{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:CSSStyleDeclaration;
var _local1:Boolean = super.initThemeColor();
if (!_local1){
_local5 = StyleManager.getStyleDeclaration("global");
if (_local5){
_local2 = _local5.getStyle("themeColor");
_local3 = _local5.getStyle("rollOverColor");
_local4 = _local5.getStyle("selectionColor");
};
if (((((_local2) && (isNaN(_local3)))) && (isNaN(_local4)))){
setThemeColor(_local2);
};
_local1 = true;
};
return (_local1);
}
override public function finishPrint(_arg1:Object, _arg2:IFlexDisplayObject):void{
if (_arg2 == this){
setActualSize(_arg1.width, _arg1.height);
if (horizontalScrollBar){
horizontalScrollBar.visible = _arg1.horizontalScrollBarVisible;
};
if (verticalScrollBar){
verticalScrollBar.visible = _arg1.verticalScrollBarVisible;
};
if (whiteBox){
whiteBox.visible = _arg1.whiteBoxVisible;
};
horizontalScrollPosition = _arg1.horizontalScrollPosition;
verticalScrollPosition = _arg1.verticalScrollPosition;
updateDisplayList(unscaledWidth, unscaledHeight);
};
super.finishPrint(_arg1.scrollRect, _arg2);
}
private function processNextQueueItem():void{
var queueItem:Object;
var nextChild:IUIComponent;
if (EffectManager.effectsPlaying.length > 0){
callLater(processNextQueueItem);
} else {
if (creationQueue.length > 0){
queueItem = creationQueue.shift();
try {
nextChild = ((queueItem.id is String)) ? document[queueItem.id] : queueItem.id;
if ((nextChild is Container)){
Container(nextChild).createComponentsFromDescriptors(true);
};
if ((((nextChild is Container)) && ((Container(nextChild).creationPolicy == ContainerCreationPolicy.QUEUED)))){
doNextQueueItem();
} else {
nextChild.addEventListener("childrenCreationComplete", doNextQueueItem);
};
} catch(e:Error) {
processNextQueueItem();
};
} else {
processingCreationQueue = false;
Application.useProgressiveLayout = false;
};
};
}
override public function set label(_arg1:String):void{
}
public function get parameters():Object{
return (_parameters);
}
override public function get viewMetrics():EdgeMetrics{
if (!_applicationViewMetrics){
_applicationViewMetrics = new EdgeMetrics();
};
var _local1:EdgeMetrics = _applicationViewMetrics;
var _local2:EdgeMetrics = super.viewMetrics;
var _local3:Number = getStyle("borderThickness");
_local1.left = _local2.left;
_local1.top = _local2.top;
_local1.right = _local2.right;
_local1.bottom = _local2.bottom;
if (((controlBar) && (controlBar.includeInLayout))){
_local1.top = (_local1.top - _local3);
_local1.top = (_local1.top + Math.max(controlBar.getExplicitOrMeasuredHeight(), _local3));
};
return (_local1);
}
public function get url():String{
return (_url);
}
override public function set icon(_arg1:Class):void{
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
super.updateDisplayList(_arg1, _arg2);
createBorder();
}
private function setControlBar(_arg1:IUIComponent):void{
if (_arg1 == controlBar){
return;
};
if (((controlBar) && ((controlBar is IStyleClient)))){
IStyleClient(controlBar).clearStyle("cornerRadius");
IStyleClient(controlBar).clearStyle("docked");
};
controlBar = _arg1;
if (((controlBar) && ((controlBar is IStyleClient)))){
IStyleClient(controlBar).setStyle("cornerRadius", 0);
IStyleClient(controlBar).setStyle("docked", true);
};
invalidateSize();
invalidateDisplayList();
invalidateViewMetricsAndPadding();
}
override public function set tabIndex(_arg1:int):void{
}
public static function get application():Object{
return (ApplicationGlobals.application);
}
}
}//package mx.core
Section 564
//ApplicationGlobals (mx.core.ApplicationGlobals)
package mx.core {
public class ApplicationGlobals {
public static var application:Object;
}
}//package mx.core
Section 565
//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.0.0.0";
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 566
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 567
//ComponentDescriptor (mx.core.ComponentDescriptor)
package mx.core {
public class ComponentDescriptor {
public var events:Object;
public var type:Class;
public var document:Object;
private var _properties:Object;
public var propertiesFactory:Function;
public var id:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function ComponentDescriptor(_arg1:Object){
var _local2:String;
super();
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function toString():String{
return (("ComponentDescriptor_" + id));
}
public function invalidateProperties():void{
_properties = null;
}
public function get properties():Object{
var _local1:Array;
var _local2:int;
var _local3:int;
if (_properties){
return (_properties);
};
if (propertiesFactory != null){
_properties = propertiesFactory.call(document);
};
if (_properties){
_local1 = _properties.childDescriptors;
if (_local1){
_local2 = _local1.length;
_local3 = 0;
while (_local3 < _local2) {
_local1[_local3].document = document;
_local3++;
};
};
} else {
_properties = {};
};
return (_properties);
}
}
}//package mx.core
Section 568
//Container (mx.core.Container)
package mx.core {
import mx.events.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import flash.geom.*;
import mx.styles.*;
import mx.controls.*;
import flash.text.*;
import mx.graphics.*;
import mx.controls.scrollClasses.*;
import mx.binding.*;
import mx.controls.listClasses.*;
import flash.utils.*;
import flash.ui.*;
public class Container extends UIComponent implements IContainer, IDataRenderer, IFocusManagerContainer, IListItemRenderer, IRawChildrenContainer {
private var forceLayout:Boolean;// = false
private var _numChildrenCreated:int;// = -1
private var _horizontalLineScrollSize:Number;// = 5
mx_internal var border:IFlexDisplayObject;
protected var actualCreationPolicy:String;
private var _viewMetricsAndPadding:EdgeMetrics;
private var _creatingContentPane:Boolean;// = false
private var _childRepeaters:Array;
private var scrollableWidth:Number;// = 0
private var _childDescriptors:Array;
private var _rawChildren:ContainerRawChildrenList;
private var _data:Object;
private var _verticalPageScrollSize:Number;// = 0
private var _viewMetrics:EdgeMetrics;
private var _verticalScrollBar:ScrollBar;
private var scrollPropertiesChanged:Boolean;// = false
private var changedStyles:String;// = null
private var scrollPositionChanged:Boolean;// = true
private var _defaultButton:IFlexDisplayObject;
private var mouseEventReferenceCount:int;// = 0
private var _focusPane:Sprite;
protected var whiteBox:Shape;
private var _forceClippingCount:int;
private var _horizontalPageScrollSize:Number;// = 0
private var _creationPolicy:String;
private var _creationIndex:int;// = -1
private var _clipContent:Boolean;// = true
private var _verticalScrollPosition:Number;// = 0
private var _autoLayout:Boolean;// = true
private var _icon:Class;// = null
mx_internal var doingLayout:Boolean;// = false
private var _horizontalScrollBar:ScrollBar;
private var numChildrenBefore:int;
private var viewableHeight:Number;// = 0
private var viewableWidth:Number;// = 0
mx_internal var contentPane:Sprite;// = null
private var _createdComponents:Array;
private var _firstChildIndex:int;// = 0
private var scrollableHeight:Number;// = 0
private var _verticalLineScrollSize:Number;// = 5
private var _horizontalScrollPosition:Number;// = 0
mx_internal var _horizontalScrollPolicy:String;// = "auto"
private var verticalScrollPositionPending:Number;
mx_internal var _verticalScrollPolicy:String;// = "auto"
private var horizontalScrollPositionPending:Number;
mx_internal var _numChildren:int;// = 0
private var recursionFlag:Boolean;// = true
private var _label:String;// = ""
mx_internal var blocker:Sprite;
mx_internal static const VERSION:String = "3.0.0.0";
private static const MULTIPLE_PROPERTIES:String = "<MULTIPLE>";
public function Container(){
tabChildren = true;
tabEnabled = false;
showInAutomationHierarchy = false;
}
public function set verticalScrollPolicy(_arg1:String):void{
if (_verticalScrollPolicy != _arg1){
_verticalScrollPolicy = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("verticalScrollPolicyChanged"));
};
}
private function createContentPaneAndScrollbarsIfNeeded():Boolean{
var _local1:Rectangle;
var _local2:Boolean;
if (_clipContent){
_local1 = getScrollableRect();
_local2 = createScrollbarsIfNeeded(_local1);
if (border){
updateBackgroundImageRect();
};
return (_local2);
//unresolved jump
};
_local2 = createOrDestroyScrollbars(false, false, false);
_local1 = getScrollableRect();
scrollableWidth = _local1.right;
scrollableHeight = _local1.bottom;
if (((_local2) && (border))){
updateBackgroundImageRect();
};
return (_local2);
}
override protected function initializationComplete():void{
}
mx_internal function rawChildren_getObjectsUnderPoint(_arg1:Point):Array{
return (super.getObjectsUnderPoint(_arg1));
}
public function set creatingContentPane(_arg1:Boolean):void{
_creatingContentPane = _arg1;
}
public function set clipContent(_arg1:Boolean):void{
if (_clipContent != _arg1){
_clipContent = _arg1;
invalidateDisplayList();
};
}
protected function scrollChildren():void{
if (!contentPane){
return;
};
var _local1:EdgeMetrics = viewMetrics;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = ((unscaledWidth - _local1.left) - _local1.right);
var _local5:Number = ((unscaledHeight - _local1.top) - _local1.bottom);
if (_clipContent){
_local2 = (_local2 + _horizontalScrollPosition);
if (horizontalScrollBar){
_local4 = viewableWidth;
};
_local3 = (_local3 + _verticalScrollPosition);
if (verticalScrollBar){
_local5 = viewableHeight;
};
} else {
_local4 = scrollableWidth;
_local5 = scrollableHeight;
};
var _local6:Rectangle = getScrollableRect();
if ((((((((((((((_local2 == 0)) && ((_local3 == 0)))) && ((_local4 >= _local6.right)))) && ((_local5 >= _local6.bottom)))) && ((_local6.left >= 0)))) && ((_local6.top >= 0)))) && ((_forceClippingCount <= 0)))){
contentPane.scrollRect = null;
contentPane.opaqueBackground = null;
contentPane.cacheAsBitmap = false;
} else {
contentPane.scrollRect = new Rectangle(_local2, _local3, _local4, _local5);
};
if (focusPane){
focusPane.scrollRect = contentPane.scrollRect;
};
if (((((border) && ((border is IRectangularBorder)))) && (IRectangularBorder(border).hasBackgroundImage))){
IRectangularBorder(border).layoutBackgroundImage();
};
}
override public function set doubleClickEnabled(_arg1:Boolean):void{
var _local2:int;
var _local3:int;
var _local4:InteractiveObject;
super.doubleClickEnabled = _arg1;
if (contentPane){
_local2 = contentPane.numChildren;
_local3 = 0;
while (_local3 < _local2) {
_local4 = (contentPane.getChildAt(_local3) as InteractiveObject);
if (_local4){
_local4.doubleClickEnabled = _arg1;
};
_local3++;
};
};
}
override public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
var _local5:ISimpleStyleClient;
var _local3:int = super.numChildren;
var _local4:int;
while (_local4 < _local3) {
if (((((contentPane) || ((_local4 < _firstChildIndex)))) || ((_local4 >= (_firstChildIndex + _numChildren))))){
_local5 = (super.getChildAt(_local4) as ISimpleStyleClient);
if (_local5){
_local5.styleChanged(_arg1);
if ((_local5 is IStyleClient)){
IStyleClient(_local5).notifyStyleChangeInChildren(_arg1, _arg2);
};
};
};
_local4++;
};
if (_arg2){
changedStyles = (((!((changedStyles == null))) || ((_arg1 == null)))) ? MULTIPLE_PROPERTIES : _arg1;
invalidateProperties();
};
}
mx_internal function get createdComponents():Array{
return (_createdComponents);
}
public function get childDescriptors():Array{
return (_childDescriptors);
}
override public function get contentMouseY():Number{
if (contentPane){
return (contentPane.mouseY);
};
return (super.contentMouseY);
}
mx_internal function get childRepeaters():Array{
return (_childRepeaters);
}
override public function contains(_arg1:DisplayObject):Boolean{
if (contentPane){
return (contentPane.contains(_arg1));
};
return (super.contains(_arg1));
}
override public function get contentMouseX():Number{
if (contentPane){
return (contentPane.mouseX);
};
return (super.contentMouseX);
}
mx_internal function set createdComponents(_arg1:Array):void{
_createdComponents = _arg1;
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
override public function validateSize(_arg1:Boolean=false):void{
var _local2:int;
var _local3:int;
var _local4:DisplayObject;
if ((((autoLayout == false)) && ((forceLayout == false)))){
if (_arg1){
_local2 = super.numChildren;
_local3 = 0;
while (_local3 < _local2) {
_local4 = super.getChildAt(_local3);
if ((_local4 is ILayoutManagerClient)){
ILayoutManagerClient(_local4).validateSize(true);
};
_local3++;
};
};
adjustSizesForScaleChanges();
} else {
super.validateSize(_arg1);
};
}
public function get rawChildren():IChildList{
if (!_rawChildren){
_rawChildren = new ContainerRawChildrenList(this);
};
return (_rawChildren);
}
override public function getChildAt(_arg1:int):DisplayObject{
if (contentPane){
return (contentPane.getChildAt(_arg1));
};
return (super.getChildAt((_firstChildIndex + _arg1)));
}
override protected function attachOverlay():void{
rawChildren_addChild(overlay);
}
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 == MouseEvent.CLICK)) || ((_arg1 == MouseEvent.DOUBLE_CLICK)))) || ((_arg1 == MouseEvent.MOUSE_DOWN)))) || ((_arg1 == MouseEvent.MOUSE_MOVE)))) || ((_arg1 == MouseEvent.MOUSE_OVER)))) || ((_arg1 == MouseEvent.MOUSE_OUT)))) || ((_arg1 == MouseEvent.MOUSE_UP)))) || ((_arg1 == MouseEvent.MOUSE_WHEEL)))){
if ((((mouseEventReferenceCount < 2147483647)) && ((mouseEventReferenceCount++ == 0)))){
setStyle("mouseShield", true);
setStyle("mouseShieldChildren", true);
};
};
}
override public function localToContent(_arg1:Point):Point{
if (!contentPane){
return (_arg1);
};
_arg1 = localToGlobal(_arg1);
return (globalToContent(_arg1));
}
public function executeChildBindings(_arg1:Boolean):void{
var _local4:IUIComponent;
var _local2:int = numChildren;
var _local3:int;
while (_local3 < _local2) {
_local4 = IUIComponent(getChildAt(_local3));
if ((_local4 is IDeferredInstantiationUIComponent)){
IDeferredInstantiationUIComponent(_local4).executeBindings(_arg1);
};
_local3++;
};
}
protected function createBorder():void{
var _local1:Class;
if (((!(border)) && (isBorderNeeded()))){
_local1 = getStyle("borderSkin");
if (_local1 != null){
border = new (_local1);
border.name = "border";
if ((border is IUIComponent)){
IUIComponent(border).enabled = enabled;
};
if ((border is ISimpleStyleClient)){
ISimpleStyleClient(border).styleName = this;
};
rawChildren.addChildAt(DisplayObject(border), 0);
invalidateDisplayList();
};
};
}
public function get verticalScrollPosition():Number{
if (!isNaN(verticalScrollPositionPending)){
return (verticalScrollPositionPending);
};
return (_verticalScrollPosition);
}
public function get horizontalScrollPosition():Number{
if (!isNaN(horizontalScrollPositionPending)){
return (horizontalScrollPositionPending);
};
return (_horizontalScrollPosition);
}
protected function layoutChrome(_arg1:Number, _arg2:Number):void{
if (border){
updateBackgroundImageRect();
border.move(0, 0);
border.setActualSize(_arg1, _arg2);
};
}
mx_internal function set childRepeaters(_arg1:Array):void{
_childRepeaters = _arg1;
}
override public function get focusPane():Sprite{
return (_focusPane);
}
public function set creationIndex(_arg1:int):void{
_creationIndex = _arg1;
}
public function get viewMetrics():EdgeMetrics{
var _local1:EdgeMetrics = borderMetrics;
var _local2:Boolean = ((!((verticalScrollBar == null))) && (((doingLayout) || ((verticalScrollPolicy == ScrollPolicy.ON)))));
var _local3:Boolean = ((!((horizontalScrollBar == null))) && (((doingLayout) || ((horizontalScrollPolicy == ScrollPolicy.ON)))));
if (((!(_local2)) && (!(_local3)))){
return (_local1);
};
if (!_viewMetrics){
_viewMetrics = _local1.clone();
} else {
_viewMetrics.left = _local1.left;
_viewMetrics.right = _local1.right;
_viewMetrics.top = _local1.top;
_viewMetrics.bottom = _local1.bottom;
};
if (_local2){
_viewMetrics.right = (_viewMetrics.right + verticalScrollBar.minWidth);
};
if (_local3){
_viewMetrics.bottom = (_viewMetrics.bottom + horizontalScrollBar.minHeight);
};
return (_viewMetrics);
}
public function set verticalScrollBar(_arg1:ScrollBar):void{
_verticalScrollBar = _arg1;
}
public function set verticalScrollPosition(_arg1:Number):void{
if (_verticalScrollPosition == _arg1){
return;
};
_verticalScrollPosition = _arg1;
scrollPositionChanged = true;
if (!initialized){
verticalScrollPositionPending = _arg1;
};
invalidateDisplayList();
dispatchEvent(new Event("viewChanged"));
}
private function createOrDestroyScrollbars(_arg1:Boolean, _arg2:Boolean, _arg3:Boolean):Boolean{
var _local5:IFocusManager;
var _local6:String;
var _local7:String;
var _local8:Graphics;
var _local4:Boolean;
if (((((_arg1) || (_arg2))) || (_arg3))){
createContentPane();
};
if (_arg1){
if (!horizontalScrollBar){
horizontalScrollBar = new HScrollBar();
horizontalScrollBar.name = "horizontalScrollBar";
_local6 = getStyle("horizontalScrollBarStyleName");
if (((_local6) && ((horizontalScrollBar is ISimpleStyleClient)))){
ISimpleStyleClient(horizontalScrollBar).styleName = _local6;
};
rawChildren.addChild(DisplayObject(horizontalScrollBar));
horizontalScrollBar.lineScrollSize = horizontalLineScrollSize;
horizontalScrollBar.pageScrollSize = horizontalPageScrollSize;
horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, horizontalScrollBar_scrollHandler);
horizontalScrollBar.enabled = enabled;
if ((horizontalScrollBar is IInvalidating)){
IInvalidating(horizontalScrollBar).validateNow();
};
invalidateDisplayList();
invalidateViewMetricsAndPadding();
_local4 = true;
if (!verticalScrollBar){
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
};
} else {
if (horizontalScrollBar){
horizontalScrollBar.removeEventListener(ScrollEvent.SCROLL, horizontalScrollBar_scrollHandler);
rawChildren.removeChild(DisplayObject(horizontalScrollBar));
horizontalScrollBar = null;
viewableWidth = (scrollableWidth = 0);
if (_horizontalScrollPosition != 0){
_horizontalScrollPosition = 0;
scrollPositionChanged = true;
};
invalidateDisplayList();
invalidateViewMetricsAndPadding();
_local4 = true;
_local5 = focusManager;
if (((!(verticalScrollBar)) && (((!(_local5)) || (!((_local5.getFocus() == this))))))){
removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
};
};
if (_arg2){
if (!verticalScrollBar){
verticalScrollBar = new VScrollBar();
verticalScrollBar.name = "verticalScrollBar";
_local7 = getStyle("verticalScrollBarStyleName");
if (((_local7) && ((verticalScrollBar is ISimpleStyleClient)))){
ISimpleStyleClient(verticalScrollBar).styleName = _local7;
};
rawChildren.addChild(DisplayObject(verticalScrollBar));
verticalScrollBar.lineScrollSize = verticalLineScrollSize;
verticalScrollBar.pageScrollSize = verticalPageScrollSize;
verticalScrollBar.addEventListener(ScrollEvent.SCROLL, verticalScrollBar_scrollHandler);
verticalScrollBar.enabled = enabled;
if ((verticalScrollBar is IInvalidating)){
IInvalidating(verticalScrollBar).validateNow();
};
invalidateDisplayList();
invalidateViewMetricsAndPadding();
_local4 = true;
if (!horizontalScrollBar){
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
};
} else {
if (verticalScrollBar){
verticalScrollBar.removeEventListener(ScrollEvent.SCROLL, verticalScrollBar_scrollHandler);
rawChildren.removeChild(DisplayObject(verticalScrollBar));
verticalScrollBar = null;
viewableHeight = (scrollableHeight = 0);
if (_verticalScrollPosition != 0){
_verticalScrollPosition = 0;
scrollPositionChanged = true;
};
invalidateDisplayList();
invalidateViewMetricsAndPadding();
_local4 = true;
_local5 = focusManager;
if (((!(horizontalScrollBar)) && (((!(_local5)) || (!((_local5.getFocus() == this))))))){
removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
};
};
if (((horizontalScrollBar) && (verticalScrollBar))){
if (!whiteBox){
whiteBox = new FlexShape();
whiteBox.name = "whiteBox";
_local8 = whiteBox.graphics;
_local8.beginFill(0xFFFFFF);
_local8.drawRect(0, 0, verticalScrollBar.minWidth, horizontalScrollBar.minHeight);
_local8.endFill();
rawChildren.addChild(whiteBox);
};
} else {
if (whiteBox){
rawChildren.removeChild(whiteBox);
whiteBox = null;
};
};
return (_local4);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local3:String;
var _local4:Number;
var _local2:Object = getFocus();
if ((_local2 is TextField)){
return;
};
if (verticalScrollBar){
_local3 = ScrollEventDirection.VERTICAL;
_local4 = verticalScrollPosition;
switch (_arg1.keyCode){
case Keyboard.DOWN:
verticalScrollPosition = (verticalScrollPosition + verticalLineScrollSize);
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.LINE_DOWN);
_arg1.stopPropagation();
break;
case Keyboard.UP:
verticalScrollPosition = (verticalScrollPosition - verticalLineScrollSize);
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.LINE_UP);
_arg1.stopPropagation();
break;
case Keyboard.PAGE_UP:
verticalScrollPosition = (verticalScrollPosition - verticalPageScrollSize);
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.PAGE_UP);
_arg1.stopPropagation();
break;
case Keyboard.PAGE_DOWN:
verticalScrollPosition = (verticalScrollPosition + verticalPageScrollSize);
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.PAGE_DOWN);
_arg1.stopPropagation();
break;
case Keyboard.HOME:
verticalScrollPosition = verticalScrollBar.minScrollPosition;
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.AT_TOP);
_arg1.stopPropagation();
break;
case Keyboard.END:
verticalScrollPosition = verticalScrollBar.maxScrollPosition;
dispatchScrollEvent(_local3, _local4, verticalScrollPosition, ScrollEventDetail.AT_BOTTOM);
_arg1.stopPropagation();
break;
};
};
if (horizontalScrollBar){
_local3 = ScrollEventDirection.HORIZONTAL;
_local4 = horizontalScrollPosition;
switch (_arg1.keyCode){
case Keyboard.LEFT:
horizontalScrollPosition = (horizontalScrollPosition - horizontalLineScrollSize);
dispatchScrollEvent(_local3, _local4, horizontalScrollPosition, ScrollEventDetail.LINE_LEFT);
_arg1.stopPropagation();
break;
case Keyboard.RIGHT:
horizontalScrollPosition = (horizontalScrollPosition + horizontalLineScrollSize);
dispatchScrollEvent(_local3, _local4, horizontalScrollPosition, ScrollEventDetail.LINE_RIGHT);
_arg1.stopPropagation();
break;
};
};
}
public function get icon():Class{
return (_icon);
}
private function createOrDestroyBlocker():void{
var _local1:DisplayObject;
var _local2:ISystemManager;
if (enabled){
if (blocker){
rawChildren.removeChild(blocker);
blocker = null;
};
} else {
if (!blocker){
blocker = new FlexSprite();
blocker.name = "blocker";
blocker.mouseEnabled = true;
rawChildren.addChild(blocker);
blocker.addEventListener(MouseEvent.CLICK, blocker_clickHandler);
_local1 = (focusManager) ? DisplayObject(focusManager.getFocus()) : null;
while (_local1) {
if (_local1 == this){
_local2 = systemManager;
if (((_local2) && (_local2.stage))){
_local2.stage.focus = null;
};
break;
};
_local1 = _local1.parent;
};
};
};
}
private function horizontalScrollBar_scrollHandler(_arg1:Event):void{
var _local2:Number;
if ((_arg1 is ScrollEvent)){
_local2 = horizontalScrollPosition;
horizontalScrollPosition = horizontalScrollBar.scrollPosition;
dispatchScrollEvent(ScrollEventDirection.HORIZONTAL, _local2, horizontalScrollPosition, ScrollEvent(_arg1).detail);
};
}
public function createComponentFromDescriptor(_arg1:ComponentDescriptor, _arg2:Boolean):IFlexDisplayObject{
var _local7:String;
var _local10:IRepeaterClient;
var _local11:IStyleClient;
var _local12:String;
var _local13:String;
var _local3:UIComponentDescriptor = UIComponentDescriptor(_arg1);
var _local4:Object = _local3.properties;
if (((((((!((numChildrenBefore == 0))) || (!((numChildrenCreated == -1))))) && ((_local3.instanceIndices == null)))) && (hasChildMatchingDescriptor(_local3)))){
return (null);
};
UIComponentGlobals.layoutManager.usePhasedInstantiation = true;
var _local5:Class = _local3.type;
var _local6:IDeferredInstantiationUIComponent = new (_local5);
_local6.id = _local3.id;
if (((_local6.id) && (!((_local6.id == ""))))){
_local6.name = _local6.id;
};
_local6.descriptor = _local3;
if (((_local4.childDescriptors) && ((_local6 is Container)))){
Container(_local6)._childDescriptors = _local4.childDescriptors;
delete _local4.childDescriptors;
};
for (_local7 in _local4) {
_local6[_local7] = _local4[_local7];
};
if ((_local6 is Container)){
Container(_local6).recursionFlag = _arg2;
};
if (_local3.instanceIndices){
if ((_local6 is IRepeaterClient)){
_local10 = IRepeaterClient(_local6);
_local10.instanceIndices = _local3.instanceIndices;
_local10.repeaters = _local3.repeaters;
_local10.repeaterIndices = _local3.repeaterIndices;
};
};
if ((_local6 is IStyleClient)){
_local11 = IStyleClient(_local6);
if (_local3.stylesFactory != null){
if (!_local11.styleDeclaration){
_local11.styleDeclaration = new CSSStyleDeclaration();
};
_local11.styleDeclaration.factory = _local3.stylesFactory;
};
};
var _local8:Object = _local3.events;
if (_local8){
for (_local12 in _local8) {
_local13 = _local8[_local12];
_local6.addEventListener(_local12, _local3.document[_local13]);
};
};
var _local9:Array = _local3.effects;
if (_local9){
_local6.registerEffects(_local9);
};
if ((_local6 is IRepeaterClient)){
IRepeaterClient(_local6).initializeRepeaterArrays(this);
};
_local6.createReferenceOnParentDocument(IFlexDisplayObject(_local3.document));
if (!_local6.document){
_local6.document = _local3.document;
};
if ((_local6 is IRepeater)){
if (!childRepeaters){
childRepeaters = [];
};
childRepeaters.push(_local6);
_local6.executeBindings();
IRepeater(_local6).initializeRepeater(this, _arg2);
} else {
addChild(DisplayObject(_local6));
if ((((creationPolicy == ContainerCreationPolicy.QUEUED)) || ((creationPolicy == ContainerCreationPolicy.NONE)))){
_local6.addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
};
};
return (_local6);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
if (horizontalScrollBar){
horizontalScrollBar.enabled = _arg1;
};
if (verticalScrollBar){
verticalScrollBar.enabled = _arg1;
};
invalidateProperties();
}
public function set horizontalScrollBar(_arg1:ScrollBar):void{
_horizontalScrollBar = _arg1;
}
mx_internal function get usePadding():Boolean{
return (true);
}
override public function get baselinePosition():Number{
var _local2:IUIComponent;
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
if ((((getStyle("verticalAlign") == "top")) && ((numChildren > 0)))){
_local2 = (getChildAt(0) as IUIComponent);
if (_local2){
return ((_local2.y + _local2.baselinePosition));
};
};
return (super.baselinePosition);
};
if (!validateBaselinePosition()){
return (NaN);
};
var _local1:TextLineMetrics = measureText("Wj");
if (height < (((2 * viewMetrics.top) + 4) + _local1.ascent)){
return (int((height + ((_local1.ascent - height) / 2))));
};
return (((viewMetrics.top + 2) + _local1.ascent));
}
override public function getChildByName(_arg1:String):DisplayObject{
var _local2:DisplayObject;
var _local3:int;
if (contentPane){
return (contentPane.getChildByName(_arg1));
};
_local2 = super.getChildByName(_arg1);
if (!_local2){
return (null);
};
_local3 = (super.getChildIndex(_local2) - _firstChildIndex);
if ((((_local3 < 0)) || ((_local3 >= _numChildren)))){
return (null);
};
return (_local2);
}
public function get verticalLineScrollSize():Number{
return (_verticalLineScrollSize);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
var _local3:DisplayObjectContainer = _arg1.parent;
if (((_local3) && (!((_local3 is Loader))))){
_local3.removeChild(_arg1);
};
addingChild(_arg1);
if (contentPane){
contentPane.addChildAt(_arg1, _arg2);
} else {
$addChildAt(_arg1, (_firstChildIndex + _arg2));
};
childAdded(_arg1);
if ((((_arg1 is UIComponent)) && (UIComponent(_arg1).isDocument))){
BindingManager.setEnabled(_arg1, true);
};
if ((_arg1 is IDeferredInstantiationUIComponent)){
IDeferredInstantiationUIComponent(_arg1).executeBindings(true);
};
return (_arg1);
}
public function get maxVerticalScrollPosition():Number{
return ((verticalScrollBar) ? verticalScrollBar.maxScrollPosition : Math.max((scrollableHeight - viewableHeight), 0));
}
public function set horizontalScrollPosition(_arg1:Number):void{
if (_horizontalScrollPosition == _arg1){
return;
};
_horizontalScrollPosition = _arg1;
scrollPositionChanged = true;
if (!initialized){
horizontalScrollPositionPending = _arg1;
};
invalidateDisplayList();
dispatchEvent(new Event("viewChanged"));
}
mx_internal function invalidateViewMetricsAndPadding():void{
_viewMetricsAndPadding = null;
}
public function get horizontalLineScrollSize():Number{
return (_horizontalLineScrollSize);
}
override public function set focusPane(_arg1:Sprite):void{
var _local2:Boolean = invalidateSizeFlag;
var _local3:Boolean = invalidateDisplayListFlag;
invalidateSizeFlag = true;
invalidateDisplayListFlag = true;
if (_arg1){
rawChildren.addChild(_arg1);
_arg1.x = 0;
_arg1.y = 0;
_arg1.scrollRect = null;
_focusPane = _arg1;
} else {
rawChildren.removeChild(_focusPane);
_focusPane = null;
};
if (((_arg1) && (contentPane))){
_arg1.x = contentPane.x;
_arg1.y = contentPane.y;
_arg1.scrollRect = contentPane.scrollRect;
};
invalidateSizeFlag = _local2;
invalidateDisplayListFlag = _local3;
}
private function updateBackgroundImageRect():void{
var _local1:IRectangularBorder = (border as IRectangularBorder);
if (!_local1){
return;
};
if ((((viewableWidth == 0)) && ((viewableHeight == 0)))){
_local1.backgroundImageBounds = null;
return;
};
var _local2:EdgeMetrics = viewMetrics;
var _local3:Number = (viewableWidth) ? viewableWidth : ((unscaledWidth - _local2.left) - _local2.right);
var _local4:Number = (viewableHeight) ? viewableHeight : ((unscaledHeight - _local2.top) - _local2.bottom);
if (getStyle("backgroundAttachment") == "fixed"){
_local1.backgroundImageBounds = new Rectangle(_local2.left, _local2.top, _local3, _local4);
} else {
_local1.backgroundImageBounds = new Rectangle(_local2.left, _local2.top, Math.max(scrollableWidth, _local3), Math.max(scrollableHeight, _local4));
};
}
private function blocker_clickHandler(_arg1:Event):void{
_arg1.stopPropagation();
}
private function mouseWheelHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:Number;
var _local5:Number;
if (verticalScrollBar){
_arg1.stopPropagation();
_local2 = ((_arg1.delta <= 0)) ? 1 : -1;
_local3 = (verticalScrollBar) ? verticalScrollBar.lineScrollSize : 1;
_local4 = Math.max(Math.abs(_arg1.delta), _local3);
_local5 = verticalScrollPosition;
verticalScrollPosition = (verticalScrollPosition + ((3 * _local4) * _local2));
dispatchScrollEvent(ScrollEventDirection.VERTICAL, _local5, verticalScrollPosition, ((_arg1.delta <= 0)) ? ScrollEventDetail.LINE_UP : ScrollEventDetail.LINE_DOWN);
};
}
public function get defaultButton():IFlexDisplayObject{
return (_defaultButton);
}
mx_internal function createContentPane():void{
var _local3:int;
var _local5:IUIComponent;
if (contentPane){
return;
};
creatingContentPane = true;
var _local1:int = numChildren;
var _local2:Sprite = new FlexSprite();
_local2.name = "contentPane";
_local2.tabChildren = true;
if (border){
_local3 = (rawChildren.getChildIndex(DisplayObject(border)) + 1);
if ((((border is IRectangularBorder)) && (IRectangularBorder(border).hasBackgroundImage))){
_local3++;
};
} else {
_local3 = 0;
};
rawChildren.addChildAt(_local2, _local3);
var _local4:int;
while (_local4 < _local1) {
_local5 = IUIComponent(super.getChildAt(_firstChildIndex));
_local2.addChild(DisplayObject(_local5));
_local5.parentChanged(_local2);
_numChildren--;
_local4++;
};
contentPane = _local2;
creatingContentPane = false;
contentPane.visible = true;
}
public function set verticalPageScrollSize(_arg1:Number):void{
scrollPropertiesChanged = true;
_verticalPageScrollSize = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("verticalPageScrollSizeChanged"));
}
mx_internal function setDocumentDescriptor(_arg1:UIComponentDescriptor):void{
var _local2:String;
if (processedDescriptors){
return;
};
if (((_documentDescriptor) && (_documentDescriptor.properties.childDescriptors))){
if (_arg1.properties.childDescriptors){
_local2 = resourceManager.getString("core", "multipleChildSets_ClassAndSubclass");
throw (new Error(_local2));
};
} else {
_documentDescriptor = _arg1;
_documentDescriptor.document = this;
};
}
private function verticalScrollBar_scrollHandler(_arg1:Event):void{
var _local2:Number;
if ((_arg1 is ScrollEvent)){
_local2 = verticalScrollPosition;
verticalScrollPosition = verticalScrollBar.scrollPosition;
dispatchScrollEvent(ScrollEventDirection.VERTICAL, _local2, verticalScrollPosition, ScrollEvent(_arg1).detail);
};
}
public function get creationPolicy():String{
return (_creationPolicy);
}
public function set icon(_arg1:Class):void{
_icon = _arg1;
dispatchEvent(new Event("iconChanged"));
}
private function dispatchScrollEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String):void{
var _local5:ScrollEvent = new ScrollEvent(ScrollEvent.SCROLL);
_local5.direction = _arg1;
_local5.position = _arg3;
_local5.delta = (_arg3 - _arg2);
_local5.detail = _arg4;
dispatchEvent(_local5);
}
public function get label():String{
return (_label);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
public function get borderMetrics():EdgeMetrics{
return ((((border) && ((border is IRectangularBorder)))) ? IRectangularBorder(border).borderMetrics : EdgeMetrics.EMPTY);
}
private function creationCompleteHandler(_arg1:FlexEvent):void{
numChildrenCreated--;
if (numChildrenCreated <= 0){
dispatchEvent(new FlexEvent("childrenCreationComplete"));
};
}
override public function contentToLocal(_arg1:Point):Point{
if (!contentPane){
return (_arg1);
};
_arg1 = contentToGlobal(_arg1);
return (globalToLocal(_arg1));
}
override public function removeChild(_arg1:DisplayObject):DisplayObject{
var _local2:int;
var _local3:int;
if ((((_arg1 is IDeferredInstantiationUIComponent)) && (IDeferredInstantiationUIComponent(_arg1).descriptor))){
if (createdComponents){
_local2 = createdComponents.length;
_local3 = 0;
while (_local3 < _local2) {
if (createdComponents[_local3] === _arg1){
createdComponents.splice(_local3, 1);
};
_local3++;
};
};
};
removingChild(_arg1);
if ((((_arg1 is UIComponent)) && (UIComponent(_arg1).isDocument))){
BindingManager.setEnabled(_arg1, false);
};
if (contentPane){
contentPane.removeChild(_arg1);
} else {
$removeChild(_arg1);
};
childRemoved(_arg1);
return (_arg1);
}
final mx_internal function get $numChildren():int{
return (super.numChildren);
}
mx_internal function get numRepeaters():int{
return ((childRepeaters) ? childRepeaters.length : 0);
}
mx_internal function set numChildrenCreated(_arg1:int):void{
_numChildrenCreated = _arg1;
}
public function get creatingContentPane():Boolean{
return (_creatingContentPane);
}
public function get clipContent():Boolean{
return (_clipContent);
}
mx_internal function rawChildren_getChildIndex(_arg1:DisplayObject):int{
return (super.getChildIndex(_arg1));
}
override public function regenerateStyleCache(_arg1:Boolean):void{
var _local2:int;
var _local3:int;
var _local4:DisplayObject;
super.regenerateStyleCache(_arg1);
if (contentPane){
_local2 = contentPane.numChildren;
_local3 = 0;
while (_local3 < _local2) {
_local4 = getChildAt(_local3);
if (((_arg1) && ((_local4 is UIComponent)))){
if (UIComponent(_local4).inheritingStyles != UIComponent.STYLE_UNINITIALIZED){
UIComponent(_local4).regenerateStyleCache(_arg1);
};
} else {
if ((((_local4 is IUITextField)) && (IUITextField(_local4).inheritingStyles))){
StyleProtoChain.initTextField(IUITextField(_local4));
};
};
_local3++;
};
};
}
override public function getChildIndex(_arg1:DisplayObject):int{
var _local2:int;
if (contentPane){
return (contentPane.getChildIndex(_arg1));
};
_local2 = (super.getChildIndex(_arg1) - _firstChildIndex);
return (_local2);
}
mx_internal function rawChildren_contains(_arg1:DisplayObject):Boolean{
return (super.contains(_arg1));
}
mx_internal function getScrollableRect():Rectangle{
var _local9:DisplayObject;
var _local1:Number = 0;
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:int = numChildren;
var _local6:int;
while (_local6 < _local5) {
_local9 = getChildAt(_local6);
if ((((_local9 is IUIComponent)) && (!(IUIComponent(_local9).includeInLayout)))){
} else {
_local1 = Math.min(_local1, _local9.x);
_local2 = Math.min(_local2, _local9.y);
if (!isNaN(_local9.width)){
_local3 = Math.max(_local3, (_local9.x + _local9.width));
};
if (!isNaN(_local9.height)){
_local4 = Math.max(_local4, (_local9.y + _local9.height));
};
};
_local6++;
};
var _local7:EdgeMetrics = viewMetrics;
var _local8:Rectangle = new Rectangle();
_local8.left = _local1;
_local8.top = _local2;
_local8.right = _local3;
_local8.bottom = _local4;
if (usePadding){
_local8.right = (_local8.right + getStyle("paddingRight"));
_local8.bottom = (_local8.bottom + getStyle("paddingBottom"));
};
return (_local8);
}
override protected function createChildren():void{
var _local1:Application;
super.createChildren();
createBorder();
createOrDestroyScrollbars((horizontalScrollPolicy == ScrollPolicy.ON), (verticalScrollPolicy == ScrollPolicy.ON), (((horizontalScrollPolicy == ScrollPolicy.ON)) || ((verticalScrollPolicy == ScrollPolicy.ON))));
if (creationPolicy != null){
actualCreationPolicy = creationPolicy;
} else {
if ((parent is Container)){
if (Container(parent).actualCreationPolicy == ContainerCreationPolicy.QUEUED){
actualCreationPolicy = ContainerCreationPolicy.AUTO;
} else {
actualCreationPolicy = Container(parent).actualCreationPolicy;
};
};
};
if (actualCreationPolicy == ContainerCreationPolicy.NONE){
actualCreationPolicy = ContainerCreationPolicy.AUTO;
} else {
if (actualCreationPolicy == ContainerCreationPolicy.QUEUED){
_local1 = (parentApplication) ? Application(parentApplication) : Application(Application.application);
_local1.addToCreationQueue(this, creationIndex, null, this);
} else {
if (recursionFlag){
createComponentsFromDescriptors();
};
};
};
if (autoLayout == false){
forceLayout = true;
};
UIComponentGlobals.layoutManager.addEventListener(FlexEvent.UPDATE_COMPLETE, layoutCompleteHandler, false, 0, true);
}
override public function executeBindings(_arg1:Boolean=false):void{
var _local2:Object = (((descriptor) && (descriptor.document))) ? descriptor.document : parentDocument;
BindingManager.executeBindings(_local2, id, this);
if (_arg1){
executeChildBindings(_arg1);
};
}
override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
var _local3:int;
var _local4:int = _local3;
var _local5:int = _arg2;
if (contentPane){
contentPane.setChildIndex(_arg1, _arg2);
if (((_autoLayout) || (forceLayout))){
invalidateDisplayList();
};
} else {
_local3 = super.getChildIndex(_arg1);
_arg2 = (_arg2 + _firstChildIndex);
if (_arg2 == _local3){
return;
};
super.setChildIndex(_arg1, _arg2);
invalidateDisplayList();
_local4 = (_local3 - _firstChildIndex);
_local5 = (_arg2 - _firstChildIndex);
};
var _local6:IndexChangedEvent = new IndexChangedEvent(IndexChangedEvent.CHILD_INDEX_CHANGE);
_local6.relatedObject = _arg1;
_local6.oldIndex = _local4;
_local6.newIndex = _local5;
dispatchEvent(_local6);
dispatchEvent(new Event("childrenChanged"));
}
override public function globalToContent(_arg1:Point):Point{
if (contentPane){
return (contentPane.globalToLocal(_arg1));
};
return (globalToLocal(_arg1));
}
mx_internal function rawChildren_removeChild(_arg1:DisplayObject):DisplayObject{
var _local2:int = rawChildren_getChildIndex(_arg1);
return (rawChildren_removeChildAt(_local2));
}
mx_internal function rawChildren_setChildIndex(_arg1:DisplayObject, _arg2:int):void{
var _local3:int = super.getChildIndex(_arg1);
super.setChildIndex(_arg1, _arg2);
if ((((_local3 < _firstChildIndex)) && ((_arg2 >= _firstChildIndex)))){
_firstChildIndex--;
} else {
if ((((_local3 >= _firstChildIndex)) && ((_arg2 <= _firstChildIndex)))){
_firstChildIndex++;
};
};
dispatchEvent(new Event("childrenChanged"));
}
public function set verticalLineScrollSize(_arg1:Number):void{
scrollPropertiesChanged = true;
_verticalLineScrollSize = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("verticalLineScrollSizeChanged"));
}
mx_internal function rawChildren_getChildAt(_arg1:int):DisplayObject{
return (super.getChildAt(_arg1));
}
public function get creationIndex():int{
return (_creationIndex);
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
public function get viewMetricsAndPadding():EdgeMetrics{
if (((((_viewMetricsAndPadding) && (((!(horizontalScrollBar)) || ((horizontalScrollPolicy == ScrollPolicy.ON)))))) && (((!(verticalScrollBar)) || ((verticalScrollPolicy == ScrollPolicy.ON)))))){
return (_viewMetricsAndPadding);
};
if (!_viewMetricsAndPadding){
_viewMetricsAndPadding = new EdgeMetrics();
};
var _local1:EdgeMetrics = _viewMetricsAndPadding;
var _local2:EdgeMetrics = viewMetrics;
_local1.left = (_local2.left + getStyle("paddingLeft"));
_local1.right = (_local2.right + getStyle("paddingRight"));
_local1.top = (_local2.top + getStyle("paddingTop"));
_local1.bottom = (_local2.bottom + getStyle("paddingBottom"));
return (_local1);
}
override public function addChild(_arg1:DisplayObject):DisplayObject{
return (addChildAt(_arg1, numChildren));
}
public function set horizontalPageScrollSize(_arg1:Number):void{
scrollPropertiesChanged = true;
_horizontalPageScrollSize = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("horizontalPageScrollSizeChanged"));
}
override mx_internal function childAdded(_arg1:DisplayObject):void{
dispatchEvent(new Event("childrenChanged"));
var _local2:ChildExistenceChangedEvent = new ChildExistenceChangedEvent(ChildExistenceChangedEvent.CHILD_ADD);
_local2.relatedObject = _arg1;
dispatchEvent(_local2);
_arg1.dispatchEvent(new FlexEvent(FlexEvent.ADD));
super.childAdded(_arg1);
}
public function set horizontalScrollPolicy(_arg1:String):void{
if (_horizontalScrollPolicy != _arg1){
_horizontalScrollPolicy = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("horizontalScrollPolicyChanged"));
};
}
private function layoutCompleteHandler(_arg1:FlexEvent):void{
UIComponentGlobals.layoutManager.removeEventListener(FlexEvent.UPDATE_COMPLETE, layoutCompleteHandler);
forceLayout = false;
var _local2:Boolean;
if (!isNaN(horizontalScrollPositionPending)){
if (horizontalScrollPositionPending < 0){
horizontalScrollPositionPending = 0;
} else {
if (horizontalScrollPositionPending > maxHorizontalScrollPosition){
horizontalScrollPositionPending = maxHorizontalScrollPosition;
};
};
if (((horizontalScrollBar) && (!((horizontalScrollBar.scrollPosition == horizontalScrollPositionPending))))){
_horizontalScrollPosition = horizontalScrollPositionPending;
horizontalScrollBar.scrollPosition = horizontalScrollPositionPending;
_local2 = true;
};
horizontalScrollPositionPending = NaN;
};
if (!isNaN(verticalScrollPositionPending)){
if (verticalScrollPositionPending < 0){
verticalScrollPositionPending = 0;
} else {
if (verticalScrollPositionPending > maxVerticalScrollPosition){
verticalScrollPositionPending = maxVerticalScrollPosition;
};
};
if (((verticalScrollBar) && (!((verticalScrollBar.scrollPosition == verticalScrollPositionPending))))){
_verticalScrollPosition = verticalScrollPositionPending;
verticalScrollBar.scrollPosition = verticalScrollPositionPending;
_local2 = true;
};
verticalScrollPositionPending = NaN;
};
if (_local2){
scrollChildren();
};
}
public function createComponentsFromDescriptors(_arg1:Boolean=true):void{
var _local4:IFlexDisplayObject;
numChildrenBefore = numChildren;
createdComponents = [];
var _local2:int = (childDescriptors) ? childDescriptors.length : 0;
var _local3:int;
while (_local3 < _local2) {
_local4 = createComponentFromDescriptor(childDescriptors[_local3], _arg1);
createdComponents.push(_local4);
_local3++;
};
if ((((creationPolicy == ContainerCreationPolicy.QUEUED)) || ((creationPolicy == ContainerCreationPolicy.NONE)))){
UIComponentGlobals.layoutManager.usePhasedInstantiation = false;
};
numChildrenCreated = (numChildren - numChildrenBefore);
processedDescriptors = true;
}
override mx_internal function fillOverlay(_arg1:UIComponent, _arg2:uint, _arg3:RoundedRectangle=null):void{
var _local4:EdgeMetrics = viewMetrics;
var _local5:Number = 0;
if (!_arg3){
_arg3 = new RoundedRectangle(_local4.left, _local4.top, ((unscaledWidth - _local4.right) - _local4.left), ((unscaledHeight - _local4.bottom) - _local4.top), _local5);
};
if (((((((((isNaN(_arg3.x)) || (isNaN(_arg3.y)))) || (isNaN(_arg3.width)))) || (isNaN(_arg3.height)))) || (isNaN(_arg3.cornerRadius)))){
return;
};
var _local6:Graphics = _arg1.graphics;
_local6.clear();
_local6.beginFill(_arg2);
_local6.drawRoundRect(_arg3.x, _arg3.y, _arg3.width, _arg3.height, (_arg3.cornerRadius * 2), (_arg3.cornerRadius * 2));
_local6.endFill();
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
super.removeEventListener(_arg1, _arg2, _arg3);
if ((((((((((((((((_arg1 == MouseEvent.CLICK)) || ((_arg1 == MouseEvent.DOUBLE_CLICK)))) || ((_arg1 == MouseEvent.MOUSE_DOWN)))) || ((_arg1 == MouseEvent.MOUSE_MOVE)))) || ((_arg1 == MouseEvent.MOUSE_OVER)))) || ((_arg1 == MouseEvent.MOUSE_OUT)))) || ((_arg1 == MouseEvent.MOUSE_UP)))) || ((_arg1 == MouseEvent.MOUSE_WHEEL)))){
if ((((mouseEventReferenceCount > 0)) && ((--mouseEventReferenceCount == 0)))){
setStyle("mouseShield", false);
setStyle("mouseShieldChildren", false);
};
};
}
mx_internal function rawChildren_removeChildAt(_arg1:int):DisplayObject{
var _local2:DisplayObject = super.getChildAt(_arg1);
super.removingChild(_local2);
$removeChildAt(_arg1);
super.childRemoved(_local2);
if ((((_firstChildIndex < _arg1)) && ((_arg1 < (_firstChildIndex + _numChildren))))){
_numChildren--;
} else {
if ((((_numChildren == 0)) || ((_arg1 < _firstChildIndex)))){
_firstChildIndex--;
};
};
invalidateSize();
invalidateDisplayList();
dispatchEvent(new Event("childrenChanged"));
return (_local2);
}
public function set data(_arg1:Object):void{
_data = _arg1;
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
invalidateDisplayList();
}
override public function removeChildAt(_arg1:int):DisplayObject{
return (removeChild(getChildAt(_arg1)));
}
private function isBorderNeeded():Boolean{
var c:Class = getStyle("borderSkin");
try {
if (c != getDefinitionByName("mx.skins.halo::HaloBorder")){
return (true);
};
} catch(e:Error) {
return (true);
};
var v:Object = getStyle("borderStyle");
if (v){
if (((!((v == "none"))) || ((((v == "none")) && (getStyle("mouseShield")))))){
return (true);
};
};
v = getStyle("backgroundColor");
if (((!((v === null))) && (!((v === ""))))){
return (true);
};
v = getStyle("backgroundImage");
return (((!((v == null))) && (!((v == "")))));
}
public function set autoLayout(_arg1:Boolean):void{
var _local2:IInvalidating;
_autoLayout = _arg1;
if (_arg1){
invalidateSize();
invalidateDisplayList();
_local2 = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
};
}
public function get verticalPageScrollSize():Number{
return (_verticalPageScrollSize);
}
public function getChildren():Array{
var _local1:Array = [];
var _local2:int = numChildren;
var _local3:int;
while (_local3 < _local2) {
_local1.push(getChildAt(_local3));
_local3++;
};
return (_local1);
}
private function createScrollbarsIfNeeded(_arg1:Rectangle):Boolean{
var _local2:Number = _arg1.right;
var _local3:Number = _arg1.bottom;
var _local4:Number = unscaledWidth;
var _local5:Number = unscaledHeight;
var _local6:Boolean = (((_arg1.left < 0)) || ((_arg1.top < 0)));
var _local7:EdgeMetrics = viewMetrics;
if (scaleX != 1){
_local4 = (_local4 + (1 / Math.abs(scaleX)));
};
if (scaleY != 1){
_local5 = (_local5 + (1 / Math.abs(scaleY)));
};
_local4 = Math.floor(_local4);
_local5 = Math.floor(_local5);
_local2 = Math.floor(_local2);
_local3 = Math.floor(_local3);
if (((horizontalScrollBar) && (!((horizontalScrollPolicy == ScrollPolicy.ON))))){
_local5 = (_local5 - horizontalScrollBar.minHeight);
};
if (((verticalScrollBar) && (!((verticalScrollPolicy == ScrollPolicy.ON))))){
_local4 = (_local4 - verticalScrollBar.minWidth);
};
_local4 = (_local4 - (_local7.left + _local7.right));
_local5 = (_local5 - (_local7.top + _local7.bottom));
var _local8 = (horizontalScrollPolicy == ScrollPolicy.ON);
var _local9 = (verticalScrollPolicy == ScrollPolicy.ON);
var _local10:Boolean = ((((((((((_local8) || (_local9))) || (_local6))) || (!((overlay == null))))) || ((_local7.left > 0)))) || ((_local7.top > 0)));
if (_local4 < _local2){
_local10 = true;
if ((((((horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((((unscaledHeight - _local7.top) - _local7.bottom) >= 18)))) && ((((unscaledWidth - _local7.left) - _local7.right) >= 32)))){
_local8 = true;
};
};
if (_local5 < _local3){
_local10 = true;
if ((((((verticalScrollPolicy == ScrollPolicy.AUTO)) && ((((unscaledWidth - _local7.left) - _local7.right) >= 18)))) && ((((unscaledHeight - _local7.top) - _local7.bottom) >= 32)))){
_local9 = true;
};
};
if (((((((((((((((_local8) && (_local9))) && ((horizontalScrollPolicy == ScrollPolicy.AUTO)))) && ((verticalScrollPolicy == ScrollPolicy.AUTO)))) && (horizontalScrollBar))) && (verticalScrollBar))) && (((_local4 + verticalScrollBar.minWidth) >= _local2)))) && (((_local5 + horizontalScrollBar.minHeight) >= _local3)))){
_local9 = false;
_local8 = _local9;
} else {
if (((((((((_local8) && (!(_local9)))) && (verticalScrollBar))) && ((horizontalScrollPolicy == ScrollPolicy.AUTO)))) && (((_local4 + verticalScrollBar.minWidth) >= _local2)))){
_local8 = false;
};
};
var _local11:Boolean = createOrDestroyScrollbars(_local8, _local9, _local10);
if (((((!((scrollableWidth == _local2))) || (!((viewableWidth == _local4))))) || (_local11))){
if (horizontalScrollBar){
horizontalScrollBar.setScrollProperties(_local4, 0, (_local2 - _local4), horizontalPageScrollSize);
scrollPositionChanged = true;
};
viewableWidth = _local4;
scrollableWidth = _local2;
};
if (((((!((scrollableHeight == _local3))) || (!((viewableHeight == _local5))))) || (_local11))){
if (verticalScrollBar){
verticalScrollBar.setScrollProperties(_local5, 0, (_local3 - _local5), verticalPageScrollSize);
scrollPositionChanged = true;
};
viewableHeight = _local5;
scrollableHeight = _local3;
};
return (_local11);
}
override mx_internal function removingChild(_arg1:DisplayObject):void{
super.removingChild(_arg1);
_arg1.dispatchEvent(new FlexEvent(FlexEvent.REMOVE));
var _local2:ChildExistenceChangedEvent = new ChildExistenceChangedEvent(ChildExistenceChangedEvent.CHILD_REMOVE);
_local2.relatedObject = _arg1;
dispatchEvent(_local2);
}
mx_internal function get numChildrenCreated():int{
return (_numChildrenCreated);
}
mx_internal function rawChildren_addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
if ((((_firstChildIndex < _arg2)) && ((_arg2 < ((_firstChildIndex + _numChildren) + 1))))){
_numChildren++;
} else {
if (_arg2 <= _firstChildIndex){
_firstChildIndex++;
};
};
super.addingChild(_arg1);
$addChildAt(_arg1, _arg2);
super.childAdded(_arg1);
dispatchEvent(new Event("childrenChanged"));
return (_arg1);
}
private function hasChildMatchingDescriptor(_arg1:UIComponentDescriptor):Boolean{
var _local4:int;
var _local5:IUIComponent;
var _local2:String = _arg1.id;
if (((!((_local2 == null))) && ((document[_local2] == null)))){
return (false);
};
var _local3:int = numChildren;
_local4 = 0;
while (_local4 < _local3) {
_local5 = IUIComponent(getChildAt(_local4));
if ((((_local5 is IDeferredInstantiationUIComponent)) && ((IDeferredInstantiationUIComponent(_local5).descriptor == _arg1)))){
return (true);
};
_local4++;
};
if (childRepeaters){
_local3 = childRepeaters.length;
_local4 = 0;
while (_local4 < _local3) {
if (IDeferredInstantiationUIComponent(childRepeaters[_local4]).descriptor == _arg1){
return (true);
};
_local4++;
};
};
return (false);
}
mx_internal function rawChildren_getChildByName(_arg1:String):DisplayObject{
return (super.getChildByName(_arg1));
}
override public function validateDisplayList():void{
var _local1:EdgeMetrics;
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (((_autoLayout) || (forceLayout))){
doingLayout = true;
super.validateDisplayList();
doingLayout = false;
} else {
layoutChrome(unscaledWidth, unscaledHeight);
};
invalidateDisplayListFlag = true;
if (createContentPaneAndScrollbarsIfNeeded()){
if (((_autoLayout) || (forceLayout))){
doingLayout = true;
super.validateDisplayList();
doingLayout = false;
};
createContentPaneAndScrollbarsIfNeeded();
};
if (clampScrollPositions()){
scrollChildren();
};
if (contentPane){
_local1 = viewMetrics;
if (overlay){
overlay.x = 0;
overlay.y = 0;
overlay.width = unscaledWidth;
overlay.height = unscaledHeight;
};
if (((horizontalScrollBar) || (verticalScrollBar))){
if (((verticalScrollBar) && ((verticalScrollPolicy == ScrollPolicy.ON)))){
_local1.right = (_local1.right - verticalScrollBar.minWidth);
};
if (((horizontalScrollBar) && ((horizontalScrollPolicy == ScrollPolicy.ON)))){
_local1.bottom = (_local1.bottom - horizontalScrollBar.minHeight);
};
if (horizontalScrollBar){
_local2 = ((unscaledWidth - _local1.left) - _local1.right);
if (verticalScrollBar){
_local2 = (_local2 - verticalScrollBar.minWidth);
};
horizontalScrollBar.setActualSize(_local2, horizontalScrollBar.minHeight);
horizontalScrollBar.move(_local1.left, ((unscaledHeight - _local1.bottom) - horizontalScrollBar.minHeight));
};
if (verticalScrollBar){
_local3 = ((unscaledHeight - _local1.top) - _local1.bottom);
if (horizontalScrollBar){
_local3 = (_local3 - horizontalScrollBar.minHeight);
};
verticalScrollBar.setActualSize(verticalScrollBar.minWidth, _local3);
verticalScrollBar.move(((unscaledWidth - _local1.right) - verticalScrollBar.minWidth), _local1.top);
};
if (whiteBox){
whiteBox.x = verticalScrollBar.x;
whiteBox.y = horizontalScrollBar.y;
};
};
contentPane.x = _local1.left;
contentPane.y = _local1.top;
if (focusPane){
focusPane.x = _local1.left;
focusPane.y = _local1.top;
};
scrollChildren();
};
invalidateDisplayListFlag = false;
if (blocker){
_local1 = viewMetrics;
_local4 = (enabled) ? null : getStyle("backgroundDisabledColor");
if ((((_local4 === null)) || (isNaN(Number(_local4))))){
_local4 = getStyle("backgroundColor");
};
if ((((_local4 === null)) || (isNaN(Number(_local4))))){
_local4 = 0xFFFFFF;
};
_local5 = getStyle("disabledOverlayAlpha");
if (isNaN(_local5)){
_local5 = 0.6;
};
blocker.x = _local1.left;
blocker.y = _local1.top;
_local6 = (unscaledWidth - (_local1.left + _local1.right));
_local7 = (unscaledHeight - (_local1.top + _local1.bottom));
blocker.graphics.clear();
blocker.graphics.beginFill(uint(_local4), _local5);
blocker.graphics.drawRect(0, 0, _local6, _local7);
blocker.graphics.endFill();
rawChildren.setChildIndex(blocker, (rawChildren.numChildren - 1));
};
}
public function set horizontalLineScrollSize(_arg1:Number):void{
scrollPropertiesChanged = true;
_horizontalLineScrollSize = _arg1;
invalidateDisplayList();
dispatchEvent(new Event("horizontalLineScrollSizeChanged"));
}
override public function initialize():void{
var _local1:*;
var _local2:String;
if (((((isDocument) && (documentDescriptor))) && (!(processedDescriptors)))){
_local1 = documentDescriptor.properties;
if (((_local1) && (_local1.childDescriptors))){
if (_childDescriptors){
_local2 = resourceManager.getString("core", "multipleChildSets_ClassAndInstance");
throw (new Error(_local2));
};
_childDescriptors = _local1.childDescriptors;
};
};
super.initialize();
}
mx_internal function set forceClipping(_arg1:Boolean):void{
if (_clipContent){
if (_arg1){
_forceClippingCount++;
} else {
_forceClippingCount--;
};
createContentPane();
scrollChildren();
};
}
public function removeAllChildren():void{
while (numChildren > 0) {
removeChildAt(0);
};
}
override public function contentToGlobal(_arg1:Point):Point{
if (contentPane){
return (contentPane.localToGlobal(_arg1));
};
return (localToGlobal(_arg1));
}
public function get horizontalPageScrollSize():Number{
return (_horizontalPageScrollSize);
}
override mx_internal function childRemoved(_arg1:DisplayObject):void{
super.childRemoved(_arg1);
invalidateSize();
invalidateDisplayList();
if (!contentPane){
_numChildren--;
if (_numChildren == 0){
_firstChildIndex = super.numChildren;
};
};
if (((contentPane) && (!(autoLayout)))){
forceLayout = true;
UIComponentGlobals.layoutManager.addEventListener(FlexEvent.UPDATE_COMPLETE, layoutCompleteHandler, false, 0, true);
};
dispatchEvent(new Event("childrenChanged"));
}
public function set defaultButton(_arg1:IFlexDisplayObject):void{
_defaultButton = _arg1;
ContainerGlobals.focusedContainer = null;
}
public function get data():Object{
return (_data);
}
override public function get numChildren():int{
return ((contentPane) ? contentPane.numChildren : _numChildren);
}
public function get autoLayout():Boolean{
return (_autoLayout);
}
override public function styleChanged(_arg1:String):void{
var _local3:String;
var _local4:String;
var _local2:Boolean = (((_arg1 == null)) || ((_arg1 == "styleName")));
if (((_local2) || (StyleManager.isSizeInvalidatingStyle(_arg1)))){
invalidateDisplayList();
};
if (((_local2) || ((_arg1 == "borderSkin")))){
if (border){
rawChildren.removeChild(DisplayObject(border));
border = null;
createBorder();
};
};
if (((((((((((_local2) || ((_arg1 == "borderStyle")))) || ((_arg1 == "backgroundColor")))) || ((_arg1 == "backgroundImage")))) || ((_arg1 == "mouseShield")))) || ((_arg1 == "mouseShieldChildren")))){
createBorder();
};
super.styleChanged(_arg1);
if (((_local2) || (StyleManager.isSizeInvalidatingStyle(_arg1)))){
invalidateViewMetricsAndPadding();
};
if (((_local2) || ((_arg1 == "horizontalScrollBarStyleName")))){
if (((horizontalScrollBar) && ((horizontalScrollBar is ISimpleStyleClient)))){
_local3 = getStyle("horizontalScrollBarStyleName");
ISimpleStyleClient(horizontalScrollBar).styleName = _local3;
};
};
if (((_local2) || ((_arg1 == "verticalScrollBarStyleName")))){
if (((verticalScrollBar) && ((verticalScrollBar is ISimpleStyleClient)))){
_local4 = getStyle("verticalScrollBarStyleName");
ISimpleStyleClient(verticalScrollBar).styleName = _local4;
};
};
}
override protected function commitProperties():void{
var _local1:String;
super.commitProperties();
if (changedStyles){
_local1 = ((changedStyles == MULTIPLE_PROPERTIES)) ? null : changedStyles;
super.notifyStyleChangeInChildren(_local1, true);
changedStyles = null;
};
createOrDestroyBlocker();
}
override public function finishPrint(_arg1:Object, _arg2:IFlexDisplayObject):void{
if (_arg1){
contentPane.scrollRect = Rectangle(_arg1);
};
super.finishPrint(_arg1, _arg2);
}
public function get maxHorizontalScrollPosition():Number{
return ((horizontalScrollBar) ? horizontalScrollBar.maxScrollPosition : Math.max((scrollableWidth - viewableWidth), 0));
}
public function set creationPolicy(_arg1:String):void{
_creationPolicy = _arg1;
setActualCreationPolicies(_arg1);
}
public function set label(_arg1:String):void{
_label = _arg1;
dispatchEvent(new Event("labelChanged"));
}
private function clampScrollPositions():Boolean{
var _local1:Boolean;
if (_horizontalScrollPosition < 0){
_horizontalScrollPosition = 0;
_local1 = true;
} else {
if (_horizontalScrollPosition > maxHorizontalScrollPosition){
_horizontalScrollPosition = maxHorizontalScrollPosition;
_local1 = true;
};
};
if (((horizontalScrollBar) && (!((horizontalScrollBar.scrollPosition == _horizontalScrollPosition))))){
horizontalScrollBar.scrollPosition = _horizontalScrollPosition;
};
if (_verticalScrollPosition < 0){
_verticalScrollPosition = 0;
_local1 = true;
} else {
if (_verticalScrollPosition > maxVerticalScrollPosition){
_verticalScrollPosition = maxVerticalScrollPosition;
_local1 = true;
};
};
if (((verticalScrollBar) && (!((verticalScrollBar.scrollPosition == _verticalScrollPosition))))){
verticalScrollBar.scrollPosition = _verticalScrollPosition;
};
return (_local1);
}
override public function prepareToPrint(_arg1:IFlexDisplayObject):Object{
var _local2:Rectangle = (((contentPane) && (contentPane.scrollRect))) ? contentPane.scrollRect : null;
if (_local2){
contentPane.scrollRect = null;
};
super.prepareToPrint(_arg1);
return (_local2);
}
mx_internal function get firstChildIndex():int{
return (_firstChildIndex);
}
mx_internal function rawChildren_addChild(_arg1:DisplayObject):DisplayObject{
if (_numChildren == 0){
_firstChildIndex++;
};
super.addingChild(_arg1);
$addChild(_arg1);
super.childAdded(_arg1);
dispatchEvent(new Event("childrenChanged"));
return (_arg1);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local3:Object;
var _local4:Number;
super.updateDisplayList(_arg1, _arg2);
layoutChrome(_arg1, _arg2);
if (scrollPositionChanged){
clampScrollPositions();
scrollChildren();
scrollPositionChanged = false;
};
if (scrollPropertiesChanged){
if (horizontalScrollBar){
horizontalScrollBar.lineScrollSize = horizontalLineScrollSize;
horizontalScrollBar.pageScrollSize = horizontalPageScrollSize;
};
if (verticalScrollBar){
verticalScrollBar.lineScrollSize = verticalLineScrollSize;
verticalScrollBar.pageScrollSize = verticalPageScrollSize;
};
scrollPropertiesChanged = false;
};
if (((contentPane) && (contentPane.scrollRect))){
_local3 = (enabled) ? null : getStyle("backgroundDisabledColor");
if ((((_local3 === null)) || (isNaN(Number(_local3))))){
_local3 = getStyle("backgroundColor");
};
_local4 = getStyle("backgroundAlpha");
if (((((((!(_clipContent)) || (isNaN(Number(_local3))))) || ((_local3 === "")))) || (((!(((horizontalScrollBar) || (verticalScrollBar)))) && (!(cacheAsBitmap)))))){
_local3 = null;
} else {
if (((getStyle("backgroundImage")) || (getStyle("background")))){
_local3 = null;
} else {
if (_local4 != 1){
_local3 = null;
};
};
};
contentPane.opaqueBackground = _local3;
contentPane.cacheAsBitmap = !((_local3 == null));
};
}
override mx_internal function addingChild(_arg1:DisplayObject):void{
var _local2:IUIComponent = IUIComponent(_arg1);
super.addingChild(_arg1);
invalidateSize();
invalidateDisplayList();
if (!contentPane){
if (_numChildren == 0){
_firstChildIndex = super.numChildren;
};
_numChildren++;
};
if (((contentPane) && (!(autoLayout)))){
forceLayout = true;
UIComponentGlobals.layoutManager.addEventListener(FlexEvent.UPDATE_COMPLETE, layoutCompleteHandler, false, 0, true);
};
}
mx_internal function setActualCreationPolicies(_arg1:String):void{
var _local5:IFlexDisplayObject;
var _local6:Container;
actualCreationPolicy = _arg1;
var _local2:String = _arg1;
if (_arg1 == ContainerCreationPolicy.QUEUED){
_local2 = ContainerCreationPolicy.AUTO;
};
var _local3:int = numChildren;
var _local4:int;
while (_local4 < _local3) {
_local5 = IFlexDisplayObject(getChildAt(_local4));
if ((_local5 is Container)){
_local6 = Container(_local5);
if (_local6.creationPolicy == null){
_local6.setActualCreationPolicies(_local2);
};
};
_local4++;
};
}
}
}//package mx.core
Section 569
//ContainerCreationPolicy (mx.core.ContainerCreationPolicy)
package mx.core {
public final class ContainerCreationPolicy {
public static const ALL:String = "all";
public static const QUEUED:String = "queued";
public static const NONE:String = "none";
mx_internal static const VERSION:String = "3.0.0.0";
public static const AUTO:String = "auto";
}
}//package mx.core
Section 570
//ContainerGlobals (mx.core.ContainerGlobals)
package mx.core {
import flash.display.*;
import mx.managers.*;
public class ContainerGlobals {
public static var focusedContainer:InteractiveObject;
public static function checkFocus(_arg1:InteractiveObject, _arg2:InteractiveObject):void{
var _local6:IFocusManager;
var _local7:IButton;
var _local3:InteractiveObject = _arg2;
var _local4:InteractiveObject = _arg2;
var _local5:IUIComponent;
if (((!((_arg2 == null))) && ((_arg1 == _arg2)))){
return;
};
while (_local4) {
if (_local4.parent){
_local3 = _local4.parent;
} else {
_local3 = null;
};
if ((_local4 is IUIComponent)){
_local5 = IUIComponent(_local4);
};
_local4 = _local3;
if (((((_local4) && ((_local4 is IContainer)))) && (IContainer(_local4).defaultButton))){
break;
};
};
if (((!((ContainerGlobals.focusedContainer == _local4))) || ((((ContainerGlobals.focusedContainer == null)) && ((_local4 == null)))))){
if (!_local4){
_local4 = InteractiveObject(_local5);
};
if (((_local4) && ((_local4 is IContainer)))){
_local6 = IContainer(_local4).focusManager;
if (!_local6){
return;
};
_local7 = (IContainer(_local4).defaultButton as IButton);
if (_local7){
ContainerGlobals.focusedContainer = InteractiveObject(_local4);
_local6.defaultButton = (_local7 as IButton);
} else {
ContainerGlobals.focusedContainer = InteractiveObject(_local4);
_local6.defaultButton = null;
};
};
};
}
}
}//package mx.core
Section 571
//ContainerLayout (mx.core.ContainerLayout)
package mx.core {
public final class ContainerLayout {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
public static const ABSOLUTE:String = "absolute";
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 572
//ContainerRawChildrenList (mx.core.ContainerRawChildrenList)
package mx.core {
import flash.display.*;
import flash.geom.*;
public class ContainerRawChildrenList implements IChildList {
private var owner:Container;
mx_internal static const VERSION:String = "3.0.0.0";
public function ContainerRawChildrenList(_arg1:Container){
this.owner = _arg1;
}
public function addChild(_arg1:DisplayObject):DisplayObject{
return (owner.mx_internal::rawChildren_addChild(_arg1));
}
public function getChildIndex(_arg1:DisplayObject):int{
return (owner.mx_internal::rawChildren_getChildIndex(_arg1));
}
public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
var _local3 = owner;
_local3.mx_internal::rawChildren_setChildIndex(_arg1, _arg2);
}
public function getChildByName(_arg1:String):DisplayObject{
return (owner.mx_internal::rawChildren_getChildByName(_arg1));
}
public function removeChildAt(_arg1:int):DisplayObject{
return (owner.mx_internal::rawChildren_removeChildAt(_arg1));
}
public function get numChildren():int{
return (owner.mx_internal::$numChildren);
}
public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
return (owner.mx_internal::rawChildren_addChildAt(_arg1, _arg2));
}
public function getObjectsUnderPoint(_arg1:Point):Array{
return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1));
}
public function contains(_arg1:DisplayObject):Boolean{
return (owner.mx_internal::rawChildren_contains(_arg1));
}
public function removeChild(_arg1:DisplayObject):DisplayObject{
return (owner.mx_internal::rawChildren_removeChild(_arg1));
}
public function getChildAt(_arg1:int):DisplayObject{
return (owner.mx_internal::rawChildren_getChildAt(_arg1));
}
}
}//package mx.core
Section 573
//DragSource (mx.core.DragSource)
package mx.core {
public class DragSource {
private var formatHandlers:Object;
private var dataHolder:Object;
private var _formats:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function DragSource(){
dataHolder = {};
formatHandlers = {};
_formats = [];
super();
}
public function hasFormat(_arg1:String):Boolean{
var _local2:int = _formats.length;
var _local3:int;
while (_local3 < _local2) {
if (_formats[_local3] == _arg1){
return (true);
};
_local3++;
};
return (false);
}
public function addData(_arg1:Object, _arg2:String):void{
_formats.push(_arg2);
dataHolder[_arg2] = _arg1;
}
public function dataForFormat(_arg1:String):Object{
var _local2:Object = dataHolder[_arg1];
if (_local2){
return (_local2);
};
if (formatHandlers[_arg1]){
return (formatHandlers[_arg1]());
};
return (null);
}
public function addHandler(_arg1:Function, _arg2:String):void{
_formats.push(_arg2);
formatHandlers[_arg2] = _arg1;
}
public function get formats():Array{
return (_formats);
}
}
}//package mx.core
Section 574
//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.0.0.0";
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 575
//EmbeddedFont (mx.core.EmbeddedFont)
package mx.core {
public class EmbeddedFont {
private var _fontName:String;
private var _fontStyle:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function EmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean){
_fontName = _arg1;
_fontStyle = EmbeddedFontRegistry.getFontStyle(_arg2, _arg3);
}
public function get fontStyle():String{
return (_fontStyle);
}
public function get fontName():String{
return (_fontName);
}
}
}//package mx.core
Section 576
//EmbeddedFontRegistry (mx.core.EmbeddedFontRegistry)
package mx.core {
import flash.text.*;
import flash.utils.*;
public class EmbeddedFontRegistry implements IEmbeddedFontRegistry {
mx_internal static const VERSION:String = "3.0.0.0";
private static var fonts:Object = {};
private static var instance:IEmbeddedFontRegistry;
public function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory{
var _local4:int;
var _local5:Object;
var _local3:Dictionary = fonts[createFontKey(_arg1)];
if (_local3){
_local4 = _local3[_arg2];
if (_local4){
return (_arg2);
};
for (_local5 in _local3) {
return ((_local5 as IFlexModuleFactory));
};
};
return (null);
}
public function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{
var _local5:int;
var _local6:Object;
var _local3:String = createFontKey(_arg1);
var _local4:Dictionary = fonts[_local3];
if (_local4 != null){
delete _local4[_arg2];
_local5 = 0;
for (_local6 in _local4) {
_local5++;
};
if (_local5 == 0){
delete fonts[_local3];
};
};
}
public function getFonts():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in fonts) {
_local1.push(createEmbeddedFont(_local2));
};
return (_local1);
}
public function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{
var _local3:String = createFontKey(_arg1);
var _local4:Dictionary = fonts[_local3];
if (!_local4){
_local4 = new Dictionary(true);
fonts[_local3] = _local4;
};
_local4[_arg2] = 1;
}
public static function registerFonts(_arg1:Object, _arg2:IFlexModuleFactory):void{
var _local4:Object;
var _local5:Object;
var _local6:String;
var _local7:Boolean;
var _local8:Boolean;
var _local3:IEmbeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
for (_local4 in _arg1) {
_local5 = _arg1[_local4];
for (_local6 in _local5) {
if (_local5[_local6] == false){
} else {
if (_local6 == "regular"){
_local7 = false;
_local8 = false;
} else {
if (_local6 == "boldItalic"){
_local7 = true;
_local8 = true;
} else {
if (_local6 == "bold"){
_local7 = true;
_local8 = false;
} else {
if (_local6 == "italic"){
_local7 = false;
_local8 = true;
};
};
};
};
_local3.registerFont(new EmbeddedFont(String(_local4), _local7, _local8), _arg2);
};
};
};
}
public static function getInstance():IEmbeddedFontRegistry{
if (!instance){
instance = new (EmbeddedFontRegistry);
};
return (instance);
}
public static function getFontStyle(_arg1:Boolean, _arg2:Boolean):String{
var _local3:String = FontStyle.REGULAR;
if (((_arg1) && (_arg2))){
_local3 = FontStyle.BOLD_ITALIC;
} else {
if (_arg1){
_local3 = FontStyle.BOLD;
} else {
if (_arg2){
_local3 = FontStyle.ITALIC;
};
};
};
return (_local3);
}
private static function createFontKey(_arg1:EmbeddedFont):String{
return ((_arg1.fontName + _arg1.fontStyle));
}
private static function createEmbeddedFont(_arg1:String):EmbeddedFont{
var _local2:String;
var _local3:Boolean;
var _local4:Boolean;
var _local5:int = endsWith(_arg1, FontStyle.REGULAR);
if (_local5 > 0){
_local2 = _arg1.substring(0, _local5);
return (new EmbeddedFont(_local2, false, false));
};
_local5 = endsWith(_arg1, FontStyle.BOLD);
if (_local5 > 0){
_local2 = _arg1.substring(0, _local5);
return (new EmbeddedFont(_local2, true, false));
};
_local5 = endsWith(_arg1, FontStyle.BOLD_ITALIC);
if (_local5 > 0){
_local2 = _arg1.substring(0, _local5);
return (new EmbeddedFont(_local2, true, true));
};
_local5 = endsWith(_arg1, FontStyle.ITALIC);
if (_local5 > 0){
_local2 = _arg1.substring(0, _local5);
return (new EmbeddedFont(_local2, false, true));
};
return (new EmbeddedFont("", false, false));
}
private static function endsWith(_arg1:String, _arg2:String):int{
var _local3:int = _arg1.lastIndexOf(_arg2);
if ((((_local3 > 0)) && (((_local3 + _arg2.length) == _arg1.length)))){
return (_local3);
};
return (-1);
}
}
}//package mx.core
Section 577
//EventPriority (mx.core.EventPriority)
package mx.core {
public final class EventPriority {
public static const DEFAULT:int = 0;
public static const BINDING:int = 100;
public static const DEFAULT_HANDLER:int = -50;
public static const EFFECT:int = -100;
public static const CURSOR_MANAGEMENT:int = 200;
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 578
//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.0.0.0";
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 579
//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.0.0.0";
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 580
//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.0.0.0";
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 581
//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.0.0.0";
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 582
//FlexTextField (mx.core.FlexTextField)
package mx.core {
import flash.text.*;
import mx.utils.*;
public class FlexTextField extends TextField {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexTextField(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 583
//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.0.0.0";
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 584
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 585
//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 586
//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 587
//IConstraintClient (mx.core.IConstraintClient)
package mx.core {
public interface IConstraintClient {
function setConstraintValue(_arg1:String, _arg2):void;
function getConstraintValue(_arg1:String);
}
}//package mx.core
Section 588
//IContainer (mx.core.IContainer)
package mx.core {
import flash.display.*;
import mx.managers.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
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 589
//IDataRenderer (mx.core.IDataRenderer)
package mx.core {
public interface IDataRenderer {
function get data():Object;
function set data(_arg1:Object):void;
}
}//package mx.core
Section 590
//IDeferredInstantiationUIComponent (mx.core.IDeferredInstantiationUIComponent)
package mx.core {
public interface IDeferredInstantiationUIComponent extends IUIComponent {
function set cacheHeuristic(_arg1:Boolean):void;
function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void;
function get cachePolicy():String;
function set id(_arg1:String):void;
function registerEffects(_arg1:Array):void;
function executeBindings(_arg1:Boolean=false):void;
function get id():String;
function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void;
function set descriptor(_arg1:UIComponentDescriptor):void;
function get descriptor():UIComponentDescriptor;
}
}//package mx.core
Section 591
//IEmbeddedFontRegistry (mx.core.IEmbeddedFontRegistry)
package mx.core {
public interface IEmbeddedFontRegistry {
function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory;
function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void;
function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void;
function getFonts():Array;
}
}//package mx.core
Section 592
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 593
//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 594
//IFlexModule (mx.core.IFlexModule)
package mx.core {
public interface IFlexModule {
function set moduleFactory(_arg1:IFlexModuleFactory):void;
function get moduleFactory():IFlexModuleFactory;
}
}//package mx.core
Section 595
//IFlexModuleFactory (mx.core.IFlexModuleFactory)
package mx.core {
public interface IFlexModuleFactory {
function create(... _args):Object;
function info():Object;
}
}//package mx.core
Section 596
//IFontContextComponent (mx.core.IFontContextComponent)
package mx.core {
public interface IFontContextComponent {
function get fontContext():IFlexModuleFactory;
function set fontContext(_arg1:IFlexModuleFactory):void;
}
}//package mx.core
Section 597
//IIMESupport (mx.core.IIMESupport)
package mx.core {
public interface IIMESupport {
function set imeMode(_arg1:String):void;
function get imeMode():String;
}
}//package mx.core
Section 598
//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 599
//IMXMLObject (mx.core.IMXMLObject)
package mx.core {
public interface IMXMLObject {
function initialized(_arg1:Object, _arg2:String):void;
}
}//package mx.core
Section 600
//IProgrammaticSkin (mx.core.IProgrammaticSkin)
package mx.core {
public interface IProgrammaticSkin {
function validateNow():void;
function validateDisplayList():void;
}
}//package mx.core
Section 601
//IPropertyChangeNotifier (mx.core.IPropertyChangeNotifier)
package mx.core {
import flash.events.*;
public interface IPropertyChangeNotifier extends IEventDispatcher, IUID {
}
}//package mx.core
Section 602
//IRawChildrenContainer (mx.core.IRawChildrenContainer)
package mx.core {
public interface IRawChildrenContainer {
function get rawChildren():IChildList;
}
}//package mx.core
Section 603
//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 604
//IRepeater (mx.core.IRepeater)
package mx.core {
public interface IRepeater {
function get container():IContainer;
function set startingIndex(_arg1:int):void;
function get startingIndex():int;
function set recycleChildren(_arg1:Boolean):void;
function get currentItem():Object;
function get count():int;
function get recycleChildren():Boolean;
function executeChildBindings():void;
function set dataProvider(_arg1:Object):void;
function initializeRepeater(_arg1:IContainer, _arg2:Boolean):void;
function get currentIndex():int;
function get dataProvider():Object;
function set count(_arg1:int):void;
}
}//package mx.core
Section 605
//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 606
//IStateClient (mx.core.IStateClient)
package mx.core {
public interface IStateClient {
function get currentState():String;
function set currentState(_arg1:String):void;
}
}//package mx.core
Section 607
//ITextFieldFactory (mx.core.ITextFieldFactory)
package mx.core {
import flash.text.*;
public interface ITextFieldFactory {
function createTextField(_arg1:IFlexModuleFactory):TextField;
}
}//package mx.core
Section 608
//IToolTip (mx.core.IToolTip)
package mx.core {
import flash.geom.*;
public interface IToolTip extends IUIComponent {
function set text(_arg1:String):void;
function get screen():Rectangle;
function get text():String;
}
}//package mx.core
Section 609
//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 610
//IUID (mx.core.IUID)
package mx.core {
public interface IUID {
function get uid():String;
function set uid(_arg1:String):void;
}
}//package mx.core
Section 611
//IUITextField (mx.core.IUITextField)
package mx.core {
import flash.display.*;
import mx.managers.*;
import flash.geom.*;
import mx.styles.*;
import flash.text.*;
public interface IUITextField extends IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUIComponent {
function replaceText(_arg1:int, _arg2:int, _arg3:String):void;
function get doubleClickEnabled():Boolean;
function get nestLevel():int;
function get caretIndex():int;
function set doubleClickEnabled(_arg1:Boolean):void;
function get maxScrollH():int;
function set nestLevel(_arg1:int):void;
function get numLines():int;
function get scrollH():int;
function setColor(_arg1:uint):void;
function get maxScrollV():int;
function getImageReference(_arg1:String):DisplayObject;
function get scrollV():int;
function get border():Boolean;
function get text():String;
function get styleSheet():StyleSheet;
function getCharBoundaries(_arg1:int):Rectangle;
function get background():Boolean;
function set scrollH(_arg1:int):void;
function getFirstCharInParagraph(_arg1:int):int;
function get type():String;
function replaceSelectedText(_arg1:String):void;
function set borderColor(_arg1:uint):void;
function get alwaysShowSelection():Boolean;
function get sharpness():Number;
function get tabIndex():int;
function get textColor():uint;
function set defaultTextFormat(_arg1:TextFormat):void;
function get condenseWhite():Boolean;
function get displayAsPassword():Boolean;
function get autoSize():String;
function setSelection(_arg1:int, _arg2:int):void;
function set scrollV(_arg1:int):void;
function set useRichTextClipboard(_arg1:Boolean):void;
function get selectionBeginIndex():int;
function get selectable():Boolean;
function set border(_arg1:Boolean):void;
function set multiline(_arg1:Boolean):void;
function set background(_arg1:Boolean):void;
function set embedFonts(_arg1:Boolean):void;
function set text(_arg1:String):void;
function get selectionEndIndex():int;
function set mouseWheelEnabled(_arg1:Boolean):void;
function appendText(_arg1:String):void;
function get antiAliasType():String;
function set styleSheet(_arg1:StyleSheet):void;
function set nonInheritingStyles(_arg1:Object):void;
function set textColor(_arg1:uint):void;
function get wordWrap():Boolean;
function getLineIndexAtPoint(_arg1:Number, _arg2:Number):int;
function get htmlText():String;
function set tabIndex(_arg1:int):void;
function get thickness():Number;
function getLineIndexOfChar(_arg1:int):int;
function get bottomScrollV():int;
function set restrict(_arg1:String):void;
function set alwaysShowSelection(_arg1:Boolean):void;
function getTextFormat(_arg1:int=-1, _arg2:int=-1):TextFormat;
function set sharpness(_arg1:Number):void;
function set type(_arg1:String):void;
function setTextFormat(_arg1:TextFormat, _arg2:int=-1, _arg3:int=-1):void;
function set gridFitType(_arg1:String):void;
function getUITextFormat():UITextFormat;
function set inheritingStyles(_arg1:Object):void;
function setFocus():void;
function get borderColor():uint;
function set condenseWhite(_arg1:Boolean):void;
function get textWidth():Number;
function getLineOffset(_arg1:int):int;
function set displayAsPassword(_arg1:Boolean):void;
function set autoSize(_arg1:String):void;
function get defaultTextFormat():TextFormat;
function get useRichTextClipboard():Boolean;
function get nonZeroTextHeight():Number;
function set backgroundColor(_arg1:uint):void;
function get embedFonts():Boolean;
function set selectable(_arg1:Boolean):void;
function get multiline():Boolean;
function set maxChars(_arg1:int):void;
function get textHeight():Number;
function get nonInheritingStyles():Object;
function getLineText(_arg1:int):String;
function set focusRect(_arg1:Object):void;
function get mouseWheelEnabled():Boolean;
function get restrict():String;
function getParagraphLength(_arg1:int):int;
function set mouseEnabled(_arg1:Boolean):void;
function get gridFitType():String;
function get inheritingStyles():Object;
function set ignorePadding(_arg1:Boolean):void;
function set antiAliasType(_arg1:String):void;
function get backgroundColor():uint;
function getCharIndexAtPoint(_arg1:Number, _arg2:Number):int;
function set tabEnabled(_arg1:Boolean):void;
function get maxChars():int;
function get focusRect():Object;
function get ignorePadding():Boolean;
function get mouseEnabled():Boolean;
function get length():int;
function set wordWrap(_arg1:Boolean):void;
function get tabEnabled():Boolean;
function set thickness(_arg1:Number):void;
function getLineLength(_arg1:int):int;
function truncateToFit(_arg1:String=null):Boolean;
function set htmlText(_arg1:String):void;
function getLineMetrics(_arg1:int):TextLineMetrics;
function getStyle(_arg1:String);
}
}//package mx.core
Section 612
//LayoutContainer (mx.core.LayoutContainer)
package mx.core {
import flash.events.*;
import mx.containers.utilityClasses.*;
import mx.containers.*;
public class LayoutContainer extends Container implements IConstraintLayout {
private var _constraintColumns:Array;
protected var layoutObject:Layout;
private var _layout:String;// = "vertical"
private var processingCreationQueue:Boolean;// = false
protected var boxLayoutClass:Class;
private var resizeHandlerAdded:Boolean;// = false
private var preloadObj:Object;
private var creationQueue:Array;
private var _constraintRows:Array;
protected var canvasLayoutClass:Class;
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var useProgressiveLayout:Boolean = false;
public function LayoutContainer(){
layoutObject = new BoxLayout();
canvasLayoutClass = CanvasLayout;
boxLayoutClass = BoxLayout;
creationQueue = [];
_constraintColumns = [];
_constraintRows = [];
super();
layoutObject.target = this;
}
public function get constraintColumns():Array{
return (_constraintColumns);
}
override mx_internal function get usePadding():Boolean{
return (!((layout == ContainerLayout.ABSOLUTE)));
}
override protected function layoutChrome(_arg1:Number, _arg2:Number):void{
super.layoutChrome(_arg1, _arg2);
if (!doingLayout){
createBorder();
};
}
public function set constraintColumns(_arg1:Array):void{
var _local2:int;
var _local3:int;
if (_arg1 != _constraintColumns){
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
ConstraintColumn(_arg1[_local3]).container = this;
_local3++;
};
_constraintColumns = _arg1;
invalidateSize();
invalidateDisplayList();
};
}
public function set layout(_arg1:String):void{
if (_layout != _arg1){
_layout = _arg1;
if (layoutObject){
layoutObject.target = null;
};
if (_layout == ContainerLayout.ABSOLUTE){
layoutObject = new canvasLayoutClass();
} else {
layoutObject = new boxLayoutClass();
if (_layout == ContainerLayout.VERTICAL){
BoxLayout(layoutObject).direction = BoxDirection.VERTICAL;
} else {
BoxLayout(layoutObject).direction = BoxDirection.HORIZONTAL;
};
};
if (layoutObject){
layoutObject.target = this;
};
invalidateSize();
invalidateDisplayList();
dispatchEvent(new Event("layoutChanged"));
};
}
public function get constraintRows():Array{
return (_constraintRows);
}
override protected function measure():void{
super.measure();
layoutObject.measure();
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
super.updateDisplayList(_arg1, _arg2);
layoutObject.updateDisplayList(_arg1, _arg2);
createBorder();
}
public function get layout():String{
return (_layout);
}
public function set constraintRows(_arg1:Array):void{
var _local2:int;
var _local3:int;
if (_arg1 != _constraintRows){
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
ConstraintRow(_arg1[_local3]).container = this;
_local3++;
};
_constraintRows = _arg1;
invalidateSize();
invalidateDisplayList();
};
}
}
}//package mx.core
Section 613
//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 614
//ResourceModuleRSLItem (mx.core.ResourceModuleRSLItem)
package mx.core {
import flash.events.*;
import mx.events.*;
import mx.resources.*;
public class ResourceModuleRSLItem extends RSLItem {
mx_internal static const VERSION:String = "3.0.0.0";
public function ResourceModuleRSLItem(_arg1:String){
super(_arg1);
}
private function resourceErrorHandler(_arg1:ResourceEvent):void{
var _local2:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR);
_local2.text = _arg1.errorText;
super.itemErrorHandler(_local2);
}
override public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{
chainedProgressHandler = _arg1;
chainedCompleteHandler = _arg2;
chainedIOErrorHandler = _arg3;
chainedSecurityErrorHandler = _arg4;
chainedRSLErrorHandler = _arg5;
var _local6:IResourceManager = ResourceManager.getInstance();
var _local7:IEventDispatcher = _local6.loadResourceModule(url);
_local7.addEventListener(ResourceEvent.PROGRESS, itemProgressHandler);
_local7.addEventListener(ResourceEvent.COMPLETE, itemCompleteHandler);
_local7.addEventListener(ResourceEvent.ERROR, resourceErrorHandler);
}
}
}//package mx.core
Section 615
//RSLItem (mx.core.RSLItem)
package mx.core {
import flash.display.*;
import flash.events.*;
import mx.events.*;
import flash.system.*;
import flash.net.*;
public class RSLItem {
protected var chainedSecurityErrorHandler:Function;
public var total:uint;// = 0
public var loaded:uint;// = 0
private var completed:Boolean;// = false
protected var chainedRSLErrorHandler:Function;
protected var chainedIOErrorHandler:Function;
protected var chainedCompleteHandler:Function;
private var errorText:String;
protected var chainedProgressHandler:Function;
public var urlRequest:URLRequest;
protected var url:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function RSLItem(_arg1:String){
this.url = _arg1;
}
public function itemProgressHandler(_arg1:ProgressEvent):void{
loaded = _arg1.bytesLoaded;
total = _arg1.bytesTotal;
if (chainedProgressHandler != null){
chainedProgressHandler(_arg1);
};
}
public function itemErrorHandler(_arg1:ErrorEvent):void{
errorText = decodeURI(_arg1.text);
completed = true;
loaded = 0;
total = 0;
trace(errorText);
if ((((_arg1.type == IOErrorEvent.IO_ERROR)) && (!((chainedIOErrorHandler == null))))){
chainedIOErrorHandler(_arg1);
} else {
if ((((_arg1.type == SecurityErrorEvent.SECURITY_ERROR)) && (!((chainedSecurityErrorHandler == null))))){
chainedSecurityErrorHandler(_arg1);
} else {
if ((((_arg1.type == RSLEvent.RSL_ERROR)) && (!((chainedRSLErrorHandler == null))))){
chainedRSLErrorHandler(_arg1);
};
};
};
}
public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{
chainedProgressHandler = _arg1;
chainedCompleteHandler = _arg2;
chainedIOErrorHandler = _arg3;
chainedSecurityErrorHandler = _arg4;
chainedRSLErrorHandler = _arg5;
var _local6:Loader = new Loader();
var _local7:LoaderContext = new LoaderContext();
urlRequest = new URLRequest(url);
_local6.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, itemProgressHandler);
_local6.contentLoaderInfo.addEventListener(Event.COMPLETE, itemCompleteHandler);
_local6.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, itemErrorHandler);
_local6.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, itemErrorHandler);
_local7.applicationDomain = ApplicationDomain.currentDomain;
_local6.load(urlRequest, _local7);
}
public function itemCompleteHandler(_arg1:Event):void{
completed = true;
if (chainedCompleteHandler != null){
chainedCompleteHandler(_arg1);
};
}
}
}//package mx.core
Section 616
//RSLListLoader (mx.core.RSLListLoader)
package mx.core {
import flash.events.*;
public class RSLListLoader {
private var chainedSecurityErrorHandler:Function;
private var chainedIOErrorHandler:Function;
private var rslList:Array;
private var chainedRSLErrorHandler:Function;
private var chainedCompleteHandler:Function;
private var currentIndex:int;// = 0
private var chainedProgressHandler:Function;
mx_internal static const VERSION:String = "3.0.0.0";
public function RSLListLoader(_arg1:Array){
rslList = [];
super();
this.rslList = _arg1;
}
private function loadNext():void{
if (!isDone()){
currentIndex++;
if (currentIndex < rslList.length){
rslList[currentIndex].load(chainedProgressHandler, listCompleteHandler, listIOErrorHandler, listSecurityErrorHandler, chainedRSLErrorHandler);
};
};
}
public function getIndex():int{
return (currentIndex);
}
public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{
chainedProgressHandler = _arg1;
chainedCompleteHandler = _arg2;
chainedIOErrorHandler = _arg3;
chainedSecurityErrorHandler = _arg4;
chainedRSLErrorHandler = _arg5;
currentIndex = -1;
loadNext();
}
private function listCompleteHandler(_arg1:Event):void{
if (chainedCompleteHandler != null){
chainedCompleteHandler(_arg1);
};
loadNext();
}
public function isDone():Boolean{
return ((currentIndex >= rslList.length));
}
private function listSecurityErrorHandler(_arg1:Event):void{
if (chainedSecurityErrorHandler != null){
chainedSecurityErrorHandler(_arg1);
};
}
public function getItemCount():int{
return (rslList.length);
}
public function getItem(_arg1:int):RSLItem{
if ((((_arg1 < 0)) || ((_arg1 >= rslList.length)))){
return (null);
};
return (rslList[_arg1]);
}
private function listIOErrorHandler(_arg1:Event):void{
if (chainedIOErrorHandler != null){
chainedIOErrorHandler(_arg1);
};
}
}
}//package mx.core
Section 617
//ScrollPolicy (mx.core.ScrollPolicy)
package mx.core {
public final class ScrollPolicy {
public static const AUTO:String = "auto";
public static const ON:String = "on";
mx_internal static const VERSION:String = "3.0.0.0";
public static const OFF:String = "off";
}
}//package mx.core
Section 618
//Singleton (mx.core.Singleton)
package mx.core {
public class Singleton {
mx_internal static const VERSION:String = "3.0.0.0";
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 619
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 620
//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.0.0.0";
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 621
//TextFieldFactory (mx.core.TextFieldFactory)
package mx.core {
import flash.text.*;
import flash.utils.*;
public class TextFieldFactory implements ITextFieldFactory {
private var textFields:Dictionary;
mx_internal static const VERSION:String = "3.0.0.0";
private static var instance:ITextFieldFactory;
public function TextFieldFactory(){
textFields = new Dictionary(true);
super();
}
public function createTextField(_arg1:IFlexModuleFactory):TextField{
var _local4:Object;
var _local2:TextField;
var _local3:Dictionary = textFields[_arg1];
if (_local3){
for (_local4 in _local3) {
_local2 = TextField(_local4);
break;
};
};
if (!_local2){
if (_arg1){
_local2 = TextField(_arg1.create("flash.text.TextField"));
} else {
_local2 = new TextField();
};
if (!_local3){
_local3 = new Dictionary(true);
};
_local3[_local2] = 1;
textFields[_arg1] = _local3;
};
return (_local2);
}
public static function getInstance():ITextFieldFactory{
if (!instance){
instance = new (TextFieldFactory);
};
return (instance);
}
}
}//package mx.core
Section 622
//UIComponent (mx.core.UIComponent)
package mx.core {
import mx.events.*;
import mx.automation.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import mx.resources.*;
import flash.geom.*;
import mx.styles.*;
import mx.controls.*;
import flash.text.*;
import mx.states.*;
import mx.effects.*;
import mx.graphics.*;
import mx.binding.*;
import flash.utils.*;
import mx.validators.*;
import mx.utils.*;
import flash.system.*;
import mx.modules.*;
public class UIComponent extends FlexSprite implements IAutomationObject, IChildList, IDeferredInstantiationUIComponent, IFlexDisplayObject, IFlexModule, IInvalidating, ILayoutManagerClient, IPropertyChangeNotifier, IRepeaterClient, ISimpleStyleClient, IStyleClient, IToolTipManagerClient, IUIComponent, IValidatorListener, IStateClient, IConstraintClient {
private var cachedEmbeddedFont:EmbeddedFont;// = null
private var errorStringChanged:Boolean;// = false
mx_internal var overlay:UIComponent;
mx_internal var automaticRadioButtonGroups:Object;
private var _currentState:String;
private var _isPopUp:Boolean;
private var _repeaters:Array;
private var _systemManager:ISystemManager;
private var _measuredWidth:Number;// = 0
private var methodQueue:Array;
mx_internal var _width:Number;
private var _tweeningProperties:Array;
private var _validationSubField:String;
private var _endingEffectInstances:Array;
mx_internal var saveBorderColor:Boolean;// = true
mx_internal var overlayColor:uint;
mx_internal var overlayReferenceCount:int;// = 0
private var hasFontContextBeenSaved:Boolean;// = false
private var _repeaterIndices:Array;
private var oldExplicitWidth:Number;
mx_internal var _descriptor:UIComponentDescriptor;
private var _initialized:Boolean;// = false
private var _focusEnabled:Boolean;// = true
private var cacheAsBitmapCount:int;// = 0
private var requestedCurrentState:String;
private var listeningForRender:Boolean;// = false
mx_internal var invalidateDisplayListFlag:Boolean;// = false
private var oldScaleX:Number;// = 1
private var oldScaleY:Number;// = 1
mx_internal var _explicitMaxHeight:Number;
mx_internal var invalidatePropertiesFlag:Boolean;// = false
private var hasFocusRect:Boolean;// = false
mx_internal var invalidateSizeFlag:Boolean;// = false
private var _scaleX:Number;// = 1
private var _scaleY:Number;// = 1
private var _styleDeclaration:CSSStyleDeclaration;
private var _resourceManager:IResourceManager;
mx_internal var _affectedProperties:Object;
mx_internal var _documentDescriptor:UIComponentDescriptor;
private var _processedDescriptors:Boolean;// = false
mx_internal var origBorderColor:Number;
private var _focusManager:IFocusManager;
private var _cachePolicy:String;// = "auto"
private var _measuredHeight:Number;// = 0
private var _id:String;
private var _owner:DisplayObjectContainer;
public var transitions:Array;
mx_internal var _parent:DisplayObjectContainer;
private var _measuredMinWidth:Number;// = 0
private var oldMinWidth:Number;
private var _explicitWidth:Number;
private var _enabled:Boolean;// = false
public var states:Array;
private var _mouseFocusEnabled:Boolean;// = true
private var oldHeight:Number;// = 0
private var _currentStateChanged:Boolean;
private var cachedTextFormat:UITextFormat;
mx_internal var _height:Number;
private var _automationDelegate:IAutomationObject;
private var _percentWidth:Number;
private var _automationName:String;// = null
private var _isEffectStarted:Boolean;// = false
private var _styleName:Object;
private var lastUnscaledWidth:Number;
mx_internal var _document:Object;
mx_internal var _errorString:String;// = ""
private var oldExplicitHeight:Number;
private var _nestLevel:int;// = 0
private var _systemManagerDirty:Boolean;// = false
private var _explicitHeight:Number;
mx_internal var _toolTip:String;
private var _filters:Array;
private var _focusPane:Sprite;
private var playStateTransition:Boolean;// = true
private var _nonInheritingStyles:Object;
private var _showInAutomationHierarchy:Boolean;// = true
private var _moduleFactory:IFlexModuleFactory;
private var preventDrawFocus:Boolean;// = false
private var oldX:Number;// = 0
private var oldY:Number;// = 0
private var _instanceIndices:Array;
private var _visible:Boolean;// = true
private var _inheritingStyles:Object;
private var _includeInLayout:Boolean;// = true
mx_internal var _effectsStarted:Array;
mx_internal var _explicitMinWidth:Number;
private var lastUnscaledHeight:Number;
mx_internal var _explicitMaxWidth:Number;
private var _measuredMinHeight:Number;// = 0
private var _uid:String;
private var _currentTransitionEffect:IEffect;
private var _updateCompletePendingFlag:Boolean;// = false
private var oldMinHeight:Number;
private var _flexContextMenu:IFlexContextMenu;
mx_internal var _explicitMinHeight:Number;
private var _percentHeight:Number;
private var oldEmbeddedFontContext:IFlexModuleFactory;// = null
private var oldWidth:Number;// = 0
public static const DEFAULT_MEASURED_WIDTH:Number = 160;
public static const DEFAULT_MAX_WIDTH:Number = 10000;
public static const DEFAULT_MEASURED_MIN_HEIGHT:Number = 22;
public static const DEFAULT_MAX_HEIGHT:Number = 10000;
public static const DEFAULT_MEASURED_HEIGHT:Number = 22;
mx_internal static const VERSION:String = "3.0.0.0";
public static const DEFAULT_MEASURED_MIN_WIDTH:Number = 40;
mx_internal static var dispatchEventHook:Function;
private static var fakeMouseY:QName = new QName(mx_internal, "_mouseY");
mx_internal static var createAccessibilityImplementation:Function;
mx_internal static var STYLE_UNINITIALIZED:Object = {};
private static var fakeMouseX:QName = new QName(mx_internal, "_mouseX");
private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
public function UIComponent(){
methodQueue = [];
_resourceManager = ResourceManager.getInstance();
_inheritingStyles = UIComponent.STYLE_UNINITIALIZED;
_nonInheritingStyles = UIComponent.STYLE_UNINITIALIZED;
states = [];
transitions = [];
_effectsStarted = [];
_affectedProperties = {};
_endingEffectInstances = [];
super();
focusRect = false;
tabEnabled = (this is IFocusManagerComponent);
tabChildren = false;
enabled = true;
$visible = false;
addEventListener(Event.ADDED, addedHandler);
addEventListener(Event.REMOVED, removedHandler);
if ((this is IFocusManagerComponent)){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
resourcesChanged();
resourceManager.addEventListener(Event.CHANGE, resourceManager_changeHandler, false, 0, true);
_width = super.width;
_height = super.height;
}
override public function get filters():Array{
return ((_filters) ? _filters : super.filters);
}
public function get toolTip():String{
return (_toolTip);
}
private function transition_effectEndHandler(_arg1:EffectEvent):void{
_currentTransitionEffect = null;
}
public function get nestLevel():int{
return (_nestLevel);
}
protected function adjustFocusRect(_arg1:DisplayObject=null):void{
var _local4:Number;
var _local5:Number;
var _local6:Point;
var _local7:Number;
if (!_arg1){
_arg1 = this;
};
if (((isNaN(_arg1.width)) || (isNaN(_arg1.height)))){
return;
};
var _local2:IFocusManager = focusManager;
if (!_local2){
return;
};
var _local3:IFlexDisplayObject = IFlexDisplayObject(getFocusObject());
if (_local3){
if (((errorString) && (!((errorString == ""))))){
_local4 = getStyle("errorColor");
} else {
_local4 = getStyle("themeColor");
};
_local5 = getStyle("focusThickness");
if ((_local3 is IStyleClient)){
IStyleClient(_local3).setStyle("focusColor", _local4);
};
_local3.setActualSize((_arg1.width + (2 * _local5)), (_arg1.height + (2 * _local5)));
if (rotation){
_local7 = ((rotation * Math.PI) / 180);
_local6 = new Point((_arg1.x - (_local5 * (Math.cos(_local7) - Math.sin(_local7)))), (_arg1.y - (_local5 * (Math.cos(_local7) + Math.sin(_local7)))));
DisplayObject(_local3).rotation = rotation;
} else {
_local6 = new Point((_arg1.x - _local5), (_arg1.y - _local5));
};
if (_arg1.parent == this){
_local6.x = (_local6.x + x);
_local6.y = (_local6.y + y);
};
_local6 = parent.localToGlobal(_local6);
_local6 = parent.globalToLocal(_local6);
_local3.move(_local6.x, _local6.y);
if ((_local3 is IInvalidating)){
IInvalidating(_local3).validateNow();
} else {
if ((_local3 is IProgrammaticSkin)){
IProgrammaticSkin(_local3).validateNow();
};
};
};
}
mx_internal function setUnscaledWidth(_arg1:Number):void{
var _local2:Number = (_arg1 * Math.abs(oldScaleX));
if (_explicitWidth == _local2){
return;
};
if (!isNaN(_local2)){
_percentWidth = NaN;
};
_explicitWidth = _local2;
invalidateSize();
var _local3:IInvalidating = (parent as IInvalidating);
if (((_local3) && (includeInLayout))){
_local3.invalidateSize();
_local3.invalidateDisplayList();
};
}
public function set nestLevel(_arg1:int):void{
var _local2:IChildList;
var _local3:int;
var _local4:int;
var _local5:ILayoutManagerClient;
var _local6:IUITextField;
if ((((_arg1 > 1)) && (!((_nestLevel == _arg1))))){
_nestLevel = _arg1;
updateCallbacks();
_local2 = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this);
_local3 = _local2.numChildren;
_local4 = 0;
while (_local4 < _local3) {
_local5 = (_local2.getChildAt(_local4) as ILayoutManagerClient);
if (_local5){
_local5.nestLevel = (_arg1 + 1);
} else {
_local6 = (_local2.getChildAt(_local4) as IUITextField);
if (_local6){
_local6.nestLevel = (_arg1 + 1);
};
};
_local4++;
};
};
}
public function getExplicitOrMeasuredHeight():Number{
return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight);
}
private function callLaterDispatcher(_arg1:Event):void{
var callLaterErrorEvent:DynamicEvent;
var event = _arg1;
UIComponentGlobals.callLaterDispatcherCount++;
if (!UIComponentGlobals.catchCallLaterExceptions){
callLaterDispatcher2(event);
} else {
try {
callLaterDispatcher2(event);
} catch(e:Error) {
callLaterErrorEvent = new DynamicEvent("callLaterError");
callLaterErrorEvent.error = e;
systemManager.dispatchEvent(callLaterErrorEvent);
};
};
UIComponentGlobals.callLaterDispatcherCount--;
}
public function getStyle(_arg1:String){
return ((StyleManager.inheritingStyles[_arg1]) ? _inheritingStyles[_arg1] : _nonInheritingStyles[_arg1]);
}
final mx_internal function get $width():Number{
return (super.width);
}
public function get className():String{
var _local1:String = getQualifiedClassName(this);
var _local2:int = _local1.indexOf("::");
if (_local2 != -1){
_local1 = _local1.substr((_local2 + 2));
};
return (_local1);
}
public function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
UIComponentGlobals.tempMatrix.createGradientBox(_arg3, _arg4, (Math.PI / 2), _arg1, _arg2);
return (UIComponentGlobals.tempMatrix);
}
public function setCurrentState(_arg1:String, _arg2:Boolean=true):void{
if (((!((_arg1 == currentState))) && (!(((isBaseState(_arg1)) && (isBaseState(currentState))))))){
requestedCurrentState = _arg1;
playStateTransition = _arg2;
if (initialized){
commitCurrentState();
} else {
_currentStateChanged = true;
addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
};
};
}
private function getBaseStates(_arg1:State):Array{
var _local2:Array = [];
while (((_arg1) && (_arg1.basedOn))) {
_local2.push(_arg1.basedOn);
_arg1 = getState(_arg1.basedOn);
};
return (_local2);
}
public function set minHeight(_arg1:Number):void{
if (explicitMinHeight == _arg1){
return;
};
explicitMinHeight = _arg1;
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
public function get errorString():String{
return (_errorString);
}
mx_internal function setUnscaledHeight(_arg1:Number):void{
var _local2:Number = (_arg1 * Math.abs(oldScaleY));
if (_explicitHeight == _local2){
return;
};
if (!isNaN(_local2)){
_percentHeight = NaN;
};
_explicitHeight = _local2;
invalidateSize();
var _local3:IInvalidating = (parent as IInvalidating);
if (((_local3) && (includeInLayout))){
_local3.invalidateSize();
_local3.invalidateDisplayList();
};
}
public function get automationName():String{
if (_automationName){
return (_automationName);
};
if (automationDelegate){
return (automationDelegate.automationName);
};
return ("");
}
final mx_internal function set $width(_arg1:Number):void{
super.width = _arg1;
}
public function invalidateDisplayList():void{
if (!invalidateDisplayListFlag){
invalidateDisplayListFlag = true;
if (((parent) && (UIComponentGlobals.layoutManager))){
UIComponentGlobals.layoutManager.invalidateDisplayList(this);
};
};
}
mx_internal function initThemeColor():Boolean{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Array;
var _local7:int;
var _local8:CSSStyleDeclaration;
var _local1:Object = _styleName;
if (_styleDeclaration){
_local2 = _styleDeclaration.getStyle("themeColor");
_local3 = _styleDeclaration.getStyle("rollOverColor");
_local4 = _styleDeclaration.getStyle("selectionColor");
};
if ((((((_local2 === null)) || (!(StyleManager.isValidStyleValue(_local2))))) && (((_local1) && (!((_local1 is ISimpleStyleClient))))))){
_local5 = ((_local1 is String)) ? StyleManager.getStyleDeclaration(("." + _local1)) : _local1;
if (_local5){
_local2 = _local5.getStyle("themeColor");
_local3 = _local5.getStyle("rollOverColor");
_local4 = _local5.getStyle("selectionColor");
};
};
if ((((_local2 === null)) || (!(StyleManager.isValidStyleValue(_local2))))){
_local6 = getClassStyleDeclarations();
_local7 = 0;
while (_local7 < _local6.length) {
_local8 = _local6[_local7];
if (_local8){
_local2 = _local8.getStyle("themeColor");
_local3 = _local8.getStyle("rollOverColor");
_local4 = _local8.getStyle("selectionColor");
};
if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){
break;
};
_local7++;
};
};
if (((((((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))) && (isNaN(_local3)))) && (isNaN(_local4)))){
setThemeColor(_local2);
return (true);
};
return (((((((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))) && (!(isNaN(_local3))))) && (!(isNaN(_local4)))));
}
override public function get scaleX():Number{
return (_scaleX);
}
public function get uid():String{
if (!_uid){
_uid = toString();
};
return (_uid);
}
override public function get mouseX():Number{
if (((((!(root)) || ((root is Stage)))) || ((root[fakeMouseX] === undefined)))){
return (super.mouseX);
};
return (globalToLocal(new Point(root[fakeMouseX], 0)).x);
}
override public function stopDrag():void{
super.stopDrag();
invalidateProperties();
dispatchEvent(new Event("xChanged"));
dispatchEvent(new Event("yChanged"));
}
public function get focusPane():Sprite{
return (_focusPane);
}
public function set tweeningProperties(_arg1:Array):void{
_tweeningProperties = _arg1;
}
public function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{
UIComponentGlobals.tempMatrix.createGradientBox(_arg3, _arg4, 0, _arg1, _arg2);
return (UIComponentGlobals.tempMatrix);
}
public function get isDocument():Boolean{
return ((document == this));
}
public function set validationSubField(_arg1:String):void{
_validationSubField = _arg1;
}
override public function get scaleY():Number{
return (_scaleY);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function createInFontContext(_arg1:Class):Object{
hasFontContextBeenSaved = true;
var _local2:String = StringUtil.trimArrayElements(getStyle("fontFamily"), ",");
var _local3:String = getStyle("fontWeight");
var _local4:String = getStyle("fontStyle");
var _local5 = (_local3 == "bold");
var _local6 = (_local4 == "italic");
oldEmbeddedFontContext = getFontContext(_local2, _local5, _local6);
var _local7:Object = createInModuleContext((oldEmbeddedFontContext) ? oldEmbeddedFontContext : moduleFactory, getQualifiedClassName(_arg1));
if (_local7 == null){
_local7 = new (_arg1);
};
return (_local7);
}
public function get screen():Rectangle{
var _local1:ISystemManager = systemManager;
return ((_local1) ? _local1.screen : null);
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus(DisplayObject(_arg1.target))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
};
ContainerGlobals.checkFocus(_arg1.relatedObject, this);
};
}
public function hasFontContextChanged():Boolean{
if (!hasFontContextBeenSaved){
return (false);
};
var _local1:String = StringUtil.trimArrayElements(getStyle("fontFamily"), ",");
var _local2:String = getStyle("fontWeight");
var _local3:String = getStyle("fontStyle");
var _local4 = (_local2 == "bold");
var _local5 = (_local3 == "italic");
var _local6:EmbeddedFont = getEmbeddedFont(_local1, _local4, _local5);
var _local7:IFlexModuleFactory = embeddedFontRegistry.getAssociatedModuleFactory(_local6, moduleFactory);
return (!((_local7 == oldEmbeddedFontContext)));
}
public function get explicitHeight():Number{
return (_explicitHeight);
}
override public function get x():Number{
return (super.x);
}
override public function get y():Number{
return (super.y);
}
override public function get visible():Boolean{
return (_visible);
}
mx_internal function addOverlay(_arg1:uint, _arg2:RoundedRectangle=null):void{
if (!overlay){
overlayColor = _arg1;
overlay = new UIComponent();
overlay.name = "overlay";
overlay.$visible = true;
fillOverlay(overlay, _arg1, _arg2);
attachOverlay();
if (!_arg2){
addEventListener(ResizeEvent.RESIZE, overlay_resizeHandler);
};
overlay.x = 0;
overlay.y = 0;
invalidateDisplayList();
overlayReferenceCount = 1;
} else {
overlayReferenceCount++;
};
dispatchEvent(new ChildExistenceChangedEvent(ChildExistenceChangedEvent.OVERLAY_CREATED, true, false, overlay));
}
public function get percentWidth():Number{
return (_percentWidth);
}
public function set explicitMinHeight(_arg1:Number):void{
if (_explicitMinHeight == _arg1){
return;
};
_explicitMinHeight = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitMinHeightChanged"));
}
public function set automationName(_arg1:String):void{
_automationName = _arg1;
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
mx_internal function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{
if (cachedEmbeddedFont){
if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){
return (cachedEmbeddedFont);
};
};
cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3);
return (cachedEmbeddedFont);
}
public function stylesInitialized():void{
}
public function set errorString(_arg1:String):void{
var _local2:String = _errorString;
_errorString = _arg1;
ToolTipManager.registerErrorString(this, _local2, _arg1);
errorStringChanged = true;
invalidateProperties();
dispatchEvent(new Event("errorStringChanged"));
}
public function getExplicitOrMeasuredWidth():Number{
return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth);
}
final mx_internal function set $height(_arg1:Number):void{
super.height = _arg1;
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
final mx_internal function $removeChild(_arg1:DisplayObject):DisplayObject{
return (super.removeChild(_arg1));
}
override public function set scaleX(_arg1:Number):void{
if (_scaleX == _arg1){
return;
};
_scaleX = _arg1;
invalidateProperties();
invalidateSize();
dispatchEvent(new Event("scaleXChanged"));
}
override public function set scaleY(_arg1:Number):void{
if (_scaleY == _arg1){
return;
};
_scaleY = _arg1;
invalidateProperties();
invalidateSize();
dispatchEvent(new Event("scaleYChanged"));
}
public function set uid(_arg1:String):void{
this._uid = _arg1;
}
public function createAutomationIDPart(_arg1:IAutomationObject):Object{
if (automationDelegate){
return (automationDelegate.createAutomationIDPart(_arg1));
};
return (null);
}
public function getAutomationChildAt(_arg1:int):IAutomationObject{
if (automationDelegate){
return (automationDelegate.getAutomationChildAt(_arg1));
};
return (null);
}
mx_internal function get isEffectStarted():Boolean{
return (_isEffectStarted);
}
override public function get parent():DisplayObjectContainer{
return ((_parent) ? _parent : super.parent);
}
override public function get mouseY():Number{
if (((((!(root)) || ((root is Stage)))) || ((root[fakeMouseY] === undefined)))){
return (super.mouseY);
};
return (globalToLocal(new Point(0, root[fakeMouseY])).y);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
var _local3:Boolean;
if (_width != _arg1){
_width = _arg1;
dispatchEvent(new Event("widthChanged"));
_local3 = true;
};
if (_height != _arg2){
_height = _arg2;
dispatchEvent(new Event("heightChanged"));
_local3 = true;
};
if (_local3){
invalidateDisplayList();
dispatchResizeEvent();
};
}
private function focusObj_resizeHandler(_arg1:ResizeEvent):void{
adjustFocusRect();
}
mx_internal function adjustSizesForScaleChanges():void{
var _local3:Number;
var _local1:Number = scaleX;
var _local2:Number = scaleY;
if (_local1 != oldScaleX){
_local3 = Math.abs((_local1 / oldScaleX));
if (explicitMinWidth){
explicitMinWidth = (explicitMinWidth * _local3);
};
if (!isNaN(explicitWidth)){
explicitWidth = (explicitWidth * _local3);
};
if (explicitMaxWidth){
explicitMaxWidth = (explicitMaxWidth * _local3);
};
oldScaleX = _local1;
};
if (_local2 != oldScaleY){
_local3 = Math.abs((_local2 / oldScaleY));
if (explicitMinHeight){
explicitMinHeight = (explicitMinHeight * _local3);
};
if (explicitHeight){
explicitHeight = (explicitHeight * _local3);
};
if (explicitMaxHeight){
explicitMaxHeight = (explicitMaxHeight * _local3);
};
oldScaleY = _local2;
};
}
public function set focusPane(_arg1:Sprite):void{
if (_arg1){
addChild(_arg1);
_arg1.x = 0;
_arg1.y = 0;
_arg1.scrollRect = null;
_focusPane = _arg1;
} else {
removeChild(_focusPane);
_focusPane = null;
};
}
public function determineTextFormatFromStyles():UITextFormat{
var _local2:String;
var _local1:UITextFormat = cachedTextFormat;
if (!_local1){
_local2 = StringUtil.trimArrayElements(_inheritingStyles.fontFamily, ",");
_local1 = new UITextFormat(getNonNullSystemManager(), _local2);
_local1.moduleFactory = moduleFactory;
_local1.align = _inheritingStyles.textAlign;
_local1.bold = (_inheritingStyles.fontWeight == "bold");
_local1.color = (enabled) ? _inheritingStyles.color : _inheritingStyles.disabledColor;
_local1.font = _local2;
_local1.indent = _inheritingStyles.textIndent;
_local1.italic = (_inheritingStyles.fontStyle == "italic");
_local1.kerning = _inheritingStyles.kerning;
_local1.leading = _nonInheritingStyles.leading;
_local1.leftMargin = _nonInheritingStyles.paddingLeft;
_local1.letterSpacing = _inheritingStyles.letterSpacing;
_local1.rightMargin = _nonInheritingStyles.paddingRight;
_local1.size = _inheritingStyles.fontSize;
_local1.underline = (_nonInheritingStyles.textDecoration == "underline");
_local1.antiAliasType = _inheritingStyles.fontAntiAliasType;
_local1.gridFitType = _inheritingStyles.fontGridFitType;
_local1.sharpness = _inheritingStyles.fontSharpness;
_local1.thickness = _inheritingStyles.fontThickness;
cachedTextFormat = _local1;
};
return (_local1);
}
public function validationResultHandler(_arg1:ValidationResultEvent):void{
var _local2:String;
var _local3:ValidationResult;
var _local4:int;
if (_arg1.type == ValidationResultEvent.VALID){
if (errorString != ""){
errorString = "";
dispatchEvent(new FlexEvent(FlexEvent.VALID));
};
} else {
if (((((!((validationSubField == null))) && (!((validationSubField == ""))))) && (_arg1.results))){
_local4 = 0;
while (_local4 < _arg1.results.length) {
_local3 = _arg1.results[_local4];
if (_local3.subField == validationSubField){
if (_local3.isError){
_local2 = _local3.errorMessage;
} else {
if (errorString != ""){
errorString = "";
dispatchEvent(new FlexEvent(FlexEvent.VALID));
};
};
break;
};
_local4++;
};
} else {
if (((_arg1.results) && ((_arg1.results.length > 0)))){
_local2 = _arg1.results[0].errorMessage;
};
};
if (((_local2) && (!((errorString == _local2))))){
errorString = _local2;
dispatchEvent(new FlexEvent(FlexEvent.INVALID));
};
};
}
public function invalidateProperties():void{
if (!invalidatePropertiesFlag){
invalidatePropertiesFlag = true;
if (((parent) && (UIComponentGlobals.layoutManager))){
UIComponentGlobals.layoutManager.invalidateProperties(this);
};
};
}
public function get inheritingStyles():Object{
return (_inheritingStyles);
}
private function focusObj_scrollHandler(_arg1:Event):void{
adjustFocusRect();
}
final mx_internal function get $x():Number{
return (super.x);
}
final mx_internal function get $y():Number{
return (super.y);
}
public function setConstraintValue(_arg1:String, _arg2):void{
setStyle(_arg1, _arg2);
}
protected function resourcesChanged():void{
}
public function registerEffects(_arg1:Array):void{
var _local4:String;
var _local2:int = _arg1.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = EffectManager.getEventForEffectTrigger(_arg1[_local3]);
if (((!((_local4 == null))) && (!((_local4 == ""))))){
addEventListener(_local4, EffectManager.eventHandler, false, EventPriority.EFFECT);
};
_local3++;
};
}
public function get explicitMinWidth():Number{
return (_explicitMinWidth);
}
private function filterChangeHandler(_arg1:Event):void{
super.filters = _filters;
}
override public function set visible(_arg1:Boolean):void{
setVisible(_arg1);
}
public function set explicitHeight(_arg1:Number):void{
if (_explicitHeight == _arg1){
return;
};
if (!isNaN(_arg1)){
_percentHeight = NaN;
};
_explicitHeight = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (((_local2) && (includeInLayout))){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitHeightChanged"));
}
override public function set x(_arg1:Number):void{
if (super.x == _arg1){
return;
};
super.x = _arg1;
invalidateProperties();
dispatchEvent(new Event("xChanged"));
}
public function set showInAutomationHierarchy(_arg1:Boolean):void{
_showInAutomationHierarchy = _arg1;
}
override public function set y(_arg1:Number):void{
if (super.y == _arg1){
return;
};
super.y = _arg1;
invalidateProperties();
dispatchEvent(new Event("yChanged"));
}
private function resourceManager_changeHandler(_arg1:Event):void{
resourcesChanged();
}
public function set systemManager(_arg1:ISystemManager):void{
_systemManager = _arg1;
_systemManagerDirty = false;
}
mx_internal function getFocusObject():DisplayObject{
var _local1:IFocusManager = focusManager;
if (((!(_local1)) || (!(_local1.focusPane)))){
return (null);
};
return (((_local1.focusPane.numChildren == 0)) ? null : _local1.focusPane.getChildAt(0));
}
public function set percentWidth(_arg1:Number):void{
if (_percentWidth == _arg1){
return;
};
if (!isNaN(_arg1)){
_explicitWidth = NaN;
};
_percentWidth = _arg1;
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
}
public function get moduleFactory():IFlexModuleFactory{
return (_moduleFactory);
}
override public function addChild(_arg1:DisplayObject):DisplayObject{
var _local2:DisplayObjectContainer = _arg1.parent;
if (((_local2) && (!((_local2 is Loader))))){
_local2.removeChild(_arg1);
};
var _local3:int = (((overlayReferenceCount) && (!((_arg1 == overlay))))) ? Math.max(0, (super.numChildren - 1)) : super.numChildren;
addingChild(_arg1);
$addChildAt(_arg1, _local3);
childAdded(_arg1);
return (_arg1);
}
public function get document():Object{
return (_document);
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
final mx_internal function $addChild(_arg1:DisplayObject):DisplayObject{
return (super.addChild(_arg1));
}
mx_internal function setThemeColor(_arg1:Object):void{
var _local2:Number;
if ((_local2 is String)){
_local2 = parseInt(String(_arg1));
} else {
_local2 = Number(_arg1);
};
if (isNaN(_local2)){
_local2 = StyleManager.getColorName(_arg1);
};
var _local3:Number = ColorUtil.adjustBrightness2(_local2, 50);
var _local4:Number = ColorUtil.adjustBrightness2(_local2, 70);
setStyle("selectionColor", _local3);
setStyle("rollOverColor", _local4);
}
public function get explicitMaxWidth():Number{
return (_explicitMaxWidth);
}
public function get id():String{
return (_id);
}
override public function get height():Number{
return (_height);
}
public function set minWidth(_arg1:Number):void{
if (explicitMinWidth == _arg1){
return;
};
explicitMinWidth = _arg1;
}
public function set currentState(_arg1:String):void{
setCurrentState(_arg1, true);
}
public function getRepeaterItem(_arg1:int=-1):Object{
var _local2:Array = repeaters;
if (_arg1 == -1){
_arg1 = (_local2.length - 1);
};
return (_local2[_arg1].getItemAt(repeaterIndices[_arg1]));
}
public function executeBindings(_arg1:Boolean=false):void{
var _local2:Object = (((descriptor) && (descriptor.document))) ? descriptor.document : parentDocument;
BindingManager.executeBindings(_local2, id, this);
}
public function replayAutomatableEvent(_arg1:Event):Boolean{
if (automationDelegate){
return (automationDelegate.replayAutomatableEvent(_arg1));
};
return (false);
}
mx_internal function getFontContext(_arg1:String, _arg2:Boolean, _arg3:Boolean):IFlexModuleFactory{
return (embeddedFontRegistry.getAssociatedModuleFactory(getEmbeddedFont(_arg1, _arg2, _arg3), moduleFactory));
}
public function get instanceIndex():int{
return ((_instanceIndices) ? _instanceIndices[(_instanceIndices.length - 1)] : -1);
}
public function set measuredWidth(_arg1:Number):void{
_measuredWidth = _arg1;
}
public function effectFinished(_arg1:IEffectInstance):void{
_endingEffectInstances.push(_arg1);
invalidateProperties();
UIComponentGlobals.layoutManager.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler, false, 0, true);
}
mx_internal function set isEffectStarted(_arg1:Boolean):void{
_isEffectStarted = _arg1;
}
mx_internal function fillOverlay(_arg1:UIComponent, _arg2:uint, _arg3:RoundedRectangle=null):void{
if (!_arg3){
_arg3 = new RoundedRectangle(0, 0, unscaledWidth, unscaledHeight, 0);
};
var _local4:Graphics = _arg1.graphics;
_local4.clear();
_local4.beginFill(_arg2);
_local4.drawRoundRect(_arg3.x, _arg3.y, _arg3.width, _arg3.height, (_arg3.cornerRadius * 2), (_arg3.cornerRadius * 2));
_local4.endFill();
}
public function get instanceIndices():Array{
return ((_instanceIndices) ? _instanceIndices.slice(0) : null);
}
mx_internal function childAdded(_arg1:DisplayObject):void{
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).initialized){
UIComponent(_arg1).initialize();
};
} else {
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).initialize();
};
};
}
public function globalToContent(_arg1:Point):Point{
return (globalToLocal(_arg1));
}
mx_internal function removingChild(_arg1:DisplayObject):void{
}
mx_internal function getEffectsForProperty(_arg1:String):Array{
return (((_affectedProperties[_arg1])!=undefined) ? _affectedProperties[_arg1] : []);
}
override public function removeChildAt(_arg1:int):DisplayObject{
var _local2:DisplayObject = getChildAt(_arg1);
removingChild(_local2);
$removeChild(_local2);
childRemoved(_local2);
return (_local2);
}
protected function measure():void{
measuredMinWidth = 0;
measuredMinHeight = 0;
measuredWidth = 0;
measuredHeight = 0;
}
public function set owner(_arg1:DisplayObjectContainer):void{
_owner = _arg1;
}
mx_internal function getNonNullSystemManager():ISystemManager{
var _local1:ISystemManager = systemManager;
if (!_local1){
_local1 = ISystemManager(SystemManager.getSWFRoot(this));
};
if (!_local1){
return (SystemManagerGlobals.topLevelSystemManagers[0]);
};
return (_local1);
}
protected function get unscaledWidth():Number{
return ((width / Math.abs(scaleX)));
}
public function set processedDescriptors(_arg1:Boolean):void{
_processedDescriptors = _arg1;
if (_arg1){
dispatchEvent(new FlexEvent(FlexEvent.INITIALIZE));
};
}
private function processEffectFinished(_arg1:Array):void{
var _local3:int;
var _local4:IEffectInstance;
var _local5:IEffectInstance;
var _local6:Array;
var _local7:int;
var _local8:String;
var _local9:int;
var _local2:int = (_effectsStarted.length - 1);
while (_local2 >= 0) {
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1[_local3];
if (_local4 == _effectsStarted[_local2]){
_local5 = _effectsStarted[_local2];
_effectsStarted.splice(_local2, 1);
_local6 = _local5.effect.getAffectedProperties();
_local7 = 0;
while (_local7 < _local6.length) {
_local8 = _local6[_local7];
if (_affectedProperties[_local8] != undefined){
_local9 = 0;
while (_local9 < _affectedProperties[_local8].length) {
if (_affectedProperties[_local8][_local9] == _local4){
_affectedProperties[_local8].splice(_local9, 1);
break;
};
_local9++;
};
if (_affectedProperties[_local8].length == 0){
delete _affectedProperties[_local8];
};
};
_local7++;
};
break;
};
_local3++;
};
_local2--;
};
isEffectStarted = ((_effectsStarted.length > 0)) ? true : false;
if (((_local4) && (_local4.hideFocusRing))){
preventDrawFocus = false;
};
}
private function commitCurrentState():void{
var _local3:StateChangeEvent;
var _local1:IEffect = (playStateTransition) ? getTransition(_currentState, requestedCurrentState) : null;
var _local2:String = findCommonBaseState(_currentState, requestedCurrentState);
var _local4:String = (_currentState) ? _currentState : "";
var _local5:State = getState(requestedCurrentState);
if (_currentTransitionEffect){
_currentTransitionEffect.end();
};
initializeState(requestedCurrentState);
if (_local1){
_local1.captureStartValues();
};
_local3 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGING);
_local3.oldState = _local4;
_local3.newState = (requestedCurrentState) ? requestedCurrentState : "";
dispatchEvent(_local3);
if (isBaseState(_currentState)){
dispatchEvent(new FlexEvent(FlexEvent.EXIT_STATE));
};
removeState(_currentState, _local2);
_currentState = requestedCurrentState;
if (isBaseState(currentState)){
dispatchEvent(new FlexEvent(FlexEvent.ENTER_STATE));
} else {
applyState(_currentState, _local2);
};
_local3 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGE);
_local3.oldState = _local4;
_local3.newState = (_currentState) ? _currentState : "";
dispatchEvent(_local3);
if (_local1){
UIComponentGlobals.layoutManager.validateNow();
_currentTransitionEffect = _local1;
_local1.addEventListener(EffectEvent.EFFECT_END, transition_effectEndHandler);
_local1.play();
};
}
public function get includeInLayout():Boolean{
return (_includeInLayout);
}
private function dispatchResizeEvent():void{
var _local1:ResizeEvent = new ResizeEvent(ResizeEvent.RESIZE);
_local1.oldWidth = oldWidth;
_local1.oldHeight = oldHeight;
dispatchEvent(_local1);
oldWidth = width;
oldHeight = height;
}
public function set maxWidth(_arg1:Number):void{
if (explicitMaxWidth == _arg1){
return;
};
explicitMaxWidth = _arg1;
}
public function validateDisplayList():void{
var _local1:ISystemManager;
var _local2:Number;
var _local3:Number;
if (invalidateDisplayListFlag){
_local1 = (parent as ISystemManager);
if (_local1){
if ((((_local1 == systemManager.topLevelSystemManager)) && (!((_local1.document == this))))){
setActualSize(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight());
};
};
_local2 = ((scaleX == 0)) ? 0 : (width / scaleX);
_local3 = ((scaleY == 0)) ? 0 : (height / scaleY);
if (Math.abs((_local2 - lastUnscaledWidth)) < 1E-5){
_local2 = lastUnscaledWidth;
};
if (Math.abs((_local3 - lastUnscaledHeight)) < 1E-5){
_local3 = lastUnscaledHeight;
};
updateDisplayList(_local2, _local3);
lastUnscaledWidth = _local2;
lastUnscaledHeight = _local3;
invalidateDisplayListFlag = false;
};
}
public function contentToGlobal(_arg1:Point):Point{
return (localToGlobal(_arg1));
}
public function resolveAutomationIDPart(_arg1:Object):Array{
if (automationDelegate){
return (automationDelegate.resolveAutomationIDPart(_arg1));
};
return ([]);
}
public function set inheritingStyles(_arg1:Object):void{
_inheritingStyles = _arg1;
}
public function setFocus():void{
var _local1:ISystemManager = systemManager;
if (((_local1) && (_local1.stage))){
if (UIComponentGlobals.callLaterDispatcherCount == 0){
_local1.stage.focus = this;
UIComponentGlobals.nextFocusObject = null;
} else {
UIComponentGlobals.nextFocusObject = this;
_local1.stage.addEventListener(Event.ENTER_FRAME, setFocusLater);
};
} else {
UIComponentGlobals.nextFocusObject = this;
callLater(setFocusLater);
};
}
private function getTransition(_arg1:String, _arg2:String):IEffect{
var _local6:Transition;
var _local3:IEffect;
var _local4:int;
if (!transitions){
return (null);
};
if (!_arg1){
_arg1 = "";
};
if (!_arg2){
_arg2 = "";
};
var _local5:int;
while (_local5 < transitions.length) {
_local6 = transitions[_local5];
if ((((((_local6.fromState == "*")) && ((_local6.toState == "*")))) && ((_local4 < 1)))){
_local3 = _local6.effect;
_local4 = 1;
} else {
if ((((((_local6.fromState == _arg1)) && ((_local6.toState == "*")))) && ((_local4 < 2)))){
_local3 = _local6.effect;
_local4 = 2;
} else {
if ((((((_local6.fromState == "*")) && ((_local6.toState == _arg2)))) && ((_local4 < 3)))){
_local3 = _local6.effect;
_local4 = 3;
} else {
if ((((((_local6.fromState == _arg1)) && ((_local6.toState == _arg2)))) && ((_local4 < 4)))){
_local3 = _local6.effect;
_local4 = 4;
break;
};
};
};
};
_local5++;
};
return (_local3);
}
public function set initialized(_arg1:Boolean):void{
_initialized = _arg1;
if (_arg1){
setVisible(_visible, true);
dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));
};
}
final mx_internal function set $y(_arg1:Number):void{
super.y = _arg1;
}
public function owns(_arg1:DisplayObject):Boolean{
var _local2:IChildList = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this);
if (_local2.contains(_arg1)){
return (true);
};
while (((_arg1) && (!((_arg1 == this))))) {
if ((_arg1 is IUIComponent)){
_arg1 = IUIComponent(_arg1).owner;
} else {
_arg1 = _arg1.parent;
};
};
return ((_arg1 == this));
}
public function setVisible(_arg1:Boolean, _arg2:Boolean=false):void{
_visible = _arg1;
if (!initialized){
return;
};
if ($visible == _arg1){
return;
};
$visible = _arg1;
if (!_arg2){
dispatchEvent(new FlexEvent((_arg1) ? FlexEvent.SHOW : FlexEvent.HIDE));
};
}
final mx_internal function $addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
return (super.addChildAt(_arg1, _arg2));
}
public function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{
var _local2:Array;
var _local3:Object;
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Object;
var _local9:PropertyChangeEvent;
if (((id) && (!((id == ""))))){
_local2 = _instanceIndices;
if (!_local2){
_arg1[id] = null;
} else {
_local3 = _arg1[id];
if (!_local3){
return;
};
_local4 = [];
_local4.push(_local3);
_local5 = _local2.length;
_local6 = 0;
while (_local6 < (_local5 - 1)) {
_local8 = _local3[_local2[_local6]];
if (!_local8){
return;
};
_local3 = _local8;
_local4.push(_local3);
_local6++;
};
_local3.splice(_local2[(_local5 - 1)], 1);
_local7 = (_local4.length - 1);
while (_local7 > 0) {
if (_local4[_local7].length == 0){
_local4[(_local7 - 1)].splice(_local2[_local7], 1);
};
_local7--;
};
if ((((_local4.length > 0)) && ((_local4[0].length == 0)))){
_arg1[id] = null;
} else {
_local9 = PropertyChangeEvent.createUpdateEvent(_arg1, id, _arg1[id], _arg1[id]);
_arg1.dispatchEvent(_local9);
};
};
};
}
public function get nonInheritingStyles():Object{
return (_nonInheritingStyles);
}
public function effectStarted(_arg1:IEffectInstance):void{
var _local4:String;
_effectsStarted.push(_arg1);
var _local2:Array = _arg1.effect.getAffectedProperties();
var _local3:int;
while (_local3 < _local2.length) {
_local4 = _local2[_local3];
if (_affectedProperties[_local4] == undefined){
_affectedProperties[_local4] = [];
};
_affectedProperties[_local4].push(_arg1);
_local3++;
};
isEffectStarted = true;
if (_arg1.hideFocusRing){
preventDrawFocus = true;
drawFocus(false);
};
}
final mx_internal function set $x(_arg1:Number):void{
super.x = _arg1;
}
private function applyState(_arg1:String, _arg2:String):void{
var _local4:Array;
var _local5:int;
var _local3:State = getState(_arg1);
if (_arg1 == _arg2){
return;
};
if (_local3){
if (_local3.basedOn != _arg2){
applyState(_local3.basedOn, _arg2);
};
_local4 = _local3.overrides;
_local5 = 0;
while (_local5 < _local4.length) {
_local4[_local5].apply(this);
_local5++;
};
_local3.dispatchEnterState();
};
}
protected function commitProperties():void{
var _local1:Number;
var _local2:Number;
if (_scaleX != oldScaleX){
_local1 = Math.abs((_scaleX / oldScaleX));
if (!isNaN(explicitMinWidth)){
explicitMinWidth = (explicitMinWidth * _local1);
};
if (!isNaN(explicitWidth)){
explicitWidth = (explicitWidth * _local1);
};
if (!isNaN(explicitMaxWidth)){
explicitMaxWidth = (explicitMaxWidth * _local1);
};
_width = (_width * _local1);
super.scaleX = (oldScaleX = _scaleX);
};
if (_scaleY != oldScaleY){
_local2 = Math.abs((_scaleY / oldScaleY));
if (!isNaN(explicitMinHeight)){
explicitMinHeight = (explicitMinHeight * _local2);
};
if (!isNaN(explicitHeight)){
explicitHeight = (explicitHeight * _local2);
};
if (!isNaN(explicitMaxHeight)){
explicitMaxHeight = (explicitMaxHeight * _local2);
};
_height = (_height * _local2);
super.scaleY = (oldScaleY = _scaleY);
};
if (((!((x == oldX))) || (!((y == oldY))))){
dispatchMoveEvent();
};
if (((!((width == oldWidth))) || (!((height == oldHeight))))){
dispatchResizeEvent();
};
if (errorStringChanged){
errorStringChanged = false;
setBorderColorForErrorString();
};
}
public function get percentHeight():Number{
return (_percentHeight);
}
override public function get width():Number{
return (_width);
}
final mx_internal function get $parent():DisplayObjectContainer{
return (super.parent);
}
public function set explicitMinWidth(_arg1:Number):void{
if (_explicitMinWidth == _arg1){
return;
};
_explicitMinWidth = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitMinWidthChanged"));
}
public function get isPopUp():Boolean{
return (_isPopUp);
}
private function measureSizes():Boolean{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local1:Boolean;
if (!invalidateSizeFlag){
return (_local1);
};
if (((isNaN(explicitWidth)) || (isNaN(explicitHeight)))){
_local4 = Math.abs(scaleX);
_local5 = Math.abs(scaleY);
if (_local4 != 1){
_measuredMinWidth = (_measuredMinWidth / _local4);
_measuredWidth = (_measuredWidth / _local4);
};
if (_local5 != 1){
_measuredMinHeight = (_measuredMinHeight / _local5);
_measuredHeight = (_measuredHeight / _local5);
};
measure();
invalidateSizeFlag = false;
if (((!(isNaN(explicitMinWidth))) && ((measuredWidth < explicitMinWidth)))){
measuredWidth = explicitMinWidth;
};
if (((!(isNaN(explicitMaxWidth))) && ((measuredWidth > explicitMaxWidth)))){
measuredWidth = explicitMaxWidth;
};
if (((!(isNaN(explicitMinHeight))) && ((measuredHeight < explicitMinHeight)))){
measuredHeight = explicitMinHeight;
};
if (((!(isNaN(explicitMaxHeight))) && ((measuredHeight > explicitMaxHeight)))){
measuredHeight = explicitMaxHeight;
};
if (_local4 != 1){
_measuredMinWidth = (_measuredMinWidth * _local4);
_measuredWidth = (_measuredWidth * _local4);
};
if (_local5 != 1){
_measuredMinHeight = (_measuredMinHeight * _local5);
_measuredHeight = (_measuredHeight * _local5);
};
} else {
invalidateSizeFlag = false;
_measuredMinWidth = 0;
_measuredMinHeight = 0;
};
adjustSizesForScaleChanges();
if (isNaN(oldMinWidth)){
oldMinWidth = (isNaN(explicitMinWidth)) ? measuredMinWidth : explicitMinWidth;
oldMinHeight = (isNaN(explicitMinHeight)) ? measuredMinHeight : explicitMinHeight;
oldExplicitWidth = (isNaN(explicitWidth)) ? measuredWidth : explicitWidth;
oldExplicitHeight = (isNaN(explicitHeight)) ? measuredHeight : explicitHeight;
_local1 = true;
} else {
_local3 = (isNaN(explicitMinWidth)) ? measuredMinWidth : explicitMinWidth;
if (_local3 != oldMinWidth){
oldMinWidth = _local3;
_local1 = true;
};
_local3 = (isNaN(explicitMinHeight)) ? measuredMinHeight : explicitMinHeight;
if (_local3 != oldMinHeight){
oldMinHeight = _local3;
_local1 = true;
};
_local3 = (isNaN(explicitWidth)) ? measuredWidth : explicitWidth;
if (_local3 != oldExplicitWidth){
oldExplicitWidth = _local3;
_local1 = true;
};
_local3 = (isNaN(explicitHeight)) ? measuredHeight : explicitHeight;
if (_local3 != oldExplicitHeight){
oldExplicitHeight = _local3;
_local1 = true;
};
};
return (_local1);
}
public function get automationTabularData():Object{
if (automationDelegate){
return (automationDelegate.automationTabularData);
};
return (null);
}
public function validateNow():void{
UIComponentGlobals.layoutManager.validateClient(this);
}
public function finishPrint(_arg1:Object, _arg2:IFlexDisplayObject):void{
}
public function get repeaters():Array{
return ((_repeaters) ? _repeaters.slice(0) : []);
}
private function dispatchMoveEvent():void{
var _local1:MoveEvent = new MoveEvent(MoveEvent.MOVE);
_local1.oldX = oldX;
_local1.oldY = oldY;
dispatchEvent(_local1);
oldX = x;
oldY = y;
}
public function drawFocus(_arg1:Boolean):void{
var _local4:DisplayObjectContainer;
var _local5:Class;
if (!parent){
return;
};
var _local2:DisplayObject = getFocusObject();
var _local3:Sprite = (focusManager) ? focusManager.focusPane : null;
if (((_arg1) && (!(preventDrawFocus)))){
_local4 = _local3.parent;
if (_local4 != parent){
if (_local4){
if ((_local4 is ISystemManager)){
ISystemManager(_local4).focusPane = null;
} else {
IUIComponent(_local4).focusPane = null;
};
};
if ((parent is ISystemManager)){
ISystemManager(parent).focusPane = _local3;
} else {
IUIComponent(parent).focusPane = _local3;
};
};
_local5 = getStyle("focusSkin");
if (((_local2) && (!((_local2 is _local5))))){
_local3.removeChild(_local2);
_local2 = null;
};
if (!_local2){
_local2 = new (_local5);
_local2.name = "focus";
_local3.addChild(_local2);
};
if ((_local2 is ILayoutManagerClient)){
ILayoutManagerClient(_local2).nestLevel = nestLevel;
};
if ((_local2 is ISimpleStyleClient)){
ISimpleStyleClient(_local2).styleName = this;
};
addEventListener(MoveEvent.MOVE, focusObj_moveHandler, true);
addEventListener(MoveEvent.MOVE, focusObj_moveHandler);
addEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler, true);
addEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler);
addEventListener(Event.REMOVED, focusObj_removedHandler, true);
_local2.visible = true;
hasFocusRect = true;
adjustFocusRect();
} else {
if (hasFocusRect){
hasFocusRect = false;
if (_local2){
_local2.visible = false;
};
removeEventListener(MoveEvent.MOVE, focusObj_moveHandler);
removeEventListener(MoveEvent.MOVE, focusObj_moveHandler, true);
removeEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler, true);
removeEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler);
removeEventListener(Event.REMOVED, focusObj_removedHandler, true);
};
};
}
public function get flexContextMenu():IFlexContextMenu{
return (_flexContextMenu);
}
private function get indexedID():String{
var _local1:String = id;
var _local2:Array = instanceIndices;
if (_local2){
_local1 = (_local1 + (("[" + _local2.join("][")) + "]"));
};
return (_local1);
}
public function get measuredMinHeight():Number{
return (_measuredMinHeight);
}
mx_internal function addingChild(_arg1:DisplayObject):void{
if ((((_arg1 is IUIComponent)) && (!(IUIComponent(_arg1).document)))){
IUIComponent(_arg1).document = (document) ? document : ApplicationGlobals.application;
};
if ((((_arg1 is UIComponent)) && ((UIComponent(_arg1).moduleFactory == null)))){
if (moduleFactory != null){
UIComponent(_arg1).moduleFactory = moduleFactory;
} else {
if ((((document is IFlexModule)) && (!((document.moduleFactory == null))))){
UIComponent(_arg1).moduleFactory = document.moduleFactory;
} else {
if ((((parent is UIComponent)) && (!((UIComponent(parent).moduleFactory == null))))){
UIComponent(_arg1).moduleFactory = UIComponent(parent).moduleFactory;
};
};
};
};
if ((((((_arg1 is IFontContextComponent)) && ((!(_arg1) is UIComponent)))) && ((IFontContextComponent(_arg1).fontContext == null)))){
IFontContextComponent(_arg1).fontContext = moduleFactory;
};
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).parentChanged(this);
};
if ((_arg1 is ILayoutManagerClient)){
ILayoutManagerClient(_arg1).nestLevel = (nestLevel + 1);
} else {
if ((_arg1 is IUITextField)){
IUITextField(_arg1).nestLevel = (nestLevel + 1);
};
};
if ((_arg1 is InteractiveObject)){
if (doubleClickEnabled){
InteractiveObject(_arg1).doubleClickEnabled = true;
};
};
if ((_arg1 is IStyleClient)){
IStyleClient(_arg1).regenerateStyleCache(true);
} else {
if ((((_arg1 is IUITextField)) && (IUITextField(_arg1).inheritingStyles))){
StyleProtoChain.initTextField(IUITextField(_arg1));
};
};
if ((_arg1 is ISimpleStyleClient)){
ISimpleStyleClient(_arg1).styleChanged(null);
};
if ((_arg1 is IStyleClient)){
IStyleClient(_arg1).notifyStyleChangeInChildren(null, true);
};
if ((_arg1 is UIComponent)){
UIComponent(_arg1).initThemeColor();
};
if ((_arg1 is UIComponent)){
UIComponent(_arg1).stylesInitialized();
};
}
public function set repeaterIndices(_arg1:Array):void{
_repeaterIndices = _arg1;
}
protected function initializationComplete():void{
processedDescriptors = true;
}
public function set moduleFactory(_arg1:IFlexModuleFactory):void{
var _local4:UIComponent;
var _local2:int = numChildren;
var _local3:int;
while (_local3 < _local2) {
_local4 = (getChildAt(_local3) as UIComponent);
if (!_local4){
} else {
if ((((_local4.moduleFactory == null)) || ((_local4.moduleFactory == _moduleFactory)))){
_local4.moduleFactory = _arg1;
};
};
_local3++;
};
_moduleFactory = _arg1;
}
private function focusObj_removedHandler(_arg1:Event):void{
if (_arg1.target != this){
return;
};
var _local2:DisplayObject = getFocusObject();
if (_local2){
_local2.visible = false;
};
}
mx_internal function updateCallbacks():void{
if (invalidateDisplayListFlag){
UIComponentGlobals.layoutManager.invalidateDisplayList(this);
};
if (invalidateSizeFlag){
UIComponentGlobals.layoutManager.invalidateSize(this);
};
if (invalidatePropertiesFlag){
UIComponentGlobals.layoutManager.invalidateProperties(this);
};
if (systemManager){
if ((((methodQueue.length > 0)) && (!(listeningForRender)))){
_systemManager.stage.addEventListener(Event.RENDER, callLaterDispatcher);
_systemManager.stage.addEventListener(Event.ENTER_FRAME, callLaterDispatcher);
listeningForRender = true;
};
_systemManager.stage.invalidate();
};
}
public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{
_styleDeclaration = _arg1;
}
override public function set doubleClickEnabled(_arg1:Boolean):void{
var _local2:IChildList;
var _local4:InteractiveObject;
super.doubleClickEnabled = _arg1;
if ((this is IRawChildrenContainer)){
_local2 = IRawChildrenContainer(this).rawChildren;
} else {
_local2 = IChildList(this);
};
var _local3:int;
while (_local3 < _local2.numChildren) {
_local4 = (_local2.getChildAt(_local3) as InteractiveObject);
if (_local4){
_local4.doubleClickEnabled = _arg1;
};
_local3++;
};
}
public function prepareToPrint(_arg1:IFlexDisplayObject):Object{
return (null);
}
public function get minHeight():Number{
if (!isNaN(explicitMinHeight)){
return (explicitMinHeight);
};
return (measuredMinHeight);
}
public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
var _local5:ISimpleStyleClient;
cachedTextFormat = null;
var _local3:int = numChildren;
var _local4:int;
while (_local4 < _local3) {
_local5 = (getChildAt(_local4) as ISimpleStyleClient);
if (_local5){
_local5.styleChanged(_arg1);
if ((_local5 is IStyleClient)){
IStyleClient(_local5).notifyStyleChangeInChildren(_arg1, _arg2);
};
};
_local4++;
};
}
public function get contentMouseX():Number{
return (mouseX);
}
public function get contentMouseY():Number{
return (mouseY);
}
public function get tweeningProperties():Array{
return (_tweeningProperties);
}
public function set explicitMaxWidth(_arg1:Number):void{
if (_explicitMaxWidth == _arg1){
return;
};
_explicitMaxWidth = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitMaxWidthChanged"));
}
public function set document(_arg1:Object):void{
var _local4:IUIComponent;
var _local2:int = numChildren;
var _local3:int;
while (_local3 < _local2) {
_local4 = (getChildAt(_local3) as IUIComponent);
if (!_local4){
} else {
if ((((_local4.document == _document)) || ((_local4.document == ApplicationGlobals.application)))){
_local4.document = _arg1;
};
};
_local3++;
};
_document = _arg1;
}
public function validateSize(_arg1:Boolean=false):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:Boolean;
var _local5:IInvalidating;
if (_arg1){
_local2 = 0;
while (_local2 < numChildren) {
_local3 = getChildAt(_local2);
if ((_local3 is ILayoutManagerClient)){
(_local3 as ILayoutManagerClient).validateSize(true);
};
_local2++;
};
};
if (invalidateSizeFlag){
_local4 = measureSizes();
if (((_local4) && (includeInLayout))){
invalidateDisplayList();
_local5 = (parent as IInvalidating);
if (_local5){
_local5.invalidateSize();
_local5.invalidateDisplayList();
};
};
};
}
public function get validationSubField():String{
return (_validationSubField);
}
override public function dispatchEvent(_arg1:Event):Boolean{
if (dispatchEventHook != null){
dispatchEventHook(_arg1, this);
};
return (super.dispatchEvent(_arg1));
}
public function set id(_arg1:String):void{
_id = _arg1;
}
private function overlay_resizeHandler(_arg1:Event):void{
fillOverlay(overlay, overlayColor, null);
}
public function set updateCompletePendingFlag(_arg1:Boolean):void{
_updateCompletePendingFlag = _arg1;
}
final mx_internal function get $height():Number{
return (super.height);
}
protected function attachOverlay():void{
addChild(overlay);
}
public function get explicitMinHeight():Number{
return (_explicitMinHeight);
}
override public function set height(_arg1:Number):void{
var _local2:IInvalidating;
if (explicitHeight != _arg1){
explicitHeight = _arg1;
invalidateSize();
};
if (_height != _arg1){
invalidateProperties();
invalidateDisplayList();
_local2 = (parent as IInvalidating);
if (((_local2) && (includeInLayout))){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
_height = _arg1;
dispatchEvent(new Event("heightChanged"));
};
}
public function get numAutomationChildren():int{
if (automationDelegate){
return (automationDelegate.numAutomationChildren);
};
return (0);
}
public function get parentApplication():Object{
var _local2:UIComponent;
var _local1:Object = systemManager.document;
if (_local1 == this){
_local2 = (_local1.systemManager.parent as UIComponent);
_local1 = (_local2) ? _local2.systemManager.document : null;
};
return (_local1);
}
public function localToContent(_arg1:Point):Point{
return (_arg1);
}
public function get repeaterIndex():int{
return ((_repeaterIndices) ? _repeaterIndices[(_repeaterIndices.length - 1)] : -1);
}
private function removeState(_arg1:String, _arg2:String):void{
var _local4:Array;
var _local5:int;
var _local3:State = getState(_arg1);
if (_arg1 == _arg2){
return;
};
if (_local3){
_local3.dispatchExitState();
_local4 = _local3.overrides;
_local5 = _local4.length;
while (_local5) {
_local4[(_local5 - 1)].remove(this);
_local5--;
};
if (_local3.basedOn != _arg2){
removeState(_local3.basedOn, _arg2);
};
};
}
public function setStyle(_arg1:String, _arg2):void{
if (_arg1 == "styleName"){
styleName = _arg2;
return;
};
if (EffectManager.getEventForEffectTrigger(_arg1) != ""){
EffectManager.setStyle(_arg1, this);
};
var _local3:Boolean = StyleManager.isInheritingStyle(_arg1);
var _local4 = !((inheritingStyles == UIComponent.STYLE_UNINITIALIZED));
var _local5 = !((getStyle(_arg1) == _arg2));
if (!_styleDeclaration){
_styleDeclaration = new CSSStyleDeclaration();
_styleDeclaration.setStyle(_arg1, _arg2);
if (_local4){
regenerateStyleCache(_local3);
};
} else {
_styleDeclaration.setStyle(_arg1, _arg2);
};
if (((_local4) && (_local5))){
styleChanged(_arg1);
notifyStyleChangeInChildren(_arg1, _local3);
};
}
public function get showInAutomationHierarchy():Boolean{
return (_showInAutomationHierarchy);
}
public function get systemManager():ISystemManager{
var _local1:DisplayObject;
var _local2:DisplayObjectContainer;
var _local3:IUIComponent;
if (((!(_systemManager)) || (_systemManagerDirty))){
_local1 = root;
if (((_local1) && (!((_local1 is Stage))))){
_systemManager = (_local1 as ISystemManager);
} else {
if (_local1){
_systemManager = (Stage(_local1).getChildAt(0) as ISystemManager);
} else {
_local2 = parent;
while (_local2) {
_local3 = (_local2 as IUIComponent);
if (_local3){
_systemManager = _local3.systemManager;
break;
};
_local2 = _local2.parent;
};
};
};
_systemManagerDirty = false;
};
return (_systemManager);
}
private function isBaseState(_arg1:String):Boolean{
return (((!(_arg1)) || ((_arg1 == ""))));
}
public function set enabled(_arg1:Boolean):void{
_enabled = _arg1;
cachedTextFormat = null;
invalidateDisplayList();
dispatchEvent(new Event("enabledChanged"));
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
public function get minWidth():Number{
if (!isNaN(explicitMinWidth)){
return (explicitMinWidth);
};
return (measuredMinWidth);
}
private function setFocusLater(_arg1:Event=null):void{
var _local2:ISystemManager = systemManager;
if (((_local2) && (_local2.stage))){
_local2.stage.removeEventListener(Event.ENTER_FRAME, setFocusLater);
if (UIComponentGlobals.nextFocusObject){
_local2.stage.focus = UIComponentGlobals.nextFocusObject;
};
UIComponentGlobals.nextFocusObject = null;
};
}
public function get currentState():String{
return ((_currentStateChanged) ? requestedCurrentState : _currentState);
}
public function initializeRepeaterArrays(_arg1:IRepeaterClient):void{
if (((((((_arg1) && (_arg1.instanceIndices))) && (!(_instanceIndices)))) && (!(_arg1.isDocument)))){
_instanceIndices = _arg1.instanceIndices;
_repeaters = _arg1.repeaters;
_repeaterIndices = _arg1.repeaterIndices;
};
}
public function get baselinePosition():Number{
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
return (NaN);
};
if (!validateBaselinePosition()){
return (NaN);
};
var _local1:TextLineMetrics = measureText("Wj");
if (height < ((2 + _local1.ascent) + 2)){
return (int((height + ((_local1.ascent - height) / 2))));
};
return ((2 + _local1.ascent));
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function set instanceIndices(_arg1:Array):void{
_instanceIndices = _arg1;
}
public function set cachePolicy(_arg1:String):void{
if (_cachePolicy != _arg1){
_cachePolicy = _arg1;
if (_arg1 == UIComponentCachePolicy.OFF){
cacheAsBitmap = false;
} else {
if (_arg1 == UIComponentCachePolicy.ON){
cacheAsBitmap = true;
} else {
cacheAsBitmap = (cacheAsBitmapCount > 0);
};
};
};
}
public function get automationValue():Array{
if (automationDelegate){
return (automationDelegate.automationValue);
};
return ([]);
}
private function addedHandler(_arg1:Event):void{
if (_arg1.eventPhase != EventPhase.AT_TARGET){
return;
};
if ((((parent is IContainer)) && (IContainer(parent).creatingContentPane))){
_arg1.stopImmediatePropagation();
return;
};
}
public function parentChanged(_arg1:DisplayObjectContainer):void{
if (!_arg1){
_parent = null;
_nestLevel = 0;
} else {
if ((_arg1 is IStyleClient)){
_parent = _arg1;
} else {
if ((_arg1 is ISystemManager)){
_parent = _arg1;
} else {
_parent = _arg1.parent;
};
};
};
}
public function get owner():DisplayObjectContainer{
return ((_owner) ? _owner : parent);
}
public function get processedDescriptors():Boolean{
return (_processedDescriptors);
}
override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
var _local3:DisplayObjectContainer = _arg1.parent;
if (((_local3) && (!((_local3 is Loader))))){
_local3.removeChild(_arg1);
};
if (((overlayReferenceCount) && (!((_arg1 == overlay))))){
_arg2 = Math.min(_arg2, Math.max(0, (super.numChildren - 1)));
};
addingChild(_arg1);
$addChildAt(_arg1, _arg2);
childAdded(_arg1);
return (_arg1);
}
public function get maxWidth():Number{
return ((isNaN(explicitMaxWidth)) ? DEFAULT_MAX_WIDTH : explicitMaxWidth);
}
override public function set alpha(_arg1:Number):void{
super.alpha = _arg1;
dispatchEvent(new Event("alphaChanged"));
}
private function removedHandler(_arg1:Event):void{
if (_arg1.eventPhase != EventPhase.AT_TARGET){
return;
};
if ((((parent is IContainer)) && (IContainer(parent).creatingContentPane))){
_arg1.stopImmediatePropagation();
return;
};
_systemManagerDirty = true;
}
public function callLater(_arg1:Function, _arg2:Array=null):void{
methodQueue.push(new MethodQueueElement(_arg1, _arg2));
var _local3:ISystemManager = systemManager;
if (((_local3) && (_local3.stage))){
if (!listeningForRender){
_local3.stage.addEventListener(Event.RENDER, callLaterDispatcher);
_local3.stage.addEventListener(Event.ENTER_FRAME, callLaterDispatcher);
listeningForRender = true;
};
_local3.stage.invalidate();
};
}
public function get initialized():Boolean{
return (_initialized);
}
private function callLaterDispatcher2(_arg1:Event):void{
var _local6:MethodQueueElement;
if (UIComponentGlobals.callLaterSuspendCount > 0){
return;
};
var _local2:ISystemManager = systemManager;
if (((((_local2) && (_local2.stage))) && (listeningForRender))){
_local2.stage.removeEventListener(Event.RENDER, callLaterDispatcher);
_local2.stage.removeEventListener(Event.ENTER_FRAME, callLaterDispatcher);
listeningForRender = false;
};
var _local3:Array = methodQueue;
methodQueue = [];
var _local4:int = _local3.length;
var _local5:int;
while (_local5 < _local4) {
_local6 = MethodQueueElement(_local3[_local5]);
_local6.method.apply(null, _local6.args);
_local5++;
};
}
public function measureHTMLText(_arg1:String):TextLineMetrics{
return (determineTextFormatFromStyles().measureHTMLText(_arg1));
}
public function set descriptor(_arg1:UIComponentDescriptor):void{
_descriptor = _arg1;
}
private function getState(_arg1:String):State{
if (((!(states)) || (isBaseState(_arg1)))){
return (null);
};
var _local2:int;
while (_local2 < states.length) {
if (states[_local2].name == _arg1){
return (states[_local2]);
};
_local2++;
};
var _local3:String = resourceManager.getString("core", "stateUndefined", [_arg1]);
throw (new ArgumentError(_local3));
}
public function validateProperties():void{
if (invalidatePropertiesFlag){
commitProperties();
invalidatePropertiesFlag = false;
};
}
mx_internal function get documentDescriptor():UIComponentDescriptor{
return (_documentDescriptor);
}
public function set includeInLayout(_arg1:Boolean):void{
var _local2:IInvalidating;
if (_includeInLayout != _arg1){
_includeInLayout = _arg1;
_local2 = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("includeInLayoutChanged"));
};
}
public function getClassStyleDeclarations():Array{
var myApplicationDomain:ApplicationDomain;
var cache:Array;
var myRoot:DisplayObject;
var s:CSSStyleDeclaration;
var factory:IFlexModuleFactory = ModuleManager.getAssociatedFactory(this);
if (factory != null){
myApplicationDomain = ApplicationDomain(factory.info()["currentDomain"]);
} else {
myRoot = SystemManager.getSWFRoot(this);
if (!myRoot){
return ([]);
};
myApplicationDomain = myRoot.loaderInfo.applicationDomain;
};
var className:String = getQualifiedClassName(this);
className = className.replace("::", ".");
cache = StyleManager.typeSelectorCache[className];
if (cache){
return (cache);
};
var decls:Array = [];
var classNames:Array = [];
var caches:Array = [];
var declcache:Array = [];
while (((((!((className == null))) && (!((className == "mx.core.UIComponent"))))) && (!((className == "mx.core.UITextField"))))) {
cache = StyleManager.typeSelectorCache[className];
if (cache){
decls = decls.concat(cache);
break;
};
s = StyleManager.getStyleDeclaration(className);
if (s){
decls.unshift(s);
classNames.push(className);
caches.push(classNames);
declcache.push(decls);
decls = [];
classNames = [];
} else {
classNames.push(className);
};
try {
className = getQualifiedSuperclassName(myApplicationDomain.getDefinition(className));
className = className.replace("::", ".");
} catch(e:ReferenceError) {
className = null;
};
};
caches.push(classNames);
declcache.push(decls);
decls = [];
while (caches.length) {
classNames = caches.pop();
decls = decls.concat(declcache.pop());
while (classNames.length) {
StyleManager.typeSelectorCache[classNames.pop()] = decls;
};
};
return (decls);
}
public function set measuredMinWidth(_arg1:Number):void{
_measuredMinWidth = _arg1;
}
private function initializeState(_arg1:String):void{
var _local2:State = getState(_arg1);
while (_local2) {
_local2.initialize();
_local2 = getState(_local2.basedOn);
};
}
mx_internal function initProtoChain():void{
var _local1:CSSStyleDeclaration;
var _local7:Object;
var _local8:CSSStyleDeclaration;
if (styleName){
if ((styleName is CSSStyleDeclaration)){
_local1 = CSSStyleDeclaration(styleName);
} else {
if ((((styleName is IFlexDisplayObject)) || ((styleName is IStyleClient)))){
StyleProtoChain.initProtoChainForUIComponentStyleName(this);
return;
};
if ((styleName is String)){
_local1 = StyleManager.getStyleDeclaration(("." + styleName));
};
};
};
var _local2:Object = StyleManager.stylesRoot;
if (((_local2) && (_local2.effects))){
registerEffects(_local2.effects);
};
var _local3:IStyleClient = (parent as IStyleClient);
if (_local3){
_local7 = _local3.inheritingStyles;
if (_local7 == UIComponent.STYLE_UNINITIALIZED){
_local7 = _local2;
};
} else {
if (isPopUp){
if ((((((FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)) && (_owner))) && ((_owner is IStyleClient)))){
_local7 = IStyleClient(_owner).inheritingStyles;
} else {
_local7 = ApplicationGlobals.application.inheritingStyles;
};
} else {
_local7 = StyleManager.stylesRoot;
};
};
var _local4:Array = getClassStyleDeclarations();
var _local5:int = _local4.length;
var _local6:int;
while (_local6 < _local5) {
_local8 = _local4[_local6];
_local7 = _local8.addStyleToProtoChain(_local7, this);
_local2 = _local8.addStyleToProtoChain(_local2, this);
if (_local8.effects){
registerEffects(_local8.effects);
};
_local6++;
};
if (_local1){
_local7 = _local1.addStyleToProtoChain(_local7, this);
_local2 = _local1.addStyleToProtoChain(_local2, this);
if (_local1.effects){
registerEffects(_local1.effects);
};
};
inheritingStyles = (_styleDeclaration) ? _styleDeclaration.addStyleToProtoChain(_local7, this) : _local7;
nonInheritingStyles = (_styleDeclaration) ? _styleDeclaration.addStyleToProtoChain(_local2, this) : _local2;
}
public function get repeaterIndices():Array{
return ((_repeaterIndices) ? _repeaterIndices.slice() : []);
}
override public function removeChild(_arg1:DisplayObject):DisplayObject{
removingChild(_arg1);
$removeChild(_arg1);
childRemoved(_arg1);
return (_arg1);
}
private function focusObj_moveHandler(_arg1:MoveEvent):void{
adjustFocusRect();
}
public function get styleDeclaration():CSSStyleDeclaration{
return (_styleDeclaration);
}
override public function get doubleClickEnabled():Boolean{
return (super.doubleClickEnabled);
}
public function contentToLocal(_arg1:Point):Point{
return (_arg1);
}
private function creationCompleteHandler(_arg1:FlexEvent):void{
if (_currentStateChanged){
_currentStateChanged = false;
commitCurrentState();
validateNow();
};
removeEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
}
public function set measuredHeight(_arg1:Number):void{
_measuredHeight = _arg1;
}
protected function createChildren():void{
}
public function get activeEffects():Array{
return (_effectsStarted);
}
override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
if (((overlayReferenceCount) && (!((_arg1 == overlay))))){
_arg2 = Math.min(_arg2, Math.max(0, (super.numChildren - 2)));
};
super.setChildIndex(_arg1, _arg2);
}
public function regenerateStyleCache(_arg1:Boolean):void{
var _local5:DisplayObject;
initProtoChain();
var _local2:IChildList = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this);
var _local3:int = _local2.numChildren;
var _local4:int;
while (_local4 < _local3) {
_local5 = _local2.getChildAt(_local4);
if ((_local5 is IStyleClient)){
if (IStyleClient(_local5).inheritingStyles != UIComponent.STYLE_UNINITIALIZED){
IStyleClient(_local5).regenerateStyleCache(_arg1);
};
} else {
if ((_local5 is IUITextField)){
if (IUITextField(_local5).inheritingStyles){
StyleProtoChain.initTextField(IUITextField(_local5));
};
};
};
_local4++;
};
}
public function get updateCompletePendingFlag():Boolean{
return (_updateCompletePendingFlag);
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus(DisplayObject(_arg1.target))){
drawFocus(false);
};
}
public function getFocus():InteractiveObject{
var _local1:ISystemManager = systemManager;
if (!_local1){
return (null);
};
if (UIComponentGlobals.nextFocusObject){
return (UIComponentGlobals.nextFocusObject);
};
return (_local1.stage.focus);
}
public function endEffectsStarted():void{
var _local1:int = _effectsStarted.length;
var _local2:int;
while (_local2 < _local1) {
_effectsStarted[_local2].end();
_local2++;
};
}
protected function get unscaledHeight():Number{
return ((height / Math.abs(scaleY)));
}
public function get enabled():Boolean{
return (_enabled);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
override public function set cacheAsBitmap(_arg1:Boolean):void{
super.cacheAsBitmap = _arg1;
cacheAsBitmapCount = (_arg1) ? 1 : 0;
}
mx_internal function removeOverlay():void{
if ((((((overlayReferenceCount > 0)) && ((--overlayReferenceCount == 0)))) && (overlay))){
removeEventListener("resize", overlay_resizeHandler);
if (super.getChildByName("overlay")){
$removeChild(overlay);
};
overlay = null;
};
}
public function set cacheHeuristic(_arg1:Boolean):void{
if (_cachePolicy == UIComponentCachePolicy.AUTO){
if (_arg1){
cacheAsBitmapCount++;
} else {
if (cacheAsBitmapCount != 0){
cacheAsBitmapCount--;
};
};
super.cacheAsBitmap = !((cacheAsBitmapCount == 0));
};
}
public function get cachePolicy():String{
return (_cachePolicy);
}
public function set maxHeight(_arg1:Number):void{
if (explicitMaxHeight == _arg1){
return;
};
explicitMaxHeight = _arg1;
}
public function getConstraintValue(_arg1:String){
return (getStyle(_arg1));
}
public function set focusManager(_arg1:IFocusManager):void{
_focusManager = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, undefined);
}
public function get descriptor():UIComponentDescriptor{
return (_descriptor);
}
public function set nonInheritingStyles(_arg1:Object):void{
_nonInheritingStyles = _arg1;
}
public function get cursorManager():ICursorManager{
var _local2:ICursorManager;
var _local1:DisplayObject = parent;
while (_local1) {
if ((((_local1 is IUIComponent)) && (("cursorManager" in _local1)))){
_local2 = _local1["cursorManager"];
return (_local2);
};
_local1 = _local1.parent;
};
return (CursorManager.getInstance());
}
public function set automationDelegate(_arg1:Object):void{
_automationDelegate = (_arg1 as IAutomationObject);
}
public function get measuredMinWidth():Number{
return (_measuredMinWidth);
}
public function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{
var _local2:Array;
var _local3:Object;
var _local4:int;
var _local5:int;
var _local6:PropertyChangeEvent;
var _local7:Object;
if (((id) && (!((id == ""))))){
_local2 = _instanceIndices;
if (!_local2){
_arg1[id] = this;
} else {
_local3 = _arg1[id];
if (!(_local3 is Array)){
_local3 = (_arg1[id] = []);
};
_local4 = _local2.length;
_local5 = 0;
while (_local5 < (_local4 - 1)) {
_local7 = _local3[_local2[_local5]];
if (!(_local7 is Array)){
_local7 = (_local3[_local2[_local5]] = []);
};
_local3 = _local7;
_local5++;
};
_local3[_local2[(_local4 - 1)]] = this;
_local6 = PropertyChangeEvent.createUpdateEvent(_arg1, id, _arg1[id], _arg1[id]);
_arg1.dispatchEvent(_local6);
};
};
}
public function get repeater():IRepeater{
return ((_repeaters) ? _repeaters[(_repeaters.length - 1)] : null);
}
public function set isPopUp(_arg1:Boolean):void{
_isPopUp = _arg1;
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function initialize():void{
if (initialized){
return;
};
dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));
createChildren();
childrenCreated();
initializeAccessibility();
initializationComplete();
}
override public function set width(_arg1:Number):void{
var _local2:IInvalidating;
if (explicitWidth != _arg1){
explicitWidth = _arg1;
invalidateSize();
};
if (_width != _arg1){
invalidateProperties();
invalidateDisplayList();
_local2 = (parent as IInvalidating);
if (((_local2) && (includeInLayout))){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
_width = _arg1;
dispatchEvent(new Event("widthChanged"));
};
}
public function set percentHeight(_arg1:Number):void{
if (_percentHeight == _arg1){
return;
};
if (!isNaN(_arg1)){
_explicitHeight = NaN;
};
_percentHeight = _arg1;
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
}
final mx_internal function set $visible(_arg1:Boolean):void{
super.visible = _arg1;
}
private function findCommonBaseState(_arg1:String, _arg2:String):String{
var _local3:State = getState(_arg1);
var _local4:State = getState(_arg2);
if (((!(_local3)) || (!(_local4)))){
return ("");
};
if (((isBaseState(_local3.basedOn)) && (isBaseState(_local4.basedOn)))){
return ("");
};
var _local5:Array = getBaseStates(_local3);
var _local6:Array = getBaseStates(_local4);
var _local7 = "";
while (_local5[(_local5.length - 1)] == _local6[(_local6.length - 1)]) {
_local7 = _local5.pop();
_local6.pop();
if (((!(_local5.length)) || (!(_local6.length)))){
break;
};
};
if (((_local5.length) && ((_local5[(_local5.length - 1)] == _local4.name)))){
_local7 = _local4.name;
} else {
if (((_local6.length) && ((_local6[(_local6.length - 1)] == _local3.name)))){
_local7 = _local3.name;
};
};
return (_local7);
}
mx_internal function childRemoved(_arg1:DisplayObject):void{
if ((_arg1 is IUIComponent)){
if (IUIComponent(_arg1).document != _arg1){
IUIComponent(_arg1).document = null;
};
IUIComponent(_arg1).parentChanged(null);
};
}
final mx_internal function $removeChildAt(_arg1:int):DisplayObject{
return (super.removeChildAt(_arg1));
}
public function get maxHeight():Number{
return ((isNaN(explicitMaxHeight)) ? DEFAULT_MAX_HEIGHT : explicitMaxHeight);
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function set explicitMaxHeight(_arg1:Number):void{
if (_explicitMaxHeight == _arg1){
return;
};
_explicitMaxHeight = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitMaxHeightChanged"));
}
public function get focusManager():IFocusManager{
if (_focusManager){
return (_focusManager);
};
var _local1:DisplayObject = parent;
while (_local1) {
if ((_local1 is IFocusManagerContainer)){
return (IFocusManagerContainer(_local1).focusManager);
};
_local1 = _local1.parent;
};
return (null);
}
public function set styleName(_arg1:Object):void{
if (_styleName === _arg1){
return;
};
_styleName = _arg1;
if (inheritingStyles == UIComponent.STYLE_UNINITIALIZED){
return;
};
regenerateStyleCache(true);
initThemeColor();
styleChanged("styleName");
notifyStyleChangeInChildren("styleName", true);
}
public function get automationDelegate():Object{
return (_automationDelegate);
}
protected function get resourceManager():IResourceManager{
return (_resourceManager);
}
mx_internal function validateBaselinePosition():Boolean{
var _local1:Number;
var _local2:Number;
if (!parent){
return (false);
};
if ((((width == 0)) && ((height == 0)))){
validateNow();
_local1 = getExplicitOrMeasuredWidth();
_local2 = getExplicitOrMeasuredHeight();
setActualSize(_local1, _local2);
};
validateNow();
return (true);
}
mx_internal function cancelAllCallLaters():void{
var _local1:ISystemManager = systemManager;
if (((_local1) && (_local1.stage))){
if (listeningForRender){
_local1.stage.removeEventListener(Event.RENDER, callLaterDispatcher);
_local1.stage.removeEventListener(Event.ENTER_FRAME, callLaterDispatcher);
listeningForRender = false;
};
};
methodQueue.splice(0);
}
private function updateCompleteHandler(_arg1:FlexEvent):void{
UIComponentGlobals.layoutManager.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler);
processEffectFinished(_endingEffectInstances);
_endingEffectInstances = [];
}
public function styleChanged(_arg1:String):void{
if ((((this is IFontContextComponent)) && (hasFontContextChanged()))){
invalidateProperties();
};
if (((((!(_arg1)) || ((_arg1 == "styleName")))) || (StyleManager.isSizeInvalidatingStyle(_arg1)))){
invalidateSize();
};
if (((((!(_arg1)) || ((_arg1 == "styleName")))) || ((_arg1 == "themeColor")))){
initThemeColor();
};
invalidateDisplayList();
if ((parent is IInvalidating)){
if (StyleManager.isParentSizeInvalidatingStyle(_arg1)){
IInvalidating(parent).invalidateSize();
};
if (StyleManager.isParentDisplayListInvalidatingStyle(_arg1)){
IInvalidating(parent).invalidateDisplayList();
};
};
}
final mx_internal function get $visible():Boolean{
return (super.visible);
}
public function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null, _arg9:String=null, _arg10:Array=null, _arg11:Object=null):void{
var _local13:Number;
var _local14:Array;
var _local15:Matrix;
var _local16:Object;
var _local12:Graphics = graphics;
if (((!(_arg3)) || (!(_arg4)))){
return;
};
if (_arg6 !== null){
if ((_arg6 is Array)){
if ((_arg7 is Array)){
_local14 = (_arg7 as Array);
} else {
_local14 = [_arg7, _arg7];
};
if (!_arg10){
_arg10 = [0, 0xFF];
};
_local15 = null;
if (_arg8){
if ((_arg8 is Matrix)){
_local15 = Matrix(_arg8);
} else {
_local15 = new Matrix();
if ((_arg8 is Number)){
_local15.createGradientBox(_arg3, _arg4, ((Number(_arg8) * Math.PI) / 180), _arg1, _arg2);
} else {
_local15.createGradientBox(_arg8.w, _arg8.h, _arg8.r, _arg8.x, _arg8.y);
};
};
};
if (_arg9 == GradientType.RADIAL){
_local12.beginGradientFill(GradientType.RADIAL, (_arg6 as Array), _local14, _arg10, _local15);
} else {
_local12.beginGradientFill(GradientType.LINEAR, (_arg6 as Array), _local14, _arg10, _local15);
};
} else {
_local12.beginFill(Number(_arg6), Number(_arg7));
};
};
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){
_local16 = _arg11.r;
if ((_local16 is Number)){
_local13 = (Number(_local16) * 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, _local16.tl, _local16.tr, _local16.bl, _local16.br);
};
};
if (_arg6 !== null){
_local12.endFill();
};
}
public function move(_arg1:Number, _arg2:Number):void{
var _local3:Boolean;
if (_arg1 != super.x){
super.x = _arg1;
dispatchEvent(new Event("xChanged"));
_local3 = true;
};
if (_arg2 != super.y){
super.y = _arg2;
dispatchEvent(new Event("yChanged"));
_local3 = true;
};
if (_local3){
dispatchMoveEvent();
};
}
public function set toolTip(_arg1:String):void{
var _local2:String = _toolTip;
_toolTip = _arg1;
ToolTipManager.registerToolTip(this, _local2, _arg1);
dispatchEvent(new Event("toolTipChanged"));
}
public function set repeaters(_arg1:Array):void{
_repeaters = _arg1;
}
public function get explicitMaxHeight():Number{
return (_explicitMaxHeight);
}
public function measureText(_arg1:String):TextLineMetrics{
return (determineTextFormatFromStyles().measureText(_arg1));
}
public function get styleName():Object{
return (_styleName);
}
protected function createInModuleContext(_arg1:IFlexModuleFactory, _arg2:String):Object{
var _local3:Object;
if (_arg1){
_local3 = _arg1.create(_arg2);
};
return (_local3);
}
public function get parentDocument():Object{
var _local1:IUIComponent;
var _local2:ISystemManager;
if (document == this){
_local1 = (parent as IUIComponent);
if (_local1){
return (_local1.document);
};
_local2 = (parent as ISystemManager);
if (_local2){
return (_local2.document);
};
return (null);
//unresolved jump
};
return (document);
}
protected function childrenCreated():void{
invalidateProperties();
invalidateSize();
invalidateDisplayList();
}
public function set flexContextMenu(_arg1:IFlexContextMenu):void{
if (_flexContextMenu){
_flexContextMenu.unsetContextMenu(this);
};
_flexContextMenu = _arg1;
if (_arg1 != null){
_flexContextMenu.setContextMenu(this);
};
}
public function set explicitWidth(_arg1:Number):void{
if (_explicitWidth == _arg1){
return;
};
if (!isNaN(_arg1)){
_percentWidth = NaN;
};
_explicitWidth = _arg1;
invalidateSize();
var _local2:IInvalidating = (parent as IInvalidating);
if (((_local2) && (includeInLayout))){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
dispatchEvent(new Event("explicitWidthChanged"));
}
private function setBorderColorForErrorString():void{
if (((!(_errorString)) || ((_errorString.length == 0)))){
if (!isNaN(origBorderColor)){
setStyle("borderColor", origBorderColor);
saveBorderColor = true;
};
} else {
if (saveBorderColor){
saveBorderColor = false;
origBorderColor = getStyle("borderColor");
};
setStyle("borderColor", getStyle("errorColor"));
};
styleChanged("themeColor");
var _local1:IFocusManager = focusManager;
var _local2:DisplayObject = (_local1) ? DisplayObject(_local1.getFocus()) : null;
if (((((_local1) && (_local1.showFocusIndicator))) && ((_local2 == this)))){
drawFocus(true);
};
}
public function get explicitWidth():Number{
return (_explicitWidth);
}
public function invalidateSize():void{
if (!invalidateSizeFlag){
invalidateSizeFlag = true;
if (((parent) && (UIComponentGlobals.layoutManager))){
UIComponentGlobals.layoutManager.invalidateSize(this);
};
};
}
public function set measuredMinHeight(_arg1:Number):void{
_measuredMinHeight = _arg1;
}
protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
}
override public function set filters(_arg1:Array):void{
var _local2:int;
var _local3:int;
var _local4:IEventDispatcher;
if (_filters){
_local2 = _filters.length;
_local3 = 0;
while (_local3 < _local2) {
_local4 = (_filters[_local3] as IEventDispatcher);
if (_local4){
_local4.removeEventListener("change", filterChangeHandler);
};
_local3++;
};
};
_filters = _arg1;
if (_filters){
_local2 = _filters.length;
_local3 = 0;
while (_local3 < _local2) {
_local4 = (_filters[_local3] as IEventDispatcher);
if (_local4){
_local4.addEventListener("change", filterChangeHandler);
};
_local3++;
};
};
super.filters = _filters;
}
private static function get embeddedFontRegistry():IEmbeddedFontRegistry{
if (!_embeddedFontRegistry){
_embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
};
return (_embeddedFontRegistry);
}
public static function resumeBackgroundProcessing():void{
var _local1:ISystemManager;
if (UIComponentGlobals.callLaterSuspendCount > 0){
UIComponentGlobals.callLaterSuspendCount--;
if (UIComponentGlobals.callLaterSuspendCount == 0){
_local1 = SystemManagerGlobals.topLevelSystemManagers[0];
if (((_local1) && (_local1.stage))){
_local1.stage.invalidate();
};
};
};
}
public static function suspendBackgroundProcessing():void{
UIComponentGlobals.callLaterSuspendCount++;
}
}
}//package mx.core
class MethodQueueElement {
public var method:Function;
public var args:Array;
private function MethodQueueElement(_arg1:Function, _arg2:Array=null){
this.method = _arg1;
this.args = _arg2;
}
}
Section 623
//UIComponentCachePolicy (mx.core.UIComponentCachePolicy)
package mx.core {
public final class UIComponentCachePolicy {
public static const AUTO:String = "auto";
public static const ON:String = "on";
mx_internal static const VERSION:String = "3.0.0.0";
public static const OFF:String = "off";
}
}//package mx.core
Section 624
//UIComponentDescriptor (mx.core.UIComponentDescriptor)
package mx.core {
public class UIComponentDescriptor extends ComponentDescriptor {
mx_internal var instanceIndices:Array;
public var stylesFactory:Function;
public var effects:Array;
mx_internal var repeaters:Array;
mx_internal var repeaterIndices:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function UIComponentDescriptor(_arg1:Object){
super(_arg1);
}
override public function toString():String{
return (("UIComponentDescriptor_" + id));
}
}
}//package mx.core
Section 625
//UIComponentGlobals (mx.core.UIComponentGlobals)
package mx.core {
import flash.display.*;
import mx.managers.*;
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 626
//UITextField (mx.core.UITextField)
package mx.core {
import mx.automation.*;
import flash.events.*;
import flash.display.*;
import mx.managers.*;
import mx.resources.*;
import mx.styles.*;
import flash.text.*;
import flash.utils.*;
import mx.utils.*;
public class UITextField extends FlexTextField implements IAutomationObject, IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUITextField {
private var _enabled:Boolean;// = true
private var untruncatedText:String;
private var cachedEmbeddedFont:EmbeddedFont;// = null
private var cachedTextFormat:TextFormat;
private var _automationDelegate:IAutomationObject;
private var _automationName:String;
private var _styleName:Object;
private var _document:Object;
mx_internal var _toolTip:String;
private var _nestLevel:int;// = 0
private var _explicitHeight:Number;
private var _moduleFactory:IFlexModuleFactory;
private var _initialized:Boolean;// = false
private var _nonInheritingStyles:Object;
private var _inheritingStyles:Object;
private var _includeInLayout:Boolean;// = true
private var invalidateDisplayListFlag:Boolean;// = true
mx_internal var explicitColor:uint;// = 4294967295
private var _processedDescriptors:Boolean;// = true
private var _updateCompletePendingFlag:Boolean;// = false
private var explicitHTMLText:String;// = null
mx_internal var _parent:DisplayObjectContainer;
private var _imeMode:String;// = null
private var resourceManager:IResourceManager;
mx_internal var styleChangedFlag:Boolean;// = true
private var _ignorePadding:Boolean;// = true
private var _owner:DisplayObjectContainer;
private var _explicitWidth:Number;
mx_internal static const TEXT_WIDTH_PADDING:int = 5;
mx_internal static const TEXT_HEIGHT_PADDING:int = 4;
mx_internal static const VERSION:String = "3.0.0.0";
private static var truncationIndicatorResource:String;
private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
mx_internal static var debuggingBorders:Boolean = false;
public function UITextField(){
resourceManager = ResourceManager.getInstance();
_inheritingStyles = UIComponent.STYLE_UNINITIALIZED;
_nonInheritingStyles = UIComponent.STYLE_UNINITIALIZED;
super();
super.text = "";
focusRect = false;
selectable = false;
tabEnabled = false;
if (debuggingBorders){
border = true;
};
if (!truncationIndicatorResource){
truncationIndicatorResource = resourceManager.getString("core", "truncationIndicator");
};
addEventListener(Event.CHANGE, changeHandler);
addEventListener("textFieldStyleChange", textFieldStyleChangeHandler);
resourceManager.addEventListener(Event.CHANGE, resourceManager_changeHandler, false, 0, true);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
public function get nestLevel():int{
return (_nestLevel);
}
private function textFieldStyleChangeHandler(_arg1:Event):void{
if (explicitHTMLText != null){
super.htmlText = explicitHTMLText;
};
}
public function truncateToFit(_arg1:String=null):Boolean{
var _local4:String;
if (!_arg1){
_arg1 = truncationIndicatorResource;
};
validateNow();
var _local2:String = super.text;
untruncatedText = _local2;
var _local3:Number = width;
if (((!((_local2 == ""))) && (((textWidth + TEXT_WIDTH_PADDING) > (_local3 + 1E-14))))){
var _local5 = _local2;
super.text = _local5;
_local4 = _local5;
_local2.slice(0, Math.floor(((_local3 / (textWidth + TEXT_WIDTH_PADDING)) * _local2.length)));
while ((((_local4.length > 1)) && (((textWidth + TEXT_WIDTH_PADDING) > _local3)))) {
_local4 = _local4.slice(0, -1);
super.text = (_local4 + _arg1);
};
return (true);
};
return (false);
}
public function set nestLevel(_arg1:int):void{
if ((((_arg1 > 1)) && (!((_nestLevel == _arg1))))){
_nestLevel = _arg1;
StyleProtoChain.initTextField(this);
styleChangedFlag = true;
validateNow();
};
}
public function get minHeight():Number{
return (0);
}
public function getExplicitOrMeasuredHeight():Number{
return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight);
}
public function getStyle(_arg1:String){
if (StyleManager.inheritingStyles[_arg1]){
return ((inheritingStyles) ? inheritingStyles[_arg1] : IStyleClient(parent).getStyle(_arg1));
//unresolved jump
};
return ((nonInheritingStyles) ? nonInheritingStyles[_arg1] : IStyleClient(parent).getStyle(_arg1));
}
public function get className():String{
var _local1:String = getQualifiedClassName(this);
var _local2:int = _local1.indexOf("::");
if (_local2 != -1){
_local1 = _local1.substr((_local2 + 2));
};
return (_local1);
}
public function setColor(_arg1:uint):void{
explicitColor = _arg1;
styleChangedFlag = true;
invalidateDisplayListFlag = true;
validateNow();
}
override public function replaceText(_arg1:int, _arg2:int, _arg3:String):void{
super.replaceText(_arg1, _arg2, _arg3);
dispatchEvent(new Event("textReplace"));
}
private function creatingSystemManager():ISystemManager{
return ((((!((moduleFactory == null))) && ((moduleFactory is ISystemManager)))) ? ISystemManager(moduleFactory) : systemManager);
}
public function set document(_arg1:Object):void{
_document = _arg1;
}
public function get automationName():String{
if (_automationName){
return (_automationName);
};
if (automationDelegate){
return (automationDelegate.automationName);
};
return ("");
}
public function get explicitMinHeight():Number{
return (NaN);
}
public function get focusPane():Sprite{
return (null);
}
public function getTextStyles():TextFormat{
var _local1:TextFormat = new TextFormat();
_local1.align = getStyle("textAlign");
_local1.bold = (getStyle("fontWeight") == "bold");
if (enabled){
if (explicitColor == StyleManager.NOT_A_COLOR){
_local1.color = getStyle("color");
} else {
_local1.color = explicitColor;
};
} else {
_local1.color = getStyle("disabledColor");
};
_local1.font = StringUtil.trimArrayElements(getStyle("fontFamily"), ",");
_local1.indent = getStyle("textIndent");
_local1.italic = (getStyle("fontStyle") == "italic");
_local1.kerning = getStyle("kerning");
_local1.leading = getStyle("leading");
_local1.leftMargin = (ignorePadding) ? 0 : getStyle("paddingLeft");
_local1.letterSpacing = getStyle("letterSpacing");
_local1.rightMargin = (ignorePadding) ? 0 : getStyle("paddingRight");
_local1.size = getStyle("fontSize");
_local1.underline = (getStyle("textDecoration") == "underline");
cachedTextFormat = _local1;
return (_local1);
}
override public function set text(_arg1:String):void{
if (!_arg1){
_arg1 = "";
};
if (((!(isHTML)) && ((super.text == _arg1)))){
return;
};
super.text = _arg1;
explicitHTMLText = null;
if (invalidateDisplayListFlag){
validateNow();
};
}
public function getExplicitOrMeasuredWidth():Number{
return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth);
}
public function get showInAutomationHierarchy():Boolean{
return (true);
}
public function set automationName(_arg1:String):void{
_automationName = _arg1;
}
public function get systemManager():ISystemManager{
var _local2:IUIComponent;
var _local1:DisplayObject = parent;
while (_local1) {
_local2 = (_local1 as IUIComponent);
if (_local2){
return (_local2.systemManager);
};
_local1 = _local1.parent;
};
return (null);
}
public function setStyle(_arg1:String, _arg2):void{
}
public function get percentWidth():Number{
return (NaN);
}
public function get explicitHeight():Number{
return (_explicitHeight);
}
public function get baselinePosition():Number{
var _local1:TextLineMetrics;
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
_local1 = getLineMetrics(0);
return (((height - 4) - _local1.descent));
};
if (!parent){
return (NaN);
};
var _local2 = (text == "");
if (_local2){
super.text = "Wj";
};
_local1 = getLineMetrics(0);
if (_local2){
super.text = "";
};
return ((2 + _local1.ascent));
}
public function set enabled(_arg1:Boolean):void{
mouseEnabled = _arg1;
_enabled = _arg1;
styleChanged("color");
}
public function get minWidth():Number{
return (0);
}
public function get automationValue():Array{
if (automationDelegate){
return (automationDelegate.automationValue);
};
return ([""]);
}
public function get tweeningProperties():Array{
return (null);
}
public function get measuredWidth():Number{
validateNow();
if (!stage){
return ((textWidth + TEXT_WIDTH_PADDING));
};
return (((textWidth * transform.concatenatedMatrix.d) + TEXT_WIDTH_PADDING));
}
public function set tweeningProperties(_arg1:Array):void{
}
public function createAutomationIDPart(_arg1:IAutomationObject):Object{
return (null);
}
override public function get parent():DisplayObjectContainer{
return ((_parent) ? _parent : super.parent);
}
public function set updateCompletePendingFlag(_arg1:Boolean):void{
_updateCompletePendingFlag = _arg1;
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
if (width != _arg1){
width = _arg1;
};
if (height != _arg2){
height = _arg2;
};
}
public function get numAutomationChildren():int{
return (0);
}
public function set focusPane(_arg1:Sprite):void{
}
public function getAutomationChildAt(_arg1:int):IAutomationObject{
return (null);
}
public function get inheritingStyles():Object{
return (_inheritingStyles);
}
public function get owner():DisplayObjectContainer{
return ((_owner) ? _owner : parent);
}
public function parentChanged(_arg1:DisplayObjectContainer):void{
if (!_arg1){
_parent = null;
_nestLevel = 0;
} else {
if ((_arg1 is IStyleClient)){
_parent = _arg1;
} else {
if ((_arg1 is SystemManager)){
_parent = _arg1;
} else {
_parent = _arg1.parent;
};
};
};
}
public function get processedDescriptors():Boolean{
return (_processedDescriptors);
}
public function get maxWidth():Number{
return (UIComponent.DEFAULT_MAX_WIDTH);
}
private function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{
if (cachedEmbeddedFont){
if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){
return (cachedEmbeddedFont);
};
};
cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3);
return (cachedEmbeddedFont);
}
public function get initialized():Boolean{
return (_initialized);
}
public function invalidateDisplayList():void{
invalidateDisplayListFlag = true;
}
public function invalidateProperties():void{
}
override public function insertXMLText(_arg1:int, _arg2:int, _arg3:String, _arg4:Boolean=false):void{
super.insertXMLText(_arg1, _arg2, _arg3, _arg4);
dispatchEvent(new Event("textInsert"));
}
public function set includeInLayout(_arg1:Boolean):void{
var _local2:IInvalidating;
if (_includeInLayout != _arg1){
_includeInLayout = _arg1;
_local2 = (parent as IInvalidating);
if (_local2){
_local2.invalidateSize();
_local2.invalidateDisplayList();
};
};
}
override public function set htmlText(_arg1:String):void{
if (!_arg1){
_arg1 = "";
};
if (((isHTML) && ((super.htmlText == _arg1)))){
return;
};
if (((cachedTextFormat) && ((styleSheet == null)))){
defaultTextFormat = cachedTextFormat;
};
super.htmlText = _arg1;
explicitHTMLText = _arg1;
if (invalidateDisplayListFlag){
validateNow();
};
}
public function set showInAutomationHierarchy(_arg1:Boolean):void{
}
private function resourceManager_changeHandler(_arg1:Event):void{
truncationIndicatorResource = resourceManager.getString("core", "truncationIndicator");
if (untruncatedText != null){
super.text = untruncatedText;
truncateToFit();
};
}
public function set measuredMinWidth(_arg1:Number):void{
}
public function set explicitHeight(_arg1:Number):void{
_explicitHeight = _arg1;
}
public function get explicitMinWidth():Number{
return (NaN);
}
public function set percentWidth(_arg1:Number):void{
}
public function get imeMode():String{
return (_imeMode);
}
public function get moduleFactory():IFlexModuleFactory{
return (_moduleFactory);
}
public function set systemManager(_arg1:ISystemManager):void{
}
public function get explicitMaxWidth():Number{
return (NaN);
}
public function get document():Object{
return (_document);
}
public function get updateCompletePendingFlag():Boolean{
return (_updateCompletePendingFlag);
}
public function replayAutomatableEvent(_arg1:Event):Boolean{
if (automationDelegate){
return (automationDelegate.replayAutomatableEvent(_arg1));
};
return (false);
}
public function get enabled():Boolean{
return (_enabled);
}
public function set owner(_arg1:DisplayObjectContainer):void{
_owner = _arg1;
}
public function get automationTabularData():Object{
return (null);
}
public function set nonInheritingStyles(_arg1:Object):void{
_nonInheritingStyles = _arg1;
}
public function get includeInLayout():Boolean{
return (_includeInLayout);
}
public function get measuredMinWidth():Number{
return (0);
}
public function set isPopUp(_arg1:Boolean):void{
}
public function set automationDelegate(_arg1:Object):void{
_automationDelegate = (_arg1 as IAutomationObject);
}
public function get measuredHeight():Number{
validateNow();
if (!stage){
return ((textHeight + TEXT_HEIGHT_PADDING));
};
return (((textHeight * transform.concatenatedMatrix.a) + TEXT_HEIGHT_PADDING));
}
public function set processedDescriptors(_arg1:Boolean):void{
_processedDescriptors = _arg1;
}
public function setFocus():void{
systemManager.stage.focus = this;
}
public function initialize():void{
}
public function set percentHeight(_arg1:Number):void{
}
public function resolveAutomationIDPart(_arg1:Object):Array{
return ([]);
}
public function set inheritingStyles(_arg1:Object):void{
_inheritingStyles = _arg1;
}
public function getUITextFormat():UITextFormat{
validateNow();
var _local1:UITextFormat = new UITextFormat(creatingSystemManager());
_local1.moduleFactory = moduleFactory;
_local1.copyFrom(getTextFormat());
_local1.antiAliasType = antiAliasType;
_local1.gridFitType = gridFitType;
_local1.sharpness = sharpness;
_local1.thickness = thickness;
return (_local1);
}
private function changeHandler(_arg1:Event):void{
explicitHTMLText = null;
}
public function set initialized(_arg1:Boolean):void{
_initialized = _arg1;
}
public function get nonZeroTextHeight():Number{
var _local1:Number;
if (super.text == ""){
super.text = "Wj";
_local1 = textHeight;
super.text = "";
return (_local1);
};
return (textHeight);
}
public function owns(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function setTextFormat(_arg1:TextFormat, _arg2:int=-1, _arg3:int=-1):void{
if (styleSheet){
return;
};
super.setTextFormat(_arg1, _arg2, _arg3);
dispatchEvent(new Event("textFormatChange"));
}
public function get nonInheritingStyles():Object{
return (_nonInheritingStyles);
}
public function setVisible(_arg1:Boolean, _arg2:Boolean=false):void{
this.visible = _arg1;
}
public function get maxHeight():Number{
return (UIComponent.DEFAULT_MAX_HEIGHT);
}
public function get automationDelegate():Object{
return (_automationDelegate);
}
public function get isPopUp():Boolean{
return (false);
}
public function set ignorePadding(_arg1:Boolean):void{
_ignorePadding = _arg1;
styleChanged(null);
}
public function set styleName(_arg1:Object):void{
if (_styleName === _arg1){
return;
};
_styleName = _arg1;
if (parent){
StyleProtoChain.initTextField(this);
styleChanged("styleName");
};
}
public function styleChanged(_arg1:String):void{
styleChangedFlag = true;
if (!invalidateDisplayListFlag){
invalidateDisplayListFlag = true;
if (("callLater" in parent)){
Object(parent).callLater(validateNow);
};
};
}
public function get percentHeight():Number{
return (NaN);
}
private function get isHTML():Boolean{
return (!((explicitHTMLText == null)));
}
public function get explicitMaxHeight():Number{
return (NaN);
}
public function get styleName():Object{
return (_styleName);
}
public function set explicitWidth(_arg1:Number):void{
_explicitWidth = _arg1;
}
public function validateNow():void{
var _local1:TextFormat;
var _local2:EmbeddedFont;
var _local3:IFlexModuleFactory;
var _local4:ISystemManager;
if (!parent){
return;
};
if (((!(isNaN(explicitWidth))) && (!((super.width == explicitWidth))))){
super.width = ((explicitWidth)>4) ? explicitWidth : 4;
};
if (((!(isNaN(explicitHeight))) && (!((super.height == explicitHeight))))){
super.height = explicitHeight;
};
if (styleChangedFlag){
_local1 = getTextStyles();
if (_local1.font){
_local2 = getEmbeddedFont(_local1.font, _local1.bold, _local1.italic);
_local3 = embeddedFontRegistry.getAssociatedModuleFactory(_local2, moduleFactory);
if (_local3 != null){
embedFonts = true;
} else {
_local4 = creatingSystemManager();
embedFonts = ((!((_local4 == null))) && (_local4.isFontFaceEmbedded(_local1)));
};
} else {
embedFonts = getStyle("embedFonts");
};
if (getStyle("fontAntiAliasType") != undefined){
antiAliasType = getStyle("fontAntiAliasType");
gridFitType = getStyle("fontGridFitType");
sharpness = getStyle("fontSharpness");
thickness = getStyle("fontThickness");
};
if (!styleSheet){
super.setTextFormat(_local1);
defaultTextFormat = _local1;
};
dispatchEvent(new Event("textFieldStyleChange"));
};
styleChangedFlag = false;
invalidateDisplayListFlag = false;
}
public function set toolTip(_arg1:String):void{
var _local2:String = _toolTip;
_toolTip = _arg1;
ToolTipManager.registerToolTip(this, _local2, _arg1);
}
public function move(_arg1:Number, _arg2:Number):void{
if (this.x != _arg1){
this.x = _arg1;
};
if (this.y != _arg2){
this.y = _arg2;
};
}
public function get toolTip():String{
return (_toolTip);
}
public function get ignorePadding():Boolean{
return (_ignorePadding);
}
public function get explicitWidth():Number{
return (_explicitWidth);
}
public function invalidateSize():void{
invalidateDisplayListFlag = true;
}
public function set measuredMinHeight(_arg1:Number):void{
}
public function get measuredMinHeight():Number{
return (0);
}
public function set moduleFactory(_arg1:IFlexModuleFactory):void{
_moduleFactory = _arg1;
}
private static function get embeddedFontRegistry():IEmbeddedFontRegistry{
if (!_embeddedFontRegistry){
_embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
};
return (_embeddedFontRegistry);
}
}
}//package mx.core
Section 627
//UITextFormat (mx.core.UITextFormat)
package mx.core {
import mx.managers.*;
import flash.text.*;
public class UITextFormat extends TextFormat {
private var systemManager:ISystemManager;
public var sharpness:Number;
public var gridFitType:String;
public var antiAliasType:String;
public var thickness:Number;
private var cachedEmbeddedFont:EmbeddedFont;// = null
private var _moduleFactory:IFlexModuleFactory;
mx_internal static const VERSION:String = "3.0.0.0";
private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
private static var _textFieldFactory:ITextFieldFactory;
public function UITextFormat(_arg1:ISystemManager, _arg2:String=null, _arg3:Object=null, _arg4:Object=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:String=null, _arg9:String=null, _arg10:String=null, _arg11:Object=null, _arg12:Object=null, _arg13:Object=null, _arg14:Object=null){
this.systemManager = _arg1;
super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14);
}
public function set moduleFactory(_arg1:IFlexModuleFactory):void{
_moduleFactory = _arg1;
}
mx_internal function copyFrom(_arg1:TextFormat):void{
font = _arg1.font;
size = _arg1.size;
color = _arg1.color;
bold = _arg1.bold;
italic = _arg1.italic;
underline = _arg1.underline;
url = _arg1.url;
target = _arg1.target;
align = _arg1.align;
leftMargin = _arg1.leftMargin;
rightMargin = _arg1.rightMargin;
indent = _arg1.indent;
leading = _arg1.leading;
}
private function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{
if (cachedEmbeddedFont){
if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){
return (cachedEmbeddedFont);
};
};
cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3);
return (cachedEmbeddedFont);
}
public function measureText(_arg1:String, _arg2:Boolean=true):TextLineMetrics{
return (measure(_arg1, false, _arg2));
}
private function measure(_arg1:String, _arg2:Boolean, _arg3:Boolean):TextLineMetrics{
if (!_arg1){
_arg1 = "";
};
var _local4:Boolean;
var _local5:IFlexModuleFactory = embeddedFontRegistry.getAssociatedModuleFactory(getEmbeddedFont(font, bold, italic), moduleFactory);
_local4 = !((_local5 == null));
if (_local5 == null){
_local5 = systemManager;
};
var _local6:TextField;
_local6 = TextField(textFieldFactory.createTextField(_local5));
if (_arg2){
_local6.htmlText = "";
} else {
_local6.text = "";
};
_local6.defaultTextFormat = this;
if (font){
_local6.embedFonts = ((_local4) || (((!((systemManager == null))) && (systemManager.isFontFaceEmbedded(this)))));
} else {
_local6.embedFonts = false;
};
_local6.antiAliasType = antiAliasType;
_local6.gridFitType = gridFitType;
_local6.sharpness = sharpness;
_local6.thickness = thickness;
if (_arg2){
_local6.htmlText = _arg1;
} else {
_local6.text = _arg1;
};
var _local7:TextLineMetrics = _local6.getLineMetrics(0);
if (_arg3){
_local7.width = Math.ceil(_local7.width);
_local7.height = Math.ceil(_local7.height);
};
return (_local7);
}
public function measureHTMLText(_arg1:String, _arg2:Boolean=true):TextLineMetrics{
return (measure(_arg1, true, _arg2));
}
public function get moduleFactory():IFlexModuleFactory{
return (_moduleFactory);
}
private static function get embeddedFontRegistry():IEmbeddedFontRegistry{
if (!_embeddedFontRegistry){
_embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
};
return (_embeddedFontRegistry);
}
private static function get textFieldFactory():ITextFieldFactory{
if (!_textFieldFactory){
_textFieldFactory = ITextFieldFactory(Singleton.getInstance("mx.core::ITextFieldFactory"));
};
return (_textFieldFactory);
}
}
}//package mx.core
Section 628
//AddRemoveEffectTargetFilter (mx.effects.effectClasses.AddRemoveEffectTargetFilter)
package mx.effects.effectClasses {
import mx.effects.*;
public class AddRemoveEffectTargetFilter extends EffectTargetFilter {
public var add:Boolean;// = true
mx_internal static const VERSION:String = "3.0.0.0";
public function AddRemoveEffectTargetFilter(){
filterProperties = ["parent"];
}
override protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{
var _local5:PropertyChanges;
var _local3:int = _arg1.length;
var _local4:int;
while (_local4 < _local3) {
_local5 = _arg1[_local4];
if (_local5.target == _arg2){
if (add){
return ((((_local5.start["parent"] == null)) && (!((_local5.end["parent"] == null)))));
};
return (((!((_local5.start["parent"] == null))) && ((_local5.end["parent"] == null))));
};
_local4++;
};
return (false);
}
}
}//package mx.effects.effectClasses
Section 629
//HideShowEffectTargetFilter (mx.effects.effectClasses.HideShowEffectTargetFilter)
package mx.effects.effectClasses {
import mx.effects.*;
public class HideShowEffectTargetFilter extends EffectTargetFilter {
public var show:Boolean;// = true
mx_internal static const VERSION:String = "3.0.0.0";
public function HideShowEffectTargetFilter(){
filterProperties = ["visible"];
}
override protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{
var _local5:PropertyChanges;
var _local3:int = _arg1.length;
var _local4:int;
while (_local4 < _local3) {
_local5 = _arg1[_local4];
if (_local5.target == _arg2){
return ((_local5.end["visible"] == show));
};
_local4++;
};
return (false);
}
}
}//package mx.effects.effectClasses
Section 630
//PropertyChanges (mx.effects.effectClasses.PropertyChanges)
package mx.effects.effectClasses {
public class PropertyChanges {
public var target:Object;
public var start:Object;
public var end:Object;
mx_internal static const VERSION:String = "3.0.0.0";
public function PropertyChanges(_arg1:Object){
end = {};
start = {};
super();
this.target = _arg1;
}
}
}//package mx.effects.effectClasses
Section 631
//TweenEffectInstance (mx.effects.effectClasses.TweenEffectInstance)
package mx.effects.effectClasses {
import mx.core.*;
import mx.events.*;
import mx.effects.*;
public class TweenEffectInstance extends EffectInstance {
private var _seekTime:Number;// = 0
public var easingFunction:Function;
public var tween:Tween;
mx_internal var needToLayout:Boolean;// = false
mx_internal static const VERSION:String = "3.0.0.0";
public function TweenEffectInstance(_arg1:Object){
super(_arg1);
}
override public function stop():void{
super.stop();
if (tween){
tween.stop();
};
}
mx_internal function applyTweenStartValues():void{
if (duration > 0){
onTweenUpdate(tween.getCurrentValue(0));
};
}
override public function get playheadTime():Number{
if (tween){
return ((tween.playheadTime + super.playheadTime));
};
return (0);
}
protected function createTween(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Number=-1, _arg5:Number=-1):Tween{
var _local6:Tween = new Tween(_arg1, _arg2, _arg3, _arg4, _arg5);
_local6.addEventListener(TweenEvent.TWEEN_START, tweenEventHandler);
_local6.addEventListener(TweenEvent.TWEEN_UPDATE, tweenEventHandler);
_local6.addEventListener(TweenEvent.TWEEN_END, tweenEventHandler);
if (easingFunction != null){
_local6.easingFunction = easingFunction;
};
if (_seekTime > 0){
_local6.seek(_seekTime);
};
_local6.playReversed = playReversed;
return (_local6);
}
private function tweenEventHandler(_arg1:TweenEvent):void{
dispatchEvent(_arg1);
}
override public function end():void{
stopRepeat = true;
if (delayTimer){
delayTimer.reset();
};
if (tween){
tween.endTween();
tween = null;
};
}
override public function reverse():void{
super.reverse();
if (tween){
tween.reverse();
};
super.playReversed = !(playReversed);
}
override mx_internal function set playReversed(_arg1:Boolean):void{
super.playReversed = _arg1;
if (tween){
tween.playReversed = _arg1;
};
}
override public function resume():void{
super.resume();
if (tween){
tween.resume();
};
}
public function onTweenEnd(_arg1:Object):void{
onTweenUpdate(_arg1);
tween = null;
if (needToLayout){
UIComponentGlobals.layoutManager.validateNow();
};
finishRepeat();
}
public function onTweenUpdate(_arg1:Object):void{
}
override public function pause():void{
super.pause();
if (tween){
tween.pause();
};
}
public function seek(_arg1:Number):void{
if (tween){
tween.seek(_arg1);
} else {
_seekTime = _arg1;
};
}
}
}//package mx.effects.effectClasses
Section 632
//ZoomInstance (mx.effects.effectClasses.ZoomInstance)
package mx.effects.effectClasses {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import mx.effects.*;
public class ZoomInstance extends TweenEffectInstance {
private var newY:Number;
public var originY:Number;
private var origX:Number;
private var origY:Number;
public var originX:Number;
private var origPercentHeight:Number;
public var zoomWidthFrom:Number;
public var zoomWidthTo:Number;
private var newX:Number;
public var captureRollEvents:Boolean;
private var origPercentWidth:Number;
public var zoomHeightFrom:Number;
private var origScaleX:Number;
public var zoomHeightTo:Number;
private var origScaleY:Number;
private var scaledOriginX:Number;
private var scaledOriginY:Number;
private var show:Boolean;// = true
private var _mouseHasMoved:Boolean;// = false
mx_internal static const VERSION:String = "3.0.0.0";
public function ZoomInstance(_arg1:Object){
super(_arg1);
}
override public function finishEffect():void{
if (captureRollEvents){
target.removeEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false);
target.removeEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false);
target.removeEventListener(MouseEvent.MOUSE_MOVE, mouseEventHandler, false);
};
super.finishEffect();
}
private function getScaleFromWidth(_arg1:Number):Number{
return ((_arg1 / (target.width / Math.abs(target.scaleX))));
}
override public function initEffect(_arg1:Event):void{
super.initEffect(_arg1);
if ((((_arg1.type == FlexEvent.HIDE)) || ((_arg1.type == Event.REMOVED)))){
show = false;
};
}
private function getScaleFromHeight(_arg1:Number):Number{
return ((_arg1 / (target.height / Math.abs(target.scaleY))));
}
private function applyPropertyChanges():void{
var _local2:Boolean;
var _local3:Boolean;
var _local1:PropertyChanges = propertyChanges;
if (_local1){
_local2 = false;
_local3 = false;
if (_local1.end["scaleX"] !== undefined){
zoomWidthFrom = (isNaN(zoomWidthFrom)) ? target.scaleX : zoomWidthFrom;
zoomWidthTo = (isNaN(zoomWidthTo)) ? _local1.end["scaleX"] : zoomWidthTo;
_local3 = true;
};
if (_local1.end["scaleY"] !== undefined){
zoomHeightFrom = (isNaN(zoomHeightFrom)) ? target.scaleY : zoomHeightFrom;
zoomHeightTo = (isNaN(zoomHeightTo)) ? _local1.end["scaleY"] : zoomHeightTo;
_local3 = true;
};
if (_local3){
return;
};
if (_local1.end["width"] !== undefined){
zoomWidthFrom = (isNaN(zoomWidthFrom)) ? getScaleFromWidth(target.width) : zoomWidthFrom;
zoomWidthTo = (isNaN(zoomWidthTo)) ? getScaleFromWidth(_local1.end["width"]) : zoomWidthTo;
_local2 = true;
};
if (_local1.end["height"] !== undefined){
zoomHeightFrom = (isNaN(zoomHeightFrom)) ? getScaleFromHeight(target.height) : zoomHeightFrom;
zoomHeightTo = (isNaN(zoomHeightTo)) ? getScaleFromHeight(_local1.end["height"]) : zoomHeightTo;
_local2 = true;
};
if (_local2){
return;
};
if (_local1.end["visible"] !== undefined){
show = _local1.end["visible"];
};
};
}
private function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_MOVE){
_mouseHasMoved = true;
} else {
if ((((_arg1.type == MouseEvent.ROLL_OUT)) || ((_arg1.type == MouseEvent.ROLL_OVER)))){
if (!_mouseHasMoved){
_arg1.stopImmediatePropagation();
};
_mouseHasMoved = false;
};
};
}
override public function play():void{
super.play();
applyPropertyChanges();
if (((((((isNaN(zoomWidthFrom)) && (isNaN(zoomWidthTo)))) && (isNaN(zoomHeightFrom)))) && (isNaN(zoomHeightTo)))){
if (show){
zoomWidthFrom = (zoomHeightFrom = 0);
zoomWidthTo = target.scaleX;
zoomHeightTo = target.scaleY;
} else {
zoomWidthFrom = target.scaleX;
zoomHeightFrom = target.scaleY;
zoomWidthTo = (zoomHeightTo = 0);
};
} else {
if (((isNaN(zoomWidthFrom)) && (isNaN(zoomWidthTo)))){
zoomWidthFrom = (zoomWidthTo = target.scaleX);
} else {
if (((isNaN(zoomHeightFrom)) && (isNaN(zoomHeightTo)))){
zoomHeightFrom = (zoomHeightTo = target.scaleY);
};
};
if (isNaN(zoomWidthFrom)){
zoomWidthFrom = target.scaleX;
} else {
if (isNaN(zoomWidthTo)){
zoomWidthTo = ((zoomWidthFrom)==1) ? 0 : 1;
};
};
if (isNaN(zoomHeightFrom)){
zoomHeightFrom = target.scaleY;
} else {
if (isNaN(zoomHeightTo)){
zoomHeightTo = ((zoomHeightFrom)==1) ? 0 : 1;
};
};
};
if (zoomWidthFrom < 0.01){
zoomWidthFrom = 0.01;
};
if (zoomWidthTo < 0.01){
zoomWidthTo = 0.01;
};
if (zoomHeightFrom < 0.01){
zoomHeightFrom = 0.01;
};
if (zoomHeightTo < 0.01){
zoomHeightTo = 0.01;
};
origScaleX = target.scaleX;
origScaleY = target.scaleY;
newX = (origX = target.x);
newY = (origY = target.y);
if (isNaN(originX)){
scaledOriginX = (target.width / 2);
} else {
scaledOriginX = (originX * origScaleX);
};
if (isNaN(originY)){
scaledOriginY = (target.height / 2);
} else {
scaledOriginY = (originY * origScaleY);
};
scaledOriginX = Number(scaledOriginX.toFixed(1));
scaledOriginY = Number(scaledOriginY.toFixed(1));
origPercentWidth = target.percentWidth;
if (!isNaN(origPercentWidth)){
target.width = target.width;
};
origPercentHeight = target.percentHeight;
if (!isNaN(origPercentHeight)){
target.height = target.height;
};
tween = createTween(this, [zoomWidthFrom, zoomHeightFrom], [zoomWidthTo, zoomHeightTo], duration);
if (captureRollEvents){
target.addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false);
target.addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false);
target.addEventListener(MouseEvent.MOUSE_MOVE, mouseEventHandler, false);
};
}
override public function onTweenEnd(_arg1:Object):void{
var _local2:Number;
var _local3:Number;
if (!isNaN(origPercentWidth)){
_local2 = target.width;
target.percentWidth = origPercentWidth;
if (((target.parent) && ((target.parent.autoLayout == false)))){
target.mx_internal::_width = _local2;
};
};
if (!isNaN(origPercentHeight)){
_local3 = target.height;
target.percentHeight = origPercentHeight;
if (((target.parent) && ((target.parent.autoLayout == false)))){
target.mx_internal::_height = _local3;
};
};
super.onTweenEnd(_arg1);
if (mx_internal::hideOnEffectEnd){
EffectManager.suspendEventHandling();
target.scaleX = origScaleX;
target.scaleY = origScaleY;
target.move(origX, origY);
EffectManager.resumeEventHandling();
};
}
override public function onTweenUpdate(_arg1:Object):void{
EffectManager.suspendEventHandling();
if (Math.abs((newX - target.x)) > 0.1){
origX = (origX + (Number(target.x.toFixed(1)) - newX));
};
if (Math.abs((newY - target.y)) > 0.1){
origY = (origY + (Number(target.y.toFixed(1)) - newY));
};
target.scaleX = _arg1[0];
target.scaleY = _arg1[1];
var _local2:Number = (_arg1[0] / origScaleX);
var _local3:Number = (_arg1[1] / origScaleY);
var _local4:Number = (scaledOriginX * _local2);
var _local5:Number = (scaledOriginY * _local3);
newX = ((scaledOriginX - _local4) + origX);
newY = ((scaledOriginY - _local5) + origY);
newX = Number(newX.toFixed(1));
newY = Number(newY.toFixed(1));
target.move(newX, newY);
tween.mx_internal::needToLayout = true;
EffectManager.resumeEventHandling();
}
}
}//package mx.effects.effectClasses
Section 633
//Effect (mx.effects.Effect)
package mx.effects {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import mx.managers.*;
import mx.effects.effectClasses.*;
import flash.utils.*;
public class Effect extends EventDispatcher implements IEffect {
private var _perElementOffset:Number;// = 0
private var _hideFocusRing:Boolean;// = false
private var _customFilter:EffectTargetFilter;
public var repeatCount:int;// = 1
public var suspendBackgroundProcessing:Boolean;// = false
public var startDelay:int;// = 0
private var _relevantProperties:Array;
private var _callValidateNow:Boolean;// = false
mx_internal var applyActualDimensions:Boolean;// = true
private var _filter:String;
private var _triggerEvent:Event;
private var _effectTargetHost:IEffectTargetHost;
mx_internal var durationExplicitlySet:Boolean;// = false
public var repeatDelay:int;// = 0
private var _targets:Array;
mx_internal var propertyChangesArray:Array;
mx_internal var filterObject:EffectTargetFilter;
protected var endValuesCaptured:Boolean;// = false
public var instanceClass:Class;
private var _duration:Number;// = 500
private var isPaused:Boolean;// = false
private var _relevantStyles:Array;
private var _instances:Array;
mx_internal static const VERSION:String = "3.0.0.0";
public function Effect(_arg1:Object=null){
_instances = [];
instanceClass = IEffectInstance;
_relevantStyles = [];
_targets = [];
super();
this.target = _arg1;
}
public function get targets():Array{
return (_targets);
}
public function set targets(_arg1:Array):void{
var _local2:int = _arg1.length;
var _local3:int = (_local2 - 1);
while (_local3 > 0) {
if (_arg1[_local3] == null){
_arg1.splice(_local3, 1);
};
_local3--;
};
_targets = _arg1;
}
public function set hideFocusRing(_arg1:Boolean):void{
_hideFocusRing = _arg1;
}
public function get hideFocusRing():Boolean{
return (_hideFocusRing);
}
public function stop():void{
var _local3:IEffectInstance;
var _local1:int = _instances.length;
var _local2:int = _local1;
while (_local2 >= 0) {
_local3 = IEffectInstance(_instances[_local2]);
if (_local3){
_local3.stop();
};
_local2--;
};
}
public function captureStartValues():void{
var _local1:int;
var _local2:int;
if (targets.length > 0){
propertyChangesArray = [];
_callValidateNow = true;
_local1 = targets.length;
_local2 = 0;
while (_local2 < _local1) {
propertyChangesArray.push(new PropertyChanges(targets[_local2]));
_local2++;
};
propertyChangesArray = captureValues(propertyChangesArray, true);
};
endValuesCaptured = false;
}
mx_internal function captureValues(_arg1:Array, _arg2:Boolean):Array{
var _local4:Object;
var _local5:Object;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local3:Array = (filterObject) ? mergeArrays(relevantProperties, filterObject.filterProperties) : relevantProperties;
if (((_local3) && ((_local3.length > 0)))){
_local6 = _arg1.length;
_local7 = 0;
while (_local7 < _local6) {
_local5 = _arg1[_local7].target;
_local4 = (_arg2) ? _arg1[_local7].start : _arg1[_local7].end;
_local8 = _local3.length;
_local9 = 0;
while (_local9 < _local8) {
_local4[_local3[_local9]] = getValueFromTarget(_local5, _local3[_local9]);
_local9++;
};
_local7++;
};
};
var _local10:Array = (filterObject) ? mergeArrays(relevantStyles, filterObject.filterStyles) : relevantStyles;
if (((_local10) && ((_local10.length > 0)))){
_local6 = _arg1.length;
_local7 = 0;
while (_local7 < _local6) {
_local5 = _arg1[_local7].target;
_local4 = (_arg2) ? _arg1[_local7].start : _arg1[_local7].end;
_local8 = _local10.length;
_local9 = 0;
while (_local9 < _local8) {
_local4[_local10[_local9]] = _local5.getStyle(_local10[_local9]);
_local9++;
};
_local7++;
};
};
return (_arg1);
}
protected function getValueFromTarget(_arg1:Object, _arg2:String){
if ((_arg2 in _arg1)){
return (_arg1[_arg2]);
};
return (undefined);
}
public function set target(_arg1:Object):void{
_targets.splice(0);
if (_arg1){
_targets[0] = _arg1;
};
}
public function get className():String{
var _local1:String = getQualifiedClassName(this);
var _local2:int = _local1.indexOf("::");
if (_local2 != -1){
_local1 = _local1.substr((_local2 + 2));
};
return (_local1);
}
public function set perElementOffset(_arg1:Number):void{
_perElementOffset = _arg1;
}
public function resume():void{
var _local1:int;
var _local2:int;
if (((isPlaying) && (isPaused))){
isPaused = false;
_local1 = _instances.length;
_local2 = 0;
while (_local2 < _local1) {
IEffectInstance(_instances[_local2]).resume();
_local2++;
};
};
}
public function set duration(_arg1:Number):void{
durationExplicitlySet = true;
_duration = _arg1;
}
public function play(_arg1:Array=null, _arg2:Boolean=false):Array{
var _local6:IEffectInstance;
if ((((_arg1 == null)) && (!((propertyChangesArray == null))))){
if (_callValidateNow){
LayoutManager.getInstance().validateNow();
};
if (!endValuesCaptured){
propertyChangesArray = captureValues(propertyChangesArray, false);
};
propertyChangesArray = stripUnchangedValues(propertyChangesArray);
applyStartValues(propertyChangesArray, this.targets);
};
var _local3:Array = createInstances(_arg1);
var _local4:int = _local3.length;
var _local5:int;
while (_local5 < _local4) {
_local6 = IEffectInstance(_local3[_local5]);
Object(_local6).playReversed = _arg2;
_local6.startEffect();
_local5++;
};
return (_local3);
}
public function captureEndValues():void{
propertyChangesArray = captureValues(propertyChangesArray, false);
endValuesCaptured = true;
}
protected function filterInstance(_arg1:Array, _arg2:Object):Boolean{
if (filterObject){
return (filterObject.filterInstance(_arg1, effectTargetHost, _arg2));
};
return (true);
}
public function get customFilter():EffectTargetFilter{
return (_customFilter);
}
public function get effectTargetHost():IEffectTargetHost{
return (_effectTargetHost);
}
public function set relevantProperties(_arg1:Array):void{
_relevantProperties = _arg1;
}
public function captureMoreStartValues(_arg1:Array):void{
var _local2:Array;
var _local3:int;
if (_arg1.length > 0){
_local2 = [];
_local3 = 0;
while (_local3 < _arg1.length) {
_local2.push(new PropertyChanges(_arg1[_local3]));
_local3++;
};
_local2 = captureValues(_local2, true);
propertyChangesArray = propertyChangesArray.concat(_local2);
};
}
public function deleteInstance(_arg1:IEffectInstance):void{
EventDispatcher(_arg1).removeEventListener(EffectEvent.EFFECT_START, effectStartHandler);
EventDispatcher(_arg1).removeEventListener(EffectEvent.EFFECT_END, effectEndHandler);
var _local2:int = _instances.length;
var _local3:int;
while (_local3 < _local2) {
if (_instances[_local3] === _arg1){
_instances.splice(_local3, 1);
};
_local3++;
};
}
public function get filter():String{
return (_filter);
}
public function set triggerEvent(_arg1:Event):void{
_triggerEvent = _arg1;
}
public function get target():Object{
if (_targets.length > 0){
return (_targets[0]);
};
return (null);
}
public function get duration():Number{
return (_duration);
}
public function set customFilter(_arg1:EffectTargetFilter):void{
_customFilter = _arg1;
filterObject = _arg1;
}
public function get perElementOffset():Number{
return (_perElementOffset);
}
public function set effectTargetHost(_arg1:IEffectTargetHost):void{
_effectTargetHost = _arg1;
}
public function get isPlaying():Boolean{
return (((_instances) && ((_instances.length > 0))));
}
protected function effectEndHandler(_arg1:EffectEvent):void{
var _local2:IEffectInstance = IEffectInstance(_arg1.effectInstance);
deleteInstance(_local2);
dispatchEvent(_arg1);
}
public function get relevantProperties():Array{
if (_relevantProperties){
return (_relevantProperties);
};
return (getAffectedProperties());
}
public function createInstance(_arg1:Object=null):IEffectInstance{
var _local6:int;
var _local7:int;
if (!_arg1){
_arg1 = this.target;
};
var _local2:IEffectInstance;
var _local3:PropertyChanges;
var _local4:Boolean;
var _local5:Boolean;
if (propertyChangesArray){
_local5 = true;
_local4 = filterInstance(propertyChangesArray, _arg1);
};
if (_local4){
_local2 = IEffectInstance(new instanceClass(_arg1));
initInstance(_local2);
if (_local5){
_local6 = propertyChangesArray.length;
_local7 = 0;
while (_local7 < _local6) {
if (propertyChangesArray[_local7].target == _arg1){
_local2.propertyChanges = propertyChangesArray[_local7];
};
_local7++;
};
};
EventDispatcher(_local2).addEventListener(EffectEvent.EFFECT_START, effectStartHandler);
EventDispatcher(_local2).addEventListener(EffectEvent.EFFECT_END, effectEndHandler);
_instances.push(_local2);
if (triggerEvent){
_local2.initEffect(triggerEvent);
};
};
return (_local2);
}
protected function effectStartHandler(_arg1:EffectEvent):void{
dispatchEvent(_arg1);
}
public function getAffectedProperties():Array{
return ([]);
}
public function set relevantStyles(_arg1:Array):void{
_relevantStyles = _arg1;
}
public function get triggerEvent():Event{
return (_triggerEvent);
}
protected function applyValueToTarget(_arg1:Object, _arg2:String, _arg3, _arg4:Object):void{
var target = _arg1;
var property = _arg2;
var value = _arg3;
var props = _arg4;
if ((property in target)){
try {
if (((((applyActualDimensions) && ((target is IFlexDisplayObject)))) && ((property == "height")))){
target.setActualSize(target.width, value);
} else {
if (((((applyActualDimensions) && ((target is IFlexDisplayObject)))) && ((property == "width")))){
target.setActualSize(value, target.height);
} else {
target[property] = value;
};
};
} catch(e:Error) {
};
};
}
protected function initInstance(_arg1:IEffectInstance):void{
_arg1.duration = duration;
Object(_arg1).durationExplicitlySet = durationExplicitlySet;
_arg1.effect = this;
_arg1.effectTargetHost = effectTargetHost;
_arg1.hideFocusRing = hideFocusRing;
_arg1.repeatCount = repeatCount;
_arg1.repeatDelay = repeatDelay;
_arg1.startDelay = startDelay;
_arg1.suspendBackgroundProcessing = suspendBackgroundProcessing;
}
mx_internal function applyStartValues(_arg1:Array, _arg2:Array):void{
var _local6:int;
var _local7:int;
var _local8:Object;
var _local9:Boolean;
var _local3:Array = relevantProperties;
var _local4:int = _arg1.length;
var _local5:int;
while (_local5 < _local4) {
_local8 = _arg1[_local5].target;
_local9 = false;
_local6 = _arg2.length;
_local7 = 0;
while (_local7 < _local6) {
if (_arg2[_local7] == _local8){
_local9 = filterInstance(_arg1, _local8);
break;
};
_local7++;
};
if (_local9){
_local6 = _local3.length;
_local7 = 0;
while (_local7 < _local6) {
if ((((_local3[_local7] in _arg1[_local5].start)) && ((_local3[_local7] in _local8)))){
applyValueToTarget(_local8, _local3[_local7], _arg1[_local5].start[_local3[_local7]], _arg1[_local5].start);
};
_local7++;
};
_local6 = relevantStyles.length;
_local7 = 0;
while (_local7 < _local6) {
if ((relevantStyles[_local7] in _arg1[_local5].start)){
_local8.setStyle(relevantStyles[_local7], _arg1[_local5].start[relevantStyles[_local7]]);
};
_local7++;
};
};
_local5++;
};
}
public function end(_arg1:IEffectInstance=null):void{
var _local2:int;
var _local3:int;
var _local4:IEffectInstance;
if (_arg1){
_arg1.end();
} else {
_local2 = _instances.length;
_local3 = _local2;
while (_local3 >= 0) {
_local4 = IEffectInstance(_instances[_local3]);
if (_local4){
_local4.end();
};
_local3--;
};
};
}
public function get relevantStyles():Array{
return (_relevantStyles);
}
public function createInstances(_arg1:Array=null):Array{
var _local6:IEffectInstance;
if (!_arg1){
_arg1 = this.targets;
};
var _local2:Array = [];
var _local3:int = _arg1.length;
var _local4:Number = 0;
var _local5:int;
while (_local5 < _local3) {
_local6 = createInstance(_arg1[_local5]);
if (_local6){
_local6.startDelay = (_local6.startDelay + _local4);
_local4 = (_local4 + perElementOffset);
_local2.push(_local6);
};
_local5++;
};
triggerEvent = null;
return (_local2);
}
public function pause():void{
var _local1:int;
var _local2:int;
if (((isPlaying) && (!(isPaused)))){
isPaused = true;
_local1 = _instances.length;
_local2 = 0;
while (_local2 < _local1) {
IEffectInstance(_instances[_local2]).pause();
_local2++;
};
};
}
public function set filter(_arg1:String):void{
if (!customFilter){
_filter = _arg1;
switch (_arg1){
case "add":
case "remove":
filterObject = new AddRemoveEffectTargetFilter();
AddRemoveEffectTargetFilter(filterObject).add = (_arg1 == "add");
break;
case "hide":
case "show":
filterObject = new HideShowEffectTargetFilter();
HideShowEffectTargetFilter(filterObject).show = (_arg1 == "show");
break;
case "move":
filterObject = new EffectTargetFilter();
filterObject.filterProperties = ["x", "y"];
break;
case "resize":
filterObject = new EffectTargetFilter();
filterObject.filterProperties = ["width", "height"];
break;
case "addItem":
filterObject = new EffectTargetFilter();
filterObject.requiredSemantics = {added:true};
break;
case "removeItem":
filterObject = new EffectTargetFilter();
filterObject.requiredSemantics = {removed:true};
break;
case "replacedItem":
filterObject = new EffectTargetFilter();
filterObject.requiredSemantics = {replaced:true};
break;
case "replacementItem":
filterObject = new EffectTargetFilter();
filterObject.requiredSemantics = {replacement:true};
break;
default:
filterObject = null;
break;
};
};
}
public function reverse():void{
var _local1:int;
var _local2:int;
if (isPlaying){
_local1 = _instances.length;
_local2 = 0;
while (_local2 < _local1) {
IEffectInstance(_instances[_local2]).reverse();
_local2++;
};
};
}
private static function mergeArrays(_arg1:Array, _arg2:Array):Array{
var _local3:int;
var _local4:Boolean;
var _local5:int;
if (_arg2){
_local3 = 0;
while (_local3 < _arg2.length) {
_local4 = true;
_local5 = 0;
while (_local5 < _arg1.length) {
if (_arg1[_local5] == _arg2[_local3]){
_local4 = false;
break;
};
_local5++;
};
if (_local4){
_arg1.push(_arg2[_local3]);
};
_local3++;
};
};
return (_arg1);
}
private static function stripUnchangedValues(_arg1:Array):Array{
var _local3:Object;
var _local2:int;
while (_local2 < _arg1.length) {
for (_local3 in _arg1[_local2].start) {
if ((((_arg1[_local2].start[_local3] == _arg1[_local2].end[_local3])) || ((((((((typeof(_arg1[_local2].start[_local3]) == "number")) && ((typeof(_arg1[_local2].end[_local3]) == "number")))) && (isNaN(_arg1[_local2].start[_local3])))) && (isNaN(_arg1[_local2].end[_local3])))))){
delete _arg1[_local2].start[_local3];
delete _arg1[_local2].end[_local3];
};
};
_local2++;
};
return (_arg1);
}
}
}//package mx.effects
Section 634
//EffectInstance (mx.effects.EffectInstance)
package mx.effects {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import mx.effects.effectClasses.*;
import flash.utils.*;
public class EffectInstance extends EventDispatcher implements IEffectInstance {
private var _hideFocusRing:Boolean;
private var delayStartTime:Number;// = 0
mx_internal var stopRepeat:Boolean;// = false
private var playCount:int;// = 0
private var _repeatCount:int;// = 0
private var _suspendBackgroundProcessing:Boolean;// = false
mx_internal var delayTimer:Timer;
private var _triggerEvent:Event;
private var _effectTargetHost:IEffectTargetHost;
mx_internal var parentCompositeEffectInstance:EffectInstance;
mx_internal var durationExplicitlySet:Boolean;// = false
private var _effect:IEffect;
private var _target:Object;
mx_internal var hideOnEffectEnd:Boolean;// = false
private var _startDelay:int;// = 0
private var delayElapsedTime:Number;// = 0
private var _repeatDelay:int;// = 0
private var _propertyChanges:PropertyChanges;
private var _duration:Number;// = 500
private var _playReversed:Boolean;
mx_internal static const VERSION:String = "3.0.0.0";
public function EffectInstance(_arg1:Object){
this.target = _arg1;
}
public function get playheadTime():Number{
return ((((Math.max((playCount - 1), 0) * duration) + (Math.max((playCount - 2), 0) * repeatDelay)) + (playReversed) ? 0 : startDelay));
}
public function get hideFocusRing():Boolean{
return (_hideFocusRing);
}
public function stop():void{
if (delayTimer){
delayTimer.reset();
};
stopRepeat = true;
finishEffect();
}
public function finishEffect():void{
playCount = 0;
dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END, false, false, this));
if (target){
target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END, false, false, this));
};
if ((target is UIComponent)){
UIComponent(target).effectFinished(this);
};
EffectManager.effectFinished(this);
}
public function set hideFocusRing(_arg1:Boolean):void{
_hideFocusRing = _arg1;
}
public function finishRepeat():void{
if (((((!(stopRepeat)) && (!((playCount == 0))))) && ((((playCount < repeatCount)) || ((repeatCount == 0)))))){
if (repeatDelay > 0){
delayTimer = new Timer(repeatDelay, 1);
delayStartTime = getTimer();
delayTimer.addEventListener(TimerEvent.TIMER, delayTimerHandler);
delayTimer.start();
} else {
play();
};
} else {
finishEffect();
};
}
mx_internal function get playReversed():Boolean{
return (_playReversed);
}
public function set effect(_arg1:IEffect):void{
_effect = _arg1;
}
public function get className():String{
var _local1:String = getQualifiedClassName(this);
var _local2:int = _local1.indexOf("::");
if (_local2 != -1){
_local1 = _local1.substr((_local2 + 2));
};
return (_local1);
}
public function set duration(_arg1:Number):void{
durationExplicitlySet = true;
_duration = _arg1;
}
mx_internal function set playReversed(_arg1:Boolean):void{
_playReversed = _arg1;
}
public function resume():void{
if (((((delayTimer) && (!(delayTimer.running)))) && (!(isNaN(delayElapsedTime))))){
delayTimer.delay = (playReversed) ? delayElapsedTime : (delayTimer.delay - delayElapsedTime);
delayTimer.start();
};
}
public function get propertyChanges():PropertyChanges{
return (_propertyChanges);
}
public function set target(_arg1:Object):void{
_target = _arg1;
}
public function get repeatCount():int{
return (_repeatCount);
}
mx_internal function playWithNoDuration():void{
duration = 0;
repeatCount = 1;
repeatDelay = 0;
startDelay = 0;
startEffect();
}
public function get startDelay():int{
return (_startDelay);
}
mx_internal function get actualDuration():Number{
var _local1:Number = NaN;
if (repeatCount > 0){
_local1 = (((duration * repeatCount) + ((repeatDelay * repeatCount) - 1)) + startDelay);
};
return (_local1);
}
public function play():void{
playCount++;
dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this));
if (target){
target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this));
};
}
public function get suspendBackgroundProcessing():Boolean{
return (_suspendBackgroundProcessing);
}
public function get effectTargetHost():IEffectTargetHost{
return (_effectTargetHost);
}
public function set repeatDelay(_arg1:int):void{
_repeatDelay = _arg1;
}
public function set propertyChanges(_arg1:PropertyChanges):void{
_propertyChanges = _arg1;
}
mx_internal function eventHandler(_arg1:Event):void{
if ((((_arg1.type == FlexEvent.SHOW)) && ((hideOnEffectEnd == true)))){
hideOnEffectEnd = false;
_arg1.target.removeEventListener(FlexEvent.SHOW, eventHandler);
};
}
public function set repeatCount(_arg1:int):void{
_repeatCount = _arg1;
}
private function delayTimerHandler(_arg1:TimerEvent):void{
delayTimer.reset();
delayStartTime = NaN;
delayElapsedTime = NaN;
play();
}
public function set suspendBackgroundProcessing(_arg1:Boolean):void{
_suspendBackgroundProcessing = _arg1;
}
public function set triggerEvent(_arg1:Event):void{
_triggerEvent = _arg1;
}
public function set startDelay(_arg1:int):void{
_startDelay = _arg1;
}
public function get effect():IEffect{
return (_effect);
}
public function set effectTargetHost(_arg1:IEffectTargetHost):void{
_effectTargetHost = _arg1;
}
public function get target():Object{
return (_target);
}
public function startEffect():void{
EffectManager.effectStarted(this);
if ((target is UIComponent)){
UIComponent(target).effectStarted(this);
};
if ((((startDelay > 0)) && (!(playReversed)))){
delayTimer = new Timer(startDelay, 1);
delayStartTime = getTimer();
delayTimer.addEventListener(TimerEvent.TIMER, delayTimerHandler);
delayTimer.start();
} else {
play();
};
}
public function get repeatDelay():int{
return (_repeatDelay);
}
public function get duration():Number{
if (((!(durationExplicitlySet)) && (parentCompositeEffectInstance))){
return (parentCompositeEffectInstance.duration);
};
return (_duration);
}
public function initEffect(_arg1:Event):void{
triggerEvent = _arg1;
switch (_arg1.type){
case "resizeStart":
case "resizeEnd":
if (!durationExplicitlySet){
duration = 250;
};
break;
case FlexEvent.HIDE:
target.setVisible(true, true);
hideOnEffectEnd = true;
target.addEventListener(FlexEvent.SHOW, eventHandler);
break;
};
}
public function get triggerEvent():Event{
return (_triggerEvent);
}
public function end():void{
if (delayTimer){
delayTimer.reset();
};
stopRepeat = true;
finishEffect();
}
public function reverse():void{
if (repeatCount > 0){
playCount = ((repeatCount - playCount) + 1);
};
}
public function pause():void{
if (((((delayTimer) && (delayTimer.running))) && (!(isNaN(delayStartTime))))){
delayTimer.stop();
delayElapsedTime = (getTimer() - delayStartTime);
};
}
}
}//package mx.effects
Section 635
//EffectManager (mx.effects.EffectManager)
package mx.effects {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import mx.resources.*;
import flash.utils.*;
public class EffectManager extends EventDispatcher {
mx_internal static const VERSION:String = "3.0.0.0";
private static var _resourceManager:IResourceManager;
private static var effects:Dictionary = new Dictionary(true);
mx_internal static var effectsPlaying:Array = [];
private static var targetsInfo:Array = [];
private static var effectTriggersForEvent:Object = {};
mx_internal static var lastEffectCreated:Effect;
private static var eventHandlingSuspendCount:Number = 0;
private static var eventsForEffectTriggers:Object = {};
public static function suspendEventHandling():void{
eventHandlingSuspendCount++;
}
mx_internal static function registerEffectTrigger(_arg1:String, _arg2:String):void{
var _local3:Number;
if (_arg1 != ""){
if (_arg2 == ""){
_local3 = _arg1.length;
if ((((_local3 > 6)) && ((_arg1.substring((_local3 - 6)) == "Effect")))){
_arg2 = _arg1.substring(0, (_local3 - 6));
};
};
if (_arg2 != ""){
effectTriggersForEvent[_arg2] = _arg1;
eventsForEffectTriggers[_arg1] = _arg2;
};
};
}
private static function removedEffectHandler(_arg1:DisplayObject, _arg2:DisplayObjectContainer, _arg3:int, _arg4:Event):void{
suspendEventHandling();
_arg2.addChildAt(_arg1, _arg3);
resumeEventHandling();
createAndPlayEffect(_arg4, _arg1);
}
private static function createAndPlayEffect(_arg1:Event, _arg2:Object):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local9:String;
var _local10:String;
var _local11:Array;
var _local12:Array;
var _local13:Array;
var _local14:Array;
var _local15:EffectInstance;
var _local3:Effect = createEffectForType(_arg2, _arg1.type);
if (!_local3){
return;
};
if ((((_local3 is Zoom)) && ((_arg1.type == MoveEvent.MOVE)))){
_local9 = resourceManager.getString("effects", "incorrectTrigger");
throw (new Error(_local9));
};
if (_arg2.initialized == false){
_local10 = _arg1.type;
if ((((((((((_local10 == MoveEvent.MOVE)) || ((_local10 == ResizeEvent.RESIZE)))) || ((_local10 == FlexEvent.SHOW)))) || ((_local10 == FlexEvent.HIDE)))) || ((_local10 == Event.CHANGE)))){
_local3 = null;
return;
};
};
if ((_local3.target is IUIComponent)){
_local11 = IUIComponent(_local3.target).tweeningProperties;
if (((_local11) && ((_local11.length > 0)))){
_local12 = _local3.getAffectedProperties();
_local4 = _local11.length;
_local6 = _local12.length;
_local5 = 0;
while (_local5 < _local4) {
_local7 = 0;
while (_local7 < _local6) {
if (_local11[_local5] == _local12[_local7]){
_local3 = null;
return;
};
_local7++;
};
_local5++;
};
};
};
if ((((_local3.target is UIComponent)) && (UIComponent(_local3.target).isEffectStarted))){
_local13 = _local3.getAffectedProperties();
_local5 = 0;
while (_local5 < _local13.length) {
_local14 = _local3.target.getEffectsForProperty(_local13[_local5]);
if (_local14.length > 0){
if (_arg1.type == ResizeEvent.RESIZE){
return;
};
_local7 = 0;
while (_local7 < _local14.length) {
_local15 = _local14[_local7];
if ((((_arg1.type == FlexEvent.SHOW)) && (_local15.hideOnEffectEnd))){
_local15.target.removeEventListener(FlexEvent.SHOW, _local15.eventHandler);
_local15.hideOnEffectEnd = false;
};
_local15.end();
_local7++;
};
};
_local5++;
};
};
_local3.triggerEvent = _arg1;
_local3.addEventListener(EffectEvent.EFFECT_END, EffectManager.effectEndHandler);
lastEffectCreated = _local3;
var _local8:Array = _local3.play();
_local4 = _local8.length;
_local5 = 0;
while (_local5 < _local4) {
effectsPlaying.push(new EffectNode(_local3, _local8[_local5]));
_local5++;
};
if (_local3.suspendBackgroundProcessing){
UIComponent.suspendBackgroundProcessing();
};
}
public static function endEffectsForTarget(_arg1:IUIComponent):void{
var _local4:EffectInstance;
var _local2:int = effectsPlaying.length;
var _local3:int = (_local2 - 1);
while (_local3 >= 0) {
_local4 = effectsPlaying[_local3].instance;
if (_local4.target == _arg1){
_local4.end();
};
_local3--;
};
}
private static function cacheOrUncacheTargetAsBitmap(_arg1:IUIComponent, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:int;
var _local5:int;
var _local6:Object;
_local4 = targetsInfo.length;
_local5 = 0;
while (_local5 < _local4) {
if (targetsInfo[_local5].target == _arg1){
_local6 = targetsInfo[_local5];
break;
};
_local5++;
};
if (!_local6){
_local6 = {target:_arg1, bitmapEffectsCount:0, vectorEffectsCount:0};
targetsInfo.push(_local6);
};
if (_arg2){
if (_arg3){
_local6.bitmapEffectsCount++;
if ((((_local6.vectorEffectsCount == 0)) && ((_arg1 is IDeferredInstantiationUIComponent)))){
IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = true;
};
} else {
if ((((((_local6.vectorEffectsCount++ == 0)) && ((_arg1 is IDeferredInstantiationUIComponent)))) && ((IDeferredInstantiationUIComponent(_arg1).cachePolicy == UIComponentCachePolicy.AUTO)))){
_arg1.cacheAsBitmap = false;
};
};
} else {
if (_arg3){
if (_local6.bitmapEffectsCount != 0){
_local6.bitmapEffectsCount--;
};
if ((_arg1 is IDeferredInstantiationUIComponent)){
IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = false;
};
} else {
if (_local6.vectorEffectsCount != 0){
if ((((--_local6.vectorEffectsCount == 0)) && (!((_local6.bitmapEffectsCount == 0))))){
_local4 = _local6.bitmapEffectsCount;
_local5 = 0;
while (_local5 < _local4) {
if ((_arg1 is IDeferredInstantiationUIComponent)){
IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = true;
};
_local5++;
};
};
};
};
if ((((_local6.bitmapEffectsCount == 0)) && ((_local6.vectorEffectsCount == 0)))){
_local4 = targetsInfo.length;
_local5 = 0;
while (_local5 < _local4) {
if (targetsInfo[_local5].target == _arg1){
targetsInfo.splice(_local5, 1);
break;
};
_local5++;
};
};
};
}
mx_internal static function eventHandler(_arg1:Event):void{
var _local2:FocusEvent;
var _local3:DisplayObject;
var _local4:int;
var _local5:DisplayObjectContainer;
var _local6:int;
if (!(_arg1.currentTarget is IFlexDisplayObject)){
return;
};
if (eventHandlingSuspendCount > 0){
return;
};
if ((((_arg1 is FocusEvent)) && ((((_arg1.type == FocusEvent.FOCUS_OUT)) || ((_arg1.type == FocusEvent.FOCUS_IN)))))){
_local2 = FocusEvent(_arg1);
if (((_local2.relatedObject) && (((_local2.currentTarget.contains(_local2.relatedObject)) || ((_local2.currentTarget == _local2.relatedObject)))))){
return;
};
};
if ((((((_arg1.type == Event.ADDED)) || ((_arg1.type == Event.REMOVED)))) && (!((_arg1.target == _arg1.currentTarget))))){
return;
};
if (_arg1.type == Event.REMOVED){
if ((_arg1.target is UIComponent)){
if (UIComponent(_arg1.target).initialized == false){
return;
};
if (UIComponent(_arg1.target).isEffectStarted){
_local4 = 0;
while (_local4 < UIComponent(_arg1.target)._effectsStarted.length) {
if (UIComponent(_arg1.target)._effectsStarted[_local4].triggerEvent.type == Event.REMOVED){
return;
};
_local4++;
};
};
};
_local3 = (_arg1.target as DisplayObject);
if (_local3 != null){
_local5 = (_local3.parent as DisplayObjectContainer);
if (_local5 != null){
_local6 = _local5.getChildIndex(_local3);
if (_local6 >= 0){
if ((_local3 is UIComponent)){
UIComponent(_local3).callLater(removedEffectHandler, [_local3, _local5, _local6, _arg1]);
};
};
};
};
} else {
createAndPlayEffect(_arg1, _arg1.currentTarget);
};
}
mx_internal static function endBitmapEffect(_arg1:IUIComponent):void{
cacheOrUncacheTargetAsBitmap(_arg1, false, true);
}
private static function animateSameProperty(_arg1:Effect, _arg2:Effect, _arg3:EffectInstance):Boolean{
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
if (_arg1.target == _arg3.target){
_local4 = _arg1.getAffectedProperties();
_local5 = _arg2.getAffectedProperties();
_local6 = _local4.length;
_local7 = _local5.length;
_local8 = 0;
while (_local8 < _local6) {
_local9 = 0;
while (_local9 < _local7) {
if (_local4[_local8] == _local5[_local9]){
return (true);
};
_local9++;
};
_local8++;
};
};
return (false);
}
mx_internal static function effectFinished(_arg1:EffectInstance):void{
delete effects[_arg1];
}
mx_internal static function effectsInEffect():Boolean{
var _local1:*;
for (_local1 in effects) {
return (true);
};
return (false);
}
mx_internal static function effectEndHandler(_arg1:EffectEvent):void{
var _local5:DisplayObject;
var _local6:DisplayObjectContainer;
var _local2:IEffectInstance = _arg1.effectInstance;
var _local3:int = effectsPlaying.length;
var _local4:int = (_local3 - 1);
while (_local4 >= 0) {
if (effectsPlaying[_local4].instance == _local2){
effectsPlaying.splice(_local4, 1);
break;
};
_local4--;
};
if (Object(_local2).hideOnEffectEnd == true){
_local2.target.removeEventListener(FlexEvent.SHOW, Object(_local2).eventHandler);
_local2.target.setVisible(false, true);
};
if (((_local2.triggerEvent) && ((_local2.triggerEvent.type == Event.REMOVED)))){
_local5 = (_local2.target as DisplayObject);
if (_local5 != null){
_local6 = (_local5.parent as DisplayObjectContainer);
if (_local6 != null){
suspendEventHandling();
_local6.removeChild(_local5);
resumeEventHandling();
};
};
};
if (_local2.suspendBackgroundProcessing){
UIComponent.resumeBackgroundProcessing();
};
}
mx_internal static function startBitmapEffect(_arg1:IUIComponent):void{
cacheOrUncacheTargetAsBitmap(_arg1, true, true);
}
mx_internal static function setStyle(_arg1:String, _arg2):void{
var _local3:String = eventsForEffectTriggers[_arg1];
if (((!((_local3 == null))) && (!((_local3 == ""))))){
_arg2.addEventListener(_local3, EffectManager.eventHandler, false, EventPriority.EFFECT);
};
}
mx_internal static function getEventForEffectTrigger(_arg1:String):String{
var effectTrigger = _arg1;
if (eventsForEffectTriggers){
try {
return (eventsForEffectTriggers[effectTrigger]);
} catch(e:Error) {
return ("");
};
};
return ("");
}
mx_internal static function createEffectForType(_arg1:Object, _arg2:String):Effect{
var cls:Class;
var effectObj:Effect;
var doc:Object;
var target = _arg1;
var type = _arg2;
var trigger:String = effectTriggersForEvent[type];
if (trigger == ""){
trigger = (type + "Effect");
};
var value:Object = target.getStyle(trigger);
if (!value){
return (null);
};
if ((value is Class)){
cls = Class(value);
return (new cls(target));
};
try {
if ((value is String)){
doc = target.parentDocument;
if (!doc){
doc = ApplicationGlobals.application;
};
effectObj = doc[value];
} else {
if ((value is Effect)){
effectObj = Effect(value);
};
};
if (effectObj){
effectObj.target = target;
return (effectObj);
};
} catch(e:Error) {
};
var effectClass:Class = Class(target.systemManager.getDefinitionByName(("mx.effects." + value)));
if (effectClass){
return (new effectClass(target));
};
return (null);
}
mx_internal static function effectStarted(_arg1:EffectInstance):void{
effects[_arg1] = 1;
}
public static function resumeEventHandling():void{
eventHandlingSuspendCount--;
}
mx_internal static function startVectorEffect(_arg1:IUIComponent):void{
cacheOrUncacheTargetAsBitmap(_arg1, true, false);
}
mx_internal static function endVectorEffect(_arg1:IUIComponent):void{
cacheOrUncacheTargetAsBitmap(_arg1, false, false);
}
private static function get resourceManager():IResourceManager{
if (!_resourceManager){
_resourceManager = ResourceManager.getInstance();
};
return (_resourceManager);
}
}
}//package mx.effects
class EffectNode {
public var factory:Effect;
public var instance:EffectInstance;
private function EffectNode(_arg1:Effect, _arg2:EffectInstance){
this.factory = _arg1;
this.instance = _arg2;
}
}
Section 636
//EffectTargetFilter (mx.effects.EffectTargetFilter)
package mx.effects {
import mx.effects.effectClasses.*;
public class EffectTargetFilter {
public var filterFunction:Function;
public var filterStyles:Array;
public var filterProperties:Array;
public var requiredSemantics:Object;// = null
mx_internal static const VERSION:String = "3.0.0.0";
public function EffectTargetFilter(){
filterFunction = defaultFilterFunctionEx;
filterProperties = [];
filterStyles = [];
super();
}
protected function defaultFilterFunctionEx(_arg1:Array, _arg2:IEffectTargetHost, _arg3:Object):Boolean{
var _local4:String;
if (requiredSemantics){
for (_local4 in requiredSemantics) {
if (!_arg2){
return (false);
};
if (_arg2.getRendererSemanticValue(_arg3, _local4) != requiredSemantics[_local4]){
return (false);
};
};
return (true);
};
return (defaultFilterFunction(_arg1, _arg3));
}
protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{
var _local5:PropertyChanges;
var _local6:Array;
var _local7:int;
var _local8:int;
var _local3:int = _arg1.length;
var _local4:int;
while (_local4 < _local3) {
_local5 = _arg1[_local4];
if (_local5.target == _arg2){
_local6 = filterProperties.concat(filterStyles);
_local7 = _local6.length;
_local8 = 0;
while (_local8 < _local7) {
if (((!((_local5.start[_local6[_local8]] === undefined))) && (!((_local5.end[_local6[_local8]] == _local5.start[_local6[_local8]]))))){
return (true);
};
_local8++;
};
};
_local4++;
};
return (false);
}
public function filterInstance(_arg1:Array, _arg2:IEffectTargetHost, _arg3:Object):Boolean{
if (filterFunction.length == 2){
return (filterFunction(_arg1, _arg3));
};
return (filterFunction(_arg1, _arg2, _arg3));
}
}
}//package mx.effects
Section 637
//IAbstractEffect (mx.effects.IAbstractEffect)
package mx.effects {
import flash.events.*;
public interface IAbstractEffect extends IEventDispatcher {
}
}//package mx.effects
Section 638
//IEffect (mx.effects.IEffect)
package mx.effects {
import flash.events.*;
public interface IEffect extends IAbstractEffect {
function captureMoreStartValues(_arg1:Array):void;
function get triggerEvent():Event;
function set targets(_arg1:Array):void;
function captureStartValues():void;
function get hideFocusRing():Boolean;
function get customFilter():EffectTargetFilter;
function get effectTargetHost():IEffectTargetHost;
function set triggerEvent(_arg1:Event):void;
function set hideFocusRing(_arg1:Boolean):void;
function captureEndValues():void;
function get target():Object;
function set customFilter(_arg1:EffectTargetFilter):void;
function get duration():Number;
function get perElementOffset():Number;
function get targets():Array;
function set effectTargetHost(_arg1:IEffectTargetHost):void;
function get relevantStyles():Array;
function set relevantProperties(_arg1:Array):void;
function set target(_arg1:Object):void;
function get className():String;
function get isPlaying():Boolean;
function deleteInstance(_arg1:IEffectInstance):void;
function set duration(_arg1:Number):void;
function createInstances(_arg1:Array=null):Array;
function end(_arg1:IEffectInstance=null):void;
function set perElementOffset(_arg1:Number):void;
function resume():void;
function stop():void;
function set filter(_arg1:String):void;
function createInstance(_arg1:Object=null):IEffectInstance;
function play(_arg1:Array=null, _arg2:Boolean=false):Array;
function pause():void;
function get relevantProperties():Array;
function get filter():String;
function reverse():void;
function getAffectedProperties():Array;
function set relevantStyles(_arg1:Array):void;
}
}//package mx.effects
Section 639
//IEffectInstance (mx.effects.IEffectInstance)
package mx.effects {
import flash.events.*;
import mx.effects.effectClasses.*;
public interface IEffectInstance {
function get playheadTime():Number;
function get triggerEvent():Event;
function set triggerEvent(_arg1:Event):void;
function get hideFocusRing():Boolean;
function initEffect(_arg1:Event):void;
function set startDelay(_arg1:int):void;
function get effectTargetHost():IEffectTargetHost;
function finishEffect():void;
function set hideFocusRing(_arg1:Boolean):void;
function finishRepeat():void;
function set repeatDelay(_arg1:int):void;
function get effect():IEffect;
function startEffect():void;
function get duration():Number;
function get target():Object;
function get startDelay():int;
function stop():void;
function set effectTargetHost(_arg1:IEffectTargetHost):void;
function set propertyChanges(_arg1:PropertyChanges):void;
function set effect(_arg1:IEffect):void;
function get className():String;
function set duration(_arg1:Number):void;
function set target(_arg1:Object):void;
function end():void;
function resume():void;
function get propertyChanges():PropertyChanges;
function set repeatCount(_arg1:int):void;
function reverse():void;
function get repeatCount():int;
function pause():void;
function get repeatDelay():int;
function set suspendBackgroundProcessing(_arg1:Boolean):void;
function play():void;
function get suspendBackgroundProcessing():Boolean;
}
}//package mx.effects
Section 640
//IEffectTargetHost (mx.effects.IEffectTargetHost)
package mx.effects {
public interface IEffectTargetHost {
function unconstrainRenderer(_arg1:Object):void;
function removeDataEffectItem(_arg1:Object):void;
function getRendererSemanticValue(_arg1:Object, _arg2:String):Object;
function addDataEffectItem(_arg1:Object):void;
}
}//package mx.effects
Section 641
//Tween (mx.effects.Tween)
package mx.effects {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var started:Boolean;// = false
private var previousUpdateTime:Number;
public var duration:Number;// = 3000
private var id:int;
private var arrayMode:Boolean;
private var _isPlaying:Boolean;// = true
private var startValue:Object;
public var listener:Object;
private var userEquation:Function;
mx_internal var needToLayout:Boolean;// = false
private var updateFunction:Function;
private var _doSeek:Boolean;// = false
mx_internal var startTime:Number;
private var endFunction:Function;
private var endValue:Object;
private var _doReverse:Boolean;// = false
private var _playheadTime:Number;// = 0
private var _invertValues:Boolean;// = false
private var maxDelay:Number;// = 87.5
mx_internal static const VERSION:String = "3.0.0.0";
private static var timer:Timer = null;
private static var interval:Number = 10;
mx_internal static var activeTweens:Array = [];
mx_internal static var intervalTime:Number = NAN;
public function Tween(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Number=-1, _arg5:Number=-1, _arg6:Function=null, _arg7:Function=null){
userEquation = defaultEasingFunction;
super();
if (!_arg1){
return;
};
if ((_arg2 is Array)){
arrayMode = true;
};
this.listener = _arg1;
this.startValue = _arg2;
this.endValue = _arg3;
if (((!(isNaN(_arg4))) && (!((_arg4 == -1))))){
this.duration = _arg4;
};
if (((!(isNaN(_arg5))) && (!((_arg5 == -1))))){
maxDelay = (1000 / _arg5);
};
this.updateFunction = _arg6;
this.endFunction = _arg7;
if (_arg4 == 0){
id = -1;
endTween();
} else {
Tween.addTween(this);
};
}
mx_internal function get playheadTime():Number{
return (_playheadTime);
}
public function stop():void{
if (id >= 0){
Tween.removeTweenAt(id);
};
}
mx_internal function get playReversed():Boolean{
return (_invertValues);
}
mx_internal function set playReversed(_arg1:Boolean):void{
_invertValues = _arg1;
}
public function resume():void{
_isPlaying = true;
startTime = (intervalTime - _playheadTime);
if (_doReverse){
reverse();
_doReverse = false;
};
}
public function setTweenHandlers(_arg1:Function, _arg2:Function):void{
this.updateFunction = _arg1;
this.endFunction = _arg2;
}
private function defaultEasingFunction(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 / 2) * (Math.sin((Math.PI * ((_arg1 / _arg4) - 0.5))) + 1)) + _arg2));
}
public function set easingFunction(_arg1:Function):void{
userEquation = _arg1;
}
public function endTween():void{
var _local1:TweenEvent = new TweenEvent(TweenEvent.TWEEN_END);
var _local2:Object = getCurrentValue(duration);
_local1.value = _local2;
dispatchEvent(_local1);
if (endFunction != null){
endFunction(_local2);
} else {
listener.onTweenEnd(_local2);
};
if (id >= 0){
Tween.removeTweenAt(id);
};
}
public function reverse():void{
if (_isPlaying){
_doReverse = false;
seek((duration - _playheadTime));
_invertValues = !(_invertValues);
} else {
_doReverse = !(_doReverse);
};
}
mx_internal function getCurrentValue(_arg1:Number):Object{
var _local2:Array;
var _local3:int;
var _local4:int;
if (duration == 0){
return (endValue);
};
if (_invertValues){
_arg1 = (duration - _arg1);
};
if (arrayMode){
_local2 = [];
_local3 = startValue.length;
_local4 = 0;
while (_local4 < _local3) {
_local2[_local4] = userEquation(_arg1, startValue[_local4], (endValue[_local4] - startValue[_local4]), duration);
_local4++;
};
return (_local2);
//unresolved jump
};
return (userEquation(_arg1, startValue, (Number(endValue) - Number(startValue)), duration));
}
mx_internal function doInterval():Boolean{
var _local2:Number;
var _local3:Object;
var _local4:TweenEvent;
var _local5:TweenEvent;
var _local1:Boolean;
previousUpdateTime = intervalTime;
if (((_isPlaying) || (_doSeek))){
_local2 = (intervalTime - startTime);
_playheadTime = _local2;
_local3 = getCurrentValue(_local2);
if ((((_local2 >= duration)) && (!(_doSeek)))){
endTween();
_local1 = true;
} else {
if (!started){
_local5 = new TweenEvent(TweenEvent.TWEEN_START);
dispatchEvent(_local5);
started = true;
};
_local4 = new TweenEvent(TweenEvent.TWEEN_UPDATE);
_local4.value = _local3;
dispatchEvent(_local4);
if (updateFunction != null){
updateFunction(_local3);
} else {
listener.onTweenUpdate(_local3);
};
};
_doSeek = false;
};
return (_local1);
}
public function pause():void{
_isPlaying = false;
}
public function seek(_arg1:Number):void{
var _local2:Number = intervalTime;
previousUpdateTime = _local2;
startTime = (_local2 - _arg1);
_doSeek = true;
}
mx_internal static function removeTween(_arg1:Tween):void{
removeTweenAt(_arg1.id);
}
private static function addTween(_arg1:Tween):void{
_arg1.id = activeTweens.length;
activeTweens.push(_arg1);
if (!timer){
timer = new Timer(interval);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
} else {
timer.start();
};
if (isNaN(intervalTime)){
intervalTime = getTimer();
};
_arg1.startTime = (_arg1.previousUpdateTime = intervalTime);
}
private static function timerHandler(_arg1:TimerEvent):void{
var _local6:Tween;
var _local2:Boolean;
var _local3:Number = intervalTime;
intervalTime = getTimer();
var _local4:int = activeTweens.length;
var _local5:int = _local4;
while (_local5 >= 0) {
_local6 = Tween(activeTweens[_local5]);
if (_local6){
_local6.needToLayout = false;
_local6.doInterval();
if (_local6.needToLayout){
_local2 = true;
};
};
_local5--;
};
if (_local2){
UIComponentGlobals.layoutManager.validateNow();
};
_arg1.updateAfterEvent();
}
private static function removeTweenAt(_arg1:int):void{
var _local4:Tween;
if ((((_arg1 >= activeTweens.length)) || ((_arg1 < 0)))){
return;
};
activeTweens.splice(_arg1, 1);
var _local2:int = activeTweens.length;
var _local3:int = _arg1;
while (_local3 < _local2) {
_local4 = Tween(activeTweens[_local3]);
_local4.id--;
_local3++;
};
if (_local2 == 0){
intervalTime = NaN;
timer.reset();
};
}
}
}//package mx.effects
Section 642
//TweenEffect (mx.effects.TweenEffect)
package mx.effects {
import mx.events.*;
import flash.events.*;
import mx.effects.effectClasses.*;
public class TweenEffect extends Effect {
public var easingFunction:Function;// = null
mx_internal static const VERSION:String = "3.0.0.0";
public function TweenEffect(_arg1:Object=null){
super(_arg1);
instanceClass = TweenEffectInstance;
}
protected function tweenEventHandler(_arg1:TweenEvent):void{
dispatchEvent(_arg1);
}
override protected function initInstance(_arg1:IEffectInstance):void{
super.initInstance(_arg1);
TweenEffectInstance(_arg1).easingFunction = easingFunction;
EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_START, tweenEventHandler);
EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_UPDATE, tweenEventHandler);
EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_END, tweenEventHandler);
}
}
}//package mx.effects
Section 643
//Zoom (mx.effects.Zoom)
package mx.effects {
import mx.effects.effectClasses.*;
public class Zoom extends TweenEffect {
public var zoomHeightFrom:Number;
public var zoomWidthTo:Number;
public var originX:Number;
public var zoomHeightTo:Number;
public var originY:Number;
public var captureRollEvents:Boolean;
public var zoomWidthFrom:Number;
mx_internal static const VERSION:String = "3.0.0.0";
private static var AFFECTED_PROPERTIES:Array = ["scaleX", "scaleY", "x", "y", "width", "height"];
public function Zoom(_arg1:Object=null){
super(_arg1);
instanceClass = ZoomInstance;
applyActualDimensions = false;
relevantProperties = ["scaleX", "scaleY", "width", "height", "visible"];
}
override protected function initInstance(_arg1:IEffectInstance):void{
var _local2:ZoomInstance;
super.initInstance(_arg1);
_local2 = ZoomInstance(_arg1);
_local2.zoomWidthFrom = zoomWidthFrom;
_local2.zoomWidthTo = zoomWidthTo;
_local2.zoomHeightFrom = zoomHeightFrom;
_local2.zoomHeightTo = zoomHeightTo;
_local2.originX = originX;
_local2.originY = originY;
_local2.captureRollEvents = captureRollEvents;
}
override public function getAffectedProperties():Array{
return (AFFECTED_PROPERTIES);
}
}
}//package mx.effects
Section 644
//ChildExistenceChangedEvent (mx.events.ChildExistenceChangedEvent)
package mx.events {
import flash.events.*;
import flash.display.*;
public class ChildExistenceChangedEvent extends Event {
public var relatedObject:DisplayObject;
public static const CHILD_REMOVE:String = "childRemove";
mx_internal static const VERSION:String = "3.0.0.0";
public static const OVERLAY_CREATED:String = "overlayCreated";
public static const CHILD_ADD:String = "childAdd";
public function ChildExistenceChangedEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:DisplayObject=null){
super(_arg1, _arg2, _arg3);
this.relatedObject = _arg4;
}
override public function clone():Event{
return (new ChildExistenceChangedEvent(type, bubbles, cancelable, relatedObject));
}
}
}//package mx.events
Section 645
//DragEvent (mx.events.DragEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
public class DragEvent extends MouseEvent {
public var draggedItem:Object;
public var action:String;
public var dragInitiator:IUIComponent;
public var dragSource:DragSource;
public static const DRAG_DROP:String = "dragDrop";
public static const DRAG_COMPLETE:String = "dragComplete";
public static const DRAG_EXIT:String = "dragExit";
public static const DRAG_ENTER:String = "dragEnter";
public static const DRAG_START:String = "dragStart";
mx_internal static const VERSION:String = "3.0.0.0";
public static const DRAG_OVER:String = "dragOver";
public function DragEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true, _arg4:IUIComponent=null, _arg5:DragSource=null, _arg6:String=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false){
super(_arg1, _arg2, _arg3);
this.dragInitiator = _arg4;
this.dragSource = _arg5;
this.action = _arg6;
this.ctrlKey = _arg7;
this.altKey = _arg8;
this.shiftKey = _arg9;
}
override public function clone():Event{
var _local1:DragEvent = new DragEvent(type, bubbles, cancelable, dragInitiator, dragSource, action, ctrlKey, altKey, shiftKey);
_local1.relatedObject = this.relatedObject;
_local1.localX = this.localX;
_local1.localY = this.localY;
return (_local1);
}
}
}//package mx.events
Section 646
//DynamicEvent (mx.events.DynamicEvent)
package mx.events {
import flash.events.*;
public dynamic class DynamicEvent extends Event {
mx_internal static const VERSION:String = "3.0.0.0";
public function DynamicEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
var _local2:String;
var _local1:DynamicEvent = new DynamicEvent(type, bubbles, cancelable);
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package mx.events
Section 647
//EffectEvent (mx.events.EffectEvent)
package mx.events {
import flash.events.*;
import mx.effects.*;
public class EffectEvent extends Event {
public var effectInstance:IEffectInstance;
public static const EFFECT_START:String = "effectStart";
mx_internal static const VERSION:String = "3.0.0.0";
public static const EFFECT_END:String = "effectEnd";
public function EffectEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:IEffectInstance=null){
super(_arg1, _arg2, _arg3);
this.effectInstance = _arg4;
}
override public function clone():Event{
return (new EffectEvent(type, bubbles, cancelable, effectInstance));
}
}
}//package mx.events
Section 648
//FlexEvent (mx.events.FlexEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
public class FlexEvent extends Event {
public static const ADD:String = "add";
public static const TRANSFORM_CHANGE:String = "transformChange";
public static const INIT_COMPLETE:String = "initComplete";
public static const REMOVE:String = "remove";
public static const BUTTON_DOWN:String = "buttonDown";
public static const EXIT_STATE:String = "exitState";
public static const CREATION_COMPLETE:String = "creationComplete";
public static const REPEAT:String = "repeat";
public static const LOADING:String = "loading";
public static const REPEAT_START:String = "repeatStart";
public static const INITIALIZE:String = "initialize";
public static const ENTER_STATE:String = "enterState";
public static const URL_CHANGED:String = "urlChanged";
public static const REPEAT_END:String = "repeatEnd";
mx_internal static const VERSION:String = "3.0.0.0";
public static const HIDE:String = "hide";
public static const ENTER:String = "enter";
public static const PRELOADER_DONE:String = "preloaderDone";
public static const CURSOR_UPDATE:String = "cursorUpdate";
public static const PREINITIALIZE:String = "preinitialize";
public static const INVALID:String = "invalid";
public static const IDLE:String = "idle";
public static const VALID:String = "valid";
public static const DATA_CHANGE:String = "dataChange";
public static const APPLICATION_COMPLETE:String = "applicationComplete";
public static const VALUE_COMMIT:String = "valueCommit";
public static const UPDATE_COMPLETE:String = "updateComplete";
public static const INIT_PROGRESS:String = "initProgress";
public static const SHOW:String = "show";
public function FlexEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new FlexEvent(type, bubbles, cancelable));
}
}
}//package mx.events
Section 649
//FlexMouseEvent (mx.events.FlexMouseEvent)
package mx.events {
import flash.events.*;
import flash.display.*;
public class FlexMouseEvent extends MouseEvent {
public static const MOUSE_DOWN_OUTSIDE:String = "mouseDownOutside";
public static const MOUSE_WHEEL_OUTSIDE:String = "mouseWheelOutside";
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=0, _arg5:Number=0, _arg6:InteractiveObject=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false, _arg10:Boolean=false, _arg11:int=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11);
}
override public function clone():Event{
return (new FlexMouseEvent(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta));
}
}
}//package mx.events
Section 650
//IndexChangedEvent (mx.events.IndexChangedEvent)
package mx.events {
import flash.events.*;
import flash.display.*;
public class IndexChangedEvent extends Event {
public var newIndex:Number;
public var triggerEvent:Event;
public var relatedObject:DisplayObject;
public var oldIndex:Number;
public static const HEADER_SHIFT:String = "headerShift";
public static const CHANGE:String = "change";
mx_internal static const VERSION:String = "3.0.0.0";
public static const CHILD_INDEX_CHANGE:String = "childIndexChange";
public function IndexChangedEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:DisplayObject=null, _arg5:Number=-1, _arg6:Number=-1, _arg7:Event=null){
super(_arg1, _arg2, _arg3);
this.relatedObject = _arg4;
this.oldIndex = _arg5;
this.newIndex = _arg6;
this.triggerEvent = _arg7;
}
override public function clone():Event{
return (new IndexChangedEvent(type, bubbles, cancelable, relatedObject, oldIndex, newIndex, triggerEvent));
}
}
}//package mx.events
Section 651
//ModuleEvent (mx.events.ModuleEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
import mx.modules.*;
public class ModuleEvent extends ProgressEvent {
public var errorText:String;
private var _module:IModuleInfo;
public static const READY:String = "ready";
public static const ERROR:String = "error";
public static const PROGRESS:String = "progress";
mx_internal static const VERSION:String = "3.0.0.0";
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 652
//MoveEvent (mx.events.MoveEvent)
package mx.events {
import flash.events.*;
public class MoveEvent extends Event {
public var oldX:Number;
public var oldY:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const MOVE:String = "move";
public function MoveEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){
super(_arg1, _arg2, _arg3);
this.oldX = _arg4;
this.oldY = _arg5;
}
override public function clone():Event{
return (new MoveEvent(type, bubbles, cancelable, oldX, oldY));
}
}
}//package mx.events
Section 653
//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.0.0.0";
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 654
//PropertyChangeEventKind (mx.events.PropertyChangeEventKind)
package mx.events {
public final class PropertyChangeEventKind {
mx_internal static const VERSION:String = "3.0.0.0";
public static const UPDATE:String = "update";
public static const DELETE:String = "delete";
}
}//package mx.events
Section 655
//ResizeEvent (mx.events.ResizeEvent)
package mx.events {
import flash.events.*;
public class ResizeEvent extends Event {
public var oldHeight:Number;
public var oldWidth:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const RESIZE:String = "resize";
public function ResizeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){
super(_arg1, _arg2, _arg3);
this.oldWidth = _arg4;
this.oldHeight = _arg5;
}
override public function clone():Event{
return (new ResizeEvent(type, bubbles, cancelable, oldWidth, oldHeight));
}
}
}//package mx.events
Section 656
//ResourceEvent (mx.events.ResourceEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
public class ResourceEvent extends ProgressEvent {
public var errorText:String;
mx_internal static const VERSION:String = "3.0.0.0";
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 657
//RSLEvent (mx.events.RSLEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
import flash.net.*;
public class RSLEvent extends ProgressEvent {
public var errorText:String;
public var rslIndex:int;
public var rslTotal:int;
public var url:URLRequest;
public static const RSL_PROGRESS:String = "rslProgress";
public static const RSL_ERROR:String = "rslError";
mx_internal static const VERSION:String = "3.0.0.0";
public static const RSL_COMPLETE:String = "rslComplete";
public function RSLEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:int=-1, _arg8:URLRequest=null, _arg9:String=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5);
this.rslIndex = _arg6;
this.rslTotal = _arg7;
this.url = _arg8;
this.errorText = _arg9;
}
override public function clone():Event{
return (new RSLEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, rslIndex, rslTotal, url, errorText));
}
}
}//package mx.events
Section 658
//ScrollEvent (mx.events.ScrollEvent)
package mx.events {
import flash.events.*;
public class ScrollEvent extends Event {
public var detail:String;
public var delta:Number;
public var position:Number;
public var direction:String;
mx_internal static const VERSION:String = "3.0.0.0";
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Number=NaN, _arg6:String=null, _arg7:Number=NaN){
super(_arg1, _arg2, _arg3);
this.detail = _arg4;
this.position = _arg5;
this.direction = _arg6;
this.delta = _arg7;
}
override public function clone():Event{
return (new ScrollEvent(type, bubbles, cancelable, detail, position, direction, delta));
}
}
}//package mx.events
Section 659
//ScrollEventDetail (mx.events.ScrollEventDetail)
package mx.events {
public final class ScrollEventDetail {
public static const LINE_UP:String = "lineUp";
public static const AT_RIGHT:String = "atRight";
public static const PAGE_UP:String = "pageUp";
public static const LINE_DOWN:String = "lineDown";
public static const PAGE_DOWN:String = "pageDown";
public static const AT_LEFT:String = "atLeft";
public static const PAGE_RIGHT:String = "pageRight";
public static const THUMB_POSITION:String = "thumbPosition";
public static const AT_TOP:String = "atTop";
public static const LINE_LEFT:String = "lineLeft";
public static const AT_BOTTOM:String = "atBottom";
public static const LINE_RIGHT:String = "lineRight";
public static const THUMB_TRACK:String = "thumbTrack";
public static const PAGE_LEFT:String = "pageLeft";
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.events
Section 660
//ScrollEventDirection (mx.events.ScrollEventDirection)
package mx.events {
public final class ScrollEventDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.events
Section 661
//StateChangeEvent (mx.events.StateChangeEvent)
package mx.events {
import flash.events.*;
public class StateChangeEvent extends Event {
public var newState:String;
public var oldState:String;
public static const CURRENT_STATE_CHANGING:String = "currentStateChanging";
public static const CURRENT_STATE_CHANGE:String = "currentStateChange";
mx_internal static const VERSION:String = "3.0.0.0";
public function StateChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:String=null){
super(_arg1, _arg2, _arg3);
this.oldState = _arg4;
this.newState = _arg5;
}
override public function clone():Event{
return (new StateChangeEvent(type, bubbles, cancelable, oldState, newState));
}
}
}//package mx.events
Section 662
//StyleEvent (mx.events.StyleEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
public class StyleEvent extends ProgressEvent {
public var errorText:String;
mx_internal static const VERSION:String = "3.0.0.0";
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 663
//ToolTipEvent (mx.events.ToolTipEvent)
package mx.events {
import mx.core.*;
import flash.events.*;
public class ToolTipEvent extends Event {
public var toolTip:IToolTip;
public static const TOOL_TIP_SHOWN:String = "toolTipShown";
public static const TOOL_TIP_CREATE:String = "toolTipCreate";
public static const TOOL_TIP_SHOW:String = "toolTipShow";
public static const TOOL_TIP_HIDE:String = "toolTipHide";
public static const TOOL_TIP_END:String = "toolTipEnd";
mx_internal static const VERSION:String = "3.0.0.0";
public static const TOOL_TIP_START:String = "toolTipStart";
public function ToolTipEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:IToolTip=null){
super(_arg1, _arg2, _arg3);
this.toolTip = _arg4;
}
override public function clone():Event{
return (new ToolTipEvent(type, bubbles, cancelable, toolTip));
}
}
}//package mx.events
Section 664
//TweenEvent (mx.events.TweenEvent)
package mx.events {
import flash.events.*;
public class TweenEvent extends Event {
public var value:Object;
public static const TWEEN_END:String = "tweenEnd";
mx_internal static const VERSION:String = "3.0.0.0";
public static const TWEEN_UPDATE:String = "tweenUpdate";
public static const TWEEN_START:String = "tweenStart";
public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Object=null){
super(_arg1, _arg2, _arg3);
this.value = _arg4;
}
override public function clone():Event{
return (new TweenEvent(type, bubbles, cancelable, value));
}
}
}//package mx.events
Section 665
//ValidationResultEvent (mx.events.ValidationResultEvent)
package mx.events {
import flash.events.*;
public class ValidationResultEvent extends Event {
public var results:Array;
public var field:String;
public static const INVALID:String = "invalid";
mx_internal static const VERSION:String = "3.0.0.0";
public static const VALID:String = "valid";
public function ValidationResultEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Array=null){
super(_arg1, _arg2, _arg3);
this.field = _arg4;
this.results = _arg5;
}
public function get message():String{
var _local1 = "";
var _local2:int = results.length;
var _local3:int;
while (_local3 < _local2) {
if (results[_local3].isError){
_local1 = (_local1 + ((_local1 == "")) ? "" : "\n");
_local1 = (_local1 + results[_local3].errorMessage);
};
_local3++;
};
return (_local1);
}
override public function clone():Event{
return (new ValidationResultEvent(type, bubbles, cancelable, field, results));
}
}
}//package mx.events
Section 666
//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.0.0.0";
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 667
//RoundedRectangle (mx.graphics.RoundedRectangle)
package mx.graphics {
import flash.geom.*;
import mx.core.*;
public class RoundedRectangle extends Rectangle {
public var cornerRadius:Number;// = 0
mx_internal static const VERSION:String = "3.0.0.0";
public function RoundedRectangle(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){
super(_arg1, _arg2, _arg3, _arg4);
this.cornerRadius = _arg5;
}
}
}//package mx.graphics
Section 668
//PriorityQueue (mx.managers.layoutClasses.PriorityQueue)
package mx.managers.layoutClasses {
import mx.core.*;
import flash.display.*;
import mx.managers.*;
public class PriorityQueue {
private var maxPriority:int;// = -1
private var arrayOfArrays:Array;
private var minPriority:int;// = 0
mx_internal static const VERSION:String = "3.0.0.0";
public function PriorityQueue(){
arrayOfArrays = [];
super();
}
public function addObject(_arg1:Object, _arg2:int):void{
if (!arrayOfArrays[_arg2]){
arrayOfArrays[_arg2] = [];
};
arrayOfArrays[_arg2].push(_arg1);
if (maxPriority < minPriority){
minPriority = (maxPriority = _arg2);
} else {
if (_arg2 < minPriority){
minPriority = _arg2;
};
if (_arg2 > maxPriority){
maxPriority = _arg2;
};
};
}
public function removeSmallest():Object{
var _local1:Object;
if (minPriority <= maxPriority){
while (((!(arrayOfArrays[minPriority])) || ((arrayOfArrays[minPriority].length == 0)))) {
minPriority++;
if (minPriority > maxPriority){
return (null);
};
};
_local1 = arrayOfArrays[minPriority].shift();
while (((!(arrayOfArrays[minPriority])) || ((arrayOfArrays[minPriority].length == 0)))) {
minPriority++;
if (minPriority > maxPriority){
break;
};
};
};
return (_local1);
}
public function removeLargestChild(_arg1:ILayoutManagerClient):Object{
var _local5:int;
var _local2:Object;
var _local3:int = maxPriority;
var _local4:int = _arg1.nestLevel;
while (_local4 <= _local3) {
if (((arrayOfArrays[_local3]) && ((arrayOfArrays[_local3].length > 0)))){
_local5 = 0;
while (_local5 < arrayOfArrays[_local3].length) {
if (contains(DisplayObject(_arg1), arrayOfArrays[_local3][_local5])){
_local2 = arrayOfArrays[_local3][_local5];
arrayOfArrays[_local3].splice(_local5, 1);
return (_local2);
};
_local5++;
};
_local3--;
} else {
if (_local3 == maxPriority){
maxPriority--;
};
_local3--;
if (_local3 < _local4){
break;
};
};
};
return (_local2);
}
public function isEmpty():Boolean{
return ((minPriority > maxPriority));
}
public function removeLargest():Object{
var _local1:Object;
if (minPriority <= maxPriority){
while (((!(arrayOfArrays[maxPriority])) || ((arrayOfArrays[maxPriority].length == 0)))) {
maxPriority--;
if (maxPriority < minPriority){
return (null);
};
};
_local1 = arrayOfArrays[maxPriority].shift();
while (((!(arrayOfArrays[maxPriority])) || ((arrayOfArrays[maxPriority].length == 0)))) {
maxPriority--;
if (maxPriority < minPriority){
break;
};
};
};
return (_local1);
}
public function removeSmallestChild(_arg1:ILayoutManagerClient):Object{
var _local4:int;
var _local2:Object;
var _local3:int = _arg1.nestLevel;
while (_local3 <= maxPriority) {
if (((arrayOfArrays[_local3]) && ((arrayOfArrays[_local3].length > 0)))){
_local4 = 0;
while (_local4 < arrayOfArrays[_local3].length) {
if (contains(DisplayObject(_arg1), arrayOfArrays[_local3][_local4])){
_local2 = arrayOfArrays[_local3][_local4];
arrayOfArrays[_local3].splice(_local4, 1);
return (_local2);
};
_local4++;
};
_local3++;
} else {
if (_local3 == minPriority){
minPriority++;
};
_local3++;
if (_local3 > maxPriority){
break;
};
};
};
return (_local2);
}
public function removeAll():void{
arrayOfArrays.splice(0);
minPriority = 0;
maxPriority = -1;
}
private function contains(_arg1:DisplayObject, _arg2:DisplayObject):Boolean{
var _local3:IChildList;
if ((_arg1 is IRawChildrenContainer)){
_local3 = IRawChildrenContainer(_arg1).rawChildren;
return (_local3.contains(_arg2));
};
if ((_arg1 is DisplayObjectContainer)){
return (DisplayObjectContainer(_arg1).contains(_arg2));
};
return ((_arg1 == _arg2));
}
}
}//package mx.managers.layoutClasses
Section 669
//CursorManager (mx.managers.CursorManager)
package mx.managers {
import mx.core.*;
public class CursorManager {
mx_internal static const VERSION:String = "3.0.0.0";
public static const NO_CURSOR:int = 0;
private static var _impl:ICursorManager;
private static var implClassDependency:CursorManagerImpl;
public static function set currentCursorYOffset(_arg1:Number):void{
impl.currentCursorYOffset = _arg1;
}
mx_internal static function registerToUseBusyCursor(_arg1:Object):void{
impl.registerToUseBusyCursor(_arg1);
}
public static function get currentCursorID():int{
return (impl.currentCursorID);
}
public static function getInstance():ICursorManager{
return (impl);
}
public static function removeBusyCursor():void{
impl.removeBusyCursor();
}
public static function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int{
return (impl.setCursor(_arg1, _arg2, _arg3, _arg4));
}
public static function set currentCursorID(_arg1:int):void{
impl.currentCursorID = _arg1;
}
mx_internal static function unRegisterToUseBusyCursor(_arg1:Object):void{
impl.unRegisterToUseBusyCursor(_arg1);
}
private static function get impl():ICursorManager{
if (!_impl){
_impl = ICursorManager(Singleton.getInstance("mx.managers::ICursorManager"));
};
return (_impl);
}
public static function removeAllCursors():void{
impl.removeAllCursors();
}
public static function setBusyCursor():void{
impl.setBusyCursor();
}
public static function showCursor():void{
impl.showCursor();
}
public static function hideCursor():void{
impl.hideCursor();
}
public static function removeCursor(_arg1:int):void{
impl.removeCursor(_arg1);
}
public static function get currentCursorXOffset():Number{
return (impl.currentCursorXOffset);
}
public static function get currentCursorYOffset():Number{
return (impl.currentCursorYOffset);
}
public static function set currentCursorXOffset(_arg1:Number):void{
impl.currentCursorXOffset = _arg1;
}
}
}//package mx.managers
Section 670
//CursorManagerImpl (mx.managers.CursorManagerImpl)
package mx.managers {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.styles.*;
import flash.text.*;
import flash.ui.*;
public class CursorManagerImpl implements ICursorManager {
private var showSystemCursor:Boolean;// = false
private var nextCursorID:int;// = 1
private var systemManager:ISystemManager;// = null
private var cursorList:Array;
private var _currentCursorYOffset:Number;// = 0
private var cursorHolder:Sprite;
private var currentCursor:DisplayObject;
private var _currentCursorID:int;// = 0
private var listenForContextMenu:Boolean;// = false
private var showCustomCursor:Boolean;// = false
private var initialized:Boolean;// = false
private var overTextField:Boolean;// = false
private var _currentCursorXOffset:Number;// = 0
private var busyCursorList:Array;
private var overLink:Boolean;// = false
private var sourceArray:Array;
mx_internal static const VERSION:String = "3.0.0.0";
private static var instance:ICursorManager;
public function CursorManagerImpl(_arg1:ISystemManager=null){
cursorList = [];
busyCursorList = [];
sourceArray = [];
super();
if (((instance) && (!(_arg1)))){
throw (new Error("Instance already exists."));
};
if (_arg1){
this.systemManager = _arg1;
} else {
this.systemManager = ApplicationGlobals.application.systemManager;
};
}
public function set currentCursorYOffset(_arg1:Number):void{
_currentCursorYOffset = _arg1;
}
public function get currentCursorXOffset():Number{
return (_currentCursorXOffset);
}
public function removeCursor(_arg1:int):void{
var _local2:Object;
var _local3:CursorQueueItem;
for (_local2 in cursorList) {
_local3 = cursorList[_local2];
if (_local3.cursorID == _arg1){
cursorList.splice(_local2, 1);
showCurrentCursor();
break;
};
};
}
public function get currentCursorID():int{
return (_currentCursorID);
}
public function set currentCursorID(_arg1:int):void{
_currentCursorID = _arg1;
}
public function removeAllCursors():void{
cursorList.splice(0);
showCurrentCursor();
}
private function priorityCompare(_arg1:CursorQueueItem, _arg2:CursorQueueItem):int{
if (_arg1.priority < _arg2.priority){
return (-1);
};
if (_arg1.priority == _arg2.priority){
return (0);
};
return (1);
}
public function setBusyCursor():void{
var _local1:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
var _local2:Class = _local1.getStyle("busyCursor");
busyCursorList.push(setCursor(_local2, CursorManagerPriority.LOW));
}
public function showCursor():void{
if (cursorHolder){
cursorHolder.visible = true;
};
}
private function findSource(_arg1:Object):int{
var _local2:int = sourceArray.length;
var _local3:int;
while (_local3 < _local2) {
if (sourceArray[_local3] === _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
private function showCurrentCursor():void{
var _local1:InteractiveObject;
var _local2:InteractiveObject;
var _local3:CursorQueueItem;
var _local4:ISystemManager;
if (cursorList.length > 0){
if (!initialized){
cursorHolder = new FlexSprite();
cursorHolder.name = "cursorHolder";
cursorHolder.mouseEnabled = false;
initialized = true;
};
_local3 = cursorList[0];
if (currentCursorID == CursorManager.NO_CURSOR){
Mouse.hide();
};
if (_local3.cursorID != currentCursorID){
if (cursorHolder.numChildren > 0){
cursorHolder.removeChildAt(0);
};
currentCursor = new _local3.cursorClass();
if (currentCursor){
if ((currentCursor is InteractiveObject)){
InteractiveObject(currentCursor).mouseEnabled = false;
};
_local4 = (_local3.systemManager) ? _local3.systemManager : ApplicationGlobals.application.systemManager;
if (((systemManager) && (!((systemManager == _local4))))){
systemManager.cursorChildren.removeChild(cursorHolder);
};
systemManager = _local4;
if (!systemManager.cursorChildren.contains(cursorHolder)){
systemManager.cursorChildren.addChild(cursorHolder);
};
cursorHolder.addChild(currentCursor);
if (!listenForContextMenu){
_local1 = (systemManager.document as InteractiveObject);
if (((_local1) && (_local1.contextMenu))){
_local1.contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler);
listenForContextMenu = true;
};
_local2 = (systemManager as InteractiveObject);
if (((_local2) && (_local2.contextMenu))){
_local2.contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler);
listenForContextMenu = true;
};
};
if ((systemManager is SystemManager)){
cursorHolder.x = (SystemManager(systemManager).mouseX + _local3.x);
cursorHolder.y = (SystemManager(systemManager).mouseY + _local3.y);
} else {
if ((systemManager is DisplayObject)){
cursorHolder.x = (DisplayObject(systemManager).mouseX + _local3.x);
cursorHolder.y = (DisplayObject(systemManager).mouseY + _local3.y);
} else {
cursorHolder.x = _local3.x;
cursorHolder.y = _local3.y;
};
};
systemManager.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true, EventPriority.CURSOR_MANAGEMENT);
};
currentCursorID = _local3.cursorID;
currentCursorXOffset = _local3.x;
currentCursorYOffset = _local3.y;
};
} else {
if (currentCursorID != CursorManager.NO_CURSOR){
currentCursorID = CursorManager.NO_CURSOR;
currentCursorXOffset = 0;
currentCursorYOffset = 0;
systemManager.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true);
cursorHolder.removeChild(currentCursor);
if (listenForContextMenu){
_local1 = (systemManager.document as InteractiveObject);
if (((_local1) && (_local1.contextMenu))){
_local1.contextMenu.removeEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler);
};
_local2 = (systemManager as InteractiveObject);
if (((_local2) && (_local2.contextMenu))){
_local2.contextMenu.removeEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler);
};
listenForContextMenu = false;
};
};
Mouse.show();
};
}
public function get currentCursorYOffset():Number{
return (_currentCursorYOffset);
}
private function contextMenu_menuSelectHandler(_arg1:ContextMenuEvent):void{
showCustomCursor = true;
systemManager.stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
}
public function hideCursor():void{
if (cursorHolder){
cursorHolder.visible = false;
};
}
public function registerToUseBusyCursor(_arg1:Object):void{
if (((_arg1) && ((_arg1 is EventDispatcher)))){
_arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, completeHandler);
};
}
private function completeHandler(_arg1:Event):void{
var _local2:int = findSource(_arg1.target);
if (_local2 != -1){
sourceArray.splice(_local2, 1);
removeBusyCursor();
};
}
public function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int{
var _local5:int = nextCursorID++;
var _local6:CursorQueueItem = new CursorQueueItem();
_local6.cursorID = _local5;
_local6.cursorClass = _arg1;
_local6.priority = _arg2;
_local6.x = _arg3;
_local6.y = _arg4;
if (systemManager){
_local6.systemManager = systemManager;
} else {
_local6.systemManager = ApplicationGlobals.application.systemManager;
};
cursorList.push(_local6);
cursorList.sort(priorityCompare);
showCurrentCursor();
return (_local5);
}
private function progressHandler(_arg1:ProgressEvent):void{
var _local2:int = findSource(_arg1.target);
if (_local2 == -1){
sourceArray.push(_arg1.target);
setBusyCursor();
};
}
public function removeBusyCursor():void{
if (busyCursorList.length > 0){
removeCursor(int(busyCursorList.pop()));
};
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
if ((systemManager is SystemManager)){
cursorHolder.x = (SystemManager(systemManager).mouseX + currentCursorXOffset);
cursorHolder.y = (SystemManager(systemManager).mouseY + currentCursorYOffset);
} else {
if ((systemManager is DisplayObject)){
cursorHolder.x = (DisplayObject(systemManager).mouseX + currentCursorXOffset);
cursorHolder.y = (DisplayObject(systemManager).mouseY + currentCursorYOffset);
} else {
cursorHolder.x = currentCursorXOffset;
cursorHolder.y = currentCursorYOffset;
};
};
var _local2:Object = _arg1.target;
if (((((!(overTextField)) && ((_local2 is TextField)))) && ((_local2.type == TextFieldType.INPUT)))){
overTextField = true;
showSystemCursor = true;
} else {
if (((overTextField) && (!((((_local2 is TextField)) && ((_local2.type == TextFieldType.INPUT))))))){
overTextField = false;
showCustomCursor = true;
};
};
if (showSystemCursor){
showSystemCursor = false;
cursorHolder.visible = false;
Mouse.show();
};
if (showCustomCursor){
showCustomCursor = false;
cursorHolder.visible = true;
Mouse.hide();
};
}
public function unRegisterToUseBusyCursor(_arg1:Object):void{
if (((_arg1) && ((_arg1 is EventDispatcher)))){
_arg1.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.removeEventListener(Event.COMPLETE, completeHandler);
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, completeHandler);
};
}
private function mouseOverHandler(_arg1:MouseEvent):void{
systemManager.stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
mouseMoveHandler(_arg1);
}
public function set currentCursorXOffset(_arg1:Number):void{
_currentCursorXOffset = _arg1;
}
public static function getInstance():ICursorManager{
if (!instance){
instance = new (CursorManagerImpl);
};
return (instance);
}
}
}//package mx.managers
class CursorQueueItem {
public var priority:int;// = 2
public var cursorClass:Class;// = null
public var cursorID:int;// = 0
public var x:Number;
public var y:Number;
public var systemManager:ISystemManager;
mx_internal static const VERSION:String = "3.0.0.0";
private function CursorQueueItem(){
}
}
Section 671
//CursorManagerPriority (mx.managers.CursorManagerPriority)
package mx.managers {
public final class CursorManagerPriority {
public static const HIGH:int = 1;
public static const MEDIUM:int = 2;
mx_internal static const VERSION:String = "3.0.0.0";
public static const LOW:int = 3;
}
}//package mx.managers
Section 672
//FocusManager (mx.managers.FocusManager)
package mx.managers {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Array;
private var _showFocusIndicator:Boolean;// = false
private var defButton:IButton;
private var _form:IFocusManagerContainer;
private var focusableCandidates:Array;
private var LARGE_TAB_INDEX:int;// = 99999
private var browserFocusComponent:InteractiveObject;
private var activated:Boolean;// = false
private var _defaultButton:IButton;
private var calculateCandidates:Boolean;// = true
private var _focusPane:Sprite;
private var lastFocus:IFocusManagerComponent;
private var _defaultButtonEnabled:Boolean;// = true
public var browserMode:Boolean;
private var lastAction:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function FocusManager(_arg1:IFocusManagerContainer, _arg2:Boolean=false){
browserMode = (((Capabilities.playerType == "ActiveX")) && (!(_arg2)));
_arg1.focusManager = this;
_form = _arg1;
focusableObjects = [];
focusPane = new FlexSprite();
focusPane.name = "focusPane";
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
_arg1.addEventListener(FlexEvent.SHOW, showHandler);
_arg1.addEventListener(FlexEvent.HIDE, hideHandler);
if ((_arg1.systemManager is SystemManager)){
if (_arg1 != SystemManager(_arg1.systemManager).application){
_arg1.addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
};
};
_arg1.systemManager.addFocusManager(_arg1);
}
public function deactivate():void{
form.systemManager.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.systemManager.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.systemManager.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.systemManager.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
var _local5:int = focusableCandidates.length;
var _local6:int = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
if (((!((InteractiveObject(_local10).tabIndex == InteractiveObject(_local7).tabIndex))) && (!(_local8.selected)))){
return (getIndexOfNextObject(_arg1, _arg2, _arg3, _arg4));
};
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
var _local2:TextField;
if ((_arg1.relatedObject is TextField)){
_local2 = (_arg1.relatedObject as TextField);
if ((((_local2.type == "input")) || (_local2.selectable))){
return;
};
};
_arg1.preventDefault();
}
mx_internal function set form(_arg1:IFocusManagerContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var doc:DisplayObjectContainer;
var i:int;
var rawChildren:IChildList;
var o = _arg1;
var skipTopLevel = _arg2;
if ((((o is IFocusManagerComponent)) && (!(skipTopLevel)))){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects.push(o);
calculateCandidates = true;
};
o.addEventListener("tabEnabledChange", tabEnabledChangeHandler);
o.addEventListener("tabIndexChange", tabIndexChangeHandler);
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener("tabChildrenChange", tabChildrenChangeHandler);
if (doc.tabChildren){
if ((o is IRawChildrenContainer)){
rawChildren = IRawChildrenContainer(o).rawChildren;
i = 0;
while (i < rawChildren.numChildren) {
try {
addFocusables(rawChildren.getChildAt(i));
} catch(error:SecurityError) {
};
i = (i + 1);
};
} else {
i = 0;
while (i < doc.numChildren) {
try {
addFocusables(doc.getChildAt(i));
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
};
}
private function getMaxTabIndex():int{
var _local4:Number;
var _local1:Number = 0;
var _local2:int = focusableObjects.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = focusableObjects[_local3].tabIndex;
if (!isNaN(_local4)){
_local1 = Math.max(_local1, _local4);
};
_local3++;
};
return (_local1);
}
private function showHandler(_arg1:Event):void{
form.systemManager.activate(form);
}
public function toString():String{
return ((Object(form).toString() + ".focusManager"));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (_arg1.isDefaultPrevented()){
return;
};
var _local2:DisplayObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(IFocusManagerComponent(_local2));
};
lastAction = "MOUSEDOWN";
}
private function sortByDepth(_arg1:IFocusManagerComponent, _arg2:IFocusManagerComponent):Number{
var _local5:int;
var _local6:String;
var _local7:String;
var _local3 = "";
var _local4 = "";
var _local8 = "0000";
var _local9:DisplayObject = DisplayObject(_arg1);
var _local10:DisplayObject = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:IFocusManagerComponent):void{
_arg1.setFocus();
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
var parent = _arg1;
var child = _arg2;
try {
return (parent.getChildIndex(child));
} catch(e:Error) {
if ((parent is IRawChildrenContainer)){
return (IRawChildrenContainer(parent).rawChildren.getChildIndex(child));
};
throw (e);
};
throw (new Error("FocusManager.getChildIndex failed"));
}
public function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent{
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (IFocusManagerComponent(_arg1));
};
_arg1 = _arg1.parent;
};
return (null);
}
private function sortFocusableObjectsTabIndex():void{
var _local3:IFocusManagerComponent;
focusableCandidates = [];
var _local1:int = focusableObjects.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = focusableObjects[_local2];
if (((_local3.tabIndex) && (!(isNaN(Number(_local3.tabIndex)))))){
focusableCandidates.push(_local3);
};
_local2++;
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject, _arg2:Boolean):void{
var _local3:int;
if ((_arg1 is DisplayObjectContainer)){
if (!_arg2){
_arg1.removeEventListener("tabChildrenChange", tabChildrenChangeHandler);
};
_local3 = 0;
while (_local3 < focusableObjects.length) {
if (isParent(DisplayObjectContainer(_arg1), focusableObjects[_local3])){
if (focusableObjects[_local3] == lastFocus){
lastFocus.drawFocus(false);
lastFocus = null;
};
focusableObjects[_local3].removeEventListener("tabEnabledChange", tabEnabledChangeHandler);
focusableObjects[_local3].removeEventListener("tabIndexChange", tabIndexChangeHandler);
focusableObjects.splice(_local3, 1);
_local3--;
calculateCandidates = true;
};
_local3++;
};
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
if (focusableObjects.length == 0){
return;
};
var _local2:IFocusManagerComponent = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
if ((_local2 is IFocusManagerComplexComponent)){
IFocusManagerComplexComponent(_local2).assignFocus((_arg1.shiftKey) ? "bottom" : "top");
} else {
setFocus(_local2);
};
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (((_arg1 is IUIComponent)) ? IUIComponent(_arg1).enabled : true))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
public function set defaultButton(_arg1:IButton):void{
var _local2:IButton = (_arg1) ? IButton(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
mx_internal function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent("click"));
}
public function getFocus():IFocusManagerComponent{
var _local1:InteractiveObject = form.systemManager.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is IUIComponent)){
if (!IUIComponent(_arg1).enabled){
return (false);
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
}
private function hideHandler(_arg1:Event):void{
form.systemManager.deactivate(form);
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
public function hideFocus():void{
if (showFocusIndicator){
showFocusIndicator = false;
if (lastFocus){
lastFocus.drawFocus(false);
};
};
}
private function tabChildrenChangeHandler(_arg1:Event):void{
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2, true);
};
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function set focusPane(_arg1:Sprite):void{
_focusPane = _arg1;
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((_arg1.keyCode == Keyboard.TAB)) && (!(_arg1.isDefaultPrevented())))){
if (browserFocusComponent){
if (browserFocusComponent.tabIndex == LARGE_TAB_INDEX){
browserFocusComponent.tabIndex = -1;
};
browserFocusComponent = null;
return;
};
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local4:IUIComponent;
if (!_arg1){
return (-1);
};
var _local2:int = focusableCandidates.length;
var _local3:int;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
_local3 = 0;
while (_local3 < _local2) {
_local4 = (focusableCandidates[_local3] as IUIComponent);
if (((_local4) && (_local4.owns(_arg1)))){
return (_local3);
};
_local3++;
};
return (-1);
}
private function isParent(_arg1:DisplayObjectContainer, _arg2:DisplayObject):Boolean{
if ((_arg1 is IRawChildrenContainer)){
return (IRawChildrenContainer(_arg1).rawChildren.contains(_arg2));
};
return (_arg1.contains(_arg2));
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject = DisplayObject(_arg1.target);
if ((_local3 is IFocusManagerComponent)){
_local2 = 0;
while (_local2 < focusableObjects.length) {
if (_local3 == focusableObjects[_local2]){
if (_local3 == lastFocus){
lastFocus.drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener("tabEnabledChange", tabEnabledChangeHandler);
_local3.removeEventListener("tabIndexChange", tabIndexChangeHandler);
focusableObjects.splice(_local2, 1);
calculateCandidates = true;
break;
};
_local2++;
};
};
removeFocusables(_local3, false);
}
mx_internal function get form():IFocusManagerContainer{
return (_form);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local3:InteractiveObject;
focusableCandidates = [];
var _local1:int = focusableObjects.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = focusableObjects[_local2];
if (((((_local3.tabIndex) && (!(isNaN(Number(_local3.tabIndex)))))) && ((_local3.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local3);
_local2++;
};
focusableCandidates.sort(sortByDepth);
}
public function get nextTabIndex():int{
return ((getMaxTabIndex() + 1));
}
public function get defaultButton():IButton{
return (_defaultButton);
}
public function showFocus():void{
if (!showFocusIndicator){
showFocusIndicator = true;
if (lastFocus){
lastFocus.drawFocus(true);
};
};
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (((lastFocus) && (!(browserMode)))){
lastFocus.setFocus();
};
lastAction = "ACTIVATE";
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent{
var _local8:IFocusManagerGroup;
if (focusableObjects.length == 0){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
var _local2:DisplayObject = form.systemManager.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
var _local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
var _local4:int = getIndexOfFocusedObject(_local2);
var _local5:Boolean;
var _local6:int = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
public function get focusPane():Sprite{
return (_focusPane);
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
var _local3:DisplayObject;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:IFocusManagerGroup;
var _local2:SystemManager = (form.systemManager as SystemManager);
if (_local2){
_local2.idleCounter = 0;
};
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (browserMode){
if ((((_arg1.keyCode == Keyboard.TAB)) && ((focusableCandidates.length > 0)))){
_local3 = form.systemManager.stage.focus;
_local3 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local3)));
_local4 = "";
if ((_local3 is IFocusManagerGroup)){
_local7 = IFocusManagerGroup(_local3);
_local4 = _local7.groupName;
};
_local5 = getIndexOfFocusedObject(_local3);
_local6 = getIndexOfNextObject(_local5, _arg1.shiftKey, false, _local4);
if (_arg1.shiftKey){
if (_local6 >= _local5){
browserFocusComponent = form.systemManager.stage.focus;
if (browserFocusComponent.tabIndex == -1){
browserFocusComponent.tabIndex = 0;
};
};
} else {
if (_local6 <= _local5){
browserFocusComponent = form.systemManager.stage.focus;
if (browserFocusComponent.tabIndex == -1){
browserFocusComponent.tabIndex = LARGE_TAB_INDEX;
};
};
};
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
defButton.callLater(sendDefaultButtonEvent);
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local3:IButton;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (isParent(DisplayObjectContainer(form), _local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is IButton)){
_local3 = (lastFocus as IButton);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
private function sortByTabIndex(_arg1:IFocusManagerComponent, _arg2:IFocusManagerComponent):int{
var _local3:int = _arg1.tabIndex;
var _local4:int = _arg2.tabIndex;
if (_local3 == -1){
_local3 = int.MAX_VALUE;
};
if (_local4 == -1){
_local4 = int.MAX_VALUE;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.systemManager.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.systemManager.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.systemManager.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObject = DisplayObject(form.systemManager);
if (!_local2){
return (false);
};
var _local3:DisplayObjectContainer = _arg1.parent;
while (((_local3) && (!((_local3 == _local2))))) {
if (!_local3.tabChildren){
return (false);
};
_local3 = _local3.parent;
};
return (true);
}
private function creationCompleteHandler(_arg1:FlexEvent):void{
if (((DisplayObject(form).visible) && (!(activated)))){
form.systemManager.activate(form);
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function tabEnabledChangeHandler(_arg1:Event):void{
calculateCandidates = true;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
var _local3:int = focusableObjects.length;
var _local4:int;
while (_local4 < _local3) {
if (focusableObjects[_local4] == _local2){
break;
};
_local4++;
};
if (_local2.tabEnabled){
if ((((_local4 == _local3)) && (isTabVisible(_local2)))){
focusableObjects.push(_local2);
};
} else {
if (_local4 < _local3){
focusableObjects.splice(_local4, 1);
};
};
}
}
}//package mx.managers
Section 673
//ICursorManager (mx.managers.ICursorManager)
package mx.managers {
public interface ICursorManager {
function removeAllCursors():void;
function set currentCursorYOffset(_arg1:Number):void;
function removeBusyCursor():void;
function unRegisterToUseBusyCursor(_arg1:Object):void;
function hideCursor():void;
function get currentCursorID():int;
function registerToUseBusyCursor(_arg1:Object):void;
function setBusyCursor():void;
function showCursor():void;
function set currentCursorID(_arg1:int):void;
function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int;
function removeCursor(_arg1:int):void;
function get currentCursorXOffset():Number;
function get currentCursorYOffset():Number;
function set currentCursorXOffset(_arg1:Number):void;
}
}//package mx.managers
Section 674
//IFocusManager (mx.managers.IFocusManager)
package mx.managers {
import flash.display.*;
import mx.core.*;
public interface IFocusManager {
function get focusPane():Sprite;
function getFocus():IFocusManagerComponent;
function deactivate():void;
function set defaultButton(_arg1:IButton):void;
function set focusPane(_arg1:Sprite):void;
function set showFocusIndicator(_arg1:Boolean):void;
function 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 675
//IFocusManagerComplexComponent (mx.managers.IFocusManagerComplexComponent)
package mx.managers {
public interface IFocusManagerComplexComponent extends IFocusManagerComponent {
function assignFocus(_arg1:String):void;
function get hasFocusableContent():Boolean;
}
}//package mx.managers
Section 676
//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 677
//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 678
//IFocusManagerGroup (mx.managers.IFocusManagerGroup)
package mx.managers {
public interface IFocusManagerGroup {
function get groupName():String;
function get selected():Boolean;
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
}
}//package mx.managers
Section 679
//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 680
//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 681
//ISystemManager (mx.managers.ISystemManager)
package mx.managers {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
import flash.text.*;
import flash.events.*;
public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory {
function get focusPane():Sprite;
function get loaderInfo():LoaderInfo;
function get toolTipChildren():IChildList;
function set focusPane(_arg1:Sprite):void;
function isTopLevel():Boolean;
function get popUpChildren():IChildList;
function get screen():Rectangle;
function isFontFaceEmbedded(_arg1:TextFormat):Boolean;
function get rawChildren():IChildList;
function get topLevelSystemManager():ISystemManager;
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 removeFocusManager(_arg1:IFocusManagerContainer):void;
function get document():Object;
function get numModalWindows():int;
function addFocusManager(_arg1:IFocusManagerContainer):void;
function get stage():Stage;
}
}//package mx.managers
Section 682
//IToolTipManager2 (mx.managers.IToolTipManager2)
package mx.managers {
import mx.core.*;
import flash.display.*;
import mx.effects.*;
public interface IToolTipManager2 {
function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void;
function get enabled():Boolean;
function set enabled(_arg1:Boolean):void;
function get scrubDelay():Number;
function set hideEffect(_arg1:IAbstractEffect):void;
function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip;
function set scrubDelay(_arg1:Number):void;
function set hideDelay(_arg1:Number):void;
function get currentTarget():DisplayObject;
function set showDelay(_arg1:Number):void;
function get showDelay():Number;
function get showEffect():IAbstractEffect;
function get hideDelay():Number;
function get currentToolTip():IToolTip;
function get hideEffect():IAbstractEffect;
function set currentToolTip(_arg1:IToolTip):void;
function get toolTipClass():Class;
function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void;
function destroyToolTip(_arg1:IToolTip):void;
function set toolTipClass(_arg1:Class):void;
function sizeTip(_arg1:IToolTip):void;
function set currentTarget(_arg1:DisplayObject):void;
function set showEffect(_arg1:IAbstractEffect):void;
}
}//package mx.managers
Section 683
//IToolTipManagerClient (mx.managers.IToolTipManagerClient)
package mx.managers {
import mx.core.*;
public interface IToolTipManagerClient extends IFlexDisplayObject {
function get toolTip():String;
function set toolTip(_arg1:String):void;
}
}//package mx.managers
Section 684
//LayoutManager (mx.managers.LayoutManager)
package mx.managers {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import mx.managers.layoutClasses.*;
public class LayoutManager extends EventDispatcher implements ILayoutManager {
private var invalidateClientPropertiesFlag:Boolean;// = false
private var invalidateDisplayListQueue:PriorityQueue;
private var updateCompleteQueue:PriorityQueue;
private var invalidateDisplayListFlag:Boolean;// = false
private var invalidateClientSizeFlag:Boolean;// = false
private var invalidateSizeQueue:PriorityQueue;
private var originalFrameRate:Number;
private var invalidatePropertiesFlag:Boolean;// = false
private var invalidatePropertiesQueue:PriorityQueue;
private var invalidateSizeFlag:Boolean;// = false
private var callLaterPending:Boolean;// = false
private var _usePhasedInstantiation:Boolean;// = false
private var callLaterObject:UIComponent;
private var targetLevel:int;// = 2147483647
mx_internal static const VERSION:String = "3.0.0.0";
private static var instance:LayoutManager;
public function LayoutManager(){
updateCompleteQueue = new PriorityQueue();
invalidatePropertiesQueue = new PriorityQueue();
invalidateSizeQueue = new PriorityQueue();
invalidateDisplayListQueue = new PriorityQueue();
super();
}
public function set usePhasedInstantiation(_arg1:Boolean):void{
var _local2:Stage;
if (_usePhasedInstantiation != _arg1){
_usePhasedInstantiation = _arg1;
_local2 = SystemManagerGlobals.topLevelSystemManagers[0].stage;
if (_arg1){
originalFrameRate = _local2.frameRate;
_local2.frameRate = 1000;
} else {
_local2.frameRate = originalFrameRate;
};
};
}
private function waitAFrame():void{
callLaterObject.callLater(doPhasedInstantiation);
}
public function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void{
var _local3:ILayoutManagerClient;
var _local4:int;
var _local5:Boolean;
var _local6:int = targetLevel;
if (targetLevel == int.MAX_VALUE){
targetLevel = _arg1.nestLevel;
};
while (!(_local5)) {
_local5 = true;
_local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1));
while (_local3) {
_local3.validateProperties();
if (!_local3.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local3, _local3.nestLevel);
_local3.updateCompletePendingFlag = true;
};
_local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1));
};
if (invalidatePropertiesQueue.isEmpty()){
invalidatePropertiesFlag = false;
invalidateClientPropertiesFlag = false;
};
_local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1));
while (_local3) {
_local3.validateSize();
if (!_local3.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local3, _local3.nestLevel);
_local3.updateCompletePendingFlag = true;
};
if (invalidateClientPropertiesFlag){
_local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1));
if (_local3){
invalidatePropertiesQueue.addObject(_local3, _local3.nestLevel);
_local5 = false;
break;
};
};
_local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1));
};
if (invalidateSizeQueue.isEmpty()){
invalidateSizeFlag = false;
invalidateClientSizeFlag = false;
};
if (!_arg2){
_local3 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(_arg1));
while (_local3) {
_local3.validateDisplayList();
if (!_local3.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local3, _local3.nestLevel);
_local3.updateCompletePendingFlag = true;
};
if (invalidateClientPropertiesFlag){
_local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1));
if (_local3){
invalidatePropertiesQueue.addObject(_local3, _local3.nestLevel);
_local5 = false;
break;
};
};
if (invalidateClientSizeFlag){
_local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1));
if (_local3){
invalidateSizeQueue.addObject(_local3, _local3.nestLevel);
_local5 = false;
break;
};
};
_local3 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(_arg1));
};
if (invalidateDisplayListQueue.isEmpty()){
invalidateDisplayListFlag = false;
};
};
};
if (_local6 == int.MAX_VALUE){
targetLevel = int.MAX_VALUE;
if (!_arg2){
_local3 = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(_arg1));
while (_local3) {
if (!_local3.initialized){
_local3.initialized = true;
};
_local3.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE));
_local3.updateCompletePendingFlag = false;
_local3 = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(_arg1));
};
};
};
}
private function validateProperties():void{
var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest());
while (_local1) {
_local1.validateProperties();
if (!_local1.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local1, _local1.nestLevel);
_local1.updateCompletePendingFlag = true;
};
_local1 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest());
};
if (invalidatePropertiesQueue.isEmpty()){
invalidatePropertiesFlag = false;
};
}
public function invalidateProperties(_arg1:ILayoutManagerClient):void{
if (((!(invalidatePropertiesFlag)) && (ApplicationGlobals.application.systemManager))){
invalidatePropertiesFlag = true;
if (!callLaterPending){
if (!callLaterObject){
callLaterObject = new UIComponent();
callLaterObject.systemManager = ApplicationGlobals.application.systemManager;
callLaterObject.callLater(waitAFrame);
} else {
callLaterObject.callLater(doPhasedInstantiation);
};
callLaterPending = true;
};
};
if (targetLevel <= _arg1.nestLevel){
invalidateClientPropertiesFlag = true;
};
invalidatePropertiesQueue.addObject(_arg1, _arg1.nestLevel);
}
public function invalidateDisplayList(_arg1:ILayoutManagerClient):void{
if (((!(invalidateDisplayListFlag)) && (ApplicationGlobals.application.systemManager))){
invalidateDisplayListFlag = true;
if (!callLaterPending){
if (!callLaterObject){
callLaterObject = new UIComponent();
callLaterObject.systemManager = ApplicationGlobals.application.systemManager;
callLaterObject.callLater(waitAFrame);
} else {
callLaterObject.callLater(doPhasedInstantiation);
};
callLaterPending = true;
};
};
invalidateDisplayListQueue.addObject(_arg1, _arg1.nestLevel);
}
private function validateDisplayList():void{
var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest());
while (_local1) {
_local1.validateDisplayList();
if (!_local1.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local1, _local1.nestLevel);
_local1.updateCompletePendingFlag = true;
};
_local1 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest());
};
if (invalidateDisplayListQueue.isEmpty()){
invalidateDisplayListFlag = false;
};
}
public function validateNow():void{
var _local1:int;
if (!usePhasedInstantiation){
_local1 = 0;
while (((callLaterPending) && ((_local1 < 100)))) {
doPhasedInstantiation();
};
};
}
private function validateSize():void{
var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidateSizeQueue.removeLargest());
while (_local1) {
_local1.validateSize();
if (!_local1.updateCompletePendingFlag){
updateCompleteQueue.addObject(_local1, _local1.nestLevel);
_local1.updateCompletePendingFlag = true;
};
_local1 = ILayoutManagerClient(invalidateSizeQueue.removeLargest());
};
if (invalidateSizeQueue.isEmpty()){
invalidateSizeFlag = false;
};
}
private function doPhasedInstantiation():void{
var _local1:ILayoutManagerClient;
if (usePhasedInstantiation){
if (invalidatePropertiesFlag){
validateProperties();
ApplicationGlobals.application.dispatchEvent(new Event("validatePropertiesComplete"));
} else {
if (invalidateSizeFlag){
validateSize();
ApplicationGlobals.application.dispatchEvent(new Event("validateSizeComplete"));
} else {
if (invalidateDisplayListFlag){
validateDisplayList();
ApplicationGlobals.application.dispatchEvent(new Event("validateDisplayListComplete"));
};
};
};
} else {
if (invalidatePropertiesFlag){
validateProperties();
};
if (invalidateSizeFlag){
validateSize();
};
if (invalidateDisplayListFlag){
validateDisplayList();
};
};
if (((((invalidatePropertiesFlag) || (invalidateSizeFlag))) || (invalidateDisplayListFlag))){
callLaterObject.callLater(doPhasedInstantiation);
} else {
usePhasedInstantiation = false;
callLaterPending = false;
_local1 = ILayoutManagerClient(updateCompleteQueue.removeLargest());
while (_local1) {
if (((!(_local1.initialized)) && (_local1.processedDescriptors))){
_local1.initialized = true;
};
_local1.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE));
_local1.updateCompletePendingFlag = false;
_local1 = ILayoutManagerClient(updateCompleteQueue.removeLargest());
};
dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE));
};
}
public function isInvalid():Boolean{
return (((((invalidatePropertiesFlag) || (invalidateSizeFlag))) || (invalidateDisplayListFlag)));
}
public function get usePhasedInstantiation():Boolean{
return (_usePhasedInstantiation);
}
public function invalidateSize(_arg1:ILayoutManagerClient):void{
if (((!(invalidateSizeFlag)) && (ApplicationGlobals.application.systemManager))){
invalidateSizeFlag = true;
if (!callLaterPending){
if (!callLaterObject){
callLaterObject = new UIComponent();
callLaterObject.systemManager = ApplicationGlobals.application.systemManager;
callLaterObject.callLater(waitAFrame);
} else {
callLaterObject.callLater(doPhasedInstantiation);
};
callLaterPending = true;
};
};
if (targetLevel <= _arg1.nestLevel){
invalidateClientSizeFlag = true;
};
invalidateSizeQueue.addObject(_arg1, _arg1.nestLevel);
}
public static function getInstance():LayoutManager{
if (!instance){
instance = new (LayoutManager);
};
return (instance);
}
}
}//package mx.managers
Section 685
//SystemChildrenList (mx.managers.SystemChildrenList)
package mx.managers {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
public class SystemChildrenList implements IChildList {
private var lowerBoundReference:QName;
private var upperBoundReference:QName;
private var owner:SystemManager;
mx_internal static const VERSION:String = "3.0.0.0";
public function SystemChildrenList(_arg1:SystemManager, _arg2:QName, _arg3:QName){
this.owner = _arg1;
this.lowerBoundReference = _arg2;
this.upperBoundReference = _arg3;
}
public function getChildAt(_arg1:int):DisplayObject{
var _local2:DisplayObject = owner.mx_internal::rawChildren_getChildAt((owner[lowerBoundReference] + _arg1));
return (_local2);
}
public function getChildByName(_arg1:String):DisplayObject{
return (owner.mx_internal::rawChildren_getChildByName(_arg1));
}
public function removeChildAt(_arg1:int):DisplayObject{
var _local2:DisplayObject = owner.mx_internal::rawChildren_removeChildAt((_arg1 + owner[lowerBoundReference]));
var _local3 = owner;
var _local4 = upperBoundReference;
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
return (_local2);
}
public function getChildIndex(_arg1:DisplayObject):int{
var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1);
_local2 = (_local2 - owner[lowerBoundReference]);
return (_local2);
}
public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
var _local3 = owner;
_local3.mx_internal::rawChildren_addChildAt(_arg1, (owner[lowerBoundReference] + _arg2));
_local3 = owner;
var _local4 = upperBoundReference;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
return (_arg1);
}
public function getObjectsUnderPoint(_arg1:Point):Array{
return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1));
}
public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
var _local3 = owner;
_local3.mx_internal::rawChildren_setChildIndex(_arg1, (owner[lowerBoundReference] + _arg2));
}
public function get numChildren():int{
return ((owner[upperBoundReference] - owner[lowerBoundReference]));
}
public function contains(_arg1:DisplayObject):Boolean{
var _local2:int;
if (owner.mx_internal::rawChildren_contains(_arg1)){
while (_arg1.parent != owner) {
_arg1 = _arg1.parent;
};
_local2 = owner.mx_internal::rawChildren_getChildIndex(_arg1);
if ((((_local2 >= owner[lowerBoundReference])) && ((_local2 < owner[upperBoundReference])))){
return (true);
};
};
return (false);
}
public function removeChild(_arg1:DisplayObject):DisplayObject{
var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1);
if ((((owner[lowerBoundReference] <= _local2)) && ((_local2 < owner[upperBoundReference])))){
var _local3 = owner;
_local3.mx_internal::rawChildren_removeChild(_arg1);
_local3 = owner;
var _local4 = upperBoundReference;
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
};
return (_arg1);
}
public function addChild(_arg1:DisplayObject):DisplayObject{
var _local2 = owner;
_local2.mx_internal::rawChildren_addChildAt(_arg1, owner[upperBoundReference]);
_local2 = owner;
var _local3 = upperBoundReference;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
return (_arg1);
}
}
}//package mx.managers
Section 686
//SystemManager (mx.managers.SystemManager)
package mx.managers {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
import flash.text.*;
import flash.events.*;
import mx.events.*;
import mx.styles.*;
import flash.system.*;
import mx.resources.*;
import mx.preloaders.*;
import flash.utils.*;
import mx.messaging.config.*;
public class SystemManager extends MovieClip implements IChildList, IFlexDisplayObject, IFlexModuleFactory, ISystemManager {
mx_internal var nestLevel:int;// = 0
private var forms:Array;
private var mouseCatcher:Sprite;
private var _height:Number;
private var preloader:Preloader;
private var _document:Object;
private var _topLevelSystemManager:ISystemManager;
private var _toolTipIndex:int;// = 0
private var _rawChildren:SystemRawChildrenList;
private var _explicitHeight:Number;
private var _toolTipChildren:SystemChildrenList;
private var form:IFocusManagerContainer;
private var _width:Number;
private var initialized:Boolean;// = false
private var _focusPane:Sprite;
private var _fontList:Object;// = null
private var isStageRoot:Boolean;// = true
private var _popUpChildren:SystemChildrenList;
private var rslSizes:Array;// = null
private var _topMostIndex:int;// = 0
private var nextFrameTimer:Timer;// = null
private var topLevel:Boolean;// = true
private var _cursorIndex:int;// = 0
mx_internal var _mouseX;
mx_internal var _mouseY;
private var _numModalWindows:int;// = 0
private var _screen:Rectangle;
mx_internal var idleCounter:int;// = 0
private var _cursorChildren:SystemChildrenList;
private var initCallbackFunctions:Array;
private var _noTopMostIndex:int;// = 0
private var _applicationIndex:int;// = 1
private var idleTimer:Timer;
private var doneExecutingInitCallbacks:Boolean;// = false
private var _explicitWidth:Number;
mx_internal var topLevelWindow:IUIComponent;
private static const IDLE_THRESHOLD:Number = 1000;
private static const IDLE_INTERVAL:Number = 100;
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var lastSystemManager:SystemManager;
mx_internal static var allSystemManagers:Dictionary = new Dictionary(true);
public function SystemManager(){
initCallbackFunctions = [];
forms = [];
super();
if (stage){
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
};
if ((((SystemManagerGlobals.topLevelSystemManagers.length > 0)) && (!(stage)))){
topLevel = false;
};
if (!stage){
isStageRoot = false;
};
if (topLevel){
SystemManagerGlobals.topLevelSystemManagers.push(this);
};
lastSystemManager = this;
var _local1:Array = info()["compiledLocales"];
ResourceBundle.locale = (((!((_local1 == null))) && ((_local1.length > 0)))) ? _local1[0] : "en_US";
executeCallbacks();
stop();
if (((topLevel) && (!((currentFrame == 1))))){
throw (new Error((("The SystemManager constructor was called when the currentFrame was at " + currentFrame) + " Please add this SWF to bug 129782.")));
};
if (((root) && (root.loaderInfo))){
root.loaderInfo.addEventListener(Event.INIT, initHandler);
};
}
mx_internal function addingChild(_arg1:DisplayObject):void{
var _local4:DisplayObjectContainer;
var _local2 = 1;
if (!topLevel){
_local4 = parent.parent;
while (_local4) {
if ((_local4 is ILayoutManagerClient)){
_local2 = (ILayoutManagerClient(_local4).nestLevel + 1);
break;
};
_local4 = _local4.parent;
};
};
nestLevel = _local2;
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).systemManager = this;
};
var _local3:Class = Class(getDefinitionByName("mx.core.UIComponent"));
if ((((_arg1 is IUIComponent)) && (!(IUIComponent(_arg1).document)))){
IUIComponent(_arg1).document = document;
};
if ((_arg1 is ILayoutManagerClient)){
ILayoutManagerClient(_arg1).nestLevel = (nestLevel + 1);
};
if ((_arg1 is InteractiveObject)){
if (doubleClickEnabled){
InteractiveObject(_arg1).doubleClickEnabled = true;
};
};
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).parentChanged(this);
};
if ((_arg1 is IStyleClient)){
IStyleClient(_arg1).regenerateStyleCache(true);
};
if ((_arg1 is ISimpleStyleClient)){
ISimpleStyleClient(_arg1).styleChanged(null);
};
if ((_arg1 is IStyleClient)){
IStyleClient(_arg1).notifyStyleChangeInChildren(null, true);
};
if (((_local3) && ((_arg1 is _local3)))){
_local3(_arg1).initThemeColor();
};
if (((_local3) && ((_arg1 is _local3)))){
_local3(_arg1).stylesInitialized();
};
}
private function idleTimer_timerHandler(_arg1:TimerEvent):void{
idleCounter++;
if ((idleCounter * IDLE_INTERVAL) > IDLE_THRESHOLD){
dispatchEvent(new FlexEvent(FlexEvent.IDLE));
};
}
public function getExplicitOrMeasuredHeight():Number{
return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight);
}
mx_internal function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
var _local6:IStyleClient;
var _local3:Boolean;
var _local4:int = rawChildren.numChildren;
var _local5:int;
while (_local5 < _local4) {
_local6 = (rawChildren.getChildAt(_local5) as IStyleClient);
if (_local6){
_local6.styleChanged(_arg1);
_local6.notifyStyleChangeInChildren(_arg1, _arg2);
};
if (isTopLevelWindow(DisplayObject(_local6))){
_local3 = true;
};
_local4 = rawChildren.numChildren;
_local5++;
};
if (((!(_local3)) && ((topLevelWindow is IStyleClient)))){
IStyleClient(topLevelWindow).styleChanged(_arg1);
IStyleClient(topLevelWindow).notifyStyleChangeInChildren(_arg1, _arg2);
};
}
mx_internal function rawChildren_getObjectsUnderPoint(_arg1:Point):Array{
return (super.getObjectsUnderPoint(_arg1));
}
private function initHandler(_arg1:Event):void{
allSystemManagers[this] = this.loaderInfo.url;
root.loaderInfo.removeEventListener(Event.INIT, initHandler);
var _local2:int = ((totalFrames)==1) ? 0 : 1;
addFrameScript(_local2, docFrameHandler);
var _local3:int = (_local2 + 1);
while (_local3 < totalFrames) {
addFrameScript(_local3, extraFrameHandler);
_local3++;
};
initialize();
}
override public function contains(_arg1:DisplayObject):Boolean{
var _local2:int;
var _local3:int;
var _local4:DisplayObject;
if (super.contains(_arg1)){
if (_arg1.parent == this){
_local2 = super.getChildIndex(_arg1);
if (_local2 < noTopMostIndex){
return (true);
};
} else {
_local3 = 0;
while (_local3 < noTopMostIndex) {
_local4 = super.getChildAt(_local3);
if ((_local4 is IRawChildrenContainer)){
if (IRawChildrenContainer(_local4).rawChildren.contains(_arg1)){
return (true);
};
};
if ((_local4 is DisplayObjectContainer)){
if (DisplayObjectContainer(_local4).contains(_arg1)){
return (true);
};
};
_local3++;
};
};
};
return (false);
}
public function getDefinitionByName(_arg1:String):Object{
var _local3:Object;
var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : (info()["currentDomain"] as ApplicationDomain);
if (_local2.hasDefinition(_arg1)){
_local3 = _local2.getDefinition(_arg1);
};
return (_local3);
}
public function get embeddedFontList():Object{
var _local1:Object;
var _local2:String;
var _local3:Object;
if (_fontList == null){
_fontList = {};
_local1 = info()["fonts"];
for (_local2 in _local1) {
_fontList[_local2] = _local1[_local2];
};
if (((!(topLevel)) && (_topLevelSystemManager))){
_local3 = _topLevelSystemManager.embeddedFontList;
for (_local2 in _local3) {
_fontList[_local2] = _local3[_local2];
};
};
};
return (_fontList);
}
mx_internal function set cursorIndex(_arg1:int):void{
var _local2:int = (_arg1 - _cursorIndex);
_cursorIndex = _arg1;
}
public function set document(_arg1:Object):void{
_document = _arg1;
}
override public function getChildAt(_arg1:int):DisplayObject{
return (super.getChildAt((applicationIndex + _arg1)));
}
public function get rawChildren():IChildList{
if (!_rawChildren){
_rawChildren = new SystemRawChildrenList(this);
};
return (_rawChildren);
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if ((((_arg1 == FlexEvent.IDLE)) && (!(idleTimer)))){
idleTimer = new Timer(IDLE_INTERVAL);
idleTimer.addEventListener(TimerEvent.TIMER, idleTimer_timerHandler);
idleTimer.start();
addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true);
addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, true);
};
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeFocusManager(_arg1:IFocusManagerContainer):void{
var _local2:int = forms.length;
var _local3:int;
while (_local3 < _local2) {
if (forms[_local3] == _arg1){
if (form == _arg1){
deactivate(_arg1);
};
forms.splice(_local3, 1);
return;
};
_local3++;
};
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
idleCounter = 0;
}
public function get focusPane():Sprite{
return (_focusPane);
}
override public function get mouseX():Number{
if (_mouseX === undefined){
return (super.mouseX);
};
return (_mouseX);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:IChildList;
idleCounter = 0;
if (numModalWindows == 0){
if (forms.length > 1){
_local2 = forms.length;
_local3 = DisplayObject(_arg1.target);
_local4 = document.rawChildren.contains(_local3);
while (_local3) {
_local5 = 0;
while (_local5 < _local2) {
if (forms[_local5] == _local3){
_local6 = 0;
if (((!((_local3 == form))) && ((_local3 is IFocusManagerContainer)))){
activate(IFocusManagerContainer(_local3));
};
if (popUpChildren.contains(_local3)){
_local9 = popUpChildren;
} else {
_local9 = this;
};
_local7 = _local9.getChildIndex(_local3);
_local8 = _local7;
_local2 = forms.length;
_local6 = 0;
while (_local6 < _local2) {
if (_local9.contains(forms[_local6])){
if (_local9.getChildIndex(forms[_local6]) > _local7){
_local8 = Math.max(_local9.getChildIndex(forms[_local6]), _local8);
};
};
_local6++;
};
if ((((_local8 > _local7)) && (!(_local4)))){
_local9.setChildIndex(_local3, _local8);
};
return;
};
_local5++;
};
_local3 = _local3.parent;
};
};
};
}
public function get screen():Rectangle{
if (!_screen){
Stage_resizeHandler();
};
return (_screen);
}
mx_internal function set topMostIndex(_arg1:int):void{
var _local2:int = (_arg1 - _topMostIndex);
_topMostIndex = _arg1;
toolTipIndex = (toolTipIndex + _local2);
}
mx_internal function docFrameHandler(_arg1:Event=null):void{
var _local2:TextFieldFactory;
var _local4:int;
var _local5:int;
var _local6:Class;
Singleton.registerClass("mx.managers::IBrowserManager", Class(getDefinitionByName("mx.managers::BrowserManagerImpl")));
Singleton.registerClass("mx.managers::ICursorManager", Class(getDefinitionByName("mx.managers::CursorManagerImpl")));
Singleton.registerClass("mx.managers::IHistoryManager", Class(getDefinitionByName("mx.managers::HistoryManagerImpl")));
Singleton.registerClass("mx.managers::ILayoutManager", Class(getDefinitionByName("mx.managers::LayoutManager")));
Singleton.registerClass("mx.managers::IPopUpManager", Class(getDefinitionByName("mx.managers::PopUpManagerImpl")));
Singleton.registerClass("mx.managers::IToolTipManager2", Class(getDefinitionByName("mx.managers::ToolTipManagerImpl")));
if (Capabilities.playerType == "Desktop"){
Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::NativeDragManagerImpl")));
if (Singleton.getClass("mx.managers::IDragManager") == null){
Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl")));
};
} else {
Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl")));
};
Singleton.registerClass("mx.core::ITextFieldFactory", Class(getDefinitionByName("mx.core::TextFieldFactory")));
executeCallbacks();
doneExecutingInitCallbacks = true;
var _local3:Array = info()["mixins"];
if (((_local3) && ((_local3.length > 0)))){
_local4 = _local3.length;
_local5 = 0;
while (_local5 < _local4) {
_local6 = Class(getDefinitionByName(_local3[_local5]));
var _local7 = _local6;
_local7["init"](this);
_local5++;
};
};
installCompiledResourceBundles();
initializeTopLevelWindow(null);
deferredNextFrame();
}
private function Stage_resizeHandler(_arg1:Event=null):void{
var _local2:Number = stage.stageWidth;
var _local3:Number = stage.stageHeight;
var _local4:Number = loaderInfo.width;
var _local5:Number = loaderInfo.height;
var _local6:Number = ((_local4 - _local2) / 2);
var _local7:Number = ((_local5 - _local3) / 2);
var _local8:String = stage.align;
if (_local8 == StageAlign.TOP){
_local7 = 0;
} else {
if (_local8 == StageAlign.BOTTOM){
_local7 = (_local5 - _local3);
} else {
if (_local8 == StageAlign.LEFT){
_local6 = 0;
} else {
if (_local8 == StageAlign.RIGHT){
_local6 = (_local4 - _local2);
} else {
if ((((_local8 == StageAlign.TOP_LEFT)) || ((_local8 == "LT")))){
_local7 = 0;
_local6 = 0;
} else {
if (_local8 == StageAlign.TOP_RIGHT){
_local7 = 0;
_local6 = (_local4 - _local2);
} else {
if (_local8 == StageAlign.BOTTOM_LEFT){
_local7 = (_local5 - _local3);
_local6 = 0;
} else {
if (_local8 == StageAlign.BOTTOM_RIGHT){
_local7 = (_local5 - _local3);
_local6 = (_local4 - _local2);
};
};
};
};
};
};
};
};
if (!_screen){
_screen = new Rectangle();
};
_screen.x = _local6;
_screen.y = _local7;
_screen.width = _local2;
_screen.height = _local3;
if (isStageRoot){
_width = stage.stageWidth;
_height = stage.stageHeight;
};
if (_arg1){
resizeMouseCatcher();
dispatchEvent(_arg1);
};
}
public function get explicitHeight():Number{
return (_explicitHeight);
}
public function get preloaderBackgroundSize():String{
return (info()["backgroundSize"]);
}
public function isTopLevel():Boolean{
return (topLevel);
}
override public function get mouseY():Number{
if (_mouseY === undefined){
return (super.mouseY);
};
return (_mouseY);
}
public function getExplicitOrMeasuredWidth():Number{
return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth);
}
public function deactivate(_arg1:IFocusManagerContainer):void{
var _local2:IFocusManagerContainer;
var _local3:int;
var _local4:int;
var _local5:IFocusManagerContainer;
if (form){
if ((((form == _arg1)) && ((forms.length > 1)))){
form.focusManager.deactivate();
_local3 = forms.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = forms[_local4];
if (_local5 == _arg1){
_local4 = (_local4 + 1);
while (_local4 < _local3) {
_local5 = forms[_local4];
if ((((Sprite(_local5).visible == true)) && (IUIComponent(_local5).enabled))){
_local2 = _local5;
};
_local4++;
};
form = _local2;
break;
} else {
if (((Sprite(_local5).visible) && (IUIComponent(_local5).enabled))){
_local2 = _local5;
};
};
_local4++;
};
if (form){
form.focusManager.activate();
};
};
};
}
override public function getChildByName(_arg1:String):DisplayObject{
return (super.getChildByName(_arg1));
}
override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
noTopMostIndex++;
return (rawChildren_addChildAt(_arg1, (applicationIndex + _arg2)));
}
public function get measuredWidth():Number{
return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredWidth() : loaderInfo.width);
}
public function info():Object{
return ({});
}
mx_internal function get toolTipIndex():int{
return (_toolTipIndex);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
if (isStageRoot){
return;
};
_width = _arg1;
_height = _arg2;
if (mouseCatcher){
mouseCatcher.width = _arg1;
mouseCatcher.height = _arg2;
};
dispatchEvent(new Event(Event.RESIZE));
}
public function set focusPane(_arg1:Sprite):void{
if (_arg1){
addChild(_arg1);
_arg1.x = 0;
_arg1.y = 0;
_arg1.scrollRect = null;
_focusPane = _arg1;
} else {
removeChild(_focusPane);
_focusPane = null;
};
}
mx_internal function set applicationIndex(_arg1:int):void{
_applicationIndex = _arg1;
}
private function executeCallbacks():void{
var _local1:Function;
if (!parent){
return;
};
while (initCallbackFunctions.length > 0) {
_local1 = initCallbackFunctions.shift();
_local1(this);
};
}
public function get popUpChildren():IChildList{
if (!topLevel){
return (_topLevelSystemManager.popUpChildren);
};
if (!_popUpChildren){
_popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex"));
};
return (_popUpChildren);
}
public function set explicitHeight(_arg1:Number):void{
_explicitHeight = _arg1;
}
override public function removeChild(_arg1:DisplayObject):DisplayObject{
noTopMostIndex--;
return (rawChildren_removeChild(_arg1));
}
override public function addChild(_arg1:DisplayObject):DisplayObject{
noTopMostIndex++;
return (rawChildren_addChildAt(_arg1, (noTopMostIndex - 1)));
}
public function create(... _args):Object{
var _local4:String;
var _local5:int;
var _local6:int;
var _local2:String = info()["mainClassName"];
if (_local2 == null){
_local4 = loaderInfo.loaderURL;
_local5 = _local4.lastIndexOf(".");
_local6 = _local4.lastIndexOf("/");
_local2 = _local4.substring((_local6 + 1), _local5);
};
var _local3:Class = Class(getDefinitionByName(_local2));
return ((_local3) ? new (_local3) : null);
}
override public function get stage():Stage{
var _local1:Stage = super.stage;
if (_local1){
return (_local1);
};
if (((!(topLevel)) && (_topLevelSystemManager))){
return (_topLevelSystemManager.stage);
};
return (null);
}
mx_internal function rawChildren_removeChild(_arg1:DisplayObject):DisplayObject{
removingChild(_arg1);
super.removeChild(_arg1);
childRemoved(_arg1);
return (_arg1);
}
final mx_internal function get $numChildren():int{
return (super.numChildren);
}
public function get toolTipChildren():IChildList{
if (!topLevel){
return (_topLevelSystemManager.toolTipChildren);
};
if (!_toolTipChildren){
_toolTipChildren = new SystemChildrenList(this, new QName(mx_internal, "topMostIndex"), new QName(mx_internal, "toolTipIndex"));
};
return (_toolTipChildren);
}
override public function getChildIndex(_arg1:DisplayObject):int{
return ((super.getChildIndex(_arg1) - applicationIndex));
}
private function mouseUpHandler(_arg1:MouseEvent):void{
idleCounter = 0;
}
mx_internal function rawChildren_getChildIndex(_arg1:DisplayObject):int{
return (super.getChildIndex(_arg1));
}
public function activate(_arg1:IFocusManagerContainer):void{
var _local2:IFocusManagerContainer;
if (form){
if (((!((form == _arg1))) && ((forms.length > 1)))){
_local2 = form;
_local2.focusManager.deactivate();
};
};
form = _arg1;
if (_arg1.focusManager){
_arg1.focusManager.activate();
};
}
private function deferredNextFrame():void{
if ((currentFrame + 1) > totalFrames){
return;
};
if ((currentFrame + 1) <= framesLoaded){
nextFrame();
} else {
nextFrameTimer = new Timer(100);
nextFrameTimer.addEventListener(TimerEvent.TIMER, nextFrameTimerHandler);
nextFrameTimer.start();
};
}
mx_internal function get cursorIndex():int{
return (_cursorIndex);
}
mx_internal function rawChildren_contains(_arg1:DisplayObject):Boolean{
return (super.contains(_arg1));
}
override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
super.setChildIndex(_arg1, (applicationIndex + _arg2));
}
public function get document():Object{
return (_document);
}
private function resizeMouseCatcher():void{
var _local1:Graphics;
if (mouseCatcher){
_local1 = mouseCatcher.graphics;
_local1.clear();
_local1.beginFill(0, 0);
_local1.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
_local1.endFill();
};
}
override public function get height():Number{
return (_height);
}
mx_internal function rawChildren_getChildAt(_arg1:int):DisplayObject{
return (super.getChildAt(_arg1));
}
mx_internal function set noTopMostIndex(_arg1:int):void{
var _local2:int = (_arg1 - _noTopMostIndex);
_noTopMostIndex = _arg1;
topMostIndex = (topMostIndex + _local2);
}
override public function getObjectsUnderPoint(_arg1:Point):Array{
var _local5:DisplayObject;
var _local6:Array;
var _local2:Array = [];
var _local3:int = topMostIndex;
var _local4:int;
while (_local4 < _local3) {
_local5 = super.getChildAt(_local4);
if ((_local5 is DisplayObjectContainer)){
_local6 = DisplayObjectContainer(_local5).getObjectsUnderPoint(_arg1);
if (_local6){
_local2 = _local2.concat(_local6);
};
};
_local4++;
};
return (_local2);
}
mx_internal function get topMostIndex():int{
return (_topMostIndex);
}
mx_internal function regenerateStyleCache(_arg1:Boolean):void{
var _local5:IStyleClient;
var _local2:Boolean;
var _local3:int = rawChildren.numChildren;
var _local4:int;
while (_local4 < _local3) {
_local5 = (rawChildren.getChildAt(_local4) as IStyleClient);
if (_local5){
_local5.regenerateStyleCache(_arg1);
};
if (isTopLevelWindow(DisplayObject(_local5))){
_local2 = true;
};
_local3 = rawChildren.numChildren;
_local4++;
};
if (((!(_local2)) && ((topLevelWindow is IStyleClient)))){
IStyleClient(topLevelWindow).regenerateStyleCache(_arg1);
};
}
public function addFocusManager(_arg1:IFocusManagerContainer):void{
forms.push(_arg1);
}
public function isFontFaceEmbedded(_arg1:TextFormat):Boolean{
var _local6:Font;
var _local7:String;
var _local2:String = _arg1.font;
var _local3:Array = Font.enumerateFonts();
var _local4:int;
while (_local4 < _local3.length) {
_local6 = Font(_local3[_local4]);
if (_local6.fontName == _local2){
_local7 = "regular";
if (((_arg1.bold) && (_arg1.italic))){
_local7 = "boldItalic";
} else {
if (_arg1.bold){
_local7 = "bold";
} else {
if (_arg1.italic){
_local7 = "italic";
};
};
};
if (_local6.fontStyle == _local7){
return (true);
};
};
_local4++;
};
if (((((!(_local2)) || (!(embeddedFontList)))) || (!(embeddedFontList[_local2])))){
return (false);
};
var _local5:Object = embeddedFontList[_local2];
return (!(((((((_arg1.bold) && (!(_local5.bold)))) || (((_arg1.italic) && (!(_local5.italic)))))) || (((((!(_arg1.bold)) && (!(_arg1.italic)))) && (!(_local5.regular)))))));
}
mx_internal function rawChildren_setChildIndex(_arg1:DisplayObject, _arg2:int):void{
super.setChildIndex(_arg1, _arg2);
}
mx_internal function childAdded(_arg1:DisplayObject):void{
_arg1.dispatchEvent(new FlexEvent(FlexEvent.ADD));
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).initialize();
};
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_arg1 == FlexEvent.IDLE){
super.removeEventListener(_arg1, _arg2, _arg3);
if (((!(hasEventListener(FlexEvent.IDLE))) && (idleTimer))){
idleTimer.stop();
idleTimer = null;
removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
};
} else {
super.removeEventListener(_arg1, _arg2, _arg3);
};
}
private function extraFrameHandler(_arg1:Event=null):void{
var _local3:Class;
var _local2:Object = info()["frames"];
if (((_local2) && (_local2[currentLabel]))){
_local3 = Class(getDefinitionByName(_local2[currentLabel]));
var _local4 = _local3;
_local4["frame"](this);
};
deferredNextFrame();
}
public function get application():IUIComponent{
return (IUIComponent(_document));
}
override public function removeChildAt(_arg1:int):DisplayObject{
noTopMostIndex--;
return (rawChildren_removeChildAt((applicationIndex + _arg1)));
}
mx_internal function rawChildren_removeChildAt(_arg1:int):DisplayObject{
var _local2:DisplayObject = super.getChildAt(_arg1);
removingChild(_local2);
super.removeChildAt(_arg1);
childRemoved(_local2);
return (_local2);
}
private function installCompiledResourceBundles():void{
var _local1:Object = this.info();
var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : _local1["currentDomain"];
var _local3:Array = _local1["compiledLocales"];
var _local4:Array = _local1["compiledResourceBundleNames"];
var _local5:IResourceManager = ResourceManager.getInstance();
_local5.installCompiledResourceBundles(_local2, _local3, _local4);
if (!_local5.localeChain){
_local5.localeChain = _local3;
};
}
mx_internal function removingChild(_arg1:DisplayObject):void{
_arg1.dispatchEvent(new FlexEvent(FlexEvent.REMOVE));
}
mx_internal function get applicationIndex():int{
return (_applicationIndex);
}
mx_internal function set toolTipIndex(_arg1:int):void{
var _local2:int = (_arg1 - _toolTipIndex);
_toolTipIndex = _arg1;
cursorIndex = (cursorIndex + _local2);
}
public function get cursorChildren():IChildList{
if (!topLevel){
return (_topLevelSystemManager.cursorChildren);
};
if (!_cursorChildren){
_cursorChildren = new SystemChildrenList(this, new QName(mx_internal, "toolTipIndex"), new QName(mx_internal, "cursorIndex"));
};
return (_cursorChildren);
}
public function get preloaderBackgroundImage():Object{
return (info()["backgroundImage"]);
}
public function set numModalWindows(_arg1:int):void{
_numModalWindows = _arg1;
}
public function get preloaderBackgroundAlpha():Number{
return (info()["backgroundAlpha"]);
}
mx_internal function rawChildren_getChildByName(_arg1:String):DisplayObject{
return (super.getChildByName(_arg1));
}
private function preloader_preloaderDoneHandler(_arg1:Event):void{
var _local2:IUIComponent = topLevelWindow;
preloader.removeEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler);
_popUpChildren.removeChild(preloader);
preloader = null;
mouseCatcher = new FlexSprite();
mouseCatcher.name = "mouseCatcher";
noTopMostIndex++;
super.addChildAt(mouseCatcher, 0);
resizeMouseCatcher();
if (!topLevel){
mouseCatcher.visible = false;
mask = mouseCatcher;
};
noTopMostIndex++;
super.addChildAt(DisplayObject(_local2), 1);
_local2.dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE));
dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE));
}
public function get preloaderBackgroundColor():uint{
var _local1:* = info()["backgroundColor"];
if (_local1 == undefined){
return (StyleManager.NOT_A_COLOR);
};
return (StyleManager.getColorName(_local1));
}
public function get topLevelSystemManager():ISystemManager{
if (topLevel){
return (this);
};
return (_topLevelSystemManager);
}
mx_internal function initialize():void{
var _local6:int;
var _local7:int;
var _local9:EmbeddedFontRegistry;
var _local13:Class;
var _local14:Object;
var _local15:RSLItem;
if (isStageRoot){
_width = stage.stageWidth;
_height = stage.stageHeight;
} else {
_width = loaderInfo.width;
_height = loaderInfo.height;
};
preloader = new Preloader();
preloader.addEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler);
preloader.addEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler);
if (!_popUpChildren){
_popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex"));
};
_popUpChildren.addChild(preloader);
var _local1:Array = info()["rsls"];
var _local2:Array = info()["cdRsls"];
var _local3:Boolean;
if (info()["usePreloader"] != undefined){
_local3 = info()["usePreloader"];
};
var _local4:Class = (info()["preloader"] as Class);
if (((_local3) && (!(_local4)))){
_local4 = DownloadProgressBar;
};
var _local5:Array = [];
if (((_local2) && ((_local2.length > 0)))){
_local13 = Class(getDefinitionByName("mx.core::CrossDomainRSLItem"));
_local6 = _local2.length;
_local7 = 0;
while (_local7 < _local6) {
_local14 = new _local13(_local2[_local7]["rsls"], _local2[_local7]["policyFiles"], _local2[_local7]["digests"], _local2[_local7]["types"], _local2[_local7]["isSigned"]);
_local5.push(_local14);
_local7++;
};
};
if (((!((_local1 == null))) && ((_local1.length > 0)))){
_local6 = _local1.length;
_local7 = 0;
while (_local7 < _local6) {
_local15 = new RSLItem(_local1[_local7].url);
_local5.push(_local15);
_local7++;
};
};
Singleton.registerClass("mx.resources::IResourceManager", Class(getDefinitionByName("mx.resources::ResourceManagerImpl")));
var _local8:IResourceManager = ResourceManager.getInstance();
Singleton.registerClass("mx.core::IEmbeddedFontRegistry", Class(getDefinitionByName("mx.core::EmbeddedFontRegistry")));
Singleton.registerClass("mx.styles::IStyleManager", Class(getDefinitionByName("mx.styles::StyleManagerImpl")));
Singleton.registerClass("mx.styles::IStyleManager2", Class(getDefinitionByName("mx.styles::StyleManagerImpl")));
var _local10:String = loaderInfo.parameters["localeChain"];
if (((!((_local10 == null))) && (!((_local10 == ""))))){
_local8.localeChain = _local10.split(",");
};
var _local11:String = loaderInfo.parameters["resourceModuleURLs"];
var _local12:Array = (_local11) ? _local11.split(",") : null;
preloader.initialize(_local3, _local4, preloaderBackgroundColor, preloaderBackgroundAlpha, preloaderBackgroundImage, preloaderBackgroundSize, (isStageRoot) ? stage.stageWidth : loaderInfo.width, (isStageRoot) ? stage.stageHeight : loaderInfo.height, null, null, _local5, _local12);
}
private function appCreationCompleteHandler(_arg1:FlexEvent):void{
var _local2:DisplayObjectContainer;
if (((!(topLevel)) && (parent))){
_local2 = parent.parent;
while (_local2) {
if ((_local2 is IInvalidating)){
IInvalidating(_local2).invalidateSize();
IInvalidating(_local2).invalidateDisplayList();
return;
};
_local2 = _local2.parent;
};
};
}
public function get measuredHeight():Number{
return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredHeight() : loaderInfo.height);
}
mx_internal function rawChildren_addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
addingChild(_arg1);
super.addChildAt(_arg1, _arg2);
childAdded(_arg1);
return (_arg1);
}
private function nextFrameTimerHandler(_arg1:TimerEvent):void{
if ((currentFrame + 1) <= framesLoaded){
nextFrame();
nextFrameTimer.removeEventListener(TimerEvent.TIMER, nextFrameTimerHandler);
nextFrameTimer.reset();
};
}
mx_internal function childRemoved(_arg1:DisplayObject):void{
if ((_arg1 is IUIComponent)){
IUIComponent(_arg1).parentChanged(null);
};
}
mx_internal function get noTopMostIndex():int{
return (_noTopMostIndex);
}
override public function get numChildren():int{
return ((noTopMostIndex - applicationIndex));
}
private function initializeTopLevelWindow(_arg1:Event):void{
var _local2:IUIComponent;
var _local3:DisplayObjectContainer;
initialized = true;
if (!parent){
return;
};
if (!topLevel){
_local3 = parent.parent;
if (!_local3){
return;
};
while (_local3) {
if ((_local3 is IUIComponent)){
_topLevelSystemManager = IUIComponent(_local3).systemManager;
break;
};
_local3 = _local3.parent;
};
};
addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, true);
if (((topLevel) && (stage))){
stage.addEventListener(Event.RESIZE, Stage_resizeHandler, false, 0, true);
};
_local2 = (topLevelWindow = IUIComponent(create()));
document = _local2;
if (document){
IEventDispatcher(_local2).addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
if (((topLevel) && (stage))){
LoaderConfig._url = loaderInfo.url;
LoaderConfig._parameters = loaderInfo.parameters;
_width = stage.stageWidth;
_height = stage.stageHeight;
IFlexDisplayObject(_local2).setActualSize(stage.stageWidth, stage.stageHeight);
} else {
IFlexDisplayObject(_local2).setActualSize(loaderInfo.width, loaderInfo.height);
};
if (preloader){
preloader.registerApplication(_local2);
};
addingChild(DisplayObject(_local2));
childAdded(DisplayObject(_local2));
} else {
document = this;
};
}
public function get numModalWindows():int{
return (_numModalWindows);
}
public function isTopLevelWindow(_arg1:DisplayObject):Boolean{
return ((((_arg1 is IUIComponent)) && ((IUIComponent(_arg1) == topLevelWindow))));
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
}
public function set explicitWidth(_arg1:Number):void{
_explicitWidth = _arg1;
}
private function preloader_initProgressHandler(_arg1:Event):void{
preloader.removeEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler);
deferredNextFrame();
}
public function get explicitWidth():Number{
return (_explicitWidth);
}
mx_internal function rawChildren_addChild(_arg1:DisplayObject):DisplayObject{
addingChild(_arg1);
super.addChild(_arg1);
childAdded(_arg1);
return (_arg1);
}
public static function getSWFRoot(_arg1:Object):DisplayObject{
var p:*;
var sm:ISystemManager;
var domain:ApplicationDomain;
var cls:Class;
var object = _arg1;
var className:String = getQualifiedClassName(object);
for (p in allSystemManagers) {
sm = (p as ISystemManager);
domain = sm.loaderInfo.applicationDomain;
try {
cls = Class(domain.getDefinition(className));
if ((object is cls)){
return ((sm as DisplayObject));
};
} catch(e:Error) {
};
};
return (null);
}
mx_internal static function registerInitCallback(_arg1:Function):void{
if (((!(allSystemManagers)) || (!(lastSystemManager)))){
return;
};
var _local2:SystemManager = lastSystemManager;
if (_local2.doneExecutingInitCallbacks){
_arg1(_local2);
} else {
_local2.initCallbackFunctions.push(_arg1);
};
}
}
}//package mx.managers
Section 687
//SystemManagerGlobals (mx.managers.SystemManagerGlobals)
package mx.managers {
public class SystemManagerGlobals {
public static var topLevelSystemManagers:Array = [];
public static var bootstrapLoaderInfoURL:String;
}
}//package mx.managers
Section 688
//SystemRawChildrenList (mx.managers.SystemRawChildrenList)
package mx.managers {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
public class SystemRawChildrenList implements IChildList {
private var owner:SystemManager;
mx_internal static const VERSION:String = "3.0.0.0";
public function SystemRawChildrenList(_arg1:SystemManager){
this.owner = _arg1;
}
public function getChildAt(_arg1:int):DisplayObject{
return (owner.mx_internal::rawChildren_getChildAt(_arg1));
}
public function addChild(_arg1:DisplayObject):DisplayObject{
return (owner.mx_internal::rawChildren_addChild(_arg1));
}
public function getChildIndex(_arg1:DisplayObject):int{
return (owner.mx_internal::rawChildren_getChildIndex(_arg1));
}
public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
var _local3 = owner;
_local3.mx_internal::rawChildren_setChildIndex(_arg1, _arg2);
}
public function getChildByName(_arg1:String):DisplayObject{
return (owner.mx_internal::rawChildren_getChildByName(_arg1));
}
public function removeChildAt(_arg1:int):DisplayObject{
return (owner.mx_internal::rawChildren_removeChildAt(_arg1));
}
public function get numChildren():int{
return (owner.mx_internal::$numChildren);
}
public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
return (owner.mx_internal::rawChildren_addChildAt(_arg1, _arg2));
}
public function getObjectsUnderPoint(_arg1:Point):Array{
return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1));
}
public function contains(_arg1:DisplayObject):Boolean{
return (owner.mx_internal::rawChildren_contains(_arg1));
}
public function removeChild(_arg1:DisplayObject):DisplayObject{
return (owner.mx_internal::rawChildren_removeChild(_arg1));
}
}
}//package mx.managers
Section 689
//ToolTipManager (mx.managers.ToolTipManager)
package mx.managers {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.effects.*;
public class ToolTipManager extends EventDispatcher {
mx_internal static const VERSION:String = "3.0.0.0";
private static var implClassDependency:ToolTipManagerImpl;
private static var _impl:IToolTipManager2;
mx_internal static function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void{
impl.registerToolTip(_arg1, _arg2, _arg3);
}
public static function get enabled():Boolean{
return (impl.enabled);
}
public static function set enabled(_arg1:Boolean):void{
impl.enabled = _arg1;
}
public static function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip{
return (impl.createToolTip(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public static function set hideDelay(_arg1:Number):void{
impl.hideDelay = _arg1;
}
public static function set showDelay(_arg1:Number):void{
impl.showDelay = _arg1;
}
public static function get showDelay():Number{
return (impl.showDelay);
}
public static function destroyToolTip(_arg1:IToolTip):void{
return (impl.destroyToolTip(_arg1));
}
public static function get scrubDelay():Number{
return (impl.scrubDelay);
}
public static function get toolTipClass():Class{
return (impl.toolTipClass);
}
mx_internal static function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void{
impl.registerErrorString(_arg1, _arg2, _arg3);
}
mx_internal static function sizeTip(_arg1:IToolTip):void{
impl.sizeTip(_arg1);
}
public static function set currentTarget(_arg1:DisplayObject):void{
impl.currentTarget = _arg1;
}
public static function set showEffect(_arg1:IAbstractEffect):void{
impl.showEffect = _arg1;
}
private static function get impl():IToolTipManager2{
if (!_impl){
_impl = IToolTipManager2(Singleton.getInstance("mx.managers::IToolTipManager2"));
};
return (_impl);
}
public static function get hideDelay():Number{
return (impl.hideDelay);
}
public static function set hideEffect(_arg1:IAbstractEffect):void{
impl.hideEffect = _arg1;
}
public static function set scrubDelay(_arg1:Number):void{
impl.scrubDelay = _arg1;
}
public static function get currentToolTip():IToolTip{
return (impl.currentToolTip);
}
public static function set currentToolTip(_arg1:IToolTip):void{
impl.currentToolTip = _arg1;
}
public static function get showEffect():IAbstractEffect{
return (impl.showEffect);
}
public static function get currentTarget():DisplayObject{
return (impl.currentTarget);
}
public static function get hideEffect():IAbstractEffect{
return (impl.hideEffect);
}
public static function set toolTipClass(_arg1:Class):void{
impl.toolTipClass = _arg1;
}
}
}//package mx.managers
Section 690
//ToolTipManagerImpl (mx.managers.ToolTipManagerImpl)
package mx.managers {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mx.styles.*;
import mx.controls.*;
import mx.effects.*;
import flash.utils.*;
import mx.validators.*;
public class ToolTipManagerImpl extends EventDispatcher implements IToolTipManager2 {
private var _enabled:Boolean;// = true
mx_internal var isError:Boolean;
private var _showDelay:Number;// = 500
private var _hideEffect:IAbstractEffect;
mx_internal var hideTimer:Timer;
private var _scrubDelay:Number;// = 100
private var _toolTipClass:Class;
mx_internal var currentText:String;
mx_internal var showTimer:Timer;
private var _currentToolTip:IToolTip;
mx_internal var scrubTimer:Timer;
mx_internal var previousTarget:DisplayObject;
private var _currentTarget:DisplayObject;
private var _showEffect:IAbstractEffect;
mx_internal var initialized:Boolean;// = false
private var _hideDelay:Number;// = 10000
mx_internal static const VERSION:String = "3.0.0.0";
private static var instance:IToolTipManager2;
public function ToolTipManagerImpl(){
_toolTipClass = ToolTip;
super();
if (instance){
throw (new Error("Instance already exists."));
};
}
mx_internal function systemManager_mouseDownHandler(_arg1:MouseEvent):void{
reset();
}
public function set showDelay(_arg1:Number):void{
_showDelay = _arg1;
}
mx_internal function hideEffectEnded():void{
var _local1:ToolTipEvent;
reset();
if (previousTarget){
_local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_END);
_local1.toolTip = currentToolTip;
previousTarget.dispatchEvent(_local1);
};
}
public function set scrubDelay(_arg1:Number):void{
_scrubDelay = _arg1;
}
public function get currentToolTip():IToolTip{
return (_currentToolTip);
}
private function mouseIsOver(_arg1:DisplayObject):Boolean{
if (((!(_arg1)) || (!(_arg1.stage)))){
return (false);
};
if ((((_arg1.stage.mouseX == 0)) && ((_arg1.stage.mouseY == 0)))){
return (false);
};
return (_arg1.hitTestPoint(_arg1.stage.mouseX, _arg1.stage.mouseY, true));
}
mx_internal function toolTipMouseOutHandler(_arg1:MouseEvent):void{
checkIfTargetChanged(_arg1.relatedObject);
}
public function get enabled():Boolean{
return (_enabled);
}
public function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip{
var _local6:ToolTip = new ToolTip();
var _local7:ISystemManager = (_arg5) ? _arg5.systemManager : ApplicationGlobals.application.systemManager;
_local7.toolTipChildren.addChild(_local6);
if (_arg4){
_local6.setStyle("styleName", "errorTip");
_local6.setStyle("borderStyle", _arg4);
};
_local6.text = _arg1;
sizeTip(_local6);
_local6.move(_arg2, _arg3);
return ((_local6 as IToolTip));
}
mx_internal function reset():void{
var _local1:ISystemManager;
showTimer.reset();
hideTimer.reset();
if (currentToolTip){
if (((showEffect) || (hideEffect))){
currentToolTip.removeEventListener(EffectEvent.EFFECT_END, effectEndHandler);
};
EffectManager.endEffectsForTarget(currentToolTip);
_local1 = currentToolTip.systemManager;
_local1.toolTipChildren.removeChild(DisplayObject(currentToolTip));
currentToolTip = null;
scrubTimer.delay = scrubDelay;
scrubTimer.reset();
if (scrubDelay > 0){
scrubTimer.delay = scrubDelay;
scrubTimer.start();
};
};
}
public function get toolTipClass():Class{
return (_toolTipClass);
}
public function set currentToolTip(_arg1:IToolTip):void{
_currentToolTip = _arg1;
}
private function hideImmediately(_arg1:DisplayObject):void{
checkIfTargetChanged(null);
}
mx_internal function showTip():void{
var _local2:ISystemManager;
var _local1:ToolTipEvent = new ToolTipEvent(ToolTipEvent.TOOL_TIP_SHOW);
_local1.toolTip = currentToolTip;
currentTarget.dispatchEvent(_local1);
if (isError){
currentTarget.addEventListener("change", changeHandler);
} else {
_local2 = getSystemManager(currentTarget);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, systemManager_mouseDownHandler);
};
currentToolTip.visible = true;
if (!showEffect){
showEffectEnded();
};
}
mx_internal function effectEndHandler(_arg1:EffectEvent):void{
if (_arg1.effectInstance.effect == showEffect){
showEffectEnded();
} else {
if (_arg1.effectInstance.effect == hideEffect){
hideEffectEnded();
};
};
}
public function get hideDelay():Number{
return (_hideDelay);
}
public function get currentTarget():DisplayObject{
return (_currentTarget);
}
mx_internal function showEffectEnded():void{
var _local1:ToolTipEvent;
if (hideDelay == 0){
hideTip();
} else {
if (hideDelay < Infinity){
hideTimer.delay = hideDelay;
hideTimer.start();
};
};
if (currentTarget){
_local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_SHOWN);
_local1.toolTip = currentToolTip;
currentTarget.dispatchEvent(_local1);
};
}
public function get hideEffect():IAbstractEffect{
return (_hideEffect);
}
mx_internal function changeHandler(_arg1:Event):void{
reset();
}
public function set enabled(_arg1:Boolean):void{
_enabled = _arg1;
}
mx_internal function errorTipMouseOverHandler(_arg1:MouseEvent):void{
checkIfTargetChanged(DisplayObject(_arg1.target));
}
public function get showDelay():Number{
return (_showDelay);
}
public function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void{
if (((!(_arg2)) && (_arg3))){
_arg1.addEventListener(MouseEvent.MOUSE_OVER, errorTipMouseOverHandler);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, errorTipMouseOutHandler);
if (mouseIsOver(_arg1)){
showImmediately(_arg1);
};
} else {
if (((_arg2) && (!(_arg3)))){
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, errorTipMouseOverHandler);
_arg1.removeEventListener(MouseEvent.MOUSE_OUT, errorTipMouseOutHandler);
if (mouseIsOver(_arg1)){
hideImmediately(_arg1);
};
};
};
}
mx_internal function initialize():void{
if (!showTimer){
showTimer = new Timer(0, 1);
showTimer.addEventListener(TimerEvent.TIMER, showTimer_timerHandler);
};
if (!hideTimer){
hideTimer = new Timer(0, 1);
hideTimer.addEventListener(TimerEvent.TIMER, hideTimer_timerHandler);
};
if (!scrubTimer){
scrubTimer = new Timer(0, 1);
};
initialized = true;
}
public function destroyToolTip(_arg1:IToolTip):void{
var _local2:ISystemManager = _arg1.systemManager;
_local2.toolTipChildren.removeChild(DisplayObject(_arg1));
}
public function get scrubDelay():Number{
return (_scrubDelay);
}
mx_internal function checkIfTargetChanged(_arg1:DisplayObject):void{
if (!enabled){
return;
};
findTarget(_arg1);
if (currentTarget != previousTarget){
targetChanged();
previousTarget = currentTarget;
};
}
public function set toolTipClass(_arg1:Class):void{
_toolTipClass = _arg1;
}
private function getGlobalBounds(_arg1:DisplayObject):Rectangle{
var _local2:Point = new Point(0, 0);
_local2 = _arg1.localToGlobal(_local2);
return (new Rectangle(_local2.x, _local2.y, _arg1.width, _arg1.height));
}
mx_internal function positionTip():void{
var _local1:Number;
var _local2:Number;
var _local5:Rectangle;
var _local6:Point;
var _local7:IToolTip;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local3:Number = currentToolTip.screen.width;
var _local4:Number = currentToolTip.screen.height;
if (isError){
_local5 = getGlobalBounds(currentTarget);
_local1 = (_local5.right + 4);
_local2 = (_local5.top - 1);
if ((_local1 + currentToolTip.width) > _local3){
_local8 = NaN;
_local9 = NaN;
_local1 = (_local5.left - 2);
if (((_local1 + currentToolTip.width) + 4) > _local3){
_local8 = ((_local3 - _local1) - 4);
_local9 = Object(toolTipClass).maxWidth;
Object(toolTipClass).maxWidth = _local8;
if ((currentToolTip is IStyleClient)){
IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipAbove");
};
currentToolTip["text"] = currentToolTip["text"];
Object(toolTipClass).maxWidth = _local9;
} else {
if ((currentToolTip is IStyleClient)){
IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipAbove");
};
currentToolTip["text"] = currentToolTip["text"];
};
if ((currentToolTip.height + 2) < _local5.top){
_local2 = (_local5.top - (currentToolTip.height + 2));
} else {
_local2 = (_local5.bottom + 2);
if (!isNaN(_local8)){
Object(toolTipClass).maxWidth = _local8;
};
if ((currentToolTip is IStyleClient)){
IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipBelow");
};
currentToolTip["text"] = currentToolTip["text"];
if (!isNaN(_local9)){
Object(toolTipClass).maxWidth = _local9;
};
};
};
sizeTip(currentToolTip);
_local6 = new Point(_local1, _local2);
_local7 = currentToolTip;
_local6 = DisplayObject(_local7).root.globalToLocal(_local6);
_local1 = _local6.x;
_local2 = _local6.y;
} else {
_local1 = (ApplicationGlobals.application.mouseX + 11);
_local2 = (ApplicationGlobals.application.mouseY + 22);
_local10 = currentToolTip.width;
if ((_local1 + _local10) > _local3){
_local1 = (_local3 - _local10);
};
_local11 = currentToolTip.height;
if ((_local2 + _local11) > _local4){
_local2 = (_local4 - _local11);
};
};
currentToolTip.move(_local1, _local2);
}
mx_internal function errorTipMouseOutHandler(_arg1:MouseEvent):void{
checkIfTargetChanged(_arg1.relatedObject);
}
mx_internal function findTarget(_arg1:DisplayObject):void{
while (_arg1) {
if ((_arg1 is IValidatorListener)){
currentText = IValidatorListener(_arg1).errorString;
if (((!((currentText == null))) && (!((currentText == ""))))){
currentTarget = _arg1;
isError = true;
return;
};
};
if ((_arg1 is IToolTipManagerClient)){
currentText = IToolTipManagerClient(_arg1).toolTip;
if (currentText != null){
currentTarget = _arg1;
isError = false;
return;
};
};
_arg1 = _arg1.parent;
};
currentText = null;
currentTarget = null;
}
public function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void{
if (((!(_arg2)) && (_arg3))){
_arg1.addEventListener(MouseEvent.MOUSE_OVER, toolTipMouseOverHandler);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, toolTipMouseOutHandler);
if (mouseIsOver(_arg1)){
showImmediately(_arg1);
};
} else {
if (((_arg2) && (!(_arg3)))){
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, toolTipMouseOverHandler);
_arg1.removeEventListener(MouseEvent.MOUSE_OUT, toolTipMouseOutHandler);
if (mouseIsOver(_arg1)){
hideImmediately(_arg1);
};
};
};
}
private function showImmediately(_arg1:DisplayObject):void{
var _local2:Number = ToolTipManager.showDelay;
ToolTipManager.showDelay = 0;
checkIfTargetChanged(_arg1);
ToolTipManager.showDelay = _local2;
}
public function set hideDelay(_arg1:Number):void{
_hideDelay = _arg1;
}
private function getSystemManager(_arg1:DisplayObject):ISystemManager{
return (((_arg1 is IUIComponent)) ? IUIComponent(_arg1).systemManager : null);
}
public function set currentTarget(_arg1:DisplayObject):void{
_currentTarget = _arg1;
}
public function sizeTip(_arg1:IToolTip):void{
if ((_arg1 is IInvalidating)){
IInvalidating(_arg1).validateNow();
};
_arg1.setActualSize(_arg1.getExplicitOrMeasuredWidth(), _arg1.getExplicitOrMeasuredHeight());
}
mx_internal function showTimer_timerHandler(_arg1:TimerEvent):void{
if (currentTarget){
createTip();
initializeTip();
positionTip();
showTip();
};
}
mx_internal function hideTimer_timerHandler(_arg1:TimerEvent):void{
hideTip();
}
public function set showEffect(_arg1:IAbstractEffect):void{
_showEffect = (_arg1 as IAbstractEffect);
}
public function set hideEffect(_arg1:IAbstractEffect):void{
_hideEffect = (_arg1 as IAbstractEffect);
}
mx_internal function targetChanged():void{
var _local1:ToolTipEvent;
if (!initialized){
initialize();
};
if (((previousTarget) && (currentToolTip))){
_local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_HIDE);
_local1.toolTip = currentToolTip;
previousTarget.dispatchEvent(_local1);
};
reset();
if (currentTarget){
if (currentText == ""){
return;
};
_local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_START);
currentTarget.dispatchEvent(_local1);
if ((((showDelay == 0)) || (scrubTimer.running))){
createTip();
initializeTip();
positionTip();
showTip();
} else {
showTimer.delay = showDelay;
showTimer.start();
};
};
}
mx_internal function initializeTip():void{
if ((currentToolTip is ToolTip)){
ToolTip(currentToolTip).text = currentText;
};
if (((isError) && ((currentToolTip is IStyleClient)))){
IStyleClient(currentToolTip).setStyle("styleName", "errorTip");
};
sizeTip(currentToolTip);
if ((currentToolTip is IStyleClient)){
if (showEffect){
IStyleClient(currentToolTip).setStyle("showEffect", showEffect);
};
if (hideEffect){
IStyleClient(currentToolTip).setStyle("hideEffect", hideEffect);
};
};
if (((showEffect) || (hideEffect))){
currentToolTip.addEventListener(EffectEvent.EFFECT_END, effectEndHandler);
};
}
public function get showEffect():IAbstractEffect{
return (_showEffect);
}
mx_internal function toolTipMouseOverHandler(_arg1:MouseEvent):void{
checkIfTargetChanged(DisplayObject(_arg1.target));
}
mx_internal function hideTip():void{
var _local1:ToolTipEvent;
var _local2:ISystemManager;
if (previousTarget){
_local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_HIDE);
_local1.toolTip = currentToolTip;
previousTarget.dispatchEvent(_local1);
};
if (currentToolTip){
currentToolTip.visible = false;
};
if (isError){
if (currentTarget){
currentTarget.removeEventListener("change", changeHandler);
};
} else {
if (previousTarget){
_local2 = getSystemManager(previousTarget);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, systemManager_mouseDownHandler);
};
};
if (!hideEffect){
hideEffectEnded();
};
}
mx_internal function createTip():void{
var _local1:ToolTipEvent = new ToolTipEvent(ToolTipEvent.TOOL_TIP_CREATE);
currentTarget.dispatchEvent(_local1);
if (_local1.toolTip){
currentToolTip = _local1.toolTip;
} else {
currentToolTip = new toolTipClass();
};
currentToolTip.visible = false;
var _local2:ISystemManager = getSystemManager(currentTarget);
_local2.toolTipChildren.addChild(DisplayObject(currentToolTip));
}
public static function getInstance():IToolTipManager2{
if (!instance){
instance = new (ToolTipManagerImpl);
};
return (instance);
}
}
}//package mx.managers
Section 691
//LoaderConfig (mx.messaging.config.LoaderConfig)
package mx.messaging.config {
import mx.core.*;
public class LoaderConfig {
mx_internal static const VERSION:String = "3.0.0.0";
mx_internal static var _url:String = null;
mx_internal static var _parameters:Object;
public static function get url():String{
return (_url);
}
public static function get parameters():Object{
return (_parameters);
}
}
}//package mx.messaging.config
Section 692
//IModuleInfo (mx.modules.IModuleInfo)
package mx.modules {
import mx.core.*;
import flash.events.*;
import flash.system.*;
public interface IModuleInfo extends IEventDispatcher {
function get ready():Boolean;
function get loaded():Boolean;
function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=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 693
//ModuleManager (mx.modules.ModuleManager)
package mx.modules {
import mx.core.*;
public class ModuleManager {
mx_internal static const VERSION:String = "3.0.0.0";
public static function getModule(_arg1:String):IModuleInfo{
return (getSingleton().getModule(_arg1));
}
private static function getSingleton():Object{
if (!ModuleManagerGlobals.managerSingleton){
ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl();
};
return (ModuleManagerGlobals.managerSingleton);
}
public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{
return (getSingleton().getAssociatedFactory(_arg1));
}
}
}//package mx.modules
import flash.display.*;
import mx.core.*;
import flash.events.*;
import mx.events.*;
import flash.system.*;
import flash.net.*;
import flash.utils.*;
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):void{
var _local3: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){
_local3 = new ModuleEvent(ModuleEvent.PROGRESS);
_local3.bytesLoaded = info.size;
_local3.bytesTotal = info.size;
dispatchEvent(_local3);
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
};
};
} else {
info.load(_arg1, _arg2);
};
};
}
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);
};
} catch(error:Error) {
};
if (_loaded){
try {
loader.close();
} catch(error:Error) {
};
};
try {
loader.unload();
} catch(error:Error) {
};
loader = null;
};
}
public function get size():int{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0);
}
public function get loaded():Boolean{
return ((limbo) ? false : _loaded);
}
public function release():void{
if (((_ready) && (!(limbo)))){
limbo = new Dictionary(true);
limbo[factoryInfo] = 1;
factoryInfo = null;
} else {
unload();
};
}
public function get error():Boolean{
return ((limbo) ? false : _error);
}
public function get factory():IFlexModuleFactory{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null);
}
public function completeHandler(_arg1:Event):void{
var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded;
_local2.bytesTotal = loader.contentLoaderInfo.bytesTotal;
dispatchEvent(_local2);
}
public function publish(_arg1:IFlexModuleFactory):void{
if (factoryInfo){
return;
};
if (_url.indexOf("published://") != 0){
return;
};
factoryInfo = new FactoryInfo();
factoryInfo.factory = _arg1;
_loaded = true;
_setup = true;
_ready = true;
_error = false;
dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS));
dispatchEvent(new ModuleEvent(ModuleEvent.READY));
}
public function initHandler(_arg1:Event):void{
var moduleEvent:ModuleEvent;
var event = _arg1;
factoryInfo = new FactoryInfo();
try {
factoryInfo.factory = (loader.content as IFlexModuleFactory);
} catch(error:Error) {
};
if (!factoryInfo.factory){
moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable);
moduleEvent.bytesLoaded = 0;
moduleEvent.bytesTotal = 0;
moduleEvent.errorText = "SWF is not a loadable module";
dispatchEvent(moduleEvent);
return;
};
loader.content.addEventListener("ready", readyHandler);
try {
factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain;
} catch(error:Error) {
};
_setup = true;
dispatchEvent(new ModuleEvent(ModuleEvent.SETUP));
}
public function resurrect():void{
var _local1:Object;
if (((!(factoryInfo)) && (limbo))){
for (_local1 in limbo) {
factoryInfo = (_local1 as FactoryInfo);
break;
};
limbo = null;
};
if (!factoryInfo){
if (_loaded){
dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
};
loader = null;
_loaded = false;
_setup = false;
_ready = false;
_error = false;
};
}
public function errorHandler(_arg1:ErrorEvent):void{
_error = true;
var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local2.bytesLoaded = 0;
_local2.bytesTotal = 0;
_local2.errorText = _arg1.text;
dispatchEvent(_local2);
}
public function get ready():Boolean{
return ((limbo) ? false : _ready);
}
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):void{
if (_loaded){
return;
};
_loaded = true;
limbo = null;
if (_url.indexOf("published://") == 0){
return;
};
var _local3:URLRequest = new URLRequest(_url);
var _local4:LoaderContext = new LoaderContext();
_local4.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain);
_local4.securityDomain = _arg2;
if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){
_local4.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(_local3, _local4);
}
public function get url():String{
return (_url);
}
public function get applicationDomain():ApplicationDomain{
return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null);
}
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) ? false : _setup);
}
public function unload():void{
clearLoader();
if (_loaded){
dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD));
};
limbo = null;
factoryInfo = null;
_loaded = false;
_setup = false;
_ready = false;
_error = false;
}
}
class FactoryInfo {
public var bytesTotal:int;// = 0
public var factory:IFlexModuleFactory;
public var applicationDomain:ApplicationDomain;
private function FactoryInfo(){
}
}
Section 694
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals)
package mx.modules {
public class ModuleManagerGlobals {
public static var managerSingleton:Object = null;
}
}//package mx.modules
Section 695
//DownloadProgressBar (mx.preloaders.DownloadProgressBar)
package mx.preloaders {
import flash.display.*;
import flash.geom.*;
import mx.core.*;
import flash.text.*;
import flash.events.*;
import mx.events.*;
import flash.system.*;
import mx.graphics.*;
import flash.net.*;
import flash.utils.*;
public class DownloadProgressBar extends Sprite implements IPreloaderDisplay {
protected var MINIMUM_DISPLAY_TIME:uint;// = 0
private var _barFrameRect:RoundedRectangle;
private var _stageHeight:Number;// = 375
private var _stageWidth:Number;// = 500
private var _percentRect:Rectangle;
private var _percentObj:TextField;
private var _downloadingLabel:String;// = "Loading"
private var _showProgressBar:Boolean;// = true
private var _yOffset:Number;// = 20
private var _initProgressCount:uint;// = 0
private var _barSprite:Sprite;
private var _visible:Boolean;// = false
private var _barRect:RoundedRectangle;
private var _showingDisplay:Boolean;// = false
private var _backgroundSize:String;// = ""
private var _initProgressTotal:uint;// = 12
private var _startedInit:Boolean;// = false
private var _showLabel:Boolean;// = true
private var _value:Number;// = 0
private var _labelRect:Rectangle;
private var _backgroundImage:Object;
private var _backgroundAlpha:Number;// = 1
private var _backgroundColor:uint;
private var _startedLoading:Boolean;// = false
private var _showPercentage:Boolean;// = false
private var _barFrameSprite:Sprite;
protected var DOWNLOAD_PERCENTAGE:uint;// = 60
private var _displayStartCount:uint;// = 0
private var _labelObj:TextField;
private var _borderRect:RoundedRectangle;
private var _maximum:Number;// = 0
private var _displayTime:int;
private var _label:String;// = ""
private var _preloader:Sprite;
private var _xOffset:Number;// = 20
private var _startTime:int;
mx_internal static const VERSION:String = "3.0.0.0";
private static var _initializingLabel:String = "Initializing";
public function DownloadProgressBar(){
_labelRect = labelRect;
_percentRect = percentRect;
_borderRect = borderRect;
_barFrameRect = barFrameRect;
_barRect = barRect;
super();
}
protected function getPercentLoaded(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
if ((((((((_arg1 == 0)) || ((_arg2 == 0)))) || (isNaN(_arg2)))) || (isNaN(_arg1)))){
return (0);
};
_local3 = ((100 * _arg1) / _arg2);
if (((isNaN(_local3)) || ((_local3 <= 0)))){
return (0);
};
if (_local3 > 99){
return (99);
};
return (Math.round(_local3));
}
protected function get labelFormat():TextFormat{
var _local1:TextFormat = new TextFormat();
_local1.color = 0x333333;
_local1.font = "Verdana";
_local1.size = 10;
return (_local1);
}
private function calcScale():void{
var _local1:Number;
if ((((stageWidth < 160)) || ((stageHeight < 120)))){
scaleX = 1;
scaleY = 1;
} else {
if ((((stageWidth < 240)) || ((stageHeight < 150)))){
createChildren();
_local1 = Math.min((stageWidth / 240), (stageHeight / 150));
scaleX = _local1;
scaleY = _local1;
} else {
createChildren();
};
};
}
protected function get percentRect():Rectangle{
return (new Rectangle(108, 4, 34, 16));
}
protected function set showLabel(_arg1:Boolean):void{
_showLabel = _arg1;
draw();
}
private function calcBackgroundSize():Number{
var _local2:int;
var _local1:Number = NaN;
if (backgroundSize){
_local2 = backgroundSize.indexOf("%");
if (_local2 != -1){
_local1 = Number(backgroundSize.substr(0, _local2));
};
};
return (_local1);
}
private function show():void{
_showingDisplay = true;
calcScale();
draw();
_displayTime = getTimer();
}
private function loadBackgroundImage(_arg1:Object):void{
var cls:Class;
var newStyleObj:DisplayObject;
var loader:Loader;
var loaderContext:LoaderContext;
var classOrString = _arg1;
if (((classOrString) && ((classOrString as Class)))){
cls = Class(classOrString);
initBackgroundImage(new (cls));
} else {
if (((classOrString) && ((classOrString is String)))){
try {
cls = Class(getDefinitionByName(String(classOrString)));
} catch(e:Error) {
};
if (cls){
newStyleObj = new (cls);
initBackgroundImage(newStyleObj);
} else {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_completeHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loader_ioErrorHandler);
loaderContext = new LoaderContext();
loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader.load(new URLRequest(String(classOrString)), loaderContext);
};
};
};
}
protected function set showPercentage(_arg1:Boolean):void{
_showPercentage = _arg1;
draw();
}
protected function get barFrameRect():RoundedRectangle{
return (new RoundedRectangle(14, 40, 154, 4));
}
private function loader_ioErrorHandler(_arg1:IOErrorEvent):void{
}
protected function rslErrorHandler(_arg1:RSLEvent):void{
_preloader.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
_preloader.removeEventListener(Event.COMPLETE, completeHandler);
_preloader.removeEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler);
_preloader.removeEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler);
_preloader.removeEventListener(RSLEvent.RSL_ERROR, rslErrorHandler);
_preloader.removeEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler);
_preloader.removeEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler);
if (!_showingDisplay){
show();
_showingDisplay = true;
};
label = ((("RSL Error " + (_arg1.rslIndex + 1)) + " of ") + _arg1.rslTotal);
var _local2:ErrorField = new ErrorField(this.parent);
_local2.show(_arg1.errorText);
}
protected function rslCompleteHandler(_arg1:RSLEvent):void{
label = ((("Loaded library " + _arg1.rslIndex) + " of ") + _arg1.rslTotal);
}
protected function get borderRect():RoundedRectangle{
return (new RoundedRectangle(0, 0, 182, 60, 4));
}
protected function showDisplayForDownloading(_arg1:int, _arg2:ProgressEvent):Boolean{
return ((((_arg1 > 700)) && ((_arg2.bytesLoaded < (_arg2.bytesTotal / 2)))));
}
protected function createChildren():void{
var _local2:TextField;
var _local3:TextField;
var _local1:Graphics = graphics;
if (backgroundColor != 4294967295){
_local1.beginFill(backgroundColor, backgroundAlpha);
_local1.drawRect(0, 0, stageWidth, stageHeight);
};
if (backgroundImage != null){
loadBackgroundImage(backgroundImage);
};
_barFrameSprite = new Sprite();
_barSprite = new Sprite();
addChild(_barFrameSprite);
addChild(_barSprite);
_local1.beginFill(0xCCCCCC, 0.4);
_local1.drawRoundRect(calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height, (_borderRect.cornerRadius * 2), (_borderRect.cornerRadius * 2));
_local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2)));
_local1.endFill();
_local1.beginFill(0xCCCCCC, 0.4);
_local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2)));
_local1.endFill();
var _local4:Graphics = _barFrameSprite.graphics;
var _local5:Matrix = new Matrix();
_local5.createGradientBox(_barFrameRect.width, _barFrameRect.height, (Math.PI / 2), calcX(_barFrameRect.x), calcY(_barFrameRect.y));
_local4.beginGradientFill(GradientType.LINEAR, [6054502, 11909306], [1, 1], [0, 0xFF], _local5);
_local4.drawRoundRect(calcX(_barFrameRect.x), calcY(_barFrameRect.y), _barFrameRect.width, _barFrameRect.height, (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2));
_local4.drawRoundRect(calcX((_barFrameRect.x + 1)), calcY((_barFrameRect.y + 1)), (_barFrameRect.width - 2), (_barFrameRect.height - 2), (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2));
_local4.endFill();
_labelObj = new TextField();
_labelObj.x = calcX(_labelRect.x);
_labelObj.y = calcY(_labelRect.y);
_labelObj.width = _labelRect.width;
_labelObj.height = _labelRect.height;
_labelObj.selectable = false;
_labelObj.defaultTextFormat = labelFormat;
addChild(_labelObj);
_percentObj = new TextField();
_percentObj.x = calcX(_percentRect.x);
_percentObj.y = calcY(_percentRect.y);
_percentObj.width = _percentRect.width;
_percentObj.height = _percentRect.height;
_percentObj.selectable = false;
_percentObj.defaultTextFormat = percentFormat;
addChild(_percentObj);
var _local6:RectangularDropShadow = new RectangularDropShadow();
_local6.color = 0;
_local6.angle = 90;
_local6.alpha = 0.6;
_local6.distance = 2;
_local6.tlRadius = (_local6.trRadius = (_local6.blRadius = (_local6.brRadius = _borderRect.cornerRadius)));
_local6.drawShadow(_local1, calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height);
_local1.lineStyle(1, 0xFFFFFF, 0.3);
_local1.moveTo((calcX(_borderRect.x) + _borderRect.cornerRadius), calcY(_borderRect.y));
_local1.lineTo(((calcX(_borderRect.x) - _borderRect.cornerRadius) + _borderRect.width), calcY(_borderRect.y));
}
private function draw():void{
var _local1:Number;
if (_startedLoading){
if (!_startedInit){
_local1 = Math.round(((getPercentLoaded(_value, _maximum) * DOWNLOAD_PERCENTAGE) / 100));
} else {
_local1 = Math.round((((getPercentLoaded(_value, _maximum) * (100 - DOWNLOAD_PERCENTAGE)) / 100) + DOWNLOAD_PERCENTAGE));
};
} else {
_local1 = getPercentLoaded(_value, _maximum);
};
if (_labelObj){
_labelObj.text = _label;
};
if (_percentObj){
if (!_showPercentage){
_percentObj.visible = false;
_percentObj.text = "";
} else {
_percentObj.text = (String(_local1) + "%");
};
};
if (((_barSprite) && (_barFrameSprite))){
if (!_showProgressBar){
_barSprite.visible = false;
_barFrameSprite.visible = false;
} else {
drawProgressBar(_local1);
};
};
}
private function timerHandler(_arg1:Event=null):void{
dispatchEvent(new Event(Event.COMPLETE));
}
private function hide():void{
}
public function get backgroundSize():String{
return (_backgroundSize);
}
protected function center(_arg1:Number, _arg2:Number):void{
_xOffset = Math.floor(((_arg1 - _borderRect.width) / 2));
_yOffset = Math.floor(((_arg2 - _borderRect.height) / 2));
}
protected function progressHandler(_arg1:ProgressEvent):void{
var _local2:uint = _arg1.bytesLoaded;
var _local3:uint = _arg1.bytesTotal;
var _local4:int = (getTimer() - _startTime);
if (((_showingDisplay) || (showDisplayForDownloading(_local4, _arg1)))){
if (!_startedLoading){
show();
label = downloadingLabel;
_startedLoading = true;
};
setProgress(_arg1.bytesLoaded, _arg1.bytesTotal);
};
}
protected function initProgressHandler(_arg1:Event):void{
var _local3:Number;
var _local2:int = (getTimer() - _startTime);
_initProgressCount++;
if (((!(_showingDisplay)) && (showDisplayForInit(_local2, _initProgressCount)))){
_displayStartCount = _initProgressCount;
show();
} else {
if (_showingDisplay){
if (!_startedInit){
_startedInit = true;
label = initializingLabel;
};
_local3 = ((100 * _initProgressCount) / (_initProgressTotal - _displayStartCount));
setProgress(_local3, 100);
};
};
}
protected function set downloadingLabel(_arg1:String):void{
_downloadingLabel = _arg1;
}
public function get stageWidth():Number{
return (_stageWidth);
}
protected function get showPercentage():Boolean{
return (_showPercentage);
}
override public function get visible():Boolean{
return (_visible);
}
public function set stageHeight(_arg1:Number):void{
_stageHeight = _arg1;
}
public function initialize():void{
_startTime = getTimer();
center(stageWidth, stageHeight);
}
protected function rslProgressHandler(_arg1:RSLEvent):void{
}
protected function get barRect():RoundedRectangle{
return (new RoundedRectangle(14, 39, 154, 6, 0));
}
protected function get percentFormat():TextFormat{
var _local1:TextFormat = new TextFormat();
_local1.align = "right";
_local1.color = 0;
_local1.font = "Verdana";
_local1.size = 10;
return (_local1);
}
public function set backgroundImage(_arg1:Object):void{
_backgroundImage = _arg1;
}
private function calcX(_arg1:Number):Number{
return ((_arg1 + _xOffset));
}
private function calcY(_arg1:Number):Number{
return ((_arg1 + _yOffset));
}
public function set backgroundAlpha(_arg1:Number):void{
_backgroundAlpha = _arg1;
}
private function initCompleteHandler(_arg1:Event):void{
var _local3:Timer;
var _local2:int = (getTimer() - _displayTime);
if (((_showingDisplay) && ((_local2 < MINIMUM_DISPLAY_TIME)))){
_local3 = new Timer((MINIMUM_DISPLAY_TIME - _local2), 1);
_local3.addEventListener(TimerEvent.TIMER, timerHandler);
_local3.start();
} else {
timerHandler();
};
}
public function set backgroundColor(_arg1:uint):void{
_backgroundColor = _arg1;
}
private function initBackgroundImage(_arg1:DisplayObject):void{
var _local7:Number;
var _local8:Number;
var _local9:Number;
addChildAt(_arg1, 0);
var _local2:Number = _arg1.width;
var _local3:Number = _arg1.height;
var _local4:Number = calcBackgroundSize();
if (isNaN(_local4)){
_local7 = 1;
_local8 = 1;
} else {
_local9 = (_local4 * 0.01);
_local7 = ((_local9 * stageWidth) / _local2);
_local8 = ((_local9 * stageHeight) / _local3);
};
_arg1.scaleX = _local7;
_arg1.scaleY = _local8;
var _local5:Number = Math.round((0.5 * (stageWidth - (_local2 * _local7))));
var _local6:Number = Math.round((0.5 * (stageHeight - (_local3 * _local8))));
_arg1.x = _local5;
_arg1.y = _local6;
if (!isNaN(backgroundAlpha)){
_arg1.alpha = backgroundAlpha;
};
}
public function set backgroundSize(_arg1:String):void{
_backgroundSize = _arg1;
}
protected function showDisplayForInit(_arg1:int, _arg2:int):Boolean{
return ((((_arg1 > 300)) && ((_arg2 == 2))));
}
protected function get downloadingLabel():String{
return (_downloadingLabel);
}
private function loader_completeHandler(_arg1:Event):void{
var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader);
initBackgroundImage(_local2);
}
protected function setProgress(_arg1:Number, _arg2:Number):void{
if (((((((!(isNaN(_arg1))) && (!(isNaN(_arg2))))) && ((_arg1 >= 0)))) && ((_arg2 > 0)))){
_value = Number(_arg1);
_maximum = Number(_arg2);
draw();
};
}
public function get stageHeight():Number{
return (_stageHeight);
}
public function get backgroundImage():Object{
return (_backgroundImage);
}
public function get backgroundAlpha():Number{
if (!isNaN(_backgroundAlpha)){
return (_backgroundAlpha);
};
return (1);
}
private function drawProgressBar(_arg1:Number):void{
var _local11:Number;
var _local2:Graphics = _barSprite.graphics;
_local2.clear();
var _local3:Array = [0xFFFFFF, 0xFFFFFF];
var _local4:Array = [0, 0xFF];
var _local5:Matrix = new Matrix();
var _local6:Number = ((_barRect.width * _arg1) / 100);
var _local7:Number = (_local6 / 2);
var _local8:Number = (_barRect.height - 4);
var _local9:Number = calcX(_barRect.x);
var _local10:Number = (calcY(_barRect.y) + 2);
_local5.createGradientBox(_local7, _local8, 0, _local9, _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.39, 0.85], _local4, _local5);
_local2.drawRect(_local9, _local10, _local7, _local8);
_local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.85, 1], _local4, _local5);
_local2.drawRect((_local9 + _local7), _local10, _local7, _local8);
_local7 = (_local6 / 3);
_local8 = _barRect.height;
_local10 = calcY(_barRect.y);
_local11 = ((_local10 + _local8) - 1);
_local5.createGradientBox(_local7, _local8, 0, _local9, _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.05, 0.15], _local4, _local5);
_local2.drawRect(_local9, _local10, _local7, 1);
_local2.drawRect(_local9, _local11, _local7, 1);
_local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.25], _local4, _local5);
_local2.drawRect((_local9 + _local7), _local10, _local7, 1);
_local2.drawRect((_local9 + _local7), _local11, _local7, 1);
_local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.25, 0.1], _local4, _local5);
_local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1);
_local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1);
_local7 = (_local6 / 3);
_local8 = _barRect.height;
_local10 = (calcY(_barRect.y) + 1);
_local11 = ((calcY(_barRect.y) + _local8) - 2);
_local5.createGradientBox(_local7, _local8, 0, _local9, _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.3], _local4, _local5);
_local2.drawRect(_local9, _local10, _local7, 1);
_local2.drawRect(_local9, _local11, _local7, 1);
_local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.3, 0.4], _local4, _local5);
_local2.drawRect((_local9 + _local7), _local10, _local7, 1);
_local2.drawRect((_local9 + _local7), _local11, _local7, 1);
_local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10);
_local2.beginGradientFill(GradientType.LINEAR, _local3, [0.4, 0.25], _local4, _local5);
_local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1);
_local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1);
}
public function get backgroundColor():uint{
return (_backgroundColor);
}
public function set stageWidth(_arg1:Number):void{
_stageWidth = _arg1;
}
protected function completeHandler(_arg1:Event):void{
}
protected function set label(_arg1:String):void{
if (!(_arg1 is Function)){
_label = _arg1;
};
draw();
}
public function set preloader(_arg1:Sprite):void{
_preloader = _arg1;
_arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler);
_arg1.addEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler);
_arg1.addEventListener(RSLEvent.RSL_ERROR, rslErrorHandler);
_arg1.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler);
_arg1.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler);
}
protected function get label():String{
return (_label);
}
protected function get labelRect():Rectangle{
return (new Rectangle(14, 17, 100, 16));
}
override public function set visible(_arg1:Boolean):void{
if (((!(_visible)) && (_arg1))){
show();
} else {
if (((_visible) && (!(_arg1)))){
hide();
};
};
_visible = _arg1;
}
protected function get showLabel():Boolean{
return (_showLabel);
}
public static function get initializingLabel():String{
return (_initializingLabel);
}
public static function set initializingLabel(_arg1:String):void{
_initializingLabel = _arg1;
}
}
}//package mx.preloaders
import flash.display.*;
import flash.text.*;
import flash.system.*;
class ErrorField extends Sprite {
private const TEXT_MARGIN_PX:int = 10;
private const MAX_WIDTH_INCHES:int = 6;
private const MIN_WIDTH_INCHES:int = 2;
private var parentContainer:DisplayObjectContainer;
private function ErrorField(_arg1:DisplayObjectContainer){
this.parentContainer = _arg1;
}
public function show(_arg1:String):void{
if ((((_arg1 == null)) || ((_arg1.length == 0)))){
return;
};
var _local2:Stage = parentContainer.stage;
var _local3:TextField = new TextField();
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.multiline = true;
_local3.wordWrap = true;
_local3.background = true;
_local3.defaultTextFormat = labelFormat;
_local3.text = _arg1;
_local3.width = Math.max((MIN_WIDTH_INCHES * Capabilities.screenDPI), (_local2.stageWidth - (TEXT_MARGIN_PX * 2)));
_local3.width = Math.min((MAX_WIDTH_INCHES * Capabilities.screenDPI), _local3.width);
_local3.y = Math.max(0, ((_local2.stageHeight - TEXT_MARGIN_PX) - _local3.height));
_local3.x = ((_local2.stageWidth - _local3.width) / 2);
parentContainer.addChild(this);
this.addChild(_local3);
}
protected function get labelFormat():TextFormat{
var _local1:TextFormat = new TextFormat();
_local1.color = 0;
_local1.font = "Verdana";
_local1.size = 10;
return (_local1);
}
}
Section 696
//IPreloaderDisplay (mx.preloaders.IPreloaderDisplay)
package mx.preloaders {
import flash.display.*;
import flash.events.*;
public interface IPreloaderDisplay extends IEventDispatcher {
function set backgroundAlpha(_arg1:Number):void;
function get stageHeight():Number;
function get stageWidth():Number;
function set backgroundColor(_arg1:uint):void;
function set preloader(_arg1:Sprite):void;
function get backgroundImage():Object;
function get backgroundSize():String;
function get backgroundAlpha():Number;
function set stageHeight(_arg1:Number):void;
function get backgroundColor():uint;
function set stageWidth(_arg1:Number):void;
function set backgroundImage(_arg1:Object):void;
function set backgroundSize(_arg1:String):void;
function initialize():void;
}
}//package mx.preloaders
Section 697
//Preloader (mx.preloaders.Preloader)
package mx.preloaders {
import flash.display.*;
import mx.core.*;
import flash.events.*;
import mx.events.*;
import flash.utils.*;
public class Preloader extends Sprite {
private var app:IEventDispatcher;// = null
private var showDisplay:Boolean;
private var timer:Timer;
private var rslDone:Boolean;// = false
private var displayClass:IPreloaderDisplay;// = null
private var rslListLoader:RSLListLoader;
mx_internal static const VERSION:String = "3.0.0.0";
private function getByteValues():Object{
var _local1:LoaderInfo = root.loaderInfo;
var _local2:int = _local1.bytesLoaded;
var _local3:int = _local1.bytesTotal;
var _local4:int = (rslListLoader) ? rslListLoader.getItemCount() : 0;
var _local5:int;
while (_local5 < _local4) {
_local2 = (_local2 + rslListLoader.getItem(_local5).loaded);
_local3 = (_local3 + rslListLoader.getItem(_local5).total);
_local5++;
};
return ({loaded:_local2, total:_local3});
}
private function appProgressHandler(_arg1:Event):void{
dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
}
private function dispatchAppEndEvent(_arg1:Object=null):void{
dispatchEvent(new FlexEvent(FlexEvent.INIT_COMPLETE));
if (!showDisplay){
displayClassCompleteHandler(null);
};
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
}
private function appCreationCompleteHandler(_arg1:FlexEvent):void{
dispatchAppEndEvent();
}
mx_internal function rslErrorHandler(_arg1:ErrorEvent):void{
var _local2:int = rslListLoader.getIndex();
var _local3:RSLItem = rslListLoader.getItem(_local2);
var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR);
_local4.bytesLoaded = 0;
_local4.bytesTotal = 0;
_local4.rslIndex = _local2;
_local4.rslTotal = rslListLoader.getItemCount();
_local4.url = _local3.urlRequest;
_local4.errorText = decodeURI(_arg1.text);
dispatchEvent(_local4);
}
public function initialize(_arg1:Boolean, _arg2:Class, _arg3:uint, _arg4:Number, _arg5:Object, _arg6:String, _arg7:Number, _arg8:Number, _arg9:Array=null, _arg10:Array=null, _arg11:Array=null, _arg12:Array=null):void{
var _local13:int;
var _local14:int;
var _local15:RSLItem;
var _local16:ResourceModuleRSLItem;
if (((((!((_arg9 == null))) || (!((_arg10 == null))))) && (!((_arg11 == null))))){
throw (new Error("RSLs may only be specified by using libs and sizes or rslList, not both."));
};
root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
if (((_arg9) && ((_arg9.length > 0)))){
if (_arg11 == null){
_arg11 = [];
};
_local13 = _arg9.length;
_local14 = 0;
while (_local14 < _local13) {
_local15 = new RSLItem(_arg9[_local14]);
_arg11.push(_local15);
_local14++;
};
};
if (((_arg12) && ((_arg12.length > 0)))){
_local13 = _arg12.length;
_local14 = 0;
while (_local14 < _local13) {
_local16 = new ResourceModuleRSLItem(_arg12[_local14]);
_arg11.push(_local16);
_local14++;
};
};
rslListLoader = new RSLListLoader(_arg11);
this.showDisplay = _arg1;
timer = new Timer(10);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
if (_arg1){
displayClass = new (_arg2);
displayClass.addEventListener(Event.COMPLETE, displayClassCompleteHandler);
addChild(DisplayObject(displayClass));
displayClass.backgroundColor = _arg3;
displayClass.backgroundAlpha = _arg4;
displayClass.backgroundImage = _arg5;
displayClass.backgroundSize = _arg6;
displayClass.stageWidth = _arg7;
displayClass.stageHeight = _arg8;
displayClass.initialize();
displayClass.preloader = this;
};
if (rslListLoader.getItemCount() > 0){
rslListLoader.load(mx_internal::rslProgressHandler, mx_internal::rslCompleteHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler);
} else {
rslDone = true;
};
}
mx_internal function rslProgressHandler(_arg1:ProgressEvent):void{
var _local2:int = rslListLoader.getIndex();
var _local3:RSLItem = rslListLoader.getItem(_local2);
var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_PROGRESS);
_local4.bytesLoaded = _arg1.bytesLoaded;
_local4.bytesTotal = _arg1.bytesTotal;
_local4.rslIndex = _local2;
_local4.rslTotal = rslListLoader.getItemCount();
_local4.url = _local3.urlRequest;
dispatchEvent(_local4);
}
public function registerApplication(_arg1:IEventDispatcher):void{
_arg1.addEventListener("validatePropertiesComplete", appProgressHandler);
_arg1.addEventListener("validateSizeComplete", appProgressHandler);
_arg1.addEventListener("validateDisplayListComplete", appProgressHandler);
_arg1.addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
this.app = _arg1;
}
mx_internal function rslCompleteHandler(_arg1:Event):void{
var _local2:int = rslListLoader.getIndex();
var _local3:RSLItem = rslListLoader.getItem(_local2);
var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_COMPLETE);
_local4.bytesLoaded = _local3.total;
_local4.bytesTotal = _local3.total;
_local4.rslIndex = _local2;
_local4.rslTotal = rslListLoader.getItemCount();
_local4.url = _local3.urlRequest;
dispatchEvent(_local4);
rslDone = ((_local2 + 1) == _local4.rslTotal);
}
private function timerHandler(_arg1:TimerEvent):void{
if (!root){
return;
};
var _local2:Object = getByteValues();
var _local3:int = _local2.loaded;
var _local4:int = _local2.total;
dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, _local3, _local4));
if (((rslDone) && ((((((((_local3 >= _local4)) && ((_local4 > 0)))) || ((((_local4 == 0)) && ((_local3 > 0)))))) || ((((((root is MovieClip)) && ((MovieClip(root).totalFrames > 2)))) && ((MovieClip(root).framesLoaded >= 2)))))))){
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.reset();
dispatchEvent(new Event(Event.COMPLETE));
dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
};
}
private function displayClassCompleteHandler(_arg1:Event):void{
if (displayClass){
displayClass.removeEventListener(Event.COMPLETE, displayClassCompleteHandler);
};
if (root){
root.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
};
if (app){
app.removeEventListener("validatePropertiesComplete", appProgressHandler);
app.removeEventListener("validateSizeComplete", appProgressHandler);
app.removeEventListener("validateDisplayListComplete", appProgressHandler);
app.removeEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
app = null;
};
dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DONE));
}
}
}//package mx.preloaders
Section 698
//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 699
//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 findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle;
function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number;
}
}//package mx.resources
Section 700
//IResourceModule (mx.resources.IResourceModule)
package mx.resources {
public interface IResourceModule {
function get resourceBundles():Array;
}
}//package mx.resources
Section 701
//ResourceBundle (mx.resources.ResourceBundle)
package mx.resources {
import mx.core.*;
import flash.system.*;
import mx.utils.*;
public class ResourceBundle implements IResourceBundle {
mx_internal var _locale:String;
private var _content:Object;
mx_internal var _bundleName:String;
mx_internal static const VERSION:String = "3.0.0.0";
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 702
//ResourceManager (mx.resources.ResourceManager)
package mx.resources {
import mx.core.*;
public class ResourceManager {
mx_internal static const VERSION:String = "3.0.0.0";
private static var implClassDependency:ResourceManagerImpl;
private static var instance:IResourceManager;
public static function getInstance():IResourceManager{
if (!instance){
instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager"));
};
return (instance);
}
}
}//package mx.resources
Section 703
//ResourceManagerImpl (mx.resources.ResourceManagerImpl)
package mx.resources {
import mx.core.*;
import flash.events.*;
import mx.events.*;
import flash.system.*;
import mx.modules.*;
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.0.0.0";
private static var instance:IResourceManager;
public function ResourceManagerImpl(){
localeMap = {};
resourceModules = {};
super();
}
public function get localeChain():Array{
return (_localeChain);
}
public function set localeChain(_arg1:Array):void{
_localeChain = _arg1;
update();
}
public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{
var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3);
if (!_local4){
return (null);
};
var _local5:* = _local4.content[_arg2];
var _local6:Array = String(_local5).split(",");
var _local7:int = _local6.length;
var _local8:int;
while (_local8 < _local7) {
_local6[_local8] = StringUtil.trim(_local6[_local8]);
_local8++;
};
return (_local6);
}
mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{
var _local4:String;
var _local5:String = _arg3;
var _local6:int = _arg3.indexOf(":");
if (_local6 != -1){
_local4 = _arg3.substring(0, _local6);
_local5 = _arg3.substring((_local6 + 1));
};
if (getResourceBundle(_arg2, _arg3)){
return;
};
var _local7 = (((_arg2 + "$") + _local5) + "_properties");
if (_local4 != null){
_local7 = ((_local4 + ".") + _local7);
};
var _local8:Class;
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
if (!_local8){
_local7 = _arg3;
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
};
if (!_local8){
_local7 = (_arg3 + "_properties");
if (_arg1.hasDefinition(_local7)){
_local8 = Class(_arg1.getDefinition(_local7));
};
};
if (!_local8){
throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'.")));
};
var _local9:ResourceBundle = ResourceBundle(new (_local8));
_local9.mx_internal::_locale = _arg2;
_local9.mx_internal::_bundleName = _arg3;
addResourceBundle(_local9);
}
public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{
var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4);
if (!_local5){
return (null);
};
var _local6:String = String(_local5.content[_arg2]);
if (_arg3){
_local6 = StringUtil.substitute(_local6, _arg3);
};
return (_local6);
}
public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
var moduleInfo:IModuleInfo;
var resourceEventDispatcher:ResourceEventDispatcher;
var timer:Timer;
var timerHandler:Function;
var url = _arg1;
var updateFlag = _arg2;
var applicationDomain = _arg3;
var securityDomain = _arg4;
moduleInfo = ModuleManager.getModule(url);
resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo);
var readyHandler:Function = function (_arg1:ModuleEvent):void{
var _local2:* = _arg1.module.factory.create();
resourceModules[_arg1.module.url].resourceModule = _local2;
if (updateFlag){
update();
};
};
moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
var errorHandler:Function = function (_arg1:ModuleEvent):void{
var _local3:ResourceEvent;
var _local2:String = ("Unable to load resource module from " + url);
if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){
_local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local3.bytesLoaded = 0;
_local3.bytesTotal = 0;
_local3.errorText = _local2;
resourceEventDispatcher.dispatchEvent(_local3);
} else {
throw (new Error(_local2));
};
};
moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler);
timer = new Timer(0);
timerHandler = function (_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.stop();
moduleInfo.load(applicationDomain, securityDomain);
};
timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
timer.start();
return (resourceEventDispatcher);
}
public function getLocales():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in localeMap) {
_local1.push(_local2);
};
return (_local1);
}
public function removeResourceBundlesForLocale(_arg1:String):void{
delete localeMap[_arg1];
}
public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{
var _local3:Object = localeMap[_arg1];
if (!_local3){
return (null);
};
return (_local3[_arg2]);
}
private function dumpResourceModule(_arg1):void{
var _local2:ResourceBundle;
var _local3:String;
for each (_local2 in _arg1.resourceBundles) {
trace(_local2.locale, _local2.bundleName);
for (_local3 in _local2.content) {
};
};
}
public function 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 addResourceBundle(_arg1:IResourceBundle):void{
var _local2:String = _arg1.locale;
var _local3:String = _arg1.bundleName;
if (!localeMap[_local2]){
localeMap[_local2] = {};
};
localeMap[_local2][_local3] = _arg1;
}
private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{
supportNonFrameworkApps();
return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _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 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 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 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 getBundleNamesForLocale(_arg1:String):Array{
var _local3:String;
var _local2:Array = [];
for (_local3 in localeMap[_arg1]) {
_local2.push(_local3);
};
return (_local2);
}
public function removeResourceBundle(_arg1:String, _arg2:String):void{
delete localeMap[_arg1][_arg2];
if (getBundleNamesForLocale(_arg1).length == 0){
delete localeMap[_arg1];
};
}
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 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));
}
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 flash.events.*;
import mx.events.*;
import mx.modules.*;
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 704
//IResponder (mx.rpc.IResponder)
package mx.rpc {
public interface IResponder {
function fault(_arg1:Object):void;
function result(_arg1:Object):void;
}
}//package mx.rpc
Section 705
//ApplicationBackground (mx.skins.halo.ApplicationBackground)
package mx.skins.halo {
import flash.display.*;
import mx.utils.*;
import mx.skins.*;
public class ApplicationBackground extends ProgrammaticSkin {
mx_internal static const VERSION:String = "3.0.0.0";
override public function get measuredWidth():Number{
return (8);
}
override public function get measuredHeight():Number{
return (8);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local6:uint;
super.updateDisplayList(_arg1, _arg2);
var _local3:Graphics = graphics;
var _local4:Array = getStyle("backgroundGradientColors");
var _local5:Array = getStyle("backgroundGradientAlphas");
if (!_local4){
_local6 = getStyle("backgroundColor");
if (isNaN(_local6)){
_local6 = 0xFFFFFF;
};
_local4 = [];
_local4[0] = ColorUtil.adjustBrightness(_local6, 15);
_local4[1] = ColorUtil.adjustBrightness(_local6, -25);
};
if (!_local5){
_local5 = [1, 1];
};
_local3.clear();
drawRoundRect(0, 0, _arg1, _arg2, 0, _local4, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2));
}
}
}//package mx.skins.halo
Section 706
//BusyCursor (mx.skins.halo.BusyCursor)
package mx.skins.halo {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.styles.*;
public class BusyCursor extends FlexSprite {
private var hourHand:Shape;
private var minuteHand:Shape;
mx_internal static const VERSION:String = "3.0.0.0";
public function BusyCursor(){
var _local6:Graphics;
super();
var _local1:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
var _local2:Class = _local1.getStyle("busyCursorBackground");
var _local3:DisplayObject = new (_local2);
if ((_local3 is InteractiveObject)){
InteractiveObject(_local3).mouseEnabled = false;
};
addChild(_local3);
var _local4:Number = -0.5;
var _local5:Number = -0.5;
minuteHand = new FlexShape();
minuteHand.name = "minuteHand";
_local6 = minuteHand.graphics;
_local6.beginFill(0);
_local6.moveTo(_local4, _local5);
_local6.lineTo((1 + _local4), (0 + _local5));
_local6.lineTo((1 + _local4), (5 + _local5));
_local6.lineTo((0 + _local4), (5 + _local5));
_local6.lineTo((0 + _local4), (0 + _local5));
_local6.endFill();
addChild(minuteHand);
hourHand = new FlexShape();
hourHand.name = "hourHand";
_local6 = hourHand.graphics;
_local6.beginFill(0);
_local6.moveTo(_local4, _local5);
_local6.lineTo((4 + _local4), (0 + _local5));
_local6.lineTo((4 + _local4), (1 + _local5));
_local6.lineTo((0 + _local4), (1 + _local5));
_local6.lineTo((0 + _local4), (0 + _local5));
_local6.endFill();
addChild(hourHand);
addEventListener(Event.ADDED, handleAdded);
addEventListener(Event.REMOVED, handleRemoved);
}
private function enterFrameHandler(_arg1:Event):void{
minuteHand.rotation = (minuteHand.rotation + 12);
hourHand.rotation = (hourHand.rotation + 1);
}
private function handleAdded(_arg1:Event):void{
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function handleRemoved(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
}
}//package mx.skins.halo
Section 707
//ButtonSkin (mx.skins.halo.ButtonSkin)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import mx.utils.*;
import mx.skins.*;
public class ButtonSkin extends Border {
mx_internal static const VERSION:String = "3.0.0.0";
private static var cache:Object = {};
override public function get measuredWidth():Number{
return (UIComponent.DEFAULT_MEASURED_MIN_WIDTH);
}
override public function get measuredHeight():Number{
return (UIComponent.DEFAULT_MEASURED_MIN_HEIGHT);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:Array;
var _local21:Array;
var _local22:Array;
super.updateDisplayList(_arg1, _arg2);
var _local3:uint = getStyle("borderColor");
var _local4:Number = getStyle("cornerRadius");
var _local5:Array = getStyle("fillAlphas");
var _local6:Array = getStyle("fillColors");
StyleManager.getColorNames(_local6);
var _local7:Array = getStyle("highlightAlphas");
var _local8:uint = getStyle("themeColor");
var _local9:Object = calcDerivedStyles(_local8, _local6[0], _local6[1]);
var _local10:Number = ColorUtil.adjustBrightness2(_local3, -50);
var _local11:Number = ColorUtil.adjustBrightness2(_local8, -25);
var _local12:Boolean;
if ((parent is IButton)){
_local12 = IButton(parent).emphasized;
};
var _local13:Number = Math.max(0, _local4);
var _local14:Number = Math.max(0, (_local4 - 1));
var _local15:Number = Math.max(0, (_local4 - 2));
graphics.clear();
switch (name){
case "selectedUpSkin":
case "selectedOverSkin":
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2));
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, [_local6[1], _local6[1]], 1, verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)));
break;
case "upSkin":
_local17 = [_local6[0], _local6[1]];
_local18 = [_local5[0], _local5[1]];
if (_local12){
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:2, y:2, w:(_arg1 - 4), h:(_arg2 - 4), r:(_local4 - 2)});
drawRoundRect(2, 2, (_arg1 - 4), (_arg2 - 4), _local15, _local17, _local18, verticalGradientMatrix(2, 2, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(2, 2, (_arg1 - 4), ((_arg2 - 4) / 2), {tl:_local15, tr:_local15, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2)));
} else {
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local3, _local10], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local17, _local18, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2), {tl:_local14, tr:_local14, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2)));
};
break;
case "overSkin":
if (_local6.length > 2){
_local19 = [_local6[2], _local6[3]];
} else {
_local19 = [_local6[0], _local6[1]];
};
if (_local5.length > 2){
_local20 = [_local5[2], _local5[3]];
} else {
_local20 = [_local5[0], _local5[1]];
};
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local19, _local20, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2), {tl:_local14, tr:_local14, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2)));
break;
case "downSkin":
case "selectedDownSkin":
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2));
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, [_local9.fillColorPress1, _local9.fillColorPress2], 1, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(2, 2, (_arg1 - 4), ((_arg2 - 4) / 2), {tl:_local15, tr:_local15, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2)));
break;
case "disabledSkin":
case "selectedDisabledSkin":
_local21 = [_local6[0], _local6[1]];
_local22 = [Math.max(0, (_local5[0] - 0.15)), Math.max(0, (_local5[1] - 0.15))];
drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local3, _local10], 0.5, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local21, _local22, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2)));
break;
};
}
private static function calcDerivedStyles(_arg1:uint, _arg2:uint, _arg3:uint):Object{
var _local5:Object;
var _local4:String = HaloColors.getCacheKey(_arg1, _arg2, _arg3);
if (!cache[_local4]){
_local5 = (cache[_local4] = {});
HaloColors.addHaloColors(_local5, _arg1, _arg2, _arg3);
};
return (cache[_local4]);
}
}
}//package mx.skins.halo
Section 708
//HaloBorder (mx.skins.halo.HaloBorder)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import mx.graphics.*;
import mx.utils.*;
import mx.skins.*;
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.0.0.0";
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 709
//HaloColors (mx.skins.halo.HaloColors)
package mx.skins.halo {
import mx.utils.*;
public class HaloColors {
mx_internal static const VERSION:String = "3.0.0.0";
private static var cache:Object = {};
public static function getCacheKey(... _args):String{
return (_args.join(","));
}
public static function addHaloColors(_arg1:Object, _arg2:uint, _arg3:uint, _arg4:uint):void{
var _local5:String = getCacheKey(_arg2, _arg3, _arg4);
var _local6:Object = cache[_local5];
if (!_local6){
_local6 = (cache[_local5] = {});
_local6.themeColLgt = ColorUtil.adjustBrightness(_arg2, 100);
_local6.themeColDrk1 = ColorUtil.adjustBrightness(_arg2, -75);
_local6.themeColDrk2 = ColorUtil.adjustBrightness(_arg2, -25);
_local6.fillColorBright1 = ColorUtil.adjustBrightness2(_arg3, 15);
_local6.fillColorBright2 = ColorUtil.adjustBrightness2(_arg4, 15);
_local6.fillColorPress1 = ColorUtil.adjustBrightness2(_arg2, 85);
_local6.fillColorPress2 = ColorUtil.adjustBrightness2(_arg2, 60);
_local6.bevelHighlight1 = ColorUtil.adjustBrightness2(_arg3, 40);
_local6.bevelHighlight2 = ColorUtil.adjustBrightness2(_arg4, 40);
};
_arg1.themeColLgt = _local6.themeColLgt;
_arg1.themeColDrk1 = _local6.themeColDrk1;
_arg1.themeColDrk2 = _local6.themeColDrk2;
_arg1.fillColorBright1 = _local6.fillColorBright1;
_arg1.fillColorBright2 = _local6.fillColorBright2;
_arg1.fillColorPress1 = _local6.fillColorPress1;
_arg1.fillColorPress2 = _local6.fillColorPress2;
_arg1.bevelHighlight1 = _local6.bevelHighlight1;
_arg1.bevelHighlight2 = _local6.bevelHighlight2;
}
}
}//package mx.skins.halo
Section 710
//HaloFocusRect (mx.skins.halo.HaloFocusRect)
package mx.skins.halo {
import flash.display.*;
import mx.styles.*;
import mx.utils.*;
import mx.skins.*;
public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient {
private var _focusColor:Number;
mx_internal static const VERSION:String = "3.0.0.0";
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 711
//ScrollArrowSkin (mx.skins.halo.ScrollArrowSkin)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import mx.controls.scrollClasses.*;
import mx.utils.*;
import mx.skins.*;
public class ScrollArrowSkin extends Border {
mx_internal static const VERSION:String = "3.0.0.0";
private static var cache:Object = {};
override public function get measuredWidth():Number{
return (ScrollBar.THICKNESS);
}
override public function get measuredHeight():Number{
return (ScrollBar.THICKNESS);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local13:Array;
var _local15:Array;
var _local16:Array;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:Array;
super.updateDisplayList(_arg1, _arg2);
var _local3:Number = getStyle("backgroundColor");
var _local4:uint = getStyle("borderColor");
var _local5:Array = getStyle("fillAlphas");
var _local6:Array = getStyle("fillColors");
StyleManager.getColorNames(_local6);
var _local7:Array = getStyle("highlightAlphas");
var _local8:uint = getStyle("themeColor");
var _local9 = (name.charAt(0) == "u");
var _local10:uint = getStyle("iconColor");
var _local11:Object = calcDerivedStyles(_local8, _local4, _local6[0], _local6[1]);
var _local12:Boolean = ((((parent) && (parent.parent))) && (!((parent.parent.rotation == 0))));
if (((_local9) && (!(_local12)))){
_local13 = [_local4, _local11.borderColorDrk1];
} else {
_local13 = [_local11.borderColorDrk1, _local11.borderColorDrk2];
};
var _local14:Graphics = graphics;
_local14.clear();
if (isNaN(_local3)){
_local3 = 0xFFFFFF;
};
if ((((FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)) || ((name.indexOf("Disabled") == -1)))){
drawRoundRect(0, 0, _arg1, _arg2, 0, _local3, 1);
};
switch (name){
case "upArrowUpSkin":
if (!_local12){
drawRoundRect(1, (_arg2 - 4), (_arg1 - 2), 8, 0, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], verticalGradientMatrix(1, (_arg2 - 4), (_arg1 - 2), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - 4), w:(_arg1 - 2), h:4, r:0});
};
case "downArrowUpSkin":
_local15 = [_local6[0], _local6[1]];
_local16 = [_local5[0], _local5[1]];
drawRoundRect(0, 0, _arg1, _arg2, 0, _local13, 1, (_local12) ? horizontalGradientMatrix(0, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:0});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), 0, _local15, _local16, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - (2 / 2))));
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - (2 / 2)), 0, [0xFFFFFF, 0xFFFFFF], _local7, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - (2 / 2))));
break;
case "upArrowOverSkin":
if (!_local12){
drawRoundRect(1, (_arg2 - 4), (_arg1 - 2), 8, 0, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], verticalGradientMatrix(1, (_arg2 - 4), (_arg1 - 2), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - 4), w:(_arg1 - 2), h:4, r:0});
};
case "downArrowOverSkin":
if (_local6.length > 2){
_local17 = [_local6[2], _local6[3]];
} else {
_local17 = [_local6[0], _local6[1]];
};
if (_local5.length > 2){
_local18 = [_local5[2], _local5[3]];
} else {
_local18 = [_local5[0], _local5[1]];
};
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 1);
drawRoundRect(0, 0, _arg1, _arg2, 0, [_local8, _local11.themeColDrk1], 1, (_local12) ? horizontalGradientMatrix(0, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:0});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), 0, _local17, _local18, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - (2 / 2)), 0, [0xFFFFFF, 0xFFFFFF], _local7, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - (2 / 2))));
break;
case "upArrowDownSkin":
if (!_local12){
drawRoundRect(1, (_arg2 - 4), (_arg1 - 2), 8, 0, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], (_local12) ? horizontalGradientMatrix(1, (_arg2 - 4), (_arg1 - 2), 8) : verticalGradientMatrix(1, (_arg2 - 4), (_arg1 - 2), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - 4), w:(_arg1 - 2), h:4, r:0});
};
case "downArrowDownSkin":
drawRoundRect(0, 0, _arg1, _arg2, 0, [_local8, _local11.themeColDrk1], 1, (_local12) ? horizontalGradientMatrix(0, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:0});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), 0, [_local11.fillColorPress1, _local11.fillColorPress2], 1, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)));
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - (2 / 2)), 0, [0xFFFFFF, 0xFFFFFF], _local7, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - (2 / 2))));
break;
case "upArrowDisabledSkin":
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
if (!_local12){
drawRoundRect(1, (_arg2 - 4), (_arg1 - 2), 8, 0, [_local11.borderColorDrk1, _local11.borderColorDrk1], [0.5, 0], verticalGradientMatrix(1, (_arg2 - 4), (_arg1 - 2), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - 4), w:(_arg1 - 2), h:4, r:0});
};
};
case "downArrowDisabledSkin":
if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0){
_local19 = [_local6[0], _local6[1]];
_local20 = [(_local5[0] - 0.15), (_local5[1] - 0.15)];
drawRoundRect(0, 0, _arg1, _arg2, 0, _local13, 0.5, (_local12) ? horizontalGradientMatrix(0, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:0});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), 0, _local19, _local20, (_local12) ? horizontalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - (2 / 2))));
_local10 = getStyle("disabledIconColor");
} else {
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 0);
return;
};
break;
default:
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 0);
return;
};
_local14.beginFill(_local10);
if (_local9){
_local14.moveTo((_arg1 / 2), 6);
_local14.lineTo((_arg1 - 5), (_arg2 - 6));
_local14.lineTo(5, (_arg2 - 6));
_local14.lineTo((_arg1 / 2), 6);
} else {
_local14.moveTo((_arg1 / 2), (_arg2 - 6));
_local14.lineTo((_arg1 - 5), 6);
_local14.lineTo(5, 6);
_local14.lineTo((_arg1 / 2), (_arg2 - 6));
};
_local14.endFill();
}
private static function calcDerivedStyles(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint):Object{
var _local6:Object;
var _local5:String = HaloColors.getCacheKey(_arg1, _arg2, _arg3, _arg4);
if (!cache[_local5]){
_local6 = (cache[_local5] = {});
HaloColors.addHaloColors(_local6, _arg1, _arg3, _arg4);
_local6.borderColorDrk1 = ColorUtil.adjustBrightness2(_arg2, -25);
_local6.borderColorDrk2 = ColorUtil.adjustBrightness2(_arg2, -50);
};
return (cache[_local5]);
}
}
}//package mx.skins.halo
Section 712
//ScrollThumbSkin (mx.skins.halo.ScrollThumbSkin)
package mx.skins.halo {
import flash.display.*;
import mx.styles.*;
import mx.utils.*;
import mx.skins.*;
public class ScrollThumbSkin extends Border {
mx_internal static const VERSION:String = "3.0.0.0";
private static var cache:Object = {};
override public function get measuredWidth():Number{
return (16);
}
override public function get measuredHeight():Number{
return (10);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:Array;
super.updateDisplayList(_arg1, _arg2);
var _local3:Number = getStyle("backgroundColor");
var _local4:uint = getStyle("borderColor");
var _local5:Number = getStyle("cornerRadius");
var _local6:Array = getStyle("fillAlphas");
var _local7:Array = getStyle("fillColors");
StyleManager.getColorNames(_local7);
var _local8:Array = getStyle("highlightAlphas");
var _local9:uint = getStyle("themeColor");
var _local10:uint = 7305079;
var _local11:Object = calcDerivedStyles(_local9, _local4, _local7[0], _local7[1]);
var _local12:Number = Math.max((_local5 - 1), 0);
var _local13:Object = {tl:0, tr:_local12, bl:0, br:_local12};
_local12 = Math.max((_local12 - 1), 0);
var _local14:Object = {tl:0, tr:_local12, bl:0, br:_local12};
var _local15:Boolean = ((((parent) && (parent.parent))) && (!((parent.parent.rotation == 0))));
if (isNaN(_local3)){
_local3 = 0xFFFFFF;
};
graphics.clear();
drawRoundRect(1, 0, (_arg1 - 3), _arg2, _local13, _local3, 1);
switch (name){
case "thumbUpSkin":
default:
_local17 = [_local7[0], _local7[1]];
_local18 = [_local6[0], _local6[1]];
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 0);
if (_local15){
drawRoundRect(1, 0, (_arg1 - 2), _arg2, _local5, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], horizontalGradientMatrix(2, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
} else {
drawRoundRect(1, (_arg2 - _local12), (_arg1 - 3), (_local12 + 4), {tl:0, tr:0, bl:0, br:_local12}, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], (_local15) ? horizontalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8) : verticalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - _local12), w:(_arg1 - 4), h:_local12, r:{tl:0, tr:0, bl:0, br:(_local12 - 1)}});
};
drawRoundRect(1, 0, (_arg1 - 3), _arg2, _local13, [_local4, _local11.borderColorDrk1], 1, (_local15) ? horizontalGradientMatrix(0, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
drawRoundRect(1, 1, (_arg1 - 4), (_arg2 - 2), _local14, _local17, _local18, (_local15) ? horizontalGradientMatrix(1, 0, (_arg1 - 2), (_arg2 - 2)) : verticalGradientMatrix(1, 0, (_arg1 - 2), (_arg2 - 2)));
if (_local15){
drawRoundRect(1, 0, ((_arg1 - 4) / 2), (_arg2 - 2), 0, [0xFFFFFF, 0xFFFFFF], _local8, horizontalGradientMatrix(1, 1, (_arg1 - 4), ((_arg2 - 2) / 2)));
} else {
drawRoundRect(1, 1, (_arg1 - 4), ((_arg2 - 2) / 2), _local14, [0xFFFFFF, 0xFFFFFF], _local8, (_local15) ? horizontalGradientMatrix(1, 0, ((_arg1 - 4) / 2), (_arg2 - 2)) : verticalGradientMatrix(1, 1, (_arg1 - 4), ((_arg2 - 2) / 2)));
};
break;
case "thumbOverSkin":
if (_local7.length > 2){
_local19 = [_local7[2], _local7[3]];
} else {
_local19 = [_local7[0], _local7[1]];
};
if (_local6.length > 2){
_local20 = [_local6[2], _local6[3]];
} else {
_local20 = [_local6[0], _local6[1]];
};
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 0);
if (_local15){
drawRoundRect(1, 0, (_arg1 - 2), _arg2, _local5, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], horizontalGradientMatrix(2, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
} else {
drawRoundRect(1, (_arg2 - _local12), (_arg1 - 3), (_local12 + 4), {tl:0, tr:0, bl:0, br:_local12}, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], (_local15) ? horizontalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8) : verticalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - _local12), w:(_arg1 - 4), h:_local12, r:{tl:0, tr:0, bl:0, br:(_local12 - 1)}});
};
drawRoundRect(1, 0, (_arg1 - 3), _arg2, _local13, [_local9, _local11.themeColDrk1], 1, (_local15) ? horizontalGradientMatrix(1, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
drawRoundRect(1, 1, (_arg1 - 4), (_arg2 - 2), _local14, _local19, _local20, (_local15) ? horizontalGradientMatrix(1, 0, _arg1, _arg2) : verticalGradientMatrix(1, 0, _arg1, _arg2));
break;
case "thumbDownSkin":
if (_local15){
drawRoundRect(1, 0, (_arg1 - 2), _arg2, _local13, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], horizontalGradientMatrix(2, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
} else {
drawRoundRect(1, (_arg2 - _local12), (_arg1 - 3), (_local12 + 4), {tl:0, tr:0, bl:0, br:_local12}, [_local11.borderColorDrk1, _local11.borderColorDrk1], [1, 0], (_local15) ? horizontalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8) : verticalGradientMatrix(0, (_arg2 - 4), (_arg1 - 3), 8), GradientType.LINEAR, null, {x:1, y:(_arg2 - _local12), w:(_arg1 - 4), h:_local12, r:{tl:0, tr:0, bl:0, br:(_local12 - 1)}});
};
drawRoundRect(1, 0, (_arg1 - 3), _arg2, _local13, [_local9, _local11.themeColDrk2], 1, (_local15) ? horizontalGradientMatrix(1, 0, _arg1, _arg2) : verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 4), h:(_arg2 - 2), r:_local14});
drawRoundRect(1, 1, (_arg1 - 4), (_arg2 - 2), _local14, [_local11.fillColorPress1, _local11.fillColorPress2], 1, (_local15) ? horizontalGradientMatrix(1, 0, _arg1, _arg2) : verticalGradientMatrix(1, 0, _arg1, _arg2));
break;
case "thumbDisabledSkin":
drawRoundRect(0, 0, _arg1, _arg2, 0, 0xFFFFFF, 0);
drawRoundRect(1, 0, (_arg1 - 3), _arg2, _local13, 0x999999, 0.5);
drawRoundRect(1, 1, (_arg1 - 4), (_arg2 - 2), _local14, 0xFFFFFF, 0.5);
break;
};
var _local16:Number = Math.floor(((_arg1 / 2) - 4));
drawRoundRect(_local16, Math.floor(((_arg2 / 2) - 4)), 5, 1, 0, 0, 0.4);
drawRoundRect(_local16, Math.floor(((_arg2 / 2) - 2)), 5, 1, 0, 0, 0.4);
drawRoundRect(_local16, Math.floor((_arg2 / 2)), 5, 1, 0, 0, 0.4);
drawRoundRect(_local16, Math.floor(((_arg2 / 2) + 2)), 5, 1, 0, 0, 0.4);
drawRoundRect(_local16, Math.floor(((_arg2 / 2) + 4)), 5, 1, 0, 0, 0.4);
}
private static function calcDerivedStyles(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint):Object{
var _local6:Object;
var _local5:String = HaloColors.getCacheKey(_arg1, _arg2, _arg3, _arg4);
if (!cache[_local5]){
_local6 = (cache[_local5] = {});
HaloColors.addHaloColors(_local6, _arg1, _arg3, _arg4);
_local6.borderColorDrk1 = ColorUtil.adjustBrightness2(_arg2, -50);
};
return (cache[_local5]);
}
}
}//package mx.skins.halo
Section 713
//ScrollTrackSkin (mx.skins.halo.ScrollTrackSkin)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.styles.*;
import mx.utils.*;
import mx.skins.*;
public class ScrollTrackSkin extends Border {
mx_internal static const VERSION:String = "3.0.0.0";
override public function get measuredWidth():Number{
return (16);
}
override public function get measuredHeight():Number{
return (1);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
super.updateDisplayList(_arg1, _arg2);
var _local3:Array = getStyle("trackColors");
StyleManager.getColorNames(_local3);
var _local4:uint = ColorUtil.adjustBrightness2(getStyle("borderColor"), -20);
var _local5:uint = ColorUtil.adjustBrightness2(_local4, -30);
graphics.clear();
var _local6:Number = 1;
if ((((name == "trackDisabledSkin")) && ((FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)))){
_local6 = 0.2;
};
drawRoundRect(0, 0, _arg1, _arg2, 0, [_local4, _local5], _local6, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:0});
drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), 0, _local3, _local6, horizontalGradientMatrix(1, 1, ((_arg1 / 3) * 2), (_arg2 - 2)));
}
}
}//package mx.skins.halo
Section 714
//ToolTipBorder (mx.skins.halo.ToolTipBorder)
package mx.skins.halo {
import mx.core.*;
import flash.display.*;
import mx.graphics.*;
import mx.skins.*;
import flash.filters.*;
public class ToolTipBorder extends RectangularBorder {
private var _borderMetrics:EdgeMetrics;
private var dropShadow:RectangularDropShadow;
mx_internal static const VERSION:String = "3.0.0.0";
override public function get borderMetrics():EdgeMetrics{
if (_borderMetrics){
return (_borderMetrics);
};
var _local1:String = getStyle("borderStyle");
switch (_local1){
case "errorTipRight":
_borderMetrics = new EdgeMetrics(15, 1, 3, 3);
break;
case "errorTipAbove":
_borderMetrics = new EdgeMetrics(3, 1, 3, 15);
break;
case "errorTipBelow":
_borderMetrics = new EdgeMetrics(3, 13, 3, 3);
break;
default:
_borderMetrics = new EdgeMetrics(3, 1, 3, 3);
break;
};
return (_borderMetrics);
}
override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{
super.updateDisplayList(_arg1, _arg2);
var _local3:String = getStyle("borderStyle");
var _local4:uint = getStyle("backgroundColor");
var _local5:Number = getStyle("backgroundAlpha");
var _local6:uint = getStyle("borderColor");
var _local7:Number = getStyle("cornerRadius");
var _local8:uint = getStyle("shadowColor");
var _local9:Number = 0.1;
var _local10:Graphics = graphics;
_local10.clear();
filters = [];
switch (_local3){
case "toolTip":
drawRoundRect(3, 1, (_arg1 - 6), (_arg2 - 4), _local7, _local4, _local5);
if (!dropShadow){
dropShadow = new RectangularDropShadow();
};
dropShadow.distance = 3;
dropShadow.angle = 90;
dropShadow.color = 0;
dropShadow.alpha = 0.4;
dropShadow.tlRadius = (_local7 + 2);
dropShadow.trRadius = (_local7 + 2);
dropShadow.blRadius = (_local7 + 2);
dropShadow.brRadius = (_local7 + 2);
dropShadow.drawShadow(graphics, 3, 0, (_arg1 - 6), (_arg2 - 4));
break;
case "errorTipRight":
drawRoundRect(11, 0, (_arg1 - 11), (_arg2 - 2), 3, _local6, _local5);
_local10.beginFill(_local6, _local5);
_local10.moveTo(11, 7);
_local10.lineTo(0, 13);
_local10.lineTo(11, 19);
_local10.moveTo(11, 7);
_local10.endFill();
filters = [new DropShadowFilter(2, 90, 0, 0.4)];
break;
case "errorTipAbove":
drawRoundRect(0, 0, _arg1, (_arg2 - 13), 3, _local6, _local5);
_local10.beginFill(_local6, _local5);
_local10.moveTo(9, (_arg2 - 13));
_local10.lineTo(15, (_arg2 - 2));
_local10.lineTo(21, (_arg2 - 13));
_local10.moveTo(9, (_arg2 - 13));
_local10.endFill();
filters = [new DropShadowFilter(2, 90, 0, 0.4)];
break;
case "errorTipBelow":
drawRoundRect(0, 11, _arg1, (_arg2 - 13), 3, _local6, _local5);
_local10.beginFill(_local6, _local5);
_local10.moveTo(9, 11);
_local10.lineTo(15, 0);
_local10.lineTo(21, 11);
_local10.moveTo(10, 11);
_local10.endFill();
filters = [new DropShadowFilter(2, 90, 0, 0.4)];
break;
};
}
override public function styleChanged(_arg1:String):void{
if ((((((_arg1 == "borderStyle")) || ((_arg1 == "styleName")))) || ((_arg1 == null)))){
_borderMetrics = null;
};
invalidateDisplayList();
}
}
}//package mx.skins.halo
Section 715
//Border (mx.skins.Border)
package mx.skins {
import mx.core.*;
public class Border extends ProgrammaticSkin implements IBorder {
mx_internal static const VERSION:String = "3.0.0.0";
public function get borderMetrics():EdgeMetrics{
return (EdgeMetrics.EMPTY);
}
}
}//package mx.skins
Section 716
//ProgrammaticSkin (mx.skins.ProgrammaticSkin)
package mx.skins {
import mx.core.*;
import flash.display.*;
import mx.managers.*;
import flash.geom.*;
import mx.styles.*;
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.0.0.0";
private static var tempMatrix:Matrix = new Matrix();
public function ProgrammaticSkin(){
_width = measuredWidth;
_height = measuredHeight;
}
public function getStyle(_arg1:String){
return (_styleName.getStyle(_arg1));
}
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 717
//RectangularBorder (mx.skins.RectangularBorder)
package mx.skins {
import mx.core.*;
import flash.events.*;
import flash.display.*;
import mx.resources.*;
import flash.geom.*;
import mx.styles.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.0.0.0";
public function RectangularBorder(){
resourceManager = ResourceManager.getInstance();
super();
addEventListener(Event.REMOVED, removedHandler);
}
public function layoutBackgroundImage():void{
var _local4:Number;
var _local5:Number;
var _local7:Number;
var _local8:Number;
var _local14:Number;
var _local15:Graphics;
var _local1:DisplayObject = parent;
var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics;
var _local3 = !((getStyle("backgroundAttachment") == "fixed"));
if (_backgroundImageBounds){
_local4 = _backgroundImageBounds.width;
_local5 = _backgroundImageBounds.height;
} else {
_local4 = ((width - _local2.left) - _local2.right);
_local5 = ((height - _local2.top) - _local2.bottom);
};
var _local6:Number = getBackgroundSize();
if (isNaN(_local6)){
_local7 = 1;
_local8 = 1;
} else {
_local14 = (_local6 * 0.01);
_local7 = ((_local14 * _local4) / backgroundImageWidth);
_local8 = ((_local14 * _local5) / backgroundImageHeight);
};
backgroundImage.scaleX = _local7;
backgroundImage.scaleY = _local8;
var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7))));
var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8))));
backgroundImage.x = _local2.left;
backgroundImage.y = _local2.top;
var _local11:Shape = Shape(backgroundImage.mask);
_local11.x = _local2.left;
_local11.y = _local2.top;
if (((_local3) && ((_local1 is IContainer)))){
_local9 = (_local9 - IContainer(_local1).horizontalScrollPosition);
_local10 = (_local10 - IContainer(_local1).verticalScrollPosition);
};
backgroundImage.alpha = getStyle("backgroundAlpha");
backgroundImage.x = (backgroundImage.x + _local9);
backgroundImage.y = (backgroundImage.y + _local10);
var _local12:Number = ((width - _local2.left) - _local2.right);
var _local13:Number = ((height - _local2.top) - _local2.bottom);
if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){
_local15 = _local11.graphics;
_local15.clear();
_local15.beginFill(0xFFFFFF);
_local15.drawRect(0, 0, _local12, _local13);
_local15.endFill();
};
}
public function set backgroundImageBounds(_arg1:Rectangle):void{
_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 718
//IOverride (mx.states.IOverride)
package mx.states {
import mx.core.*;
public interface IOverride {
function initialize():void;
function remove(_arg1:UIComponent):void;
function apply(_arg1:UIComponent):void;
}
}//package mx.states
Section 719
//State (mx.states.State)
package mx.states {
import mx.events.*;
import flash.events.*;
public class State extends EventDispatcher {
public var basedOn:String;
private var initialized:Boolean;// = false
public var overrides:Array;
public var name:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function State(){
overrides = [];
super();
}
mx_internal function initialize():void{
var _local1:int;
if (!initialized){
initialized = true;
_local1 = 0;
while (_local1 < overrides.length) {
IOverride(overrides[_local1]).initialize();
_local1++;
};
};
}
mx_internal function dispatchExitState():void{
dispatchEvent(new FlexEvent(FlexEvent.EXIT_STATE));
}
mx_internal function dispatchEnterState():void{
dispatchEvent(new FlexEvent(FlexEvent.ENTER_STATE));
}
}
}//package mx.states
Section 720
//Transition (mx.states.Transition)
package mx.states {
import mx.effects.*;
public class Transition {
public var effect:IEffect;
public var toState:String;// = "*"
public var fromState:String;// = "*"
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.states
Section 721
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration)
package mx.styles {
import flash.display.*;
import mx.core.*;
import mx.managers.*;
import flash.events.*;
import flash.utils.*;
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.0.0.0";
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 722
//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 723
//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 724
//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 725
//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 726
//IStyleModule (mx.styles.IStyleModule)
package mx.styles {
public interface IStyleModule {
function unload():void;
}
}//package mx.styles
Section 727
//StyleManager (mx.styles.StyleManager)
package mx.styles {
import mx.core.*;
import flash.events.*;
import flash.system.*;
public class StyleManager {
mx_internal static const VERSION:String = "3.0.0.0";
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 728
//StyleManagerImpl (mx.styles.StyleManagerImpl)
package mx.styles {
import mx.core.*;
import mx.managers.*;
import flash.events.*;
import mx.events.*;
import flash.system.*;
import mx.resources.*;
import mx.modules.*;
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.0.0.0";
private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true};
private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193};
private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true};
private static var instance:IStyleManager2;
private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true};
private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true};
public function StyleManagerImpl(){
_selectors = {};
styleModules = {};
resourceManager = ResourceManager.getInstance();
_inheritingStyles = {};
_typeSelectorCache = {};
super();
}
public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{
_arg2.selectorRefCount++;
_selectors[_arg1] = _arg2;
typeSelectorCache = {};
if (_arg3){
styleDeclarationsChanged();
};
}
public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{
parentDisplayListInvalidatingStyles[_arg1] = true;
}
public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{
var _local2:int;
if (_arg1.charAt(0) != "."){
_local2 = _arg1.lastIndexOf(".");
if (_local2 != -1){
_arg1 = _arg1.substr((_local2 + 1));
};
};
return (_selectors[_arg1]);
}
public function set typeSelectorCache(_arg1:Object):void{
_typeSelectorCache = _arg1;
}
public function isColorName(_arg1:String):Boolean{
return (!((colorNames[_arg1.toLowerCase()] === undefined)));
}
public function set inheritingStyles(_arg1:Object):void{
_inheritingStyles = _arg1;
}
public function getColorNames(_arg1:Array):void{
var _local4:uint;
if (!_arg1){
return;
};
var _local2:int = _arg1.length;
var _local3:int;
while (_local3 < _local2) {
if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){
_local4 = getColorName(_arg1[_local3]);
if (_local4 != StyleManager.NOT_A_COLOR){
_arg1[_local3] = _local4;
};
};
_local3++;
};
}
public function isInheritingTextFormatStyle(_arg1:String):Boolean{
return ((inheritingTextFormatStyles[_arg1] == true));
}
public function registerParentSizeInvalidatingStyle(_arg1:String):void{
parentSizeInvalidatingStyles[_arg1] = true;
}
public function registerColorName(_arg1:String, _arg2:uint):void{
colorNames[_arg1.toLowerCase()] = _arg2;
}
public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{
return ((parentSizeInvalidatingStyles[_arg1] == true));
}
public function registerInheritingStyle(_arg1:String):void{
inheritingStyles[_arg1] = true;
}
public function set stylesRoot(_arg1:Object):void{
_stylesRoot = _arg1;
}
public function get typeSelectorCache():Object{
return (_typeSelectorCache);
}
public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{
return ((parentDisplayListInvalidatingStyles[_arg1] == true));
}
public function isSizeInvalidatingStyle(_arg1:String):Boolean{
return ((sizeInvalidatingStyles[_arg1] == true));
}
public function styleDeclarationsChanged():void{
var _local4:Object;
var _local1:Array = SystemManagerGlobals.topLevelSystemManagers;
var _local2:int = _local1.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = _local1[_local3];
_local4.regenerateStyleCache(true);
_local4.notifyStyleChangeInChildren(null, true);
_local3++;
};
}
public function isValidStyleValue(_arg1):Boolean{
return (!((_arg1 === undefined)));
}
public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{
return (loadStyleDeclarations2(_arg1, _arg2));
}
public function get inheritingStyles():Object{
return (_inheritingStyles);
}
public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{
var _local4:IModuleInfo;
var _local3:StyleModuleInfo = styleModules[_arg1];
if (_local3){
_local3.styleModule.unload();
_local4 = _local3.module;
_local4.unload();
_local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler);
_local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler);
styleModules[_arg1] = null;
};
if (_arg2){
styleDeclarationsChanged();
};
}
public function getColorName(_arg1:Object):uint{
var _local2:Number;
var _local3:*;
if ((_arg1 is String)){
if (_arg1.charAt(0) == "#"){
_local2 = Number(("0x" + _arg1.slice(1)));
return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
};
if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){
_local2 = Number(_arg1);
return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2));
};
_local3 = colorNames[_arg1.toLowerCase()];
if (_local3 === undefined){
return (StyleManager.NOT_A_COLOR);
};
return (uint(_local3));
};
return (uint(_arg1));
}
public function isInheritingStyle(_arg1:String):Boolean{
return ((inheritingStyles[_arg1] == true));
}
public function get stylesRoot():Object{
return (_stylesRoot);
}
public function initProtoChainRoots():void{
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){
delete _inheritingStyles["textDecoration"];
delete _inheritingStyles["leading"];
};
if (!stylesRoot){
stylesRoot = _selectors["global"].addStyleToProtoChain({}, null);
};
}
public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{
var module:IModuleInfo;
var styleEventDispatcher:StyleEventDispatcher;
var timer:Timer;
var timerHandler:Function;
var url = _arg1;
var update = _arg2;
var applicationDomain = _arg3;
var securityDomain = _arg4;
module = ModuleManager.getModule(url);
var readyHandler:Function = function (_arg1:ModuleEvent):void{
var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create());
styleModules[_arg1.module.url].styleModule = _local2;
if (update){
styleDeclarationsChanged();
};
};
module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true);
styleEventDispatcher = new StyleEventDispatcher(module);
var errorHandler:Function = function (_arg1:ModuleEvent):void{
var _local3:StyleEvent;
var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]);
if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){
_local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable);
_local3.bytesLoaded = 0;
_local3.bytesTotal = 0;
_local3.errorText = _local2;
styleEventDispatcher.dispatchEvent(_local3);
} else {
throw (new Error(_local2));
};
};
module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true);
styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler);
timer = new Timer(0);
timerHandler = function (_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.stop();
module.load(applicationDomain, securityDomain);
};
timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
timer.start();
return (styleEventDispatcher);
}
public function registerSizeInvalidatingStyle(_arg1:String):void{
sizeInvalidatingStyles[_arg1] = true;
}
public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{
var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1);
if (((_local3) && ((_local3.selectorRefCount > 0)))){
_local3.selectorRefCount--;
};
delete _selectors[_arg1];
if (_arg2){
styleDeclarationsChanged();
};
}
public function get selectors():Array{
var _local2:String;
var _local1:Array = [];
for (_local2 in _selectors) {
_local1.push(_local2);
};
return (_local1);
}
public static function getInstance():IStyleManager2{
if (!instance){
instance = new (StyleManagerImpl);
};
return (instance);
}
}
}//package mx.styles
import flash.events.*;
import mx.events.*;
import mx.modules.*;
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 729
//StyleProtoChain (mx.styles.StyleProtoChain)
package mx.styles {
import mx.core.*;
import flash.display.*;
public class StyleProtoChain {
mx_internal static const VERSION:String = "3.0.0.0";
public static function initProtoChainForUIComponentStyleName(_arg1:IStyleClient):void{
var _local9:CSSStyleDeclaration;
var _local2:IStyleClient = IStyleClient(_arg1.styleName);
var _local3:DisplayObject = (_arg1 as DisplayObject);
var _local4:Object = _local2.nonInheritingStyles;
if (((!(_local4)) || ((_local4 == UIComponent.STYLE_UNINITIALIZED)))){
_local4 = StyleManager.stylesRoot;
if (_local4.effects){
_arg1.registerEffects(_local4.effects);
};
};
var _local5:Object = _local2.inheritingStyles;
if (((!(_local5)) || ((_local5 == UIComponent.STYLE_UNINITIALIZED)))){
_local5 = StyleManager.stylesRoot;
};
var _local6:Array = _arg1.getClassStyleDeclarations();
var _local7:int = _local6.length;
if ((_local2 is StyleProxy)){
if (_local7 == 0){
_local4 = addProperties(_local4, _local2, false);
};
_local3 = (StyleProxy(_local2).source as DisplayObject);
};
var _local8:int;
while (_local8 < _local7) {
_local9 = _local6[_local8];
_local5 = _local9.addStyleToProtoChain(_local5, _local3);
_local5 = addProperties(_local5, _local2, true);
_local4 = _local9.addStyleToProtoChain(_local4, _local3);
_local4 = addProperties(_local4, _local2, false);
if (_local9.effects){
_arg1.registerEffects(_local9.effects);
};
_local8++;
};
_arg1.inheritingStyles = (_arg1.styleDeclaration) ? _arg1.styleDeclaration.addStyleToProtoChain(_local5, _local3) : _local5;
_arg1.nonInheritingStyles = (_arg1.styleDeclaration) ? _arg1.styleDeclaration.addStyleToProtoChain(_local4, _local3) : _local4;
}
private static function addProperties(_arg1:Object, _arg2:IStyleClient, _arg3:Boolean):Object{
var _local11:CSSStyleDeclaration;
var _local12:CSSStyleDeclaration;
var _local4:Object = ((((_arg2 is StyleProxy)) && (!(_arg3)))) ? StyleProxy(_arg2).filterMap : null;
var _local5:IStyleClient = _arg2;
while ((_local5 is StyleProxy)) {
_local5 = StyleProxy(_local5).source;
};
var _local6:DisplayObject = (_local5 as DisplayObject);
var _local7:Array = _arg2.getClassStyleDeclarations();
var _local8:int = _local7.length;
var _local9:int;
while (_local9 < _local8) {
_local11 = _local7[_local9];
_arg1 = _local11.addStyleToProtoChain(_arg1, _local6, _local4);
if (_local11.effects){
_arg2.registerEffects(_local11.effects);
};
_local9++;
};
var _local10:Object = _arg2.styleName;
if (_local10){
if (typeof(_local10) == "object"){
if ((_local10 is CSSStyleDeclaration)){
_local12 = CSSStyleDeclaration(_local10);
} else {
_arg1 = addProperties(_arg1, IStyleClient(_local10), _arg3);
};
} else {
_local12 = StyleManager.getStyleDeclaration(("." + _local10));
};
if (_local12){
_arg1 = _local12.addStyleToProtoChain(_arg1, _local6, _local4);
if (_local12.effects){
_arg2.registerEffects(_local12.effects);
};
};
};
if (_arg2.styleDeclaration){
_arg1 = _arg2.styleDeclaration.addStyleToProtoChain(_arg1, _local6, _local4);
};
return (_arg1);
}
public static function initTextField(_arg1:IUITextField):void{
var _local3:CSSStyleDeclaration;
var _local2:Object = _arg1.styleName;
if (_local2){
if (typeof(_local2) == "object"){
if ((_local2 is CSSStyleDeclaration)){
_local3 = CSSStyleDeclaration(_local2);
} else {
if ((_local2 is StyleProxy)){
_arg1.inheritingStyles = IStyleClient(_local2).inheritingStyles;
_arg1.nonInheritingStyles = addProperties(StyleManager.stylesRoot, IStyleClient(_local2), false);
return;
};
_arg1.inheritingStyles = IStyleClient(_local2).inheritingStyles;
_arg1.nonInheritingStyles = IStyleClient(_local2).nonInheritingStyles;
return;
};
} else {
_local3 = StyleManager.getStyleDeclaration(("." + _local2));
};
};
var _local4:Object = IStyleClient(_arg1.parent).inheritingStyles;
var _local5:Object = StyleManager.stylesRoot;
if (!_local4){
_local4 = StyleManager.stylesRoot;
};
if (_local3){
_local4 = _local3.addStyleToProtoChain(_local4, DisplayObject(_arg1));
_local5 = _local3.addStyleToProtoChain(_local5, DisplayObject(_arg1));
};
_arg1.inheritingStyles = _local4;
_arg1.nonInheritingStyles = _local5;
}
}
}//package mx.styles
Section 730
//StyleProxy (mx.styles.StyleProxy)
package mx.styles {
import mx.core.*;
public class StyleProxy implements IStyleClient {
private var _source:IStyleClient;
private var _filterMap:Object;
mx_internal static const VERSION:String = "3.0.0.0";
public function StyleProxy(_arg1:IStyleClient, _arg2:Object){
this.filterMap = _arg2;
this.source = _arg1;
}
public function styleChanged(_arg1:String):void{
return (_source.styleChanged(_arg1));
}
public function get filterMap():Object{
return (((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) ? null : _filterMap);
}
public function set filterMap(_arg1:Object):void{
_filterMap = _arg1;
}
public function get styleDeclaration():CSSStyleDeclaration{
return (_source.styleDeclaration);
}
public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{
return (_source.notifyStyleChangeInChildren(_arg1, _arg2));
}
public function set inheritingStyles(_arg1:Object):void{
}
public function get source():IStyleClient{
return (_source);
}
public function get styleName():Object{
if ((_source.styleName is IStyleClient)){
return (new StyleProxy(IStyleClient(_source.styleName), filterMap));
};
return (_source.styleName);
}
public function registerEffects(_arg1:Array):void{
return (_source.registerEffects(_arg1));
}
public function regenerateStyleCache(_arg1:Boolean):void{
_source.regenerateStyleCache(_arg1);
}
public function get inheritingStyles():Object{
return (_source.inheritingStyles);
}
public function get className():String{
return (_source.className);
}
public function clearStyle(_arg1:String):void{
_source.clearStyle(_arg1);
}
public function getClassStyleDeclarations():Array{
return (_source.getClassStyleDeclarations());
}
public function set nonInheritingStyles(_arg1:Object):void{
}
public function setStyle(_arg1:String, _arg2):void{
_source.setStyle(_arg1, _arg2);
}
public function get nonInheritingStyles():Object{
return (((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) ? _source.nonInheritingStyles : null);
}
public function set styleName(_arg1:Object):void{
_source.styleName = _arg1;
}
public function getStyle(_arg1:String){
return (_source.getStyle(_arg1));
}
public function set source(_arg1:IStyleClient):void{
_source = _arg1;
}
public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{
_source.styleDeclaration = styleDeclaration;
}
}
}//package mx.styles
Section 731
//ColorUtil (mx.utils.ColorUtil)
package mx.utils {
public class ColorUtil {
mx_internal static const VERSION:String = "3.0.0.0";
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 732
//GraphicsUtil (mx.utils.GraphicsUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
public class GraphicsUtil {
mx_internal static const VERSION:String = "3.0.0.0";
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 733
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
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 734
//StringUtil (mx.utils.StringUtil)
package mx.utils {
import mx.core.*;
public class StringUtil {
mx_internal static const VERSION:String = "3.0.0.0";
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 735
//IValidatorListener (mx.validators.IValidatorListener)
package mx.validators {
import mx.events.*;
public interface IValidatorListener {
function set errorString(_arg1:String):void;
function get validationSubField():String;
function validationResultHandler(_arg1:ValidationResultEvent):void;
function set validationSubField(_arg1:String):void;
function get errorString():String;
}
}//package mx.validators
Section 736
//ValidationResult (mx.validators.ValidationResult)
package mx.validators {
public class ValidationResult {
public var subField:String;
public var errorCode:String;
public var isError:Boolean;
public var errorMessage:String;
mx_internal static const VERSION:String = "3.0.0.0";
public function ValidationResult(_arg1:Boolean, _arg2:String="", _arg3:String="", _arg4:String=""){
this.isError = _arg1;
this.subField = _arg2;
this.errorMessage = _arg4;
this.errorCode = _arg3;
}
}
}//package mx.validators
Section 737
//CustomPreloader (preload.CustomPreloader)
package preload {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import mx.events.*;
import flash.net.*;
import mx.preloaders.*;
import flash.utils.*;
public class CustomPreloader extends DownloadProgressBar {
private var TextLableHeight:int;// = 0
private var testPreloader:Boolean;// = false
private var LoadedBytes:int;
private var ls:Sprite;
private var initPhase:Boolean;
private var textLabel:TextField;
private var InitTime:int;
private var TotalBytes:int;
private var EmbeddedBanner:Class;
private static const BORDER_HEIGHT:int = 4;
private static const LOADER_HEIGHT:int = 25;
private static const LOADER_WIDTH:int = 234;
public function CustomPreloader(){
EmbeddedBanner = CustomPreloader_EmbeddedBanner;
super();
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.MOUSE_DOWN, onLogoClicked);
ls = new Sprite();
addChild(ls);
textLabel = new TextField();
textLabel.text = "A";
textLabel.textColor = 0x474747;
textLabel.wordWrap = false;
textLabel.autoSize = TextFieldAutoSize.LEFT;
textLabel.selectable = false;
textLabel.y = 70;
textLabel.x = 10;
recreateGfx();
textLabel.text = "";
ls.addChild(textLabel);
var _local1:Bitmap = new EmbeddedBanner();
ls.addChild(_local1);
_local1.y = 0;
InitTime = getTimer();
}
private function recreateGfx():void{
}
private function SWFDownloadProgress(_arg1:ProgressEvent):void{
updateGfx();
LoadedBytes = _arg1.bytesLoaded;
TotalBytes = _arg1.bytesTotal;
initPhase = false;
}
override public function set preloader(_arg1:Sprite):void{
_arg1.addEventListener(ProgressEvent.PROGRESS, SWFDownloadProgress);
_arg1.addEventListener(Event.COMPLETE, SWFDownloadComplete);
_arg1.addEventListener(FlexEvent.INIT_PROGRESS, FlexInitProgress);
_arg1.addEventListener(FlexEvent.INIT_COMPLETE, FlexInitComplete);
updateGfx();
}
private function FlexInitComplete(_arg1:Event):void{
if (!testPreloader){
dispatchEvent(new Event(Event.COMPLETE));
};
}
private function SWFDownloadComplete(_arg1:Event):void{
}
private function onLogoClicked(_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.darkness-springs.eu");
navigateToURL(_local2);
}
private function FlexInitProgress(_arg1:Event):void{
initPhase = true;
updateGfx();
}
private function updateGfx():void{
var _local2:String;
var _local3:Number;
if (!this.stage){
return;
};
var _local1:int = getTimer();
if ((_local1 - InitTime) > 1000){
alpha = 1;
textLabel.visible = true;
} else {
alpha = ((_local1 - InitTime) / 1000);
textLabel.visible = false;
};
if (testPreloader){
alpha = 1;
};
if (initPhase){
_local2 = "Initializing...";
} else {
_local2 = "Loading: ";
if (TotalBytes > 0){
_local3 = ((LoadedBytes / TotalBytes) * 100);
_local2 = (_local2 + (_local3.toFixed(2) + "%"));
};
};
textLabel.text = _local2;
ls.x = ((ls.stage.stageWidth - ls.width) / 2);
ls.y = ((ls.stage.stageHeight - ls.height) / 2);
}
}
}//package preload
Section 738
//CustomPreloader_EmbeddedBanner (preload.CustomPreloader_EmbeddedBanner)
package preload {
import mx.core.*;
public class CustomPreloader_EmbeddedBanner extends BitmapAsset {
}
}//package preload
Section 739
//_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 740
//_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 741
//_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 742
//_ApplicationStyle (_ApplicationStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _ApplicationStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Application");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Application", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.backgroundSize = "100%";
this.paddingTop = 24;
this.backgroundColor = 8821927;
this.backgroundImage = ApplicationBackground;
this.horizontalAlign = "center";
this.backgroundGradientAlphas = [1, 1];
this.paddingLeft = 24;
this.paddingBottom = 24;
this.paddingRight = 24;
};
};
}
}
}//package
Section 743
//_ButtonStyle (_ButtonStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _ButtonStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Button");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Button", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fontWeight = "bold";
this.paddingTop = 2;
this.cornerRadius = 4;
this.textAlign = "center";
this.verticalGap = 2;
this.horizontalGap = 2;
this.skin = ButtonSkin;
this.paddingLeft = 10;
this.paddingBottom = 2;
this.paddingRight = 10;
};
};
}
}
}//package
Section 744
//_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 745
//_ContainerStyle (_ContainerStyle)
package {
import mx.core.*;
import mx.styles.*;
public class _ContainerStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Container");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Container", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.borderStyle = "none";
};
};
}
}
}//package
Section 746
//_CursorManagerStyle (_CursorManagerStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _CursorManagerStyle {
private static var _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654:Class = _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654;
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("CursorManager", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.busyCursor = BusyCursor;
this.busyCursorBackground = _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654;
};
};
}
}
}//package
Section 747
//_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654 (_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654)
package {
import mx.core.*;
public class _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_790003654 extends SpriteAsset {
}
}//package
Section 748
//_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 749
//_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 750
//_dsdefense_FlexInit (_dsdefense_FlexInit)
package {
import mx.core.*;
import mx.styles.*;
import mx.effects.*;
public class _dsdefense_FlexInit {
public static function init(_arg1:IFlexModuleFactory):void{
var _local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("addedEffect", "added");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("creationCompleteEffect", "creationComplete");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("focusInEffect", "focusIn");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("focusOutEffect", "focusOut");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("hideEffect", "hide");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("mouseDownEffect", "mouseDown");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("mouseUpEffect", "mouseUp");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("moveEffect", "move");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("removedEffect", "removed");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("resizeEffect", "resize");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("rollOutEffect", "rollOut");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("rollOverEffect", "rollOver");
_local4 = EffectManager;
_local4.mx_internal::registerEffectTrigger("showEffect", "show");
var _local2:Array = ["fontAntiAliasType", "errorColor", "kerning", "backgroundDisabledColor", "modalTransparencyColor", "textRollOverColor", "textIndent", "themeColor", "modalTransparency", "textDecoration", "fontThickness", "textAlign", "fontFamily", "textSelectedColor", "fontGridFitType", "letterSpacing", "fontStyle", "dropShadowColor", "fontSize", "disabledColor", "fontWeight", "modalTransparencyBlur", "leading", "color", "fontSharpness", "barColor", "modalTransparencyDuration"];
var _local3:int;
while (_local3 < _local2.length) {
StyleManager.registerInheritingStyle(_local2[_local3]);
_local3++;
};
}
}
}//package
Section 751
//_dsdefense_mx_managers_SystemManager (_dsdefense_mx_managers_SystemManager)
package {
import mx.core.*;
import mx.managers.*;
import flash.system.*;
import preload.*;
public class _dsdefense_mx_managers_SystemManager extends SystemManager implements IFlexModuleFactory {
override public function create(... _args):Object{
if ((((_args.length > 0)) && (!((_args[0] is String))))){
return (super.create.apply(this, _args));
};
var _local2:String = ((_args.length == 0)) ? "dsdefense" : String(_args[0]);
var _local3:Class = Class(getDefinitionByName(_local2));
if (!_local3){
return (null);
};
var _local4:Object = new (_local3);
if ((_local4 is IFlexModule)){
IFlexModule(_local4).moduleFactory = this;
};
return (_local4);
}
override public function info():Object{
return ({backgroundColor:"black", compiledLocales:["en_US"], compiledResourceBundleNames:["containers", "core", "effects", "skins", "styles"], creationComplete:"initApp()", currentDomain:ApplicationDomain.currentDomain, frameRate:"40", layout:"absolute", mainClassName:"dsdefense", mixins:["_dsdefense_FlexInit", "_richTextEditorTextAreaStyleStyle", "_alertButtonStyleStyle", "_textAreaVScrollBarStyleStyle", "_headerDateTextStyle", "_globalStyle", "_todayStyleStyle", "_windowStylesStyle", "_ApplicationStyle", "_ToolTipStyle", "_CursorManagerStyle", "_opaquePanelStyle", "_errorTipStyle", "_dateFieldPopupStyle", "_dataGridStylesStyle", "_popUpMenuStyle", "_headerDragProxyStyleStyle", "_activeTabStyleStyle", "_ContainerStyle", "_windowStatusStyle", "_ScrollBarStyle", "_swatchPanelTextFieldStyle", "_textAreaHScrollBarStyleStyle", "_plainStyle", "_activeButtonStyleStyle", "_comboDropdownStyle", "_ButtonStyle", "_weekDayStyleStyle", "_linkButtonStyleStyle"], preloader:CustomPreloader, styleName:"plain"});
}
}
}//package
Section 752
//_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 753
//_globalStyle (_globalStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _globalStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("global", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.fillColor = 0xFFFFFF;
this.kerning = false;
this.iconColor = 0x111111;
this.textRollOverColor = 2831164;
this.horizontalAlign = "left";
this.shadowCapColor = 14015965;
this.backgroundAlpha = 1;
this.filled = true;
this.textDecoration = "none";
this.roundedBottomCorners = true;
this.fontThickness = 0;
this.focusBlendMode = "normal";
this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE];
this.horizontalGap = 8;
this.borderCapColor = 9542041;
this.buttonColor = 7305079;
this.indentation = 17;
this.selectionDisabledColor = 0xDDDDDD;
this.closeDuration = 250;
this.embedFonts = false;
this.paddingTop = 0;
this.letterSpacing = 0;
this.focusAlpha = 0.4;
this.bevel = true;
this.fontSize = 10;
this.shadowColor = 0xEEEEEE;
this.borderAlpha = 1;
this.paddingLeft = 0;
this.fontWeight = "normal";
this.indicatorGap = 14;
this.focusSkin = HaloFocusRect;
this.dropShadowEnabled = false;
this.leading = 2;
this.borderSkin = HaloBorder;
this.fontSharpness = 0;
this.modalTransparencyDuration = 100;
this.borderThickness = 1;
this.backgroundSize = "auto";
this.borderStyle = "inset";
this.borderColor = 12040892;
this.fontAntiAliasType = "advanced";
this.errorColor = 0xFF0000;
this.shadowDistance = 2;
this.horizontalGridLineColor = 0xF7F7F7;
this.stroked = false;
this.modalTransparencyColor = 0xDDDDDD;
this.cornerRadius = 0;
this.verticalAlign = "top";
this.textIndent = 0;
this.fillAlphas = [0.6, 0.4, 0.75, 0.65];
this.verticalGridLineColor = 14015965;
this.themeColor = 40447;
this.version = "3.0.0";
this.shadowDirection = "center";
this.modalTransparency = 0.5;
this.repeatInterval = 35;
this.openDuration = 250;
this.textAlign = "left";
this.fontFamily = "Verdana";
this.textSelectedColor = 2831164;
this.paddingBottom = 0;
this.strokeWidth = 1;
this.fontGridFitType = "pixel";
this.horizontalGridLines = false;
this.useRollOver = true;
this.verticalGridLines = true;
this.repeatDelay = 500;
this.fontStyle = "normal";
this.dropShadowColor = 0;
this.focusThickness = 2;
this.verticalGap = 6;
this.disabledColor = 11187123;
this.paddingRight = 0;
this.focusRoundedCorners = "tl tr bl br";
this.borderSides = "left top right bottom";
this.disabledIconColor = 0x999999;
this.modalTransparencyBlur = 3;
this.color = 734012;
this.selectionDuration = 250;
this.highlightAlphas = [0.3, 0];
};
};
}
}
}//package
Section 754
//_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 755
//_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 756
//_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 757
//_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 758
//_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 759
//_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 760
//_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 761
//_ScrollBarStyle (_ScrollBarStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _ScrollBarStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ScrollBar");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ScrollBar", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.thumbOffset = 0;
this.paddingTop = 0;
this.borderColor = 12040892;
this.trackColors = [9738651, 0xE7E7E7];
this.trackSkin = ScrollTrackSkin;
this.downArrowSkin = ScrollArrowSkin;
this.cornerRadius = 4;
this.upArrowSkin = ScrollArrowSkin;
this.paddingLeft = 0;
this.paddingBottom = 0;
this.thumbSkin = ScrollThumbSkin;
this.paddingRight = 0;
};
};
}
}
}//package
Section 762
//_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 763
//_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 764
//_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 765
//_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 766
//_ToolTipStyle (_ToolTipStyle)
package {
import mx.core.*;
import mx.styles.*;
import mx.skins.halo.*;
public class _ToolTipStyle {
public static function init(_arg1:IFlexModuleFactory):void{
var fbs = _arg1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ToolTip");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ToolTip", style, false);
};
if (style.defaultFactory == null){
style.defaultFactory = function ():void{
this.borderStyle = "toolTip";
this.paddingTop = 2;
this.borderColor = 9542041;
this.backgroundColor = 16777164;
this.borderSkin = ToolTipBorder;
this.cornerRadius = 2;
this.fontSize = 9;
this.shadowColor = 0;
this.paddingLeft = 4;
this.paddingBottom = 2;
this.backgroundAlpha = 0.95;
this.paddingRight = 4;
};
};
}
}
}//package
Section 767
//_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 768
//_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 769
//_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 770
//dsdefense (dsdefense)
package {
import mx.core.*;
import mx.events.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import mx.styles.*;
import flash.text.*;
import flash.media.*;
import ambiera.*;
import mx.binding.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import flash.accessibility.*;
import flash.debugger.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.xml.*;
public class dsdefense extends Application {
private var _1367706280canvas:AmbieraCanvas;
private var _documentDescriptor_:UIComponentDescriptor;
mx_internal static var _dsdefense_StylesInit_done:Boolean = false;
public function dsdefense(){
_documentDescriptor_ = new UIComponentDescriptor({type:Application, propertiesFactory:function ():Object{
return ({childDescriptors:[new UIComponentDescriptor({type:AmbieraCanvas, id:"canvas", propertiesFactory:function ():Object{
return ({percentWidth:100, percentHeight:100});
}})]});
}});
super();
mx_internal::_document = this;
if (!this.styleDeclaration){
this.styleDeclaration = new CSSStyleDeclaration();
};
this.styleDeclaration.defaultFactory = function ():void{
this.backgroundColor = 0;
};
mx_internal::_dsdefense_StylesInit();
this.styleName = "plain";
this.layout = "absolute";
this.addEventListener("creationComplete", ___dsdefense_Application1_creationComplete);
}
public function ___dsdefense_Application1_creationComplete(_arg1:FlexEvent):void{
initApp();
}
override public function initialize():void{
mx_internal::setDocumentDescriptor(_documentDescriptor_);
super.initialize();
}
public function initApp():void{
canvas.init();
}
public function set canvas(_arg1:AmbieraCanvas):void{
var _local2:Object = this._1367706280canvas;
if (_local2 !== _arg1){
this._1367706280canvas = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "canvas", _local2, _arg1));
};
}
public function get canvas():AmbieraCanvas{
return (this._1367706280canvas);
}
mx_internal function _dsdefense_StylesInit():void{
var style:CSSStyleDeclaration;
var effects:Array;
if (mx_internal::_dsdefense_StylesInit_done){
return;
};
mx_internal::_dsdefense_StylesInit_done = true;
style = StyleManager.getStyleDeclaration("ToolTip");
if (!style){
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ToolTip", style, false);
};
if (style.factory == null){
style.factory = function ():void{
this.color = 16770441;
this.backgroundColor = 0;
this.cornerRadius = 0;
this.backgroundAlpha = 0.7;
};
};
var _local2 = StyleManager;
_local2.mx_internal::initProtoChainRoots();
}
}
}//package
Section 771
//en_US$containers_properties (en_US$containers_properties)
package {
import mx.resources.*;
public class en_US$containers_properties extends ResourceBundle {
public function en_US$containers_properties(){
super("en_US", "containers");
}
override protected function getContent():Object{
var _local1:Object = {noColumnsFound:"No ConstraintColumns found.", noRowsFound:"No ConstraintRows found.", rowNotFound:"ConstraintRow '{0}' not found.", columnNotFound:"ConstraintColumn '{0}' not found."};
return (_local1);
}
}
}//package
Section 772
//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 773
//en_US$effects_properties (en_US$effects_properties)
package {
import mx.resources.*;
public class en_US$effects_properties extends ResourceBundle {
public function en_US$effects_properties(){
super("en_US", "effects");
}
override protected function getContent():Object{
var _local1:Object = {incorrectTrigger:"The Zoom effect can not be triggered by a moveEffect trigger.", incorrectSource:"Source property must be a Class or String."};
return (_local1);
}
}
}//package
Section 774
//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 775
//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