// Decompiled by AS3 Sorcerer 2.72 // http://www.as3sorcerer.com/ //------------------------------------------------------------ //_-00B._SafeStr_5131 package _-00B{ import flash.utils.ByteArray; public class _SafeStr_5131 { private var ba:ByteArray; public function _SafeStr_5131(k:int){ this.ba = new ByteArray(); this.ba.writeShort(k); this.ba.position = 0; } public function get value():int{ var k:int; this.ba.position = 0; if (this.ba.bytesAvailable) { k = this.ba.readShort(); this.ba.position = 0; }; return (k); } } }//package _-00B // _SafeStr_5131 = "_-3n0" (String#14836, DoABC#3) //------------------------------------------------------------ //_-01-._SafeStr_2628 package _-01-{ import _-29V.IWindowContainer; import _-29V.IWindow; import _-6Tv._SafeStr_3453; import _-6Sj._SafeStr_2600; public class _SafeStr_2628 { private static const _SafeStr_5317:int = 0xCCCCCC; private static const _SafeStr_5318:int = 10275685; private var _SafeStr_5319:String; private var _SafeStr_5320:Boolean; private var _SafeStr_5321:Boolean; private var _SafeStr_5322:IWindowContainer; private var _SafeStr_5323:IWindow; private var _SafeStr_5324:Boolean; public function _SafeStr_2628(k:String, _arg_2:IWindowContainer, _arg_3:Boolean){ this._SafeStr_5319 = k; this._SafeStr_5322 = _arg_2; this._SafeStr_5323 = this._SafeStr_5322.findChildByTag("BG_COLOR"); this._SafeStr_5324 = _arg_3; _SafeStr_3453(_SafeStr_2600(this._SafeStr_5322.findChildByName("badge")).widget).badgeId = k; this._SafeStr_5322.findChildByName("badge").visible = true; this._SafeStr_5325 = false; } public function get badgeId():String{ return (this._SafeStr_5319); } public function get _SafeStr_5326():Boolean{ return (this._SafeStr_5320); } public function get _SafeStr_5325():Boolean{ return (this._SafeStr_5321); } public function get window():IWindowContainer{ return (this._SafeStr_5322); } public function set _SafeStr_5326(k:Boolean):void{ this._SafeStr_5320 = k; } public function set _SafeStr_5325(k:Boolean):void{ this._SafeStr_5321 = k; if (this._SafeStr_5323 == null) { return; }; this._SafeStr_5323.color = ((this._SafeStr_5324) ? _SafeStr_5318 : _SafeStr_5317); this._SafeStr_5322.findChildByName("outline").visible = k; } public function set _SafeStr_5327(k:Boolean):void{ if (this._SafeStr_5324 != k) { this._SafeStr_5324 = k; this._SafeStr_5325 = this._SafeStr_5321; }; } } }//package _-01- // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_2628 = "_-4dB" (String#2201, DoABC#3) // _SafeStr_3453 = "_-3ev" (String#1214, DoABC#3) // _SafeStr_5317 = "_-4IH" (String#5280, DoABC#3) // _SafeStr_5318 = "_-3Nl" (String#5237, DoABC#3) // _SafeStr_5319 = "_-0f8" (String#2104, DoABC#3) // _SafeStr_5320 = "_-3yR" (String#12585, DoABC#3) // _SafeStr_5321 = "_-2qZ" (String#3034, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5323 = "_-6ig" (String#2563, DoABC#3) // _SafeStr_5324 = "_-EX" (String#5474, DoABC#3) // _SafeStr_5325 = "_-2iN" (String#998, DoABC#3) // _SafeStr_5326 = "_-1Eb" (String#3675, DoABC#3) // _SafeStr_5327 = "_-0ej" (String#4462, DoABC#3) //------------------------------------------------------------ //_-01-.BadgesModel package _-01-{ import _-Qa._SafeStr_2622; import _-Qa.HabboInventory; import _-WS.Map; import _-3UH._SafeStr_10; import _-67y._SafeStr_1375; import _-3xK._SafeStr_637; import _-3KA._SafeStr_3472; import _-3UH._SafeStr_39; import _-3UH.XmlAsset; import _-29V.IWindowContainer; import _-0ch._SafeStr_2625; import _-3KA.SetActivatedBadgesComposer; import _-0ch._SafeStr_2633; import flash.events.Event; import _-2xx._SafeStr_2298; public class BadgesModel implements _SafeStr_2622 { public static const _SafeStr_5328:int = -1; public static const _SafeStr_5329:int = 0; public static const _SafeStr_5330:int = 1; private const _SafeStr_5331:int = 5; private var _SafeStr_5332:HabboInventory; private var _SafeStr_5333:BadgesView; private var _SafeStr_5334:Array; private var _SafeStr_5335:Array; private var _SafeStr_5336:Map; private var _assets:_SafeStr_10; private var _SafeStr_5337:_SafeStr_1375; private var _SafeStr_5338:_SafeStr_637; private var _disposed:Boolean = false; public function BadgesModel(k:HabboInventory, _arg_2:_SafeStr_637, _arg_3:_SafeStr_1375, _arg_4:_SafeStr_10){ this._SafeStr_5332 = k; this._SafeStr_5338 = _arg_2; this._SafeStr_5334 = new Array(); this._SafeStr_5335 = new Array(); this._assets = _arg_4; this._SafeStr_5337 = _arg_3; this._SafeStr_5333 = new BadgesView(this, _arg_2, _arg_4); this._SafeStr_5336 = new Map(); } public function get disposed():Boolean{ return (this._disposed); } public function dispose():void{ if (this._disposed) { return; }; this._disposed = true; this._SafeStr_5332 = null; this._SafeStr_5338 = null; this._SafeStr_5334 = null; this._SafeStr_5335 = null; if (this._SafeStr_5336) { this._SafeStr_5336.dispose(); this._SafeStr_5336 = null; }; if (this._SafeStr_5333 != null) { this._SafeStr_5333.dispose(); this._SafeStr_5333 = null; }; this._assets = null; this._SafeStr_5337 = null; } public function _SafeStr_5339():void{ this._SafeStr_5337.connection.send(new _SafeStr_3472()); } public function _SafeStr_5340():int{ return (this._SafeStr_5331); } public function _SafeStr_5341():void{ if (this._SafeStr_5333 != null) { this._SafeStr_5333._SafeStr_5342(null); }; } private function _SafeStr_5343():void{ if (this._SafeStr_5333 != null) { this._SafeStr_5333._SafeStr_5343(); }; } private function _SafeStr_5344(k:_SafeStr_2628):void{ this._SafeStr_5335.push(k); k._SafeStr_5326 = true; } private function _SafeStr_5345(k:_SafeStr_2628):void{ var _local_2:int; while (_local_2 < this._SafeStr_5335.length) { if (this._SafeStr_5335[_local_2] == k) { this._SafeStr_5335.splice(_local_2, 1); k._SafeStr_5326 = false; return; }; _local_2++; }; } public function updateBadge(k:String, _arg_2:Boolean, _arg_3:int=0):void{ var _local_5:_SafeStr_39; var _local_6:XmlAsset; var _local_7:IWindowContainer; var _local_8:Boolean; var _local_9:_SafeStr_2628; if (_arg_3 > 0) { this._SafeStr_5336.add(k, _arg_3); }; var _local_4:_SafeStr_2628 = this._SafeStr_5346(k); if (_local_4 != null) { if (_local_4._SafeStr_5326 != _arg_2) { if (_arg_2) { this._SafeStr_5344(_local_4); } else { this._SafeStr_5345(_local_4); }; }; } else { _local_5 = this._assets.getAssetByName("inventory_thumb_xml"); _local_6 = XmlAsset(_local_5); _local_7 = (this._SafeStr_5338.buildFromXML(XML(_local_6.content)) as IWindowContainer); _local_8 = this._SafeStr_5332._SafeStr_5347._SafeStr_5327(_SafeStr_2625.BADGE, _arg_3); _local_9 = new _SafeStr_2628(k, _local_7, _local_8); if (_local_8) { this._SafeStr_5334.unshift(_local_9); } else { this._SafeStr_5334.push(_local_9); }; if (_arg_2) { this._SafeStr_5344(_local_9); }; }; } private function _SafeStr_5346(k:String):_SafeStr_2628{ var _local_3:_SafeStr_2628; var _local_2:int; while (_local_2 < this._SafeStr_5334.length) { _local_3 = this._SafeStr_5334[_local_2]; if (_local_3.badgeId == k) { return (_local_3); }; _local_2++; }; return (null); } public function _SafeStr_5348(k:String):void{ var _local_3:_SafeStr_2628; var _local_2:int; while (_local_2 < this._SafeStr_5334.length) { _local_3 = this._SafeStr_5334[_local_2]; if (_local_3.badgeId == k) { this._SafeStr_5334.splice(_local_2, 1); this._SafeStr_5345(_local_3); this._SafeStr_5341(); return; }; _local_2++; }; } public function _SafeStr_5349(k:String):void{ var _local_2:_SafeStr_2628 = this._SafeStr_5346(k); if (_local_2 != null) { if (_local_2._SafeStr_5326) { this._SafeStr_5345(_local_2); } else { this._SafeStr_5344(_local_2); }; this._SafeStr_5350(); }; } public function _SafeStr_5350():void{ var _local_4:_SafeStr_2628; var k:SetActivatedBadgesComposer = new SetActivatedBadgesComposer(); var _local_2:Array = this._SafeStr_5351(_SafeStr_5330); var _local_3:int; while (_local_3 < _local_2.length) { _local_4 = _local_2[_local_3]; k._SafeStr_5352(_local_4.badgeId); _local_3++; }; this._SafeStr_5337.connection.send(k); } public function _SafeStr_5353(k:String):void{ var _local_3:_SafeStr_2628; var _local_2:int; while (_local_2 < this._SafeStr_5334.length) { _local_3 = (this._SafeStr_5334[_local_2] as _SafeStr_2628); if (_local_3 != null) { _local_3._SafeStr_5325 = (_local_3.badgeId == k); }; _local_2++; }; this._SafeStr_5343(); } public function _SafeStr_5354():void{ var k:_SafeStr_2628 = this._SafeStr_5355(); if (k != null) { return; }; var _local_2:Array = this._SafeStr_5351(_SafeStr_5329); if (((!((_local_2 == null))) && ((_local_2.length > 0)))) { k = (_local_2[0] as _SafeStr_2628); k._SafeStr_5325 = true; this._SafeStr_5341(); return; }; var _local_3:Array = this._SafeStr_5351(_SafeStr_5330); if (((!((_local_3 == null))) && ((_local_3.length > 0)))) { k = (_local_3[0] as _SafeStr_2628); k._SafeStr_5325 = true; this._SafeStr_5341(); }; } public function _SafeStr_5355(k:int=-1):_SafeStr_2628{ var _local_4:_SafeStr_2628; var _local_2:Array = this._SafeStr_5351(k); var _local_3:int; while (_local_3 < _local_2.length) { _local_4 = _local_2[_local_3]; if (_local_4._SafeStr_5325) { return (_local_4); }; _local_3++; }; return (null); } public function _SafeStr_5351(k:int=-1):Array{ var _local_2:Array; var _local_3:_SafeStr_2628; switch (k) { case _SafeStr_5328: return (this._SafeStr_5334); case _SafeStr_5329: _local_2 = new Array(); for each (_local_3 in this._SafeStr_5334) { if (!_local_3._SafeStr_5326) { _local_2.push(_local_3); }; }; return (_local_2); case _SafeStr_5330: return (this._SafeStr_5335); }; _SafeStr_4.log("Unexpected filter. Returning an empty array to maintain backward compatibility"); return (new Array()); } public function _SafeStr_5356(k:int):_SafeStr_2628{ return (this._SafeStr_5357(k, _SafeStr_5330)); } public function _SafeStr_5358(k:int):_SafeStr_2628{ return (this._SafeStr_5357(k, _SafeStr_5329)); } public function _SafeStr_5357(k:int, _arg_2:int=-1):_SafeStr_2628{ var _local_3:Array = this._SafeStr_5351(_arg_2); if ((((k < 0)) || ((k >= _local_3.length)))) { return (null); }; return (_local_3[k]); } public function getWindowContainer():IWindowContainer{ return (this._SafeStr_5333.getWindowContainer()); } public function _SafeStr_5359():void{ if (this._SafeStr_5333._SafeStr_5360) { this._SafeStr_5361(); }; } public function _SafeStr_5362(k:String):void{ if ((((k == _SafeStr_2633._SafeStr_5363)) && (this._SafeStr_5332._SafeStr_5360))) { this._SafeStr_5332.events.dispatchEvent(new Event(_SafeStr_2298.HABBO_INVENTORY_TRACKING_EVENT_BADGES)); }; } public function _SafeStr_5364(k:String):void{ } public function get controller():HabboInventory{ return (this._SafeStr_5332); } public function _SafeStr_5361():void{ var k:_SafeStr_2628; if (!this._SafeStr_5332._SafeStr_5365) { return; }; this._SafeStr_5332._SafeStr_5347._SafeStr_5366(_SafeStr_2625.BADGE); for each (k in this._SafeStr_5334) { k._SafeStr_5327 = false; }; this._SafeStr_5341(); this._SafeStr_5332._SafeStr_5367(); } public function _SafeStr_5368(k:String):void{ this._SafeStr_5353(k); } } }//package _-01- // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_1375 = "_-67Z" (String#891, DoABC#3) // _SafeStr_2298 = "_-40B" (String#4180, DoABC#3) // _SafeStr_2622 = "_-4DY" (String#2647, DoABC#3) // _SafeStr_2625 = "_-0x9" (String#2996, DoABC#3) // _SafeStr_2628 = "_-4dB" (String#2201, DoABC#3) // _SafeStr_2633 = "_-5QF" (String#1178, DoABC#3) // _SafeStr_3472 = "_-0b" (String#11115, DoABC#3) // _SafeStr_39 = "_-0KE" (String#593, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5325 = "_-2iN" (String#998, DoABC#3) // _SafeStr_5326 = "_-1Eb" (String#3675, DoABC#3) // _SafeStr_5327 = "_-0ej" (String#4462, DoABC#3) // _SafeStr_5328 = "_-0iz" (String#25374, DoABC#3) // _SafeStr_5329 = "_-0qS" (String#12712, DoABC#3) // _SafeStr_5330 = "_-1bi" (String#9723, DoABC#3) // _SafeStr_5331 = "_-36" (String#36366, DoABC#3) // _SafeStr_5332 = "_-0CD" (String#194, DoABC#3) // _SafeStr_5333 = "_-2YU" (String#98, DoABC#3) // _SafeStr_5334 = "_-3eR" (String#1742, DoABC#3) // _SafeStr_5335 = "_-4mY" (String#10130, DoABC#3) // _SafeStr_5336 = "_-zs" (String#6442, DoABC#3) // _SafeStr_5337 = "_-jQ" (String#411, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_5339 = "_-6jK" (String#7054, DoABC#3) // _SafeStr_5340 = "_-NO" (String#33203, DoABC#3) // _SafeStr_5341 = "_-1vg" (String#1615, DoABC#3) // _SafeStr_5342 = "_-3fE" (String#24364, DoABC#3) // _SafeStr_5343 = "_-46j" (String#3027, DoABC#3) // _SafeStr_5344 = "_-3Rp" (String#21837, DoABC#3) // _SafeStr_5345 = "_-6T2" (String#25109, DoABC#3) // _SafeStr_5346 = "_-5g5" (String#26373, DoABC#3) // _SafeStr_5347 = "_-4xY" (String#4224, DoABC#3) // _SafeStr_5348 = "_-2o-" (String#38419, DoABC#3) // _SafeStr_5349 = "_-3UO" (String#37493, DoABC#3) // _SafeStr_5350 = "_-0F9" (String#32327, DoABC#3) // _SafeStr_5351 = "_-5xV" (String#7530, DoABC#3) // _SafeStr_5352 = "_-34T" (String#32418, DoABC#3) // _SafeStr_5353 = "_-Py" (String#23897, DoABC#3) // _SafeStr_5354 = "_-2S8" (String#32086, DoABC#3) // _SafeStr_5355 = "_-D7" (String#24486, DoABC#3) // _SafeStr_5356 = "_-471" (String#37852, DoABC#3) // _SafeStr_5357 = "_-6fC" (String#16146, DoABC#3) // _SafeStr_5358 = "_-0i7" (String#44612, DoABC#3) // _SafeStr_5359 = "_-21C" (String#7147, DoABC#3) // _SafeStr_5360 = "_-6Wz" (String#2394, DoABC#3) // _SafeStr_5361 = "_-118" (String#5993, DoABC#3) // _SafeStr_5362 = "_-th" (String#8324, DoABC#3) // _SafeStr_5363 = "_-3A8" (String#5115, DoABC#3) // _SafeStr_5364 = "_-0Mp" (String#8274, DoABC#3) // _SafeStr_5365 = "_-3bV" (String#36102, DoABC#3) // _SafeStr_5366 = "_-2Ty" (String#13540, DoABC#3) // _SafeStr_5367 = "_-zZ" (String#9482, DoABC#3) // _SafeStr_5368 = "_-47b" (String#8514, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-01-.BadgesView package _-01-{ import _-Qa._SafeStr_3718; import _-3xK._SafeStr_637; import _-29V.IWindowContainer; import _-6Sj.IItemGridWindow; import _-3UH._SafeStr_10; import _-6Sj.IButtonWindow; import _-6Tv._SafeStr_3453; import _-6Sj._SafeStr_2600; import _-0ch._SafeStr_2633; import _-29V.IWindow; import _-5Vh.WindowMouseEvent; import _-6a2.Core; import _-6Sj.ITextWindow; import _-5Vh.WindowKeyboardEvent; import _-5Vh.WindowEvent; public class BadgesView implements _SafeStr_3718 { private var _SafeStr_5338:_SafeStr_637; private var _SafeStr_5333:IWindowContainer; private var _SafeStr_5369:BadgesModel; private var _SafeStr_5370:IItemGridWindow; private var _SafeStr_5371:IItemGridWindow; private var _disposed:Boolean = false; private var _SafeStr_5372:Boolean = false; private var _SafeStr_5373:Array; public function BadgesView(k:BadgesModel, _arg_2:_SafeStr_637, _arg_3:_SafeStr_10){ this._SafeStr_5369 = k; this._SafeStr_5338 = _arg_2; } public function get disposed():Boolean{ return (this._disposed); } public function get _SafeStr_5360():Boolean{ return (((((this._SafeStr_5333) && (!((this._SafeStr_5333.parent == null))))) && (this._SafeStr_5333.visible))); } public function dispose():void{ if (this._disposed) { return; }; this._disposed = true; this._SafeStr_5338 = null; this._SafeStr_5369 = null; this._SafeStr_5370 = null; this._SafeStr_5371 = null; this._SafeStr_5373 = null; if (this._SafeStr_5333) { this._SafeStr_5333.dispose(); this._SafeStr_5333 = null; }; } public function getWindowContainer():IWindowContainer{ if (!this._SafeStr_5372) { this.init(); }; if ((((this._SafeStr_5333 == null)) || (this._SafeStr_5333.disposed))) { return (null); }; return (this._SafeStr_5333); } public function _SafeStr_5342(k:String):void{ this._SafeStr_5374(k); this._SafeStr_5343(); } public function _SafeStr_5343():void{ var _local_3:Array; if (!this._SafeStr_5372) { return; }; if ((((this._SafeStr_5333 == null)) || (this._SafeStr_5333.disposed))) { return; }; var k:IButtonWindow = (this._SafeStr_5333.findChildByName("wearBadge_button") as IButtonWindow); if (k == null) { return; }; var _local_2:_SafeStr_2628 = this._SafeStr_5369._SafeStr_5355(); if (_local_2 == null) { k.disable(); this._SafeStr_5375(null); this._SafeStr_5333.findChildByName("badge_image").visible = false; } else { if (_local_2._SafeStr_5326) { k.caption = "${inventory.badges.clearbadge}"; } else { k.caption = "${inventory.badges.wearbadge}"; }; this._SafeStr_5375(this._SafeStr_5369.controller.localization.getBadgeName(_local_2.badgeId)); _SafeStr_3453(_SafeStr_2600(this._SafeStr_5333.findChildByName("badge_image")).widget).badgeId = _local_2.badgeId; this._SafeStr_5333.findChildByName("badge_image").visible = true; _local_3 = this._SafeStr_5369._SafeStr_5351(BadgesModel._SafeStr_5330); if (((((!((_local_3 == null))) && ((_local_3.length >= this._SafeStr_5369._SafeStr_5340())))) && (!(_local_2._SafeStr_5326)))) { k.disable(); } else { k.enable(); }; }; } private function init():void{ this._SafeStr_5333 = this._SafeStr_5369.controller.view._SafeStr_5376(_SafeStr_2633._SafeStr_5363); this._SafeStr_5333.procedure = this._SafeStr_5377; this._SafeStr_5333.visible = false; var k:IWindow = this._SafeStr_5333.findChildByName("wearBadge_button"); if (k != null) { k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5378); }; this._SafeStr_5370 = (this._SafeStr_5333.findChildByName("inactive_items") as IItemGridWindow); this._SafeStr_5370.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5379); this._SafeStr_5371 = (this._SafeStr_5333.findChildByName("active_items") as IItemGridWindow); this._SafeStr_5371.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5380); this._SafeStr_5333.findChildByName("filter").caption = ""; this._SafeStr_5333.findChildByName("clear_filter_button").visible = false; this._SafeStr_5373 = new Array(); this._SafeStr_5372 = true; } private function _SafeStr_5374(k:String):void{ var _local_4:_SafeStr_2628; var _local_7:Boolean; var _local_8:String; var _local_9:String; var _local_10:String; if (!this._SafeStr_5372) { return; }; if ((((this._SafeStr_5333 == null)) || (this._SafeStr_5333.disposed))) { return; }; var _local_2:Number = this._SafeStr_5370.scrollV; this._SafeStr_5370._SafeStr_5381(); this._SafeStr_5371._SafeStr_5381(); this._SafeStr_5373.length = 0; var _local_3:Array = this._SafeStr_5369._SafeStr_5351(BadgesModel._SafeStr_5329); var _local_5:int; while (_local_5 < _local_3.length) { _local_4 = (_local_3[_local_5] as _SafeStr_2628); if (!_local_4._SafeStr_5326) { _local_7 = false; if ((((k == null)) || ((k.length == 0)))) { _local_7 = true; } else { _local_8 = k.toLowerCase(); _local_9 = this._SafeStr_5369.controller.localization.getBadgeName(_local_4.badgeId); _local_10 = this._SafeStr_5369.controller.localization.getBadgeDesc(_local_4.badgeId); if ((((_local_9 == null)) || ((_local_10 == null)))) { Core.error(("Missing localization for badge " + _local_4.badgeId), false); } else { _local_9 = _local_9.toLowerCase(); _local_10 = _local_10.toLowerCase(); if ((((_local_9.indexOf(_local_8) >= 0)) || ((_local_10.indexOf(_local_8) >= 0)))) { _local_7 = true; }; }; }; if (_local_7) { this._SafeStr_5370._SafeStr_5382(_local_4.window); this._SafeStr_5373.push(_local_4); _local_4.window.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5379); }; }; _local_5++; }; if (_local_2 > 0) { this._SafeStr_5370.scrollV = _local_2; }; var _local_6:Array = this._SafeStr_5369._SafeStr_5351(BadgesModel._SafeStr_5330); _local_5 = 0; while (_local_5 < _local_6.length) { _local_4 = (_local_6[_local_5] as _SafeStr_2628); this._SafeStr_5371._SafeStr_5382(_local_4.window); _local_4.window.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5380); _local_5++; }; } private function _SafeStr_5375(k:String):void{ if ((((this._SafeStr_5333 == null)) || (this._SafeStr_5333.disposed))) { return; }; var _local_2:ITextWindow = (this._SafeStr_5333.findChildByName("badgeName") as ITextWindow); if (_local_2 == null) { return; }; if (k == null) { _local_2.text = ""; } else { _local_2.text = ""; _local_2.text = k; }; } private function _SafeStr_5377(k:WindowEvent, _arg_2:IWindow):void{ var _local_3:WindowKeyboardEvent; if (k.type == WindowMouseEvent.CLICK) { switch (_arg_2.name) { case "clear_filter_button": this._SafeStr_5333.findChildByName("filter").caption = ""; _arg_2.visible = false; this._SafeStr_5342(null); break; }; } else { if (k.type == WindowKeyboardEvent._SafeStr_5383) { _local_3 = (k as WindowKeyboardEvent); switch (_arg_2.name) { case "filter": this._SafeStr_5333.findChildByName("clear_filter_button").visible = (_arg_2.caption.length > 0); if (_local_3.keyCode == 13) { this._SafeStr_5342(_arg_2.caption); }; return; }; }; }; } private function _SafeStr_5379(k:WindowEvent):void{ var _local_2:int = this._SafeStr_5370._SafeStr_5384(k.window); var _local_3:_SafeStr_2628 = this._SafeStr_5373[_local_2]; if (_local_3 != null) { this._SafeStr_5369._SafeStr_5353(_local_3.badgeId); }; } private function _SafeStr_5380(k:WindowEvent):void{ var _local_2:int = this._SafeStr_5371._SafeStr_5384(k.window); var _local_3:_SafeStr_2628 = this._SafeStr_5369._SafeStr_5356(_local_2); if (_local_3 != null) { this._SafeStr_5369._SafeStr_5353(_local_3.badgeId); }; } private function _SafeStr_5378(k:WindowEvent):void{ var _local_2:_SafeStr_2628 = this._SafeStr_5369._SafeStr_5355(); if (_local_2 != null) { this._SafeStr_5369._SafeStr_5349(_local_2.badgeId); }; } } }//package _-01- // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_2628 = "_-4dB" (String#2201, DoABC#3) // _SafeStr_2633 = "_-5QF" (String#1178, DoABC#3) // _SafeStr_3453 = "_-3ev" (String#1214, DoABC#3) // _SafeStr_3718 = "_-0N1" (String#8465, DoABC#3) // _SafeStr_5326 = "_-1Eb" (String#3675, DoABC#3) // _SafeStr_5329 = "_-0qS" (String#12712, DoABC#3) // _SafeStr_5330 = "_-1bi" (String#9723, DoABC#3) // _SafeStr_5333 = "_-2YU" (String#98, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_5340 = "_-NO" (String#33203, DoABC#3) // _SafeStr_5342 = "_-3fE" (String#24364, DoABC#3) // _SafeStr_5343 = "_-46j" (String#3027, DoABC#3) // _SafeStr_5349 = "_-3UO" (String#37493, DoABC#3) // _SafeStr_5351 = "_-5xV" (String#7530, DoABC#3) // _SafeStr_5353 = "_-Py" (String#23897, DoABC#3) // _SafeStr_5355 = "_-D7" (String#24486, DoABC#3) // _SafeStr_5356 = "_-471" (String#37852, DoABC#3) // _SafeStr_5360 = "_-6Wz" (String#2394, DoABC#3) // _SafeStr_5363 = "_-3A8" (String#5115, DoABC#3) // _SafeStr_5369 = "_-5xw" (String#469, DoABC#3) // _SafeStr_5370 = "_-32c" (String#8824, DoABC#3) // _SafeStr_5371 = "_-3UE" (String#13194, DoABC#3) // _SafeStr_5372 = "_-ct" (String#1012, DoABC#3) // _SafeStr_5373 = "_-Zc" (String#16443, DoABC#3) // _SafeStr_5374 = "_-1On" (String#20365, DoABC#3) // _SafeStr_5375 = "_-3JV" (String#29409, DoABC#3) // _SafeStr_5376 = "_-3bQ" (String#13547, DoABC#3) // _SafeStr_5377 = "_-3ok" (String#3898, DoABC#3) // _SafeStr_5378 = "_-2hY" (String#36043, DoABC#3) // _SafeStr_5379 = "_-2np" (String#30821, DoABC#3) // _SafeStr_5380 = "_-5R-" (String#28518, DoABC#3) // _SafeStr_5381 = "_-6NH" (String#4868, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5383 = "_-1ON" (String#3499, DoABC#3) // _SafeStr_5384 = "_-5Zh" (String#3966, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-01c._SafeStr_4405 package _-01c{ public class _SafeStr_4405 { public static var _SafeStr_5385:uint = 1; public static var _SafeStr_5386:uint = 2; public static var _SafeStr_5387:uint = 3; public static var _SafeStr_5388:uint = 4; private var _SafeStr_5389:int; private var _SafeStr_5390:String; private var _SafeStr_5391:String; public function _SafeStr_4405(k:int, _arg_2:String, _arg_3:String){ this._SafeStr_5389 = k; this._SafeStr_5390 = _arg_2; this._SafeStr_5391 = _arg_3; } public function get userId():int{ return (this._SafeStr_5389); } public function get username():String{ return (this._SafeStr_5390); } public function get _SafeStr_5392():String{ return (this._SafeStr_5391); } public function toString():String{ return ((((((("[" + this._SafeStr_5389) + ", ") + this._SafeStr_5390) + "] [") + this._SafeStr_5391) + "]")); } } }//package _-01c // _SafeStr_4405 = "_-62y" (String#10187, DoABC#3) // _SafeStr_5385 = "_-1oP" (String#29986, DoABC#3) // _SafeStr_5386 = "_-P4" (String#27985, DoABC#3) // _SafeStr_5387 = "_-0Qv" (String#28566, DoABC#3) // _SafeStr_5388 = "_-39m" (String#30660, DoABC#3) // _SafeStr_5389 = "_-1xq" (String#461, DoABC#3) // _SafeStr_5390 = "_-0ZG" (String#7563, DoABC#3) // _SafeStr_5391 = "_-6fI" (String#23578, DoABC#3) // _SafeStr_5392 = "_-0VJ" (String#34206, DoABC#3) //------------------------------------------------------------ //_-01f._SafeStr_4561 package _-01f{ public class _SafeStr_4561 { public static const _SafeStr_5393:String = "videoStateEmpty"; public static const _SafeStr_5394:String = "videoStatePlaying"; public static const _SafeStr_5395:String = "videoStatePaused"; public static const _SafeStr_5396:String = "videoStateStopped"; } }//package _-01f // _SafeStr_4561 = "_-29J" (String#2841, DoABC#3) // _SafeStr_5393 = "_-Qe" (String#12923, DoABC#3) // _SafeStr_5394 = "_-yb" (String#6993, DoABC#3) // _SafeStr_5395 = "_-6eZ" (String#6340, DoABC#3) // _SafeStr_5396 = "_-5bK" (String#7431, DoABC#3) //------------------------------------------------------------ //_-01f._SafeStr_5122 package _-01f{ import flash.display.Sprite; import flash.display.Shape; import _-rU._SafeStr_5238; import _-rU._SafeStr_5237; import _-rU.BtnSound; import _-rU._SafeStr_5239; import _-rU.VideoTimeLabel; import _-54C.VideoMetadataVo; import _-1T2._SafeStr_5120; import flash.events.MouseEvent; import _-1M-.VideoControlsEvent; public class _SafeStr_5122 extends Sprite { private var _SafeStr_5397:int; private var _SafeStr_5398:Shape; private var _SafeStr_5399:_SafeStr_5238; private var _SafeStr_5400:_SafeStr_5237; private var _SafeStr_5401:BtnSound; private var _SafeStr_5402:_SafeStr_5239; private var _SafeStr_5403:VideoTimeLabel; private var _SafeStr_5404:VideoMetadataVo; public function _SafeStr_5122(k:int){ this._SafeStr_5405(k); } public function _SafeStr_5406(k:String):void{ this._SafeStr_5402._SafeStr_5407(k); } public function _SafeStr_5408(k:Number):void{ this._SafeStr_5400._SafeStr_5408(k); } public function _SafeStr_5409(k:Number):void{ this._SafeStr_5400._SafeStr_5409(k); if (this._SafeStr_5404 != null) { this._SafeStr_5403.update((this._SafeStr_5404.duration * k)); }; } private function _SafeStr_5410():void{ this._SafeStr_5398 = _SafeStr_5120.rect(this.width, 29, 0, 0); addChild(this._SafeStr_5398); this._SafeStr_5399 = new _SafeStr_5238(); this._SafeStr_5399.x = 0; this._SafeStr_5399.y = 3; addChild(this._SafeStr_5399); this._SafeStr_5401 = new BtnSound(); this._SafeStr_5403 = new VideoTimeLabel(); this._SafeStr_5402 = new _SafeStr_5239(); this._SafeStr_5400 = new _SafeStr_5237((this.width - ((((this._SafeStr_5399.width + this._SafeStr_5401.width) + this._SafeStr_5402.width) + this._SafeStr_5403.width) + (4 * 3)))); this._SafeStr_5403.x = (((((this.width - this._SafeStr_5402.width) - this._SafeStr_5401.width) - 3) - this._SafeStr_5403.width) - 3); this._SafeStr_5403.y = 3; this._SafeStr_5401.x = (((this.width - this._SafeStr_5402.width) - this._SafeStr_5401.width) - 3); this._SafeStr_5401.y = 3; this._SafeStr_5402.x = (this.width - this._SafeStr_5402.width); this._SafeStr_5402.y = 3; this._SafeStr_5400.x = ((this._SafeStr_5399.x + this._SafeStr_5399.width) + 3); this._SafeStr_5400.y = 11; addChild(this._SafeStr_5400); addChild(this._SafeStr_5403); addChild(this._SafeStr_5401); addChild(this._SafeStr_5402); } private function _SafeStr_5405(k:int):void{ this._SafeStr_5397 = k; this._SafeStr_5410(); addEventListener(MouseEvent.CLICK, this.onClick, false, 0, true); } private function onClick(k:MouseEvent):void{ switch (k.target) { case this._SafeStr_5399: dispatchEvent(new VideoControlsEvent(VideoControlsEvent._SafeStr_5411, true, true)); return; case this._SafeStr_5402: dispatchEvent(new VideoControlsEvent(VideoControlsEvent._SafeStr_5412, true, true)); return; }; } override public function get width():Number{ return (this._SafeStr_5397); } override public function set width(k:Number):void{ this._SafeStr_5397 = k; if (this._SafeStr_5398 != null) { this._SafeStr_5398.width = k; this._SafeStr_5400.width = k; this._SafeStr_5401.x = ((this._SafeStr_5400.x + this._SafeStr_5400.width) + 4); }; } public function set state(k:String):void{ this._SafeStr_5399._SafeStr_5407(k); } public function set _SafeStr_5413(k:Number):void{ this._SafeStr_5401._SafeStr_5407(k); } public function set meta(k:VideoMetadataVo):void{ this._SafeStr_5404 = k; this._SafeStr_5400._SafeStr_5414(k); this._SafeStr_5403._SafeStr_5414(k); } public function get play():_SafeStr_5238{ return (this._SafeStr_5399); } public function get bar():_SafeStr_5237{ return (this._SafeStr_5400); } public function get mute():BtnSound{ return (this._SafeStr_5401); } public function get fullscreen():_SafeStr_5239{ return (this._SafeStr_5402); } public function get time():VideoTimeLabel{ return (this._SafeStr_5403); } } }//package _-01f // _SafeStr_5120 = "_-00c" (String#4617, DoABC#3) // _SafeStr_5122 = "_-3QB" (String#10837, DoABC#3) // _SafeStr_5237 = "_-1-v" (String#11194, DoABC#3) // _SafeStr_5238 = "_-1co" (String#10194, DoABC#3) // _SafeStr_5239 = "_-1Ks" (String#10444, DoABC#3) // _SafeStr_5397 = "_-3uO" (String#23448, DoABC#3) // _SafeStr_5398 = "_-4va" (String#4870, DoABC#3) // _SafeStr_5399 = "_-4nL" (String#4510, DoABC#3) // _SafeStr_5400 = "_-2H" (String#4142, DoABC#3) // _SafeStr_5401 = "_-5-7" (String#7785, DoABC#3) // _SafeStr_5402 = "_-30F" (String#3373, DoABC#3) // _SafeStr_5403 = "_-6JD" (String#8198, DoABC#3) // _SafeStr_5404 = "_-rK" (String#9867, DoABC#3) // _SafeStr_5405 = "_-0h9" (String#5373, DoABC#3) // _SafeStr_5406 = "_-0es" (String#34427, DoABC#3) // _SafeStr_5407 = "_-0wN" (String#4762, DoABC#3) // _SafeStr_5408 = "_-5Ya" (String#21553, DoABC#3) // _SafeStr_5409 = "_-2N8" (String#18289, DoABC#3) // _SafeStr_5410 = "_-2ki" (String#5220, DoABC#3) // _SafeStr_5411 = "_-xt" (String#6085, DoABC#3) // _SafeStr_5412 = "_-2gW" (String#17500, DoABC#3) // _SafeStr_5413 = "_-Qu" (String#3589, DoABC#3) // _SafeStr_5414 = "_-1bH" (String#24325, DoABC#3) //------------------------------------------------------------ //_-01f.ApdevVideoPlayer package _-01f{ import flash.display.Sprite; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.utils.Timer; import _-54C.VideoMetadataVo; import flash.display.DisplayObjectContainer; import _-rU._SafeStr_5121; import _-1M-.VideoControlsEvent; import _-1T2._SafeStr_5120; import flash.events.TimerEvent; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.events.AsyncErrorEvent; import flash.events.MouseEvent; import flash.events.Event; import flash.events.IOErrorEvent; import flash.display.StageDisplayState; import flash.events.FullScreenEvent; import flash.display.Stage; import flash.display.StageAlign; import flash.events.ErrorEvent; import flash.media.SoundMixer; import flash.media.SoundTransform; import flash.net.URLRequest; public class ApdevVideoPlayer extends Sprite { public static const _SafeStr_5415:int = 140; public static const _SafeStr_5416:int = 2000; private var _SafeStr_5417:Sprite; private var _SafeStr_5418:Video; private var _SafeStr_5419:NetConnection; private var _SafeStr_5420:NetStream; private var _SafeStr_5421:Timer; private var _SafeStr_5422:Timer; private var _SafeStr_5423:String; private var _SafeStr_5424:Number; private var _SafeStr_5425:Number; private var _SafeStr_5426:int; private var _SafeStr_5427:String; private var _SafeStr_5428:Boolean; private var _SafeStr_5429:Boolean; private var _SafeStr_5430:Number; private var _SafeStr_5431:String; private var _SafeStr_5432:VideoMetadataVo; private var _SafeStr_5433:_SafeStr_5122; private var _SafeStr_5434:Number; private var _SafeStr_5435:int; private var _SafeStr_5436:int; private var _SafeStr_5437:Boolean; private var _SafeStr_5438:Boolean; private var _SafeStr_5439:Boolean; private var _SafeStr_5440:Boolean; private var _SafeStr_5441:Boolean; private var _SafeStr_5442:String; private var _SafeStr_5443:Number; private var _SafeStr_5444:Number; private var _SafeStr_5445:DisplayObjectContainer; private var _SafeStr_5446:int; private var _SafeStr_5447:Timer; private var _SafeStr_5448:int; private var _SafeStr_5449; private var _SafeStr_5450:_SafeStr_5121; private var _SafeStr_5451:Boolean; public function ApdevVideoPlayer(k:int, _arg_2:int){ this._SafeStr_5405(k, _arg_2); } public function clear():void{ this.pause(); this._SafeStr_5418.clear(); this._SafeStr_5420.close(); this._SafeStr_5418.attachNetStream(null); this._SafeStr_5418.visible = false; this._SafeStr_5452 = _SafeStr_4561._SafeStr_5393; } public function load(k:String):void{ if (k == null) { return; }; this._SafeStr_5453 = null; this._SafeStr_5423 = k; if (((this._SafeStr_5428) || (this._SafeStr_5451))) { this._SafeStr_5420.play(k); this._SafeStr_5418.attachNetStream(this._SafeStr_5420); this._SafeStr_5418.visible = true; this._SafeStr_5429 = true; this._SafeStr_5421.start(); this._SafeStr_5422.start(); this._SafeStr_5450.visible = false; }; } public function pause():void{ if (!this._SafeStr_5429) { return; }; this._SafeStr_5420.pause(); this._SafeStr_5422.reset(); this._SafeStr_5452 = _SafeStr_4561._SafeStr_5395; dispatchEvent(new VideoControlsEvent(_SafeStr_4561._SafeStr_5395)); } public function play():void{ if (!this._SafeStr_5429) { this._SafeStr_5451 = true; this.load(this._SafeStr_5423); return; }; this._SafeStr_5450.visible = false; this._SafeStr_5420.resume(); this._SafeStr_5422.start(); this._SafeStr_5452 = _SafeStr_4561._SafeStr_5394; } public function seek(k:Number, _arg_2:Boolean=false):void{ if (k < 0) { k = 0; }; if (k > (this._SafeStr_5420.bytesLoaded / this._SafeStr_5420.bytesTotal)) { k = (this._SafeStr_5420.bytesLoaded / this._SafeStr_5420.bytesTotal); }; if (!_arg_2) { this._SafeStr_5426 = 0; } else { this._SafeStr_5426++; }; if (this._SafeStr_5426 == 1) { this._SafeStr_5427 = this._SafeStr_5452; if ((((this._SafeStr_5452 == _SafeStr_4561._SafeStr_5394)) || ((this._SafeStr_5452 == _SafeStr_4561._SafeStr_5396)))) { this.pause(); }; }; this._SafeStr_5420.seek((k * this._SafeStr_5453.duration)); this._SafeStr_5433._SafeStr_5409(k); if (!_arg_2) { if ((((this._SafeStr_5427 == _SafeStr_4561._SafeStr_5394)) || ((this._SafeStr_5427 == _SafeStr_4561._SafeStr_5396)))) { this.play(); }; }; } public function _SafeStr_5454():Number{ var k:Number = 0; if (((!((this._SafeStr_5420 == null))) && (!((this._SafeStr_5453 == null))))) { k = (this._SafeStr_5420.time / this._SafeStr_5453.duration); }; return (k); } public function _SafeStr_5455(k:Object):void{ if (this._SafeStr_5453 == null) { this._SafeStr_5453 = new VideoMetadataVo(k); if (((!(isNaN(this._SafeStr_5453.width))) && (!(isNaN(this._SafeStr_5453.height))))) { this._SafeStr_5456(this._SafeStr_5435, this._SafeStr_5436); }; }; } private function _SafeStr_5410():void{ this._SafeStr_5417 = new Sprite(); this._SafeStr_5417.addChild(_SafeStr_5120._SafeStr_5457(this._SafeStr_5458, this._SafeStr_5459, 90, 3748644, 0, 1, 1)); addChild(this._SafeStr_5417); this._SafeStr_5418 = new Video(this._SafeStr_5458, this._SafeStr_5459); this._SafeStr_5418.smoothing = true; addChild(this._SafeStr_5418); this._SafeStr_5433 = new _SafeStr_5122(this._SafeStr_5458); this._SafeStr_5460 = false; addChild(this._SafeStr_5433); this._SafeStr_5450 = new _SafeStr_5121(this._SafeStr_5458, this._SafeStr_5459); this._SafeStr_5450.visible = false; addChild(this._SafeStr_5450); } private function _SafeStr_5405(k:int, _arg_2:int):void{ var _local_3:Number; this._SafeStr_5430 = 0; this._SafeStr_5424 = 0; this._SafeStr_5425 = 0; this._SafeStr_5426 = 0; this._SafeStr_5428 = false; this._SafeStr_5451 = false; this._SafeStr_5441 = (this._SafeStr_5440 = false); if (k < ApdevVideoPlayer._SafeStr_5415) { _local_3 = (((_arg_2)>0) ? (k / _arg_2) : (4 / 3)); this._SafeStr_5435 = ApdevVideoPlayer._SafeStr_5415; this._SafeStr_5436 = (ApdevVideoPlayer._SafeStr_5415 / _local_3); } else { this._SafeStr_5435 = k; this._SafeStr_5436 = _arg_2; }; this._SafeStr_5410(); this._SafeStr_5452 = _SafeStr_4561._SafeStr_5393; this._SafeStr_5421 = new Timer(500); this._SafeStr_5421.addEventListener(TimerEvent.TIMER, this._SafeStr_5461, false, 0, true); this._SafeStr_5422 = new Timer(100); this._SafeStr_5422.addEventListener(TimerEvent.TIMER, this._SafeStr_5462, false, 0, true); this._SafeStr_5463 = ApdevVideoPlayer._SafeStr_5416; this._SafeStr_5447 = new Timer(this._SafeStr_5463, 1); this._SafeStr_5447.addEventListener(TimerEvent.TIMER_COMPLETE, this._SafeStr_5464, false, 0, true); this._SafeStr_5419 = new NetConnection(); this._SafeStr_5419.addEventListener(NetStatusEvent.NET_STATUS, this._SafeStr_5465, false, 0, true); this._SafeStr_5419.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onError, false, 0, true); this._SafeStr_5419.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.onError, false, 0, true); this._SafeStr_5419.connect(null); addEventListener(VideoControlsEvent._SafeStr_5466, this._SafeStr_5467, false, 0, true); addEventListener(VideoControlsEvent._SafeStr_5468, this._SafeStr_5467, false, 0, true); addEventListener(VideoControlsEvent._SafeStr_5411, this._SafeStr_5469, false, 0, true); addEventListener(VideoControlsEvent._SafeStr_5470, this._SafeStr_5471, false, 0, true); addEventListener(VideoControlsEvent._SafeStr_5412, this._SafeStr_5472, false, 0, true); this._SafeStr_5417.buttonMode = true; this._SafeStr_5417.doubleClickEnabled = true; this._SafeStr_5417.addEventListener(MouseEvent.CLICK, this._SafeStr_5473, false, 0, true); addEventListener(MouseEvent.MOUSE_OVER, this.onMouseOver, false, 0, true); addEventListener(MouseEvent.MOUSE_OUT, this.onMouseOut, false, 0, true); addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage, false, 0, true); } private function _SafeStr_5474():void{ this._SafeStr_5420 = new NetStream(this._SafeStr_5419); this._SafeStr_5420.addEventListener(NetStatusEvent.NET_STATUS, this._SafeStr_5465, false, 0, true); this._SafeStr_5420.addEventListener(IOErrorEvent.IO_ERROR, this.onError, false, 0, true); this._SafeStr_5420.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this._SafeStr_5475, false, 0, true); this._SafeStr_5420.bufferTime = 5; this._SafeStr_5420.client = this; } private function _SafeStr_5456(k:Number, _arg_2:Number):void{ var _local_3:Number = (this._SafeStr_5453.width / this._SafeStr_5453.height); var _local_4:Number = (k / _arg_2); if (_local_3 > _local_4) { this._SafeStr_5418.width = k; this._SafeStr_5418.height = (k / _local_3); } else { this._SafeStr_5418.width = (_arg_2 * _local_3); this._SafeStr_5418.height = _arg_2; }; this._SafeStr_5418.x = Math.round(((k - this._SafeStr_5418.width) * 0.5)); this._SafeStr_5418.y = Math.round(((_arg_2 - this._SafeStr_5418.height) * 0.5)); } private function _SafeStr_5476():void{ if (this._SafeStr_5453 == null) { return; }; if (stage.displayState == StageDisplayState.NORMAL) { this._SafeStr_5441 = this._SafeStr_5477; this._SafeStr_5477 = true; stage.displayState = StageDisplayState.FULL_SCREEN; } else { stage.displayState = StageDisplayState.NORMAL; }; } private function _SafeStr_5478():void{ if (this._SafeStr_5452 == _SafeStr_4561._SafeStr_5394) { this.pause(); } else { if ((((this._SafeStr_5452 == _SafeStr_4561._SafeStr_5395)) || ((this._SafeStr_5452 == _SafeStr_4561._SafeStr_5393)))) { this.play(); } else { if (this._SafeStr_5452 == _SafeStr_4561._SafeStr_5396) { this.seek(0); this.play(); }; }; }; } private function _SafeStr_5479(k:Boolean):void{ this._SafeStr_5433.visible = k; } private function onAddedToStage(k:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage); stage.addEventListener(FullScreenEvent.FULL_SCREEN, this._SafeStr_5480, false, 0, true); } private function _SafeStr_5471(k:VideoControlsEvent):void{ this._SafeStr_5413 = (k.data as Number); } private function _SafeStr_5473(k:MouseEvent):void{ this._SafeStr_5478(); } private function _SafeStr_5480(k:FullScreenEvent):void{ var _local_2:Stage; if (!this._SafeStr_5477) { return; }; this._SafeStr_5433._SafeStr_5406(stage.displayState); if (k.fullScreen) { this._SafeStr_5442 = stage.align; stage.align = StageAlign.TOP_LEFT; this._SafeStr_5443 = x; this._SafeStr_5444 = y; x = 0; y = 0; _local_2 = stage; this._SafeStr_5445 = parent; this._SafeStr_5446 = parent.getChildIndex(this); parent.removeChild(this); _local_2.addChild(this); this._SafeStr_5417.width = stage.stageWidth; this._SafeStr_5417.height = stage.stageHeight; this._SafeStr_5456(stage.stageWidth, stage.stageHeight); this._SafeStr_5439 = this._SafeStr_5481; this._SafeStr_5481 = true; this._SafeStr_5433.x = Math.round(((stage.stageWidth - this._SafeStr_5433.width) * 0.5)); this._SafeStr_5433.y = Math.round(((stage.stageHeight - this._SafeStr_5433.height) - 100)); stage.addEventListener(MouseEvent.MOUSE_MOVE, this._SafeStr_5482, false, 0, true); } else { this._SafeStr_5417.width = this._SafeStr_5435; this._SafeStr_5417.height = this._SafeStr_5436; this._SafeStr_5456(this._SafeStr_5458, this._SafeStr_5459); stage.align = this._SafeStr_5442; x = this._SafeStr_5443; y = this._SafeStr_5444; stage.removeChild(this); this._SafeStr_5445.addChildAt(this, this._SafeStr_5446); this._SafeStr_5477 = this._SafeStr_5441; this._SafeStr_5481 = this._SafeStr_5439; this._SafeStr_5433.x = 0; if (this._SafeStr_5460) { this._SafeStr_5433.y = (this._SafeStr_5459 - this._SafeStr_5433.height); } else { this._SafeStr_5433.y = this._SafeStr_5459; }; stage.removeEventListener(MouseEvent.MOUSE_MOVE, this._SafeStr_5482); this._SafeStr_5447.reset(); this._SafeStr_5479(true); }; } private function _SafeStr_5472(k:VideoControlsEvent):void{ this._SafeStr_5476(); } private function _SafeStr_5464(k:TimerEvent):void{ this._SafeStr_5479(false); } private function _SafeStr_5482(k:MouseEvent):void{ this._SafeStr_5479(true); this._SafeStr_5447.reset(); this._SafeStr_5447.start(); } public function _SafeStr_5483(k:*):void{ } private function onMouseOut(k:MouseEvent):void{ if (this._SafeStr_5438) { this._SafeStr_5479(false); }; } private function onMouseOver(k:MouseEvent):void{ if (this._SafeStr_5438) { this._SafeStr_5479(true); }; } private function _SafeStr_5469(k:VideoControlsEvent):void{ if (k.cancelable) { k.stopImmediatePropagation(); }; this._SafeStr_5478(); } private function _SafeStr_5467(k:VideoControlsEvent):void{ if (k.cancelable) { k.stopImmediatePropagation(); }; this.seek((k.data as Number), (k.type == VideoControlsEvent._SafeStr_5468)); } private function _SafeStr_5475(k:ErrorEvent):void{ } private function onError(k:ErrorEvent):void{ } private function _SafeStr_5461(k:TimerEvent):void{ if (this._SafeStr_5420 != null) { this._SafeStr_5433._SafeStr_5408((this._SafeStr_5420.bytesLoaded / this._SafeStr_5420.bytesTotal)); if (this._SafeStr_5420.bytesLoaded >= this._SafeStr_5420.bytesTotal) { this._SafeStr_5421.reset(); }; }; } private function _SafeStr_5465(k:NetStatusEvent):void{ switch (k.info["code"]) { case "NetStream.Play.Start": if (this._SafeStr_5452 != _SafeStr_4561._SafeStr_5395) { this._SafeStr_5452 = _SafeStr_4561._SafeStr_5394; }; return; case "NetStream.Play.Stop": this._SafeStr_5452 = _SafeStr_4561._SafeStr_5396; return; case "NetConnection.Connect.Success": this._SafeStr_5474(); return; case "NetConnection.Connect.Failed": return; }; } public function _SafeStr_5484(k:Object):void{ if (this._SafeStr_5452 == _SafeStr_4561._SafeStr_5396) { }; } private function _SafeStr_5462(k:TimerEvent):void{ if (this._SafeStr_5453 == null) { return; }; this._SafeStr_5433._SafeStr_5409((this._SafeStr_5420.time / this._SafeStr_5453.duration)); if (this._SafeStr_5452 == _SafeStr_4561._SafeStr_5396) { this._SafeStr_5422.reset(); }; } public function get _SafeStr_5453():VideoMetadataVo{ return (this._SafeStr_5432); } public function set _SafeStr_5453(k:VideoMetadataVo):void{ this._SafeStr_5432 = k; if (k != null) { this._SafeStr_5433.meta = k; }; } public function get _SafeStr_5452():String{ return (this._SafeStr_5431); } public function set _SafeStr_5452(k:String):void{ this._SafeStr_5431 = k; if (this._SafeStr_5420 != null) { this._SafeStr_5433.state = k; }; dispatchEvent(new VideoControlsEvent(VideoControlsEvent._SafeStr_5485, true, true, k)); } public function get _SafeStr_5413():Number{ return (this._SafeStr_5434); } public function set _SafeStr_5413(k:Number):void{ this._SafeStr_5434 = k; SoundMixer.soundTransform = new SoundTransform(k); this._SafeStr_5433._SafeStr_5413 = k; } public function get _SafeStr_5458():int{ return (this._SafeStr_5435); } public function set _SafeStr_5458(k:int):void{ this._SafeStr_5435 = k; } public function get _SafeStr_5459():int{ return (this._SafeStr_5436); } public function set _SafeStr_5459(k:int):void{ this._SafeStr_5436 = k; } public function get _SafeStr_5460():Boolean{ return (this._SafeStr_5437); } public function set _SafeStr_5460(k:Boolean):void{ this._SafeStr_5437 = k; if (this._SafeStr_5437) { this._SafeStr_5433.y = (this._SafeStr_5459 - this._SafeStr_5433.height); } else { this._SafeStr_5433.y = this._SafeStr_5459; }; } public function get autoPlay():Boolean{ return (this._SafeStr_5428); } public function set autoPlay(k:Boolean):void{ this._SafeStr_5428 = k; } public function get _SafeStr_5481():Boolean{ return (this._SafeStr_5438); } public function set _SafeStr_5481(k:Boolean):void{ this._SafeStr_5438 = k; if (this._SafeStr_5438) { this._SafeStr_5479(false); } else { this._SafeStr_5479(true); }; } public function get _SafeStr_5477():Boolean{ return (this._SafeStr_5440); } public function set _SafeStr_5477(k:Boolean):void{ this._SafeStr_5440 = k; } public function get _SafeStr_5463():int{ return (this._SafeStr_5448); } public function set _SafeStr_5463(k:int):void{ this._SafeStr_5448 = k; } public function get _SafeStr_5486(){ return (this._SafeStr_5449); } public function set _SafeStr_5486(k:*):void{ var _local_2:URLRequest; if (k == null) { return; }; this._SafeStr_5449 = k; if (this._SafeStr_5452 == _SafeStr_4561._SafeStr_5393) { this._SafeStr_5450.visible = true; if ((this._SafeStr_5449 is URLRequest)) { this._SafeStr_5450.load(this._SafeStr_5449); } else { if ((this._SafeStr_5449 is String)) { _local_2 = new URLRequest(this._SafeStr_5449); this._SafeStr_5450.load(_local_2); }; }; }; } public function get _SafeStr_5487():_SafeStr_5122{ return (this._SafeStr_5433); } } }//package _-01f // _SafeStr_4561 = "_-29J" (String#2841, DoABC#3) // _SafeStr_5120 = "_-00c" (String#4617, DoABC#3) // _SafeStr_5121 = "_-5dw" (String#12177, DoABC#3) // _SafeStr_5122 = "_-3QB" (String#10837, DoABC#3) // _SafeStr_5393 = "_-Qe" (String#12923, DoABC#3) // _SafeStr_5394 = "_-yb" (String#6993, DoABC#3) // _SafeStr_5395 = "_-6eZ" (String#6340, DoABC#3) // _SafeStr_5396 = "_-5bK" (String#7431, DoABC#3) // _SafeStr_5405 = "_-0h9" (String#5373, DoABC#3) // _SafeStr_5406 = "_-0es" (String#34427, DoABC#3) // _SafeStr_5408 = "_-5Ya" (String#21553, DoABC#3) // _SafeStr_5409 = "_-2N8" (String#18289, DoABC#3) // _SafeStr_5410 = "_-2ki" (String#5220, DoABC#3) // _SafeStr_5411 = "_-xt" (String#6085, DoABC#3) // _SafeStr_5412 = "_-2gW" (String#17500, DoABC#3) // _SafeStr_5413 = "_-Qu" (String#3589, DoABC#3) // _SafeStr_5415 = "_-XU" (String#16156, DoABC#3) // _SafeStr_5416 = "_-3AF" (String#25976, DoABC#3) // _SafeStr_5417 = "_-26F" (String#7310, DoABC#3) // _SafeStr_5418 = "_-5Zf" (String#4909, DoABC#3) // _SafeStr_5419 = "_-2tY" (String#12616, DoABC#3) // _SafeStr_5420 = "_-0QR" (String#3543, DoABC#3) // _SafeStr_5421 = "_-6r" (String#17991, DoABC#3) // _SafeStr_5422 = "_-6dt" (String#12267, DoABC#3) // _SafeStr_5423 = "_-1Xl" (String#15397, DoABC#3) // _SafeStr_5424 = "_-280" (String#1689, DoABC#3) // _SafeStr_5425 = "_-1lR" (String#33670, DoABC#3) // _SafeStr_5426 = "_-MF" (String#16785, DoABC#3) // _SafeStr_5427 = "_-1GM" (String#25160, DoABC#3) // _SafeStr_5428 = "_-3BK" (String#5084, DoABC#3) // _SafeStr_5429 = "_-1Ic" (String#5549, DoABC#3) // _SafeStr_5430 = "_-50l" (String#36951, DoABC#3) // _SafeStr_5431 = "_-3nK" (String#13348, DoABC#3) // _SafeStr_5432 = "_-6hC" (String#29137, DoABC#3) // _SafeStr_5433 = "_-H0" (String#3915, DoABC#3) // _SafeStr_5434 = "_-033" (String#3221, DoABC#3) // _SafeStr_5435 = "_-2i3" (String#6658, DoABC#3) // _SafeStr_5436 = "_-6No" (String#7020, DoABC#3) // _SafeStr_5437 = "_-2fq" (String#23974, DoABC#3) // _SafeStr_5438 = "_-2Tz" (String#15817, DoABC#3) // _SafeStr_5439 = "_-58g" (String#26886, DoABC#3) // _SafeStr_5440 = "_-4zl" (String#21616, DoABC#3) // _SafeStr_5441 = "_-4y0" (String#21667, DoABC#3) // _SafeStr_5442 = "_-3S5" (String#30972, DoABC#3) // _SafeStr_5443 = "_-1yd" (String#9488, DoABC#3) // _SafeStr_5444 = "_-0hj" (String#8836, DoABC#3) // _SafeStr_5445 = "_-1cx" (String#29390, DoABC#3) // _SafeStr_5446 = "_-34d" (String#31803, DoABC#3) // _SafeStr_5447 = "_-0pa" (String#15193, DoABC#3) // _SafeStr_5448 = "_-29T" (String#31764, DoABC#3) // _SafeStr_5449 = "_-3xA" (String#12069, DoABC#3) // _SafeStr_5450 = "_-47Q" (String#1092, DoABC#3) // _SafeStr_5451 = "_-Pl" (String#21604, DoABC#3) // _SafeStr_5452 = "_-41K" (String#4001, DoABC#3) // _SafeStr_5453 = "_-6aX" (String#5670, DoABC#3) // _SafeStr_5454 = "_-3ym" (String#9776, DoABC#3) // _SafeStr_5455 = "_-6EA" (String#39696, DoABC#3) // _SafeStr_5456 = "_-03l" (String#26082, DoABC#3) // _SafeStr_5457 = "_-0RH" (String#19054, DoABC#3) // _SafeStr_5458 = "_-3a7" (String#12372, DoABC#3) // _SafeStr_5459 = "_-5Yz" (String#7885, DoABC#3) // _SafeStr_5460 = "_-5Fa" (String#20241, DoABC#3) // _SafeStr_5461 = "_-4IW" (String#35555, DoABC#3) // _SafeStr_5462 = "_-384" (String#33111, DoABC#3) // _SafeStr_5463 = "_-62F" (String#22665, DoABC#3) // _SafeStr_5464 = "_-ns" (String#33525, DoABC#3) // _SafeStr_5465 = "_-6C-" (String#28993, DoABC#3) // _SafeStr_5466 = "_-3L8" (String#17466, DoABC#3) // _SafeStr_5467 = "_-0Ts" (String#28695, DoABC#3) // _SafeStr_5468 = "_-2SV" (String#15253, DoABC#3) // _SafeStr_5469 = "_-16F" (String#33708, DoABC#3) // _SafeStr_5470 = "_-041" (String#13590, DoABC#3) // _SafeStr_5471 = "_-0Rd" (String#34255, DoABC#3) // _SafeStr_5472 = "_-6MT" (String#34898, DoABC#3) // _SafeStr_5473 = "_-1k" (String#36374, DoABC#3) // _SafeStr_5474 = "_-4XJ" (String#36671, DoABC#3) // _SafeStr_5475 = "_-W5" (String#32453, DoABC#3) // _SafeStr_5476 = "_-g-" (String#38272, DoABC#3) // _SafeStr_5477 = "_-0e7" (String#14963, DoABC#3) // _SafeStr_5478 = "_-4Jp" (String#27548, DoABC#3) // _SafeStr_5479 = "_-4T2" (String#11008, DoABC#3) // _SafeStr_5480 = "_-6Hm" (String#34988, DoABC#3) // _SafeStr_5481 = "_-2gG" (String#14864, DoABC#3) // _SafeStr_5482 = "_-6TY" (String#6777, DoABC#3) // _SafeStr_5483 = "_-26f" (String#44109, DoABC#3) // _SafeStr_5484 = "_-0QP" (String#44664, DoABC#3) // _SafeStr_5485 = "_-1pM" (String#18147, DoABC#3) // _SafeStr_5486 = "_-0ak" (String#26249, DoABC#3) // _SafeStr_5487 = "_-2S3" (String#22939, DoABC#3) //------------------------------------------------------------ //_-02E._SafeStr_2911 package _-02E{ public class _SafeStr_2911 { public static const _SafeStr_5488:String = "helper"; public static const _SafeStr_5489:String = "citizenship"; public static function get _SafeStr_5490():Array{ return ([_SafeStr_5488, _SafeStr_5489]); } } }//package _-02E // _SafeStr_2911 = "_-17p" (String#3772, DoABC#3) // _SafeStr_5488 = "_-5zv" (String#7130, DoABC#3) // _SafeStr_5489 = "_-4Os" (String#5210, DoABC#3) // _SafeStr_5490 = "_-07z" (String#32092, DoABC#3) //------------------------------------------------------------ //_-02R._SafeStr_4972 package _-02R{ import _-2jU._SafeStr_2272; import _-2jU._SafeStr_2713; public class _SafeStr_4972 implements _SafeStr_2272 { public function flush():Boolean{ return (true); } public function parse(k:_SafeStr_2713):Boolean{ return (true); } } }//package _-02R // _SafeStr_2272 = "_-4cK" (String#254, DoABC#3) // _SafeStr_2713 = "_-5zg" (String#207, DoABC#3) // _SafeStr_4972 = "_-2-P" (String#12098, DoABC#3) //------------------------------------------------------------ //_-02R.NewUserExperienceGiftOfferParser package _-02R{ import _-2jU._SafeStr_2272; import __AS3__.vec.Vector; import _-5am.NewUserExperienceGiftOptions; import _-2jU._SafeStr_2713; import __AS3__.vec.*; public class NewUserExperienceGiftOfferParser implements _SafeStr_2272 { private var _SafeStr_5491:Vector.; public function flush():Boolean{ return (true); } public function parse(k:_SafeStr_2713):Boolean{ var _local_2:int = k.readInt(); this._SafeStr_5491 = new Vector.(); var _local_3:int; while (_local_3 < _local_2) { this._SafeStr_5491.push(new NewUserExperienceGiftOptions(k)); _local_3++; }; return (true); } public function get _SafeStr_5493():Vector.{ return (this._SafeStr_5491); } } }//package _-02R // _SafeStr_2272 = "_-4cK" (String#254, DoABC#3) // _SafeStr_2713 = "_-5zg" (String#207, DoABC#3) // _SafeStr_5491 = "_-62o" (String#6439, DoABC#3) // readInt = "_-1ht" (String#82, DoABC#3) // _SafeStr_5493 = "_-4nv" (String#38214, DoABC#3) //------------------------------------------------------------ //_-03F._SafeStr_5203 package _-03F{ import _-1Tb._SafeStr_3900; public class _SafeStr_5203 { public static const _SafeStr_5494:Number = -1; public static const _SafeStr_5495:Number = 1; private var _SafeStr_5496:_SafeStr_3900 = null; private var _SafeStr_5497:Number = -1; private var _SafeStr_5498:Number = 1; private var _SafeStr_5499:Number = -1; private var _SafeStr_5500:Number = 1; public function _SafeStr_5203(k:_SafeStr_3900, _arg_2:Number=-1, _arg_3:Number=1, _arg_4:Number=-1, _arg_5:Number=1){ this._SafeStr_5497 = _arg_2; this._SafeStr_5498 = _arg_3; this._SafeStr_5499 = _arg_4; this._SafeStr_5500 = _arg_5; this._SafeStr_5496 = k; } public function get asset():_SafeStr_3900{ return (this._SafeStr_5496); } public function get normalMinX():Number{ return (this._SafeStr_5497); } public function get normalMaxX():Number{ return (this._SafeStr_5498); } public function get normalMinY():Number{ return (this._SafeStr_5499); } public function get normalMaxY():Number{ return (this._SafeStr_5500); } public function dispose():void{ this._SafeStr_5496 = null; } } }//package _-03F // _SafeStr_3900 = "_-5e" (String#1285, DoABC#3) // _SafeStr_5203 = "_-Oe" (String#6154, DoABC#3) // _SafeStr_5494 = "_-f6" (String#3826, DoABC#3) // _SafeStr_5495 = "_-0wy" (String#3804, DoABC#3) // _SafeStr_5496 = "_-sP" (String#1552, DoABC#3) // _SafeStr_5497 = "_-698" (String#9128, DoABC#3) // _SafeStr_5498 = "_-1QT" (String#9475, DoABC#3) // _SafeStr_5499 = "_-0kH" (String#8966, DoABC#3) // _SafeStr_5500 = "_-0kW" (String#9171, DoABC#3) //------------------------------------------------------------ //_-03F.PlaneMask package _-03F{ import _-WS.Map; import _-1Tb._SafeStr_3900; import _-0bw._SafeStr_2307; public class PlaneMask { private var _SafeStr_5501:Map; private var _SafeStr_5502:Array; private var _assetNames:Map; private var _SafeStr_5503:PlaneMaskVisualization = null; private var _SafeStr_5504:int = -1; public function PlaneMask(){ this._SafeStr_5502 = []; super(); this._SafeStr_5501 = new Map(); this._assetNames = new Map(); } public function dispose():void{ var k:PlaneMaskVisualization; var _local_2:int; if (this._SafeStr_5501 != null) { k = null; _local_2 = 0; while (_local_2 < this._SafeStr_5501.length) { k = (this._SafeStr_5501._SafeStr_5505(_local_2) as PlaneMaskVisualization); if (k != null) { k.dispose(); }; _local_2++; }; this._SafeStr_5501.dispose(); this._SafeStr_5501 = null; }; this._SafeStr_5503 = null; this._SafeStr_5502 = null; } public function _SafeStr_5506(k:int):PlaneMaskVisualization{ if (this._SafeStr_5501.getValue(String(k)) != null) { return (null); }; var _local_2:PlaneMaskVisualization = new PlaneMaskVisualization(); this._SafeStr_5501.add(String(k), _local_2); this._SafeStr_5502.push(k); this._SafeStr_5502.sort(); return (_local_2); } private function _SafeStr_5507(k:int):int{ var _local_2:int; var _local_3:int = 1; while (_local_3 < this._SafeStr_5502.length) { if (this._SafeStr_5502[_local_3] > k) { if ((this._SafeStr_5502[_local_3] - k) < (k - this._SafeStr_5502[(_local_3 - 1)])) { _local_2 = _local_3; }; break; }; _local_2 = _local_3; _local_3++; }; return (_local_2); } protected function _SafeStr_5508(k:int):PlaneMaskVisualization{ if (k == this._SafeStr_5504) { return (this._SafeStr_5503); }; var _local_2:int = this._SafeStr_5507(k); if (_local_2 < this._SafeStr_5502.length) { this._SafeStr_5503 = (this._SafeStr_5501.getValue(String(this._SafeStr_5502[_local_2])) as PlaneMaskVisualization); } else { this._SafeStr_5503 = null; }; this._SafeStr_5504 = k; return (this._SafeStr_5503); } public function _SafeStr_5509(k:Number, _arg_2:_SafeStr_2307):_SafeStr_3900{ var _local_3:PlaneMaskVisualization = this._SafeStr_5508(k); if (_local_3 == null) { return (null); }; var _local_4:_SafeStr_3900 = _local_3.getAsset(_arg_2); return (_local_4); } public function _SafeStr_5510(k:int):String{ return (this._assetNames.getValue(k)); } public function _SafeStr_5511(k:int, _arg_2:String):void{ this._assetNames.add(k, _arg_2); } } }//package _-03F // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_3900 = "_-5e" (String#1285, DoABC#3) // _SafeStr_5501 = "_-0pw" (String#8539, DoABC#3) // _SafeStr_5502 = "_-1mY" (String#2704, DoABC#3) // _SafeStr_5503 = "_-6BV" (String#13868, DoABC#3) // _SafeStr_5504 = "_-5zT" (String#8089, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5506 = "_-1MF" (String#32812, DoABC#3) // _SafeStr_5507 = "_-3Np" (String#12638, DoABC#3) // _SafeStr_5508 = "_-4Jo" (String#37140, DoABC#3) // _SafeStr_5509 = "_-4mT" (String#28419, DoABC#3) // _SafeStr_5510 = "_-2xr" (String#14959, DoABC#3) // _SafeStr_5511 = "_-2Wo" (String#33037, DoABC#3) //------------------------------------------------------------ //_-03F.PlaneMaskManager package _-03F{ import _-1Tb._SafeStr_2663; import _-WS.Map; import _-0bw.XMLValidator; import _-1Tb._SafeStr_3900; import _-3UH.BitmapDataAsset; import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Matrix; import _-0bw._SafeStr_2307; public class PlaneMaskManager { private var _SafeStr_5512:_SafeStr_2663 = null; private var _masks:Map = null; private var _SafeStr_5513:XML = null; public function PlaneMaskManager(){ this._masks = new Map(); } public function get data():XML{ return (this._SafeStr_5513); } public function dispose():void{ var k:int; var _local_2:PlaneMask; this._SafeStr_5512 = null; this._SafeStr_5513 = null; if (this._masks != null) { k = 0; while (k < this._masks.length) { _local_2 = (this._masks._SafeStr_5505(k) as PlaneMask); if (_local_2 != null) { _local_2.dispose(); }; k++; }; this._masks.dispose(); }; } public function initialize(k:XML):void{ this._SafeStr_5513 = k; } public function _SafeStr_5514(k:_SafeStr_2663):void{ if (this.data == null) { return; }; this._SafeStr_5512 = k; this._SafeStr_5515(this.data, k); } private function _SafeStr_5515(k:XML, _arg_2:_SafeStr_2663):void{ var _local_7:XML; var _local_8:String; var _local_9:PlaneMask; var _local_10:XMLList; var _local_11:int; var _local_12:XML; var _local_13:int; var _local_14:PlaneMaskVisualization; var _local_15:XMLList; var _local_16:String; if ((((k == null)) || ((_arg_2 == null)))) { return; }; var _local_3:Array = ["id"]; var _local_4:Array = ["size"]; var _local_5:XMLList = k.mask; var _local_6:int; while (_local_6 < _local_5.length()) { _local_7 = _local_5[_local_6]; if (XMLValidator._SafeStr_5516(_local_7, _local_3)) { _local_8 = _local_7.@id; if (this._masks.getValue(_local_8) == null) { _local_9 = new PlaneMask(); _local_10 = _local_7.maskVisualization; _local_11 = 0; while (_local_11 < _local_10.length()) { _local_12 = _local_10[_local_11]; if (XMLValidator._SafeStr_5516(_local_12, _local_4)) { _local_13 = parseInt(_local_12.@size); _local_14 = _local_9._SafeStr_5506(_local_13); if (_local_14 != null) { _local_15 = _local_12.bitmap; _local_16 = this._SafeStr_5517(_local_15, _local_14, _arg_2); _local_9._SafeStr_5511(_local_13, _local_16); }; }; _local_11++; }; this._masks.add(_local_8, _local_9); }; }; _local_6++; }; } private function _SafeStr_5517(k:XMLList, _arg_2:PlaneMaskVisualization, _arg_3:_SafeStr_2663):String{ var _local_6:XML; var _local_7:Number; var _local_8:Number; var _local_9:Number; var _local_10:Number; var _local_11:String; var _local_12:_SafeStr_3900; if (k == null) { return (null); }; var _local_4:String; var _local_5:int; while (_local_5 < k.length()) { _local_6 = k[_local_5]; if (XMLValidator._SafeStr_5516(_local_6, ["assetName"])) { _local_7 = PlaneMaskVisualization._SafeStr_5494; _local_8 = PlaneMaskVisualization._SafeStr_5495; _local_9 = PlaneMaskVisualization._SafeStr_5494; _local_10 = PlaneMaskVisualization._SafeStr_5495; if (String(_local_6.@normalMinX) != "") { _local_7 = parseFloat(_local_6.@normalMinX); }; if (String(_local_6.@normalMaxX) != "") { _local_8 = parseFloat(_local_6.@normalMaxX); }; if (String(_local_6.@normalMinY) != "") { _local_9 = parseFloat(_local_6.@normalMinY); }; if (String(_local_6.@normalMaxY) != "") { _local_10 = parseFloat(_local_6.@normalMaxY); }; _local_11 = _local_6.@assetName; _local_12 = _arg_3.getAsset(_local_11); if (_local_12 != null) { if (!_local_12.flipH) { _local_4 = _local_11; }; _arg_2._SafeStr_5518(_local_12, _local_7, _local_8, _local_9, _local_10); }; }; _local_5++; }; return (_local_4); } public function _SafeStr_5519(k:BitmapData, _arg_2:String, _arg_3:Number, _arg_4:_SafeStr_2307, _arg_5:int, _arg_6:int):Boolean{ var _local_8:_SafeStr_3900; var _local_9:BitmapDataAsset; var _local_10:BitmapData; var _local_11:Point; var _local_12:Matrix; var _local_13:Number; var _local_14:Number; var _local_15:Number; var _local_16:Number; var _local_7:PlaneMask = (this._masks.getValue(_arg_2) as PlaneMask); if (_local_7 != null) { _local_8 = _local_7._SafeStr_5509(_arg_3, _arg_4); if (_local_8 != null) { _local_9 = (_local_8.asset as BitmapDataAsset); if (_local_9 != null) { _local_10 = (_local_9.content as BitmapData); if (_local_10 != null) { _local_11 = new Point((_arg_5 + _local_8.offsetX), (_arg_6 + _local_8.offsetY)); _local_12 = new Matrix(); _local_13 = 1; _local_14 = 1; _local_15 = 0; _local_16 = 0; if (_local_8.flipH) { _local_13 = -1; _local_15 = _local_10.width; }; if (_local_8.flipV) { _local_14 = -1; _local_16 = _local_10.height; }; _local_12.scale(_local_13, _local_14); _local_12.translate((_local_11.x + _local_15), (_local_11.y + _local_16)); k.draw(_local_10, _local_12); }; }; }; }; return (true); } public function _SafeStr_5520(k:String):PlaneMask{ return ((this._masks.getValue(k) as PlaneMask)); } } }//package _-03F // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_2663 = "_-29y" (String#1916, DoABC#3) // _SafeStr_3900 = "_-5e" (String#1285, DoABC#3) // _SafeStr_5494 = "_-f6" (String#3826, DoABC#3) // _SafeStr_5495 = "_-0wy" (String#3804, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5506 = "_-1MF" (String#32812, DoABC#3) // _SafeStr_5509 = "_-4mT" (String#28419, DoABC#3) // _SafeStr_5511 = "_-2Wo" (String#33037, DoABC#3) // _SafeStr_5512 = "_-1JD" (String#5129, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5514 = "_-3Q-" (String#8921, DoABC#3) // _SafeStr_5515 = "_-2hU" (String#36004, DoABC#3) // _SafeStr_5516 = "_-62c" (String#2514, DoABC#3) // _SafeStr_5517 = "_-4DT" (String#35263, DoABC#3) // _SafeStr_5518 = "_-2U3" (String#25233, DoABC#3) // _SafeStr_5519 = "_-1QV" (String#22365, DoABC#3) // _SafeStr_5520 = "_-0P5" (String#11557, DoABC#3) //------------------------------------------------------------ //_-03F.PlaneMaskVisualization package _-03F{ import _-1Tb._SafeStr_3900; import _-0bw._SafeStr_2307; public class PlaneMaskVisualization { public static const _SafeStr_5494:Number = -1; public static const _SafeStr_5495:Number = 1; private var _SafeStr_5521:Array; public function PlaneMaskVisualization(){ this._SafeStr_5521 = []; super(); } public function dispose():void{ var k:int; var _local_2:_SafeStr_5203; if (this._SafeStr_5521 != null) { k = 0; while (k < this._SafeStr_5521.length) { _local_2 = (this._SafeStr_5521[k] as _SafeStr_5203); if (_local_2 != null) { _local_2.dispose(); }; k++; }; this._SafeStr_5521 = null; }; } public function _SafeStr_5518(k:_SafeStr_3900, _arg_2:Number=-1, _arg_3:Number=1, _arg_4:Number=-1, _arg_5:Number=1):void{ var _local_6:_SafeStr_5203 = new _SafeStr_5203(k, _arg_2, _arg_3, _arg_4, _arg_5); this._SafeStr_5521.push(_local_6); } public function getAsset(k:_SafeStr_2307):_SafeStr_3900{ var _local_3:_SafeStr_5203; if (k == null) { return (null); }; var _local_2:int; while (_local_2 < this._SafeStr_5521.length) { _local_3 = (this._SafeStr_5521[_local_2] as _SafeStr_5203); if (_local_3 != null) { if ((((((((k.x >= _local_3.normalMinX)) && ((k.x <= _local_3.normalMaxX)))) && ((k.y >= _local_3.normalMinY)))) && ((k.y <= _local_3.normalMaxY)))) { return (_local_3.asset); }; }; _local_2++; }; return (null); } } }//package _-03F // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_3900 = "_-5e" (String#1285, DoABC#3) // _SafeStr_5203 = "_-Oe" (String#6154, DoABC#3) // _SafeStr_5494 = "_-f6" (String#3826, DoABC#3) // _SafeStr_5495 = "_-0wy" (String#3804, DoABC#3) // _SafeStr_5518 = "_-2U3" (String#25233, DoABC#3) // _SafeStr_5521 = "_-0s-" (String#4770, DoABC#3) //------------------------------------------------------------ //_-03I._SafeStr_2710 package _-03I{ public interface _SafeStr_2710 { function init(_arg_1:String, _arg_2:uint=16):Boolean; function _SafeStr_5522(_arg_1:String, _arg_2:uint=16):String; function _SafeStr_5523(_arg_1:uint=16):String; function _SafeStr_5524(_arg_1:uint=16):String; function _SafeStr_5525():Boolean; function _SafeStr_5526():Boolean; } }//package _-03I // _SafeStr_2710 = "_-5Rs" (String#12175, DoABC#3) // _SafeStr_5522 = "_-1fw" (String#29780, DoABC#3) // _SafeStr_5523 = "_-0Li" (String#25043, DoABC#3) // _SafeStr_5524 = "_-20" (String#27197, DoABC#3) // _SafeStr_5525 = "_-Nl" (String#29057, DoABC#3) // _SafeStr_5526 = "_-PT" (String#29002, DoABC#3) //------------------------------------------------------------ //_-048._SafeStr_2846 package _-048{ import _-4Bw._SafeStr_2824; import _-2A1._SafeStr_2845; import _-4Y1._SafeStr_35; import _-4Y1.Component; import _-0PS._SafeStr_2457; import _-2Yf._SafeStr_4540; import _-3QX.EffectBoxOpenDialogView; import _-3gw._SafeStr_4539; import _-3p-.MysteryTrophyOpenDialogView; import _-3gw.MysteryBoxOpenDialogView; import _-4ys.FriendFurniContextMenuView; import _-3WJ._SafeStr_431; import _-2yL._SafeStr_2790; import _-UK._SafeStr_2405; import _-2yL._SafeStr_2823; import _-3xK._SafeStr_637; import _-3UH._SafeStr_10; import _-4Y1._SafeStr_12; import _-Qx._SafeStr_500; import _-1Sh._SafeStr_2192; import _-4iK._SafeStr_4455; import _-5x9._SafeStr_2213; import _-2A1._SafeStr_4537; import _-3XT._SafeStr_2287; import _-wL._SafeStr_2221; public class _SafeStr_2846 extends _SafeStr_2824 implements _SafeStr_2845, _SafeStr_35 { private var _SafeStr_5527:Component; private var _SafeStr_5333:_SafeStr_4538; private var _SafeStr_5528:_SafeStr_2457 = null; private var _SafeStr_5529:_SafeStr_4540; private var _SafeStr_5530:_SafeStr_4542; private var _SafeStr_5531:_SafeStr_4541; private var _SafeStr_5532:MonsterPlantSeedConfirmationView; private var _SafeStr_5533:EffectBoxOpenDialogView; private var _SafeStr_5534:_SafeStr_4539; private var _SafeStr_5535:MysteryTrophyOpenDialogView; private var _SafeStr_5536:MysteryBoxOpenDialogView; private var _SafeStr_5537:FriendFurniContextMenuView; private var _SafeStr_5538:_SafeStr_4543; private var _SafeStr_5539:_SafeStr_431; private var _container:_SafeStr_2790 = null; private var _SafeStr_5540:PurchasableClothingConfirmationView; public function _SafeStr_2846(k:_SafeStr_2823, _arg_2:_SafeStr_637, _arg_3:_SafeStr_10, _arg_4:_SafeStr_12, _arg_5:_SafeStr_500, _arg_6:Component, _arg_7:_SafeStr_2192, _arg_8:_SafeStr_431){ super(k, _arg_2, _arg_3, _arg_5); this._SafeStr_5527 = _arg_6; this._SafeStr_5529 = new _SafeStr_4540(this, _arg_7, _arg_2); this._SafeStr_5530 = new _SafeStr_4542(this); this._SafeStr_5531 = new _SafeStr_4541(this); this._SafeStr_5534 = new _SafeStr_4539(this); this._SafeStr_5537 = new FriendFurniContextMenuView(this); this._SafeStr_5538 = new _SafeStr_4543(this); this._SafeStr_5532 = new MonsterPlantSeedConfirmationView(this); this._SafeStr_5536 = new MysteryBoxOpenDialogView(this); this._SafeStr_5533 = new EffectBoxOpenDialogView(this); this._SafeStr_5535 = new MysteryTrophyOpenDialogView(this); this._SafeStr_5540 = new PurchasableClothingConfirmationView(this); this._SafeStr_5539 = _arg_8; this.handler.widget = this; this.handler.roomEngine.events.addEventListener(_SafeStr_2405.REMOVED, this._SafeStr_5541); } override public function dispose():void{ if (disposed) { return; }; this._SafeStr_5527.removeUpdateReceiver(this); this.removeView(this._SafeStr_5333, false); this._SafeStr_5529.dispose(); this._SafeStr_5529 = null; this._SafeStr_5530.dispose(); this._SafeStr_5530 = null; this._SafeStr_5531.dispose(); this._SafeStr_5531 = null; this._SafeStr_5532.dispose(); this._SafeStr_5532 = null; this._SafeStr_5534.dispose(); this._SafeStr_5534 = null; this._SafeStr_5536.dispose(); this._SafeStr_5536 = null; this._SafeStr_5537.dispose(); this._SafeStr_5537 = null; this._SafeStr_5538.dispose(); this._SafeStr_5538 = null; this._SafeStr_5533.dispose(); this._SafeStr_5533 = null; this._SafeStr_5535.dispose(); this._SafeStr_5535 = null; this._SafeStr_5540.dispose(); this._SafeStr_5540 = null; this._SafeStr_5539 = null; super.dispose(); } public function set container(k:_SafeStr_2790):void{ this._container = k; } public function get container():_SafeStr_2790{ return (this._container); } public function get handler():_SafeStr_4455{ return ((_SafeStr_5542 as _SafeStr_4455)); } public function get roomEngine():_SafeStr_2213{ return (((this._container) ? this._container.roomEngine : null)); } public function _SafeStr_5543(k:_SafeStr_2457):void{ if (((!((this._SafeStr_5528 == null))) && ((this._SafeStr_5528.getId() == k.getId())))) { this.removeView(this._SafeStr_5333, false); this._SafeStr_5527.removeUpdateReceiver(this); this._SafeStr_5528 = null; }; } public function _SafeStr_5544(k:_SafeStr_2457, _arg_2:int, _arg_3:String, _arg_4:int, _arg_5:Boolean, _arg_6:Boolean):void{ this._SafeStr_5528 = k; this._SafeStr_5529._SafeStr_5545 = _arg_2; this._SafeStr_5529._SafeStr_5546 = _arg_4; this._SafeStr_5529._SafeStr_5547 = _arg_5; this._SafeStr_5529._SafeStr_5548 = _arg_6; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; this._SafeStr_5333 = this._SafeStr_5529; _SafeStr_4538.setup(this._SafeStr_5333, k, _arg_3); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5549(k:_SafeStr_2457, _arg_2:int):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; this._SafeStr_5530._SafeStr_5550 = _arg_2; this._SafeStr_5333 = this._SafeStr_5530; _SafeStr_4538.setup(this._SafeStr_5333, k); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5551(k:_SafeStr_2457, _arg_2:int):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; this._SafeStr_5531._SafeStr_5550 = _arg_2; this._SafeStr_5333 = this._SafeStr_5531; _SafeStr_4538.setup(this._SafeStr_5333, k); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5552(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (!this._SafeStr_5532) { this._SafeStr_5532 = new MonsterPlantSeedConfirmationView(this); }; this._SafeStr_5532.open(k.getId()); } public function _SafeStr_5553(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (!this._SafeStr_5540) { this._SafeStr_5540 = new PurchasableClothingConfirmationView(this); }; this._SafeStr_5540.open(k.getId()); } public function _SafeStr_5554(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (!this._SafeStr_5533) { this._SafeStr_5533 = new EffectBoxOpenDialogView(this); }; this._SafeStr_5533.open(k.getId()); } public function _SafeStr_5555(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (!this._SafeStr_5535) { this._SafeStr_5535 = new MysteryTrophyOpenDialogView(this); }; this._SafeStr_5535.open(k.getId()); } private function _SafeStr_5556():void{ if (this._SafeStr_5532 != null) { this._SafeStr_5532.close(); }; } public function _SafeStr_5557(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (this._SafeStr_5534 == null) { this._SafeStr_5534 = new _SafeStr_4539(this); }; this._SafeStr_5534._SafeStr_5558 = this.handler.container.isOwnerOfFurniture(k); this._SafeStr_5534.show(); this._SafeStr_5333 = this._SafeStr_5534; _SafeStr_4538.setup(this._SafeStr_5333, k); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5559(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (this._SafeStr_5537 == null) { this._SafeStr_5537 = new FriendFurniContextMenuView(this); }; this._SafeStr_5537.show(); this._SafeStr_5333 = this._SafeStr_5537; _SafeStr_4538.setup(this._SafeStr_5333, k); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5560(k:_SafeStr_2457, _arg_2:int):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; if (this._SafeStr_5538 == null) { this._SafeStr_5538 = new _SafeStr_4543(this); }; this._SafeStr_5538.show(); this._SafeStr_5538._SafeStr_5550 = _arg_2; this._SafeStr_5333 = this._SafeStr_5538; _SafeStr_4538.setup(this._SafeStr_5333, k); this._SafeStr_5527.registerUpdateReceiver(this, 10); } public function _SafeStr_5561(k:_SafeStr_2457):void{ this._SafeStr_5528 = k; if (this._SafeStr_5333 != null) { this.removeView(this._SafeStr_5333, false); }; this._SafeStr_5536._SafeStr_5562(k); } public function removeView(k:_SafeStr_4537, _arg_2:Boolean):void{ if (k) { k.hide(false); if (k == this._SafeStr_5333) { this._SafeStr_5333 = null; }; }; } public function update(k:uint):void{ if (((this._SafeStr_5333) && (this._SafeStr_5528))) { this._SafeStr_5333.update(this.handler._SafeStr_5563(this._SafeStr_5528.getId()), this.handler._SafeStr_5564(this._SafeStr_5528.getId()), k); }; } public function get catalog():_SafeStr_431{ return (this._SafeStr_5539); } private function _SafeStr_5541(k:_SafeStr_2405):void{ var _local_2:int; if (k.category == _SafeStr_2287._SafeStr_5565) { _local_2 = k._SafeStr_5566; if (((!((this._SafeStr_5528 == null))) && ((this._SafeStr_5528.getId() == _local_2)))) { this.removeView(this._SafeStr_5333, false); this._SafeStr_5556(); this._SafeStr_5527.removeUpdateReceiver(this); this._SafeStr_5528 = null; }; }; } public function get friendList():_SafeStr_2221{ return (null); } } }//package _-048 // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_12 = "_-0VB" (String#1598, DoABC#3) // _SafeStr_2192 = "_-Z9" (String#5511, DoABC#3) // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2221 = "_-62h" (String#2838, DoABC#3) // _SafeStr_2287 = "_-4-R" (String#406, DoABC#3) // _SafeStr_2405 = "_-4Y-" (String#835, DoABC#3) // _SafeStr_2457 = "_-2HZ" (String#353, DoABC#3) // _SafeStr_2790 = "_-4CA" (String#884, DoABC#3) // _SafeStr_2823 = "_-3ZG" (String#734, DoABC#3) // _SafeStr_2824 = "_-72" (String#868, DoABC#3) // _SafeStr_2845 = "_-4gF" (String#4461, DoABC#3) // _SafeStr_2846 = "_-2bF" (String#3149, DoABC#3) // _SafeStr_35 = "_-0F5" (String#2450, DoABC#3) // _SafeStr_431 = "_-5AK" (String#1130, DoABC#3) // _SafeStr_4455 = "_-5xH" (String#6790, DoABC#3) // _SafeStr_4537 = "_-5rY" (String#2959, DoABC#3) // _SafeStr_4538 = "_-N1" (String#3106, DoABC#3) // _SafeStr_4539 = "_-5NJ" (String#9529, DoABC#3) // _SafeStr_4540 = "_-4wB" (String#12828, DoABC#3) // _SafeStr_4541 = "_-00t" (String#12581, DoABC#3) // _SafeStr_4542 = "_-4gH" (String#11662, DoABC#3) // _SafeStr_4543 = "_-5oV" (String#9671, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5333 = "_-2YU" (String#98, DoABC#3) // _SafeStr_5527 = "_-6hE" (String#389, DoABC#3) // _SafeStr_5528 = "_-5cu" (String#3212, DoABC#3) // _SafeStr_5529 = "_-1ok" (String#9709, DoABC#3) // _SafeStr_5530 = "_-2cg" (String#15678, DoABC#3) // _SafeStr_5531 = "_-V1" (String#16709, DoABC#3) // _SafeStr_5532 = "_-2PH" (String#9626, DoABC#3) // _SafeStr_5533 = "_-0lH" (String#12899, DoABC#3) // _SafeStr_5534 = "_-1Ss" (String#9445, DoABC#3) // _SafeStr_5535 = "_-4QI" (String#13181, DoABC#3) // _SafeStr_5536 = "_-4-Q" (String#17370, DoABC#3) // _SafeStr_5537 = "_-5ar" (String#10856, DoABC#3) // _SafeStr_5538 = "_-040" (String#8760, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5540 = "_-16d" (String#11976, DoABC#3) // _SafeStr_5541 = "_-29w" (String#5326, DoABC#3) // _SafeStr_5542 = "_-2Ia" (String#1540, DoABC#3) // _SafeStr_5543 = "_-3bF" (String#36090, DoABC#3) // _SafeStr_5544 = "_-hR" (String#32414, DoABC#3) // _SafeStr_5545 = "_-1TZ" (String#3143, DoABC#3) // _SafeStr_5546 = "_-4n4" (String#11687, DoABC#3) // _SafeStr_5547 = "_-1yY" (String#9946, DoABC#3) // _SafeStr_5548 = "_-68K" (String#12725, DoABC#3) // _SafeStr_5549 = "_-4Od" (String#36800, DoABC#3) // _SafeStr_5550 = "_-5U8" (String#5231, DoABC#3) // _SafeStr_5551 = "_-5uj" (String#38971, DoABC#3) // _SafeStr_5552 = "_-1LX" (String#28248, DoABC#3) // _SafeStr_5553 = "_-21-" (String#32121, DoABC#3) // _SafeStr_5554 = "_-pX" (String#35062, DoABC#3) // _SafeStr_5555 = "_-1Hp" (String#32437, DoABC#3) // _SafeStr_5556 = "_-1iQ" (String#34186, DoABC#3) // _SafeStr_5557 = "_-3Oq" (String#37733, DoABC#3) // _SafeStr_5558 = "_-39x" (String#33325, DoABC#3) // _SafeStr_5559 = "_-3yl" (String#36160, DoABC#3) // _SafeStr_5560 = "_-Vk" (String#35319, DoABC#3) // _SafeStr_5561 = "_-6Nh" (String#30968, DoABC#3) // _SafeStr_5562 = "_-0rt" (String#32996, DoABC#3) // _SafeStr_5563 = "_-45q" (String#38162, DoABC#3) // _SafeStr_5564 = "_-6BI" (String#34561, DoABC#3) // _SafeStr_5565 = "_-4Rn" (String#1219, DoABC#3) // _SafeStr_5566 = "_-0eD" (String#620, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-048._SafeStr_4538 package _-048{ import _-2A1.ButtonMenuView; import _-0PS._SafeStr_2457; import _-2A1._SafeStr_2845; public class _SafeStr_4538 extends ButtonMenuView { protected var _SafeStr_5567:_SafeStr_2457; protected var _SafeStr_5568:String; public function _SafeStr_4538(k:_SafeStr_2845){ super(k); } public static function setup(k:_SafeStr_4538, _arg_2:_SafeStr_2457, _arg_3:String=""):void{ k._SafeStr_5567 = _arg_2; k._SafeStr_5568 = _arg_3; _SafeStr_5569(k); } protected function get _SafeStr_5570():_SafeStr_2457{ return (this._SafeStr_5567); } override public function dispose():void{ this._SafeStr_5567 = null; super.dispose(); } } }//package _-048 // _SafeStr_2457 = "_-2HZ" (String#353, DoABC#3) // _SafeStr_2845 = "_-4gF" (String#4461, DoABC#3) // _SafeStr_4538 = "_-N1" (String#3106, DoABC#3) // _SafeStr_5567 = "_-1YB" (String#2459, DoABC#3) // _SafeStr_5568 = "_-3GS" (String#1633, DoABC#3) // _SafeStr_5569 = "_-0eM" (String#12353, DoABC#3) // _SafeStr_5570 = "_-5nY" (String#39697, DoABC#3) //------------------------------------------------------------ //_-048._SafeStr_4541 package _-048{ import _-2A1._SafeStr_2845; import _-29V.IWindow; import _-3UH.XmlAsset; import _-29V.IWindowContainer; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; public class _SafeStr_4541 extends _SafeStr_4538 { private var _SafeStr_5571:int; public function _SafeStr_4541(k:_SafeStr_2845){ super(k); } override protected function updateWindow():void{ var k:XML; var _local_2:IWindow; if (((((!(_SafeStr_5572)) || (!(_SafeStr_5572.assets)))) || (!(_SafeStr_5572.windowManager)))) { return; }; if (_SafeStr_5573) { activeView = _SafeStr_5574(); } else { if (!_SafeStr_5322) { k = (XmlAsset(_SafeStr_5572.assets.getAssetByName("monsterplant_seed_menu")).content as XML); _SafeStr_5322 = (_SafeStr_5572.windowManager.buildFromXML(k, 0) as IWindowContainer); if (!_SafeStr_5322) { return; }; _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5576); _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5576); _local_2 = _SafeStr_5322.findChildByName("minimize"); if (_local_2 != null) { _local_2.addEventListener(WindowMouseEvent.CLICK, _SafeStr_5578); _local_2.addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5579); _local_2.addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5579); }; }; _SafeStr_5322.findChildByName("furni_name").caption = "${furni.mnstr_seed.name}"; _SafeStr_5322.findChildByName("buttons").procedure = this.buttonEventProc; _SafeStr_5322.visible = false; activeView = _SafeStr_5322; _SafeStr_5580 = false; }; } override protected function buttonEventProc(k:WindowEvent, _arg_2:IWindow):void{ var _local_4:_SafeStr_2846; if (((((disposed) || (!(_SafeStr_5322)))) || (_SafeStr_5322.disposed))) { return; }; var _local_3:Boolean; if (k.type == WindowMouseEvent.CLICK) { if (_arg_2.name == "button") { switch (_arg_2.parent.name) { case "use": _local_4 = (_SafeStr_5572 as _SafeStr_2846); if (_local_4 != null) { _local_4._SafeStr_5552(_SafeStr_5567); }; break; }; }; _local_3 = true; } else { super.buttonEventProc(k, _arg_2); }; if (_local_3) { _SafeStr_5572.removeView(this, false); }; } public function set _SafeStr_5550(k:int):void{ this._SafeStr_5571 = k; } } }//package _-048 // _SafeStr_2845 = "_-4gF" (String#4461, DoABC#3) // _SafeStr_2846 = "_-2bF" (String#3149, DoABC#3) // _SafeStr_4538 = "_-N1" (String#3106, DoABC#3) // _SafeStr_4541 = "_-00t" (String#12581, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5550 = "_-5U8" (String#5231, DoABC#3) // _SafeStr_5552 = "_-1LX" (String#28248, DoABC#3) // _SafeStr_5567 = "_-1YB" (String#2459, DoABC#3) // _SafeStr_5571 = "_-3ob" (String#3231, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5573 = "_-516" (String#4230, DoABC#3) // _SafeStr_5574 = "_-0MH" (String#3449, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5576 = "_-2d-" (String#2482, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5578 = "_-4By" (String#5935, DoABC#3) // _SafeStr_5579 = "_-1OW" (String#3239, DoABC#3) // _SafeStr_5580 = "_-5bH" (String#3489, DoABC#3) //------------------------------------------------------------ //_-048._SafeStr_4542 package _-048{ import _-2A1._SafeStr_2845; import _-3UH.XmlAsset; import _-29V.IWindowContainer; import _-5Vh.WindowMouseEvent; import _-2eN._SafeStr_4492; import _-5Vh.WindowEvent; import _-29V.IWindow; public class _SafeStr_4542 extends _SafeStr_4538 { private var _SafeStr_5571:int; public function _SafeStr_4542(k:_SafeStr_2845){ super(k); } override protected function updateWindow():void{ var k:XML; if (((((!(_SafeStr_5572)) || (!(_SafeStr_5572.assets)))) || (!(_SafeStr_5572.windowManager)))) { return; }; if (_SafeStr_5573) { activeView = _SafeStr_5574(); } else { if (!_SafeStr_5322) { k = (XmlAsset(_SafeStr_5572.assets.getAssetByName("random_teleport_menu")).content as XML); _SafeStr_5322 = (_SafeStr_5572.windowManager.buildFromXML(k, 0) as IWindowContainer); if (!_SafeStr_5322) { return; }; _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5576); _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5576); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent.CLICK, _SafeStr_5578); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5579); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5579); }; _SafeStr_5322.findChildByName("furni_name").caption = "${furni.random_teleport.name}"; _SafeStr_5322.findChildByName("buttons").procedure = this.buttonEventProc; _SafeStr_5322.visible = false; activeView = _SafeStr_5322; _SafeStr_5580 = false; }; } override protected function buttonEventProc(k:WindowEvent, _arg_2:IWindow):void{ if (((((disposed) || (!(_SafeStr_5322)))) || (_SafeStr_5322.disposed))) { return; }; var _local_3:Boolean; if (k.type == WindowMouseEvent.CLICK) { if (_arg_2.name == "button") { switch (_arg_2.parent.name) { case "use": _SafeStr_5572.messageListener.processWidgetMessage(new _SafeStr_4492(_SafeStr_4492._SafeStr_5581, _SafeStr_5567.getId(), this._SafeStr_5571)); break; }; }; _local_3 = true; } else { super.buttonEventProc(k, _arg_2); }; if (_local_3) { _SafeStr_5572.removeView(this, false); }; } public function set _SafeStr_5550(k:int):void{ this._SafeStr_5571 = k; } } }//package _-048 // _SafeStr_2845 = "_-4gF" (String#4461, DoABC#3) // _SafeStr_4492 = "_-3DK" (String#2189, DoABC#3) // _SafeStr_4538 = "_-N1" (String#3106, DoABC#3) // _SafeStr_4542 = "_-4gH" (String#11662, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5550 = "_-5U8" (String#5231, DoABC#3) // _SafeStr_5567 = "_-1YB" (String#2459, DoABC#3) // _SafeStr_5571 = "_-3ob" (String#3231, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5573 = "_-516" (String#4230, DoABC#3) // _SafeStr_5574 = "_-0MH" (String#3449, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5576 = "_-2d-" (String#2482, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5578 = "_-4By" (String#5935, DoABC#3) // _SafeStr_5579 = "_-1OW" (String#3239, DoABC#3) // _SafeStr_5580 = "_-5bH" (String#3489, DoABC#3) // _SafeStr_5581 = "_-0cC" (String#10927, DoABC#3) //------------------------------------------------------------ //_-048._SafeStr_4543 package _-048{ import _-2A1._SafeStr_2845; import _-3UH.XmlAsset; import _-29V.IWindowContainer; import _-5Vh.WindowMouseEvent; import _-2eN._SafeStr_4492; import _-5Vh.WindowEvent; import _-29V.IWindow; public class _SafeStr_4543 extends _SafeStr_4538 { private var _SafeStr_5571:int; public function _SafeStr_4543(k:_SafeStr_2845){ super(k); } override protected function updateWindow():void{ var k:XML; if (((((!(_SafeStr_5572)) || (!(_SafeStr_5572.assets)))) || (!(_SafeStr_5572.windowManager)))) { return; }; if (_SafeStr_5573) { activeView = _SafeStr_5574(); } else { if (!_SafeStr_5322) { k = (XmlAsset(_SafeStr_5572.assets.getAssetByName("generic_usable_menu")).content as XML); _SafeStr_5322 = (_SafeStr_5572.windowManager.buildFromXML(k, 0) as IWindowContainer); if (!_SafeStr_5322) { return; }; _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5576); _SafeStr_5322.addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5576); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent.CLICK, _SafeStr_5578); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent._SafeStr_5575, _SafeStr_5579); _SafeStr_5322.findChildByName("minimize").addEventListener(WindowMouseEvent._SafeStr_5577, _SafeStr_5579); }; _SafeStr_5322.findChildByName("furni_name").caption = "${furni.generic_usable.name}"; _SafeStr_5322.findChildByName("buttons").procedure = this.buttonEventProc; _SafeStr_5322.visible = false; activeView = _SafeStr_5322; _SafeStr_5580 = false; }; } override protected function buttonEventProc(k:WindowEvent, _arg_2:IWindow):void{ if (((((disposed) || (!(_SafeStr_5322)))) || (_SafeStr_5322.disposed))) { return; }; var _local_3:Boolean; if (k.type == WindowMouseEvent.CLICK) { if (_arg_2.name == "button") { switch (_arg_2.parent.name) { case "use": _SafeStr_5572.messageListener.processWidgetMessage(new _SafeStr_4492(_SafeStr_4492._SafeStr_5581, _SafeStr_5567.getId(), this._SafeStr_5571)); break; }; }; _local_3 = true; } else { super.buttonEventProc(k, _arg_2); }; if (_local_3) { _SafeStr_5572.removeView(this, false); }; } public function set _SafeStr_5550(k:int):void{ this._SafeStr_5571 = k; } } }//package _-048 // _SafeStr_2845 = "_-4gF" (String#4461, DoABC#3) // _SafeStr_4492 = "_-3DK" (String#2189, DoABC#3) // _SafeStr_4538 = "_-N1" (String#3106, DoABC#3) // _SafeStr_4543 = "_-5oV" (String#9671, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5550 = "_-5U8" (String#5231, DoABC#3) // _SafeStr_5567 = "_-1YB" (String#2459, DoABC#3) // _SafeStr_5571 = "_-3ob" (String#3231, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5573 = "_-516" (String#4230, DoABC#3) // _SafeStr_5574 = "_-0MH" (String#3449, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5576 = "_-2d-" (String#2482, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5578 = "_-4By" (String#5935, DoABC#3) // _SafeStr_5579 = "_-1OW" (String#3239, DoABC#3) // _SafeStr_5580 = "_-5bH" (String#3489, DoABC#3) // _SafeStr_5581 = "_-0cC" (String#10927, DoABC#3) //------------------------------------------------------------ //_-048.MonsterPlantSeedConfirmationView package _-048{ import _-4Y1._SafeStr_3; import _-5x9._SafeStr_2325; import _-29V.IWindowContainer; import _-3xK._SafeStr_637; import _-3UH._SafeStr_10; import _-3Pt._SafeStr_2354; import _-3XT._SafeStr_2287; import _-0PS._SafeStr_2457; import _-0ch._SafeStr_2417; import flash.display.BitmapData; import _-6Sj.IFrameWindow; import _-3UH._SafeStr_39; import _-5x9._SafeStr_2973; import _-0bw._SafeStr_2308; import _-6Sj.IBitmapWrapperWindow; import _-3UH.BitmapDataAsset; import _-5Vh.WindowMouseEvent; import _-2eN._SafeStr_2749; import _-2eN._SafeStr_5079; public class MonsterPlantSeedConfirmationView implements _SafeStr_3, _SafeStr_2325 { private static const _SafeStr_5582:int = -1; private static const _SafeStr_5583:int = 0; private static const _SafeStr_5584:String = "header_button_close"; private static const _SafeStr_5585:String = "save_button"; private static const _SafeStr_5586:String = "cancel_text"; private static const _SafeStr_5587:String = "ok_button"; private var _SafeStr_5322:IWindowContainer; private var _SafeStr_5588:Boolean = false; private var _SafeStr_5572:_SafeStr_2846; private var _SafeStr_5338:_SafeStr_637; private var _assets:_SafeStr_10; private var _SafeStr_5589:int = -1; private var _SafeStr_5590:int; private var _SafeStr_5591:_SafeStr_2354; public function MonsterPlantSeedConfirmationView(k:_SafeStr_2846){ this._SafeStr_5572 = k; this._SafeStr_5338 = k.windowManager; this._assets = this._SafeStr_5572.assets; } public function get disposed():Boolean{ return (this._SafeStr_5588); } public function dispose():void{ if (this.disposed) { return; }; this._SafeStr_5588 = true; if (this._SafeStr_5322) { this._SafeStr_5322.dispose(); this._SafeStr_5322 = null; }; this._SafeStr_5591 = null; } public function open(k:int):void{ var _local_2:int = this._SafeStr_5572.handler.roomSession.roomId; var _local_3:_SafeStr_2457 = this._SafeStr_5572.handler.roomEngine.getRoomObject(_local_2, k, _SafeStr_2287._SafeStr_5565); if (_local_3 != null) { this._SafeStr_5591 = this._SafeStr_5572.handler._SafeStr_5592(_local_3); this._SafeStr_5589 = _local_3.getId(); }; var _local_4:int = _SafeStr_5582; switch (this._SafeStr_5591.category) { case _SafeStr_2417.MONSTERPLANT_SEED: _local_4 = _SafeStr_5583; break; default: _SafeStr_4.log(("[PlantSeedConfirmationView.open()] Unsupported furniture category: " + this._SafeStr_5591.category)); }; this._SafeStr_5593(_local_4); this._SafeStr_5322.visible = true; } private function _SafeStr_5593(k:int):void{ var _local_5:String; var _local_2:BitmapData = new BitmapData(10, 10); this._SafeStr_5572.localizations.registerParameter("useproduct.widget.title.plant_seed", "name", this._SafeStr_5591._SafeStr_5594); if (!this._SafeStr_5322) { _local_5 = "use_product_widget_frame_plant_seed_xml"; this._SafeStr_5322 = (this._SafeStr_5338.buildFromXML((this._assets.getAssetByName(_local_5).content as XML)) as IWindowContainer); this._SafeStr_5595(_SafeStr_5584); this._SafeStr_5322.center(); }; this._SafeStr_5572.localizations.registerParameter("useproduct.widget.text.plant_seed", "productName", this._SafeStr_5591._SafeStr_5594); var _local_3:IFrameWindow = (this._SafeStr_5322 as IFrameWindow); _local_3.content.removeChildAt(0); var _local_4:IWindowContainer = this.createWindow(k); _local_3.content.addChild(_local_4); switch (k) { case _SafeStr_5583: this._SafeStr_5595(_SafeStr_5585); this._SafeStr_5595(_SafeStr_5586); _local_2 = this._SafeStr_5596(this._SafeStr_5591); break; default: throw (new Error(("Invalid type for use product confirmation content apply: " + k))); }; this._SafeStr_5597(_local_2); this._SafeStr_5322.invalidate(); } private function createWindow(k:int):IWindowContainer{ var _local_2:_SafeStr_39; var _local_3:IWindowContainer; switch (k) { case _SafeStr_5583: _local_2 = this._assets.getAssetByName("use_product_controller_plant_seed_xml"); break; default: throw (new Error(("Invalid type for view content creation: " + k))); }; _local_3 = (this._SafeStr_5338.buildFromXML((_local_2.content as XML)) as IWindowContainer); return (_local_3); } private function _SafeStr_5596(k:_SafeStr_2354):BitmapData{ var _local_3:_SafeStr_2973; var _local_4:BitmapData; if (!k) { return (null); }; var _local_2:Array = k._SafeStr_5598.split(" "); switch (k.category) { case _SafeStr_2417.MONSTERPLANT_SEED: _local_3 = this._SafeStr_5572.handler.roomEngine.getFurnitureImage(this._SafeStr_5591.id, new _SafeStr_2308(90, 0, 0), 64, this, 0, "", -1, -1, null); break; default: _SafeStr_4.log(("[PlantSeedConfirmationView] Unsupported furniture category: " + k.category)); }; if (_local_3 != null) { this._SafeStr_5590 = _local_3.id; _local_4 = _local_3.data; }; return (_local_4); } private function _SafeStr_5597(k:BitmapData):void{ if (((!(this._SafeStr_5322)) || (!(k)))) { return; }; this._SafeStr_5599("preview_image_bg"); this._SafeStr_5599("preview_image"); } private function _SafeStr_5599(k:String):void{ if (!this._SafeStr_5322) { return; }; var _local_2:IBitmapWrapperWindow = (this._SafeStr_5322.findChildByName(k) as IBitmapWrapperWindow); if (_local_2 == null) { return; }; var _local_3:BitmapDataAsset = (this._assets.getAssetByName(_local_2._SafeStr_5600) as BitmapDataAsset); if (_local_3 == null) { return; }; _local_2._SafeStr_5601 = false; _local_2.bitmap = (_local_3.content as BitmapData); } public function close():void{ if (this._SafeStr_5322 != null) { this._SafeStr_5322.visible = false; }; } private function _SafeStr_5595(k:String):void{ this._SafeStr_5322.findChildByName(k).addEventListener(WindowMouseEvent.CLICK, this.onMouseClick); } private function onMouseClick(k:WindowMouseEvent):void{ var _local_2:_SafeStr_2749; switch (k.target.name) { case _SafeStr_5584: case _SafeStr_5586: case _SafeStr_5587: this.close(); break; case _SafeStr_5585: _local_2 = new _SafeStr_5079(_SafeStr_5079.MONSTERPLANT_SEED, this._SafeStr_5589); this.close(); break; }; if (_local_2) { this._SafeStr_5572.messageListener.processWidgetMessage(_local_2); }; } public function imageReady(k:int, _arg_2:BitmapData):void{ if (this.disposed) { return; }; if (this._SafeStr_5590 == k) { this._SafeStr_5597(_arg_2); this._SafeStr_5590 = 0; }; } public function _SafeStr_5602(k:int):void{ } } }//package _-048 // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_2287 = "_-4-R" (String#406, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2417 = "_-2Da" (String#1188, DoABC#3) // _SafeStr_2457 = "_-2HZ" (String#353, DoABC#3) // _SafeStr_2749 = "_-0pg" (String#450, DoABC#3) // _SafeStr_2846 = "_-2bF" (String#3149, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_39 = "_-0KE" (String#593, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5079 = "_-8Q" (String#4209, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_5565 = "_-4Rn" (String#1219, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5582 = "_-0r6" (String#6687, DoABC#3) // _SafeStr_5583 = "_-2sl" (String#14539, DoABC#3) // _SafeStr_5584 = "_-6W-" (String#1731, DoABC#3) // _SafeStr_5585 = "_-59W" (String#2181, DoABC#3) // _SafeStr_5586 = "_-2Kh" (String#3196, DoABC#3) // _SafeStr_5587 = "_-jE" (String#2174, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5589 = "_-0Hh" (String#7789, DoABC#3) // _SafeStr_5590 = "_-1Zr" (String#4026, DoABC#3) // _SafeStr_5591 = "_-0X5" (String#1700, DoABC#3) // _SafeStr_5592 = "_-5j4" (String#5857, DoABC#3) // _SafeStr_5593 = "_-63v" (String#3726, DoABC#3) // _SafeStr_5594 = "_-0V1" (String#2606, DoABC#3) // _SafeStr_5595 = "_-31e" (String#1556, DoABC#3) // _SafeStr_5596 = "_-0XR" (String#5410, DoABC#3) // _SafeStr_5597 = "_-3Ex" (String#3337, DoABC#3) // _SafeStr_5598 = "_-3po" (String#5847, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5600 = "_-3S8" (String#10886, DoABC#3) // _SafeStr_5601 = "_-1qp" (String#2218, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-048.PurchasableClothingConfirmationView package _-048{ import _-4Y1._SafeStr_3; import _-29V.IWindowContainer; import _-3xK._SafeStr_637; import _-3UH._SafeStr_10; import _-3Pt._SafeStr_2354; import _-3XT._SafeStr_2287; import _-0PS._SafeStr_2457; import __AS3__.vec.Vector; import _-0ch._SafeStr_2417; import _-AV._SafeStr_4085; import _-6Sj.IFrameWindow; import _-3UH._SafeStr_39; import _-6Sj._SafeStr_2600; import _-6Tv._SafeStr_3657; import _-5Vh.WindowMouseEvent; import _-2V7._SafeStr_4046; import __AS3__.vec.*; public class PurchasableClothingConfirmationView implements _SafeStr_3 { private static const _SafeStr_5582:int = -1; private static const _SafeStr_5603:int = 0; private static const _SafeStr_5584:String = "header_button_close"; private static const _SafeStr_5585:String = "save_button"; private static const _SafeStr_5586:String = "cancel_text"; private static const _SafeStr_5587:String = "ok_button"; private static const _SafeStr_5604:String = "avatar_preview"; private var _SafeStr_5322:IWindowContainer; private var _SafeStr_5588:Boolean = false; private var _SafeStr_5572:_SafeStr_2846; private var _SafeStr_5338:_SafeStr_637; private var _assets:_SafeStr_10; private var _SafeStr_5589:int = -1; private var _SafeStr_5591:_SafeStr_2354; private var _SafeStr_5605:String; public function PurchasableClothingConfirmationView(k:_SafeStr_2846){ this._SafeStr_5572 = k; this._SafeStr_5338 = k.windowManager; this._assets = this._SafeStr_5572.assets; } public function dispose():void{ this._SafeStr_5588 = true; } public function get disposed():Boolean{ return (this._SafeStr_5588); } public function open(k:int):void{ var _local_6:Array; var _local_7:String; var _local_2:int = this._SafeStr_5572.handler.roomSession.roomId; var _local_3:_SafeStr_2457 = this._SafeStr_5572.handler.roomEngine.getRoomObject(_local_2, k, _SafeStr_2287._SafeStr_5565); if (_local_3 != null) { this._SafeStr_5591 = this._SafeStr_5572.handler._SafeStr_5592(_local_3); this._SafeStr_5589 = _local_3.getId(); } else { return; }; var _local_4:int = _SafeStr_5582; var _local_5:Vector. = new Vector.(0); switch (this._SafeStr_5591.category) { case _SafeStr_2417._SafeStr_5606: _local_4 = _SafeStr_5603; _local_6 = this._SafeStr_5591._SafeStr_5598.split(","); for each (_local_7 in _local_6) { if (this._SafeStr_5572.handler.container.avatarRenderManager.isValidFigureSetForGender(parseInt(_local_7), this._SafeStr_5572.handler.container.sessionDataManager.gender)) { _local_5.push(parseInt(_local_7)); }; }; break; default: _SafeStr_4.log(("[PurchasableClothingConfirmationView.open()] Unsupported furniture category: " + this._SafeStr_5591.category)); }; this._SafeStr_5605 = this._SafeStr_5572.handler.container.avatarRenderManager.getFigureStringWithFigureIds(this._SafeStr_5572.handler.container.sessionDataManager.figure, this._SafeStr_5572.handler.container.sessionDataManager.gender, _local_5); if (this._SafeStr_5572.handler.container.inventory.hasBoundFigureSetFurniture(this._SafeStr_5591._SafeStr_5607)) { this._SafeStr_5572.handler.container.connection.send(new _SafeStr_4085(this._SafeStr_5605, this._SafeStr_5572.handler.container.sessionDataManager.gender)); } else { this._SafeStr_5593(_local_4); this._SafeStr_5322.visible = true; }; } private function _SafeStr_5593(k:int):void{ var _local_4:String; this._SafeStr_5572.localizations.registerParameter("useproduct.widget.title.bind_clothing", "name", this._SafeStr_5591._SafeStr_5594); if (!this._SafeStr_5322) { _local_4 = "use_product_widget_frame_plant_seed_xml"; this._SafeStr_5322 = (this._SafeStr_5338.buildFromXML((this._assets.getAssetByName(_local_4).content as XML)) as IWindowContainer); this._SafeStr_5595(_SafeStr_5584); this._SafeStr_5322.center(); }; this._SafeStr_5322.caption = "${useproduct.widget.title.bind_clothing}"; this._SafeStr_5572.localizations.registerParameter("useproduct.widget.text.bind_clothing", "productName", this._SafeStr_5591._SafeStr_5594); var _local_2:IFrameWindow = (this._SafeStr_5322 as IFrameWindow); _local_2.content.removeChildAt(0); var _local_3:IWindowContainer = this.createWindow(k); _local_2.content.addChild(_local_3); switch (k) { case _SafeStr_5603: this._SafeStr_5595(_SafeStr_5585); this._SafeStr_5595(_SafeStr_5586); break; default: throw (new Error(("Invalid type for use product confirmation content apply: " + k))); }; this._SafeStr_5608(); this._SafeStr_5322.invalidate(); } private function createWindow(k:int):IWindowContainer{ var _local_2:_SafeStr_39; var _local_3:IWindowContainer; switch (k) { case _SafeStr_5603: _local_2 = this._assets.getAssetByName("use_product_controller_purchasable_clothing_xml"); break; default: throw (new Error(("Invalid type for view content creation: " + k))); }; _local_3 = (this._SafeStr_5338.buildFromXML((_local_2.content as XML)) as IWindowContainer); return (_local_3); } private function _SafeStr_5608():void{ var k:_SafeStr_2600 = _SafeStr_2600(this._SafeStr_5322.findChildByName(_SafeStr_5604)); var _local_2:_SafeStr_3657 = _SafeStr_3657(k.widget); _local_2.figure = this._SafeStr_5605; } public function close():void{ if (this._SafeStr_5322 != null) { this._SafeStr_5322.visible = false; }; } private function _SafeStr_5595(k:String):void{ this._SafeStr_5322.findChildByName(k).addEventListener(WindowMouseEvent.CLICK, this.onMouseClick); } private function onMouseClick(k:WindowMouseEvent):void{ switch (k.target.name) { case _SafeStr_5584: case _SafeStr_5586: case _SafeStr_5587: this.close(); return; case _SafeStr_5585: this._SafeStr_5572.handler.container.connection.send(new _SafeStr_4046(this._SafeStr_5589)); this._SafeStr_5572.handler.container.connection.send(new _SafeStr_4085(this._SafeStr_5605, this._SafeStr_5572.handler.container.sessionDataManager.gender)); this.close(); return; }; } } }//package _-048 // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_2287 = "_-4-R" (String#406, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2417 = "_-2Da" (String#1188, DoABC#3) // _SafeStr_2457 = "_-2HZ" (String#353, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_2846 = "_-2bF" (String#3149, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3657 = "_-6bc" (String#1593, DoABC#3) // _SafeStr_39 = "_-0KE" (String#593, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4046 = "_-6Fw" (String#16350, DoABC#3) // _SafeStr_4085 = "_-525" (String#6504, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_5565 = "_-4Rn" (String#1219, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5582 = "_-0r6" (String#6687, DoABC#3) // _SafeStr_5584 = "_-6W-" (String#1731, DoABC#3) // _SafeStr_5585 = "_-59W" (String#2181, DoABC#3) // _SafeStr_5586 = "_-2Kh" (String#3196, DoABC#3) // _SafeStr_5587 = "_-jE" (String#2174, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5589 = "_-0Hh" (String#7789, DoABC#3) // _SafeStr_5591 = "_-0X5" (String#1700, DoABC#3) // _SafeStr_5592 = "_-5j4" (String#5857, DoABC#3) // _SafeStr_5593 = "_-63v" (String#3726, DoABC#3) // _SafeStr_5594 = "_-0V1" (String#2606, DoABC#3) // _SafeStr_5595 = "_-31e" (String#1556, DoABC#3) // _SafeStr_5598 = "_-3po" (String#5847, DoABC#3) // _SafeStr_5603 = "_-0AW" (String#13891, DoABC#3) // _SafeStr_5604 = "_-3uu" (String#23400, DoABC#3) // _SafeStr_5605 = "_-1Ag" (String#19796, DoABC#3) // _SafeStr_5606 = "_-1Kq" (String#19902, DoABC#3) // _SafeStr_5607 = "_-6UJ" (String#3527, DoABC#3) // _SafeStr_5608 = "_-2Wx" (String#33437, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-04a._SafeStr_5024 package _-04a{ import flash.display.Bitmap; import flash.geom.Point; import flash.display.BitmapData; public class _SafeStr_5024 extends Bitmap { private var _SafeStr_5609:int = 128; private var _SafeStr_5610:Point; private var _SafeStr_5611:String = ""; private var _SafeStr_5612:String = ""; private var _SafeStr_5613:Boolean = false; private var _SafeStr_5614:Boolean = false; private var _SafeStr_5615:_SafeStr_5028 = null; private var _SafeStr_5616:int = 0; private var _height:int = 0; private var _updateID1:int = -1; private var _updateID2:int = -1; private var _SafeStr_5617:int = 0; private var _SafeStr_5618:int = 0; public function _SafeStr_5024():void{ this._SafeStr_5610 = new Point(); cacheAsBitmap = false; } public function get _SafeStr_5619():int{ return (this._SafeStr_5609); } public function set _SafeStr_5619(k:int):void{ this._SafeStr_5609 = k; } public function get tag():String{ return (this._SafeStr_5611); } public function set tag(k:String):void{ this._SafeStr_5611 = k; } public function get identifier():String{ return (this._SafeStr_5612); } public function set identifier(k:String):void{ this._SafeStr_5612 = k; } public function get _SafeStr_5620():Boolean{ return (this._SafeStr_5614); } public function set _SafeStr_5620(k:Boolean):void{ this._SafeStr_5614 = k; } public function get _SafeStr_5621():Boolean{ return (this._SafeStr_5613); } public function set _SafeStr_5621(k:Boolean):void{ this._SafeStr_5613 = k; } public function get _SafeStr_5622():int{ return (this._SafeStr_5617); } public function set _SafeStr_5622(k:int):void{ this._SafeStr_5617 = k; } public function get _SafeStr_5623():int{ return (this._SafeStr_5618); } public function set _SafeStr_5623(k:int):void{ this._SafeStr_5618 = k; } public function dispose():void{ if (this._SafeStr_5615 != null) { this._SafeStr_5615.dispose(); this._SafeStr_5615 = null; }; } override public function set bitmapData(k:BitmapData):void{ var _local_2:_SafeStr_5028; if (k == bitmapData) { return; }; if (this._SafeStr_5615 != null) { this._SafeStr_5615.dispose(); this._SafeStr_5615 = null; }; if (k != null) { this._SafeStr_5616 = k.width; this._height = k.height; _local_2 = (k as _SafeStr_5028); if (_local_2 != null) { _local_2._SafeStr_5624(); this._SafeStr_5615 = _local_2; }; } else { this._SafeStr_5616 = 0; this._height = 0; this._updateID1 = -1; this._updateID2 = -1; }; super.bitmapData = k; } public function _SafeStr_5625(k:int, _arg_2:int):Boolean{ if (((!((k == this._updateID1))) || (!((_arg_2 == this._updateID2))))) { this._updateID1 = k; this._updateID2 = _arg_2; return (true); }; if (((!((this._SafeStr_5615 == null))) && (this._SafeStr_5615.disposed))) { return (true); }; return (false); } override public function hitTestPoint(k:Number, _arg_2:Number, _arg_3:Boolean=false):Boolean{ return (this.hitTest(k, _arg_2)); } public function hitTest(k:int, _arg_2:int):Boolean{ if ((((this._SafeStr_5609 > 0xFF)) || ((bitmapData == null)))) { return (false); }; if ((((((((k < 0)) || ((_arg_2 < 0)))) || ((k >= this._SafeStr_5616)))) || ((_arg_2 >= this._height)))) { return (false); }; return (this._SafeStr_5626(k, _arg_2)); } private function _SafeStr_5626(k:int, _arg_2:int):Boolean{ var _local_4:uint; var _local_3:Boolean; try { _local_4 = bitmapData.getPixel32(k, _arg_2); _local_4 = (_local_4 >> 24); _local_3 = (_local_4 > this._SafeStr_5609); } catch(e:Error) { }; return (_local_3); } } }//package _-04a // _SafeStr_5024 = "_-12U" (String#3647, DoABC#3) // _SafeStr_5028 = "_-3bb" (String#2012, DoABC#3) // _SafeStr_5609 = "_-wx" (String#19248, DoABC#3) // _SafeStr_5610 = "_-27C" (String#34088, DoABC#3) // _SafeStr_5611 = "_-ZU" (String#3354, DoABC#3) // _SafeStr_5612 = "_-wu" (String#8101, DoABC#3) // _SafeStr_5613 = "_-ve" (String#7941, DoABC#3) // _SafeStr_5614 = "_-2uD" (String#12655, DoABC#3) // _SafeStr_5615 = "_-0Wh" (String#751, DoABC#3) // _SafeStr_5616 = "_-1RX" (String#603, DoABC#3) // _SafeStr_5617 = "_-2AA" (String#30471, DoABC#3) // _SafeStr_5618 = "_-44K" (String#31049, DoABC#3) // _SafeStr_5619 = "_-3U0" (String#5242, DoABC#3) // _SafeStr_5620 = "_-20R" (String#5784, DoABC#3) // _SafeStr_5621 = "_-5Pd" (String#5781, DoABC#3) // _SafeStr_5622 = "_-1hB" (String#18225, DoABC#3) // _SafeStr_5623 = "_-26q" (String#21208, DoABC#3) // _SafeStr_5624 = "_-5OP" (String#12442, DoABC#3) // _SafeStr_5625 = "_-3v7" (String#23430, DoABC#3) // _SafeStr_5626 = "_-42Z" (String#38888, DoABC#3) //------------------------------------------------------------ //_-04a._SafeStr_5026 package _-04a{ public class _SafeStr_5026 { private var _SafeStr_5627:String = ""; private var _SafeStr_5628:String = ""; public function get _SafeStr_5566():String{ return (this._SafeStr_5627); } public function set _SafeStr_5566(k:String):void{ this._SafeStr_5627 = k; } public function get _SafeStr_5629():String{ return (this._SafeStr_5628); } public function set _SafeStr_5629(k:String):void{ this._SafeStr_5628 = k; } } }//package _-04a // _SafeStr_5026 = "_-1be" (String#7070, DoABC#3) // _SafeStr_5566 = "_-0eD" (String#620, DoABC#3) // _SafeStr_5627 = "_-1SF" (String#575, DoABC#3) // _SafeStr_5628 = "_-4Km" (String#14951, DoABC#3) // _SafeStr_5629 = "_-0QD" (String#5532, DoABC#3) //------------------------------------------------------------ //_-04a._SafeStr_5027 package _-04a{ import _-12Z._SafeStr_4675; import _-12Z._SafeStr_4375; public class _SafeStr_5027 implements _SafeStr_4675 { public static const _SafeStr_5630:Number = 100000000; private var _x:int = 0; private var _y:int = 0; private var _z:Number = 0; public var name:String = ""; private var _SafeStr_5631:_SafeStr_4375 = null; public function dispose():void{ this._SafeStr_5631 = null; this._z = -(_SafeStr_5630); } public function get x():int{ return (this._x); } public function set x(k:int):void{ this._x = k; } public function get y():int{ return (this._y); } public function set y(k:int):void{ this._y = k; } public function get z():Number{ return (this._z); } public function set z(k:Number):void{ this._z = k; } public function get sprite():_SafeStr_4375{ return (this._SafeStr_5631); } public function set sprite(k:_SafeStr_4375):void{ this._SafeStr_5631 = k; } } }//package _-04a // _SafeStr_4375 = "_-Ig" (String#1262, DoABC#3) // _SafeStr_4675 = "_-3cU" (String#11775, DoABC#3) // _SafeStr_5027 = "_-4al" (String#3658, DoABC#3) // _SafeStr_5630 = "_-3rK" (String#23520, DoABC#3) // _SafeStr_5631 = "_-2RE" (String#6841, DoABC#3) //------------------------------------------------------------ //_-04a._SafeStr_5028 package _-04a{ import flash.display.BitmapData; import flash.geom.Point; public class _SafeStr_5028 extends BitmapData { private static const _SafeStr_5632:Point = new Point(0, 0); private var _SafeStr_5633:int = 0; private var _disposed:Boolean = false; public function _SafeStr_5028(k:int, _arg_2:int, _arg_3:Boolean=true, _arg_4:uint=0){ super(k, _arg_2, _arg_3, _arg_4); } public function get _SafeStr_5634():int{ return (this._SafeStr_5633); } public function get disposed():Boolean{ return (this._disposed); } public function _SafeStr_5624():void{ this._SafeStr_5633++; } override public function dispose():void{ if (this._disposed) { return; }; if (--this._SafeStr_5633 <= 0) { super.dispose(); this._disposed = true; }; } override public function clone():BitmapData{ var data:_SafeStr_5028; try { data = new _SafeStr_5028(width, height, true, 0xFFFFFF); data.copyPixels(this, rect, _SafeStr_5632, null, null, true); } catch(e:Error) { data = new _SafeStr_5028(1, 1, true, 0xFFFFFF); }; return (data); } } }//package _-04a // _SafeStr_5028 = "_-3bb" (String#2012, DoABC#3) // _SafeStr_5624 = "_-5OP" (String#12442, DoABC#3) // _SafeStr_5632 = "_-3Vh" (String#4795, DoABC#3) // _SafeStr_5633 = "_-1ZW" (String#6122, DoABC#3) // _SafeStr_5634 = "_-69d" (String#37661, DoABC#3) //------------------------------------------------------------ //_-05I.ChatBubble package _-05I{ import flash.display.Sprite; import _-4nY.HabboFreeFlowChat; import _-6Bd._SafeStr_2741; import flash.display.Bitmap; import flash.text.TextField; import _-wA._SafeStr_4361; import flash.display.BitmapData; import _-0MJ._SafeStr_4360; import flash.text.AntiAliasType; import flash.text.GridFitType; import flash.events.TextEvent; import _-5rw._SafeStr_2805; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.Event; import flash.events.MouseEvent; public class ChatBubble extends Sprite { public static const _SafeStr_5635:uint = 300; public static const _SafeStr_5636:int = 15; private const _SafeStr_5637:int = 85; private const _SafeStr_5638:int = 190; private const _SafeStr_5639:uint = 150; private const _SafeStr_5640:uint = 108; private const _SafeStr_5641:int = 28; private const _SafeStr_5642:int = 15; private var _SafeStr_5527:HabboFreeFlowChat; private var _SafeStr_5643:_SafeStr_2741; private var _SafeStr_5644:Sprite; private var _SafeStr_5645:Bitmap; private var _SafeStr_5646:Bitmap; private var _SafeStr_5647:TextField; private var _SafeStr_5648:_SafeStr_4361; private var _SafeStr_5649:uint = 0; private var _SafeStr_5650:uint; private var _SafeStr_5651:int; private var _SafeStr_5652:int; private var _SafeStr_5653:int; private var _SafeStr_5654:int; private var _SafeStr_5655:Number; private var _SafeStr_5656:Number; private var _SafeStr_5657:Boolean = false; private var _SafeStr_5658:int = 0; private var _SafeStr_5659:int; private var _SafeStr_5660:Boolean = false; private var _SafeStr_5661:Boolean = false; private var _SafeStr_5662:Sprite; public function ChatBubble(k:_SafeStr_2741, _arg_2:_SafeStr_4361, _arg_3:BitmapData, _arg_4:String, _arg_5:uint, _arg_6:HabboFreeFlowChat, _arg_7:int=-1, _arg_8:Boolean=false, _arg_9:int=-1){ var _local_18:int; var _local_19:int; var _local_20:Array; var _local_21:String; var _local_22:String; var _local_23:String; var _local_24:int; var _local_25:BitmapData; super(); this._SafeStr_5527 = _arg_6; this._SafeStr_5643 = k; this._SafeStr_5648 = _arg_2; this._SafeStr_5644 = _arg_2._SafeStr_5663(_arg_5); this._SafeStr_5645 = ((_arg_2._SafeStr_5664) ? null : new Bitmap(_arg_2.pointer)); this._SafeStr_5660 = _arg_8; var _local_10:int = _SafeStr_5635; if (_arg_7 != -1) { _local_10 = _SafeStr_4360._SafeStr_5665(_arg_7); } else { if (_arg_6._SafeStr_5666) { _local_10 = _SafeStr_4360._SafeStr_5665(_arg_6._SafeStr_5666._SafeStr_5667); }; }; _local_10 = (_local_10 - _SafeStr_5636); this.cacheAsBitmap = true; var _local_11:int = ((_local_10 - _arg_2.textFieldMargins.x) - _arg_2.textFieldMargins.width); this._SafeStr_5647 = new TextField(); this._SafeStr_5647.width = _local_11; this._SafeStr_5647.multiline = true; this._SafeStr_5647.wordWrap = true; this._SafeStr_5647.selectable = false; this._SafeStr_5647.thickness = -15; this._SafeStr_5647.sharpness = 80; this._SafeStr_5647.antiAliasType = AntiAliasType.ADVANCED; this._SafeStr_5647.embedFonts = true; this._SafeStr_5647.gridFitType = GridFitType.PIXEL; this._SafeStr_5647.cacheAsBitmap = true; this._SafeStr_5647.defaultTextFormat = _arg_2._SafeStr_5668; this._SafeStr_5647.styleSheet = this._SafeStr_5648.styleSheet; this._SafeStr_5647.addEventListener(TextEvent.LINK, this._SafeStr_5669); var _local_12 = (k._SafeStr_5670 == _SafeStr_2805._SafeStr_5671); var _local_13 = (k._SafeStr_5670 == _SafeStr_2805._SafeStr_5672); var _local_14:Boolean = ((((!(_local_12)) && (!(_local_13)))) && (!(this._SafeStr_5648._SafeStr_5664))); if (_local_14) { this._SafeStr_5647.alpha = 0.6; }; var _local_15:String = (((_local_14) ? "" : "") + ((this._SafeStr_5648._SafeStr_5664) ? "" : (("" + _arg_4) + ": "))); _local_15 = (((_local_15 + ((_local_13) ? "" : "")) + k.text) + ((_local_13) ? "" : "")); _local_15 = (_local_15 + ((_local_14) ? "" : "")); if ((((k.links == null)) || ((k.links[0] == null)))) { this._SafeStr_5647.htmlText = _local_15; } else { _local_19 = -1; _local_20 = new Array(); _local_18 = 0; while (_local_18 < k.links.length) { _local_21 = k.links[_local_18][0][1]; _local_22 = (((('') + _local_21) + ""); _local_23 = (("{" + _local_18) + "}"); _local_24 = k.text.indexOf(_local_23); _local_19 = (_local_24 + _local_22.length); _local_20.push([_local_24, _local_19]); _local_15 = _local_15.replace(_local_23, _local_22); _local_18++; }; this._SafeStr_5647.htmlText = _local_15; }; var _local_16:int = Math.min(_local_10, ((this._SafeStr_5647.textWidth + _arg_2.textFieldMargins.x) + _arg_2.textFieldMargins.width)); var _local_17:int = ((this._SafeStr_5647.textHeight + _arg_2.textFieldMargins.y) + _arg_2.textFieldMargins.height); if (!this._SafeStr_5648.isSystemStyle) { _local_17 = Math.min(this._SafeStr_5640, _local_17); }; if (_arg_9 != -1) { _local_17 = Math.max(_arg_9, _local_17); }; _local_16 = Math.max(_local_16, this._SafeStr_5644.width); _local_17 = Math.max(_local_17, this._SafeStr_5644.height); this._SafeStr_5644.width = _local_16; this._SafeStr_5644.height = _local_17; this._SafeStr_5644.x = 0; this._SafeStr_5644.y = 0; this._SafeStr_5644.cacheAsBitmap = true; addChild(this._SafeStr_5644); if (!this._SafeStr_5648._SafeStr_5664) { this._SafeStr_5645.x = Math.max(this._SafeStr_5641, Math.min(this._SafeStr_5642, this._SafeStr_5673)); this._SafeStr_5645.y = (_local_17 - _arg_2._SafeStr_5674); addChild(this._SafeStr_5645); }; if (((!((_arg_3 == null))) && (!((_arg_2._SafeStr_5675 == null))))) { if (_arg_3.height > _local_17) { _local_25 = new BitmapData(_arg_3.width, _local_17); _local_25.copyPixels(_arg_3, new Rectangle(0, (_arg_3.height - _local_17), _arg_3.width, _local_17), new Point(0, 0)); } else { _local_25 = _arg_3; }; this._SafeStr_5646 = new Bitmap(_local_25); this._SafeStr_5646.x = (_arg_2._SafeStr_5675.x - (_local_25.width / 2)); this._SafeStr_5646.y = Math.max(1, (_arg_2._SafeStr_5675.y - (_local_25.height / 2))); addChild(this._SafeStr_5646); }; this._SafeStr_5647.width = Math.min(_local_11, (this._SafeStr_5647.textWidth + this._SafeStr_5648.textFieldMargins.width)); this._SafeStr_5647.height = (this._SafeStr_5647.textHeight + this._SafeStr_5648.textFieldMargins.height); this._SafeStr_5647.x = _arg_2.textFieldMargins.x; this._SafeStr_5647.y = _arg_2.textFieldMargins.y; addChild(this._SafeStr_5647); if (((!(this._SafeStr_5648.isSystemStyle)) && ((this._SafeStr_5647.textHeight > this._SafeStr_5640)))) { this._SafeStr_5662 = new Sprite(); this._SafeStr_5662.graphics.clear(); this._SafeStr_5662.graphics.beginFill(0xFFFFFF); this._SafeStr_5662.graphics.drawRect(0, 0, (this._SafeStr_5647.textWidth + 5), (this._SafeStr_5640 - _arg_2.textFieldMargins.height)); this._SafeStr_5647.mask = this._SafeStr_5662; addChild(this._SafeStr_5662); }; this.addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage); } public function dispose():void{ this.removeEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage); this.removeEventListener(MouseEvent.CLICK, this.onMouseClick); if (this._SafeStr_5662) { removeChild(this._SafeStr_5662); }; if (this._SafeStr_5647) { this._SafeStr_5647.removeEventListener(TextEvent.LINK, this._SafeStr_5669); }; removeChild(this._SafeStr_5647); if (((!((this._SafeStr_5646 == null))) && (!((this._SafeStr_5648._SafeStr_5675 == null))))) { removeChild(this._SafeStr_5646); }; if (((this._SafeStr_5645) && (this._SafeStr_5645.parent))) { removeChild(this._SafeStr_5645); }; removeChild(this._SafeStr_5644); this._SafeStr_5662 = null; this._SafeStr_5647 = null; this._SafeStr_5646 = null; this._SafeStr_5645 = null; this._SafeStr_5644 = null; this._SafeStr_5648 = null; } private function _SafeStr_5669(k:TextEvent):void{ if (((k.text) && ((k.text.length > 0)))) { this._SafeStr_5527.context.createLinkEvent(k.text); }; } public function get _SafeStr_5676():Number{ return (((this._SafeStr_5648.isSystemStyle) ? height : Math.min(this._SafeStr_5640, height))); } private function onAddedToStage(k:Event):void{ this.addEventListener(MouseEvent.CLICK, this.onMouseClick); } public function moveTo(k:int, _arg_2:int):void{ if (((!((this._SafeStr_5651 == k))) || (!((this._SafeStr_5652 == _arg_2))))) { this._SafeStr_5650 = this._SafeStr_5649; this._SafeStr_5653 = this._SafeStr_5677; this._SafeStr_5654 = y; this._SafeStr_5651 = k; this._SafeStr_5652 = _arg_2; this._SafeStr_5655 = ((k - this._SafeStr_5677) / Number(this._SafeStr_5639)); this._SafeStr_5656 = ((_arg_2 - y) / Number(this._SafeStr_5639)); }; } public function _SafeStr_5678(k:int, _arg_2:int):void{ this._SafeStr_5651 = k; this._SafeStr_5652 = _arg_2; this._SafeStr_5677 = k; y = _arg_2; this._SafeStr_5679(); } public function update(k:uint):void{ var _local_2:uint; this._SafeStr_5649 = (this._SafeStr_5649 + k); if (((!((this._SafeStr_5677 == this._SafeStr_5651))) || (!((y == this._SafeStr_5652))))) { _local_2 = (this._SafeStr_5649 - this._SafeStr_5650); if (_local_2 < this._SafeStr_5639) { this._SafeStr_5677 = int((this._SafeStr_5653 + (_local_2 * this._SafeStr_5655))); y = int((this._SafeStr_5654 + (_local_2 * this._SafeStr_5656))); } else { this._SafeStr_5677 = this._SafeStr_5651; y = this._SafeStr_5652; }; }; this._SafeStr_5679(); } public function get _SafeStr_5677():int{ return (this._SafeStr_5659); } public function set _SafeStr_5677(k:int):void{ var _local_2:int; var _local_3:int; this._SafeStr_5659 = k; if (((this._SafeStr_5660) && (stage))) { _local_2 = (this._SafeStr_5659 + this._SafeStr_5658); this._SafeStr_5661 = false; _local_3 = ((stage.stageWidth - this._SafeStr_5638) - width); if (_local_2 > _local_3) { _local_2 = _local_3; this._SafeStr_5661 = true; }; if (_local_2 < this._SafeStr_5637) { _local_2 = this._SafeStr_5637; this._SafeStr_5661 = true; }; x = _local_2; } else { x = (this._SafeStr_5659 + this._SafeStr_5658); }; } public function _SafeStr_5679():void{ if (((this._SafeStr_5645) && (this._SafeStr_5645.parent))) { this._SafeStr_5645.x = Math.max(this._SafeStr_5641, Math.min((this._SafeStr_5644.width - this._SafeStr_5642), this._SafeStr_5673)); this._SafeStr_5645.y = (this._SafeStr_5644.height - this._SafeStr_5648._SafeStr_5674); }; } public function get _SafeStr_5680():Boolean{ return (this._SafeStr_5657); } public function set _SafeStr_5680(k:Boolean):void{ this._SafeStr_5657 = k; if (k) { this.removeEventListener(MouseEvent.CLICK, this.onMouseClick); }; } public function get timeStamp():uint{ return (this._SafeStr_5643.timeStamp); } public function set component(k:HabboFreeFlowChat):void{ this._SafeStr_5527 = k; } private function get _SafeStr_5673():int{ return ((this._SafeStr_5681.x - this.x)); } public function get _SafeStr_5681():Point{ if (this._SafeStr_5643._SafeStr_5682) { return (new Point(((this._SafeStr_5527.displayObject.stage.stageWidth / 2) + Number(this._SafeStr_5643._SafeStr_5682)), 500)); }; return (this._SafeStr_5527._SafeStr_5683(this._SafeStr_5643.roomId, this._SafeStr_5643._SafeStr_5684)); } public function get roomId():int{ return (this._SafeStr_5643.roomId); } public function set _SafeStr_5685(k:int):void{ if (this._SafeStr_5658 != k) { this._SafeStr_5658 = k; this._SafeStr_5678(this._SafeStr_5651, this._SafeStr_5652); }; } private function onMouseClick(k:MouseEvent):void{ if (((this._SafeStr_5648) && (this._SafeStr_5648._SafeStr_5664))) { return; }; if (!this._SafeStr_5527._SafeStr_5686(k)) { this._SafeStr_5527._SafeStr_5687(this._SafeStr_5643); k.stopImmediatePropagation(); }; } public function get overlap():Rectangle{ return (this._SafeStr_5648.overlap); } public function get _SafeStr_5688():Boolean{ return (this._SafeStr_5661); } public function _SafeStr_5689(k:BitmapData):void{ k.draw(this); } } }//package _-05I // _SafeStr_2741 = "_-09g" (String#3663, DoABC#3) // _SafeStr_2805 = "_-ro" (String#1245, DoABC#3) // _SafeStr_4360 = "_-3uK" (String#6327, DoABC#3) // _SafeStr_4361 = "_-6Al" (String#7498, DoABC#3) // _SafeStr_5527 = "_-6hE" (String#389, DoABC#3) // _SafeStr_5635 = "_-1gp" (String#10460, DoABC#3) // _SafeStr_5636 = "_-3kN" (String#23120, DoABC#3) // _SafeStr_5637 = "_-6ae" (String#16810, DoABC#3) // _SafeStr_5638 = "_-6Rx" (String#25192, DoABC#3) // _SafeStr_5639 = "_-45r" (String#8787, DoABC#3) // _SafeStr_5640 = "_-24I" (String#5759, DoABC#3) // _SafeStr_5641 = "_-34-" (String#15791, DoABC#3) // _SafeStr_5642 = "_-Zr" (String#16701, DoABC#3) // _SafeStr_5643 = "_-3iS" (String#3475, DoABC#3) // _SafeStr_5644 = "_-4Oj" (String#1541, DoABC#3) // _SafeStr_5645 = "_-2qQ" (String#3180, DoABC#3) // _SafeStr_5646 = "_-5IW" (String#3901, DoABC#3) // _SafeStr_5647 = "_-3Uh" (String#1378, DoABC#3) // _SafeStr_5648 = "_-0be" (String#982, DoABC#3) // _SafeStr_5649 = "_-6Ef" (String#5864, DoABC#3) // _SafeStr_5650 = "_-2St" (String#15155, DoABC#3) // _SafeStr_5651 = "_-4Pe" (String#6002, DoABC#3) // _SafeStr_5652 = " if" (String#5959, DoABC#3) // _SafeStr_5653 = "_-8y" (String#16895, DoABC#3) // _SafeStr_5654 = "_-5fb" (String#16482, DoABC#3) // _SafeStr_5655 = "_-04L" (String#13823, DoABC#3) // _SafeStr_5656 = "_-2Q1" (String#15741, DoABC#3) // _SafeStr_5657 = "_-wE" (String#11849, DoABC#3) // _SafeStr_5658 = "_-Pp" (String#8298, DoABC#3) // _SafeStr_5659 = "_-46b" (String#8299, DoABC#3) // _SafeStr_5660 = "_-3pQ" (String#14306, DoABC#3) // _SafeStr_5661 = "_-26K" (String#7882, DoABC#3) // _SafeStr_5662 = "_-3z0" (String#2892, DoABC#3) // _SafeStr_5663 = "_-4sc" (String#13568, DoABC#3) // _SafeStr_5664 = "_-3Cp" (String#7006, DoABC#3) // _SafeStr_5665 = "_-48C" (String#22364, DoABC#3) // _SafeStr_5666 = "_-2Ao" (String#10176, DoABC#3) // _SafeStr_5667 = "_-3WW" (String#22926, DoABC#3) // _SafeStr_5668 = "_-dr" (String#8306, DoABC#3) // _SafeStr_5669 = "_-5s0" (String#16507, DoABC#3) // _SafeStr_5670 = "_-2e2" (String#3674, DoABC#3) // _SafeStr_5671 = "_-4nW" (String#5548, DoABC#3) // _SafeStr_5672 = "_-4Tj" (String#5651, DoABC#3) // _SafeStr_5673 = "_-3Q1" (String#14107, DoABC#3) // _SafeStr_5674 = "_-6W5" (String#13489, DoABC#3) // _SafeStr_5675 = "_-2oH" (String#7315, DoABC#3) // _SafeStr_5676 = "_-3ws" (String#26918, DoABC#3) // _SafeStr_5677 = "_-Wr" (String#5175, DoABC#3) // _SafeStr_5678 = "_-3IP" (String#14895, DoABC#3) // _SafeStr_5679 = "_-3MN" (String#14203, DoABC#3) // _SafeStr_5680 = "_-1Kr" (String#6558, DoABC#3) // _SafeStr_5681 = "_-3bU" (String#14886, DoABC#3) // _SafeStr_5682 = "_-1-e" (String#19137, DoABC#3) // _SafeStr_5683 = "_-5iX" (String#29720, DoABC#3) // _SafeStr_5684 = "_-3pC" (String#26179, DoABC#3) // _SafeStr_5685 = "_-2DS" (String#22120, DoABC#3) // _SafeStr_5686 = "_-3L-" (String#29536, DoABC#3) // _SafeStr_5687 = "_-4Dq" (String#29839, DoABC#3) // _SafeStr_5688 = "_-2JW" (String#30237, DoABC#3) // _SafeStr_5689 = "_-37t" (String#32860, DoABC#3) //------------------------------------------------------------ //_-05I.PooledChatBubble package _-05I{ import flash.display.Sprite; import _-4nY.HabboFreeFlowChat; import _-6Bd._SafeStr_2741; import flash.display.Bitmap; import flash.display.BitmapData; import flash.text.TextField; import _-wA._SafeStr_4361; import flash.events.Event; import _-0MJ._SafeStr_4360; import flash.text.AntiAliasType; import flash.text.GridFitType; import flash.events.TextEvent; import _-5rw._SafeStr_2805; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.MouseEvent; import flash.display.DisplayObject; public class PooledChatBubble extends Sprite { public static const _SafeStr_5635:uint = 300; private const _SafeStr_5637:int = 85; private const _SafeStr_5638:int = 190; private const _SafeStr_5639:uint = 150; private const _SafeStr_5640:uint = 108; private const _SafeStr_5641:int = 28; private const _SafeStr_5642:int = 15; private const _SafeStr_5690:int = 2000; private var _SafeStr_5527:HabboFreeFlowChat; private var _SafeStr_5643:_SafeStr_2741; private var _SafeStr_5644:Sprite; private var _SafeStr_5645:Bitmap; private var _SafeStr_5646:Bitmap; private var _SafeStr_5691:BitmapData; private var _SafeStr_5647:TextField; private var _SafeStr_5648:_SafeStr_4361; private var _SafeStr_5649:uint = 0; private var _SafeStr_5650:uint; private var _SafeStr_5651:int; private var _SafeStr_5652:int; private var _SafeStr_5653:int; private var _SafeStr_5654:int; private var _SafeStr_5655:Number; private var _SafeStr_5656:Number; private var _SafeStr_5657:Boolean = false; private var _SafeStr_5658:int = 0; private var _SafeStr_5659:int; private var _SafeStr_5660:Boolean = false; private var _SafeStr_5661:Boolean = false; private var _SafeStr_5662:Sprite; private var _SafeStr_5692:uint = 0; private var _SafeStr_5693:int = -1; public function PooledChatBubble(k:HabboFreeFlowChat){ this._SafeStr_5527 = k; this._SafeStr_5645 = new Bitmap(); this._SafeStr_5646 = new Bitmap(); this._SafeStr_5647 = new TextField(); this._SafeStr_5662 = new Sprite(); this.addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage); this.addEventListener(Event.REMOVED_FROM_STAGE, this._SafeStr_5694); } public function set chatItem(k:_SafeStr_2741):void{ this._SafeStr_5643 = k; } public function set face(k:BitmapData):void{ this._SafeStr_5691 = k; } public function set style(k:_SafeStr_4361):void{ this._SafeStr_5648 = k; } public function _SafeStr_5695(k:String, _arg_2:uint, _arg_3:Boolean=false, _arg_4:int=-1):void{ var _local_13:int; var _local_14:int; var _local_15:Array; var _local_16:String; var _local_17:String; var _local_18:String; var _local_19:int; var _local_20:BitmapData; this._SafeStr_5644 = this._SafeStr_5648._SafeStr_5663(_arg_2); this._SafeStr_5645.bitmapData = this._SafeStr_5648.pointer; this._SafeStr_5660 = _arg_3; var _local_5:int = ((this._SafeStr_5527._SafeStr_5666) ? _SafeStr_4360._SafeStr_5665(this._SafeStr_5527._SafeStr_5666._SafeStr_5667) : _SafeStr_5635); var _local_6:int = ((_local_5 - this._SafeStr_5648.textFieldMargins.x) - this._SafeStr_5648.textFieldMargins.width); this._SafeStr_5647.width = _local_6; this._SafeStr_5647.multiline = true; this._SafeStr_5647.wordWrap = true; this._SafeStr_5647.selectable = false; this._SafeStr_5647.thickness = -15; this._SafeStr_5647.sharpness = 80; this._SafeStr_5647.antiAliasType = AntiAliasType.ADVANCED; this._SafeStr_5647.embedFonts = true; this._SafeStr_5647.gridFitType = GridFitType.PIXEL; this._SafeStr_5647.cacheAsBitmap = !(this._SafeStr_5648.allowHTML); this._SafeStr_5647.styleSheet = null; this._SafeStr_5647.defaultTextFormat = this._SafeStr_5648._SafeStr_5668; this._SafeStr_5647.styleSheet = this._SafeStr_5648.styleSheet; this._SafeStr_5647.addEventListener(TextEvent.LINK, this._SafeStr_5669); var _local_7 = (this._SafeStr_5643._SafeStr_5670 == _SafeStr_2805._SafeStr_5671); var _local_8 = (this._SafeStr_5643._SafeStr_5670 == _SafeStr_2805._SafeStr_5672); var _local_9:Boolean = ((((!(_local_7)) && (!(_local_8)))) && (!(this._SafeStr_5648._SafeStr_5664))); if (_local_9) { this._SafeStr_5647.alpha = 0.6; } else { this._SafeStr_5647.alpha = 1; }; var _local_10:String = (((_local_9) ? "" : "") + ((this._SafeStr_5648._SafeStr_5664) ? "" : (("" + k) + ": "))); _local_10 = (((_local_10 + ((_local_8) ? "" : "")) + this._SafeStr_5643.text) + ((_local_8) ? "" : "")); _local_10 = (_local_10 + ((_local_9) ? "" : "")); if ((((this._SafeStr_5643.links == null)) || ((this._SafeStr_5643.links[0] == null)))) { this._SafeStr_5647.htmlText = _local_10; } else { _local_14 = -1; _local_15 = new Array(); _local_13 = 0; while (_local_13 < this._SafeStr_5643.links.length) { _local_16 = this._SafeStr_5643.links[_local_13][0][1]; _local_17 = (((('') + _local_16) + ""); _local_18 = (("{" + _local_13) + "}"); _local_19 = this._SafeStr_5643.text.indexOf(_local_18); _local_14 = (_local_19 + _local_17.length); _local_15.push([_local_19, _local_14]); _local_10 = _local_10.replace(_local_18, _local_17); _local_13++; }; this._SafeStr_5647.htmlText = _local_10; }; this._SafeStr_5693 = _arg_4; var _local_11:int = Math.min(_local_5, ((this._SafeStr_5647.textWidth + this._SafeStr_5648.textFieldMargins.x) + this._SafeStr_5648.textFieldMargins.width)); var _local_12:int = ((this._SafeStr_5647.textHeight + this._SafeStr_5648.textFieldMargins.y) + this._SafeStr_5648.textFieldMargins.height); if (!this._SafeStr_5648.isSystemStyle) { _local_12 = Math.min(this._SafeStr_5640, _local_12); }; if (_arg_4 != -1) { _local_12 = Math.max(_arg_4, _local_12); }; _local_11 = Math.max(_local_11, this._SafeStr_5644.width); _local_12 = Math.max(_local_12, this._SafeStr_5644.height); this._SafeStr_5644.width = _local_11; this._SafeStr_5644.height = _local_12; this._SafeStr_5644.x = 0; this._SafeStr_5644.y = 0; this._SafeStr_5644.cacheAsBitmap = true; addChild(this._SafeStr_5644); if (!this._SafeStr_5648._SafeStr_5664) { this._SafeStr_5645.x = Math.max(this._SafeStr_5641, Math.min(this._SafeStr_5642, this._SafeStr_5673)); this._SafeStr_5645.y = (_local_12 - this._SafeStr_5648._SafeStr_5674); addChild(this._SafeStr_5645); }; if (((!((this._SafeStr_5691 == null))) && (!((this._SafeStr_5648._SafeStr_5675 == null))))) { if (this._SafeStr_5691.height > _local_12) { _local_20 = new BitmapData(this._SafeStr_5691.width, _local_12); _local_20.copyPixels(this._SafeStr_5691, new Rectangle(0, (this._SafeStr_5691.height - _local_12), this._SafeStr_5691.width, _local_12), new Point(0, 0)); } else { _local_20 = this._SafeStr_5691; }; this._SafeStr_5646.bitmapData = _local_20; this._SafeStr_5646.x = (this._SafeStr_5648._SafeStr_5675.x - (_local_20.width / 2)); this._SafeStr_5646.y = Math.max(1, (this._SafeStr_5648._SafeStr_5675.y - (_local_20.height / 2))); addChild(this._SafeStr_5646); }; this._SafeStr_5647.width = Math.min(_local_6, (this._SafeStr_5647.textWidth + this._SafeStr_5648.textFieldMargins.width)); this._SafeStr_5647.height = (this._SafeStr_5647.textHeight + this._SafeStr_5648.textFieldMargins.height); this._SafeStr_5647.x = this._SafeStr_5648.textFieldMargins.x; this._SafeStr_5647.y = this._SafeStr_5648.textFieldMargins.y; addChild(this._SafeStr_5647); if (((!(this._SafeStr_5648.isSystemStyle)) && ((this._SafeStr_5647.textHeight > this._SafeStr_5640)))) { this._SafeStr_5662.graphics.clear(); this._SafeStr_5662.graphics.beginFill(0xFFFFFF); this._SafeStr_5662.graphics.drawRect(0, 0, (this._SafeStr_5647.textWidth + 5), (this._SafeStr_5640 - this._SafeStr_5648.textFieldMargins.height)); this._SafeStr_5662.graphics.endFill(); this._SafeStr_5647.mask = this._SafeStr_5662; addChild(this._SafeStr_5662); this._SafeStr_5662.x = this._SafeStr_5647.x; this._SafeStr_5662.y = this._SafeStr_5647.y; } else { this._SafeStr_5662.graphics.clear(); this._SafeStr_5647.mask = null; }; this.cacheAsBitmap = !(this._SafeStr_5648.allowHTML); this._SafeStr_5657 = false; this._SafeStr_5649 = 0; this._SafeStr_5692 = 0; visible = false; } public function _SafeStr_5696():void{ this.cacheAsBitmap = false; this.removeEventListener(MouseEvent.CLICK, this.onMouseClick); if (this._SafeStr_5662.parent == this) { this._SafeStr_5697(this._SafeStr_5662); }; this._SafeStr_5697(this._SafeStr_5647); if (((!((this._SafeStr_5648._SafeStr_5675 == null))) && ((this._SafeStr_5646.parent == this)))) { this._SafeStr_5697(this._SafeStr_5646); this._SafeStr_5646.bitmapData = null; }; if (((this._SafeStr_5645) && (this._SafeStr_5645.parent))) { this._SafeStr_5697(this._SafeStr_5645); }; this._SafeStr_5697(this._SafeStr_5644); if (this._SafeStr_5647) { this._SafeStr_5647.removeEventListener(TextEvent.LINK, this._SafeStr_5669); }; } private function _SafeStr_5669(k:TextEvent):void{ var _local_2:String; var _local_3:String; var _local_4:TextField; var _local_5:Point; var _local_6:Rectangle; var _local_7:String; if (((k.text) && ((k.text.length > 0)))) { _local_2 = k.text; _local_3 = "highlight/"; if (_local_2.indexOf(_local_3) > -1) { _local_4 = (k.target as TextField); _local_5 = new Point(_local_4.mouseX, _local_4.mouseY); _local_5 = _local_4.localToGlobal(_local_5); _local_6 = new Rectangle(_local_5.x, _local_5.y); _local_7 = _local_2.substr((_local_2.indexOf(_local_3) + _local_3.length), _local_2.length); this._SafeStr_5527.windowManager.hideHint(); this._SafeStr_5527.windowManager.showHint(_local_7.toLocaleUpperCase(), _local_6); } else { this._SafeStr_5527.context.createLinkEvent(k.text); }; }; } private function _SafeStr_5697(child:DisplayObject):void{ try { removeChild(child); } catch(error:ArgumentError) { }; } public function get _SafeStr_5676():Number{ return (((this._SafeStr_5648.isSystemStyle) ? height : Math.min(this._SafeStr_5640, height))); } private function onAddedToStage(k:Event):void{ this.addEventListener(MouseEvent.CLICK, this.onMouseClick); } private function _SafeStr_5694(k:Event):void{ this.removeEventListener(MouseEvent.CLICK, this.onMouseClick); } public function moveTo(k:int, _arg_2:int):void{ if (((!((this._SafeStr_5651 == k))) || (!((this._SafeStr_5652 == _arg_2))))) { this._SafeStr_5650 = this._SafeStr_5649; this._SafeStr_5653 = this._SafeStr_5677; this._SafeStr_5654 = y; this._SafeStr_5651 = k; this._SafeStr_5652 = _arg_2; this._SafeStr_5655 = ((k - this._SafeStr_5677) / Number(this._SafeStr_5639)); this._SafeStr_5656 = ((_arg_2 - y) / Number(this._SafeStr_5639)); }; } public function _SafeStr_5678(k:int, _arg_2:int):void{ this._SafeStr_5651 = k; this._SafeStr_5652 = _arg_2; this._SafeStr_5677 = k; y = _arg_2; } public function update(k:uint):void{ var _local_2:uint; this._SafeStr_5649 = (this._SafeStr_5649 + k); if (((!((this._SafeStr_5677 == this._SafeStr_5651))) || (!((y == this._SafeStr_5652))))) { _local_2 = (this._SafeStr_5649 - this._SafeStr_5650); if ((((_local_2 < this._SafeStr_5639)) && ((_local_2 > 0)))) { this._SafeStr_5677 = int((this._SafeStr_5653 + (_local_2 * this._SafeStr_5655))); y = int((this._SafeStr_5654 + (_local_2 * this._SafeStr_5656))); } else { this._SafeStr_5677 = this._SafeStr_5651; y = this._SafeStr_5652; }; }; if (this._SafeStr_5649 > (this._SafeStr_5692 + this._SafeStr_5690)) { this._SafeStr_5679(); this._SafeStr_5692 = this._SafeStr_5649; }; if ((((this._SafeStr_5649 > this._SafeStr_5639)) && (!(visible)))) { visible = true; }; } public function get _SafeStr_5677():int{ return (this._SafeStr_5659); } public function set _SafeStr_5677(k:int):void{ var _local_2:int; var _local_3:int; this._SafeStr_5659 = k; if (((this._SafeStr_5660) && (stage))) { _local_2 = (this._SafeStr_5659 + this._SafeStr_5658); this._SafeStr_5661 = false; _local_3 = ((stage.stageWidth - this._SafeStr_5638) - width); if (_local_2 > _local_3) { _local_2 = _local_3; this._SafeStr_5661 = true; }; if (_local_2 < this._SafeStr_5637) { _local_2 = this._SafeStr_5637; this._SafeStr_5661 = true; }; x = _local_2; } else { x = (this._SafeStr_5659 + this._SafeStr_5658); }; } public function _SafeStr_5679():void{ if (((this._SafeStr_5645) && (this._SafeStr_5645.parent))) { this._SafeStr_5645.x = Math.max(this._SafeStr_5641, Math.min((this._SafeStr_5644.width - this._SafeStr_5642), this._SafeStr_5673)); this._SafeStr_5645.y = (this._SafeStr_5644.height - this._SafeStr_5648._SafeStr_5674); }; } public function get _SafeStr_5680():Boolean{ return (this._SafeStr_5657); } public function set _SafeStr_5680(k:Boolean):void{ this._SafeStr_5657 = k; if (k) { this.removeEventListener(MouseEvent.CLICK, this.onMouseClick); }; } public function get timeStamp():uint{ return (this._SafeStr_5643.timeStamp); } public function set component(k:HabboFreeFlowChat):void{ this._SafeStr_5527 = k; } private function get _SafeStr_5673():int{ return ((this._SafeStr_5681.x - this.x)); } public function get _SafeStr_5681():Point{ if (this._SafeStr_5643._SafeStr_5682) { return (new Point(((this._SafeStr_5527.displayObject.stage.stageWidth / 2) + Number(this._SafeStr_5643._SafeStr_5682)), 500)); }; return (this._SafeStr_5527._SafeStr_5683(this._SafeStr_5643.roomId, this._SafeStr_5643._SafeStr_5684)); } public function get roomId():int{ return (this._SafeStr_5643.roomId); } public function set _SafeStr_5685(k:int):void{ if (this._SafeStr_5658 != k) { this._SafeStr_5658 = k; this._SafeStr_5678(this._SafeStr_5651, this._SafeStr_5652); }; } private function onMouseClick(k:MouseEvent):void{ if (((this._SafeStr_5648) && (this._SafeStr_5648._SafeStr_5664))) { return; }; if (!this._SafeStr_5527._SafeStr_5686(k)) { this._SafeStr_5527._SafeStr_5687(this._SafeStr_5643); k.stopImmediatePropagation(); }; } public function get overlap():Rectangle{ return (this._SafeStr_5648.overlap); } public function get _SafeStr_5688():Boolean{ return (this._SafeStr_5661); } public function get minHeight():int{ return (this._SafeStr_5693); } } }//package _-05I // _SafeStr_2741 = "_-09g" (String#3663, DoABC#3) // _SafeStr_2805 = "_-ro" (String#1245, DoABC#3) // _SafeStr_4360 = "_-3uK" (String#6327, DoABC#3) // _SafeStr_4361 = "_-6Al" (String#7498, DoABC#3) // _SafeStr_5527 = "_-6hE" (String#389, DoABC#3) // _SafeStr_5635 = "_-1gp" (String#10460, DoABC#3) // _SafeStr_5637 = "_-6ae" (String#16810, DoABC#3) // _SafeStr_5638 = "_-6Rx" (String#25192, DoABC#3) // _SafeStr_5639 = "_-45r" (String#8787, DoABC#3) // _SafeStr_5640 = "_-24I" (String#5759, DoABC#3) // _SafeStr_5641 = "_-34-" (String#15791, DoABC#3) // _SafeStr_5642 = "_-Zr" (String#16701, DoABC#3) // _SafeStr_5643 = "_-3iS" (String#3475, DoABC#3) // _SafeStr_5644 = "_-4Oj" (String#1541, DoABC#3) // _SafeStr_5645 = "_-2qQ" (String#3180, DoABC#3) // _SafeStr_5646 = "_-5IW" (String#3901, DoABC#3) // _SafeStr_5647 = "_-3Uh" (String#1378, DoABC#3) // _SafeStr_5648 = "_-0be" (String#982, DoABC#3) // _SafeStr_5649 = "_-6Ef" (String#5864, DoABC#3) // _SafeStr_5650 = "_-2St" (String#15155, DoABC#3) // _SafeStr_5651 = "_-4Pe" (String#6002, DoABC#3) // _SafeStr_5652 = " if" (String#5959, DoABC#3) // _SafeStr_5653 = "_-8y" (String#16895, DoABC#3) // _SafeStr_5654 = "_-5fb" (String#16482, DoABC#3) // _SafeStr_5655 = "_-04L" (String#13823, DoABC#3) // _SafeStr_5656 = "_-2Q1" (String#15741, DoABC#3) // _SafeStr_5657 = "_-wE" (String#11849, DoABC#3) // _SafeStr_5658 = "_-Pp" (String#8298, DoABC#3) // _SafeStr_5659 = "_-46b" (String#8299, DoABC#3) // _SafeStr_5660 = "_-3pQ" (String#14306, DoABC#3) // _SafeStr_5661 = "_-26K" (String#7882, DoABC#3) // _SafeStr_5662 = "_-3z0" (String#2892, DoABC#3) // _SafeStr_5663 = "_-4sc" (String#13568, DoABC#3) // _SafeStr_5664 = "_-3Cp" (String#7006, DoABC#3) // _SafeStr_5665 = "_-48C" (String#22364, DoABC#3) // _SafeStr_5666 = "_-2Ao" (String#10176, DoABC#3) // _SafeStr_5667 = "_-3WW" (String#22926, DoABC#3) // _SafeStr_5668 = "_-dr" (String#8306, DoABC#3) // _SafeStr_5669 = "_-5s0" (String#16507, DoABC#3) // _SafeStr_5670 = "_-2e2" (String#3674, DoABC#3) // _SafeStr_5671 = "_-4nW" (String#5548, DoABC#3) // _SafeStr_5672 = "_-4Tj" (String#5651, DoABC#3) // _SafeStr_5673 = "_-3Q1" (String#14107, DoABC#3) // _SafeStr_5674 = "_-6W5" (String#13489, DoABC#3) // _SafeStr_5675 = "_-2oH" (String#7315, DoABC#3) // _SafeStr_5676 = "_-3ws" (String#26918, DoABC#3) // _SafeStr_5677 = "_-Wr" (String#5175, DoABC#3) // _SafeStr_5678 = "_-3IP" (String#14895, DoABC#3) // _SafeStr_5679 = "_-3MN" (String#14203, DoABC#3) // _SafeStr_5680 = "_-1Kr" (String#6558, DoABC#3) // _SafeStr_5681 = "_-3bU" (String#14886, DoABC#3) // _SafeStr_5682 = "_-1-e" (String#19137, DoABC#3) // _SafeStr_5683 = "_-5iX" (String#29720, DoABC#3) // _SafeStr_5684 = "_-3pC" (String#26179, DoABC#3) // _SafeStr_5685 = "_-2DS" (String#22120, DoABC#3) // _SafeStr_5686 = "_-3L-" (String#29536, DoABC#3) // _SafeStr_5687 = "_-4Dq" (String#29839, DoABC#3) // _SafeStr_5688 = "_-2JW" (String#30237, DoABC#3) // _SafeStr_5690 = "_-4o2" (String#37535, DoABC#3) // _SafeStr_5691 = "_-2kS" (String#9109, DoABC#3) // _SafeStr_5692 = "_-4BZ" (String#23821, DoABC#3) // _SafeStr_5693 = "_-2Zt" (String#5140, DoABC#3) // _SafeStr_5694 = "_-0LS" (String#25012, DoABC#3) // _SafeStr_5695 = "_-oA" (String#27185, DoABC#3) // _SafeStr_5696 = "_-61x" (String#37674, DoABC#3) // _SafeStr_5697 = "_-8V" (String#16864, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5228 package _-061{ import _-PA.Debuggable; import flash.display.DisplayObject; import _-58d.NonLinearVideoAd; public class _SafeStr_5228 extends Debuggable { public static const _SafeStr_5698:String = "html5"; public static const _SafeStr_5699:String = "flash"; protected var _SafeStr_5700:String = "_code_"; protected var _SafeStr_5701:DisplayObject = null; protected var _SafeStr_5702:String = "flash"; public function _SafeStr_5228(k:String="flash", _arg_2:String=null){ this._SafeStr_5702 = k; if (_arg_2 != null) { this._SafeStr_5700 = _arg_2; }; } protected function replace(k:String, _arg_2:String, _arg_3:String):String{ var _local_4:RegExp = new RegExp((("_" + _arg_2) + "_"), "g"); return (k.replace(_local_4, _arg_3)); } public function getContent(k:NonLinearVideoAd):String{ if (k != null) { if (k._SafeStr_5703()) { return (this.replace(this._SafeStr_5700, "code", k.codeBlock)); }; if (k.url != null) { return (this.replace(this._SafeStr_5700, "code", k.url.url)); }; return (""); }; return ("Non-linear video ad not available"); } public function set template(k:String):void{ this._SafeStr_5700 = k; } public function get template():String{ return (this._SafeStr_5700); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5698 = "_-2S-" (String#8806, DoABC#3) // _SafeStr_5699 = "_-182" (String#29242, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) // _SafeStr_5701 = "_-1Y1" (String#4859, DoABC#3) // _SafeStr_5702 = "_-XR" (String#6107, DoABC#3) // _SafeStr_5703 = "_-7O" (String#5005, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5229 package _-061{ import _-58d.NonLinearTextAd; import _-58d.NonLinearVideoAd; public class _SafeStr_5229 extends _SafeStr_5228 { public function _SafeStr_5229(k:String="flash", _arg_2:String=null){ super(k, (((_arg_2)!=null) ? (_arg_2) : (((k == "flash")) ? ((((("" + "

_title_

") + "

_description_

") + "

_callToActionTitle_

") + "")) : ((((("
" + "
_title_
") + "
_description_
") + "
_callToActionTitle_
") + "
"))))); } override public function getContent(k:NonLinearVideoAd):String{ var _local_2:String; if (k != null) { _local_2 = replace(_SafeStr_5700, "title", (k as NonLinearTextAd).title); _local_2 = replace(_local_2, "description", (k as NonLinearTextAd).description); _local_2 = replace(_local_2, "callToActionTitle", (k as NonLinearTextAd).callToActionTitle); return (_local_2); }; return ("Non-linear video ad not available"); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5229 = "_-yg" (String#6962, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5230 package _-061{ import _-58d.NonLinearVideoAd; public class _SafeStr_5230 extends _SafeStr_5228 { public function _SafeStr_5230(k:String="flash", _arg_2:String=null){ super(k, (((_arg_2)!=null) ? _arg_2 : (((k == "html5")) ? (this._SafeStr_5704()) : ("")))); } protected function _SafeStr_5704():String{ var k:String = ""; k = ''; k = (k + ''); k = (k + ''); k = (k + ''); k = (k + ''); k = (k + ""); k = (k + ""); return (k); } override public function getContent(k:NonLinearVideoAd):String{ var _local_2:String; var _local_3:String; if (k != null) { if (k._SafeStr_5703()) { return (k.codeBlock); }; if (k.url != null) { _local_2 = replace(_SafeStr_5700, "url", k.url.url); _local_3 = ""; if (((k._SafeStr_5706()) && (k._SafeStr_5705()))) { _local_3 = (((('width="' + k.width) + '" height="') + k.height) + '"'); }; _local_2 = replace(_local_2, "dimensions", _local_3); if (k._SafeStr_5707()) { _local_2 = replace(_local_2, "clicktag", k.getClickThroughURLString()); }; return (_local_2); }; return (""); }; return ("Non-linear video ad not available"); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5230 = "_-267" (String#7819, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) // _SafeStr_5703 = "_-7O" (String#5005, DoABC#3) // _SafeStr_5704 = "_-12e" (String#33908, DoABC#3) // _SafeStr_5705 = "_-6Jx" (String#22278, DoABC#3) // _SafeStr_5706 = "_-03D" (String#22474, DoABC#3) // _SafeStr_5707 = "_-5eH" (String#7578, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5232 package _-061{ public class _SafeStr_5232 extends _SafeStr_5228 { public function _SafeStr_5232(k:String="flash", _arg_2:String=null){ super(k, (((_arg_2)!=null) ? _arg_2 : "")); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5232 = "_-2As" (String#6910, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5233 package _-061{ import _-58d.NonLinearVideoAd; public class _SafeStr_5233 extends _SafeStr_5228 { public function _SafeStr_5233(k:String="flash", _arg_2:String=null){ super(k, (((_arg_2)!=null) ? _arg_2 : null)); } override public function getContent(k:NonLinearVideoAd):String{ if (k != null) { if (k._SafeStr_5703()) { return (replace((((_SafeStr_5700)==null) ? "_code_" : _SafeStr_5700), "code", k.codeBlock)); }; if (k.url != null) { return (replace("", "code", k.url.url)); }; return (""); }; return ("Non-linear video ad not available"); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5233 = "_-1IR" (String#8025, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) // _SafeStr_5703 = "_-7O" (String#5005, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5234 package _-061{ import _-58d.NonLinearVideoAd; public class _SafeStr_5234 extends _SafeStr_5228 { public function _SafeStr_5234(k:String="flash", _arg_2:String=null){ super(k); _SafeStr_5700 = (((_arg_2)!=null) ? _arg_2 : null); } protected function _SafeStr_5708(k:String, _arg_2:Number, _arg_3:Number):String{ var _local_4:String; if ((((_arg_2 > -1)) && ((_arg_3 > -1)))) { _local_4 = replace((((_SafeStr_5700)==null) ? "" : _SafeStr_5700), "code", k); _local_4 = replace(_local_4, "width", _arg_2.toString()); _local_4 = replace(_local_4, "height", _arg_3.toString()); } else { _local_4 = replace((((_SafeStr_5700)==null) ? "" : _SafeStr_5700), "code", k); }; return (_local_4); } override public function getContent(k:NonLinearVideoAd):String{ if (k != null) { if (k._SafeStr_5703()) { return (k.codeBlock); }; if (k.url != null) { return (this._SafeStr_5708(k.url.url, k.width, k.height)); }; return (""); }; return ("Non-linear video ad not available"); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5234 = "_-3Ja" (String#8372, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) // _SafeStr_5703 = "_-7O" (String#5005, DoABC#3) // _SafeStr_5708 = "_-66P" (String#38979, DoABC#3) //------------------------------------------------------------ //_-061._SafeStr_5235 package _-061{ public class _SafeStr_5235 extends _SafeStr_5228 { public function _SafeStr_5235(k:String="flash", _arg_2:String=null){ super(k, (((_arg_2)!=null) ? (_arg_2) : (((k == "flash")) ? ("_code_") : ("_code_")))); } } }//package _-061 // _SafeStr_5228 = "_-06e" (String#3233, DoABC#3) // _SafeStr_5235 = "_-40Y" (String#5938, DoABC#3) //------------------------------------------------------------ //_-06C._SafeStr_2974 package _-06C{ import _-0bw._SafeStr_2307; public class _SafeStr_2974 { protected var _SafeStr_5709:_SafeStr_2307; protected var _SafeStr_5710:_SafeStr_2307; public function _SafeStr_2974(k:_SafeStr_2307, _arg_2:_SafeStr_2307){ this._SafeStr_5709 = k; this._SafeStr_5710 = _arg_2; } public function get loc():_SafeStr_2307{ return (this._SafeStr_5709); } public function get dir():_SafeStr_2307{ return (this._SafeStr_5710); } } }//package _-06C // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_2974 = "_-60x" (String#922, DoABC#3) // _SafeStr_5709 = "_-1ol" (String#1272, DoABC#3) // _SafeStr_5710 = "_-gJ" (String#2028, DoABC#3) //------------------------------------------------------------ //_-07G._SafeStr_2416 package _-07G{ public class _SafeStr_2416 { private var _name:String; private var _SafeStr_5711:String = ""; private var _SafeStr_5712:int; private var _SafeStr_5713:int; private var _SafeStr_5714:Boolean; private var _SafeStr_5715:int; private var _SafeStr_5716:String; private var _SafeStr_5717:Date; private var _SafeStr_5718:int = -1; public function clear():void{ this._name = null; this._SafeStr_5711 = ""; this._SafeStr_5712 = 0; this._SafeStr_5714 = false; this._SafeStr_5716 = null; this._SafeStr_5715 = -1; this._SafeStr_5718 = -1; } public function get name():String{ return (this._name); } public function set name(k:String):void{ this._name = k; } public function get description():String{ return (this._SafeStr_5711); } public function set description(k:String):void{ this._SafeStr_5711 = k; } public function get flatId():int{ return (this._SafeStr_5712); } public function set flatId(k:int):void{ this._SafeStr_5712 = k; } public function get _SafeStr_5719():int{ return (this._SafeStr_5713); } public function set _SafeStr_5719(k:int):void{ this._SafeStr_5713 = k; } public function get _SafeStr_5720():Boolean{ return (this._SafeStr_5714); } public function get _SafeStr_5721():int{ return (this._SafeStr_5715); } public function set _SafeStr_5721(k:int):void{ this._SafeStr_5715 = k; } public function set _SafeStr_5720(k:Boolean):void{ this._SafeStr_5714 = k; } public function get roomName():String{ return (this._SafeStr_5716); } public function set roomName(k:String):void{ this._SafeStr_5716 = k; } public function get expirationTime():Date{ return (this._SafeStr_5717); } public function set expirationTime(k:Date):void{ this._SafeStr_5717 = k; } public function get _SafeStr_5722():int{ return (this._SafeStr_5718); } public function set _SafeStr_5722(k:int):void{ this._SafeStr_5718 = k; } } }//package _-07G // _SafeStr_2416 = "_-1vX" (String#3410, DoABC#3) // _SafeStr_5711 = "_-2W5" (String#1305, DoABC#3) // _SafeStr_5712 = "_-690" (String#1467, DoABC#3) // _SafeStr_5713 = "_-v5" (String#1685, DoABC#3) // _SafeStr_5714 = "_-2cy" (String#26039, DoABC#3) // _SafeStr_5715 = "_-4yI" (String#21814, DoABC#3) // _SafeStr_5716 = "_-0ZJ" (String#2471, DoABC#3) // _SafeStr_5717 = "_-6i5" (String#6320, DoABC#3) // _SafeStr_5718 = "_-0i6" (String#2167, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5720 = "_-5xY" (String#12392, DoABC#3) // _SafeStr_5721 = "_-0m7" (String#23211, DoABC#3) // _SafeStr_5722 = "_-1FU" (String#2393, DoABC#3) //------------------------------------------------------------ //_-07G._SafeStr_2472 package _-07G{ import _-6K0._SafeStr_3455; import _-53T._SafeStr_2381; public class _SafeStr_2472 { private var _SafeStr_5723:Boolean = false; private var _SafeStr_5724:int; private var _SafeStr_5725:Array; private var _SafeStr_5726:Array; private var _SafeStr_5727:Array; private var _SafeStr_5728:Array; public function _SafeStr_2472(k:_SafeStr_2381){ if (k == null) { return; }; var _local_2:_SafeStr_3455 = k._SafeStr_5729(); if (_local_2 == null) { return; }; this._SafeStr_5723 = _local_2._SafeStr_5730; this._SafeStr_5724 = _local_2._SafeStr_5731; this._SafeStr_5725 = _local_2._SafeStr_5732; this._SafeStr_5726 = _local_2._SafeStr_5733; this._SafeStr_5727 = _local_2._SafeStr_5734; this._SafeStr_5728 = _local_2._SafeStr_5735; } public function get _SafeStr_5736():Boolean{ return (this._SafeStr_5723); } public function get price():int{ return (this._SafeStr_5724); } public function get _SafeStr_5732():Array{ return (this._SafeStr_5725); } public function get _SafeStr_5733():Array{ return (this._SafeStr_5726); } public function get _SafeStr_5734():Array{ return (this._SafeStr_5727); } public function get _SafeStr_5735():Array{ return (this._SafeStr_5728); } } }//package _-07G // _SafeStr_2381 = "_-49s" (String#9461, DoABC#3) // _SafeStr_2472 = "_-6NV" (String#9894, DoABC#3) // _SafeStr_3455 = "_-0xf" (String#10263, DoABC#3) // _SafeStr_5723 = "_-3tT" (String#5003, DoABC#3) // _SafeStr_5724 = "_-4Eb" (String#6146, DoABC#3) // _SafeStr_5725 = "_-2Ai" (String#6922, DoABC#3) // _SafeStr_5726 = "_-620" (String#4622, DoABC#3) // _SafeStr_5727 = "_-3t0" (String#5164, DoABC#3) // _SafeStr_5728 = "_-5zt" (String#12741, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5730 = "_-2nY" (String#38384, DoABC#3) // _SafeStr_5731 = "_-3uT" (String#36648, DoABC#3) // _SafeStr_5732 = "_-ID" (String#25327, DoABC#3) // _SafeStr_5733 = "_-1wS" (String#22289, DoABC#3) // _SafeStr_5734 = "_-5kC" (String#23700, DoABC#3) // _SafeStr_5735 = "_-JF" (String#16685, DoABC#3) // _SafeStr_5736 = "_-3yb" (String#7092, DoABC#3) //------------------------------------------------------------ //_-07G._SafeStr_2509 package _-07G{ import _-4Y1._SafeStr_3; import _-5x9._SafeStr_2325; import _-2Of._SafeStr_3527; import _-29V.IWindowContainer; import _-3WJ.HabboCatalog; import _-3Pt._SafeStr_2354; import _-5x9._SafeStr_2973; import _-4iq._SafeStr_3530; import _-6Sj._SafeStr_2434; import _-6Sj.IItemListWindow; import _-0bw._SafeStr_2308; import _-px._SafeStr_2511; import _-6Sj.IBitmapWrapperWindow; import _-0JW._SafeStr_3529; import _-5x9._SafeStr_2213; import _-5Vh.WindowMouseEvent; import _-0JW._SafeStr_3526; import _-0JW._SafeStr_3528; import _-5Vh.WindowEvent; import _-29V.IWindow; import flash.display.BitmapData; public class _SafeStr_2509 implements _SafeStr_3, _SafeStr_2325 { private static const _SafeStr_5737:int = 1; private static const _SafeStr_5738:int = 2; private static const _SafeStr_5739:int = 3; private var _disposed:Boolean; private var _SafeStr_5740:_SafeStr_3527; private var _SafeStr_5322:IWindowContainer; private var _SafeStr_5741:Boolean; private var _SafeStr_5742:int = -1; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_5743:_SafeStr_2354; private var _SafeStr_5744:int; private var _SafeStr_5745:int = -1; private var _SafeStr_5746:int; public function _SafeStr_2509(k:HabboCatalog){ this._SafeStr_5539 = k; this._SafeStr_5740 = new _SafeStr_3527(this._SafeStr_5747); this._SafeStr_5539.connection.addMessageEvent(this._SafeStr_5740); } private function _SafeStr_5747(k:_SafeStr_3527):void{ var _local_3:_SafeStr_2973; if (this._SafeStr_5743 == null) { return; }; var _local_2:_SafeStr_3530 = k._SafeStr_5729(); if (this._SafeStr_5743._SafeStr_5748 != _local_2._SafeStr_5749) { return; }; this._SafeStr_5741 = _local_2.buyout; if (this._SafeStr_5539.getPurse().credits < _local_2.priceInCredits) { this._SafeStr_5539._SafeStr_5750(); return; }; if (this._SafeStr_5539.getPurse()._SafeStr_5751(_local_2.activityPointType) < _local_2.priceInActivityPoints) { this._SafeStr_5539._SafeStr_5752(_local_2.activityPointType); return; }; this._SafeStr_5322 = (this._SafeStr_5539.windowManager.buildFromXML((this._SafeStr_5539.assets.getAssetByName("rent_confirmation").content as XML)) as IWindowContainer); if (_local_2.priceInCredits > 0) { this._SafeStr_5322.findChildByName("price_amount").caption = _local_2.priceInCredits.toString(); _SafeStr_2434(this._SafeStr_5322.findChildByName("price_type")).assetUri = "toolbar_credit_icon_0"; } else { this._SafeStr_5322.findChildByName("price_amount").caption = _local_2.priceInActivityPoints.toString(); }; if (this._SafeStr_5741) { this._SafeStr_5322.caption = "${rent.confirmation.title.buyout}"; this._SafeStr_5322.findChildByName("rental_description").visible = false; this._SafeStr_5322.findChildByName("ok_button").caption = "${catalog.purchase_confirmation.buy}"; }; this._SafeStr_5322.findChildByName("furni_name").caption = this._SafeStr_5743._SafeStr_5594; IItemListWindow(this._SafeStr_5322.findChildByName("content_list")).arrangeListItems(); this._SafeStr_5322.center(); this._SafeStr_5322.procedure = this._SafeStr_5753; switch (this._SafeStr_5743.type) { case _SafeStr_2511._SafeStr_5754: _local_3 = this.roomEngine.getFurnitureImage(this._SafeStr_5743.id, new _SafeStr_2308(90, 0, 0), 64, this); break; case _SafeStr_2511._SafeStr_5755: _local_3 = this.roomEngine.getWallItemImage(this._SafeStr_5743.id, new _SafeStr_2308(90, 0, 0), 64, this); break; }; IBitmapWrapperWindow(this._SafeStr_5322.findChildByName("image")).bitmap = _local_3.data; this._SafeStr_5742 = _local_3.id; } public function dispose():void{ if (this._disposed) { return; }; this.close(); if (this._SafeStr_5740 != null) { this._SafeStr_5539.connection.removeMessageEvent(this._SafeStr_5740); this._SafeStr_5740 = null; }; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } public function show(k:_SafeStr_2354, _arg_2:Boolean, _arg_3:int=-1, _arg_4:int=-1, _arg_5:Boolean=false):void{ this.close(); this._SafeStr_5743 = k; this._SafeStr_5745 = _arg_3; this._SafeStr_5746 = _arg_4; if (_arg_5) { this._SafeStr_5744 = _SafeStr_5739; } else { if (this._SafeStr_5745 > -1) { this._SafeStr_5744 = _SafeStr_5737; } else { this._SafeStr_5744 = _SafeStr_5738; }; }; var _local_6 = (k.type == _SafeStr_2511._SafeStr_5755); this._SafeStr_5539.connection.send(new _SafeStr_3529(_local_6, k._SafeStr_5748, _arg_2)); } private function get roomEngine():_SafeStr_2213{ return (this._SafeStr_5539.roomEngine); } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (((!((k.type == WindowMouseEvent.CLICK))) || ((this._SafeStr_5322 == null)))) { return; }; switch (_arg_2.name) { case "cancel_button": case "header_button_close": this.close(); return; case "ok_button": switch (this._SafeStr_5744) { case _SafeStr_5737: this._SafeStr_5539.connection.send(new _SafeStr_3526((this._SafeStr_5743.type == _SafeStr_2511._SafeStr_5755), this._SafeStr_5745, this._SafeStr_5741)); break; case _SafeStr_5738: this._SafeStr_5539.connection.send(new _SafeStr_3528(this._SafeStr_5746, this._SafeStr_5741)); break; case _SafeStr_5739: this._SafeStr_5539._SafeStr_5756(this._SafeStr_5743._SafeStr_5757); break; }; this.close(); return; }; } private function close():void{ if (this._SafeStr_5322 == null) { return; }; this._SafeStr_5322.dispose(); this._SafeStr_5322 = null; this._SafeStr_5742 = -1; } public function imageReady(k:int, _arg_2:BitmapData):void{ if (((!((this._SafeStr_5322 == null))) && ((k == this._SafeStr_5742)))) { IBitmapWrapperWindow(this._SafeStr_5322.findChildByName("image")).bitmap = _arg_2; }; } public function _SafeStr_5602(k:int):void{ } } }//package _-07G // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2434 = "_-4gV" (String#282, DoABC#3) // _SafeStr_2509 = "_-4TN" (String#12136, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3526 = "_-3ef" (String#14990, DoABC#3) // _SafeStr_3527 = "_-2SA" (String#10148, DoABC#3) // _SafeStr_3528 = "_-vk" (String#16622, DoABC#3) // _SafeStr_3529 = "_-0jF" (String#15548, DoABC#3) // _SafeStr_3530 = "_-0e5" (String#11278, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5594 = "_-0V1" (String#2606, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5737 = "_-6Rz" (String#18464, DoABC#3) // _SafeStr_5738 = "_-3yp" (String#20092, DoABC#3) // _SafeStr_5739 = "_-23o" (String#19189, DoABC#3) // _SafeStr_5740 = "_-15k" (String#15899, DoABC#3) // _SafeStr_5741 = "_-2Rm" (String#18387, DoABC#3) // _SafeStr_5742 = "_-Pw" (String#286, DoABC#3) // _SafeStr_5743 = "_-0HM" (String#1661, DoABC#3) // _SafeStr_5744 = "_-0-h" (String#1497, DoABC#3) // _SafeStr_5745 = "_-66T" (String#22080, DoABC#3) // _SafeStr_5746 = "_-6ey" (String#9598, DoABC#3) // _SafeStr_5747 = "_-1UI" (String#35020, DoABC#3) // _SafeStr_5748 = "_-6c8" (String#7692, DoABC#3) // _SafeStr_5749 = "_-0Oo" (String#24498, DoABC#3) // _SafeStr_5750 = "_-3iH" (String#11277, DoABC#3) // _SafeStr_5751 = "_-2EA" (String#7581, DoABC#3) // _SafeStr_5752 = "_-5hQ" (String#16308, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_5754 = "_-4oV" (String#2852, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5756 = "_-6Ed" (String#38021, DoABC#3) // _SafeStr_5757 = "_-5IF" (String#4627, DoABC#3) //------------------------------------------------------------ //_-07G.PlacedObjectPurchaseData package _-07G{ import _-4Y1._SafeStr_3; import _-6bU._SafeStr_2357; import _-3Pt._SafeStr_2354; import _-3WJ._SafeStr_2399; public class PlacedObjectPurchaseData implements _SafeStr_3 { private var _SafeStr_5588:Boolean = false; private var _SafeStr_5627:int; private var _SafeStr_5758:int; private var _SafeStr_5759:int; private var _SafeStr_5760:String = ""; private var _x:int = 0; private var _y:int = 0; private var _SafeStr_5761:int = 0; private var _SafeStr_5713:int; private var _SafeStr_5762:int; private var _SafeStr_5763:_SafeStr_2357; private var _SafeStr_5743:_SafeStr_2354; private var _SafeStr_5764:String; public function PlacedObjectPurchaseData(k:int, _arg_2:int, _arg_3:int, _arg_4:String, _arg_5:int, _arg_6:int, _arg_7:int, _arg_8:_SafeStr_2399){ this._SafeStr_5759 = k; this._SafeStr_5627 = _arg_2; this._SafeStr_5758 = _arg_3; this._SafeStr_5760 = _arg_4; this._x = _arg_5; this._y = _arg_6; this._SafeStr_5761 = _arg_7; this._SafeStr_5765(_arg_8); } public function dispose():void{ this._SafeStr_5588 = true; this._SafeStr_5763 = null; this._SafeStr_5743 = null; } public function get disposed():Boolean{ return (this._SafeStr_5588); } private function _SafeStr_5765(k:_SafeStr_2399):void{ this._SafeStr_5713 = k._SafeStr_5719; this._SafeStr_5762 = k.product._SafeStr_5766; this._SafeStr_5763 = k.product._SafeStr_5767; this._SafeStr_5743 = k.product._SafeStr_5768; this._SafeStr_5764 = k.product._SafeStr_5769; } public function toString():String{ return ([this._SafeStr_5759, this._SafeStr_5627, this._SafeStr_5758, this._SafeStr_5760, this._x, this._y, this._SafeStr_5761, this._SafeStr_5713, this._SafeStr_5762].toString()); } public function get _SafeStr_5566():int{ return (this._SafeStr_5627); } public function get category():int{ return (this._SafeStr_5758); } public function get roomId():int{ return (this._SafeStr_5759); } public function get _SafeStr_5770():String{ return (this._SafeStr_5760); } public function get x():int{ return (this._x); } public function get y():int{ return (this._y); } public function get direction():int{ return (this._SafeStr_5761); } public function get _SafeStr_5719():int{ return (this._SafeStr_5713); } public function get _SafeStr_5766():int{ return (this._SafeStr_5762); } public function get extraParameter():String{ return (this._SafeStr_5764); } public function get furniData():_SafeStr_2354{ return (this._SafeStr_5743); } } }//package _-07G // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2357 = "_-k5" (String#2324, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_5566 = "_-0eD" (String#620, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5627 = "_-1SF" (String#575, DoABC#3) // _SafeStr_5713 = "_-v5" (String#1685, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5743 = "_-0HM" (String#1661, DoABC#3) // _SafeStr_5758 = "_-6Su" (String#1029, DoABC#3) // _SafeStr_5759 = "_-2xD" (String#739, DoABC#3) // _SafeStr_5760 = "_-64l" (String#8397, DoABC#3) // _SafeStr_5761 = "_-6gq" (String#1234, DoABC#3) // _SafeStr_5762 = "_-26j" (String#5553, DoABC#3) // _SafeStr_5763 = "_-5lX" (String#4813, DoABC#3) // _SafeStr_5764 = "_-6V2" (String#7515, DoABC#3) // _SafeStr_5765 = "_-0Sw" (String#33643, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5767 = "_-1rs" (String#11821, DoABC#3) // _SafeStr_5768 = "_-3Be" (String#2340, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5770 = "_-VA" (String#10664, DoABC#3) //------------------------------------------------------------ //_-07G.PurchaseConfirmationDialog package _-07G{ import _-40e._SafeStr_20; import _-5x9._SafeStr_2325; import _-3WJ.HabboCatalog; import _-5x9._SafeStr_2213; import _-Qx._SafeStr_500; import _-3UH._SafeStr_10; import _-5x9._SafeStr_2367; import _-29V.IWindowContainer; import _-6Sj.IFrameWindow; import _-En.Offer; import _-3WJ.HabboCatalogUtils; import _-5GB._SafeStr_2400; import _-px._SafeStr_2511; import _-3WJ._SafeStr_431; import _-3WJ._SafeStr_2399; import flash.display.BitmapData; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Matrix; import _-6bU._SafeStr_2357; import _-6Sj.IItemListWindow; import _-3UH.BitmapDataAsset; import _-5x9._SafeStr_2973; import _-En._SafeStr_2382; import _-40e._SafeStr_48; import _-5Vh.WindowMouseEvent; import _-6Sj.ITextWindow; import _-En.ProductImageConfiguration; import _-0bw._SafeStr_2308; import _-4zJ._SafeStr_111; import _-4zJ._SafeStr_51; import _-4zJ.AvatarAction; import _-2j-._SafeStr_3506; import _-6Sj.IButtonWindow; import _-6Sj.ICheckBoxWindow; import _-29V.IWindow; import _-5Vh.WindowEvent; import _-23h.ILocalization; import _-5Vh.WindowKeyboardEvent; import _-6Sj._SafeStr_2434; import _-5A9._SafeStr_2439; import _-3Pt._SafeStr_2354; import _-6Sj.IItemGridWindow; import _-En._SafeStr_2410; import _-4-i._SafeStr_3507; import _-4-i._SafeStr_3451; import _-3sY.HabboTracking; import flash.ui.Keyboard; import _-6Sj.ITextFieldWindow; import _-6RG._SafeStr_3278; import _-6RG._SafeStr_2330; import flash.text.TextFormat; import _-64Q._SafeStr_2464; public class PurchaseConfirmationDialog implements _SafeStr_20, _SafeStr_2325 { private const _SafeStr_5771:int = 10; private const _SafeStr_5772:uint = 4293848814; private const _SafeStr_5773:uint = 0xFFFFFFFF; private const _SafeStr_5774:uint = 4291613146; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_5775:_SafeStr_2213; private var _SafeStr_5776:_SafeStr_500; private var _assets:_SafeStr_10; private var _SafeStr_5713:int; private var _SafeStr_5777:String = ""; private var _SafeStr_5778:int; private var _SafeStr_5764:String; private var _SafeStr_5779:_SafeStr_2367 = null; private var _SafeStr_5780:Array; private var _SafeStr_5781:String; private var _SafeStr_5782:IWindowContainer; private var _SafeStr_5783:IWindowContainer; private var _SafeStr_5784:int = -1; private var _SafeStr_5785:int; private var _SafeStr_5786:Boolean = false; private var _SafeStr_5787:String = ""; private var _SafeStr_5788:int; private var _SafeStr_5789:int = 0; private var _SafeStr_5725:Array; private var _SafeStr_5727:Array; private var _SafeStr_5726:Array; private var _SafeStr_5790:int; private var _SafeStr_5791:int; private var _SafeStr_5792:int; private var _SafeStr_5322:IFrameWindow; private var _disposed:Boolean = false; public function PurchaseConfirmationDialog(k:_SafeStr_500, _arg_2:_SafeStr_10){ this._SafeStr_5725 = []; this._SafeStr_5727 = []; this._SafeStr_5726 = []; super(); this._SafeStr_5776 = k; this._assets = _arg_2; } private static function _SafeStr_5793(k:int):Boolean{ return ((k == 8)); } public function _SafeStr_5794(k:_SafeStr_431, _arg_2:_SafeStr_2213, _arg_3:_SafeStr_2399, _arg_4:int, _arg_5:String, _arg_6:int, _arg_7:_SafeStr_2367, _arg_8:Array, _arg_9:String, _arg_10:BitmapData):void{ this._SafeStr_5539 = (k as HabboCatalog); this._SafeStr_5775 = _arg_2; this._SafeStr_5713 = _arg_3._SafeStr_5719; this._SafeStr_5778 = _arg_4; this._SafeStr_5764 = _arg_5; this._SafeStr_5779 = _arg_7; this._SafeStr_5780 = _arg_8; this._SafeStr_5781 = _arg_9; this._SafeStr_5785 = _arg_6; this._SafeStr_5786 = ((this._SafeStr_5539._SafeStr_5795) ? _arg_3._SafeStr_5796 : false); if ((((_arg_3 is Offer)) && (!((_arg_3.product == null))))) { this._SafeStr_5777 = _arg_3.product._SafeStr_5797; } else { if ((((_arg_3 is _SafeStr_2400)) || (HabboCatalogUtils._SafeStr_5798(_arg_3._SafeStr_5799)))) { this._SafeStr_5777 = _SafeStr_2511._SafeStr_5800; } else { return; }; }; this._SafeStr_5801(_arg_3, _arg_10); this._SafeStr_5539._SafeStr_5802(_arg_3); } public function dispose():void{ if (this.disposed) { return; }; this._disposed = true; this._SafeStr_5539 = null; this._SafeStr_5775 = null; this._SafeStr_5713 = -1; this._SafeStr_5778 = -1; this._SafeStr_5764 = ""; this._SafeStr_5780 = null; if (this._SafeStr_5322 != null) { this._SafeStr_5322.dispose(); this._SafeStr_5322 = null; }; this._SafeStr_5782 = null; if (this._SafeStr_5783 != null) { this._SafeStr_5783.dispose(); this._SafeStr_5783 = null; }; } public function get disposed():Boolean{ return (this._disposed); } public function get _SafeStr_5797():String{ return (this._SafeStr_5777); } public function _SafeStr_5803():IBitmapWrapperWindow{ return (((this._SafeStr_5322) ? (this._SafeStr_5322.findChildByName("product_image") as IBitmapWrapperWindow) : null)); } public function _SafeStr_5804():Boolean{ return (((!((this._SafeStr_5787 == null))) && (!((this._SafeStr_5787 == ""))))); } public function imageReady(k:int, _arg_2:BitmapData):void{ if (k == this._SafeStr_5788) { this._SafeStr_5788 = 0; this._SafeStr_5805(_arg_2, true); }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_5805(k:BitmapData, _arg_2:Boolean):void{ if ((((((this._SafeStr_5322 == null)) || ((k == null)))) || (this.disposed))) { return; }; var _local_3:IBitmapWrapperWindow = (this._SafeStr_5322.findChildByName("product_image") as IBitmapWrapperWindow); if (_local_3 == null) { return; }; if (_local_3.bitmap != null) { _local_3.bitmap.dispose(); _local_3.bitmap = null; }; if (_local_3.bitmap == null) { _local_3.bitmap = new BitmapData(_local_3.width, _local_3.height, true, 0); }; var _local_4:int = ((_local_3.width - k.width) * 0.5); var _local_5:int = ((_local_3.height - k.height) * 0.5); _local_3.bitmap.draw(k, new Matrix(1, 0, 0, 1, _local_4, _local_5)); if (_arg_2) { k.dispose(); }; } private function _SafeStr_5801(k:_SafeStr_2399, _arg_2:BitmapData):void{ var _local_7:_SafeStr_2357; var _local_8:IItemListWindow; var _local_9:Boolean; var _local_10:String; var _local_11:BitmapDataAsset; var _local_12:_SafeStr_2213; var _local_13:_SafeStr_2973; var _local_14:BitmapData; var _local_15:int; var _local_16:String; var _local_17:_SafeStr_2382; var _local_18:_SafeStr_48; if (this._SafeStr_5539 == null) { return; }; if (this._SafeStr_5322 != null) { this._SafeStr_5322.dispose(); }; this._SafeStr_5322 = (this._SafeStr_5539.utils.createWindow("purchase_confirmation", 2) as IFrameWindow); if (this._SafeStr_5322 == null) { return; }; this._SafeStr_5806(k); var _local_3:IWindowContainer = (this._SafeStr_5322.findChildByName("purchase_cost_box") as IWindowContainer); this._SafeStr_5539.utils._SafeStr_5807(_local_3, k, this._SafeStr_5785); this._SafeStr_5595("buy_button", this._SafeStr_5808); this._SafeStr_5595("cancel_button", this._SafeStr_5809); this._SafeStr_5595("header_button_close", this._SafeStr_5809); this._SafeStr_5322.center(); if (this._SafeStr_5539.getBoolean("disclaimer.credit_spending.enabled")) { this._SafeStr_5322.findChildByName("spending_disclaimer").addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5810); this._SafeStr_5322.findChildByName("spending_disclaimer").addEventListener(WindowMouseEvent.DOUBLE_CLICK, this._SafeStr_5810); this._SafeStr_5811(false); } else { this._SafeStr_5322.findChildByName("disclaimer").dispose(); this._SafeStr_5811(true); }; var _local_4:ITextWindow = (this._SafeStr_5322.findChildByName("product_name") as ITextWindow); if (_local_4 != null) { _local_7 = this._SafeStr_5539.getProductData(k._SafeStr_5799); _local_4.text = (((_local_7 == null)) ? k._SafeStr_5799 : _local_7.name); }; var _local_5:ITextWindow = (this._SafeStr_5322.findChildByName("quantity") as ITextWindow); if (_local_5 != null) { if (((this._SafeStr_5539._SafeStr_5812) && ((this._SafeStr_5785 > 1)))) { _local_5.text = ("X " + this._SafeStr_5785); } else { _local_8 = IItemListWindow(this._SafeStr_5322.findChildByName("properties_itemlist")); if (_local_8 != null) { _local_8.removeListItem(_local_5); }; }; }; var _local_6:IBitmapWrapperWindow = (this._SafeStr_5322.findChildByName("product_image") as IBitmapWrapperWindow); if (_local_6 != null) { _local_9 = false; if (ProductImageConfiguration._SafeStr_5813(k._SafeStr_5799)) { _local_10 = ProductImageConfiguration._SafeStr_5814[k._SafeStr_5799]; _local_11 = (this._assets.getAssetByName(_local_10) as BitmapDataAsset); if (_local_11) { this._SafeStr_5805((_local_11.content as BitmapData), false); _local_9 = true; }; }; if (((!(_local_9)) && (k.product))) { _local_12 = this._SafeStr_5539.roomEngine; _local_15 = 0; _local_16 = ""; if ((k is Offer)) { _local_17 = k.product; if (_local_17 != null) { _local_15 = _local_17._SafeStr_5766; _local_16 = _local_17._SafeStr_5769; }; }; if (_arg_2 == null) { switch (this._SafeStr_5797) { case _SafeStr_2511._SafeStr_5754: _local_13 = _local_12.getFurnitureImage(_local_15, new _SafeStr_2308(90, 0, 0), 64, this, 0, _local_16, -1, -1, this._SafeStr_5779); break; case _SafeStr_2511._SafeStr_5755: _local_13 = _local_12.getWallItemImage(_local_15, new _SafeStr_2308(90, 0, 0), 64, this, 0, _local_16); break; case _SafeStr_2511._SafeStr_5815: _local_14 = this._SafeStr_5539.getPixelEffectIcon(_local_15); break; case _SafeStr_2511._SafeStr_5800: _local_14 = this._SafeStr_5539.getSubscriptionProductIcon(_local_15); break; case _SafeStr_2511._SafeStr_5821: _local_18 = this._SafeStr_5539.avatarRenderManager.createAvatarImage(_local_16, _SafeStr_111._SafeStr_5816, null, this); _local_18.setDirection(_SafeStr_51._SafeStr_5817, 3); _local_18.appendAction(AvatarAction._SafeStr_5818); _local_18.appendAction(AvatarAction._SafeStr_5819, AvatarAction._SafeStr_5820); _local_14 = _local_18.getImage(_SafeStr_51._SafeStr_5817, true); _local_18.dispose(); break; }; if (_local_13 != null) { _local_14 = _local_13.data; this._SafeStr_5788 = _local_13.id; }; } else { _local_14 = _arg_2; }; this._SafeStr_5805(_local_14, true); _SafeStr_3506._SafeStr_5822(k, (this._SafeStr_5322.findChildByName("buy_button") as IButtonWindow)); }; }; } private function _SafeStr_5810(k:WindowMouseEvent):void{ var _local_2:ICheckBoxWindow = (k.target as ICheckBoxWindow); if (_local_2 != null) { this._SafeStr_5811(_local_2._SafeStr_5325); }; } private function _SafeStr_5811(k:Boolean):void{ if (this._SafeStr_5322 == null) { return; }; var _local_2:IWindow = this._SafeStr_5322.findChildByName("buy_button"); if (_local_2 == null) { return; }; if (k) { _local_2.enable(); } else { _local_2.disable(); }; } private function _SafeStr_5806(k:_SafeStr_2399):void{ if (k == null) { return; }; var _local_2:_SafeStr_2357 = this._SafeStr_5539.getProductData(k._SafeStr_5799); var _local_3:String = (((_local_2)==null) ? "" : _local_2.name); this._SafeStr_5539.windowManager.registerLocalizationParameter("catalog.purchase.confirmation.dialog.costs", "offer_name", _local_3); } private function _SafeStr_5595(k:String, _arg_2:Function):void{ var _local_3:IWindow = this._SafeStr_5322.findChildByName(k); if (_local_3 != null) { _local_3.addEventListener(WindowMouseEvent.CLICK, _arg_2); }; } public function getAvatarFaceBitmap(k:String):BitmapData{ if ((((this._SafeStr_5539 == null)) || ((this._SafeStr_5539.avatarRenderManager == null)))) { return (null); }; var _local_2:BitmapData; var _local_3:_SafeStr_48 = this._SafeStr_5539.avatarRenderManager.createAvatarImage(k, _SafeStr_111._SafeStr_5816, null, this); if (_local_3 != null) { _local_2 = _local_3._SafeStr_5823(_SafeStr_51._SafeStr_5824); _local_3.dispose(); }; return (_local_2); } public function _SafeStr_5825(k:String):void{ if ((((((((this._SafeStr_5539 == null)) || ((this._SafeStr_5322 == null)))) || (this._SafeStr_5322.disposed))) || (this.disposed))) { return; }; if (k == this._SafeStr_5539.sessionDataManager.figure) { this._SafeStr_5826(); }; var _local_2:_SafeStr_48 = this._SafeStr_5539.avatarRenderManager.createAvatarImage(k, _SafeStr_111._SafeStr_5816, null, this); _local_2.setDirection(_SafeStr_51._SafeStr_5817, 3); _local_2.appendAction(AvatarAction._SafeStr_5818); _local_2.appendAction(AvatarAction._SafeStr_5819, AvatarAction._SafeStr_5820); var _local_3:BitmapData = _local_2.getImage(_SafeStr_51._SafeStr_5817, true); _local_2.dispose(); this._SafeStr_5805(_local_3, true); } private function _SafeStr_5827(k:Boolean):void{ var _local_2:IBitmapWrapperWindow = (this._SafeStr_5322.findChildByName("avatar_image") as IBitmapWrapperWindow); if (_local_2 != null) { if (k) { this._SafeStr_5826(); } else { this._SafeStr_5828(); }; }; var _local_3:ITextWindow = (this._SafeStr_5322.findChildByName("message_from") as ITextWindow); if (_local_3 != null) { _local_3.visible = k; }; } private function _SafeStr_5826():void{ var k:BitmapData = this.getAvatarFaceBitmap(this._SafeStr_5539.sessionDataManager.figure); if (k != null) { this._SafeStr_5829(k); }; } private function _SafeStr_5828():void{ var _local_2:BitmapData; var k:BitmapDataAsset = (this._assets.getAssetByName("gift_incognito") as BitmapDataAsset); if (k != null) { _local_2 = (k.content as BitmapData); if (_local_2 != null) { this._SafeStr_5829(_local_2.clone()); }; }; } private function _SafeStr_5829(k:BitmapData):void{ if (k == null) { return; }; var _local_2:IBitmapWrapperWindow = (this._SafeStr_5322.findChildByName("avatar_image") as IBitmapWrapperWindow); if (_local_2 == null) { return; }; _local_2.bitmap = k; _local_2.width = k.width; _local_2.height = k.height; } private function _SafeStr_5830(k:WindowEvent):void{ this._SafeStr_5827(true); this._SafeStr_5826(); } private function _SafeStr_5831(k:WindowEvent):void{ this._SafeStr_5827(false); } private function _SafeStr_5832():Boolean{ var k:ICheckBoxWindow; if (this._SafeStr_5833()) { if (this._SafeStr_5322 != null) { k = (this._SafeStr_5322.findChildByName("show_face_checkbox") as ICheckBoxWindow); if (k != null) { return (k._SafeStr_5325); }; }; return (false); }; return (true); } private function _SafeStr_5834():void{ var _local_9:IWindow; if ((((this._SafeStr_5322 == null)) || (this._SafeStr_5322.disposed))) { return; }; var k:Boolean = this._SafeStr_5835(); var _local_2:String = ""; var _local_3:String = ""; var _local_4:ILocalization; var _local_5:ITextWindow = (this._SafeStr_5322.findChildByName("pick_box_title") as ITextWindow); if (_local_5 != null) { _local_3 = ((k) ? "catalog.gift_wrapping_new.box.default" : ("catalog.gift_wrapping_new.box." + this._SafeStr_5726[this._SafeStr_5791])); _local_4 = this._SafeStr_5776._SafeStr_5836(_local_3); _local_2 = _local_3; if (_local_4 != null) { _local_2 = _local_4.value; }; _local_5.text = _local_2; }; var _local_6:ITextWindow = (this._SafeStr_5322.findChildByName("pick_box_price_title") as ITextWindow); if (_local_6 != null) { _local_3 = ((k) ? "catalog.gift_wrapping_new.freeprice" : "catalog.gift_wrapping_new.price"); _local_4 = this._SafeStr_5776._SafeStr_5836(_local_3); _local_2 = _local_3; if (_local_4 != null) { _local_2 = _local_4.value; }; _local_6.text = _local_2; }; var _local_7:IItemListWindow = (this._SafeStr_5322.findChildByName("price_box_container") as IItemListWindow); if (_local_7 != null) { _local_9 = _local_7.getListItemByName("small_coin"); if (_local_9 != null) { _local_9.visible = !(k); _local_7.arrangeListItems(); }; }; var _local_8:ITextWindow = (this._SafeStr_5322.findChildByName("pick_ribbon_title") as ITextWindow); if (_local_8 != null) { _local_3 = ("catalog.gift_wrapping_new.ribbon." + this._SafeStr_5790); _local_4 = this._SafeStr_5776._SafeStr_5836(_local_3); _local_2 = _local_3; if (_local_4 != null) { _local_2 = _local_4.value; }; _local_8.text = _local_2; }; } public function _SafeStr_5837():void{ var _local_8:String; var _local_9:String; var _local_10:String; var _local_11:Number; if (this._SafeStr_5322 != null) { this._SafeStr_5322.dispose(); }; var k:_SafeStr_2472 = this._SafeStr_5539._SafeStr_5838; this._SafeStr_5322 = (this._SafeStr_5539.utils.createWindow("gift_wrapping") as IFrameWindow); if (this._SafeStr_5322 == null) { return; }; this._SafeStr_5322.center(); this._SafeStr_5595("give_gift_button", this._SafeStr_5839); this._SafeStr_5595("cancel_link_region", this._SafeStr_5840); this._SafeStr_5595("header_button_close", this._SafeStr_5840); var _local_2:IWindow = this._SafeStr_5322.findChildByName("name_input"); if (_local_2 != null) { if (this._SafeStr_5781 != null) { this._SafeStr_5841(this._SafeStr_5781); } else { this._SafeStr_5842(); }; this._SafeStr_5843(); _local_2.addEventListener(WindowEvent._SafeStr_5844, this._SafeStr_5845); _local_2.addEventListener(WindowMouseEvent.DOWN, this._SafeStr_5846); _local_2.addEventListener(WindowKeyboardEvent._SafeStr_5383, this._SafeStr_5847); _local_2.addEventListener(WindowEvent._SafeStr_5848, this._SafeStr_5849); _local_2.addEventListener(WindowEvent._SafeStr_5850, this._SafeStr_5851); }; var _local_3:_SafeStr_2434 = (this._SafeStr_5322.findChildByName("gift_card") as _SafeStr_2434); if (_local_3) { _local_8 = this._SafeStr_5539.getProperty("catalog.gift_wrapping_new.gift_card"); if (_local_8 != "") { _local_3.assetUri = (("${image.library.url}Giftcards/" + _local_8) + ".png"); }; }; var _local_4:ICheckBoxWindow = (this._SafeStr_5322.findChildByName("show_face_checkbox") as ICheckBoxWindow); if (_local_4) { if (this._SafeStr_5833()) { _local_4.visible = true; _local_4.select(); _local_4.addEventListener(WindowEvent._SafeStr_5852, this._SafeStr_5830); _local_4.addEventListener(WindowEvent._SafeStr_5853, this._SafeStr_5831); } else { _local_4.visible = false; }; }; var _local_5:IWindow = this._SafeStr_5322.findChildByName("show_face_checkbox_title"); if (((!((_local_5 == null))) && (!(this._SafeStr_5833())))) { _local_5.visible = false; }; this._SafeStr_5826(); var _local_6:IWindow = this._SafeStr_5322.findChildByName("message_input"); if (_local_6 != null) { this._SafeStr_5854(); _local_6.addEventListener(WindowEvent._SafeStr_5844, this._SafeStr_5855); _local_6.addEventListener(WindowEvent._SafeStr_5848, this._SafeStr_5856); _local_6.addEventListener(WindowEvent._SafeStr_5850, this._SafeStr_5857); }; var _local_7:IWindow = this._SafeStr_5322.findChildByName("message_from"); if (_local_7 != null) { _local_9 = this._SafeStr_5539.sessionDataManager.userName; _local_10 = "catalog.gift_wrapping_new.message_from"; this._SafeStr_5776.registerParameter(_local_10, "name", _local_9); _local_7.caption = this._SafeStr_5776.getLocalization(_local_10, _local_9); }; this._SafeStr_5595("ribbon_prev", this._SafeStr_5858); this._SafeStr_5595("ribbon_next", this._SafeStr_5859); this._SafeStr_5595("box_prev", this._SafeStr_5860); this._SafeStr_5595("box_next", this._SafeStr_5861); this._SafeStr_5776.registerParameter("catalog.gift_wrapping_new.price", "price", k.price.toString()); if (k._SafeStr_5735.length > 0) { _local_11 = Math.floor((Math.random() * k._SafeStr_5735.length)); this._SafeStr_5789 = k._SafeStr_5735[_local_11]; }; this._SafeStr_5725 = k._SafeStr_5732; this._SafeStr_5726 = this._SafeStr_5726.concat(k._SafeStr_5733); this._SafeStr_5726.push(this._SafeStr_5789); this._SafeStr_5727 = k._SafeStr_5734; this._SafeStr_5792 = this._SafeStr_5725[0]; this._SafeStr_5790 = this._SafeStr_5727[0]; this._SafeStr_5791 = this._SafeStr_5539.getInteger("catalog.purchase.gift_wrapping.default_box_index", 0); if ((((this._SafeStr_5791 < 0)) || ((this._SafeStr_5791 > (this._SafeStr_5726.length - 1))))) { this._SafeStr_5791 = 0; }; this._SafeStr_5862(); this._SafeStr_5863(); this._SafeStr_5864(); } private function _SafeStr_5833():Boolean{ return (this._SafeStr_5539.sessionDataManager.hasSecurity(_SafeStr_2439._SafeStr_5865)); } private function _SafeStr_5835():Boolean{ return ((this._SafeStr_5726[this._SafeStr_5791] == this._SafeStr_5789)); } private function _SafeStr_5864():void{ if (this._SafeStr_5790 < 0) { this._SafeStr_5790 = (this._SafeStr_5727.length - 1); }; if (this._SafeStr_5790 > (this._SafeStr_5727.length - 1)) { this._SafeStr_5790 = 0; }; if (this._SafeStr_5791 < 0) { this._SafeStr_5791 = (this._SafeStr_5726.length - 1); }; if (this._SafeStr_5791 > (this._SafeStr_5726.length - 1)) { this._SafeStr_5791 = 0; }; var k:int = this._SafeStr_5726[this._SafeStr_5791]; if (_SafeStr_5793(k)) { this._SafeStr_5790 = 10; if (this._SafeStr_5790 > (this._SafeStr_5727.length - 1)) { this._SafeStr_5790 = 0; }; }; var _local_2:int = ((k * 1000) + this._SafeStr_5727[this._SafeStr_5790]); if (this._SafeStr_5322 == null) { return; }; if (this._SafeStr_5775 == null) { return; }; var _local_3:String = _local_2.toString(); var _local_4:int = this._SafeStr_5792; var _local_5:Boolean = this._SafeStr_5835(); if (_local_5) { this._SafeStr_5866(false); _local_4 = this._SafeStr_5789; _local_3 = ""; } else { if (_SafeStr_5793(k)) { this._SafeStr_5866(false); } else { this._SafeStr_5866(true); if ((((k >= 3)) && ((k <= 6)))) { this._SafeStr_5867(false); }; }; }; var _local_6:_SafeStr_2973 = this._SafeStr_5775.getFurnitureImage(_local_4, new _SafeStr_2308(180), 64, this, 0, _local_3); if (_local_6 == null) { return; }; this._SafeStr_5788 = _local_6.id; this._SafeStr_5805(_local_6.data, true); this._SafeStr_5868(false); this._SafeStr_5834(); } private function _SafeStr_5862():void{ var _local_3:int; var _local_4:_SafeStr_2354; var _local_5:IWindowContainer; if (this._SafeStr_5322 == null) { return; }; var k:IItemGridWindow = (this._SafeStr_5322.findChildByName("color_grid") as IItemGridWindow); k.destroyGridItems(); var _local_2:IWindowContainer = (this._SafeStr_5539.utils.createWindow("gift_palette_item") as IWindowContainer); for each (_local_3 in this._SafeStr_5725) { _local_4 = this._SafeStr_5539._SafeStr_5869(_local_3, _SafeStr_2511._SafeStr_5754); _local_5 = (_local_2.clone() as IWindowContainer); if (((!(_local_4)) || (!(_local_5)))) { } else { _local_5.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5870); _local_5.findChildByName("color").color = _local_4._SafeStr_5871[0]; _local_5.id = _local_3; k._SafeStr_5382(_local_5); }; }; } private function _SafeStr_5872():void{ var k:IWindow = this._SafeStr_5322.findChildByName("name_input"); if (k == null) { return; }; var _local_2:String = k.caption; var _local_3:IWindow = this._SafeStr_5322.findChildByName("message_input"); var _local_4:String = (((_local_3)==null) ? "" : _local_3.caption); var _local_5:Boolean = this._SafeStr_5835(); var _local_6:int = ((_local_5) ? this._SafeStr_5789 : this._SafeStr_5792); var _local_7:int = ((_local_5) ? 0 : this._SafeStr_5726[this._SafeStr_5791]); var _local_8:int = ((_local_5) ? 0 : this._SafeStr_5727[this._SafeStr_5790]); var _local_9:Boolean = this._SafeStr_5832(); this._SafeStr_5539._SafeStr_5873(this._SafeStr_5778, this._SafeStr_5713, this._SafeStr_5764, _local_2, _local_4, _local_6, _local_7, _local_8, _local_9); } private function _SafeStr_5874(k:String):void{ var _local_2:IWindow = this._SafeStr_5322.findChildByName(k); if (_local_2 != null) { _local_2.disable(); }; } private function _SafeStr_5875(k:String):void{ var _local_2:IWindow = this._SafeStr_5322.findChildByName(k); if (_local_2 != null) { _local_2.enable(); }; } private function _SafeStr_5808(k:WindowEvent):void{ this._SafeStr_5874("buy_button"); this._SafeStr_5874("cancel_button"); this._SafeStr_5874("publish_check"); this._SafeStr_5539._SafeStr_5876(this._SafeStr_5778, this._SafeStr_5713, this._SafeStr_5764, this._SafeStr_5785); var _local_2:_SafeStr_2410 = this._SafeStr_5539._SafeStr_5877; if (_local_2 != null) { _local_2.dispatchWidgetEvent(new _SafeStr_3507(_SafeStr_3451.PURCHASE)); }; } private function _SafeStr_5878(k:WindowEvent):void{ this._SafeStr_5837(); HabboTracking.getInstance().trackEventLog("Catalog", "clickConfirm", "client.buy_as_gift.clicked"); } private function _SafeStr_5809(k:WindowEvent):void{ this._SafeStr_5539._SafeStr_5879(); this.dispose(); } private function _SafeStr_5839(k:WindowEvent):void{ this._SafeStr_5872(); this._SafeStr_5880(false); this._SafeStr_5539._SafeStr_5881 = null; this._SafeStr_5539._SafeStr_5879(); } private function _SafeStr_5840(k:WindowEvent):void{ this._SafeStr_5539._SafeStr_5879(); this.dispose(); } private function _SafeStr_5858(k:WindowEvent):void{ this._SafeStr_5790--; this._SafeStr_5864(); } private function _SafeStr_5859(k:WindowEvent):void{ this._SafeStr_5790++; this._SafeStr_5864(); } private function _SafeStr_5860(k:WindowEvent):void{ this._SafeStr_5791--; this._SafeStr_5864(); } private function _SafeStr_5861(k:WindowEvent):void{ this._SafeStr_5791++; this._SafeStr_5864(); } private function _SafeStr_5845(k:WindowEvent):void{ var _local_5:String; var _local_2:IWindow = k.target; if (_local_2 == null) { return; }; this._SafeStr_5843(); if (this._SafeStr_5787 == _local_2.caption) { return; }; var _local_3:String = _local_2.caption.toLowerCase(); var _local_4:Array = []; for each (_local_5 in this._SafeStr_5780) { if (_local_5.toLowerCase().search(_local_3) != -1) { _local_4.push(_local_5); }; if (_local_4.length >= this._SafeStr_5771) { break; }; }; this._SafeStr_5787 = _local_2.caption; this._SafeStr_5882(_local_4); } private function _SafeStr_5846(k:WindowEvent):void{ var _local_2:IWindow = k.target; if (_local_2 == null) { return; }; this._SafeStr_5868(false); } private function _SafeStr_5847(k:WindowEvent):void{ var _local_4:Boolean; var _local_2:WindowKeyboardEvent = (k as WindowKeyboardEvent); var _local_3:IWindow = k.target; switch (_local_2.keyCode) { case Keyboard.UP: this._SafeStr_5883((this._SafeStr_5784 - 1)); return; case Keyboard.DOWN: this._SafeStr_5883((this._SafeStr_5784 + 1)); if (_local_3 != null) { if (_local_3.caption.length == 0) { if ((((this._SafeStr_5782 == null)) || (!(this._SafeStr_5782.visible)))) { _local_4 = this._SafeStr_5884(); if (_local_4) { this._SafeStr_5883(0); }; }; }; }; return; case Keyboard.ENTER: this._SafeStr_5885(); return; case Keyboard.TAB: this._SafeStr_5886(); return; }; } private function _SafeStr_5884():Boolean{ var k:Array; var _local_2:String; if (((!((this._SafeStr_5780 == null))) && ((this._SafeStr_5780.length > 0)))) { k = []; for each (_local_2 in this._SafeStr_5780) { k.push(_local_2); if (k.length >= this._SafeStr_5771) { break; }; }; this._SafeStr_5882(k); this._SafeStr_5868(true); return (true); }; return (false); } private function _SafeStr_5842():void{ if (this._SafeStr_5322 == null) { return; }; var k:ITextFieldWindow = (this._SafeStr_5322.findChildByName("name_input") as ITextFieldWindow); if (k == null) { return; }; k.visible = true; k.focus(); } private function _SafeStr_5886():void{ if (this._SafeStr_5322 == null) { return; }; var k:ITextFieldWindow = (this._SafeStr_5322.findChildByName("message_input") as ITextFieldWindow); if (k == null) { return; }; k.visible = true; k.focus(); } private function _SafeStr_5885():void{ if ((((this._SafeStr_5782 == null)) || (!(this._SafeStr_5782.visible)))) { return; }; var k:IItemListWindow = (this._SafeStr_5782.findChildByName("suggestion_list") as IItemListWindow); if (k == null) { return; }; var _local_2:IWindowContainer = (k.getListItemAt(this._SafeStr_5784) as IWindowContainer); if (_local_2 == null) { return; }; var _local_3:IWindow = _local_2.findChildByName("name_text"); if (_local_3 == null) { return; }; this._SafeStr_5841(_local_3.caption); this._SafeStr_5868(false); } private function _SafeStr_5868(k:Boolean):void{ if (this._SafeStr_5782 == null) { return; }; this._SafeStr_5782.visible = k; if (!k) { this._SafeStr_5887(true); }; } private function _SafeStr_5887(k:Boolean):void{ var _local_2:IWindow = this._SafeStr_5322.findChildByName("message_input"); if (_local_2 != null) { _local_2.visible = k; }; } private function _SafeStr_5855(k:WindowEvent):void{ var _local_2:IWindow = k.target; if (_local_2 == null) { return; }; this._SafeStr_5854(); } private function _SafeStr_5849(k:WindowEvent):void{ var _local_2:IWindow = k.target; if (_local_2 == null) { return; }; this._SafeStr_5843(); } private function _SafeStr_5851(k:WindowEvent):void{ var _local_2:IWindow = k.target; if (_local_2 == null) { return; }; this._SafeStr_5843(); } private function _SafeStr_5856(k:WindowEvent):void{ this._SafeStr_5854(); this._SafeStr_5868(false); } private function _SafeStr_5857(k:WindowEvent):void{ this._SafeStr_5854(); } private function _SafeStr_5843():void{ if (this._SafeStr_5322 == null) { return; }; var k:IWindow = this._SafeStr_5322.findChildByName("name_input"); if (k == null) { return; }; var _local_2:String = k.caption; if ((((_local_2 == null)) || ((_local_2.length == 0)))) { this._SafeStr_5888(true, "name_input_hint", "catalog.gift_wrapping_new.name_hint"); } else { this._SafeStr_5888(false, "name_input_hint", "catalog.gift_wrapping_new.name_hint"); }; } private function _SafeStr_5854():void{ if (this._SafeStr_5322 == null) { return; }; var k:IWindow = this._SafeStr_5322.findChildByName("message_input"); if (k == null) { return; }; var _local_2:String = k.caption; if ((((_local_2 == null)) || ((_local_2.length == 0)))) { this._SafeStr_5888(true, "message_input_hint", "catalog.gift_wrapping_new.message_hint"); } else { this._SafeStr_5888(false, "message_input_hint", "catalog.gift_wrapping_new.message_hint"); }; } private function _SafeStr_5888(k:Boolean, _arg_2:String, _arg_3:String):void{ var _local_4:ITextWindow = (this._SafeStr_5322.findChildByName(_arg_2) as ITextWindow); if (_local_4 != null) { _local_4.text = this._SafeStr_5776.getLocalization(_arg_3); _local_4.visible = k; }; } private function _SafeStr_5889(k:Boolean):void{ if (this._SafeStr_5322 == null) { return; }; var _local_2:IWindow = this._SafeStr_5322.findChildByName("ribbon_prev"); this._SafeStr_5890(_local_2, k); var _local_3:IWindow = this._SafeStr_5322.findChildByName("ribbon_next"); this._SafeStr_5890(_local_3, k); var _local_4:IWindow = this._SafeStr_5322.findChildByName("pick_ribbon_title"); this._SafeStr_5890(_local_4, k); } private function _SafeStr_5866(k:Boolean):void{ this._SafeStr_5867(k); this._SafeStr_5889(k); } private function _SafeStr_5867(k:Boolean):void{ if (this._SafeStr_5322 == null) { return; }; var _local_2:IWindow = this._SafeStr_5322.findChildByName("box_color_title"); this._SafeStr_5890(_local_2, k); var _local_3:IWindowContainer = (this._SafeStr_5322.findChildByName("color_picker_container") as IWindowContainer); if (_local_3 != null) { this._SafeStr_5890(_local_3, k); }; } private function _SafeStr_5890(k:IWindow, _arg_2:Boolean):void{ var _local_3:_SafeStr_3278; var _local_4:int; var _local_5:int; var _local_6:IWindow; this._SafeStr_5891(k, _arg_2); if ((k is _SafeStr_2330)) { _local_3 = _SafeStr_2330(k).iterator; _local_4 = _local_3.length; if (_local_4 > 0) { _local_5 = 0; while (_local_5 < _local_4) { _local_6 = (_local_3[_local_5] as IWindow); if (_local_6 != null) { this._SafeStr_5891(_local_6, _arg_2); if ((_local_6 is _SafeStr_2330)) { this._SafeStr_5890(_local_6, _arg_2); }; }; _local_5++; }; }; }; } private function _SafeStr_5891(k:IWindow, _arg_2:Boolean):void{ if (_arg_2) { k.blend = 1; k.enable(); } else { k.blend = 0.5; k.disable(); }; } private function _SafeStr_5882(k:Array):void{ var _local_4:String; var _local_5:IWindowContainer; var _local_6:ITextWindow; var _local_7:int; var _local_8:int; var _local_9:TextFormat; var _local_10:int; if (this._SafeStr_5782 == null) { this._SafeStr_5782 = (this._SafeStr_5322.findChildByName("suggestion_container") as IWindowContainer); }; if (this._SafeStr_5783 == null) { this._SafeStr_5783 = (this._SafeStr_5539.utils.createWindow("suggestion_list_item_new") as IWindowContainer); }; if ((((this._SafeStr_5782 == null)) || ((this._SafeStr_5783 == null)))) { return; }; var _local_2:IItemListWindow = (this._SafeStr_5782.findChildByName("suggestion_list") as IItemListWindow); if (_local_2 == null) { return; }; _local_2._SafeStr_5892(); if (k.length == 0) { this._SafeStr_5868(false); return; }; this._SafeStr_5868(true); var _local_3:int; for each (_local_4 in k) { _local_5 = (this._SafeStr_5783.clone() as IWindowContainer); if (_local_5 != null) { _local_5.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5893); _local_5.addEventListener(WindowMouseEvent._SafeStr_5575, this._SafeStr_5894); _local_6 = (_local_5.findChildByName("name_text") as ITextWindow); if (_local_6 != null) { _local_6.text = _local_4; if (this._SafeStr_5787 != null) { _local_7 = this._SafeStr_5787.length; if (_local_7 > 0) { _local_8 = _local_4.toLowerCase().search(this._SafeStr_5787.toLowerCase()); if (_local_8 != -1) { _local_9 = _local_6.getTextFormat(); _local_9.bold = true; _local_10 = (_local_8 + _local_7); if (_local_10 > _local_4.length) { _local_10 = _local_4.length; }; _local_6.setTextFormat(_local_9, _local_8, _local_10); }; }; }; _local_2.addListItem(_local_5); }; _local_5.color = this._SafeStr_5895(_local_3); _local_3++; }; }; this._SafeStr_5887((k.length < 2)); this._SafeStr_5883(0); } private function _SafeStr_5893(k:WindowEvent):void{ var _local_2:IWindowContainer = (k.target as IWindowContainer); if (_local_2 == null) { return; }; var _local_3:ITextWindow = (_local_2.findChildByName("name_text") as ITextWindow); if (_local_3 == null) { return; }; this._SafeStr_5841(_local_3.text); this._SafeStr_5868(false); } private function _SafeStr_5894(k:WindowEvent):void{ var _local_2:IWindowContainer = (k.target as IWindowContainer); if (_local_2 == null) { return; }; var _local_3:IItemListWindow = (this._SafeStr_5782.findChildByName("suggestion_list") as IItemListWindow); if (_local_3 == null) { return; }; this._SafeStr_5883(_local_3._SafeStr_5896(_local_2)); } private function _SafeStr_5883(k:int):void{ var _local_3:IWindowContainer; if (this._SafeStr_5782 == null) { return; }; var _local_2:IItemListWindow = (this._SafeStr_5782.findChildByName("suggestion_list") as IItemListWindow); if (_local_2 == null) { return; }; _local_3 = (_local_2.getListItemAt(this._SafeStr_5784) as IWindowContainer); if (_local_3 != null) { _local_3.color = this._SafeStr_5895(this._SafeStr_5784); }; this._SafeStr_5784 = k; if (this._SafeStr_5784 < 0) { this._SafeStr_5784 = (_local_2.numListItems - 1); }; if (this._SafeStr_5784 >= _local_2.numListItems) { this._SafeStr_5784 = 0; }; _local_3 = (_local_2.getListItemAt(this._SafeStr_5784) as IWindowContainer); if (_local_3 != null) { _local_3.color = this._SafeStr_5774; }; } private function _SafeStr_5895(k:int):uint{ return (((((k % 2) == 0)) ? this._SafeStr_5772 : this._SafeStr_5773)); } private function _SafeStr_5841(k:String):void{ if (this._SafeStr_5322 == null) { return; }; var _local_2:IWindow = this._SafeStr_5322.findChildByName("name_input"); if (_local_2 == null) { return; }; _local_2.caption = k; this._SafeStr_5843(); this._SafeStr_5886(); } private function _SafeStr_5870(k:WindowEvent):void{ this._SafeStr_5792 = k.target.id; this._SafeStr_5863(); this._SafeStr_5864(); } private function _SafeStr_5863():void{ var _local_2:IWindowContainer; var _local_3:IWindow; if (this._SafeStr_5322 == null) { return; }; var k:IItemGridWindow = (this._SafeStr_5322.findChildByName("color_grid") as IItemGridWindow); if (k == null) { return; }; var _local_4:int; while (_local_4 < k.numGridItems) { _local_2 = (k._SafeStr_5897(_local_4) as IWindowContainer); if (_local_2 == null) { } else { _local_3 = _local_2.findChildByName("selection"); if (_local_3 == null) { } else { _local_3.visible = (_local_2.id == this._SafeStr_5792); }; }; _local_4++; }; } public function _SafeStr_5898():void{ if (this.disposed) { return; }; this._SafeStr_5880(true); if (((!(this._SafeStr_5539)) || (!(this._SafeStr_5539.windowManager)))) { return; }; this._SafeStr_5539.windowManager.alert(("$" + "{catalog.gift_wrapping.receiver_not_found.title}"), ("$" + "{catalog.gift_wrapping.receiver_not_found.info}"), 0, this._SafeStr_5899); } private function _SafeStr_5899(k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); this._SafeStr_5880(true); } private function _SafeStr_5880(k:Boolean):void{ if (this._SafeStr_5322 == null) { return; }; var _local_2:IButtonWindow = (this._SafeStr_5322.findChildByName("give_gift_button") as IButtonWindow); if (_local_2 != null) { if (k) { _local_2.enable(); } else { _local_2.disable(); }; }; } public function _SafeStr_5900():void{ if (this.disposed) { return; }; if (this._SafeStr_5322 == null) { return; }; this._SafeStr_5880(true); this._SafeStr_5875("header_button_close"); var k:ICheckBoxWindow = (this._SafeStr_5322.findChildByName("use_free_checkbox") as ICheckBoxWindow); if (k != null) { k.select(); }; } public function _SafeStr_5901():void{ var k:IWindow = this._SafeStr_5322.findChildByName("buy_button"); k.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_5808); k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_5878); k.caption = "${catalog.purchase_confirmation.gift}"; this._SafeStr_5322.caption = "${catalog.purchase_confirmation.gift.title}"; } } }//package _-07G // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_111 = "_-4QR" (String#2358, DoABC#3) // _SafeStr_20 = "_-3ho" (String#3317, DoABC#3) // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2330 = "_-42P" (String#3528, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2357 = "_-k5" (String#2324, DoABC#3) // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2400 = "_-Ab" (String#2832, DoABC#3) // _SafeStr_2410 = "_-04C" (String#2796, DoABC#3) // _SafeStr_2434 = "_-4gV" (String#282, DoABC#3) // _SafeStr_2439 = "_-6I8" (String#2698, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2472 = "_-6NV" (String#9894, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3278 = "_-6gz" (String#1595, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3506 = "_-0uq" (String#15080, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_431 = "_-5AK" (String#1130, DoABC#3) // _SafeStr_48 = "_-5ao" (String#1431, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_51 = "_-Jc" (String#1722, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5325 = "_-2iN" (String#998, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5383 = "_-1ON" (String#3499, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5595 = "_-31e" (String#1556, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5713 = "_-v5" (String#1685, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5725 = "_-2Ai" (String#6922, DoABC#3) // _SafeStr_5726 = "_-620" (String#4622, DoABC#3) // _SafeStr_5727 = "_-3t0" (String#5164, DoABC#3) // _SafeStr_5732 = "_-ID" (String#25327, DoABC#3) // _SafeStr_5733 = "_-1wS" (String#22289, DoABC#3) // _SafeStr_5734 = "_-5kC" (String#23700, DoABC#3) // _SafeStr_5735 = "_-JF" (String#16685, DoABC#3) // _SafeStr_5754 = "_-4oV" (String#2852, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5764 = "_-6V2" (String#7515, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5771 = "_-0dr" (String#27239, DoABC#3) // _SafeStr_5772 = "_-2zp" (String#17248, DoABC#3) // _SafeStr_5773 = "_-04S" (String#20624, DoABC#3) // _SafeStr_5774 = "_-4GU" (String#35687, DoABC#3) // _SafeStr_5775 = "_-ld" (String#210, DoABC#3) // _SafeStr_5776 = "_-Ox" (String#525, DoABC#3) // _SafeStr_5777 = "_-2Ga" (String#3192, DoABC#3) // _SafeStr_5778 = "_-IU" (String#2389, DoABC#3) // _SafeStr_5779 = "_-67F" (String#2172, DoABC#3) // _SafeStr_5780 = "_-3ZD" (String#3347, DoABC#3) // _SafeStr_5781 = "_-3KC" (String#937, DoABC#3) // _SafeStr_5782 = "_-4eY" (String#5183, DoABC#3) // _SafeStr_5783 = "_-TT" (String#9924, DoABC#3) // _SafeStr_5784 = "_-0T8" (String#6684, DoABC#3) // _SafeStr_5785 = "_-5g8" (String#2600, DoABC#3) // _SafeStr_5786 = "_-18I" (String#34452, DoABC#3) // _SafeStr_5787 = "_-5vv" (String#11187, DoABC#3) // _SafeStr_5788 = "_-5iS" (String#8247, DoABC#3) // _SafeStr_5789 = "_-2XG" (String#14419, DoABC#3) // _SafeStr_5790 = "_-5nt" (String#5283, DoABC#3) // _SafeStr_5791 = "_-6Tw" (String#4896, DoABC#3) // _SafeStr_5792 = "_-5ml" (String#16062, DoABC#3) // _SafeStr_5793 = "_-5Bs" (String#20097, DoABC#3) // _SafeStr_5794 = "_-1xE" (String#8405, DoABC#3) // _SafeStr_5795 = "_-6fU" (String#11006, DoABC#3) // _SafeStr_5796 = "_-1ly" (String#4673, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_5798 = "_-mV" (String#26968, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_5800 = "_-2OU" (String#6291, DoABC#3) // _SafeStr_5801 = "_-4nH" (String#37369, DoABC#3) // _SafeStr_5802 = "_-5ja" (String#36214, DoABC#3) // _SafeStr_5803 = "_-02Q" (String#33210, DoABC#3) // _SafeStr_5804 = "_-4Ai" (String#35350, DoABC#3) // _SafeStr_5805 = "_-5a8" (String#4334, DoABC#3) // _SafeStr_5806 = "_-4Td" (String#36581, DoABC#3) // _SafeStr_5807 = "_-0fY" (String#9176, DoABC#3) // _SafeStr_5808 = "_-s7" (String#19435, DoABC#3) // _SafeStr_5809 = "_-56H" (String#1168, DoABC#3) // _SafeStr_5810 = "_-0SY" (String#28728, DoABC#3) // _SafeStr_5811 = "_-6-t" (String#4179, DoABC#3) // _SafeStr_5812 = "_-3TO" (String#11416, DoABC#3) // _SafeStr_5813 = "_-3zr" (String#24036, DoABC#3) // _SafeStr_5814 = "_-ku" (String#2179, DoABC#3) // _SafeStr_5815 = "_-2Jo" (String#4783, DoABC#3) // _SafeStr_5816 = "_-6bB" (String#2783, DoABC#3) // _SafeStr_5817 = "_-4Ef" (String#2333, DoABC#3) // _SafeStr_5818 = "_-1-L" (String#35075, DoABC#3) // _SafeStr_5819 = "_-0b8" (String#19773, DoABC#3) // _SafeStr_5820 = "_-2zc" (String#17890, DoABC#3) // _SafeStr_5821 = "_-YW" (String#13504, DoABC#3) // _SafeStr_5822 = "_-2KO" (String#30086, DoABC#3) // _SafeStr_5823 = "_-5Kz" (String#3211, DoABC#3) // _SafeStr_5824 = "_-373" (String#3552, DoABC#3) // _SafeStr_5825 = "_-0BT" (String#3189, DoABC#3) // _SafeStr_5826 = "_-3OQ" (String#9095, DoABC#3) // _SafeStr_5827 = "_-14I" (String#28545, DoABC#3) // _SafeStr_5828 = "_-1RA" (String#22063, DoABC#3) // _SafeStr_5829 = "_-3TM" (String#14186, DoABC#3) // _SafeStr_5830 = "_-6lE" (String#35291, DoABC#3) // _SafeStr_5831 = "_-5iv" (String#37667, DoABC#3) // _SafeStr_5832 = "_-4kl" (String#38211, DoABC#3) // _SafeStr_5833 = "_-0QS" (String#5094, DoABC#3) // _SafeStr_5834 = "_-1TC" (String#32590, DoABC#3) // _SafeStr_5835 = "_-4Er" (String#24080, DoABC#3) // _SafeStr_5836 = "_-1RZ" (String#2835, DoABC#3) // _SafeStr_5837 = "_-4G5" (String#35487, DoABC#3) // _SafeStr_5838 = "_-1Ze" (String#34419, DoABC#3) // _SafeStr_5839 = "_-3MK" (String#35890, DoABC#3) // _SafeStr_5840 = "_-0h4" (String#28344, DoABC#3) // _SafeStr_5841 = "_-2Yh" (String#22478, DoABC#3) // _SafeStr_5842 = "_-26I" (String#34973, DoABC#3) // _SafeStr_5843 = "_-2Hz" (String#15504, DoABC#3) // _SafeStr_5844 = "_-2EM" (String#4084, DoABC#3) // _SafeStr_5845 = "_-6g0" (String#36663, DoABC#3) // _SafeStr_5846 = "_-24f" (String#32323, DoABC#3) // _SafeStr_5847 = "_-2kb" (String#38522, DoABC#3) // _SafeStr_5848 = "_-1Br" (String#7042, DoABC#3) // _SafeStr_5849 = "_-o" (String#36401, DoABC#3) // _SafeStr_5850 = "_-5qj" (String#7879, DoABC#3) // _SafeStr_5851 = "_-5Fj" (String#35653, DoABC#3) // _SafeStr_5852 = "_-5z6" (String#5497, DoABC#3) // _SafeStr_5853 = "_-5eM" (String#8826, DoABC#3) // _SafeStr_5854 = "_-6-j" (String#20933, DoABC#3) // _SafeStr_5855 = "_-6Ts" (String#34150, DoABC#3) // _SafeStr_5856 = "_-5Td" (String#38436, DoABC#3) // _SafeStr_5857 = "_-an" (String#32876, DoABC#3) // _SafeStr_5858 = "_-23w" (String#34155, DoABC#3) // _SafeStr_5859 = "_-0TT" (String#34213, DoABC#3) // _SafeStr_5860 = "_-4bT" (String#35811, DoABC#3) // _SafeStr_5861 = "_-1mM" (String#34128, DoABC#3) // _SafeStr_5862 = "_-5Wj" (String#38317, DoABC#3) // _SafeStr_5863 = "_-0wm" (String#31043, DoABC#3) // _SafeStr_5864 = "_-4Bl" (String#3458, DoABC#3) // _SafeStr_5865 = "_-4xj" (String#4346, DoABC#3) // _SafeStr_5866 = "_-0rs" (String#25625, DoABC#3) // _SafeStr_5867 = "_-6Y4" (String#31850, DoABC#3) // _SafeStr_5868 = "_-6ab" (String#9807, DoABC#3) // _SafeStr_5869 = "_-0sr" (String#4058, DoABC#3) // _SafeStr_5870 = "_-1dZ" (String#35962, DoABC#3) // _SafeStr_5871 = "_-ej" (String#9614, DoABC#3) // _SafeStr_5872 = "_-0Cu" (String#32527, DoABC#3) // _SafeStr_5873 = "_-5pU" (String#38847, DoABC#3) // _SafeStr_5874 = "_-6Cy" (String#21856, DoABC#3) // _SafeStr_5875 = "_-H5" (String#34053, DoABC#3) // _SafeStr_5876 = "_-1fO" (String#24534, DoABC#3) // _SafeStr_5877 = "_-1wU" (String#5078, DoABC#3) // _SafeStr_5878 = "_-5D0" (String#35737, DoABC#3) // _SafeStr_5879 = "_-1lV" (String#6474, DoABC#3) // _SafeStr_5880 = "_-2hy" (String#5766, DoABC#3) // _SafeStr_5881 = "_-1c-" (String#24246, DoABC#3) // _SafeStr_5882 = "_-Gf" (String#27373, DoABC#3) // _SafeStr_5883 = "_-1Cd" (String#14271, DoABC#3) // _SafeStr_5884 = "_-1TS" (String#33331, DoABC#3) // _SafeStr_5885 = "_-2G-" (String#33609, DoABC#3) // _SafeStr_5886 = "_-46Q" (String#30391, DoABC#3) // _SafeStr_5887 = "_-6Oc" (String#31024, DoABC#3) // _SafeStr_5888 = "_-2Ag" (String#21450, DoABC#3) // _SafeStr_5889 = "_-1Uo" (String#34031, DoABC#3) // _SafeStr_5890 = "_-JG" (String#6784, DoABC#3) // _SafeStr_5891 = "_-0TE" (String#1725, DoABC#3) // _SafeStr_5892 = "_-16" (String#2228, DoABC#3) // _SafeStr_5893 = "_-1Qm" (String#37895, DoABC#3) // _SafeStr_5894 = "_-6WE" (String#38305, DoABC#3) // _SafeStr_5895 = "_-3tK" (String#5652, DoABC#3) // _SafeStr_5896 = "_-3HF" (String#3467, DoABC#3) // _SafeStr_5897 = "_-0hG" (String#2741, DoABC#3) // _SafeStr_5898 = "_-01r" (String#33230, DoABC#3) // _SafeStr_5899 = "_-0S7" (String#24602, DoABC#3) // _SafeStr_5900 = "_-8s" (String#23423, DoABC#3) // _SafeStr_5901 = "_-4Ld" (String#37089, DoABC#3) //------------------------------------------------------------ //_-07J._SafeStr_4350 package _-07J{ public class _SafeStr_4350 { public static const _SafeStr_5902:String = "FlashExternalGameInterface.sendGameEvent"; } }//package _-07J // _SafeStr_4350 = "_-3k2" (String#17772, DoABC#3) // _SafeStr_5902 = "_-Ds" (String#25497, DoABC#3) //------------------------------------------------------------ //_-07J._SafeStr_4351 package _-07J{ public class _SafeStr_4351 { public static const _SafeStr_5903:String = "HabboGameJsAPIEventToHabbo"; public static const _SafeStr_5904:String = "HabboGameAPI_game_crashed"; public static const _SafeStr_5905:String = "HabboGameAPI_game_loaded"; public static const QUIT_GAME_EVENT:String = "HabboGameAPI_exit_game"; } }//package _-07J // _SafeStr_4351 = "_-js" (String#10677, DoABC#3) // _SafeStr_5903 = "_-6VC" (String#24561, DoABC#3) // _SafeStr_5904 = "_-3RA" (String#21578, DoABC#3) // _SafeStr_5905 = "_-3wG" (String#23638, DoABC#3) //------------------------------------------------------------ //_-07J.JsMessageHandler package _-07J{ import _-0fm.HabboGameManager; import flash.external.ExternalInterface; public class JsMessageHandler { private static const _SafeStr_5906:String = ";"; private static const _SafeStr_5907:String = String.fromCharCode(31); private var _SafeStr_5908:HabboGameManager; private var _SafeStr_5588:Boolean; private var _SafeStr_5909:Boolean; public function JsMessageHandler(k:HabboGameManager, _arg_2:Boolean=false){ this._SafeStr_5908 = k; this._SafeStr_5909 = _arg_2; if (ExternalInterface.available) { ExternalInterface.addCallback(_SafeStr_4351._SafeStr_5903, this._SafeStr_5910); }; } public function dispose():void{ this._SafeStr_5908 = null; this._SafeStr_5588 = true; } private function _SafeStr_5910(k:String=null):void{ var _local_6:String; var _local_7:String; var _local_8:String; var _local_9:String; var _local_10:Array; if (this._SafeStr_5588) { return; }; var _local_2:Boolean = ExternalInterface.marshallExceptions; ExternalInterface.marshallExceptions = this._SafeStr_5909; var _local_3:int = k.indexOf(_SafeStr_5906); var _local_4:int = k.indexOf(_SafeStr_5907); var _local_5:String = k.substr(0, (_local_3 + 1)); if (_local_4 != -1) { _local_6 = k.substr((_local_3 + 1), ((_local_4 - _local_3) - 1)); } else { _local_6 = k.substr((_local_3 + 1)); }; switch (_local_6) { case _SafeStr_4351.QUIT_GAME_EVENT: this._SafeStr_5908._SafeStr_5911(); break; case _SafeStr_4351._SafeStr_5905: this._SafeStr_5908._SafeStr_5912(); break; case _SafeStr_4351._SafeStr_5904: _local_9 = null; _local_10 = k.split(_SafeStr_5907); if (_local_10.length >= 3) { _local_7 = _local_10[1]; _local_8 = _local_10[2]; if (_local_10.length >= 4) { _local_9 = _local_10[3]; }; this._SafeStr_5908._SafeStr_5913(_local_7, _local_8, _local_9); } else { _SafeStr_4.log(("Invalid game API event: " + k)); }; break; }; ExternalInterface.marshallExceptions = _local_2; } public function sendGameEvent(event:String):void{ var preValue:Boolean; try { if (ExternalInterface.available) { preValue = ExternalInterface.marshallExceptions; ExternalInterface.marshallExceptions = this._SafeStr_5909; ExternalInterface.call(_SafeStr_4350._SafeStr_5902, event); ExternalInterface.marshallExceptions = preValue; }; } catch(e:Error) { _SafeStr_4.log(("Failed to send event to game: " + e)); }; } } }//package _-07J // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4350 = "_-3k2" (String#17772, DoABC#3) // _SafeStr_4351 = "_-js" (String#10677, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5902 = "_-Ds" (String#25497, DoABC#3) // _SafeStr_5903 = "_-6VC" (String#24561, DoABC#3) // _SafeStr_5904 = "_-3RA" (String#21578, DoABC#3) // _SafeStr_5905 = "_-3wG" (String#23638, DoABC#3) // _SafeStr_5906 = "_-34y" (String#25353, DoABC#3) // _SafeStr_5907 = "_-2fF" (String#18844, DoABC#3) // _SafeStr_5908 = "_-Z5" (String#363, DoABC#3) // _SafeStr_5909 = "_-4bD" (String#23923, DoABC#3) // _SafeStr_5910 = "_-0Vx" (String#32038, DoABC#3) // _SafeStr_5911 = "_-4V-" (String#31533, DoABC#3) // _SafeStr_5912 = "_-2OG" (String#31363, DoABC#3) // _SafeStr_5913 = "_-3-a" (String#29515, DoABC#3) //------------------------------------------------------------ //_-08v._SafeStr_3950 package _-08v{ import _-2jU._SafeStr_2285; public class _SafeStr_3950 implements _SafeStr_2285 { private var _SafeStr_5513:Array; public function _SafeStr_3950(k:int){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ } } }//package _-08v // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3950 = "_-1NN" (String#10603, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-08v._SafeStr_4252 package _-08v{ import _-2jU._SafeStr_2285; public class _SafeStr_4252 implements _SafeStr_2285 { private var _SafeStr_5513:Array; public function _SafeStr_4252(){ this._SafeStr_5513 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = []; } } }//package _-08v // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_4252 = "_-4Uk" (String#23445, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-099._SafeStr_4181 package _-099{ import _-2jU._SafeStr_2278; import _-IP._SafeStr_4409; public class _SafeStr_4181 extends _SafeStr_2278 { public function _SafeStr_4181(k:Function){ super(k, _SafeStr_4409); } public function _SafeStr_5729():_SafeStr_4409{ return ((_SafeStr_5915 as _SafeStr_4409)); } } }//package _-099 // _SafeStr_2278 = "_-0jq" (String#67, DoABC#3) // _SafeStr_4181 = "_-0v5" (String#10156, DoABC#3) // _SafeStr_4409 = "_-0Ap" (String#11027, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5915 = "_-3BT" (String#250, DoABC#3) //------------------------------------------------------------ //_-09b._SafeStr_4637 package _-09b{ import flash.utils.ByteArray; import _-2rM._SafeStr_2309; public interface _SafeStr_4637 { function dispose():void; function encode(_arg_1:int, _arg_2:Array):ByteArray; function _SafeStr_5916(_arg_1:ByteArray, _arg_2:_SafeStr_2309):Array; } }//package _-09b // _SafeStr_2309 = "_-38x" (String#1056, DoABC#3) // _SafeStr_4637 = "_-6bz" (String#17750, DoABC#3) // _SafeStr_5916 = "_-0kP" (String#27169, DoABC#3) //------------------------------------------------------------ //_-09b._SafeStr_5132 package _-09b{ import _-2jU._SafeStr_2713; import flash.utils.ByteArray; import _-24c.Hex; final class _SafeStr_5132 implements _SafeStr_2713 { private var _SafeStr_5742:int; private var _SafeStr_5513:ByteArray; public function _SafeStr_5132(k:int, _arg_2:ByteArray){ this._SafeStr_5742 = k; this._SafeStr_5513 = _arg_2; } public function _SafeStr_5917():int{ return (this._SafeStr_5742); } public function readString():String{ return (this._SafeStr_5513.readUTF()); } public function readInt():int{ return (this._SafeStr_5513.readInt()); } public function readBoolean():Boolean{ return (this._SafeStr_5513.readBoolean()); } public function readShort():int{ return (this._SafeStr_5513.readShort()); } public function readByte():int{ return (this._SafeStr_5513.readByte()); } public function readFloat():Number{ return (this._SafeStr_5513.readFloat()); } public function readDouble():Number{ return (this._SafeStr_5513.readDouble()); } public function get bytesAvailable():uint{ return (this._SafeStr_5513.bytesAvailable); } public function toString():String{ return (((((("id=" + this._SafeStr_5742) + ", pos=") + this._SafeStr_5513.position) + ", data=") + Hex._SafeStr_5918(this._SafeStr_5513, true))); } } }//package _-09b // _SafeStr_2713 = "_-5zg" (String#207, DoABC#3) // _SafeStr_5132 = "_-0IS" (String#15197, DoABC#3) // readInt = "_-1ht" (String#82, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5742 = "_-Pw" (String#286, DoABC#3) // _SafeStr_5917 = "_-4hh" (String#20359, DoABC#3) // _SafeStr_5918 = "_-6fH" (String#12593, DoABC#3) //------------------------------------------------------------ //_-09b.EvaWireFormat package _-09b{ import flash.utils.ByteArray; import _-00B._SafeStr_5131; import _-Wj._SafeStr_2711; import _-2rM._SafeStr_2309; public final class EvaWireFormat implements _SafeStr_4637 { private static const _SafeStr_5919:uint = (128 * 0x0400);//131072 public function dispose():void{ } public function encode(k:int, _arg_2:Array):ByteArray{ var _local_4:Object; var _local_5:uint; var _local_6:ByteArray; var _local_3:ByteArray = new ByteArray(); _local_3.writeInt(0); _local_3.writeShort(k); for each (_local_4 in _arg_2) { if ((_local_4 is String)) { _local_3.writeUTF((_local_4 as String)); } else { if ((_local_4 is int)) { _local_3.writeInt((_local_4 as int)); } else { if ((_local_4 is Boolean)) { _local_3.writeBoolean((_local_4 as Boolean)); } else { if ((_local_4 is _SafeStr_5131)) { _local_3.writeShort((_local_4 as _SafeStr_5131).value); } else { if ((_local_4 is ByteArray)) { _local_6 = (_local_4 as ByteArray); _local_3.writeInt(_local_6.length); _local_3.writeBytes(_local_6); }; }; }; }; }; }; _local_5 = _local_3.length; _local_3.position = 0; _local_3.writeInt((_local_5 - 4)); _local_3.position = _local_5; return (_local_3); } public function _SafeStr_5916(k:ByteArray, _arg_2:_SafeStr_2309):Array{ var _local_4:uint; var _local_5:uint; var _local_6:_SafeStr_2711; var _local_7:ByteArray; var _local_8:int; var _local_9:ByteArray; var _local_10:ByteArray; var _local_11:ByteArray; var _local_3:Array = new Array(); while (true) { if (k.bytesAvailable < 6) { return (_local_3); }; _local_4 = k.position; _local_5 = 0; _local_6 = _arg_2._SafeStr_5920(); if (_local_6 != null) { _local_6._SafeStr_5921(); _local_9 = new ByteArray(); _local_9.writeByte(k.readByte()); _local_9.writeByte(k.readByte()); _local_9.writeByte(k.readByte()); _local_9.writeByte(k.readByte()); _local_10 = _local_6._SafeStr_5922(_local_9); _local_5 = (((((0xFF & _local_10[0]) << 24) | ((0xFF & _local_10[1]) << 16)) | ((0xFF & _local_10[2]) << 8)) | (0xFF & _local_10[3])); } else { _local_5 = k.readInt(); }; if ((((_local_5 < 2)) || ((_local_5 > _SafeStr_5919)))) { throw (new Error(("Invalid message length " + _local_5))); }; if (k.bytesAvailable < _local_5) { k.position = _local_4; if (_local_6 != null) { _local_6.reset(); }; return (_local_3); }; _local_7 = new ByteArray(); if (_local_6 != null) { _local_11 = new ByteArray(); _local_11.writeBytes(k, k.position, _local_5); _local_7.writeBytes(_local_6._SafeStr_5922(_local_11), 0, _local_5); _local_7.position = 0; } else { _local_7.writeBytes(k, k.position, _local_5); _local_7.position = 0; }; k.position = (k.position + _local_5); _local_8 = _local_7.readShort(); _local_3.push(new _SafeStr_5132(_local_8, _local_7)); }; return (null); //dead code } } }//package _-09b // _SafeStr_2309 = "_-38x" (String#1056, DoABC#3) // _SafeStr_2711 = "_-5Ir" (String#4316, DoABC#3) // _SafeStr_4637 = "_-6bz" (String#17750, DoABC#3) // _SafeStr_5131 = "_-3n0" (String#14836, DoABC#3) // _SafeStr_5132 = "_-0IS" (String#15197, DoABC#3) // _SafeStr_5916 = "_-0kP" (String#27169, DoABC#3) // _SafeStr_5919 = "_-0tf" (String#25521, DoABC#3) // _SafeStr_5920 = "_-4Jt" (String#27611, DoABC#3) // _SafeStr_5921 = "_-3u7" (String#31621, DoABC#3) // _SafeStr_5922 = "_-2t9" (String#22661, DoABC#3) //------------------------------------------------------------ //_-09o._SafeStr_5303 package _-09o{ import _-lc.DefaultPlaylistItem; public class _SafeStr_5303 extends DefaultPlaylistItem { public function _SafeStr_5303(k:String=null, _arg_2:String=null, _arg_3:int=0, _arg_4:String=null, _arg_5:String=null){ if (k != null) { _SafeStr_5923 = k; }; if (_arg_2 != null) { _SafeStr_5924 = _arg_2; }; } } }//package _-09o // _SafeStr_5303 = "_-1Yl" (String#15483, DoABC#3) // _SafeStr_5923 = "_-1ax" (String#830, DoABC#3) // _SafeStr_5924 = "_-0Q2" (String#4516, DoABC#3) //------------------------------------------------------------ //_-09o.SMILPlaylist package _-09o{ import _-lc.DefaultPlaylist; import _-6Zk.StreamSequence; import _-3ix.ProvidersConfigGroup; public class SMILPlaylist extends DefaultPlaylist { public function SMILPlaylist(k:StreamSequence=null, _arg_2:ProvidersConfigGroup=null, _arg_3:ProvidersConfigGroup=null){ super(k, _arg_2, _arg_3); } override public function loadFromString(k:String):void{ var _local_2:XML = new XML(k); _SafeStr_5925(new _SafeStr_5303(_local_2.children()[0].children()[0].@base.toString(), _local_2.children()[1].children()[0].@src.toString())); } override public function getModel():Array{ return (new Array()); } override public function toString(k:Boolean=false):String{ return (new String()); } } }//package _-09o // _SafeStr_5303 = "_-1Yl" (String#15483, DoABC#3) // _SafeStr_5925 = "_-0PX" (String#28963, DoABC#3) //------------------------------------------------------------ //_-0ax._SafeStr_4527 package _-0ax{ import _-29V.IWindowContainer; import flash.display.BitmapData; import _-3UH.BitmapDataAsset; import _-29V.IWindow; import _-5Vh.WindowEvent; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Point; public class _SafeStr_4527 { private static const _SafeStr_5926:int = 0; private static const _SafeStr_5927:int = 0xFF; private var _SafeStr_5572:BackgroundColorFurniWidget; private var _SafeStr_5928:IWindowContainer; private var _SafeStr_5929:String; private var _SafeStr_5930:BitmapData; private var _SafeStr_5931:BitmapData; private var _SafeStr_5932:int; private var _SafeStr_5933:int; public function _SafeStr_4527(k:BackgroundColorFurniWidget, _arg_2:String, _arg_3:IWindowContainer, _arg_4:int=0){ var _local_5:BitmapDataAsset; super(); this._SafeStr_5572 = k; this._SafeStr_5929 = _arg_2; this._SafeStr_5928 = _arg_3; _local_5 = BitmapDataAsset(k.assets.getAssetByName("dimmer_slider_base")); this._SafeStr_5930 = BitmapData(_local_5.content); _local_5 = BitmapDataAsset(k.assets.getAssetByName("dimmer_slider_button")); this._SafeStr_5931 = BitmapData(_local_5.content); this._SafeStr_5934(); this._SafeStr_5935(_arg_4); } public function dispose():void{ this._SafeStr_5572 = null; this._SafeStr_5928 = null; this._SafeStr_5930 = null; this._SafeStr_5931 = null; } public function _SafeStr_5935(k:int):void{ if (this._SafeStr_5928 == null) { return; }; var _local_2:IWindow = this._SafeStr_5928.findChildByName("slider_button"); if (_local_2 != null) { _local_2.x = this._SafeStr_5936(k); }; } private function _SafeStr_5936(k:int):int{ return (int((this._SafeStr_5932 * (Number((k - _SafeStr_5926)) / (_SafeStr_5927 - _SafeStr_5926))))); } private function getValue(k:Number):int{ return ((int(((k / this._SafeStr_5932) * (_SafeStr_5927 - _SafeStr_5926))) + _SafeStr_5926)); } private function _SafeStr_5937(k:WindowEvent, _arg_2:IWindow):void{ this._SafeStr_5572._SafeStr_5938(this._SafeStr_5929, this.getValue(_arg_2.x)); } private function _SafeStr_5934():void{ var k:IWindowContainer; var _local_2:IBitmapWrapperWindow; if (this._SafeStr_5928 == null) { return; }; _local_2 = (this._SafeStr_5928.findChildByName("slider_base") as IBitmapWrapperWindow); if (((!((_local_2 == null))) && (!((this._SafeStr_5930 == null))))) { _local_2.bitmap = new BitmapData(this._SafeStr_5930.width, this._SafeStr_5930.height, true, 0xFFFFFF); _local_2.bitmap.copyPixels(this._SafeStr_5930, this._SafeStr_5930.rect, new Point(0, 0), null, null, true); }; k = (this._SafeStr_5928.findChildByName("slider_movement_area") as IWindowContainer); if (k != null) { _local_2 = (k.findChildByName("slider_button") as IBitmapWrapperWindow); if (((!((_local_2 == null))) && (!((this._SafeStr_5931 == null))))) { _local_2.bitmap = new BitmapData(this._SafeStr_5931.width, this._SafeStr_5931.height, true, 0xFFFFFF); _local_2.bitmap.copyPixels(this._SafeStr_5931, this._SafeStr_5931.rect, new Point(0, 0), null, null, true); _local_2.procedure = this._SafeStr_5937; this._SafeStr_5932 = (k.width - _local_2.width); }; }; } } }//package _-0ax // _SafeStr_4527 = "_-46X" (String#5506, DoABC#3) // _SafeStr_5572 = "_-0k2" (String#66, DoABC#3) // _SafeStr_5926 = "_-22u" (String#2671, DoABC#3) // _SafeStr_5927 = "_-1uW" (String#2807, DoABC#3) // _SafeStr_5928 = "_-5Do" (String#1980, DoABC#3) // _SafeStr_5929 = "_-36G" (String#5868, DoABC#3) // _SafeStr_5930 = "_-Xt" (String#2513, DoABC#3) // _SafeStr_5931 = "_-4jf" (String#2522, DoABC#3) // _SafeStr_5932 = "_-2h2" (String#3621, DoABC#3) // _SafeStr_5933 = "_-1el" (String#18197, DoABC#3) // _SafeStr_5934 = "_-40I" (String#7186, DoABC#3) // _SafeStr_5935 = "_-5AZ" (String#1794, DoABC#3) // _SafeStr_5936 = "_-iD" (String#8513, DoABC#3) // _SafeStr_5937 = "_-NH" (String#8128, DoABC#3) // _SafeStr_5938 = "_-0f-" (String#34026, DoABC#3) //------------------------------------------------------------ //_-0ax.BackgroundColorFurniWidget package _-0ax{ import _-4Bw._SafeStr_2824; import _-6Sj.IFrameWindow; import __AS3__.vec.Vector; import _-2yL._SafeStr_2823; import _-3xK._SafeStr_637; import _-3UH._SafeStr_10; import _-Qx._SafeStr_500; import _-4iK._SafeStr_4453; import _-29V.IWindowContainer; import _-6Sj.IBitmapWrapperWindow; import flash.display.BitmapData; import _-0bw._SafeStr_3573; import _-5Vh.WindowMouseEvent; import _-0JW._SafeStr_4117; import _-0SR._SafeStr_3182; import _-5Vh.WindowEvent; import _-29V.IWindow; import __AS3__.vec.*; public class BackgroundColorFurniWidget extends _SafeStr_2824 { private static const _SafeStr_5939:String = "hue"; private static const _SafeStr_5940:String = "saturation"; private static const _SafeStr_5941:String = "lightness"; private var _SafeStr_5322:IFrameWindow; private var _SafeStr_5942:int; private var _SafeStr_5943:Vector.<_SafeStr_4527>; private var _SafeStr_5944:int; private var _SafeStr_5945:int; private var _SafeStr_5946:int; public function BackgroundColorFurniWidget(k:_SafeStr_2823, _arg_2:_SafeStr_637, _arg_3:_SafeStr_10=null, _arg_4:_SafeStr_500=null){ this._SafeStr_5943 = new Vector.<_SafeStr_4527>(); super(k, _arg_2, _arg_3, _arg_4); this.handler.widget = this; } public function get handler():_SafeStr_4453{ return ((_SafeStr_5542 as _SafeStr_4453)); } override public function dispose():void{ this._SafeStr_5947(); super.dispose(); } public function open(k:int, _arg_2:int, _arg_3:int, _arg_4:int):void{ this._SafeStr_5942 = k; this._SafeStr_5944 = Math.max(_arg_2, 0); this._SafeStr_5945 = Math.max(_arg_3, 0); this._SafeStr_5946 = Math.max(_arg_4, 0); this.createWindow(); } public function _SafeStr_5938(k:String, _arg_2:int):void{ switch (k) { case _SafeStr_5939: this._SafeStr_5944 = _arg_2; break; case _SafeStr_5940: this._SafeStr_5945 = _arg_2; break; case _SafeStr_5941: this._SafeStr_5946 = _arg_2; break; }; this._SafeStr_5948(); } private function createWindow():void{ if (!this._SafeStr_5322) { this._SafeStr_5322 = IFrameWindow(windowManager.buildFromXML((assets.getAssetByName("background_color_ui_xml").content as XML))); this._SafeStr_5322.procedure = this._SafeStr_5753; this._SafeStr_5322.center(); this._SafeStr_5943.push(new _SafeStr_4527(this, _SafeStr_5939, IWindowContainer(this._SafeStr_5322.findChildByName("hue_container")), this._SafeStr_5944)); this._SafeStr_5943.push(new _SafeStr_4527(this, _SafeStr_5940, IWindowContainer(this._SafeStr_5322.findChildByName("saturation_container")), this._SafeStr_5945)); this._SafeStr_5943.push(new _SafeStr_4527(this, _SafeStr_5941, IWindowContainer(this._SafeStr_5322.findChildByName("lightness_container")), this._SafeStr_5946)); }; } private function _SafeStr_5947():void{ var k:_SafeStr_4527; for each (k in this._SafeStr_5943) { k.dispose(); }; this._SafeStr_5943 = new Vector.<_SafeStr_4527>(); if (this._SafeStr_5322) { this._SafeStr_5322.dispose(); this._SafeStr_5322 = null; }; } private function _SafeStr_5948():void{ if (this._SafeStr_5322 == null) { return; }; var k:IBitmapWrapperWindow = IBitmapWrapperWindow(this._SafeStr_5322.findChildByName("color_preview_bitmap")); var _local_2:BitmapData = new BitmapData(k.width, k.height, false); var _local_3:uint = _SafeStr_3573._SafeStr_5949(((((this._SafeStr_5944 & 0xFF) << 16) + ((this._SafeStr_5945 & 0xFF) << 8)) + (this._SafeStr_5946 & 0xFF))); _local_2.fillRect(_local_2.rect, _local_3); k.bitmap = _local_2; } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (((!((_arg_2 == null))) && ((k.type == WindowMouseEvent.CLICK)))) { switch (_arg_2.name) { case "apply_button": this.handler.container.connection.send(new _SafeStr_4117(this._SafeStr_5942, this._SafeStr_5944, this._SafeStr_5945, this._SafeStr_5946)); return; case "on_off_button": this.handler.container.connection.send(new _SafeStr_3182(this._SafeStr_5942)); return; case "header_button_close": this._SafeStr_5947(); return; }; }; } } }//package _-0ax // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_2823 = "_-3ZG" (String#734, DoABC#3) // _SafeStr_2824 = "_-72" (String#868, DoABC#3) // _SafeStr_3182 = "_-0uX" (String#3910, DoABC#3) // _SafeStr_3573 = "_-5wT" (String#7527, DoABC#3) // _SafeStr_4117 = "_-6AV" (String#13621, DoABC#3) // _SafeStr_4453 = "_-P-" (String#10037, DoABC#3) // _SafeStr_4527 = "_-46X" (String#5506, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5542 = "_-2Ia" (String#1540, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_5938 = "_-0f-" (String#34026, DoABC#3) // _SafeStr_5939 = "_-0H4" (String#19484, DoABC#3) // _SafeStr_5940 = "_-2zL" (String#17895, DoABC#3) // _SafeStr_5941 = "_-3jR" (String#17756, DoABC#3) // _SafeStr_5942 = "_-1an" (String#1647, DoABC#3) // _SafeStr_5943 = "_-0hO" (String#11864, DoABC#3) // _SafeStr_5944 = "_-2sQ" (String#5472, DoABC#3) // _SafeStr_5945 = "_-6Zb" (String#5507, DoABC#3) // _SafeStr_5946 = "_-1dN" (String#5570, DoABC#3) // _SafeStr_5947 = "_-46l" (String#2236, DoABC#3) // _SafeStr_5948 = "_-6Iv" (String#33124, DoABC#3) // _SafeStr_5949 = "_-bb" (String#20651, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) //------------------------------------------------------------ //_-0B0._SafeStr_2403 package _-0B0{ import _-3WJ.HabboCatalog; import _-0bT.GuildSelectorCatalogWidget; import _-2LW._SafeStr_3476; import _-yK._SafeStr_2424; public class _SafeStr_2403 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_5950:GuildSelectorCatalogWidget; public function _SafeStr_2403(k:HabboCatalog){ this._SafeStr_5539 = k; } public function dispose():void{ this._SafeStr_5539 = null; this._SafeStr_5950 = null; } public function get catalog():HabboCatalog{ return (this._SafeStr_5539); } public function _SafeStr_5951(k:GuildSelectorCatalogWidget):void{ this._SafeStr_5950 = k; this._SafeStr_5539.connection.send(new _SafeStr_3476()); } public function _SafeStr_5952(k:GuildSelectorCatalogWidget):void{ if (this._SafeStr_5950 == k) { this._SafeStr_5950 = null; } else { _SafeStr_4.log("ERROR: Tried to unregister a nonregistered group selector catalog widget"); }; } public function _SafeStr_5953(k:_SafeStr_2424):void{ var _local_2:Array = k._SafeStr_5954.slice(0, k._SafeStr_5954.length); if (((this._SafeStr_5950) && (!(this._SafeStr_5950.disposed)))) { this._SafeStr_5950._SafeStr_5955(_local_2); this._SafeStr_5950._SafeStr_5956(); }; } public function _SafeStr_5957(k:int):void{ if (this._SafeStr_5950 != null) { this._SafeStr_5539.connection.send(new _SafeStr_3476()); }; } } }//package _-0B0 // _SafeStr_2403 = "_-68A" (String#6448, DoABC#3) // _SafeStr_2424 = "_-54Z" (String#9603, DoABC#3) // _SafeStr_3476 = "_-0WK" (String#10090, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5950 = "_-2aq" (String#8281, DoABC#3) // _SafeStr_5951 = "_-6W8" (String#38651, DoABC#3) // _SafeStr_5952 = "_-4mq" (String#37549, DoABC#3) // _SafeStr_5953 = "_-1OS" (String#32002, DoABC#3) // _SafeStr_5954 = "_-0gR" (String#6127, DoABC#3) // _SafeStr_5955 = "_-1Q5" (String#36175, DoABC#3) // _SafeStr_5956 = "_-54z" (String#36760, DoABC#3) // _SafeStr_5957 = "_-1L4" (String#25348, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_3459 package _-0bT{ import _-En._SafeStr_2410; import flash.events.IEventDispatcher; import _-29V.IWindowContainer; public interface _SafeStr_3459 { function set page(_arg_1:_SafeStr_2410):void; function set events(_arg_1:IEventDispatcher):void; function get window():IWindowContainer; function get events():IEventDispatcher; function get page():_SafeStr_2410; function dispose():void; function init():Boolean; function closed():void; } }//package _-0bT // _SafeStr_2410 = "_-04C" (String#2796, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_3460 package _-0bT{ import _-29V.IWindowContainer; import flash.events.IEventDispatcher; import _-En._SafeStr_2410; import _-3UH.XmlAsset; import _-3UH.BitmapDataAsset; import flash.display.BitmapData; public class _SafeStr_3460 implements _SafeStr_3459 { protected var _SafeStr_5322:IWindowContainer; protected var _SafeStr_5958:IEventDispatcher; private var _SafeStr_5959:_SafeStr_2410; private var _SafeStr_5588:Boolean; protected var _SafeStr_5960:Boolean = false; public function _SafeStr_3460(k:IWindowContainer){ this._SafeStr_5322 = k; this._SafeStr_5960 = (k.tags.indexOf("EMBEDDED") > -1); } public function set page(k:_SafeStr_2410):void{ this._SafeStr_5959 = k; } public function set events(k:IEventDispatcher):void{ this._SafeStr_5958 = k; } public function get window():IWindowContainer{ return (this._SafeStr_5322); } public function get events():IEventDispatcher{ return (this._SafeStr_5958); } public function get page():_SafeStr_2410{ return (this._SafeStr_5959); } public function dispose():void{ this._SafeStr_5958 = null; this._SafeStr_5959 = null; this._SafeStr_5322 = null; this._SafeStr_5588 = true; } public function get disposed():Boolean{ return (this._SafeStr_5588); } public function init():Boolean{ return (true); } public function closed():void{ } protected function _SafeStr_5961(k:String):XML{ if (((((((!(this.page)) || (!(this.page.viewer)))) || (!(this.page.viewer.catalog)))) || (!(this.page.viewer.catalog.assets)))) { return (null); }; var _local_2:XmlAsset = (this.page.viewer.catalog.assets.getAssetByName(k) as XmlAsset); if (_local_2 == null) { return (null); }; return ((_local_2.content as XML)); } protected function _SafeStr_5962(k:String):void{ if (this._SafeStr_5960) { return; }; var _local_2:XML = this._SafeStr_5961(k); if (_local_2 == null) { return; }; this.window.removeChildAt(0); if (((((((!(this.window)) || (!(this.page)))) || (!(this.page.viewer)))) || (!(this.page.viewer.catalog)))) { return; }; this.window.addChild(this.page.viewer.catalog.windowManager.buildFromXML(_local_2)); } protected function _SafeStr_5963(k:String):BitmapData{ var _local_2:BitmapDataAsset = (this.page.viewer.catalog.assets.getAssetByName(k) as BitmapDataAsset); if (_local_2 == null) { return (null); }; return ((_local_2.content as BitmapData)); } } }//package _-0bT // _SafeStr_2410 = "_-04C" (String#2796, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5958 = "_-6c5" (String#212, DoABC#3) // _SafeStr_5959 = "_-4pa" (String#2134, DoABC#3) // _SafeStr_5960 = "_-Hf" (String#25331, DoABC#3) // _SafeStr_5961 = "_-5CF" (String#8353, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5963 = "_-1yi" (String#30444, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_3505 package _-0bT{ import _-5GB._SafeStr_2400; public interface _SafeStr_3505 { function dispose():void; function init():Boolean; function reset():void; function _SafeStr_5964(_arg_1:int):void; function _SafeStr_5794(_arg_1:_SafeStr_2400):void; function get isGift():Boolean; } }//package _-0bT // _SafeStr_2400 = "_-Ab" (String#2832, DoABC#3) // _SafeStr_3505 = "_-40k" (String#8215, DoABC#3) // _SafeStr_5794 = "_-1xE" (String#8405, DoABC#3) // _SafeStr_5964 = "_-41O" (String#17413, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4805 package _-0bT{ public class _SafeStr_4805 { public static const _SafeStr_5965:String = "activityPointDisplayWidget"; public static const _SafeStr_5966:String = "addOnBadgeViewWidget"; public static const BUILDER:String = "builderWidget"; public static const _SafeStr_5967:String = "builderAddonsWidget"; public static const _SafeStr_5968:String = "builderLoyaltyWidget"; public static const _SafeStr_5969:String = "builderSubscriptionWidget"; public static const _SafeStr_5970:String = "bundleGridScrollWidget"; public static const _SafeStr_5971:String = "bundlePurchaseExtraInfoWidget"; public static const _SafeStr_5972:String = "buyGuildWidget"; public static const _SafeStr_5973:String = "clubBuyWidget"; public static const _SafeStr_5974:String = "clubGiftWidget"; public static const _SafeStr_5975:String = "colourGridWidget"; public static const _SafeStr_5976:String = "featuredItemsWidget"; public static const _SafeStr_5977:String = "guildBadgeViewWidget"; public static const _SafeStr_5978:String = "guildSelectorWidget"; public static const _SafeStr_5979:String = "guildForumSelectorWidget"; public static const _SafeStr_5980:String = "itemGridWidget"; public static const _SafeStr_5981:String = "loyaltyVipBuyWidget"; public static const _SafeStr_5982:String = "madMoneyWidget"; public static const _SafeStr_5983:String = "marketPlaceWidget"; public static const _SafeStr_5984:String = "marketPlaceOwnItemsWidget"; public static const _SafeStr_5985:String = "newPetsWidget"; public static const _SafeStr_5986:String = "petsWidget"; public static const _SafeStr_5987:String = "petPreviewWidget"; public static const _SafeStr_5988:String = "productViewWidget"; public static const PURCHASE:String = "purchaseWidget"; public static const _SafeStr_5989:String = "recyclerWidget"; public static const _SafeStr_5990:String = "recyclerPrizesWidget"; public static const _SafeStr_5991:String = "redeemItemCodeWidget"; public static const _SafeStr_5992:String = "roomAdsCatalogWidget"; public static const _SafeStr_5993:String = "roomPreviewWidget"; public static const _SafeStr_5994:String = "simplePriceWidget"; public static const _SafeStr_5995:String = "singleViewWidget"; public static const _SafeStr_5996:String = "soldLtdItemsWidget"; public static const _SafeStr_5997:String = "songDiskProductViewWidget"; public static const _SafeStr_5998:String = "spacesNewWidget"; public static const _SafeStr_5999:String = "specialInfoWidget"; public static const _SafeStr_6000:String = "spinnerWidget"; public static const TEXT_INPUT:String = "textInputWidget"; public static const _SafeStr_6001:String = "totalPriceWidget"; public static const _SafeStr_6002:String = "traxPreviewWidget"; public static const _SafeStr_6003:String = "trophyWidget"; public static const _SafeStr_6004:String = "limitedItemWidget"; public static const _SafeStr_6005:String = "userBadgeSelectorWidget"; public static const _SafeStr_6006:String = "vipBuyWidget"; public static const _SafeStr_6007:String = "vipGiftWidget"; public static const _SafeStr_6008:String = "warningWidget"; public static const _SafeStr_6009:String = "firstProductAutoSelectorWidget"; } }//package _-0bT // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_5965 = "_-SX" (String#19619, DoABC#3) // _SafeStr_5966 = "_-0bF" (String#19942, DoABC#3) // _SafeStr_5967 = "_-1-S" (String#24999, DoABC#3) // _SafeStr_5968 = "_-0u6" (String#24942, DoABC#3) // _SafeStr_5969 = "_-7t" (String#23418, DoABC#3) // _SafeStr_5970 = "_-1-X" (String#25010, DoABC#3) // _SafeStr_5971 = "_-4QY" (String#24200, DoABC#3) // _SafeStr_5972 = "_-3Uc" (String#22758, DoABC#3) // _SafeStr_5973 = "_-55h" (String#18015, DoABC#3) // _SafeStr_5974 = "_-0lm" (String#19722, DoABC#3) // _SafeStr_5975 = "_-k-" (String#19363, DoABC#3) // _SafeStr_5976 = "_-4k6" (String#23787, DoABC#3) // _SafeStr_5977 = "_-57I" (String#18024, DoABC#3) // _SafeStr_5978 = "_-6fN" (String#17865, DoABC#3) // _SafeStr_5979 = "_-2uO" (String#22603, DoABC#3) // _SafeStr_5980 = "_-6Uv" (String#17368, DoABC#3) // _SafeStr_5981 = "_-5hv" (String#25091, DoABC#3) // _SafeStr_5982 = "_-3bZ" (String#23833, DoABC#3) // _SafeStr_5983 = "_-6C3" (String#21004, DoABC#3) // _SafeStr_5984 = "_-6DV" (String#20484, DoABC#3) // _SafeStr_5985 = "_-66E" (String#22235, DoABC#3) // _SafeStr_5986 = "_-VM" (String#4557, DoABC#3) // _SafeStr_5987 = "_-5N" (String#23510, DoABC#3) // _SafeStr_5988 = "_-0Cl" (String#19450, DoABC#3) // _SafeStr_5989 = "_-5Pl" (String#7831, DoABC#3) // _SafeStr_5990 = "_-Gq" (String#25582, DoABC#3) // _SafeStr_5991 = "_-4sy" (String#22065, DoABC#3) // _SafeStr_5992 = "_-4t" (String#23550, DoABC#3) // _SafeStr_5993 = "_-5qX" (String#26069, DoABC#3) // _SafeStr_5994 = "_-qv" (String#24767, DoABC#3) // _SafeStr_5995 = "_-53j" (String#23521, DoABC#3) // _SafeStr_5996 = "_-0G3" (String#19475, DoABC#3) // _SafeStr_5997 = "_-1y9" (String#26027, DoABC#3) // _SafeStr_5998 = "_-0Xa" (String#25465, DoABC#3) // _SafeStr_5999 = "_-2Kt" (String#18232, DoABC#3) // _SafeStr_6000 = "_-5R4" (String#20572, DoABC#3) // _SafeStr_6001 = "_-4yU" (String#20150, DoABC#3) // _SafeStr_6002 = "_-5Z7" (String#21602, DoABC#3) // _SafeStr_6003 = "_-2h5" (String#5708, DoABC#3) // _SafeStr_6004 = "_-0Y2" (String#25384, DoABC#3) // _SafeStr_6005 = "_-5mu" (String#25942, DoABC#3) // _SafeStr_6006 = "_-n2" (String#25823, DoABC#3) // _SafeStr_6007 = "_-1TG" (String#25915, DoABC#3) // _SafeStr_6008 = "_-4p" (String#23514, DoABC#3) // _SafeStr_6009 = "_-3r1" (String#23559, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4815 package _-0bT{ import _-29V.IWindowContainer; import _-3WJ.HabboCatalog; import _-0Cn._SafeStr_2408; import _-0Cn._SafeStr_2479; import _-29V.IWindow; import _-3WJ._SafeStr_2399; public class _SafeStr_4815 extends _SafeStr_3460 implements _SafeStr_3459 { public function _SafeStr_4815(k:IWindowContainer){ super(k); } override public function dispose():void{ var k:HabboCatalog = HabboCatalog(page.viewer.catalog); k.events.removeEventListener(_SafeStr_2408._SafeStr_6010, this._SafeStr_6011); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5965); _SafeStr_5322.findChildByName("activity_points_txt").caption = ""; var k:HabboCatalog = HabboCatalog(page.viewer.catalog); k.events.addEventListener(_SafeStr_2408._SafeStr_6010, this._SafeStr_6011); return (this._SafeStr_6012()); } private function _SafeStr_6012():Boolean{ if (disposed) { return (false); }; if (_SafeStr_5322 == null) { return (false); }; var k:int = this._SafeStr_6013(); if ((((k < 1)) || (!(_SafeStr_2479._SafeStr_5360(k))))) { _SafeStr_5322.visible = false; return (false); }; var _local_2:HabboCatalog = HabboCatalog(page.viewer.catalog); var _local_3:String = ("catalog.purchase.youractivitypoints." + k); _local_2.localization.registerParameter(_local_3, "activitypoints", ("" + _local_2.getPurse()._SafeStr_5751(k))); _SafeStr_5322.findChildByName("activity_points_txt").caption = _local_2.localization.getLocalization(_local_3); var _local_4:IWindow = _SafeStr_5322.findChildByName("activity_point_icon"); _local_4.style = _SafeStr_2479._SafeStr_6014(k, _local_2, true); _SafeStr_5322.visible = true; return (true); } private function _SafeStr_6011(k:_SafeStr_2408):void{ this._SafeStr_6012(); } private function _SafeStr_6013():int{ var k:_SafeStr_2399; if ((((page == null)) || ((page.offers == null)))) { return (0); }; for each (k in page.offers) { if (k.activityPointType > 0) { return (k.activityPointType); }; }; return (0); } } }//package _-0bT // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2408 = "_-0OZ" (String#5965, DoABC#3) // _SafeStr_2479 = "_-0Ep" (String#3035, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4815 = "_-1XW" (String#15490, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5360 = "_-6Wz" (String#2394, DoABC#3) // _SafeStr_5751 = "_-2EA" (String#7581, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5965 = "_-SX" (String#19619, DoABC#3) // _SafeStr_6010 = "_-0c8" (String#12700, DoABC#3) // _SafeStr_6011 = "_-2g9" (String#18840, DoABC#3) // _SafeStr_6012 = "_-3OR" (String#29672, DoABC#3) // _SafeStr_6013 = "_-Ja" (String#19775, DoABC#3) // _SafeStr_6014 = "_-22C" (String#6724, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4816 package _-0bT{ import _-3WJ.HabboCatalog; import flash.utils.Timer; import _-29V.IWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_5151; import _-6Sj.ITextFieldWindow; import _-5Vh.WindowKeyboardEvent; import flash.events.TimerEvent; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; public class _SafeStr_4816 extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6015:int = 75; private static const _SafeStr_6016:int = 35; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6017:int = 1; private var _SafeStr_5926:int = 1; private var _SafeStr_5927:int = 100; private var _SafeStr_6018:Timer; private var _SafeStr_6019:Boolean = false; private var _SafeStr_6020:Boolean = false; private var _SafeStr_6021:Boolean = false; private var _SafeStr_6022:int = 1; private var _SafeStr_6023:Array; private var _SafeStr_6024:IWindow; public function _SafeStr_4816(k:IWindowContainer, _arg_2:HabboCatalog){ this._SafeStr_6023 = new Array(0); super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { if (this._SafeStr_6018 != null) { this._SafeStr_6018.stop(); this._SafeStr_6018 = null; }; events.removeEventListener(_SafeStr_5151._SafeStr_6025, this._SafeStr_6026); events.removeEventListener(_SafeStr_5151._SafeStr_6027, this._SafeStr_6028); events.removeEventListener(_SafeStr_5151._SafeStr_6029, this._SafeStr_6030); events.removeEventListener(_SafeStr_5151._SafeStr_6031, this._SafeStr_6032); events.removeEventListener(_SafeStr_5151._SafeStr_6033, this._SafeStr_6034); super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_6000); window.visible = false; if (!this._SafeStr_5539._SafeStr_5812) { return (true); }; window.procedure = this._SafeStr_6035; var k:ITextFieldWindow = (window.findChildByName("text_value") as ITextFieldWindow); if (k) { k.addEventListener(WindowKeyboardEvent._SafeStr_5383, this._SafeStr_6036); }; events.addEventListener(_SafeStr_5151._SafeStr_6025, this._SafeStr_6026); events.addEventListener(_SafeStr_5151._SafeStr_6027, this._SafeStr_6028); events.addEventListener(_SafeStr_5151._SafeStr_6029, this._SafeStr_6030); events.addEventListener(_SafeStr_5151._SafeStr_6031, this._SafeStr_6032); events.addEventListener(_SafeStr_5151._SafeStr_6033, this._SafeStr_6034); this._SafeStr_6018 = new Timer(_SafeStr_6015); this._SafeStr_6018.addEventListener(TimerEvent.TIMER, this._SafeStr_6037); this._SafeStr_6024 = window.findChildByName("promo.info"); return (true); } private function refresh():void{ var k:int; this._SafeStr_6017 = Math.max(this._SafeStr_6017, this._SafeStr_5926); this._SafeStr_6017 = Math.min(this._SafeStr_6017, this._SafeStr_5927); events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6038, this._SafeStr_6017)); this._SafeStr_6039(this._SafeStr_6017.toString()); if (this._SafeStr_6024) { k = this._SafeStr_5539.utils._SafeStr_6040(this._SafeStr_6017); window.findChildByName("discountContainer").visible = (k > 0); this._SafeStr_5539.localization.registerParameter("catalog.bundlewidget.discount", "amount", k.toString()); }; } private function _SafeStr_6026(k:_SafeStr_5151):void{ this._SafeStr_6017 = k.value; if (k._SafeStr_6041 != null) { this._SafeStr_6023 = k._SafeStr_6041; }; this.refresh(); } private function _SafeStr_6028(k:_SafeStr_5151):void{ window.visible = true; } private function _SafeStr_6030(k:_SafeStr_5151):void{ window.visible = false; } private function _SafeStr_6032(k:_SafeStr_5151):void{ this._SafeStr_5927 = k.value; } private function _SafeStr_6034(k:_SafeStr_5151):void{ this._SafeStr_5926 = k.value; } private function _SafeStr_6037(k:TimerEvent):void{ if (disposed) { return; }; this._SafeStr_6021 = true; if (this._SafeStr_6019) { this._SafeStr_6042(); if ((this._SafeStr_6017 - this._SafeStr_6022) > _SafeStr_6016) { this._SafeStr_6042(); }; }; if (this._SafeStr_6020) { this._SafeStr_6043(); if ((this._SafeStr_6022 - this._SafeStr_6017) > _SafeStr_6016) { this._SafeStr_6043(); }; }; this.refresh(); } private function _SafeStr_6042():void{ var k:int = (this._SafeStr_6017 + 1); while (this._SafeStr_6023.indexOf(k) != -1) { k++; }; this._SafeStr_6017 = k; } private function _SafeStr_6043():void{ var k:int = (this._SafeStr_6017 - 1); while (this._SafeStr_6023.indexOf(k) != -1) { k--; }; this._SafeStr_6017 = k; } private function _SafeStr_6039(k:String):void{ if (_SafeStr_5322 == null) { return; }; if ((_SafeStr_5322.findChildByName("text_value") is ITextFieldWindow)) { if (_SafeStr_5322.findChildByName("text_value").caption.length > 0) { _SafeStr_5322.findChildByName("text_value").caption = k; }; } else { _SafeStr_5322.findChildByName("text_value").caption = k; }; } private function _SafeStr_6035(k:WindowEvent, _arg_2:IWindow=null):void{ if (!k) { return; }; if (((((((!((k.type == WindowMouseEvent.CLICK))) && (!((k.type == WindowMouseEvent.DOWN))))) && (!((k.type == WindowMouseEvent.UP))))) && (!((k.type == WindowMouseEvent._SafeStr_6044))))) { return; }; switch (k.target.name) { case "button_less": switch (k.type) { case WindowMouseEvent.DOWN: this._SafeStr_6020 = true; this._SafeStr_6022 = this._SafeStr_6017; this._SafeStr_6018.start(); break; case WindowMouseEvent.UP: case WindowMouseEvent._SafeStr_6044: this._SafeStr_6020 = false; this._SafeStr_6018.stop(); break; case WindowMouseEvent.CLICK: if (!this._SafeStr_6021) { this._SafeStr_6043(); }; this.refresh(); this._SafeStr_6021 = false; break; }; return; case "button_more": switch (k.type) { case WindowMouseEvent.DOWN: this._SafeStr_6019 = true; this._SafeStr_6022 = this._SafeStr_6017; this._SafeStr_6018.start(); break; case WindowMouseEvent.UP: case WindowMouseEvent._SafeStr_6044: this._SafeStr_6019 = false; this._SafeStr_6018.stop(); break; case WindowMouseEvent.CLICK: if (!this._SafeStr_6021) { this._SafeStr_6042(); }; this.refresh(); this._SafeStr_6021 = false; break; }; return; }; } private function _SafeStr_6036(k:WindowKeyboardEvent):void{ this._SafeStr_6017 = parseInt(k.target.caption); this.refresh(); } } }//package _-0bT // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4816 = "_-1N" (String#16920, DoABC#3) // _SafeStr_5151 = "_-56U" (String#2030, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5383 = "_-1ON" (String#3499, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5812 = "_-3TO" (String#11416, DoABC#3) // _SafeStr_5926 = "_-22u" (String#2671, DoABC#3) // _SafeStr_5927 = "_-1uW" (String#2807, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_6000 = "_-5R4" (String#20572, DoABC#3) // _SafeStr_6015 = "_-2p8" (String#21603, DoABC#3) // _SafeStr_6016 = "_-30x" (String#18119, DoABC#3) // _SafeStr_6017 = "_-2m7" (String#1146, DoABC#3) // _SafeStr_6018 = "_-4hs" (String#8630, DoABC#3) // _SafeStr_6019 = "_-1RV" (String#22537, DoABC#3) // _SafeStr_6020 = "_-1m4" (String#24477, DoABC#3) // _SafeStr_6021 = "_-4pN" (String#13859, DoABC#3) // _SafeStr_6022 = "_-0Ci" (String#19441, DoABC#3) // _SafeStr_6023 = "_-0ID" (String#10533, DoABC#3) // _SafeStr_6024 = "_-6V0" (String#30134, DoABC#3) // _SafeStr_6025 = "_-2hR" (String#4935, DoABC#3) // _SafeStr_6026 = "_-0AQ" (String#28903, DoABC#3) // _SafeStr_6027 = "_-5Pp" (String#4787, DoABC#3) // _SafeStr_6028 = "_-5t9" (String#16484, DoABC#3) // _SafeStr_6029 = "_-5p0" (String#2386, DoABC#3) // _SafeStr_6030 = "_-5ZJ" (String#15081, DoABC#3) // _SafeStr_6031 = "_-50A" (String#14824, DoABC#3) // _SafeStr_6032 = "_-2hb" (String#30093, DoABC#3) // _SafeStr_6033 = "_-3xB" (String#14782, DoABC#3) // _SafeStr_6034 = "_-4IL" (String#31855, DoABC#3) // _SafeStr_6035 = "_-4zY" (String#38884, DoABC#3) // _SafeStr_6036 = "_-4lU" (String#38243, DoABC#3) // _SafeStr_6037 = "_-2Yx" (String#32196, DoABC#3) // _SafeStr_6038 = "_-1Pq" (String#6238, DoABC#3) // _SafeStr_6039 = "_-37b" (String#32948, DoABC#3) // _SafeStr_6040 = "_-4gR" (String#28618, DoABC#3) // _SafeStr_6041 = "_-3QC" (String#31109, DoABC#3) // _SafeStr_6042 = "_-6L4" (String#24842, DoABC#3) // _SafeStr_6043 = "_-1LY" (String#25207, DoABC#3) // _SafeStr_6044 = "_-4SR" (String#4150, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4817 package _-0bT{ import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_5155; public class _SafeStr_4817 extends _SafeStr_3460 implements _SafeStr_3459 { public function _SafeStr_4817(k:IWindowContainer){ super(k); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5322.findChildByName("warning_text").caption = ""; events.addEventListener(_SafeStr_3451._SafeStr_6045, this._SafeStr_6046); return (true); } private function _SafeStr_6046(k:_SafeStr_5155):void{ _SafeStr_5322.findChildByName("warning_text").caption = k.text; } } }//package _-0bT // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4817 = "_-1X2" (String#18356, DoABC#3) // _SafeStr_5155 = "_-4KT" (String#11605, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_6045 = "_-0ko" (String#19633, DoABC#3) // _SafeStr_6046 = "_-6Ea" (String#38728, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4818 package _-0bT{ import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-6Tv._SafeStr_3453; import _-6Sj._SafeStr_2600; import _-4-i._SafeStr_2445; public class _SafeStr_4818 extends _SafeStr_3460 implements _SafeStr_3459 { public function _SafeStr_4818(k:IWindowContainer){ super(k); } override public function dispose():void{ if (!disposed) { events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5966); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); return (true); } private function _SafeStr_6047(k:_SafeStr_2445):void{ var _local_2:_SafeStr_3453; if (((!(disposed)) && (k.offer._SafeStr_6048))) { _local_2 = (_SafeStr_2600(_SafeStr_5322.findChildByName("badge")).widget as _SafeStr_3453); if (_local_2 != null) { _local_2.badgeId = k.offer._SafeStr_6048; }; }; } } }//package _-0bT // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3453 = "_-3ev" (String#1214, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4818 = "_-5jv" (String#21071, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5966 = "_-0bF" (String#19942, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4819 package _-0bT{ import _-0B0._SafeStr_2403; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-6Sj._SafeStr_2600; import _-6Tv._SafeStr_3453; import _-4-i._SafeStr_4804; public class _SafeStr_4819 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6049:_SafeStr_2403; public function _SafeStr_4819(k:IWindowContainer, _arg_2:_SafeStr_2403){ super(k); this._SafeStr_6049 = _arg_2; } override public function dispose():void{ if (!disposed) { this._SafeStr_6049 = null; super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5977); events.addEventListener(_SafeStr_3451.GUILD_SELECTED, this._SafeStr_6050); return (true); } private function _SafeStr_6050(k:_SafeStr_4804):void{ if (disposed) { return; }; var _local_2:_SafeStr_3453 = (_SafeStr_2600(_SafeStr_5322.findChildByName("badge")).widget as _SafeStr_3453); if (_local_2 != null) { _local_2.badgeId = k._SafeStr_6048; _local_2.groupId = k._SafeStr_6051; }; } } }//package _-0bT // _SafeStr_2403 = "_-68A" (String#6448, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3453 = "_-3ev" (String#1214, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4804 = "_-4m" (String#6689, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4819 = "_-4VL" (String#18034, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5977 = "_-57I" (String#18024, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) // _SafeStr_6049 = "_-6lI" (String#7726, DoABC#3) // _SafeStr_6050 = "_-507" (String#23256, DoABC#3) // _SafeStr_6051 = "_-3hg" (String#4984, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4820 package _-0bT{ import _-3WJ.HabboCatalog; import _-29V.IWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_5151; import _-4-i._SafeStr_3451; import flash.events.Event; import _-4-i._SafeStr_2445; import _-0Cn._SafeStr_2479; import _-6Sj.ITextWindow; import _-6Sj.IItemListWindow; public class _SafeStr_4820 extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6052:String = "totalprice_container"; private static const _SafeStr_6053:String = "plus"; private static const _SafeStr_6054:String = "amount_text_left"; private static const _SafeStr_6055:String = "amount_text_right"; private static const _SafeStr_6056:String = "total_left"; private static const _SafeStr_6057:String = "total_right"; private static const _SafeStr_6058:String = "currency_indicator_bitmap_left"; private static const _SafeStr_6059:String = "currency_indicator_bitmap_right"; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6060:int; private var _SafeStr_6061:int; private var _SafeStr_6062:int; private var _SafeStr_6063:IWindow; private var _SafeStr_6064:IWindow; private var _SafeStr_6065:IWindowContainer; private var _SafeStr_6066:IWindowContainer; private var _SafeStr_5785:int = 1; public function _SafeStr_4820(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { this._SafeStr_5539 = null; events.removeEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6067); events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6068); this.clear(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_6001); window.visible = false; if (!this._SafeStr_5539._SafeStr_5812) { return (true); }; events.addEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6067); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6068); events.dispatchEvent(new Event(_SafeStr_3451.TOTAL_PRICE_WIDGET_INITIALIZED)); return (true); } private function _SafeStr_6067(k:_SafeStr_5151):void{ this._SafeStr_5785 = k.value; this._SafeStr_6069(); } private function _SafeStr_6068(k:_SafeStr_2445):void{ window.visible = k.offer._SafeStr_5796; this._SafeStr_6060 = k.offer.priceInCredits; this._SafeStr_6061 = k.offer.priceInActivityPoints; this._SafeStr_6062 = k.offer.activityPointType; this._SafeStr_5785 = 1; this.clear(); this._SafeStr_6070(); this._SafeStr_6069(); } private function clear():void{ this._SafeStr_6063 = null; this._SafeStr_6064 = null; this._SafeStr_6065 = null; this._SafeStr_6066 = null; _SafeStr_5322.findChildByName(_SafeStr_6053).visible = false; _SafeStr_5322.findChildByName(_SafeStr_6054).visible = false; if (_SafeStr_5322.findChildByName(_SafeStr_6056)) { _SafeStr_5322.findChildByName(_SafeStr_6056).visible = false; }; if (_SafeStr_5322.findChildByName(_SafeStr_6057)) { _SafeStr_5322.findChildByName(_SafeStr_6057).visible = false; }; _SafeStr_5322.findChildByName(_SafeStr_6058).visible = false; } private function _SafeStr_6069():void{ var _local_5:IWindow; var _local_6:IWindow; var k:int = (this._SafeStr_5785 * this._SafeStr_6060); var _local_2:int = (this._SafeStr_5785 * this._SafeStr_6061); var _local_3:int = k; var _local_4:int = _local_2; if (this._SafeStr_5539._SafeStr_5795) { _local_3 = this._SafeStr_5539.utils._SafeStr_6071(true, this._SafeStr_6060, this._SafeStr_5785); _local_4 = this._SafeStr_5539.utils._SafeStr_6071(true, this._SafeStr_6061, this._SafeStr_5785); }; if (this._SafeStr_6063 != null) { this._SafeStr_6063.caption = ((this._SafeStr_5539._SafeStr_5795) ? _local_3.toString() : k.toString()); }; if (this._SafeStr_6064 != null) { this._SafeStr_6064.caption = ((this._SafeStr_5539._SafeStr_5795) ? _local_4.toString() : _local_2.toString()); }; if (this._SafeStr_6065) { this._SafeStr_6065.visible = !((k == _local_3)); _local_5 = this._SafeStr_6065.findChildByName("text"); _local_5.caption = ((this._SafeStr_6065.visible) ? k.toString() : "0"); this._SafeStr_6065.findChildByName("strike").width = _local_5.width; }; if (this._SafeStr_6066) { this._SafeStr_6066.visible = !((_local_2 == _local_4)); _local_6 = this._SafeStr_6066.findChildByName("text"); _local_6.caption = ((this._SafeStr_6066.visible) ? _local_2.toString() : "0"); this._SafeStr_6066.findChildByName("strike").width = _local_6.width; }; } private function _SafeStr_6070():void{ var k:IWindow; var _local_2:IWindow; if (this._SafeStr_6060 > 0) { if (this._SafeStr_6061 > 0) { this._SafeStr_6063 = _SafeStr_5322.findChildByName(_SafeStr_6054); this._SafeStr_6063.visible = true; this._SafeStr_6065 = (_SafeStr_5322.findChildByName(_SafeStr_6056) as IWindowContainer); if (this._SafeStr_6065) { this._SafeStr_6065.visible = false; }; k = _SafeStr_5322.findChildByName(_SafeStr_6058); k.visible = true; _SafeStr_5322.findChildByName("plus").visible = true; } else { this._SafeStr_6063 = _SafeStr_5322.findChildByName(_SafeStr_6055); this._SafeStr_6065 = (_SafeStr_5322.findChildByName(_SafeStr_6057) as IWindowContainer); if (this._SafeStr_6065) { this._SafeStr_6065.visible = false; }; k = _SafeStr_5322.findChildByName(_SafeStr_6059); }; if (page.acceptSeasonCurrencyAsCredits) { k.style = _SafeStr_2479._SafeStr_6014(this._SafeStr_5539._SafeStr_6072(), this._SafeStr_5539, true, true); k.width = 53; } else { k.style = _SafeStr_2479._SafeStr_6014(-1, this._SafeStr_5539, true); k.width = 22; }; }; if (this._SafeStr_6061 > 0) { this._SafeStr_6064 = ITextWindow(_SafeStr_5322.findChildByName(_SafeStr_6055)); this._SafeStr_6066 = (_SafeStr_5322.findChildByName(_SafeStr_6056) as IWindowContainer); if (this._SafeStr_6066) { this._SafeStr_6066.visible = false; }; _local_2 = _SafeStr_5322.findChildByName(_SafeStr_6059); _local_2.style = _SafeStr_2479._SafeStr_6014(this._SafeStr_6062, this._SafeStr_5539, true); }; IItemListWindow(_SafeStr_5322.findChildByName(_SafeStr_6052)).arrangeListItems(); } } }//package _-0bT // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2479 = "_-0Ep" (String#3035, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4820 = "_-67h" (String#15902, DoABC#3) // _SafeStr_5151 = "_-56U" (String#2030, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5785 = "_-5g8" (String#2600, DoABC#3) // _SafeStr_5795 = "_-6fU" (String#11006, DoABC#3) // _SafeStr_5796 = "_-1ly" (String#4673, DoABC#3) // _SafeStr_5812 = "_-3TO" (String#11416, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_6001 = "_-4yU" (String#20150, DoABC#3) // _SafeStr_6014 = "_-22C" (String#6724, DoABC#3) // _SafeStr_6038 = "_-1Pq" (String#6238, DoABC#3) // _SafeStr_6052 = "_-5Q7" (String#10215, DoABC#3) // _SafeStr_6053 = "_-5QA" (String#22900, DoABC#3) // _SafeStr_6054 = "_-0l" (String#9052, DoABC#3) // _SafeStr_6055 = "_-15J" (String#8243, DoABC#3) // _SafeStr_6056 = "_-1WO" (String#11494, DoABC#3) // _SafeStr_6057 = "_-3Hk" (String#14903, DoABC#3) // _SafeStr_6058 = "_-zx" (String#19214, DoABC#3) // _SafeStr_6059 = "_-4B2" (String#9238, DoABC#3) // _SafeStr_6060 = "_-1uj" (String#8821, DoABC#3) // _SafeStr_6061 = "_-9C" (String#8554, DoABC#3) // _SafeStr_6062 = "_-1lf" (String#15897, DoABC#3) // _SafeStr_6063 = "_-0Ku" (String#12116, DoABC#3) // _SafeStr_6064 = "_-Kx" (String#19749, DoABC#3) // _SafeStr_6065 = "_-1nr" (String#6374, DoABC#3) // _SafeStr_6066 = "_-0pF" (String#8062, DoABC#3) // _SafeStr_6067 = "_-1JN" (String#27104, DoABC#3) // _SafeStr_6068 = "_-45G" (String#31127, DoABC#3) // _SafeStr_6069 = "_-2RD" (String#29814, DoABC#3) // _SafeStr_6070 = "_-2sE" (String#21729, DoABC#3) // _SafeStr_6071 = "_-0x3" (String#5958, DoABC#3) // _SafeStr_6072 = "_-1wH" (String#30524, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4821 package _-0bT{ import _-3WJ.HabboCatalog; import _-64Q._SafeStr_5159; import _-3WJ._SafeStr_2399; import flash.utils.Timer; import _-6Tv._SafeStr_3698; import _-29V.IWindowContainer; import flash.events.TimerEvent; import _-4-i._SafeStr_3451; import _-6Sj._SafeStr_2600; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_4833; import _-En._SafeStr_2382; import _-En.Offer; public class _SafeStr_4821 extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6073:int = 20000; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6074:_SafeStr_5159; private var _SafeStr_6075:_SafeStr_2399; private var _SafeStr_6076:Timer; private var _SafeStr_6077:_SafeStr_3698; public function _SafeStr_4821(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { if (this._SafeStr_6076 != null) { this._SafeStr_6076.stop(); this._SafeStr_6076.removeEventListener(TimerEvent.TIMER, this._SafeStr_6078); this._SafeStr_6076 = null; }; window.visible = false; this._SafeStr_5539 = null; this._SafeStr_6075 = null; if (this._SafeStr_6074) { this._SafeStr_6074.dispose(); this._SafeStr_6074 = null; }; events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.removeEventListener(_SafeStr_3451._SafeStr_6079, this._SafeStr_6080); super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; var k:_SafeStr_2600 = _SafeStr_2600(_SafeStr_5322.findChildByName("unique_item_overlay_container")); this._SafeStr_6077 = _SafeStr_3698(k.widget); window.visible = false; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451._SafeStr_6079, this._SafeStr_6080); this._SafeStr_6076 = new Timer(_SafeStr_6073); this._SafeStr_6076.addEventListener(TimerEvent.TIMER, this._SafeStr_6078); return (true); } private function _SafeStr_6047(k:_SafeStr_2445):void{ if (k == null) { return; }; this._SafeStr_6075 = k.offer; this.update(k.offer, true); } private function _SafeStr_6080(k:_SafeStr_4833):void{ this._SafeStr_6075 = k.offer; this.update(k.offer); } private function update(k:_SafeStr_2399, _arg_2:Boolean=false):void{ var _local_3:_SafeStr_2382; if ((((k._SafeStr_6081 == Offer._SafeStr_6082)) && (k.product.isUniqueLimitedItem))) { _local_3 = k.product; this._SafeStr_6077._SafeStr_6083 = _local_3.uniqueLimitedItemsLeft; this._SafeStr_6077._SafeStr_6084 = _local_3.uniqueLimitedItemSeriesSize; window.visible = true; if (_arg_2) { this._SafeStr_5539.sendGetProductOffer(k._SafeStr_5719); }; this._SafeStr_6076.start(); } else { window.visible = false; this._SafeStr_6076.stop(); }; } private function _SafeStr_6078(k:TimerEvent):void{ if (((_SafeStr_5322.visible) && (!((this._SafeStr_6075 == null))))) { this.update(this._SafeStr_6075, true); }; } } }//package _-0bT // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3698 = "_-6RL" (String#10151, DoABC#3) // _SafeStr_4821 = "_-351" (String#15236, DoABC#3) // _SafeStr_4833 = "_-59s" (String#14730, DoABC#3) // _SafeStr_5159 = "_-49A" (String#18547, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6073 = "_-6Yt" (String#21804, DoABC#3) // _SafeStr_6074 = "_-y" (String#12165, DoABC#3) // _SafeStr_6075 = "_-0dU" (String#14924, DoABC#3) // _SafeStr_6076 = "_-259" (String#9164, DoABC#3) // _SafeStr_6077 = "_-3jv" (String#23109, DoABC#3) // _SafeStr_6078 = "_-5z8" (String#31143, DoABC#3) // _SafeStr_6079 = "_-6ZV" (String#15979, DoABC#3) // _SafeStr_6080 = "_-4Fo" (String#30015, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6082 = "_-5EF" (String#8194, DoABC#3) // _SafeStr_6083 = "_-01F" (String#20695, DoABC#3) // _SafeStr_6084 = "_-2On" (String#5737, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4822 package _-0bT{ import _-6Sj.IButtonWindow; import _-6Sj.ITextFieldWindow; import _-29V.IWindowContainer; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowKeyboardEvent; import flash.ui.Keyboard; import _-5Vh.WindowEvent; import _-29V.IWindow; import _-64Q._SafeStr_2464; public class _SafeStr_4822 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6085:IButtonWindow; private var _SafeStr_6086:ITextFieldWindow; public function _SafeStr_4822(k:IWindowContainer){ super(k); } override public function dispose():void{ super.dispose(); if (this._SafeStr_6085 != null) { this._SafeStr_6085.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_6087); this._SafeStr_6085 = null; }; if (this._SafeStr_6086 != null) { this._SafeStr_6086.removeEventListener(WindowKeyboardEvent._SafeStr_6088, this._SafeStr_6089); this._SafeStr_6086 = null; }; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6085 = (_SafeStr_5322.findChildByName("redeem") as IButtonWindow); if (this._SafeStr_6085 != null) { this._SafeStr_6085.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6087); }; this._SafeStr_6086 = (_SafeStr_5322.findChildByName("voucher_code") as ITextFieldWindow); if (this._SafeStr_6086 != null) { this._SafeStr_6086.addEventListener(WindowKeyboardEvent._SafeStr_6088, this._SafeStr_6089); }; return (true); } private function _SafeStr_6087(k:WindowMouseEvent):void{ this.redeem(); } private function _SafeStr_6089(k:WindowEvent=null, _arg_2:IWindow=null):void{ var _local_3:WindowKeyboardEvent = (k as WindowKeyboardEvent); if (_local_3.charCode == Keyboard.ENTER) { this.redeem(); }; } private function redeem():void{ var voucher:String; var input:IWindow = _SafeStr_5322.findChildByName("voucher_code"); if (input != null) { voucher = input.caption; if (voucher.length > 0) { page.viewer.catalog.redeemVoucher(voucher); input.caption = ""; } else { page.viewer.catalog.windowManager.alert("${catalog.voucher.empty.title}", "${catalog.voucher.empty.desc}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); }; }; } } }//package _-0bT // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4822 = "_-2Yj" (String#18915, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_6085 = "_-01n" (String#11708, DoABC#3) // _SafeStr_6086 = "_-4U0" (String#12133, DoABC#3) // _SafeStr_6087 = "_-579" (String#31634, DoABC#3) // _SafeStr_6088 = "_-3XU" (String#4606, DoABC#3) // _SafeStr_6089 = "_-2i4" (String#14897, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4823 package _-0bT{ import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_2445; public class _SafeStr_4823 extends _SafeStr_3460 implements _SafeStr_3459 { public function _SafeStr_4823(k:IWindowContainer){ super(k); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5999); _SafeStr_5322.findChildByName("ctlg_special_txt").caption = ""; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); return (true); } private function _SafeStr_6090(k:_SafeStr_2445):void{ if (k == null) { return; }; _SafeStr_5322.visible = false; } } }//package _-0bT // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4823 = "_-0NK" (String#19092, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5999 = "_-2Kt" (String#18232, DoABC#3) // _SafeStr_6090 = "_-6DS" (String#6426, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4824 package _-0bT{ import _-3WJ.HabboCatalog; import _-37O._SafeStr_5163; import flash.utils.Timer; import _-29V.IWindowContainer; import flash.events.TimerEvent; import _-4-i._SafeStr_5156; import _-4-i._SafeStr_5151; import _-37O._SafeStr_5157; import _-37O._SafeStr_5162; public class _SafeStr_4824 extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6091:uint = 4000; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6092:_SafeStr_5163; private var _SafeStr_6093:int = 1; private var _SafeStr_6060:int; private var _SafeStr_6061:int; private var _SafeStr_6062:int; private var _SafeStr_6094:String; private var _SafeStr_6095:int = -1; private var _SafeStr_6096:int = -1; private var _SafeStr_6097:int = -1; private var _SafeStr_6098:Boolean = false; private var _SafeStr_6099:Timer; public function _SafeStr_4824(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { this._SafeStr_6092.dispose(); this._SafeStr_6092 = null; this._SafeStr_5539 = null; this._SafeStr_6099.stop(); this._SafeStr_6099.removeEventListener(TimerEvent.TIMER_COMPLETE, this._SafeStr_6100); this._SafeStr_6099 = null; events.removeEventListener(_SafeStr_5156._SafeStr_6025, this._SafeStr_6101); events.removeEventListener(_SafeStr_5156._SafeStr_6029, this._SafeStr_6030); events.removeEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6102); events.removeEventListener(_SafeStr_5156._SafeStr_6103, this._SafeStr_6104); super.dispose(); }; } override public function init():Boolean{ if (!((this._SafeStr_5539._SafeStr_5812) && (this._SafeStr_5539._SafeStr_5795))) { return (true); }; this._SafeStr_6092 = new _SafeStr_5163(this, this._SafeStr_5539); events.addEventListener(_SafeStr_5156._SafeStr_6025, this._SafeStr_6101); events.addEventListener(_SafeStr_5156._SafeStr_6029, this._SafeStr_6030); events.addEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6102); events.addEventListener(_SafeStr_5156._SafeStr_6103, this._SafeStr_6104); this._SafeStr_6099 = new Timer(_SafeStr_6091, 1); this._SafeStr_6099.addEventListener(TimerEvent.TIMER_COMPLETE, this._SafeStr_6100); return (true); } private function _SafeStr_6105():void{ var k:_SafeStr_5157 = new _SafeStr_5157(_SafeStr_5157._SafeStr_6106); k.quantity = this._SafeStr_6093; this._SafeStr_6095 = this._SafeStr_6092._SafeStr_6107(k); } private function _SafeStr_6108(k:int):void{ var _local_2:_SafeStr_5162; var _local_3:_SafeStr_5157; if (this._SafeStr_6095 != -1) { _local_2 = _SafeStr_5162(this._SafeStr_6092._SafeStr_6109(this._SafeStr_6095)); _local_3 = _local_2.data; _local_3.quantity = k; _local_2.update(_local_3); }; } private function _SafeStr_6110():void{ if (this._SafeStr_6095 != -1) { this._SafeStr_6092._SafeStr_6111(this._SafeStr_6095); this._SafeStr_6095 = -1; }; } private function _SafeStr_6112():void{ var k:_SafeStr_5157 = new _SafeStr_5157(_SafeStr_5157._SafeStr_6113); k.quantity = this._SafeStr_6093; k.priceActivityPoints = this._SafeStr_6061; k.activityPointType = this._SafeStr_6062; k.priceCredits = this._SafeStr_6060; this._SafeStr_6096 = this._SafeStr_6092._SafeStr_6107(k); this._SafeStr_5539.utils._SafeStr_6114(); } private function _SafeStr_6115(k:int):void{ var _local_2:_SafeStr_5162; var _local_3:_SafeStr_5157; if (this._SafeStr_6096 != -1) { _local_2 = _SafeStr_5162(this._SafeStr_6092._SafeStr_6109(this._SafeStr_6096)); _local_3 = _local_2.data; _local_3.quantity = k; _local_3.discountPriceCredits = this._SafeStr_5539.utils._SafeStr_6071(true, this._SafeStr_6060, k); _local_3.discountPriceActivityPoints = this._SafeStr_5539.utils._SafeStr_6071(true, this._SafeStr_6061, k); _local_2.update(_local_3); }; } private function _SafeStr_6116():void{ if (this._SafeStr_6096 != -1) { this._SafeStr_6092._SafeStr_6111(this._SafeStr_6096); this._SafeStr_6096 = -1; }; } private function _SafeStr_6117():void{ var k:_SafeStr_5157 = new _SafeStr_5157(_SafeStr_5157._SafeStr_6118); this._SafeStr_6097 = this._SafeStr_6092._SafeStr_6107(k); this._SafeStr_5539.utils._SafeStr_6119(); } private function _SafeStr_6120():void{ if (this._SafeStr_6097 != -1) { this._SafeStr_6092._SafeStr_6111(this._SafeStr_6097); this._SafeStr_6097 = -1; }; } private function _SafeStr_6101(k:_SafeStr_5156):void{ if (disposed) { return; }; window.visible = true; this._SafeStr_6060 = k.data.priceCredits; this._SafeStr_6061 = k.data.priceActivityPoints; this._SafeStr_6062 = k.data.activityPointType; this._SafeStr_6094 = k.data._SafeStr_6048; this._SafeStr_6092.clear(); this._SafeStr_6096 = -1; this._SafeStr_6095 = -1; this._SafeStr_6099.start(); } private function _SafeStr_6102(k:_SafeStr_5151):void{ if (disposed) { return; }; if (!this._SafeStr_5539._SafeStr_6121) { return; }; if (k.type == _SafeStr_5151._SafeStr_6038) { if (k.value != this._SafeStr_6093) { if ((((k.value >= this._SafeStr_5539._SafeStr_6121._SafeStr_6122)) && ((this._SafeStr_6096 == -1)))) { this._SafeStr_6112(); } else { if (k.value < this._SafeStr_5539._SafeStr_6121._SafeStr_6122) { this._SafeStr_6116(); }; }; this._SafeStr_6108(k.value); this._SafeStr_6115(k.value); this._SafeStr_6093 = k.value; this._SafeStr_6120(); if (this._SafeStr_6093 >= this._SafeStr_5539.utils._SafeStr_6123) { this._SafeStr_6110(); this._SafeStr_6098 = true; } else { if (this._SafeStr_6098) { this._SafeStr_6105(); this._SafeStr_6098 = false; }; }; this._SafeStr_5539.utils._SafeStr_6124(); }; }; } private function _SafeStr_6030(k:_SafeStr_5156):void{ window.visible = false; } private function _SafeStr_6104(k:_SafeStr_5156):void{ switch (k.id) { case this._SafeStr_6095: if (this._SafeStr_6097 == -1) { this._SafeStr_6117(); }; return; case this._SafeStr_6097: this._SafeStr_6120(); return; }; } private function _SafeStr_6100(k:TimerEvent):void{ this._SafeStr_6105(); } } }//package _-0bT // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4824 = "_-3-T" (String#5786, DoABC#3) // _SafeStr_5151 = "_-56U" (String#2030, DoABC#3) // _SafeStr_5156 = "_-09s" (String#3807, DoABC#3) // _SafeStr_5157 = "_-2w1" (String#2222, DoABC#3) // _SafeStr_5162 = "_-52t" (String#4658, DoABC#3) // _SafeStr_5163 = "_-4eh" (String#12732, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5795 = "_-6fU" (String#11006, DoABC#3) // _SafeStr_5812 = "_-3TO" (String#11416, DoABC#3) // _SafeStr_6025 = "_-2hR" (String#4935, DoABC#3) // _SafeStr_6029 = "_-5p0" (String#2386, DoABC#3) // _SafeStr_6030 = "_-5ZJ" (String#15081, DoABC#3) // _SafeStr_6038 = "_-1Pq" (String#6238, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) // _SafeStr_6060 = "_-1uj" (String#8821, DoABC#3) // _SafeStr_6061 = "_-9C" (String#8554, DoABC#3) // _SafeStr_6062 = "_-1lf" (String#15897, DoABC#3) // _SafeStr_6071 = "_-0x3" (String#5958, DoABC#3) // _SafeStr_6091 = "_-2JQ" (String#25493, DoABC#3) // _SafeStr_6092 = "_-49M" (String#6525, DoABC#3) // _SafeStr_6093 = "_-0xT" (String#15406, DoABC#3) // _SafeStr_6094 = "_-gy" (String#32726, DoABC#3) // _SafeStr_6095 = "_-5LT" (String#9714, DoABC#3) // _SafeStr_6096 = "_-2vo" (String#9470, DoABC#3) // _SafeStr_6097 = "_-1gN" (String#13037, DoABC#3) // _SafeStr_6098 = "_-38H" (String#22261, DoABC#3) // _SafeStr_6099 = "_-60W" (String#12332, DoABC#3) // _SafeStr_6100 = "_-42X" (String#30924, DoABC#3) // _SafeStr_6101 = "_-6fG" (String#31732, DoABC#3) // _SafeStr_6102 = "_-5Bk" (String#15724, DoABC#3) // _SafeStr_6103 = "_-er" (String#11842, DoABC#3) // _SafeStr_6104 = "_-5BP" (String#29301, DoABC#3) // _SafeStr_6105 = "_-003" (String#27480, DoABC#3) // _SafeStr_6106 = "_-1jN" (String#18053, DoABC#3) // _SafeStr_6107 = "_-0EQ" (String#2705, DoABC#3) // _SafeStr_6108 = "_-6AC" (String#33536, DoABC#3) // _SafeStr_6109 = "_-Ti" (String#3147, DoABC#3) // _SafeStr_6110 = "_-63X" (String#37879, DoABC#3) // _SafeStr_6111 = "_-0T6" (String#4847, DoABC#3) // _SafeStr_6112 = "_-2c4" (String#32380, DoABC#3) // _SafeStr_6113 = "_-4js" (String#20909, DoABC#3) // _SafeStr_6114 = "_-2NB" (String#33725, DoABC#3) // _SafeStr_6115 = "_-2xy" (String#37062, DoABC#3) // _SafeStr_6116 = "_-3b5" (String#35307, DoABC#3) // _SafeStr_6117 = "_-4L3" (String#37142, DoABC#3) // _SafeStr_6118 = "_-2-b" (String#19754, DoABC#3) // _SafeStr_6119 = "_-5q" (String#36576, DoABC#3) // _SafeStr_6120 = "_-2ov" (String#30838, DoABC#3) // _SafeStr_6121 = "_-6gh" (String#7076, DoABC#3) // _SafeStr_6122 = "_-4fW" (String#12692, DoABC#3) // _SafeStr_6123 = "_-4sS" (String#38312, DoABC#3) // _SafeStr_6124 = "_-0zz" (String#38082, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4825 package _-0bT{ import _-1oV._SafeStr_3446; import _-En._SafeStr_5165; import _-29V.IWindowContainer; import _-1oV._SafeStr_2359; import _-En.PageLocalization; import _-29V.IWindow; import _-6Sj.IButtonWindow; import _-5Vh.WindowMouseEvent; import _-6Sj.IBitmapWrapperWindow; import flash.display.BitmapData; import _-1oV._SafeStr_3447; import _-5x9._SafeStr_2973; import flash.geom.Point; import _-3XT._SafeStr_2287; import _-5x9._SafeStr_2213; import _-5x9._SafeStr_2331; import _-5Vh.WindowEvent; import _-3XT._SafeStr_4446; import _-64Q._SafeStr_2464; public class _SafeStr_4825 extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3446 { private var _SafeStr_6125:_SafeStr_5165; public function _SafeStr_4825(k:IWindowContainer){ super(k); } private function get recycler():_SafeStr_2359{ return (page.viewer.catalog.getRecycler()); } override public function dispose():void{ if (this._SafeStr_6125 != null) { this._SafeStr_6125.dispose(); this._SafeStr_6125 = null; }; if (this.recycler != null) { this.recycler.cancel(); }; super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5989); window.findChildByName("inactive").visible = false; window.findChildByName("timeout").visible = false; window.findChildByName("normal").visible = false; if (this.recycler == null) { return (false); }; this.recycler.init(this); return (true); } public function _SafeStr_6126():void{ window.findChildByName("inactive").visible = true; window.findChildByName("timeout").visible = false; window.findChildByName("normal").visible = false; this._SafeStr_6127(); var k:IWindow = (window.parent as IWindowContainer).findChildByName(PageLocalization._SafeStr_6128); if (k != null) { k.caption = "${recycler.info.closed}"; }; } public function _SafeStr_6129(k:int):void{ var _local_2:String = String(int((k / 60))); var _local_3:String = String((k % 60)); page.viewer.catalog.localization.registerParameter("recycler.alert.timeout", "minutes", _local_2); page.viewer.catalog.localization.registerParameter("recycler.alert.timeout", "seconds", _local_3); window.findChildByName("inactive").visible = false; window.findChildByName("timeout").visible = true; window.findChildByName("normal").visible = false; var _local_4:IWindow = (window.parent as IWindowContainer).findChildByName(PageLocalization._SafeStr_6128); if (_local_4 != null) { _local_4.caption = "${recycler.alert.timeout}"; }; } public function _SafeStr_6130():void{ window.findChildByName("inactive").visible = true; window.findChildByName("timeout").visible = false; window.findChildByName("normal").visible = false; this._SafeStr_6127(); var k:IWindow = (window.parent as IWindowContainer).findChildByName(PageLocalization._SafeStr_6128); if (k != null) { k.caption = ""; }; } public function _SafeStr_6131():void{ window.findChildByName("inactive").visible = true; window.findChildByName("timeout").visible = false; window.findChildByName("normal").visible = false; this._SafeStr_6127(); var k:IWindow = (window.parent as IWindowContainer).findChildByName(PageLocalization._SafeStr_6128); if (k != null) { k.caption = "${recycler.info.finished}"; }; var _local_2:IButtonWindow = IButtonWindow(window.findChildByName("recycle_again_button")); _local_2.visible = true; _local_2.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6132); } public function _SafeStr_6133():void{ window.findChildByName("inactive").visible = false; window.findChildByName("timeout").visible = false; window.findChildByName("normal").visible = true; this._SafeStr_6127(); window.procedure = this._SafeStr_6134; window.parent.procedure = this._SafeStr_6134; var k:IWindow = (window.parent as IWindowContainer).findChildByName(PageLocalization._SafeStr_6128); if (k != null) { k.caption = "${recycler.info.ready}"; }; } private function _SafeStr_6127():void{ var _local_2:int; var _local_3:IBitmapWrapperWindow; var k:BitmapData = _SafeStr_5963("ctlg_recycler_slot_bg"); if (k == null) { return; }; _local_2 = 1; while (_local_2 <= this.recycler._SafeStr_6135) { _local_3 = (window.findChildByName(("slot_bg_" + _local_2)) as IBitmapWrapperWindow); if (_local_3 != null) { _local_3.bitmap = k.clone(); _local_3.procedure = this._SafeStr_6136; }; _local_2++; }; _local_2 = 1; while (_local_2 <= this.recycler._SafeStr_6135) { _local_3 = (window.findChildByName(("slot_img_" + _local_2)) as IBitmapWrapperWindow); if (_local_3 != null) { _local_3.bitmap = k.clone(); _local_3.procedure = this._SafeStr_6136; }; _local_2++; }; } public function _SafeStr_6137():void{ var _local_2:IBitmapWrapperWindow; var _local_3:_SafeStr_3447; var _local_4:_SafeStr_2973; var _local_5:BitmapData; var _local_6:Point; if ((((window == null)) || ((this.recycler == null)))) { return; }; var k:int; while (k < this.recycler._SafeStr_6135) { _local_2 = (window.findChildByName(("slot_img_" + (k + 1))) as IBitmapWrapperWindow); if (_local_2 == null) { return; }; _local_3 = this.recycler._SafeStr_6138(k); if (_local_3 == null) { _local_2.bitmap = new BitmapData(1, 1, true, 0xFFFFFF); } else { _local_4 = this._SafeStr_6139(_local_3); if (((!((_local_4 == null))) && (!((_local_4.data == null))))) { _local_5 = new BitmapData(_local_2.width, _local_2.height, true, 0xFFFFFF); _local_5.fillRect(_local_5.rect, 0xFFFFFF); _local_6 = new Point(((_local_2.width - _local_4.data.width) / 2), ((_local_2.height - _local_4.data.height) / 2)); _local_5.copyPixels(_local_4.data, _local_4.data.rect, _local_6, null, null, true); _local_2.bitmap = _local_5; _local_4.data.dispose(); }; }; k++; }; } private function _SafeStr_6139(k:_SafeStr_3447):_SafeStr_2973{ var _local_2:_SafeStr_2973; if ((((k == null)) || ((page.viewer.roomEngine == null)))) { return (null); }; if (k.category == _SafeStr_2287._SafeStr_5565) { return (page.viewer.roomEngine.getFurnitureIcon(k.typeId, null)); }; if (k.category == _SafeStr_2287._SafeStr_6140) { return (page.viewer.roomEngine.getWallItemIcon(k.typeId, null, k.xxxExtra)); }; return (null); } private function _SafeStr_6134(k:WindowEvent, _arg_2:IWindow):void{ var _local_3:_SafeStr_2213 = page.viewer.roomEngine; if (_local_3 == null) { return; }; var _local_4:_SafeStr_2331 = _local_3._SafeStr_6141(_local_3.activeRoomId); switch (k.type) { case WindowMouseEvent._SafeStr_5577: if (this._SafeStr_6125 != null) { this._SafeStr_6125._SafeStr_6142(); }; return; case WindowMouseEvent._SafeStr_6143: if (this._SafeStr_6125 != null) { this._SafeStr_6125._SafeStr_6134(k, _arg_2, _local_4); }; return; case WindowMouseEvent._SafeStr_5575: if (this._SafeStr_6125 == null) { this._SafeStr_6125 = new _SafeStr_5165(); this._SafeStr_6125.mainContainer = window; this._SafeStr_6125.roomEngine = _local_3; }; return; }; } private function _SafeStr_6136(event:WindowEvent, target:IWindow):void{ var slotId:int; var roomEngine:_SafeStr_2213 = page.viewer.roomEngine; if ((((roomEngine == null)) || ((this.recycler == null)))) { return; }; var objectData:_SafeStr_2331 = roomEngine._SafeStr_6141(roomEngine.activeRoomId); if (event.type == WindowMouseEvent.UP) { if (event.window.name.indexOf("slot_") == 0) { slotId = (int(event.window.name.charAt((event.window.name.length - 1))) - 1); if (objectData != null) { if (objectData.operation != _SafeStr_4446.OBJECT_PLACE) { page.viewer.catalog.windowManager.alert("${generic.alert.title}", "${catalog.alert.recycler.inventory}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; }; this.recycler._SafeStr_6144(slotId, objectData.id, objectData.category, objectData.typeId, objectData._SafeStr_6145); } else { this.recycler._SafeStr_6146(slotId); }; roomEngine._SafeStr_6147(); if (this._SafeStr_6125 != null) { this._SafeStr_6125._SafeStr_6142(); }; return; }; }; if (event.type == WindowMouseEvent._SafeStr_6143) { this._SafeStr_6134(event, target); }; } public function _SafeStr_6148(k:Boolean):void{ if (((disposed) || ((window == null)))) { return; }; var _local_2:IWindow = window.findChildByName("recycler_recycle"); if (_local_2 != null) { if (k) { _local_2.enable(); _local_2.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6149); } else { _local_2.disable(); }; }; } private function _SafeStr_6149(k:WindowMouseEvent):void{ if (this.recycler != null) { this.recycler._SafeStr_6150(); }; } private function _SafeStr_6132(k:WindowMouseEvent):void{ if (this.recycler != null) { this.recycler.empty(); this.recycler.init(this); }; } } }//package _-0bT // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2287 = "_-4-R" (String#406, DoABC#3) // _SafeStr_2331 = "_-6B0" (String#4479, DoABC#3) // _SafeStr_2359 = "_-2Zf" (String#8016, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3446 = "_-4BA" (String#10781, DoABC#3) // _SafeStr_3447 = "_-2cs" (String#4668, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4446 = "_-5Wy" (String#2029, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4825 = "_-2Pk" (String#15829, DoABC#3) // _SafeStr_5165 = "_-6Kj" (String#13205, DoABC#3) // _SafeStr_5565 = "_-4Rn" (String#1219, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5963 = "_-1yi" (String#30444, DoABC#3) // _SafeStr_5989 = "_-5Pl" (String#7831, DoABC#3) // _SafeStr_6125 = "_-1d4" (String#5830, DoABC#3) // _SafeStr_6126 = "_-0Sk" (String#24582, DoABC#3) // _SafeStr_6127 = "_-4kW" (String#20749, DoABC#3) // _SafeStr_6128 = "_-6A5" (String#4993, DoABC#3) // _SafeStr_6129 = "_-5Yq" (String#28447, DoABC#3) // _SafeStr_6130 = "_-0UJ" (String#29287, DoABC#3) // _SafeStr_6131 = "_-19w" (String#26791, DoABC#3) // _SafeStr_6132 = "_-6Qo" (String#32908, DoABC#3) // _SafeStr_6133 = "_-GU" (String#27296, DoABC#3) // _SafeStr_6134 = "_-4Tz" (String#14775, DoABC#3) // _SafeStr_6135 = "_-O1" (String#16777, DoABC#3) // _SafeStr_6136 = "_-3cj" (String#30193, DoABC#3) // _SafeStr_6137 = "_-1AZ" (String#19980, DoABC#3) // _SafeStr_6138 = "_-3JT" (String#21996, DoABC#3) // _SafeStr_6139 = "_-3wr" (String#9602, DoABC#3) // _SafeStr_6140 = "_-0Oj" (String#1464, DoABC#3) // _SafeStr_6141 = "_-0ZO" (String#4562, DoABC#3) // _SafeStr_6142 = "_-3ER" (String#26119, DoABC#3) // _SafeStr_6143 = "_-5fZ" (String#3247, DoABC#3) // _SafeStr_6144 = "_-4MD" (String#27561, DoABC#3) // _SafeStr_6145 = "_-6F6" (String#6488, DoABC#3) // _SafeStr_6146 = "_-29e" (String#15478, DoABC#3) // _SafeStr_6147 = "_-0Qt" (String#12303, DoABC#3) // _SafeStr_6148 = "_-68E" (String#29123, DoABC#3) // _SafeStr_6149 = "_-1B5" (String#34742, DoABC#3) // _SafeStr_6150 = "_-1gG" (String#29787, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4826 package _-0bT{ import _-4Y1._SafeStr_3; import _-3WJ.HabboCatalog; import _-3WJ._SafeStr_2399; import _-zX._SafeStr_3216; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-px._SafeStr_2388; import _-4-i._SafeStr_2468; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; import _-29V.IWindow; import _-4-i._SafeStr_2445; import _-6Sj._SafeStr_2434; import _-px._SafeStr_2437; import _-6Sj.IButtonWindow; public class _SafeStr_4826 extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6151:_SafeStr_2399; private var _SafeStr_6152:_SafeStr_3216; public function _SafeStr_4826(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; this._SafeStr_6152 = new _SafeStr_3216(this._SafeStr_6153); this._SafeStr_5539.connection.addMessageEvent(this._SafeStr_6152); } override public function dispose():void{ if (disposed) { return; }; if (((!((this._SafeStr_5539 == null))) && (!((this._SafeStr_5539.connection == null))))) { this._SafeStr_5539.connection.removeMessageEvent(this._SafeStr_6152); this._SafeStr_6152 = null; this._SafeStr_5539 = null; }; events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; if (this._SafeStr_5539.catalogType != _SafeStr_2388.BUILDER) { _SafeStr_5322.visible = false; return (true); }; _SafeStr_5962(_SafeStr_4805.BUILDER); this._SafeStr_6154(false); _SafeStr_5322.procedure = this._SafeStr_5753; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451._SafeStr_6155, this._SafeStr_6156); return (true); } private function _SafeStr_6156(k:_SafeStr_2468):void{ this._SafeStr_6154(false); } private function _SafeStr_6153(k:_SafeStr_3216):void{ if (this._SafeStr_5539.catalogType != _SafeStr_2388.BUILDER) { return; }; this._SafeStr_6154(true); } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (k.type != WindowMouseEvent.CLICK) { return; }; switch (_arg_2.name) { case "place_one": this._SafeStr_5539._SafeStr_6157(null, this._SafeStr_6151); return; case "place_many": this._SafeStr_5539._SafeStr_6157(null, this._SafeStr_6151, true); return; }; } private function _SafeStr_6047(k:_SafeStr_2445):void{ this._SafeStr_6151 = k.offer; this._SafeStr_6154(false); } private function _SafeStr_6154(k:Boolean):void{ var _local_3:_SafeStr_2434; var _local_4:IWindow; if (((!(_SafeStr_5322)) || (!(_SafeStr_5322.visible)))) { return; }; var _local_2:int = this._SafeStr_5539._SafeStr_6158(this._SafeStr_6151); if ((((_local_2 == _SafeStr_2437._SafeStr_6159)) && (k))) { _local_2 = _SafeStr_2437._SafeStr_6160; }; if (_local_2 == _SafeStr_2437._SafeStr_6160) { IButtonWindow(_SafeStr_5322.findChildByName("place_one")).enable(); IButtonWindow(_SafeStr_5322.findChildByName("place_many")).enable(); _SafeStr_5322.findChildByName("error_container").visible = false; } else { IButtonWindow(_SafeStr_5322.findChildByName("place_one")).disable(); IButtonWindow(_SafeStr_5322.findChildByName("place_many")).disable(); _SafeStr_5322.findChildByName("error_container").visible = true; _local_3 = (_SafeStr_5322.findChildByName("error_icon") as _SafeStr_2434); _local_4 = _SafeStr_5322.findChildByName("error_message"); switch (_local_2) { case _SafeStr_2437._SafeStr_6161: _SafeStr_5322.findChildByName("error_container").visible = false; return; case _SafeStr_2437._SafeStr_6162: _local_3.assetUri = "icons_builder_error_furnilimit"; _local_4.caption = "${builder.placement_widget.error.limit_reached}"; return; case _SafeStr_2437._SafeStr_6163: _local_3.assetUri = "icons_builder_error_notroom"; _local_4.caption = "${builder.placement_widget.error.not_in_room}"; return; case _SafeStr_2437._SafeStr_6159: _local_3.assetUri = "icons_builder_error_room"; _local_4.caption = "${builder.placement_widget.error.not_room_owner}"; return; case _SafeStr_2437._SafeStr_6164: _local_3.assetUri = "icons_builder_error_grouproom"; _local_4.caption = "${builder.placement_widget.error.group_room}"; return; case _SafeStr_2437._SafeStr_6165: _local_3.assetUri = "icons_builder_error_userinroom"; _local_4.caption = "${builder.placement_widget.error.visitors}"; return; }; }; } } }//package _-0bT // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2434 = "_-4gV" (String#282, DoABC#3) // _SafeStr_2437 = "_-58B" (String#4324, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2468 = "_-2lP" (String#14221, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3216 = "_-3B6" (String#6455, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4826 = "_-3WQ" (String#14370, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6151 = "_-0dj" (String#644, DoABC#3) // _SafeStr_6152 = "_-27w" (String#21540, DoABC#3) // _SafeStr_6153 = "_-5Ul" (String#22135, DoABC#3) // _SafeStr_6154 = "_-54l" (String#2589, DoABC#3) // _SafeStr_6155 = "_-5uN" (String#17510, DoABC#3) // _SafeStr_6156 = "_-0Kl" (String#35138, DoABC#3) // _SafeStr_6157 = "_-4Sn" (String#12135, DoABC#3) // _SafeStr_6158 = "_-0-E" (String#26845, DoABC#3) // _SafeStr_6159 = "_-071" (String#13594, DoABC#3) // _SafeStr_6160 = "_-09n" (String#11907, DoABC#3) // _SafeStr_6161 = "_-2rc" (String#18704, DoABC#3) // _SafeStr_6162 = "_-Pn" (String#19717, DoABC#3) // _SafeStr_6163 = "_-23R" (String#20600, DoABC#3) // _SafeStr_6164 = "_-1pK" (String#18128, DoABC#3) // _SafeStr_6165 = "_-6-S" (String#20910, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4827 package _-0bT{ import _-3WJ.HabboCatalog; import _-29V.IWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_2445; public class _SafeStr_4827 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; public function _SafeStr_4827(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function init():Boolean{ if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); return (true); } private function _SafeStr_6047(k:_SafeStr_2445):void{ this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(k.offer, (_SafeStr_5322 as IWindowContainer), this._SafeStr_6166, _SafeStr_5322.findChildByName("fake_productimage"), 0, true, 0); } } }//package _-0bT // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4827 = "_-7n" (String#16887, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4828 package _-0bT{ import _-5GB._SafeStr_2466; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-px._SafeStr_2462; import _-5GB._SafeStr_5164; import _-Qx._SafeStr_500; import _-0Cn._SafeStr_2358; import _-5A9._SafeStr_2356; import _-6Sj.ITextWindow; import flash.text.TextFormat; import flash.text.TextFormatAlign; import _-29V.IWindow; import _-5Vh.WindowMouseEvent; import _-WS.ErrorReportStorage; import _-En.CatalogPage; import _-6Sj.IItemListWindow; import _-5GB._SafeStr_2400; public class _SafeStr_4828 extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3505 { private var _SafeStr_5332:_SafeStr_2466; private var _SafeStr_6168:Array; private var _SafeStr_5539:HabboCatalog; public function _SafeStr_4828(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } public function get isGift():Boolean{ return (false); } override public function dispose():void{ if (this._SafeStr_5332 != null) { this._SafeStr_5332._SafeStr_6169(this); this._SafeStr_5332 = null; }; this.reset(); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6168 = []; this._SafeStr_5332 = this._SafeStr_5539._SafeStr_6170(); this._SafeStr_5332._SafeStr_6171(this); this._SafeStr_5332._SafeStr_6172(_SafeStr_2462._SafeStr_6173); return (true); } public function reset():void{ var k:_SafeStr_5164; for each (k in this._SafeStr_6168) { k.dispose(); }; this._SafeStr_6168 = []; } public function _SafeStr_5964(k:int):void{ var _local_4:int; var _local_5:int; var _local_6:int; if (disposed) { return; }; var _local_2:_SafeStr_500 = this._SafeStr_5539.localization; var _local_3:_SafeStr_2358 = this._SafeStr_5539.getPurse(); if (((!((_local_3 == null))) && (!((_local_2 == null))))) { _local_4 = _local_3.clubDays; _local_5 = _local_3.clubPeriods; _local_6 = ((_local_5 * 31) + _local_4); _local_2.registerParameter("catalog.vip.extend.info", "days", String(_local_6)); }; if (((!((_SafeStr_5322 == null))) && ((k == _SafeStr_2356._SafeStr_6174)))) { _SafeStr_5322.findChildByName("vip_title").caption = "${catalog.vip.extend.title}"; _SafeStr_5322.findChildByName("vip_info").caption = "${catalog.vip.extend.info}"; }; if (_SafeStr_5322 != null) { this._SafeStr_6175((_SafeStr_5322.findChildByName("vip_title") as ITextWindow)); this._SafeStr_6175((_SafeStr_5322.findChildByName("vip_info") as ITextWindow), 3); }; this._SafeStr_6176(); } private function _SafeStr_6175(k:ITextWindow, _arg_2:Number=0):void{ var _local_3:TextFormat = k.getTextFormat(); _local_3.align = TextFormatAlign.CENTER; _local_3.leading = _arg_2; k.setTextFormat(_local_3); } private function _SafeStr_6176():void{ var k:IWindow; if (_SafeStr_5322) { k = _SafeStr_5322.findChildByName("vip_link"); if (k) { k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6177); k._SafeStr_6178 = 0; }; }; } public function _SafeStr_6177(k:WindowMouseEvent):void{ this._SafeStr_5539.utils.showVipBenefits(); } public function _SafeStr_5794(offer:_SafeStr_2400):void{ var item:_SafeStr_5164; if (((disposed) || (!(offer.vip)))) { return; }; _SafeStr_4.log(("Offer: " + [offer._SafeStr_5719, offer._SafeStr_6179, offer.priceCredits, offer.vip, offer.months, offer._SafeStr_6180, offer.year, offer.month, offer.day, offer._SafeStr_6181])); offer.page = page; try { item = new _SafeStr_5164(offer, this._SafeStr_5539, "HabboCatalogBuy"); } catch(e:Error) { ErrorReportStorage._SafeStr_6182("ClubBuyCatalogWidget", (((("showOffer - new ClubBuyItem(" + String(offer)) + ", ") + String((page as CatalogPage))) + ") crashed!")); return; }; var target:IItemListWindow = (_SafeStr_5322.findChildByName("item_list_vip") as IItemListWindow); if (target != null) { target.addListItem(item.window); }; this._SafeStr_6168.push(item); } } }//package _-0bT // _SafeStr_2356 = "_-k9" (String#1139, DoABC#3) // _SafeStr_2358 = "_-3-A" (String#3987, DoABC#3) // _SafeStr_2400 = "_-Ab" (String#2832, DoABC#3) // _SafeStr_2462 = "_-3ZI" (String#6725, DoABC#3) // _SafeStr_2466 = "_-08B" (String#6415, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3505 = "_-40k" (String#8215, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4828 = "_-1TK" (String#14326, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5164 = "_-38Z" (String#4790, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5332 = "_-0CD" (String#194, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5794 = "_-1xE" (String#8405, DoABC#3) // _SafeStr_5964 = "_-41O" (String#17413, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6169 = "_-0ZK" (String#25479, DoABC#3) // _SafeStr_6170 = "_-gm" (String#25749, DoABC#3) // _SafeStr_6171 = "_-35t" (String#10507, DoABC#3) // _SafeStr_6172 = "_-5W0" (String#10432, DoABC#3) // _SafeStr_6173 = "_-0yN" (String#21027, DoABC#3) // _SafeStr_6174 = "_-6L0" (String#1995, DoABC#3) // _SafeStr_6175 = "_-2ni" (String#14272, DoABC#3) // _SafeStr_6176 = "_-0Pr" (String#10891, DoABC#3) // _SafeStr_6177 = "_-2WO" (String#22373, DoABC#3) // _SafeStr_6178 = "_-6Jm" (String#3497, DoABC#3) // _SafeStr_6179 = "_-5B3" (String#2369, DoABC#3) // _SafeStr_6180 = "_-2FL" (String#15887, DoABC#3) // _SafeStr_6181 = "_-2Hc" (String#15610, DoABC#3) // _SafeStr_6182 = "_-5CK" (String#1829, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4829 package _-0bT{ import _-5tE._SafeStr_502; import _-2rM._SafeStr_2309; import _-29V.IWindowContainer; import _-6Sj.IButtonWindow; import _-29V.IWindow; import _-2jU._SafeStr_2275; import _-5Vh.WindowMouseEvent; import _-4fb._SafeStr_3539; import _-c9._SafeStr_4282; import _-3WJ.HabboCatalog; import _-5tE._SafeStr_3548; import _-4-i._SafeStr_3451; import _-5tE._SafeStr_3533; import _-En._SafeStr_2382; import _-1dj._SafeStr_4051; import _-4-i._SafeStr_2445; import _-Qx._SafeStr_500; public class _SafeStr_4829 extends ProductViewCatalogWidget { private var _SafeStr_6183:_SafeStr_502; private var _SafeStr_6184:_SafeStr_2309; private var _SafeStr_6185:IWindowContainer; private var _SafeStr_6186:IButtonWindow; private var _SafeStr_6187:IWindow; private var _SafeStr_6188:int = -1; private var _SafeStr_6189:String = ""; private var _SafeStr_6190:String = ""; private var _SafeStr_6191:_SafeStr_2275 = null; public function _SafeStr_4829(k:IWindowContainer, _arg_2:HabboCatalog){ super(k, _arg_2); this._SafeStr_6186 = (_SafeStr_5322.findChildByName("listen") as IButtonWindow); this._SafeStr_6187 = _SafeStr_5322.findChildByName("ctlg_song_length"); if (this._SafeStr_6186 != null) { this._SafeStr_6186.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6192); this._SafeStr_6186.disable(); }; this._SafeStr_6185 = (_SafeStr_5322.findChildByName("playPreviewContainer") as IWindowContainer); if (this._SafeStr_6185 != null) { this._SafeStr_6185.visible = false; }; this._SafeStr_6183 = _arg_2._SafeStr_6193; if (this._SafeStr_6183 != null) { this._SafeStr_6183.events.addEventListener(_SafeStr_3539._SafeStr_6194, this._SafeStr_6195); }; this._SafeStr_6184 = _arg_2.connection; if (((this._SafeStr_6184) && (!(this._SafeStr_6191)))) { this._SafeStr_6191 = new _SafeStr_4282(this._SafeStr_6196); this._SafeStr_6184.addMessageEvent(this._SafeStr_6191); }; } override public function dispose():void{ if (this._SafeStr_6186 != null) { this._SafeStr_6186.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_6192); }; if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6183._SafeStr_6197.stop(_SafeStr_3548._SafeStr_6198); if (this._SafeStr_6183.events != null) { this._SafeStr_6183.events.removeEventListener(_SafeStr_3539._SafeStr_6194, this._SafeStr_6195); }; this._SafeStr_6183 = null; if (((this._SafeStr_6184) && (this._SafeStr_6191))) { this._SafeStr_6184.removeMessageEvent(this._SafeStr_6191); this._SafeStr_6191 = null; }; this._SafeStr_6184 = null; }; super.dispose(); } override public function closed():void{ super.closed(); if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6183._SafeStr_6197.stop(_SafeStr_3548._SafeStr_6198); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; if (page.offers.length == 0) { return (false); }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); return (true); } private function _SafeStr_6192(k:WindowMouseEvent):void{ if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6199(_SafeStr_3548._SafeStr_6200); this._SafeStr_6199(_SafeStr_3548._SafeStr_6198); this._SafeStr_6183._SafeStr_6197._SafeStr_6201(this._SafeStr_6188, _SafeStr_3548._SafeStr_6198, 15, 40, 0.5, 2); }; } private function _SafeStr_6199(k:int):void{ var _local_3:_SafeStr_3533; var _local_2:int = this._SafeStr_6183._SafeStr_6197._SafeStr_6202(k); if (_local_2 != -1) { _local_3 = this._SafeStr_6183._SafeStr_6197._SafeStr_6203(_local_2); if (_local_3._SafeStr_6204 != null) { _local_3._SafeStr_6204._SafeStr_6205 = 0; }; }; } private function _SafeStr_6047(k:_SafeStr_2445):void{ if ((((k == null)) || ((k.offer == null)))) { return; }; var _local_2:_SafeStr_2382 = k.offer.product; if (_local_2._SafeStr_5769.length > 0) { this._SafeStr_6188 = parseInt(_local_2._SafeStr_5769); if (this._SafeStr_6188 == 0) { this._SafeStr_6189 = _local_2._SafeStr_5769; if (this._SafeStr_6184) { this._SafeStr_6184.send(new _SafeStr_4051(this._SafeStr_6189)); }; }; if (this._SafeStr_6185 != null) { this._SafeStr_6185.visible = true; }; } else { this._SafeStr_6188 = -1; }; this._SafeStr_5341(); } private function _SafeStr_5341():void{ var _local_3:int; var _local_4:int; var _local_5:String; var _local_6:String; var _local_7:_SafeStr_500; var _local_8:String; var k:Boolean; var _local_2:int = this._SafeStr_6206(); if (_local_2 >= 0) { _local_3 = (_local_2 / 60); _local_4 = (_local_2 % 60); _local_5 = ("" + _local_3); _local_6 = ("" + _local_4); if (_local_4 < 10) { _local_6 = ("0" + _local_6); }; _local_7 = (page.viewer.catalog as HabboCatalog).localization; _local_7.registerParameter("catalog.song.length", "min", _local_5); _local_8 = _local_7.registerParameter("catalog.song.length", "sec", _local_6); k = true; if (this._SafeStr_6187 != null) { this._SafeStr_6187.caption = _local_8; }; } else { if (this._SafeStr_6187 != null) { this._SafeStr_6187.caption = ""; }; }; if (this._SafeStr_6186 != null) { if (k) { this._SafeStr_6186.enable(); } else { this._SafeStr_6186.disable(); }; }; } private function _SafeStr_6206():int{ var k:_SafeStr_3533; if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { k = this._SafeStr_6183._SafeStr_6197._SafeStr_6203(this._SafeStr_6188); if (k != null) { return ((k.length / 1000)); }; this._SafeStr_6183._SafeStr_6197._SafeStr_6207(this._SafeStr_6188); }; return (-1); } private function _SafeStr_6195(k:_SafeStr_3539):void{ if (k.id == this._SafeStr_6188) { this._SafeStr_5341(); }; } private function _SafeStr_6196(k:_SafeStr_4282):void{ if (k._SafeStr_5729()._SafeStr_6208 == this._SafeStr_6189) { this._SafeStr_6188 = k._SafeStr_5729()._SafeStr_6209; this._SafeStr_5341(); }; } } }//package _-0bT // _SafeStr_2275 = "_-2Kx" (String#157, DoABC#3) // _SafeStr_2309 = "_-38x" (String#1056, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3533 = "_-3NR" (String#2114, DoABC#3) // _SafeStr_3539 = "_-4oO" (String#3399, DoABC#3) // _SafeStr_3548 = "_-2lA" (String#2822, DoABC#3) // _SafeStr_4051 = "_-JY" (String#16679, DoABC#3) // _SafeStr_4282 = "_-2fS" (String#12918, DoABC#3) // _SafeStr_4829 = "_-2jx" (String#14297, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_502 = "_-1GQ" (String#2451, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5341 = "_-1vg" (String#1615, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6183 = "_-4eX" (String#827, DoABC#3) // _SafeStr_6184 = "_-3QT" (String#481, DoABC#3) // _SafeStr_6185 = "_-4Hf" (String#15007, DoABC#3) // _SafeStr_6186 = "_-IC" (String#4125, DoABC#3) // _SafeStr_6187 = "_-G8" (String#16755, DoABC#3) // _SafeStr_6188 = "_-2xR" (String#6691, DoABC#3) // _SafeStr_6189 = "_-2TP" (String#10580, DoABC#3) // _SafeStr_6190 = "_-3mS" (String#44920, DoABC#3) // _SafeStr_6191 = "_-0-Y" (String#12718, DoABC#3) // _SafeStr_6192 = "_-2jo" (String#14313, DoABC#3) // _SafeStr_6193 = "_-2b7" (String#1555, DoABC#3) // _SafeStr_6194 = "_-5eY" (String#5047, DoABC#3) // _SafeStr_6195 = "_-Om" (String#4331, DoABC#3) // _SafeStr_6196 = "_-2a2" (String#32013, DoABC#3) // _SafeStr_6197 = "_-3ty" (String#2584, DoABC#3) // _SafeStr_6198 = "_-UD" (String#7375, DoABC#3) // _SafeStr_6199 = "_-5gB" (String#16479, DoABC#3) // _SafeStr_6200 = "_-30Z" (String#6030, DoABC#3) // _SafeStr_6201 = "_-5Cy" (String#13290, DoABC#3) // _SafeStr_6202 = "_-1V6" (String#9277, DoABC#3) // _SafeStr_6203 = "_-2YQ" (String#3729, DoABC#3) // _SafeStr_6204 = "_-31d" (String#4237, DoABC#3) // _SafeStr_6205 = "_-4rM" (String#6886, DoABC#3) // _SafeStr_6206 = "_-4n5" (String#37431, DoABC#3) // _SafeStr_6207 = "_-4Gi" (String#11294, DoABC#3) // _SafeStr_6208 = "_-1N2" (String#32833, DoABC#3) // _SafeStr_6209 = "_-3gt" (String#5009, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4830 package _-0bT{ import _-29V.IWindowContainer; import _-3WJ._SafeStr_2399; import _-5x9._SafeStr_2367; import _-3WJ.HabboCatalog; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_4807; import _-px._SafeStr_2388; import _-5Vh.WindowMouseEvent; import _-6Sj.IButtonWindow; import _-3UH.XmlAsset; import _-4-i._SafeStr_5151; import _-4-i._SafeStr_5168; import _-29V.IWindow; import _-2j-._SafeStr_3506; import _-4-i._SafeStr_2445; import _-En._SafeStr_2382; import _-En.Offer; import _-4-i._SafeStr_2396; import _-64Q._SafeStr_2464; import _-5Vh.WindowEvent; import _-3sY.HabboTracking; import _-4-i._SafeStr_5152; import _-4-i._SafeStr_4806; import _-4-i._SafeStr_3507; public class _SafeStr_4830 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6210:XML; private var _SafeStr_6211:IWindowContainer; private var _SafeStr_6151:_SafeStr_2399; private var _SafeStr_6212:String = ""; private var _SafeStr_6213:_SafeStr_2367 = null; private var _SafeStr_5785:int = 1; private var _SafeStr_6214:Function; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6215:Boolean; private var _SafeStr_6216:Boolean = false; private var _SafeStr_6217:Boolean = true; public function _SafeStr_4830(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (disposed) { return; }; events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.removeEventListener(_SafeStr_3451._SafeStr_6218, this._SafeStr_6219); events.removeEventListener(_SafeStr_3451.PURCHASE_OVERRIDE, this._SafeStr_6220); events.removeEventListener(_SafeStr_3451._SafeStr_6221, this._SafeStr_6222); events.removeEventListener(_SafeStr_3451.TOGGLE, this._SafeStr_6223); super.dispose(); } private function _SafeStr_6223(k:_SafeStr_4807):void{ if (k._SafeStr_6224 == _SafeStr_4805.PURCHASE) { this._SafeStr_6217 = k.enabled; window.visible = this._SafeStr_6217; }; } override public function init():Boolean{ if (!super.init()) { return (false); }; if (this._SafeStr_5539.catalogType == _SafeStr_2388.BUILDER) { _SafeStr_5322.visible = false; return (true); }; _SafeStr_5962(_SafeStr_4805.PURCHASE); _SafeStr_5322.findChildByName("selection_information").visible = true; _SafeStr_5322.findChildByName("default_buttons").visible = false; this._SafeStr_6215 = false; if (window.tags.indexOf("ROOM_INITIATE_PURCHASE") > -1) { this._SafeStr_5539._SafeStr_6225(); }; _SafeStr_5322.findChildByName("buy_button").addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6226); var k:IButtonWindow = (_SafeStr_5322.findChildByName("gift_button") as IButtonWindow); if (window.tags.indexOf("NO_GIFT_OPTION") > -1) { this._SafeStr_6215 = true; k.visible = false; }; k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6227); k.disable(); var _local_2:XmlAsset = (this._SafeStr_5539.assets.getAssetByName("purchaseWidgetBuyVipStub") as XmlAsset); if (_local_2 != null) { this._SafeStr_6210 = (_local_2.content as XML); }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451._SafeStr_6218, this._SafeStr_6219); events.addEventListener(_SafeStr_3451.PURCHASE_OVERRIDE, this._SafeStr_6220); events.addEventListener(_SafeStr_3451.INIT_PURCHASE, this._SafeStr_6228); events.addEventListener(_SafeStr_3451._SafeStr_6221, this._SafeStr_6222); events.addEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6229); events.addEventListener(_SafeStr_3451._SafeStr_6230, this._SafeStr_6231); events.addEventListener(_SafeStr_3451.TOGGLE, this._SafeStr_6223); return (true); } private function _SafeStr_6220(k:_SafeStr_5168):void{ this._SafeStr_6214 = k.callback; } private function _SafeStr_6232(k:_SafeStr_2399):void{ var _local_2:IWindowContainer; if (this._SafeStr_6211 != null) { this._SafeStr_6211.visible = false; _SafeStr_5322.removeChild(this._SafeStr_6211); this._SafeStr_6211.dispose(); this._SafeStr_6211 = null; }; } private function get _SafeStr_6233():Boolean{ return (!(((this._SafeStr_6216) && ((this._SafeStr_6212 == ""))))); } private function _SafeStr_6047(k:_SafeStr_2445):void{ var _local_2:IWindow; var _local_3:Boolean; this._SafeStr_5785 = 1; this._SafeStr_6151 = k.offer; _SafeStr_5322.findChildByName("selection_information").visible = false; _SafeStr_5322.findChildByName("default_buttons").visible = true; this._SafeStr_6232(this._SafeStr_6151); this._SafeStr_5539._SafeStr_6234(false); if (this._SafeStr_6211 == null) { this._SafeStr_6235(this._SafeStr_6233); this._SafeStr_5880(this._SafeStr_6233); _SafeStr_3506._SafeStr_5822(this._SafeStr_6151, _SafeStr_5322.findChildByName("purchase_label")); _local_2 = _SafeStr_5322.findChildByName("gift_button"); if (_local_2 != null) { _local_2.visible = ((!(this._SafeStr_6151._SafeStr_6236)) && (!(this._SafeStr_6215))); }; if (!this._SafeStr_6151._SafeStr_6237) { this._SafeStr_5880(false); }; _local_3 = this._SafeStr_6238(this._SafeStr_6151); if (_local_3) { this._SafeStr_6235(false); this._SafeStr_5880(false); }; window.visible = this._SafeStr_6217; } else { this._SafeStr_6235(false); this._SafeStr_5880(false); }; } private function _SafeStr_6238(k:_SafeStr_2399):Boolean{ var _local_2:_SafeStr_2382; var _local_3:Boolean; if (k != null) { if (k._SafeStr_6081 == Offer._SafeStr_6082) { _local_2 = this._SafeStr_6151.product; if (((!((_local_2 == null))) && (_local_2.isUniqueLimitedItem))) { _local_3 = (_local_2.uniqueLimitedItemsLeft == 0); return (_local_3); }; }; }; return (false); } private function _SafeStr_6235(k:Boolean):void{ if (this._SafeStr_5539.sessionDataManager._SafeStr_6239()) { k = false; }; this._SafeStr_6240("buy_button", k); } private function _SafeStr_5880(k:Boolean):void{ if (this._SafeStr_5539.sessionDataManager._SafeStr_6239()) { k = false; }; this._SafeStr_6240("gift_button", k); } private function _SafeStr_6240(k:String, _arg_2:Boolean):void{ if (_SafeStr_5322 == null) { return; }; var _local_3:IWindow = _SafeStr_5322.findChildByName(k); if (_local_3 == null) { return; }; if (_arg_2) { _local_3.enable(); _local_3.blend = 1; } else { _local_3.disable(); _local_3.blend = 0.5; }; } private function _SafeStr_6219(k:_SafeStr_2396):void{ this._SafeStr_6212 = k.parameter; this._SafeStr_6235(this._SafeStr_6233); this._SafeStr_5880(((((((!((this._SafeStr_6151 == null))) && (this._SafeStr_6151._SafeStr_6237))) && (this._SafeStr_6233))) && ((this._SafeStr_5785 == 1)))); } private function _SafeStr_6226(event:WindowMouseEvent, isGift:Boolean=false):void{ if (!this._SafeStr_5539._SafeStr_6241(this._SafeStr_6151.clubLevel)) { this._SafeStr_5539.openClubCenter(); return; }; this._SafeStr_5539._SafeStr_6234(isGift); if (this._SafeStr_6214 == null) { if (this._SafeStr_6151 != null) { if (((!((this._SafeStr_5539._SafeStr_6242 == null))) && ((this._SafeStr_5539._SafeStr_6242._SafeStr_5719 == this._SafeStr_6151._SafeStr_5719)))) { if (this._SafeStr_5539._SafeStr_6242.flatId == 0) { this._SafeStr_5539.windowManager.alert("${roomad.error.title}", "${roomad.alert.no.available.room}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; }; if ((((((this._SafeStr_5539._SafeStr_6242.name == null)) || ((this._SafeStr_5539._SafeStr_6242.name.length < 5)))) || ((this._SafeStr_5539._SafeStr_6242.name.substr(0, 1) == " ")))) { this._SafeStr_5539.windowManager.alert("${roomad.error.title}", "${roomad.alert.name.empty}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; }; }; this._SafeStr_5539._SafeStr_6243(this._SafeStr_6151, page.pageId, this._SafeStr_6212, this._SafeStr_5785, this._SafeStr_6213, null, true, null); }; } else { this._SafeStr_6214(event); }; } private function _SafeStr_6227(k:WindowMouseEvent):void{ this._SafeStr_6226(k, true); HabboTracking.getInstance().trackEventLog("Catalog", "click", "client.buy_as_gift.clicked"); } private function _SafeStr_6228(k:_SafeStr_5152):void{ if (this._SafeStr_6151 != null) { this._SafeStr_5539._SafeStr_6243(this._SafeStr_6151, page.pageId, this._SafeStr_6212, this._SafeStr_5785, this._SafeStr_6213, null, true, null); }; } private function _SafeStr_6244(k:WindowMouseEvent):void{ this._SafeStr_5539._SafeStr_6245(page.pageId); this._SafeStr_5539.openClubCenter(); HabboTracking.getInstance().trackEventLog("Catalog", "click", "BUY_CLUB"); } private function _SafeStr_6222(k:_SafeStr_4806):void{ this._SafeStr_6213 = k.stuffData; } private function _SafeStr_6229(k:_SafeStr_5151):void{ this._SafeStr_5785 = k.value; if (this._SafeStr_5785 > 1) { this._SafeStr_5880(false); } else { if (((!((this._SafeStr_6151 == null))) && (this._SafeStr_6233))) { this._SafeStr_5880(this._SafeStr_6151._SafeStr_6237); }; }; } private function _SafeStr_6231(k:_SafeStr_3507):void{ this._SafeStr_6216 = true; this._SafeStr_6235(this._SafeStr_6233); this._SafeStr_5880(((((!((this._SafeStr_6151 == null))) && (this._SafeStr_6233))) && ((this._SafeStr_5785 == 1)))); } } }//package _-0bT // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3506 = "_-0uq" (String#15080, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4806 = "_-3xb" (String#8459, DoABC#3) // _SafeStr_4807 = "_-1yo" (String#5584, DoABC#3) // _SafeStr_4830 = "_-4cP" (String#14483, DoABC#3) // _SafeStr_5151 = "_-56U" (String#2030, DoABC#3) // _SafeStr_5152 = "_-1cj" (String#8895, DoABC#3) // _SafeStr_5168 = "_-0UG" (String#8941, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5785 = "_-5g8" (String#2600, DoABC#3) // _SafeStr_5822 = "_-2KO" (String#30086, DoABC#3) // _SafeStr_5880 = "_-2hy" (String#5766, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_6038 = "_-1Pq" (String#6238, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6082 = "_-5EF" (String#8194, DoABC#3) // _SafeStr_6151 = "_-0dj" (String#644, DoABC#3) // _SafeStr_6210 = "_-JC" (String#33673, DoABC#3) // _SafeStr_6211 = "_-O-" (String#13045, DoABC#3) // _SafeStr_6212 = "_-2e8" (String#18794, DoABC#3) // _SafeStr_6213 = "_-2Lm" (String#24480, DoABC#3) // _SafeStr_6214 = "_-1bW" (String#24226, DoABC#3) // _SafeStr_6215 = "_-4fJ" (String#24054, DoABC#3) // _SafeStr_6216 = "_-5EU" (String#26241, DoABC#3) // _SafeStr_6217 = "_-6AO" (String#2312, DoABC#3) // _SafeStr_6218 = "_-tB" (String#16525, DoABC#3) // _SafeStr_6219 = "_-3M" (String#26872, DoABC#3) // _SafeStr_6220 = "_-JL" (String#27445, DoABC#3) // _SafeStr_6221 = "_-1vO" (String#11389, DoABC#3) // _SafeStr_6222 = "_-Tt" (String#27007, DoABC#3) // _SafeStr_6223 = "_-0LP" (String#27824, DoABC#3) // _SafeStr_6224 = "_-3YJ" (String#37232, DoABC#3) // _SafeStr_6225 = "_-3io" (String#37146, DoABC#3) // _SafeStr_6226 = "_-0gO" (String#12105, DoABC#3) // _SafeStr_6227 = "_-ED" (String#24648, DoABC#3) // _SafeStr_6228 = "_-2P5" (String#34384, DoABC#3) // _SafeStr_6229 = "_-6K6" (String#34993, DoABC#3) // _SafeStr_6230 = "_-0pW" (String#13990, DoABC#3) // _SafeStr_6231 = "_-25F" (String#32602, DoABC#3) // _SafeStr_6232 = "_-1cX" (String#38919, DoABC#3) // _SafeStr_6233 = "_-6Yr" (String#10852, DoABC#3) // _SafeStr_6234 = "_-4J4" (String#11532, DoABC#3) // _SafeStr_6235 = "_-6HC" (String#16480, DoABC#3) // _SafeStr_6236 = "_-5Yu" (String#9566, DoABC#3) // _SafeStr_6237 = "_-1qc" (String#5738, DoABC#3) // _SafeStr_6238 = "_-3NT" (String#38769, DoABC#3) // _SafeStr_6239 = "_-1XU" (String#6445, DoABC#3) // _SafeStr_6240 = "_-3od" (String#13375, DoABC#3) // _SafeStr_6241 = "_-6B3" (String#13725, DoABC#3) // _SafeStr_6242 = "_-5rz" (String#3340, DoABC#3) // _SafeStr_6243 = "_-6ZF" (String#7922, DoABC#3) // _SafeStr_6244 = "_-1al" (String#44273, DoABC#3) // _SafeStr_6245 = "_-1Is" (String#34372, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4831 package _-0bT{ import _-4Y1._SafeStr_3; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-29V.IWindow; import _-px._SafeStr_2388; import _-4-i._SafeStr_2474; import _-5Vh.WindowMouseEvent; import _-35T._SafeStr_6; import _-5xd._SafeStr_2444; import _-5Vh.WindowEvent; public class _SafeStr_4831 extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6246:String; public function _SafeStr_4831(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6246 = this._SafeStr_5539.getProperty("builders_club.buy_membership_page"); this._SafeStr_6247(); _SafeStr_5322.procedure = this._SafeStr_5753; events.addEventListener(_SafeStr_3451._SafeStr_6248, this._SafeStr_6249); return (true); } private function _SafeStr_6247():void{ var k:Number = this._SafeStr_5539._SafeStr_6250; var _local_2:IWindow = _SafeStr_5322.findChildByName("subscribe_button"); var _local_3:IWindow = _SafeStr_5322.findChildByName("subscribe_button_sms"); var _local_4:IWindow = _SafeStr_5322.findChildByName("subscribe_button_big"); var _local_5:IWindow = _SafeStr_5322.findChildByName("try_button"); if (((((!(!((_local_5 == null)))) || (!(!((_local_2 == null)))))) || (!(!((_local_4 == null)))))) { return; }; if ((((k > 0)) || ((this._SafeStr_5539._SafeStr_6252(_SafeStr_2388.BUILDER)._SafeStr_6251(this._SafeStr_5539.getProperty("builders_club.try_page")) == null)))) { _local_4.visible = true; _local_2.visible = false; _local_5.visible = false; _local_3.visible = false; } else { _local_4.visible = false; _local_2.visible = false; _local_5.visible = true; _local_3.visible = false; }; if (((!((this._SafeStr_6246 == null))) && (!((this._SafeStr_6246 == ""))))) { _local_3.visible = true; if (!_local_5.visible) { _local_3.x = _local_5.x; _local_3.y = _local_5.y; }; if (_local_4.visible) { _local_4.visible = false; _local_2.visible = false; }; }; } private function _SafeStr_6249(k:_SafeStr_2474):void{ this._SafeStr_6247(); } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (k.type != WindowMouseEvent.CLICK) { return; }; switch (_arg_2.name) { case "subscribe_button_big": case "subscribe_button": _SafeStr_6.openWebPageAndMinimizeClient(this._SafeStr_5539.getProperty(_SafeStr_2444._SafeStr_6253)); return; case "subscribe_button_sms": _SafeStr_6.openWebPageAndMinimizeClient(this._SafeStr_6246); return; case "try_button": this._SafeStr_5539.openCatalogPage(this._SafeStr_5539.getProperty("builders_club.try_page"), _SafeStr_2388.BUILDER); return; }; } } }//package _-0bT // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2444 = "_-xj" (String#7141, DoABC#3) // _SafeStr_2474 = "_-1NQ" (String#10399, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4831 = "_-40F" (String#14273, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_6 = "_-TM" (String#1447, DoABC#3) // _SafeStr_6246 = "_-4BV" (String#17197, DoABC#3) // _SafeStr_6247 = "_-JB" (String#27490, DoABC#3) // _SafeStr_6248 = "_-09X" (String#19361, DoABC#3) // _SafeStr_6249 = "_-48I" (String#38415, DoABC#3) // _SafeStr_6250 = "_-4Mj" (String#14833, DoABC#3) // _SafeStr_6251 = "_-4Su" (String#31588, DoABC#3) // _SafeStr_6252 = "_-08y" (String#9370, DoABC#3) // _SafeStr_6253 = "_-1ZL" (String#22335, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4832 package _-0bT{ import _-6Sj.IButtonWindow; import _-29V.IWindowContainer; import _-5Vh.WindowMouseEvent; import _-64Q._SafeStr_2464; import _-5Vh.WindowEvent; public class _SafeStr_4832 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6254:IButtonWindow; public function _SafeStr_4832(k:IWindowContainer){ super(k); } override public function dispose():void{ super.dispose(); if (this._SafeStr_6254 != null) { this._SafeStr_6254.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_6255); this._SafeStr_6254 = null; }; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6254 = (_SafeStr_5322.findChildByName("ctlg_madmoney_button") as IButtonWindow); if (this._SafeStr_6254 != null) { }; return (true); } private function _SafeStr_6255(event:WindowMouseEvent):void{ page.viewer.catalog.windowManager.alert("TODO", "Fix in MadMoneyCatalogWidget.as", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); } } }//package _-0bT // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4832 = "_-3JQ" (String#17560, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_6254 = "_-0HP" (String#15907, DoABC#3) // _SafeStr_6255 = "_-6HO" (String#6885, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4834 package _-0bT{ import _-6Sj.ITextFieldWindow; import _-29V.IWindowContainer; import _-5Vh.WindowKeyboardEvent; import _-4-i._SafeStr_5158; public class _SafeStr_4834 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6256:ITextFieldWindow; public function _SafeStr_4834(k:IWindowContainer){ super(k); } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6256 = (_SafeStr_5322.findChildByName("input_text") as ITextFieldWindow); if (this._SafeStr_6256 != null) { this._SafeStr_6256.addEventListener(WindowKeyboardEvent._SafeStr_5383, this._SafeStr_6257); }; return (true); } private function _SafeStr_6257(k:WindowKeyboardEvent):void{ if (this._SafeStr_6256 == null) { return; }; events.dispatchEvent(new _SafeStr_5158(this._SafeStr_6256.text)); } } }//package _-0bT // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4834 = "_-5DM" (String#20426, DoABC#3) // _SafeStr_5158 = "_-4ch" (String#13029, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5383 = "_-1ON" (String#3499, DoABC#3) // _SafeStr_6256 = "_-2mK" (String#14258, DoABC#3) // _SafeStr_6257 = "_-3-f" (String#34156, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4835 package _-0bT{ import _-5x9._SafeStr_2325; import _-En._SafeStr_2447; import flash.display.BitmapData; import _-3WJ._SafeStr_2399; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-6Sj.IBitmapWrapperWindow; import _-4-i._SafeStr_2445; import _-5Vh.WindowMouseEvent; import _-3WJ.HabboCatalog; import _-5Vh.WindowEvent; import _-29V.IWindow; import _-4-i._SafeStr_5152; import _-5x9._SafeStr_2973; import _-0bw._SafeStr_2308; import _-4-i._SafeStr_5166; import flash.geom.Point; public class _SafeStr_4835 extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325, _SafeStr_2447 { private var _SafeStr_6258:int = -1; private var _SafeStr_6259:int = -1; private var _SafeStr_6260:BitmapData = null; private var _SafeStr_6261:BitmapData = null; private var _SafeStr_6262:Object; private var _SafeStr_6151:_SafeStr_2399; public function _SafeStr_4835(k:IWindowContainer){ super(k); } override public function dispose():void{ if (this._SafeStr_6260 != null) { this._SafeStr_6260.dispose(); this._SafeStr_6260 = null; }; if (this._SafeStr_6261 != null) { this._SafeStr_6261.dispose(); this._SafeStr_6261 = null; }; events.removeEventListener(_SafeStr_3451.UPDATE_ROOM_PREVIEW, this._SafeStr_6263); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; var k:IBitmapWrapperWindow = (window.getChildByName("catalog_floor_preview_example") as IBitmapWrapperWindow); k.procedure = this._SafeStr_6255; events.addEventListener(_SafeStr_3451.UPDATE_ROOM_PREVIEW, this._SafeStr_6263); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); return (true); } private function _SafeStr_6090(k:_SafeStr_2445):void{ if (k == null) { return; }; this._SafeStr_6151 = k.offer; } private function _SafeStr_6255(k:WindowEvent, _arg_2:IWindow):void{ if (k.type == WindowMouseEvent.UP) { this._SafeStr_6262 = null; } else { if (k.type == WindowMouseEvent.DOWN) { if (_arg_2 == null) { return; }; this._SafeStr_6262 = _arg_2; } else { if ((((((k.type == WindowMouseEvent._SafeStr_5577)) && (!((this._SafeStr_6262 == null))))) && ((this._SafeStr_6262 == _arg_2)))) { if (this._SafeStr_6151) { (page.viewer.catalog as HabboCatalog)._SafeStr_6157(this, this._SafeStr_6151); this._SafeStr_6262 = null; }; } else { if (k.type == WindowMouseEvent.UP) { (this._SafeStr_6262 == null); } else { if (k.type == WindowMouseEvent.CLICK) { (this._SafeStr_6262 == null); } else { if (k.type == WindowMouseEvent.DOUBLE_CLICK) { this._SafeStr_6262 = null; }; }; }; }; }; }; } public function _SafeStr_6264(k:Boolean, _arg_2:String):void{ if (disposed) { return; }; if (k) { events.dispatchEvent(new _SafeStr_5152(false, _arg_2)); }; } public function _SafeStr_6265():void{ } private function _SafeStr_6263(k:_SafeStr_5166):void{ var _local_5:BitmapData; var _local_6:BitmapData; var _local_2:String = "ads_twi_windw"; var _local_3:_SafeStr_2973 = page.viewer.roomEngine.getRoomImage(k._SafeStr_6266, k._SafeStr_6267, k._SafeStr_6268, k._SafeStr_6269, this, _local_2); var _local_4:_SafeStr_2973 = page.viewer.roomEngine.getGenericRoomObjectImage(_local_2, "", new _SafeStr_2308(180, 0, 0), k._SafeStr_6269, this); if (((!((_local_3 == null))) && (!((_local_4 == null))))) { this._SafeStr_6258 = _local_3.id; this._SafeStr_6259 = _local_4.id; _local_5 = (_local_3.data as BitmapData); _local_6 = (_local_4.data as BitmapData); if (this._SafeStr_6260 != null) { this._SafeStr_6260.dispose(); }; if (this._SafeStr_6261 != null) { this._SafeStr_6261.dispose(); }; this._SafeStr_6260 = _local_5; this._SafeStr_6261 = _local_6; this._SafeStr_6270(_local_5, _local_6); }; } private function _SafeStr_6270(k:BitmapData, _arg_2:BitmapData):void{ var _local_3:IBitmapWrapperWindow; var _local_4:int; var _local_5:int; var _local_6:int; var _local_7:int; var _local_8:int; var _local_9:int; if (((((!((k == null))) && (!((_arg_2 == null))))) && (!(window.disposed)))) { _local_3 = (window.getChildByName("catalog_floor_preview_example") as IBitmapWrapperWindow); if (_local_3 != null) { if (_local_3.bitmap == null) { _local_3.bitmap = new BitmapData(_local_3.width, _local_3.height, true, 0xFFFFFF); }; _local_4 = -45; _local_5 = 20; _local_3.bitmap.fillRect(_local_3.bitmap.rect, 0xFFFFFF); _local_6 = (((_local_3.width - k.width) / 2) + _local_4); _local_7 = (((_local_3.height - k.height) / 2) + _local_5); _local_3.bitmap.copyPixels(k, k.rect, new Point(_local_6, _local_7), null, null, true); _local_8 = ((_local_3.width / 2) + _local_4); _local_9 = (((_local_3.height / 2) + _local_5) - _arg_2.height); _local_8 = (_local_8 + 1); _local_9 = (_local_9 + 44); _local_3.bitmap.copyPixels(_arg_2, _arg_2.rect, new Point(_local_8, _local_9), null, null, true); _local_3.invalidate(); }; }; } public function imageReady(k:int, _arg_2:BitmapData):void{ if (disposed) { return; }; switch (k) { case this._SafeStr_6258: this._SafeStr_6258 = 0; if (this._SafeStr_6260 != null) { this._SafeStr_6260.dispose(); }; this._SafeStr_6260 = _arg_2; break; case this._SafeStr_6259: this._SafeStr_6259 = 0; if (this._SafeStr_6261 != null) { this._SafeStr_6261.dispose(); }; this._SafeStr_6261 = _arg_2; break; }; if (((!((this._SafeStr_6260 == null))) && (!((this._SafeStr_6261 == null))))) { this._SafeStr_6270(this._SafeStr_6260, this._SafeStr_6261); }; } public function _SafeStr_5602(k:int):void{ } } }//package _-0bT // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2447 = "_-6if" (String#5825, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4835 = "_-2px" (String#14143, DoABC#3) // _SafeStr_5152 = "_-1cj" (String#8895, DoABC#3) // _SafeStr_5166 = "_-4lM" (String#12474, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_6090 = "_-6DS" (String#6426, DoABC#3) // _SafeStr_6151 = "_-0dj" (String#644, DoABC#3) // _SafeStr_6157 = "_-4Sn" (String#12135, DoABC#3) // _SafeStr_6255 = "_-6HO" (String#6885, DoABC#3) // _SafeStr_6258 = "_-4ov" (String#22933, DoABC#3) // _SafeStr_6259 = "_-4VI" (String#23450, DoABC#3) // _SafeStr_6260 = "_-5DX" (String#6936, DoABC#3) // _SafeStr_6261 = "_-1Pu" (String#7131, DoABC#3) // _SafeStr_6262 = "_-5k5" (String#4688, DoABC#3) // _SafeStr_6263 = "_-W" (String#29994, DoABC#3) // _SafeStr_6264 = "_-6Be" (String#11716, DoABC#3) // _SafeStr_6265 = "_-4d-" (String#35172, DoABC#3) // _SafeStr_6266 = "_-3jg" (String#6824, DoABC#3) // _SafeStr_6267 = "_-6MP" (String#6668, DoABC#3) // _SafeStr_6268 = "_-3yM" (String#6745, DoABC#3) // _SafeStr_6269 = "_-2Ts" (String#18510, DoABC#3) // _SafeStr_6270 = "_-004" (String#27487, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4836 package _-0bT{ import _-5tE._SafeStr_502; import _-6Sj.IButtonWindow; import _-5Vh.WindowMouseEvent; import _-29V.IWindowContainer; import _-5tE._SafeStr_3548; import _-4-i._SafeStr_3451; import _-En._SafeStr_2382; import _-4-i._SafeStr_2445; import _-5tE._SafeStr_3533; public class _SafeStr_4836 extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6183:_SafeStr_502; private var _SafeStr_6186:IButtonWindow; private var _SafeStr_6188:int = -1; public function _SafeStr_4836(k:IWindowContainer, _arg_2:_SafeStr_502){ super(k); this._SafeStr_6186 = (_SafeStr_5322.findChildByName("listen") as IButtonWindow); _SafeStr_4.log(("Trax listener found button: " + this._SafeStr_6186)); if (this._SafeStr_6186 != null) { this._SafeStr_6186.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6192); this._SafeStr_6186.disable(); }; this._SafeStr_6183 = _arg_2; } override public function dispose():void{ if (this._SafeStr_6186 != null) { this._SafeStr_6186.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_6192); }; if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6183._SafeStr_6197.stop(_SafeStr_3548._SafeStr_6198); this._SafeStr_6183 = null; }; super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; if (page.offers.length == 0) { return (false); }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); return (true); } override public function closed():void{ super.closed(); if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6183._SafeStr_6197.stop(_SafeStr_3548._SafeStr_6198); }; } private function _SafeStr_6047(k:_SafeStr_2445):void{ if ((((k == null)) || ((k.offer == null)))) { return; }; var _local_2:Boolean; var _local_3:_SafeStr_2382 = k.offer.product; if (_local_3._SafeStr_5769.length > 0) { this._SafeStr_6188 = parseInt(_local_3._SafeStr_5769); _local_2 = true; }; if (this._SafeStr_6186 != null) { if (_local_2) { this._SafeStr_6186.enable(); } else { this._SafeStr_6186.disable(); }; }; } private function _SafeStr_6192(k:WindowMouseEvent):void{ if (((!((this._SafeStr_6183 == null))) && (!((this._SafeStr_6183._SafeStr_6197 == null))))) { this._SafeStr_6199(_SafeStr_3548._SafeStr_6200); this._SafeStr_6199(_SafeStr_3548._SafeStr_6198); this._SafeStr_6183._SafeStr_6197._SafeStr_6201(this._SafeStr_6188, _SafeStr_3548._SafeStr_6198, 15, 40, 0, 2); }; } private function _SafeStr_6199(k:int):void{ var _local_3:_SafeStr_3533; var _local_2:int = this._SafeStr_6183._SafeStr_6197._SafeStr_6202(k); if (_local_2 != -1) { _local_3 = this._SafeStr_6183._SafeStr_6197._SafeStr_6203(_local_2); if (_local_3._SafeStr_6204 != null) { _local_3._SafeStr_6204._SafeStr_6205 = 0; }; }; } } }//package _-0bT // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3533 = "_-3NR" (String#2114, DoABC#3) // _SafeStr_3548 = "_-2lA" (String#2822, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4836 = "_-1W6" (String#15069, DoABC#3) // _SafeStr_502 = "_-1GQ" (String#2451, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6183 = "_-4eX" (String#827, DoABC#3) // _SafeStr_6186 = "_-IC" (String#4125, DoABC#3) // _SafeStr_6188 = "_-2xR" (String#6691, DoABC#3) // _SafeStr_6192 = "_-2jo" (String#14313, DoABC#3) // _SafeStr_6197 = "_-3ty" (String#2584, DoABC#3) // _SafeStr_6198 = "_-UD" (String#7375, DoABC#3) // _SafeStr_6199 = "_-5gB" (String#16479, DoABC#3) // _SafeStr_6200 = "_-30Z" (String#6030, DoABC#3) // _SafeStr_6201 = "_-5Cy" (String#13290, DoABC#3) // _SafeStr_6202 = "_-1V6" (String#9277, DoABC#3) // _SafeStr_6203 = "_-2YQ" (String#3729, DoABC#3) // _SafeStr_6204 = "_-31d" (String#4237, DoABC#3) // _SafeStr_6205 = "_-4rM" (String#6886, DoABC#3) //------------------------------------------------------------ //_-0bT._SafeStr_4837 package _-0bT{ import _-6Sj.IButtonWindow; import _-5Vh.WindowMouseEvent; import _-29V.IWindowContainer; import _-3sY.HabboTracking; import _-2LW._SafeStr_4146; import _-px._SafeStr_2388; public class _SafeStr_4837 extends _SafeStr_3460 implements _SafeStr_3459 { private var _button:IButtonWindow; public function _SafeStr_4837(k:IWindowContainer){ super(k); if (this._button) { this._button.removeEventListener(WindowMouseEvent.CLICK, this._SafeStr_6271); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._button = (window.findChildByName("start_guild_purchase") as IButtonWindow); this._button.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6271); return (true); } private function _SafeStr_6271(k:WindowMouseEvent):void{ if (HabboTracking.getInstance() != null) { HabboTracking.getInstance().trackGoogle("groupPurchase", "catalogBuyClicked"); }; page.viewer.catalog.connection.send(new _SafeStr_4146()); page.viewer.catalog.toggleCatalog(_SafeStr_2388.NORMAL); } } }//package _-0bT // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4146 = "_-4GG" (String#11934, DoABC#3) // _SafeStr_4837 = "_-1eq" (String#15571, DoABC#3) // _SafeStr_6271 = "_-2xA" (String#2088, DoABC#3) //------------------------------------------------------------ //_-0bT.BuilderAddonsCatalogWidget package _-0bT{ import _-4Y1._SafeStr_3; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-3WJ._SafeStr_2399; import _-6Sj.IItemListWindow; import _-29V.IWindow; import _-6Sj.IButtonWindow; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; public class BuilderAddonsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3 { private var _SafeStr_5539:HabboCatalog; public function BuilderAddonsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function init():Boolean{ var _local_5:_SafeStr_2399; var _local_6:IWindowContainer; if (!super.init()) { return (false); }; _SafeStr_5322.procedure = this._SafeStr_5753; var k:IItemListWindow = (_SafeStr_5322.findChildByName("addons_list") as IItemListWindow); var _local_2:IWindow = k._SafeStr_6272(0); var _local_3:int; var _local_4 = (this._SafeStr_5539._SafeStr_6250 > 0); _SafeStr_5322.findChildByName("trial_warning").visible = !(_local_4); for each (_local_5 in page.offers) { _local_6 = (_local_2.clone() as IWindowContainer); _local_6.findChildByName("item_header").caption = _local_5._SafeStr_6273; _local_6.findChildByName("item_price").caption = _local_5.priceInCredits.toString(); _local_6.findChildByName("item_buy").caption = _local_5._SafeStr_6274; _local_6.findChildByName("item_buy").id = _local_3; if (_local_5.priceInActivityPoints > 0) { _local_6.findChildByName("diamonds_icon").visible = true; _local_6.findChildByName("diamonds_price").visible = true; _local_6.findChildByName("diamonds_price").caption = _local_5.priceInActivityPoints.toString(); }; if (!_local_4) { IButtonWindow(_local_6.findChildByName("item_buy")).disable(); }; _local_3++; k.addListItem(_local_6); }; return (true); } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (k.type != WindowMouseEvent.CLICK) { return; }; if (_arg_2.name == "item_buy") { this._SafeStr_5539._SafeStr_6243(page.offers[_arg_2.id], page.pageId); }; } } }//package _-0bT // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_6243 = "_-6ZF" (String#7922, DoABC#3) // _SafeStr_6250 = "_-4Mj" (String#14833, DoABC#3) // _SafeStr_6272 = "_-6Yg" (String#2938, DoABC#3) // _SafeStr_6273 = "_-3l8" (String#11312, DoABC#3) // _SafeStr_6274 = "_-2yn" (String#11272, DoABC#3) //------------------------------------------------------------ //_-0bT.BuilderLoyaltyCatalogWidget package _-0bT{ import _-4Y1._SafeStr_3; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-3WJ._SafeStr_2399; import _-6Sj.IItemListWindow; import _-29V.IWindow; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; public class BuilderLoyaltyCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3 { private var _SafeStr_5539:HabboCatalog; public function BuilderLoyaltyCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function init():Boolean{ var _local_4:_SafeStr_2399; var _local_5:IWindowContainer; if (!super.init()) { return (false); }; _SafeStr_5322.procedure = this._SafeStr_5753; var k:IItemListWindow = (_SafeStr_5322.findChildByName("loyalty_list") as IItemListWindow); var _local_2:IWindow = k._SafeStr_6272(0); var _local_3:int; for each (_local_4 in page.offers) { _local_5 = (_local_2.clone() as IWindowContainer); _local_5.findChildByName("item_header").caption = _local_4._SafeStr_6273; this._SafeStr_5539.utils._SafeStr_5807((_local_5.findChildByName("item_cost_box") as IWindowContainer), _local_4); _local_5.findChildByName("item_buy").caption = _local_4._SafeStr_6274; _local_5.findChildByName("item_buy").id = _local_3; _local_3++; k.addListItem(_local_5); }; return (true); } private function _SafeStr_5753(k:WindowEvent, _arg_2:IWindow):void{ if (k.type != WindowMouseEvent.CLICK) { return; }; if (_arg_2.name == "item_buy") { this._SafeStr_5539._SafeStr_6243(page.offers[_arg_2.id], page.pageId); }; } } }//package _-0bT // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5753 = "_-3ax" (String#1832, DoABC#3) // _SafeStr_5807 = "_-0fY" (String#9176, DoABC#3) // _SafeStr_6243 = "_-6ZF" (String#7922, DoABC#3) // _SafeStr_6272 = "_-6Yg" (String#2938, DoABC#3) // _SafeStr_6273 = "_-3l8" (String#11312, DoABC#3) // _SafeStr_6274 = "_-2yn" (String#11272, DoABC#3) //------------------------------------------------------------ //_-0bT.BundleGridViewCatalogWidget package _-0bT{ import _-En._SafeStr_3456; import _-En._SafeStr_3457; import _-3WJ._SafeStr_2399; import _-6Sj.IItemGridWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-3UH.XmlAsset; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_3507; import _-En._SafeStr_2382; import _-29V.IWindow; import flash.display.BitmapData; import _-px._SafeStr_2511; import _-En._SafeStr_2383; import _-5x9._SafeStr_2213; import _-5x9._SafeStr_2367; import __AS3__.vec.Vector; public class BundleGridViewCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3456, _SafeStr_3457 { private var _SafeStr_6151:_SafeStr_2399; private var _SafeStr_6275:XML; private var _SafeStr_6276:IItemGridWindow; public function BundleGridViewCatalogWidget(k:IWindowContainer){ super(k); } override public function init():Boolean{ if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); var k:XmlAsset = (page.viewer.catalog.assets.getAssetByName("gridItem") as XmlAsset); this._SafeStr_6275 = (k.content as XML); this._SafeStr_6276 = IItemGridWindow(_SafeStr_5322.findChildByName("bundleGrid")); return (true); } override public function dispose():void{ if (!disposed) { events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.removeEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); super.dispose(); }; } private function _SafeStr_6277(k:_SafeStr_3507):void{ var _local_2:_SafeStr_2399; if (page.offers.length == 1) { _local_2 = page.offers[0]; if (_local_2 != null) { events.dispatchEvent(new _SafeStr_2445(_local_2)); }; }; } private function _SafeStr_6047(k:_SafeStr_2445):void{ this._SafeStr_6151 = k.offer; this._SafeStr_6276.destroyGridItems(); this._SafeStr_6278(); } protected function _SafeStr_6278():void{ var _local_2:_SafeStr_2382; var _local_3:IWindowContainer; var _local_4:IWindow; var _local_5:BitmapData; var k:IWindowContainer = (this._SafeStr_6151.page.viewer.catalog.windowManager.buildFromXML(this._SafeStr_6275) as IWindowContainer); for each (_local_2 in this._SafeStr_6151.productContainer.products) { if (_local_2._SafeStr_5797 == _SafeStr_2511._SafeStr_6279) { } else { _local_3 = (k.clone() as IWindowContainer); _local_4 = _local_3.findChildByName("clubLevelIcon"); if (_local_4 != null) { _local_4.visible = false; }; this._SafeStr_6276._SafeStr_5382(_local_3); _local_2.view = _local_3; _local_5 = _local_2._SafeStr_6280(this); if (_local_5 != null) { _local_5.dispose(); }; _local_2.grid = this; }; }; } public function get offer():_SafeStr_2399{ return (this._SafeStr_6151); } public function select(k:_SafeStr_2383, _arg_2:Boolean):void{ } public function _SafeStr_6281(k:_SafeStr_2383):Boolean{ return (false); } public function initProductIcon(k:_SafeStr_2213, _arg_2:_SafeStr_2367=null):void{ } public function activate():void{ } public function get products():Vector.<_SafeStr_2382>{ return (null); } public function get _SafeStr_6282():_SafeStr_2382{ return (null); } public function set view(k:IWindowContainer):void{ } public function get view():IWindowContainer{ return (null); } public function set grid(k:_SafeStr_3456):void{ } public function _SafeStr_6283(k:int):void{ } } }//package _-0bT // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2383 = "_-08I" (String#3016, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3456 = "_-1Re" (String#5499, DoABC#3) // _SafeStr_3457 = "_-6W2" (String#4723, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6151 = "_-0dj" (String#644, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6276 = "_-32R" (String#1461, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6278 = "_-2p2" (String#8163, DoABC#3) // _SafeStr_6279 = "_-58y" (String#6067, DoABC#3) // _SafeStr_6280 = "_-0cX" (String#19579, DoABC#3) // _SafeStr_6281 = "_-4tE" (String#15786, DoABC#3) // _SafeStr_6282 = "_-0dH" (String#9332, DoABC#3) // _SafeStr_6283 = "_-6Rq" (String#18531, DoABC#3) //------------------------------------------------------------ //_-0bT.ClubBuyCatalogWidget package _-0bT{ import _-5GB._SafeStr_2466; import _-29V.IWindowContainer; import _-3WJ.HabboCatalog; import _-px._SafeStr_2462; import _-5GB._SafeStr_5160; import _-Qx._SafeStr_500; import _-0Cn._SafeStr_2358; import _-En._SafeStr_2503; import _-5A9._SafeStr_2356; import _-WS.ErrorReportStorage; import _-29V.IWindow; import _-4Am.WindowParam; import _-5Vh.WindowMouseEvent; import _-6Sj.IItemListWindow; import _-En.CatalogPage; import _-5GB._SafeStr_2400; import _-4Y1._SafeStr_12; import _-35T._SafeStr_6; import _-64Q._SafeStr_2464; import _-5Vh.WindowEvent; public class ClubBuyCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3505 { private var _SafeStr_5332:_SafeStr_2466; private var _SafeStr_6168:Array; public function ClubBuyCatalogWidget(k:IWindowContainer){ super(k); } override public function dispose():void{ if (this._SafeStr_5332 != null) { this._SafeStr_5332._SafeStr_6169(this); }; this._SafeStr_5332 = null; this.reset(); super.dispose(); } public function get isGift():Boolean{ return (false); } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6168 = []; _SafeStr_5962(_SafeStr_4805._SafeStr_5973); this._SafeStr_5332 = (page.viewer.catalog as HabboCatalog)._SafeStr_6170(); this._SafeStr_5332._SafeStr_6171(this); this._SafeStr_5332._SafeStr_6172(_SafeStr_2462._SafeStr_6284); return (true); } public function reset():void{ var k:_SafeStr_5160; for each (k in this._SafeStr_6168) { k.dispose(); }; this._SafeStr_6168 = []; } public function _SafeStr_5964(clubType:int):void{ var catalog:HabboCatalog; var localization:_SafeStr_500; var purse:_SafeStr_2358; var clubDays:int; var clubPeriods:int; var clubDaysTotal:int; if (disposed) { return; }; var viewer:_SafeStr_2503 = page.viewer; if (viewer) { catalog = (viewer.catalog as HabboCatalog); if (catalog) { localization = catalog.localization; purse = catalog.getPurse(); if (((purse) && (localization))) { clubDays = purse.clubDays; clubPeriods = purse.clubPeriods; clubDaysTotal = ((clubPeriods * 31) + clubDays); localization.registerParameter("catalog.club.buy.remaining.hc", "days", String(clubDaysTotal)); localization.registerParameter("catalog.club.buy.remaining.vip", "days", String(clubDaysTotal)); }; }; }; try { if (_SafeStr_5322) { switch (clubType) { case _SafeStr_2356._SafeStr_6285: _SafeStr_5322.findChildByName("club_header").caption = "${catalog.club.buy.header.none}"; _SafeStr_5322.findChildByName("club_info").caption = "${catalog.club.buy.info.none}"; _SafeStr_5322.findChildByName("club_remaining").visible = false; _SafeStr_5322.findChildByName("club_remaining_bg").visible = false; break; case _SafeStr_2356._SafeStr_6286: _SafeStr_5322.findChildByName("club_header").caption = "${catalog.club.buy.header.hc}"; _SafeStr_5322.findChildByName("club_info").caption = "${catalog.club.buy.info.hc}"; _SafeStr_5322.findChildByName("club_remaining").caption = "${catalog.club.buy.remaining.hc}"; break; case _SafeStr_2356._SafeStr_6174: _SafeStr_5322.findChildByName("club_header").caption = "${catalog.club.buy.header.vip}"; _SafeStr_5322.findChildByName("club_info").caption = "${catalog.club.buy.info.vip}"; _SafeStr_5322.findChildByName("club_remaining").caption = "${catalog.club.buy.remaining.vip}"; this._SafeStr_6287(); break; }; }; } catch(e:Error) { ErrorReportStorage._SafeStr_6182("ClubBuyCatalogWidget", "initClubType - Window not properly constructed!"); }; this._SafeStr_6176(); } private function _SafeStr_6176():void{ var k:IWindow; if (_SafeStr_5322) { k = _SafeStr_5322.findChildByName("club_link"); if (k) { k.setParamFlag(WindowParam._SafeStr_6288); k._SafeStr_6178 = 0; k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6289); }; }; } public function _SafeStr_5794(offer:_SafeStr_2400):void{ var target:IItemListWindow; var item:_SafeStr_5160; if (disposed) { return; }; _SafeStr_4.log(("Offer: " + [offer._SafeStr_5719, offer._SafeStr_6179, offer.priceCredits, offer.vip, offer.months, offer._SafeStr_6180, offer.year, offer.month, offer.day, offer._SafeStr_6181])); offer.page = page; try { item = new _SafeStr_5160(offer, (page as CatalogPage)); } catch(e:Error) { ErrorReportStorage._SafeStr_6182("ClubBuyCatalogWidget", (((("showOffer - new ClubBuyItem(" + String(offer)) + ", ") + String((page as CatalogPage))) + ") crashed!")); return; }; if (offer.vip) { target = (_SafeStr_5322.findChildByName("item_list_vip") as IItemListWindow); } else { target = (_SafeStr_5322.findChildByName("item_list_hc") as IItemListWindow); }; if (target != null) { target.addListItem(item.window); }; this._SafeStr_6168.push(item); } private function _SafeStr_6289(k:WindowMouseEvent):void{ var _local_3:_SafeStr_12; var _local_4:String; var _local_2:String = IWindow(k.target).name; _local_3 = (page.viewer.catalog as HabboCatalog); switch (_local_2) { case "club_link": _local_4 = _local_3.getProperty("link.format.club"); this.openExternalLink(_local_4); return; }; } private function openExternalLink(k:String):void{ if (k != "") { page.viewer.catalog.windowManager.alert("${catalog.alert.external.link.title}", "${catalog.alert.external.link.desc}", 0, this._SafeStr_6290); _SafeStr_6.navigateToURL(k, "habboMain"); }; } private function _SafeStr_6290(k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); } private function _SafeStr_6287():void{ var _local_2:XML; var _local_3:IWindow; var k:IItemListWindow = (_SafeStr_5322.findChildByName("item_list_hc") as IItemListWindow); if (k != null) { _local_2 = _SafeStr_5961("club_buy_info_item"); _local_3 = page.viewer.catalog.windowManager.buildFromXML(_local_2); k.addListItem(_local_3); }; } } }//package _-0bT // _SafeStr_12 = "_-0VB" (String#1598, DoABC#3) // _SafeStr_2356 = "_-k9" (String#1139, DoABC#3) // _SafeStr_2358 = "_-3-A" (String#3987, DoABC#3) // _SafeStr_2400 = "_-Ab" (String#2832, DoABC#3) // _SafeStr_2462 = "_-3ZI" (String#6725, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2466 = "_-08B" (String#6415, DoABC#3) // _SafeStr_2503 = "_-2Z6" (String#7571, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3505 = "_-40k" (String#8215, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5160 = "_-31k" (String#7360, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5332 = "_-0CD" (String#194, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5794 = "_-1xE" (String#8405, DoABC#3) // _SafeStr_5961 = "_-5CF" (String#8353, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5964 = "_-41O" (String#17413, DoABC#3) // _SafeStr_5973 = "_-55h" (String#18015, DoABC#3) // _SafeStr_6 = "_-TM" (String#1447, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6169 = "_-0ZK" (String#25479, DoABC#3) // _SafeStr_6170 = "_-gm" (String#25749, DoABC#3) // _SafeStr_6171 = "_-35t" (String#10507, DoABC#3) // _SafeStr_6172 = "_-5W0" (String#10432, DoABC#3) // _SafeStr_6174 = "_-6L0" (String#1995, DoABC#3) // _SafeStr_6176 = "_-0Pr" (String#10891, DoABC#3) // _SafeStr_6178 = "_-6Jm" (String#3497, DoABC#3) // _SafeStr_6179 = "_-5B3" (String#2369, DoABC#3) // _SafeStr_6180 = "_-2FL" (String#15887, DoABC#3) // _SafeStr_6181 = "_-2Hc" (String#15610, DoABC#3) // _SafeStr_6182 = "_-5CK" (String#1829, DoABC#3) // _SafeStr_6284 = "_-34j" (String#18302, DoABC#3) // _SafeStr_6285 = "_-6bd" (String#3494, DoABC#3) // _SafeStr_6286 = "_-6QN" (String#3025, DoABC#3) // _SafeStr_6287 = "_-Fq" (String#34119, DoABC#3) // _SafeStr_6288 = "_-61H" (String#2578, DoABC#3) // _SafeStr_6289 = "_-GT" (String#25152, DoABC#3) // _SafeStr_6290 = "_-40b" (String#10947, DoABC#3) //------------------------------------------------------------ //_-0bT.ClubGiftWidget package _-0bT{ import _-5GB._SafeStr_2420; import _-WS.Map; import _-29V.IWindowContainer; import _-3WJ.HabboCatalog; import _-29V.IWindow; import _-3WJ._SafeStr_2399; import _-53T.CatalogPageMessageOfferData; import __AS3__.vec.Vector; import _-En._SafeStr_2382; import _-6bU._SafeStr_2357; import _-53T._SafeStr_2488; import _-53T._SafeStr_3477; import _-3Pt._SafeStr_2354; import _-En.Product; import _-6Sj.IItemListWindow; import _-En.Offer; import _-6Sj.IIconWindow; import _-6Sj.IButtonWindow; import _-En._SafeStr_3457; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; import flash.geom.Rectangle; import _-5x9._SafeStr_2973; import _-6Sj.IBitmapWrapperWindow; import _-0bw._SafeStr_2308; import _-px._SafeStr_2511; import flash.display.BitmapData; import flash.geom.Point; import _-3UH.XmlAsset; import __AS3__.vec.*; public class ClubGiftWidget extends _SafeStr_3460 implements _SafeStr_3459 { private const _SafeStr_6291:int = 31; private var _SafeStr_5332:_SafeStr_2420; private var _SafeStr_6168:Map; private var _SafeStr_6292:IWindowContainer; private var _SafeStr_5539:HabboCatalog; public function ClubGiftWidget(k:IWindowContainer, _arg_2:_SafeStr_2420, _arg_3:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_3; this._SafeStr_5332 = _arg_2; this._SafeStr_6168 = new Map(); } override public function dispose():void{ super.dispose(); this._SafeStr_5332 = null; this._SafeStr_5539 = null; if (this._SafeStr_6292) { this._SafeStr_6292.dispose(); this._SafeStr_6292 = null; }; } override public function init():Boolean{ if (!window) { return (false); }; if (!super.init()) { return (false); }; this._SafeStr_5332.widget = this; _SafeStr_5962(_SafeStr_4805._SafeStr_5974); _SafeStr_5322.findChildByName("info_text").caption = ""; _SafeStr_5322.findChildByName("past_club_days").caption = ""; _SafeStr_5322.findChildByName("past_vip_days").caption = ""; this.update(); return (true); } public function update():void{ this._SafeStr_6293(); this._SafeStr_6294(); } private function _SafeStr_6293():void{ var _local_2:String; var _local_3:int; var _local_4:int; var _local_7:int; if (((!(this._SafeStr_5332)) || (!(window)))) { return; }; var k:IWindow = window.findChildByName("info_text"); if (!k) { return; }; if (this._SafeStr_5332._SafeStr_6295 > 0) { _local_2 = "catalog.club_gift.available"; this._SafeStr_5332.localization.registerParameter(_local_2, "amount", this._SafeStr_5332._SafeStr_6295.toString()); } else { if (this._SafeStr_5332._SafeStr_6296 > 0) { _local_2 = "catalog.club_gift.days_until_next"; this._SafeStr_5332.localization.registerParameter(_local_2, "days", this._SafeStr_5332._SafeStr_6296.toString()); } else { if (this._SafeStr_5332._SafeStr_6297) { _local_2 = "catalog.club_gift.not_available"; } else { _local_2 = "catalog.club_gift.no_club"; }; }; }; k.caption = this._SafeStr_5332.localization.getLocalization(_local_2); if (!this._SafeStr_5332.purse) { return; }; var _local_5:IWindow = window.findChildByName("past_club_days"); if (_local_5) { _local_7 = (this._SafeStr_5332.purse._SafeStr_6298 + this._SafeStr_5332.purse._SafeStr_6299); _local_2 = (((_local_7 >= this._SafeStr_6291)) ? "catalog.club_gift.past_club.long" : "catalog.club_gift.past_club"); _local_3 = (_local_7 % this._SafeStr_6291); _local_4 = (_local_7 / this._SafeStr_6291); this._SafeStr_5332.localization.registerParameter(_local_2, "days", _local_3.toString()); this._SafeStr_5332.localization.registerParameter(_local_2, "months", _local_4.toString()); _local_5.caption = this._SafeStr_5332.localization.getLocalization(_local_2); }; var _local_6:IWindow = window.findChildByName("past_vip_days"); if (_local_6) { _local_2 = (((this._SafeStr_5332.purse._SafeStr_6299 >= this._SafeStr_6291)) ? "catalog.club_gift.past_vip.long" : "catalog.club_gift.past_vip"); _local_3 = (this._SafeStr_5332.purse._SafeStr_6299 % this._SafeStr_6291); _local_4 = (this._SafeStr_5332.purse._SafeStr_6299 / this._SafeStr_6291); this._SafeStr_5332.localization.registerParameter(_local_2, "days", _local_3.toString()); this._SafeStr_5332.localization.registerParameter(_local_2, "months", _local_4.toString()); _local_6.caption = this._SafeStr_5332.localization.getLocalization(_local_2); }; } private function _SafeStr_6294():void{ var k:_SafeStr_2399; var _local_2:Array; var _local_5:IWindow; var _local_6:CatalogPageMessageOfferData; var _local_7:Vector.<_SafeStr_2382>; var _local_8:_SafeStr_2357; var _local_9:_SafeStr_2488; var _local_10:_SafeStr_3477; var _local_11:_SafeStr_2354; var _local_12:Product; if (((((!(this._SafeStr_5332)) || (!(window)))) || (!(page)))) { return; }; for each (k in this._SafeStr_6168) { k.dispose(); }; this._SafeStr_6168.reset(); _local_2 = this._SafeStr_5332._SafeStr_6300(); if (!_local_2) { return; }; var _local_3:Map = this._SafeStr_5332._SafeStr_6301(); if (!_local_3) { return; }; var _local_4:IItemListWindow = (window.findChildByName("gift_list") as IItemListWindow); if (!_local_4) { return; }; _local_4._SafeStr_6302(); for each (_local_6 in _local_2) { _local_7 = new Vector.<_SafeStr_2382>(0); _local_8 = this._SafeStr_5332.catalog.getProductData(_local_6._SafeStr_5799); for each (_local_9 in _local_6.products) { _local_11 = this._SafeStr_5332.catalog._SafeStr_5869(_local_9._SafeStr_6303, _local_9._SafeStr_5797); _local_12 = new Product(_local_9._SafeStr_5797, _local_9._SafeStr_6303, _local_9._SafeStr_5769, _local_9.productCount, _local_8, _local_11, this._SafeStr_5539); _local_7.push(_local_12); }; k = new Offer(_local_6._SafeStr_5719, _local_6._SafeStr_5799, _local_6._SafeStr_6304, _local_6.priceInCredits, _local_6.priceInActivityPoints, _local_6.activityPointType, _local_6._SafeStr_6237, _local_6.clubLevel, _local_7, _local_6._SafeStr_5796, this._SafeStr_5539); k.page = page; _local_10 = (_local_3.getValue(k._SafeStr_5719) as _SafeStr_3477); _local_5 = this._SafeStr_6305(k, _local_10); if (!_local_5) { } else { _local_4.addListItem(_local_5); this._SafeStr_6168.add(k._SafeStr_5719, k); }; }; } private function _SafeStr_6305(k:_SafeStr_2399, _arg_2:_SafeStr_3477):IWindow{ var _local_6:int; var _local_7:String; var _local_12:int; var _local_13:int; if (((((!(k)) || (!(k.product)))) || (!(_arg_2)))) { return (null); }; var _local_3:IWindowContainer = (this.createWindow("club_gift_list_item") as IWindowContainer); if (!_local_3) { return (null); }; _local_3.procedure = this._SafeStr_6306; var _local_4:_SafeStr_2382 = k.product; if (!_local_4) { return (null); }; var _local_5:_SafeStr_2357 = _local_4._SafeStr_5767; if (!_local_5) { return (null); }; this._SafeStr_6307(_local_3.findChildByName("gift_name"), _local_5.name); this._SafeStr_6307(_local_3.findChildByName("gift_desc"), _local_5.description); if (_arg_2._SafeStr_6308) { _local_6 = (_arg_2._SafeStr_6309 - this._SafeStr_5332.purse._SafeStr_6299); } else { _local_6 = (_arg_2._SafeStr_6309 - (this._SafeStr_5332.purse._SafeStr_6298 + this._SafeStr_5332.purse._SafeStr_6299)); }; if (((!(_arg_2._SafeStr_6310)) && ((_local_6 > 0)))) { if (_arg_2._SafeStr_6308) { _local_7 = "catalog.club_gift.vip_missing"; } else { _local_7 = "catalog.club_gift.club_missing"; }; if (_local_6 >= this._SafeStr_6291) { _local_7 = (_local_7 + ".long"); }; _local_12 = (_local_6 % this._SafeStr_6291); _local_13 = (_local_6 / this._SafeStr_6291); this._SafeStr_5332.localization.registerParameter(_local_7, "days", _local_12.toString()); this._SafeStr_5332.localization.registerParameter(_local_7, "months", _local_13.toString()); } else { if (this._SafeStr_5332._SafeStr_6295 > 0) { _local_7 = "catalog.club_gift.selectable"; } else { _local_7 = ""; }; }; this._SafeStr_6307(_local_3.findChildByName("months_required"), (((_local_7.length > 0)) ? this._SafeStr_5332.localization.getLocalization(_local_7) : "")); var _local_8:IIconWindow = (_local_3.findChildByName("vip_icon") as IIconWindow); if (_local_8) { _local_8.visible = _arg_2._SafeStr_6308; }; var _local_9:IButtonWindow = (_local_3.findChildByName("select_button") as IButtonWindow); if (_local_9) { if (((_arg_2._SafeStr_6310) && ((this._SafeStr_5332._SafeStr_6295 > 0)))) { _local_9.enable(); } else { _local_9.disable(); }; _local_9.id = k._SafeStr_5719; }; var _local_10:_SafeStr_3457 = k.productContainer; if (!_local_10) { return (null); }; if (((((!(page)) || (!(page.viewer)))) || (!(page.viewer.roomEngine)))) { return (null); }; var _local_11:IWindowContainer = (_local_3.findChildByName("image_container") as IWindowContainer); if (_local_11) { _local_10.view = _local_11; _local_10.initProductIcon(page.viewer.roomEngine); _local_11.procedure = this._SafeStr_6311; _local_11.id = k._SafeStr_5719; }; return (_local_3); } private function _SafeStr_6307(k:IWindow, _arg_2:String):void{ k.caption = _arg_2; } private function _SafeStr_6306(k:WindowEvent, _arg_2:IWindow):void{ if (((((((!(k)) || (!(_arg_2)))) || (!(this._SafeStr_6168)))) || (!(this._SafeStr_5332)))) { return; }; if (k.type != WindowMouseEvent.CLICK) { return; }; if (_arg_2.name != "select_button") { return; }; var _local_3:_SafeStr_2399 = this._SafeStr_6168.getValue(_arg_2.id); if (!_local_3) { return; }; this._SafeStr_5332._SafeStr_6312(_local_3); } private function _SafeStr_6311(k:WindowEvent, _arg_2:IWindow):void{ var _local_4:Rectangle; if (((((!(k)) || (!(_arg_2)))) || (!(this._SafeStr_6168)))) { return; }; if (_arg_2.name != "image_container") { return; }; var _local_3:_SafeStr_2399 = this._SafeStr_6168.getValue(_arg_2.id); if (!_local_3) { return; }; if (k.type == WindowMouseEvent._SafeStr_5575) { _local_4 = new Rectangle(); _arg_2.getGlobalRectangle(_local_4); }; if (k.type == WindowMouseEvent._SafeStr_5577) { this._SafeStr_6313(); }; } private function _SafeStr_6314(k:Offer, _arg_2:Rectangle):void{ var _local_5:_SafeStr_2973; if (((!(k)) || (!(k.productContainer)))) { return; }; if (((((!(page)) || (!(page.viewer)))) || (!(page.viewer.roomEngine)))) { return; }; var _local_3:_SafeStr_2382 = k.product; if (!_local_3) { return; }; if (!this._SafeStr_6292) { this._SafeStr_6292 = (this.createWindow("club_gift_preview") as IWindowContainer); }; if (!this._SafeStr_6292) { return; }; var _local_4:IBitmapWrapperWindow = (this._SafeStr_6292.findChildByName("image") as IBitmapWrapperWindow); if (!_local_4) { return; }; switch (_local_3._SafeStr_5797) { case _SafeStr_2511._SafeStr_5754: _local_5 = page.viewer.roomEngine.getFurnitureImage(_local_3._SafeStr_5766, new _SafeStr_2308(90), 64, null, 0, _local_3._SafeStr_5769); break; case _SafeStr_2511._SafeStr_5755: _local_5 = page.viewer.roomEngine.getWallItemImage(_local_3._SafeStr_5766, new _SafeStr_2308(90), 64, null, 0, _local_3._SafeStr_5769); break; default: return; }; if (((!(_local_5)) || (!(_local_5.data)))) { return; }; _local_4.width = _local_5.data.width; _local_4.height = _local_5.data.height; if (_local_4.bitmap) { _local_4.bitmap.dispose(); }; _local_4.bitmap = new BitmapData(_local_4.width, _local_4.height); _local_4.bitmap.draw(_local_5.data); _local_5.data.dispose(); var _local_6:Point = Point.interpolate(_arg_2.topLeft, _arg_2.bottomRight, 0.5); this._SafeStr_6292._SafeStr_6315(_local_6.subtract(new Point((this._SafeStr_6292.width / 2), (this._SafeStr_6292.height / 2)))); this._SafeStr_6292.visible = true; this._SafeStr_6292.activate(); } private function _SafeStr_6313():void{ if (this._SafeStr_6292) { this._SafeStr_6292.visible = false; }; } private function createWindow(k:String):IWindow{ if (((((!(this._SafeStr_5332)) || (!(this._SafeStr_5332.assets)))) || (!(this._SafeStr_5332.windowManager)))) { return (null); }; var _local_2:XmlAsset = (this._SafeStr_5332.assets.getAssetByName(k) as XmlAsset); if (((!(_local_2)) || (!(_local_2.content)))) { return (null); }; var _local_3:XML = (_local_2.content as XML); if (!_local_3) { return (null); }; return (this._SafeStr_5332.windowManager.buildFromXML(_local_3)); } } }//package _-0bT // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2357 = "_-k5" (String#2324, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2420 = "_-45m" (String#6969, DoABC#3) // _SafeStr_2488 = "_-pH" (String#2816, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3457 = "_-6W2" (String#4723, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3477 = "_-5eE" (String#7063, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5332 = "_-0CD" (String#194, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5754 = "_-4oV" (String#2852, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5767 = "_-1rs" (String#11821, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5796 = "_-1ly" (String#4673, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_5869 = "_-0sr" (String#4058, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5974 = "_-0lm" (String#19722, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6237 = "_-1qc" (String#5738, DoABC#3) // _SafeStr_6291 = "_-2J1" (String#8158, DoABC#3) // _SafeStr_6292 = "_-SZ" (String#5487, DoABC#3) // _SafeStr_6293 = "_-1ul" (String#14361, DoABC#3) // _SafeStr_6294 = "_-02v" (String#13938, DoABC#3) // _SafeStr_6295 = "_-2lB" (String#10728, DoABC#3) // _SafeStr_6296 = "_-3hp" (String#17614, DoABC#3) // _SafeStr_6297 = "_-YL" (String#9631, DoABC#3) // _SafeStr_6298 = "_-2XW" (String#9331, DoABC#3) // _SafeStr_6299 = "_-2Xz" (String#6449, DoABC#3) // _SafeStr_6300 = "_-2Ij" (String#25523, DoABC#3) // _SafeStr_6301 = "_-fM" (String#38268, DoABC#3) // _SafeStr_6302 = "_-U9" (String#2422, DoABC#3) // _SafeStr_6303 = "_-2Us" (String#8437, DoABC#3) // _SafeStr_6304 = "_-2TV" (String#18476, DoABC#3) // _SafeStr_6305 = "_-1Ji" (String#9483, DoABC#3) // _SafeStr_6306 = "_-18L" (String#6288, DoABC#3) // _SafeStr_6307 = "_-207" (String#1665, DoABC#3) // _SafeStr_6308 = "_-1CA" (String#15840, DoABC#3) // _SafeStr_6309 = "_-0jG" (String#27162, DoABC#3) // _SafeStr_6310 = "_-2yR" (String#14958, DoABC#3) // _SafeStr_6311 = "_-0bc" (String#33788, DoABC#3) // _SafeStr_6312 = "_-3dl" (String#35656, DoABC#3) // _SafeStr_6313 = "_-12d" (String#33904, DoABC#3) // _SafeStr_6314 = "_-6fS" (String#12504, DoABC#3) // _SafeStr_6315 = "_-4JU" (String#14571, DoABC#3) //------------------------------------------------------------ //_-0bT.ColourGridCatalogWidget package _-0bT{ import _-6Sj.IItemGridWindow; import flash.display.BitmapData; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-3UH.XmlAsset; import _-3UH.BitmapDataAsset; import _-4-i._SafeStr_5154; import _-4-i._SafeStr_5167; import _-29V.IWindow; import _-6Sj.IBitmapWrapperWindow; import _-5Vh.WindowMouseEvent; import flash.geom.Point; import flash.geom.ColorTransform; import flash.geom.Rectangle; import _-4-i._SafeStr_5153; public class ColourGridCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6316:Array; private var _SafeStr_6317:IItemGridWindow; private var _SafeStr_6318:XML; private var _SafeStr_6319:BitmapData; private var _SafeStr_6320:BitmapData; private var _SafeStr_6321:BitmapData; private var _SafeStr_6322:IWindowContainer; public function ColourGridCatalogWidget(k:IWindowContainer){ super(k); } override public function dispose():void{ if (!this._SafeStr_6317.disposed) { this._SafeStr_6317.destroyGridItems(); this._SafeStr_6317.dispose(); }; this._SafeStr_6317 = null; this._SafeStr_6318 = null; this._SafeStr_6322 = null; events.removeEventListener(_SafeStr_3451.COLOUR_ARRAY, this._SafeStr_6323); events.removeEventListener(_SafeStr_3451.MULTI_COLOUR_ARRAY, this._SafeStr_6324); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5975); var k = (_SafeStr_5322.tags.indexOf("FIXED") > -1); if (!k) { _SafeStr_5322.getChildAt(0).width = _SafeStr_5322.width; _SafeStr_5322.getChildAt(0).height = _SafeStr_5322.height; }; this._SafeStr_6317 = (_SafeStr_5322.findChildByName("colourGrid") as IItemGridWindow); this._SafeStr_6317.width = window.width; this._SafeStr_6317.height = window.height; var _local_2:XmlAsset = (page.viewer.catalog.assets.getAssetByName("color_chooser_cell") as XmlAsset); this._SafeStr_6318 = (_local_2.content as XML); events.addEventListener(_SafeStr_3451.COLOUR_ARRAY, this._SafeStr_6323); events.addEventListener(_SafeStr_3451.MULTI_COLOUR_ARRAY, this._SafeStr_6324); return (true); } private function _SafeStr_6323(k:_SafeStr_5154):void{ var _local_2:int; var _local_3:BitmapDataAsset; var _local_4:BitmapDataAsset; var _local_5:BitmapDataAsset; this._SafeStr_6316 = []; for each (_local_2 in k._SafeStr_5871) { this._SafeStr_6316.push([_local_2]); }; _local_3 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6325) as BitmapDataAsset); this._SafeStr_6319 = (_local_3.content as BitmapData); _local_4 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6326) as BitmapDataAsset); this._SafeStr_6320 = (_local_4.content as BitmapData); _local_5 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6327) as BitmapDataAsset); this._SafeStr_6321 = (_local_5.content as BitmapData); this._SafeStr_6328(); this.select((this._SafeStr_6317._SafeStr_5897(k.index) as IWindowContainer)); } private function _SafeStr_6324(k:_SafeStr_5167):void{ var _local_2:Array; var _local_3:BitmapDataAsset; var _local_4:BitmapDataAsset; var _local_5:BitmapDataAsset; this._SafeStr_6316 = []; for each (_local_2 in k._SafeStr_5871) { this._SafeStr_6316.push(_local_2.slice()); }; _local_3 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6325) as BitmapDataAsset); this._SafeStr_6319 = (_local_3.content as BitmapData); _local_4 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6326) as BitmapDataAsset); this._SafeStr_6320 = (_local_4.content as BitmapData); _local_5 = (page.viewer.catalog.assets.getAssetByName(k._SafeStr_6327) as BitmapDataAsset); this._SafeStr_6321 = (_local_5.content as BitmapData); this._SafeStr_6328(); this.select((this._SafeStr_6317._SafeStr_5897(0) as IWindowContainer)); } private function select(k:IWindowContainer):void{ var _local_2:IWindow; _SafeStr_4.log(("[ColourGridCatalogWidget] Select: " + k)); if (this._SafeStr_6322 != null) { _local_2 = this._SafeStr_6322.getChildByName("chosen"); if (_local_2 != null) { _local_2.visible = false; }; }; this._SafeStr_6322 = k; if (this._SafeStr_6322 != null) { _local_2 = this._SafeStr_6322.getChildByName("chosen"); }; if (_local_2 != null) { _local_2.visible = true; }; } private function _SafeStr_6328():void{ var k:Array; var _local_2:IWindowContainer; var _local_3:IBitmapWrapperWindow; var _local_4:IBitmapWrapperWindow; var _local_5:IBitmapWrapperWindow; var _local_6:uint; var _local_7:uint; var _local_8:uint; var _local_9:BitmapData; var _local_10:BitmapData; var _local_11:int; var _local_12:int; var _local_13:int; _SafeStr_4.log(("[ColourGridCatalogWidget] Display colors: " + [this._SafeStr_6316.length, this._SafeStr_6317.numGridItems])); this._SafeStr_6317.destroyGridItems(); this._SafeStr_6322 = null; for each (k in this._SafeStr_6316) { if (k.length > 0) { _local_2 = (page.viewer.catalog.windowManager.buildFromXML(this._SafeStr_6318) as IWindowContainer); _local_2.addEventListener(WindowMouseEvent.CLICK, this.onClick); _local_2.background = true; _local_2.color = 0xFFFFFFFF; _local_2.width = this._SafeStr_6319.width; _local_2.height = this._SafeStr_6319.height; this._SafeStr_6317._SafeStr_5382(_local_2); _local_3 = (_local_2.findChildByTag("BG_BORDER") as IBitmapWrapperWindow); if (_local_3 != null) { _local_3.bitmap = new BitmapData(this._SafeStr_6319.width, this._SafeStr_6319.height, true, 0); _local_3.bitmap.copyPixels(this._SafeStr_6319, this._SafeStr_6319.rect, new Point(0, 0)); }; _local_4 = (_local_2.findChildByTag("COLOR_IMAGE") as IBitmapWrapperWindow); if (_local_4 != null) { _local_4.bitmap = new BitmapData(this._SafeStr_6320.width, this._SafeStr_6320.height, true, 0); _local_6 = 0xFF; _local_7 = 0xFF; _local_8 = 0xFF; _local_9 = null; _local_10 = null; _local_11 = k[0]; if (_local_11 >= 0) { _local_6 = ((_local_11 >> 16) & 0xFF); _local_7 = ((_local_11 >> 8) & 0xFF); _local_8 = ((_local_11 >> 0) & 0xFF); }; _local_9 = this._SafeStr_6320.clone(); _local_9.colorTransform(_local_9.rect, new ColorTransform((_local_6 / 0xFF), (_local_7 / 0xFF), (_local_8 / 0xFF))); if (k.length > 1) { _local_12 = k[1]; if (_local_12 >= 0) { _local_6 = ((_local_12 >> 16) & 0xFF); _local_7 = ((_local_12 >> 8) & 0xFF); _local_8 = ((_local_12 >> 0) & 0xFF); }; _local_10 = this._SafeStr_6320.clone(); _local_10.colorTransform(_local_10.rect, new ColorTransform((_local_6 / 0xFF), (_local_7 / 0xFF), (_local_8 / 0xFF))); }; _local_4.bitmap.copyPixels(_local_9, _local_9.rect, new Point(0, 0)); _local_9.dispose(); if (_local_10 != null) { _local_13 = (_local_10.width / 2); _local_4.bitmap.copyPixels(_local_10, new Rectangle(_local_13, 0, (_local_10.width - _local_13), _local_10.height), new Point((_local_10.width / 2), 0)); _local_10.dispose(); }; }; _local_5 = (_local_2.findChildByTag("COLOR_CHOSEN") as IBitmapWrapperWindow); if (_local_5 != null) { _local_5.bitmap = new BitmapData(this._SafeStr_6321.width, this._SafeStr_6321.height, true, 0xFFFFFF); _local_5.bitmap.copyPixels(this._SafeStr_6321, this._SafeStr_6321.rect, new Point(0, 0), null, null, true); _local_5.visible = false; }; }; }; } private function onClick(k:WindowMouseEvent):void{ this.select((k.target as IWindowContainer)); var _local_2:int = this._SafeStr_6317._SafeStr_5384((k.target as IWindow)); events.dispatchEvent(new _SafeStr_5153(_local_2)); } } }//package _-0bT // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_5153 = "_-0ok" (String#8203, DoABC#3) // _SafeStr_5154 = "_-0n-" (String#7250, DoABC#3) // _SafeStr_5167 = "_-6Lb" (String#13494, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5384 = "_-5Zh" (String#3966, DoABC#3) // _SafeStr_5871 = "_-ej" (String#9614, DoABC#3) // _SafeStr_5897 = "_-0hG" (String#2741, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5975 = "_-k-" (String#19363, DoABC#3) // _SafeStr_6316 = "_-2rk" (String#5161, DoABC#3) // _SafeStr_6317 = "_-2HN" (String#6131, DoABC#3) // _SafeStr_6318 = "_-3Ps" (String#21693, DoABC#3) // _SafeStr_6319 = "_-21" (String#9023, DoABC#3) // _SafeStr_6320 = "_-5CD" (String#13022, DoABC#3) // _SafeStr_6321 = "_-5r-" (String#11505, DoABC#3) // _SafeStr_6322 = "_-6lT" (String#1841, DoABC#3) // _SafeStr_6323 = "_-4jv" (String#28235, DoABC#3) // _SafeStr_6324 = "_-fc" (String#28906, DoABC#3) // _SafeStr_6325 = "_-6FG" (String#23914, DoABC#3) // _SafeStr_6326 = "_-3Df" (String#25745, DoABC#3) // _SafeStr_6327 = "_-KC" (String#25630, DoABC#3) // _SafeStr_6328 = "_-0rf" (String#19366, DoABC#3) //------------------------------------------------------------ //_-0bT.FeaturedItemsCatalogWidget package _-0bT{ import _-3WJ.HabboCatalog; import _-6Sj.IItemListWindow; import _-29V.IWindowContainer; import _-53T._SafeStr_2471; import _-6Sj._SafeStr_2434; import _-6Sj.ITextWindow; import _-29V.IWindow; import _-5Vh.WindowMouseEvent; import _-px._SafeStr_2386; import _-px._SafeStr_2388; import _-5Vh.WindowEvent; public class FeaturedItemsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6329:IItemListWindow; private var _SafeStr_5700:IWindowContainer; public function FeaturedItemsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { this._SafeStr_5539 = null; this._SafeStr_6329.dispose(); this._SafeStr_6329 = null; this._SafeStr_5700.dispose(); this._SafeStr_5700 = null; super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6329 = (window.findChildByName("itemlist_featured") as IItemListWindow); this._SafeStr_5700 = (this._SafeStr_6329.getListItemByName("featured_item_template") as IWindowContainer); this._SafeStr_6329._SafeStr_5892(); if ((((this._SafeStr_5539._SafeStr_6330 == null)) || ((this._SafeStr_5539._SafeStr_6330.length == 0)))) { return (true); }; var k:IWindowContainer = (_SafeStr_5322.findChildByName("firstitem") as IWindowContainer); this._SafeStr_6331(this._SafeStr_5539._SafeStr_6330[0], k); var _local_2:int = 1; while (_local_2 < Math.min(4, this._SafeStr_5539._SafeStr_6330.length)) { this._SafeStr_6329.addListItem(this._SafeStr_6332(this._SafeStr_5539._SafeStr_6330[_local_2])); _local_2++; }; return (true); } private function _SafeStr_6332(k:_SafeStr_2471):IWindowContainer{ return (this._SafeStr_6331(k, (this._SafeStr_5700.clone() as IWindowContainer))); } private function _SafeStr_6331(k:_SafeStr_2471, _arg_2:IWindowContainer):IWindowContainer{ var _local_5:String; var _local_6:_SafeStr_2434; var _local_3:ITextWindow = (_arg_2.findChildByName("item_title") as ITextWindow); _local_3.text = k._SafeStr_6333; if (((!((k._SafeStr_6334 == null))) && (!((k._SafeStr_6334 == ""))))) { _local_5 = this._SafeStr_5539.context.configuration.getProperty("image.library.url"); _local_6 = (_arg_2.findChildByName("item_image") as _SafeStr_2434); _local_6.assetUri = (_local_5 + k._SafeStr_6334); }; var _local_4:IWindow = _arg_2.getChildByName("event_catcher_region"); if (_local_4 != null) { _local_4.procedure = this._SafeStr_6255; }; return (_arg_2); } private function _SafeStr_6255(k:WindowEvent, _arg_2:IWindow):void{ var _local_3:int; var _local_4:_SafeStr_2471; if (k.type == WindowMouseEvent.DOWN) { _local_3 = this._SafeStr_6329._SafeStr_5896(_arg_2.parent); _local_3 = (((_local_3)<0) ? 0 : (_local_3 + 1)); _local_4 = this._SafeStr_5539._SafeStr_6330[_local_3]; switch (_local_4.type) { case _SafeStr_2471._SafeStr_6340: if (_local_4._SafeStr_6335 == _SafeStr_2386._SafeStr_6336) { return (this._SafeStr_5539.openCatalogPage(_SafeStr_2386._SafeStr_6337, _SafeStr_2388.NORMAL)); }; if (_local_4._SafeStr_6335 == _SafeStr_2386._SafeStr_6338) { return (this._SafeStr_5539.openCatalogPage(_SafeStr_2386._SafeStr_6339, _SafeStr_2388.NORMAL)); }; this._SafeStr_5539.openCatalogPage(_local_4._SafeStr_6335, _SafeStr_2388.NORMAL); return; case _SafeStr_2471._SafeStr_6343: this._SafeStr_5539._SafeStr_6341(_local_4._SafeStr_6342, _SafeStr_2388.NORMAL); return; }; }; } } }//package _-0bT // _SafeStr_2386 = "_-2xZ" (String#3599, DoABC#3) // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2434 = "_-4gV" (String#282, DoABC#3) // _SafeStr_2471 = "_-2HR" (String#5310, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5700 = "_-2k4" (String#2112, DoABC#3) // _SafeStr_5892 = "_-16" (String#2228, DoABC#3) // _SafeStr_5896 = "_-3HF" (String#3467, DoABC#3) // _SafeStr_6255 = "_-6HO" (String#6885, DoABC#3) // _SafeStr_6329 = "_-1kn" (String#5196, DoABC#3) // _SafeStr_6330 = "_-3Lr" (String#7369, DoABC#3) // _SafeStr_6331 = "_-3mW" (String#17735, DoABC#3) // _SafeStr_6332 = "_-Wf" (String#38780, DoABC#3) // _SafeStr_6333 = "_-1UF" (String#31217, DoABC#3) // _SafeStr_6334 = "_-3zW" (String#24038, DoABC#3) // _SafeStr_6335 = "_-58G" (String#23480, DoABC#3) // _SafeStr_6336 = "_-6SM" (String#25126, DoABC#3) // _SafeStr_6337 = "_-6JK" (String#22327, DoABC#3) // _SafeStr_6338 = "_-01g" (String#22426, DoABC#3) // _SafeStr_6339 = "_-0-y" (String#8864, DoABC#3) // _SafeStr_6340 = "_-Qf" (String#19630, DoABC#3) // _SafeStr_6341 = "_-2KN" (String#15915, DoABC#3) // _SafeStr_6342 = "_-6Rv" (String#34252, DoABC#3) // _SafeStr_6343 = "_-Tp" (String#19519, DoABC#3) //------------------------------------------------------------ //_-0bT.FirstProductSelectorCatalogWidget package _-0bT{ import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_3507; public class FirstProductSelectorCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { public function FirstProductSelectorCatalogWidget(k:IWindowContainer){ super(k); } override public function init():Boolean{ if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); return (true); } private function _SafeStr_6277(k:_SafeStr_3507):void{ if (page.offers.length == 0) { return; }; var _local_2:_SafeStr_2399 = page.offers[0]; events.dispatchEvent(new _SafeStr_2445(_local_2)); } } }//package _-0bT // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) //------------------------------------------------------------ //_-0bT.GuildForumSelectorCatalogWidget package _-0bT{ import _-29V.IWindowContainer; import _-0B0._SafeStr_2403; import _-yK._SafeStr_4647; import _-5A9._SafeStr_2439; import _-4-i._SafeStr_5155; public class GuildForumSelectorCatalogWidget extends GuildSelectorCatalogWidget { public function GuildForumSelectorCatalogWidget(k:IWindowContainer, _arg_2:_SafeStr_2403){ super(k, _arg_2); } override protected function filterGroupMemberships(k:Array):Array{ var _local_5:_SafeStr_4647; var _local_2:Array = new Array(); var _local_3:int = _SafeStr_6049.catalog.sessionDataManager.userId; var _local_4:Boolean = _SafeStr_6049.catalog.sessionDataManager.hasSecurity(_SafeStr_2439._SafeStr_6344); for each (_local_5 in k) { if (((((!(_local_5._SafeStr_6346)) && (!((_local_5._SafeStr_6345 == _local_3))))) && (!(_local_4)))) { } else { _local_2.push(_local_5); }; }; return (_local_2); } override protected function selectGroup(k:_SafeStr_4647):void{ super.selectGroup(k); events.dispatchEvent(new _SafeStr_5155(((k._SafeStr_6346) ? "${catalog.alert.group_has_forum}" : ""))); } } }//package _-0bT // _SafeStr_2403 = "_-68A" (String#6448, DoABC#3) // _SafeStr_2439 = "_-6I8" (String#2698, DoABC#3) // _SafeStr_4647 = "_-4dj" (String#3812, DoABC#3) // _SafeStr_5155 = "_-4KT" (String#11605, DoABC#3) // _SafeStr_6049 = "_-6lI" (String#7726, DoABC#3) // _SafeStr_6344 = "_-6-g" (String#4665, DoABC#3) // _SafeStr_6345 = "_-HD" (String#1585, DoABC#3) // _SafeStr_6346 = "_-3nD" (String#27333, DoABC#3) //------------------------------------------------------------ //_-0bT.GuildSelectorCatalogWidget package _-0bT{ import _-6Sj._SafeStr_3610; import _-0B0._SafeStr_2403; import _-29V.IWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_4804; import _-5Vh.WindowMouseEvent; import _-4-i._SafeStr_3507; import _-yK._SafeStr_4647; import _-4-i._SafeStr_4807; import _-En.Offer; import _-5Vh.WindowEvent; import _-4-i._SafeStr_4806; import _-4-i._SafeStr_2396; import flash.display.BitmapData; import flash.geom.Rectangle; import _-6Sj.IBitmapWrapperWindow; import _-6Sj._SafeStr_3582; import _-4V9.StringArrayStuffData; import _-5x9._SafeStr_2367; public class GuildSelectorCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6347:String = "guild_selector"; private static const _SafeStr_6348:String = "guild_selector_widget_item"; private static const _SafeStr_6349:uint = 0; private static const _SafeStr_6350:int = 1; private static const _SafeStr_6351:int = 14; private static const _SafeStr_6352:int = 21; private var _SafeStr_6353:_SafeStr_3610; protected var _SafeStr_6049:_SafeStr_2403; private var _SafeStr_6354:Array; private var _SafeStr_6355:IWindow; private var _SafeStr_6356:IWindow; private var _SafeStr_6357:int = -1; public function GuildSelectorCatalogWidget(k:IWindowContainer, _arg_2:_SafeStr_2403){ super(k); this._SafeStr_6049 = _arg_2; } override public function dispose():void{ if (!disposed) { events.removeEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); page.dispatchWidgetEvent(new _SafeStr_4804(_SafeStr_4804._SafeStr_6358, "", "", "")); if (this._SafeStr_6353) { this._SafeStr_6353.procedure = null; this._SafeStr_6353 = null; }; this._SafeStr_6355 = null; this._SafeStr_6356 = null; if (this._SafeStr_6049) { this._SafeStr_6049._SafeStr_5952(this); this._SafeStr_6049 = null; }; super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); _SafeStr_5962(_SafeStr_4805._SafeStr_5978); this._SafeStr_6355 = window.findChildByName("guild_selector"); this._SafeStr_6356 = window.findChildByName("members_only"); var k:IWindow = window.findChildByName("find_groups_button"); if (k) { k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6359); }; this._SafeStr_6353 = (_SafeStr_5322.findChildByName(_SafeStr_6347) as _SafeStr_3610); if (this._SafeStr_6353) { this._SafeStr_6353.procedure = this._SafeStr_6360; } else { _SafeStr_4.log((("ERROR: Missing '" + _SafeStr_6347) + "' itemlist_dropmenu component from page layout xml")); }; this._SafeStr_6355.visible = false; this._SafeStr_6356.visible = false; return (true); } private function _SafeStr_6277(k:_SafeStr_3507):void{ this._SafeStr_6049._SafeStr_5951(this); events.dispatchEvent(new _SafeStr_3507(_SafeStr_3451._SafeStr_6230)); } public function _SafeStr_5955(k:Array):void{ var _local_7:_SafeStr_4647; var _local_2:int = -1; this._SafeStr_6354 = this.filterGroupMemberships(k); var _local_3 = (k.length > 0); events.dispatchEvent(new _SafeStr_4807(_SafeStr_4805.PURCHASE, _local_3)); this._SafeStr_6355.visible = _local_3; this._SafeStr_6356.visible = !(_local_3); var _local_4:int = this._SafeStr_6353.numMenuItems; var _local_5:int; while (_local_5 < _local_4) { this._SafeStr_6353._SafeStr_6361(0); _local_5++; }; var _local_6:int; while (_local_6 < this._SafeStr_6354.length) { _local_7 = this._SafeStr_6354[_local_6]; this._SafeStr_6353._SafeStr_6362(this._SafeStr_6363(_local_7)); if (_local_7.favourite) { _local_2 = _local_6; }; _local_6++; }; if (this._SafeStr_6357 == -1) { if (_local_2 != -1) { this._SafeStr_6353.selection = _local_2; } else { if (this._SafeStr_6353.numMenuItems > 0) { this._SafeStr_6353.selection = 0; }; }; } else { this._SafeStr_6353.selection = this._SafeStr_6357; }; } protected function filterGroupMemberships(k:Array):Array{ return (k); } public function _SafeStr_5956():void{ if (((((page) && (page.offers))) && ((page.offers.length > 0)))) { page.selectOffer(Offer(page.offers[0])._SafeStr_5719); }; } private function _SafeStr_6360(k:WindowEvent, _arg_2:IWindow):void{ switch (k.type) { case WindowEvent._SafeStr_6365: this._SafeStr_6364(this._SafeStr_6353.selection); this._SafeStr_6357 = this._SafeStr_6353.selection; return; }; } private function _SafeStr_6364(k:int):void{ var _local_2:_SafeStr_4647; if (k > -1) { _local_2 = this._SafeStr_6354[k]; this.selectGroup(_local_2); }; } protected function selectGroup(k:_SafeStr_4647):void{ page.dispatchWidgetEvent(new _SafeStr_4804(k.groupId, k._SafeStr_6366, k._SafeStr_6367, k._SafeStr_6048)); page.dispatchWidgetEvent(new _SafeStr_4806(this._SafeStr_6368(k.groupId, k._SafeStr_6366, k._SafeStr_6367, k._SafeStr_6048))); events.dispatchEvent(new _SafeStr_2396(k.groupId.toString())); } private function _SafeStr_6369(k:uint, _arg_2:uint):BitmapData{ var _local_3:BitmapData = new BitmapData(_SafeStr_6352, _SafeStr_6351, false, _SafeStr_6349); var _local_4:int = ((_local_3.width / 2) + 1); var _local_5:Rectangle = new Rectangle(); _local_5.left = _SafeStr_6350; _local_5.top = _SafeStr_6350; _local_5.right = _local_4; _local_5.bottom = (_local_3.height - _SafeStr_6350); var _local_6:Rectangle = new Rectangle(); _local_6.left = _local_4; _local_6.top = _SafeStr_6350; _local_6.right = (_local_3.width - _SafeStr_6350); _local_6.bottom = (_local_3.height - _SafeStr_6350); _local_3.fillRect(_local_5, k); _local_3.fillRect(_local_6, _arg_2); return (_local_3); } private function _SafeStr_6363(k:_SafeStr_4647):IWindow{ var _local_2:BitmapData = this._SafeStr_6369(parseInt(k._SafeStr_6366, 16), parseInt(k._SafeStr_6367, 16)); var _local_3:XML = (page.viewer.catalog.assets.getAssetByName(_SafeStr_6348).content as XML); var _local_4:IWindowContainer = (page.viewer.catalog.windowManager.buildFromXML(_local_3) as IWindowContainer); var _local_5:IBitmapWrapperWindow = (_local_4.findChildByName("guild_colors") as IBitmapWrapperWindow); var _local_6:_SafeStr_3582 = (_local_4.findChildByName("guild_name") as _SafeStr_3582); _local_5.bitmap = _local_2; _local_6.caption = k.groupName; return (_local_4); } private function _SafeStr_6359(k:WindowMouseEvent):void{ if (((((((page) && (page.viewer))) && (page.viewer.catalog))) && (page.viewer.catalog.navigator))) { page.viewer.catalog.navigator.performGuildBaseSearch(); }; } private function _SafeStr_6368(k:uint, _arg_2:String, _arg_3:String, _arg_4:String):_SafeStr_2367{ var _local_5:Array = new Array(); _local_5.push("0"); _local_5.push(k.toString()); _local_5.push(_arg_4); _local_5.push(_arg_2); _local_5.push(_arg_3); var _local_6:StringArrayStuffData = new StringArrayStuffData(); _local_6._SafeStr_6370(_local_5); return (_local_6); } } }//package _-0bT // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2403 = "_-68A" (String#6448, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_3582 = "_-2Am" (String#1606, DoABC#3) // _SafeStr_3610 = "_-2HG" (String#6060, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_4647 = "_-4dj" (String#3812, DoABC#3) // _SafeStr_4804 = "_-4m" (String#6689, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4806 = "_-3xb" (String#8459, DoABC#3) // _SafeStr_4807 = "_-1yo" (String#5584, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5951 = "_-6W8" (String#38651, DoABC#3) // _SafeStr_5952 = "_-4mq" (String#37549, DoABC#3) // _SafeStr_5955 = "_-1Q5" (String#36175, DoABC#3) // _SafeStr_5956 = "_-54z" (String#36760, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5978 = "_-6fN" (String#17865, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) // _SafeStr_6049 = "_-6lI" (String#7726, DoABC#3) // _SafeStr_6230 = "_-0pW" (String#13990, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6347 = "_-0gS" (String#19535, DoABC#3) // _SafeStr_6348 = "_-22O" (String#22802, DoABC#3) // _SafeStr_6349 = "_-37Q" (String#25319, DoABC#3) // _SafeStr_6350 = "_-1cT" (String#8816, DoABC#3) // _SafeStr_6351 = "_-4qf" (String#22700, DoABC#3) // _SafeStr_6352 = "_-23T" (String#22283, DoABC#3) // _SafeStr_6353 = "_-4OH" (String#5306, DoABC#3) // _SafeStr_6354 = "_-4l7" (String#20740, DoABC#3) // _SafeStr_6355 = "_-0yo" (String#7002, DoABC#3) // _SafeStr_6356 = "_-dx" (String#20476, DoABC#3) // _SafeStr_6357 = "_-3fG" (String#7275, DoABC#3) // _SafeStr_6358 = "_-95" (String#17949, DoABC#3) // _SafeStr_6359 = "_-4ym" (String#38797, DoABC#3) // _SafeStr_6360 = "_-5y-" (String#35410, DoABC#3) // _SafeStr_6361 = "_-44X" (String#21861, DoABC#3) // _SafeStr_6362 = "_-6S5" (String#18301, DoABC#3) // _SafeStr_6363 = "_-1q7" (String#34630, DoABC#3) // _SafeStr_6364 = "_-5Rl" (String#37914, DoABC#3) // _SafeStr_6365 = "_-183" (String#2263, DoABC#3) // _SafeStr_6366 = "_-6XP" (String#7952, DoABC#3) // _SafeStr_6367 = "_-450" (String#9007, DoABC#3) // _SafeStr_6368 = "_-6Vx" (String#23967, DoABC#3) // _SafeStr_6369 = "_-3Y1" (String#37624, DoABC#3) // _SafeStr_6370 = "_-lk" (String#20627, DoABC#3) //------------------------------------------------------------ //_-0bT.ItemGridCatalogWidget package _-0bT{ import _-En._SafeStr_3456; import _-En._SafeStr_2447; import _-6Sj.IItemGridWindow; import _-En._SafeStr_2383; import flash.utils.Timer; import _-5A9._SafeStr_2175; import flash.utils.Dictionary; import _-29V.IWindowContainer; import flash.events.TimerEvent; import _-3UH.XmlAsset; import _-4-i._SafeStr_3451; import _-px._SafeStr_2388; import _-En.ProductContainer; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_2445; import _-px._SafeStr_2511; import _-4-i._SafeStr_2396; import _-4-i._SafeStr_5154; import _-3WJ.HabboCatalog; import _-4-i._SafeStr_5152; import __AS3__.vec.Vector; import _-En.Offer; import _-En._SafeStr_3491; import _-En._SafeStr_3457; import _-5x9._SafeStr_2367; import _-4V9.StringArrayStuffData; import _-4-i._SafeStr_4804; import _-4-i._SafeStr_5153; import __AS3__.vec.*; public class ItemGridCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3456, _SafeStr_2447 { protected var _SafeStr_6276:IItemGridWindow; protected var _SafeStr_6275:XML; protected var _SafeStr_6371:XML; protected var _SafeStr_6372:XML; protected var _SafeStr_6322:_SafeStr_2383; private var _SafeStr_6373:int = 0; protected var _SafeStr_6374:Timer; protected var _SafeStr_6375:Boolean = true; private var _SafeStr_6376:int = 0; protected var _SafeStr_6377:_SafeStr_2175; private var _SafeStr_6378:int = -1; private var _selectedGuildColor1:String; private var _selectedGuildColor2:String; private var _SafeStr_6379:String; private var _SafeStr_6380:String; public var _SafeStr_6381:Dictionary; public var _SafeStr_6382:int = 0; private var _SafeStr_6383:int = 0; public function ItemGridCatalogWidget(k:IWindowContainer, _arg_2:_SafeStr_2175, _arg_3:String){ this._SafeStr_6381 = new Dictionary(); super(k); this._SafeStr_6377 = _arg_2; this._SafeStr_6380 = _arg_3; } override public function dispose():void{ if (this._SafeStr_6374 != null) { this._SafeStr_6374.stop(); this._SafeStr_6374.removeEventListener(TimerEvent.TIMER, this._SafeStr_6384); this._SafeStr_6374 = null; }; if (this._SafeStr_6276 != null) { this._SafeStr_6276.destroyGridItems(); this._SafeStr_6276 = null; }; this._SafeStr_6275 = null; this._SafeStr_6371 = null; this._SafeStr_6372 = null; this._SafeStr_6322 = null; super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5980); var k = (_SafeStr_5322.tags.indexOf("FIXED") > -1); this._SafeStr_6276 = (_SafeStr_5322.findChildByName("itemGrid") as IItemGridWindow); if (!k) { _SafeStr_5322.getChildAt(0).width = _SafeStr_5322.width; _SafeStr_5322.getChildAt(0).height = _SafeStr_5322.height; }; this._SafeStr_6276._SafeStr_6385 = 0; var _local_2:XmlAsset = (page.viewer.catalog.assets.getAssetByName("gridItem") as XmlAsset); this._SafeStr_6275 = (_local_2.content as XML); _local_2 = (page.viewer.catalog.assets.getAssetByName("grid_item_with_price_single") as XmlAsset); this._SafeStr_6372 = (_local_2.content as XML); _local_2 = (page.viewer.catalog.assets.getAssetByName("grid_item_with_price_multi") as XmlAsset); this._SafeStr_6371 = (_local_2.content as XML); this._SafeStr_6278(); if (this._SafeStr_6375) { this._SafeStr_6374 = new Timer(25); this._SafeStr_6374.addEventListener(TimerEvent.TIMER, this._SafeStr_6384); this._SafeStr_6374.start(); } else { this._SafeStr_6384(); }; events.addEventListener(_SafeStr_3451.GUILD_SELECTED, this._SafeStr_6050); events.addEventListener(_SafeStr_3451.COLOUR_INDEX, this._SafeStr_6386); return (true); } public function select(k:_SafeStr_2383, _arg_2:Boolean):void{ if (this._SafeStr_6322 != null) { this._SafeStr_6322.deactivate(); }; this._SafeStr_6322 = k; k.activate(); if (this._SafeStr_6322.view) { this._SafeStr_6322.view.findChildByName("border_outline").color = (((this._SafeStr_6380 == _SafeStr_2388.NORMAL)) ? 6538729 : 16758076); }; var _local_3:ProductContainer = (k as ProductContainer); if (!_local_3) { return; }; if (_local_3.isLazy) { return; }; var _local_4:_SafeStr_2399 = _local_3.offer; if (_local_4 != null) { events.dispatchEvent(new _SafeStr_2445(_local_4)); if (((_local_4.product) && ((_local_4.product._SafeStr_5797 == _SafeStr_2511._SafeStr_5755)))) { events.dispatchEvent(new _SafeStr_2396(_local_4.product._SafeStr_5769)); }; }; if (_arg_2) { events.dispatchEvent(new _SafeStr_5154(this._SafeStr_6387(), "ctlg_clr_27x22_1", "ctlg_clr_27x22_2", "ctlg_clr_27x22_3", this._SafeStr_6388())); }; } public function _SafeStr_6281(k:_SafeStr_2383):Boolean{ var _local_2:_SafeStr_2399 = (k as ProductContainer).offer; if (_local_2 != null) { if (this._SafeStr_6377.clubLevel >= _local_2.clubLevel) { (page.viewer.catalog as HabboCatalog)._SafeStr_6157(this, _local_2); }; }; return (true); } public function _SafeStr_6264(k:Boolean, _arg_2:String):void{ if (disposed) { return; }; if (k) { events.dispatchEvent(new _SafeStr_5152(false, _arg_2)); }; } public function _SafeStr_6265():void{ } protected function _SafeStr_6278():void{ var _local_3:String; var _local_4:int; var _local_5:_SafeStr_2399; var _local_6:uint; var _local_7:uint; var k:Array = []; var _local_2:Vector.<_SafeStr_2399> = new Vector.<_SafeStr_2399>(); if (page.layoutCode == "default_3x3_color_grouping") { page.offers.sort(this._SafeStr_6389); for each (_local_5 in page.offers) { if (((!(_local_5.product._SafeStr_5768)) || (!(_local_5.product.isColorable)))) { _local_2.push(_local_5); } else { _local_3 = _local_5.product._SafeStr_5768._SafeStr_5748.split("*")[0]; _local_4 = int(_local_5.product._SafeStr_5768._SafeStr_5748.split("*")[1]); if (!this._SafeStr_6381[_local_3]) { this._SafeStr_6381[_local_3] = []; }; if (_local_5.product._SafeStr_5768._SafeStr_5871) { for each (_local_6 in _local_5.product._SafeStr_5768._SafeStr_5871) { if (_local_6 != 0xFFFFFF) { _local_7 = _local_6; }; }; if (this._SafeStr_6381[_local_3].indexOf(_local_7) == -1) { this._SafeStr_6381[_local_3][_local_4] = _local_7; }; }; if (k.indexOf(_local_3) == -1) { _local_2.push(_local_5); k.push(_local_3); }; }; }; page.offers.sort(this._SafeStr_6390); } else { _local_2 = page.offers; }; for each (_local_5 in page.offers) { this._SafeStr_6391(_local_5.gridItem, !((_local_2.indexOf(_local_5) == -1))); _local_5.gridItem.grid = this; if (_local_5._SafeStr_6081 == Offer._SafeStr_6392) { this._SafeStr_6373++; if ((_local_5.productContainer is _SafeStr_3491)) { (_local_5.productContainer as _SafeStr_3491)._SafeStr_6393(this._SafeStr_6373); }; }; }; } private function _SafeStr_6389(k:_SafeStr_2399, _arg_2:_SafeStr_2399):int{ if (((!(k.product._SafeStr_5768._SafeStr_6394)) || (!(_arg_2.product._SafeStr_5768._SafeStr_6394)))) { return (1); }; if (k.product._SafeStr_5768._SafeStr_6394 > _arg_2.product._SafeStr_5768._SafeStr_6394) { return (1); }; if (k == _arg_2) { return (0); }; return (-1); } private function _SafeStr_6390(k:_SafeStr_2399, _arg_2:_SafeStr_2399):int{ if (k.product._SafeStr_5768._SafeStr_5607 > _arg_2.product._SafeStr_5768._SafeStr_5607) { return (1); }; if (k == _arg_2) { return (0); }; return (-1); } protected function _SafeStr_6395():void{ if (this._SafeStr_6374 != null) { this._SafeStr_6374.reset(); }; this._SafeStr_6376 = 0; } protected function _SafeStr_6384(k:TimerEvent=null):void{ var _local_3:int; var _local_4:_SafeStr_2399; if (disposed) { return; }; if (k != null) { }; var _local_2:int = page.offers.length; if (_local_2 > 0) { _local_3 = 0; while (_local_3 < 3) { if ((((this._SafeStr_6376 >= 0)) && ((this._SafeStr_6376 < _local_2)))) { _local_4 = page.offers[this._SafeStr_6376]; this._SafeStr_6396(_local_4); _local_4.productContainer.grid = this; }; this._SafeStr_6376++; if (this._SafeStr_6376 >= _local_2) { this._SafeStr_6395(); return; }; _local_3++; }; }; } protected function _SafeStr_6391(k:_SafeStr_2383, _arg_2:Boolean=true):void{ var _local_3:XML; var _local_4:_SafeStr_3457 = (k as _SafeStr_3457); var _local_5:Boolean = ((((!((_local_4 == null))) && (!((_local_4.offer == null))))) && ((((_local_4.offer.priceInCredits > 0)) || ((_local_4.offer.priceInActivityPoints > 0))))); if (((_local_5) && (!((this._SafeStr_6380 == _SafeStr_2388.BUILDER))))) { if (((((_local_4.offer) && ((_local_4.offer.priceInCredits > 0)))) && ((_local_4.offer.priceInActivityPoints > 0)))) { _local_3 = this._SafeStr_6371; } else { _local_3 = this._SafeStr_6372; }; } else { _local_3 = this._SafeStr_6275; }; var _local_6:IWindowContainer = (page.viewer.catalog.windowManager.buildFromXML(_local_3) as IWindowContainer); if (_arg_2) { this._SafeStr_6276._SafeStr_5382(_local_6); }; k.view = _local_6; if ((_local_4 is ProductContainer)) { (_local_4 as ProductContainer)._SafeStr_6070((page.viewer.catalog as HabboCatalog)); }; } protected function _SafeStr_6396(k:_SafeStr_2399):void{ var _local_2:_SafeStr_2367; var _local_3:Array; var _local_4:StringArrayStuffData; if (((!((k == null))) && (!(k.disposed)))) { _local_2 = null; if (this._SafeStr_6378 != _SafeStr_4804._SafeStr_6358) { _local_3 = new Array(); _local_3.push("0"); _local_3.push(this._SafeStr_6378.toString()); _local_3.push(this._SafeStr_6379); _local_3.push(this._selectedGuildColor1); _local_3.push(this._selectedGuildColor2); _local_4 = new StringArrayStuffData(); _local_4._SafeStr_6370(_local_3); _local_2 = _local_4; }; k.productContainer.initProductIcon(page.viewer.roomEngine, _local_2); }; } private function _SafeStr_6050(k:_SafeStr_4804):void{ var _local_2:_SafeStr_2399; if (disposed) { return; }; this._SafeStr_6378 = k._SafeStr_6051; this._selectedGuildColor1 = k.color1; this._selectedGuildColor2 = k.color2; this._SafeStr_6379 = k._SafeStr_6048; this._SafeStr_6276.destroyGridItems(); for each (_local_2 in page.offers) { this._SafeStr_6391(_local_2.gridItem); this._SafeStr_6396(_local_2); _local_2.productContainer.grid = this; }; } private function _SafeStr_6397(k:_SafeStr_2399):void{ if (this._SafeStr_6276._SafeStr_5384(k.gridItem.view) >= 0) { this._SafeStr_6276._SafeStr_6398(k.gridItem.view); }; } private function _SafeStr_6386(k:_SafeStr_5153):void{ var _local_2:_SafeStr_2399; var _local_3:_SafeStr_2399; var _local_4:int; for each (_local_3 in page.offers) { if (_local_3.gridItem == this._SafeStr_6322) { _local_2 = _local_3; }; }; if (((!(_local_2)) || (!(_local_2.product.isColorable)))) { return; }; _local_4 = this._SafeStr_6276._SafeStr_5384(_local_2.gridItem.view); this._SafeStr_6397(_local_2); var _local_5:String = ((_local_2.product._SafeStr_5768._SafeStr_5748.split("*")[0] + "*") + (k.index + 1)); for each (_local_3 in page.offers) { if (_local_3.product._SafeStr_5768._SafeStr_5748 == _local_5) { this._SafeStr_6276._SafeStr_6399(_local_3.gridItem.view, _local_4); this.select(_local_3.gridItem, false); _local_3.gridItem.grid = this; }; }; } public function _SafeStr_6387():Array{ var k:_SafeStr_2399; var _local_2:_SafeStr_2399; for each (_local_2 in page.offers) { if (_local_2.gridItem == this._SafeStr_6322) { k = _local_2; }; }; if (((!(k)) || (!(k.product.isColorable)))) { return ([]); }; return (this._SafeStr_6381[k.product._SafeStr_5768._SafeStr_5748.split("*")[0]]); } private function _SafeStr_6388():int{ var k:_SafeStr_2399; var _local_2:_SafeStr_2399; for each (_local_2 in page.offers) { if (_local_2.gridItem == this._SafeStr_6322) { k = _local_2; }; }; if (((!(k)) || (!(k.product.isColorable)))) { return (0); }; return (Math.max((k.product._SafeStr_5768._SafeStr_6394 - 1), 0)); } } }//package _-0bT // _SafeStr_2175 = "_-4xS" (String#1073, DoABC#3) // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2383 = "_-08I" (String#3016, DoABC#3) // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2447 = "_-6if" (String#5825, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3456 = "_-1Re" (String#5499, DoABC#3) // _SafeStr_3457 = "_-6W2" (String#4723, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3491 = "_-52s" (String#7561, DoABC#3) // _SafeStr_4804 = "_-4m" (String#6689, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_5152 = "_-1cj" (String#8895, DoABC#3) // _SafeStr_5153 = "_-0ok" (String#8203, DoABC#3) // _SafeStr_5154 = "_-0n-" (String#7250, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5384 = "_-5Zh" (String#3966, DoABC#3) // _SafeStr_5607 = "_-6UJ" (String#3527, DoABC#3) // _SafeStr_5748 = "_-6c8" (String#7692, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5768 = "_-3Be" (String#2340, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_5871 = "_-ej" (String#9614, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5980 = "_-6Uv" (String#17368, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) // _SafeStr_6050 = "_-507" (String#23256, DoABC#3) // _SafeStr_6051 = "_-3hg" (String#4984, DoABC#3) // _SafeStr_6070 = "_-2sE" (String#21729, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6157 = "_-4Sn" (String#12135, DoABC#3) // _SafeStr_6264 = "_-6Be" (String#11716, DoABC#3) // _SafeStr_6265 = "_-4d-" (String#35172, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6276 = "_-32R" (String#1461, DoABC#3) // _SafeStr_6278 = "_-2p2" (String#8163, DoABC#3) // _SafeStr_6281 = "_-4tE" (String#15786, DoABC#3) // _SafeStr_6322 = "_-6lT" (String#1841, DoABC#3) // _SafeStr_6358 = "_-95" (String#17949, DoABC#3) // _SafeStr_6370 = "_-lk" (String#20627, DoABC#3) // _SafeStr_6371 = "_-1u" (String#23685, DoABC#3) // _SafeStr_6372 = "_-5ko" (String#24845, DoABC#3) // _SafeStr_6373 = "_-5AD" (String#21978, DoABC#3) // _SafeStr_6374 = "_-0c1" (String#983, DoABC#3) // _SafeStr_6375 = "_-6BE" (String#32957, DoABC#3) // _SafeStr_6376 = "_-4hb" (String#11370, DoABC#3) // _SafeStr_6377 = "_-4Pu" (String#2409, DoABC#3) // _SafeStr_6378 = "_-4C-" (String#23809, DoABC#3) // _SafeStr_6379 = "_-2k8" (String#29564, DoABC#3) // _SafeStr_6380 = "_-AC" (String#2618, DoABC#3) // _SafeStr_6381 = "_-6Hv" (String#12509, DoABC#3) // _SafeStr_6382 = "_-07c" (String#44350, DoABC#3) // _SafeStr_6383 = "_-1op" (String#43565, DoABC#3) // _SafeStr_6384 = "_-3xn" (String#14564, DoABC#3) // _SafeStr_6385 = "_-0C8" (String#19295, DoABC#3) // _SafeStr_6386 = "_-23G" (String#10270, DoABC#3) // _SafeStr_6387 = "_-4Bm" (String#36076, DoABC#3) // _SafeStr_6388 = "_-4Qq" (String#36495, DoABC#3) // _SafeStr_6389 = "_-0mA" (String#33078, DoABC#3) // _SafeStr_6390 = "_-33J" (String#32540, DoABC#3) // _SafeStr_6391 = "_-Hb" (String#10937, DoABC#3) // _SafeStr_6392 = "_-lU" (String#8970, DoABC#3) // _SafeStr_6393 = "_-1g5" (String#29699, DoABC#3) // _SafeStr_6394 = "_-10I" (String#9172, DoABC#3) // _SafeStr_6395 = "_-20D" (String#23777, DoABC#3) // _SafeStr_6396 = "_-4XM" (String#26833, DoABC#3) // _SafeStr_6397 = "_-52b" (String#35505, DoABC#3) // _SafeStr_6398 = "_-21Z" (String#6394, DoABC#3) // _SafeStr_6399 = "_-5wu" (String#16171, DoABC#3) //------------------------------------------------------------ //_-0bT.LocalizationCatalogWidget package _-0bT{ import flash.utils.Dictionary; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_2445; import _-29V.IWindow; import _-4Am.WindowParam; import _-5Vh.WindowMouseEvent; import _-Qx._SafeStr_500; import _-4Y1._SafeStr_12; import _-px._SafeStr_2386; import _-35T._SafeStr_6; import _-5xd._SafeStr_2444; import _-64Q._SafeStr_2464; import _-5Vh.WindowEvent; import _-6Sj.IBitmapWrapperWindow; import flash.display.BitmapData; import _-En.PageLocalization; import _-6Sj._SafeStr_2615; import _-5Vh._SafeStr_3715; import _-0Kw._SafeStr_2366; import _-6Sj._SafeStr_2434; import _-En.CatalogPage; import _-px._SafeStr_2388; import _-3UH.BitmapDataAsset; import flash.geom.Point; import flash.net.URLRequest; import _-3UH._SafeStr_37; import _-0Ge.AssetLoaderEvent; import flash.text.StyleSheet; import _-6Sj.ITextWindow; public class LocalizationCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_6400:Dictionary; private var _SafeStr_5539:HabboCatalog; public function LocalizationCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_6400 = new Dictionary(); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ super.dispose(); this._SafeStr_5539 = null; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6401(); this._SafeStr_6402(); this._SafeStr_6176(); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6403); return (true); } private function _SafeStr_6403(k:_SafeStr_2445):void{ if (k == null) { return; }; } private function _SafeStr_6176():void{ var k:String; var _local_2:IWindow; if (page.hasLinks) { for each (k in page.links) { _local_2 = _SafeStr_5322.findChildByName(k); if (_local_2 != null) { _local_2.setParamFlag(WindowParam._SafeStr_6288); _local_2._SafeStr_6178 = 0; _local_2.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6289); }; }; }; } private function _SafeStr_6289(k:WindowMouseEvent):void{ var _local_6:String; var _local_2:_SafeStr_500 = (page.viewer.catalog as HabboCatalog).localization; var _local_3:_SafeStr_12 = (page.viewer.catalog as HabboCatalog); var _local_4:String = IWindow(k.target).name; var _local_5:String = ""; switch (page.layoutCode) { case "frontpage3": switch (_local_4) { case "ctlg_txt3": if (IWindow(k.target).caption != "") { _local_5 = page.localization.getTextElementContent(6); page.viewer.catalog.openCatalogPage(_local_5); }; break; case "ctlg_txt7": if (IWindow(k.target).caption != "") { _local_5 = page.localization.getTextElementContent(10); if (_local_5.indexOf("http") >= 0) { this.openExternalLink(_local_5); } else { if (_local_5 == _SafeStr_2386._SafeStr_6404) { _SafeStr_6.openWebPageAndMinimizeClient(this._SafeStr_5539.getProperty(_SafeStr_2444._SafeStr_6405)); } else { page.viewer.catalog.openCatalogPage(_local_5); }; }; }; break; }; return; case "info_pixels": switch (_local_4) { case "ctlg_text_5": this._SafeStr_5539.questEngine.showAchievements(); break; case "ctlg_text_7": _local_5 = page.localization.getTextElementContent(7); page.viewer.catalog.openCatalogPage(_local_5); break; }; return; case "info_credits": switch (_local_4) { case "ctlg_text_5": _SafeStr_6.openWebPageAndMinimizeClient(this._SafeStr_5539.getProperty(_SafeStr_2444._SafeStr_6405)); break; case "ctlg_text_7": _local_5 = page.localization.getTextElementContent(7); page.viewer.catalog.openCatalogPage(_local_5); break; }; return; case "collectibles": switch (_local_4) { case "ctlg_collectibles_link": _local_5 = _local_3.getProperty("link.format.collectibles"); this.openExternalLink(_local_5); break; }; return; case "club1": switch (_local_4) { case "ctlg_text_5": page.viewer.catalog.openCatalogPage(_SafeStr_2386._SafeStr_6339); break; }; return; case "club_buy": switch (_local_4) { case "club_link": _local_5 = _local_3.getProperty("link.format.club"); this.openExternalLink(_local_5); break; }; return; case "mad_money": switch (_local_4) { case "ctlg_madmoney_button": _local_5 = _local_3.getProperty("link.format.madmoney"); this.openExternalLink(_local_5); break; }; return; case "monkey": switch (_local_4) { case "ctlg_teaserimg_1_region": case "ctlg_special_img_region": _local_5 = _local_2.getLocalization("link.format.monkey", "http://store.apple.com/"); this.openExternalLink(_local_5); break; }; return; case "niko": switch (_local_4) { case "ctlg_teaserimg_1_region": case "ctlg_special_img_region": _local_5 = _local_2.getLocalization("link.format.niko", "http://itunes.apple.com/us/app/niko/id481670205?mt=8"); this.openExternalLink(_local_5); break; }; return; default: _SafeStr_4.log(("[LocalizationCatalogWidget] Unhandled link clicked" + [page.layoutCode, _local_4])); }; } private function openExternalLink(k:String):void{ if (k != "") { page.viewer.catalog.windowManager.alert("${catalog.alert.external.link.title}", "${catalog.alert.external.link.desc}", 0, this._SafeStr_6290); _SafeStr_6.navigateToURL(k, "habboMain"); }; } private function _SafeStr_6290(k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); } private function _SafeStr_6402():void{ var _local_2:IWindow; var _local_3:String; var _local_4:String; var k:Array = []; _SafeStr_5322.groupChildrenWithTag("STATIC_IMAGE", k, 10); for each (_local_2 in k) { if ((_local_2 is IBitmapWrapperWindow)) { _local_3 = _local_2.name; _local_4 = _local_2.name; this._SafeStr_6400[_local_4] = _local_3; if (page.viewer.catalog.assets.hasAsset(_local_4)) { this._SafeStr_6406(_local_3, _local_4); } else { this._SafeStr_6407(_local_4); }; }; }; } protected function _SafeStr_6401():void{ var _local_2:String; var _local_3:String; var _local_7:IWindow; var _local_8:BitmapData; var _local_9:String; var k:int; this._SafeStr_6400 = new Dictionary(); this._SafeStr_5539.mainContainer.findChildByName(PageLocalization._SafeStr_6128).caption = ""; k = 0; while (k < page.localization.textCount) { _local_2 = page.localization.getTextElementName(k, page.layoutCode); _local_3 = page.localization.getTextElementContent(k); if (_local_2 == PageLocalization._SafeStr_6128) { _local_7 = this._SafeStr_5539.mainContainer.findChildByName(_local_2); } else { if (_SafeStr_5322 != null) { _local_7 = _SafeStr_5322.findChildByName(_local_2); }; }; if (_local_7 != null) { _local_3 = _local_3.replace(/\r\n/g, "\n"); _local_7.caption = _local_3; if ((_local_7 is _SafeStr_2615)) { _local_7.addEventListener(_SafeStr_3715._SafeStr_6408, this._SafeStr_6409); this._SafeStr_6410((_local_7 as _SafeStr_2615)); }; } else { _SafeStr_4.log(((("[LocalizationCatalogWidget] Could not place text in layout: element: " + _local_2) + ", content: ") + _local_3)); }; k++; }; k = 0; while (k < page.localization.imageCount) { _local_2 = page.localization.getImageElementName(k, page.layoutCode); _local_3 = page.localization.getImageElementContent(k); if (_local_2 == "") { } else { if (_local_3 == "") { } else { _local_9 = _local_3; this._SafeStr_6400[_local_9] = _local_2; if (page.viewer.catalog.assets.hasAsset(_local_9)) { this._SafeStr_6406(_local_2, _local_9); } else { this._SafeStr_6407(_local_9); }; }; }; k++; }; var _local_4:_SafeStr_2366 = this._SafeStr_5539._SafeStr_6412._SafeStr_6411(page.pageId); var _local_5:IWindow = this._SafeStr_5539.mainContainer.findChildByName(PageLocalization._SafeStr_6413); var _local_6:_SafeStr_2434 = (this._SafeStr_5539.mainContainer.findChildByName(PageLocalization._SafeStr_6414) as _SafeStr_2434); if (_local_5 != null) { _local_5.caption = (((_local_4)!=null) ? _local_4.localization : (((page.mode == CatalogPage._SafeStr_6415)) ? "${catalog.search.header}" : "${catalog.header}")); }; if (((!((_local_6 == null))) && (!((_local_4 == null))))) { _local_6.assetUri = (((page.mode == CatalogPage._SafeStr_6415)) ? "common_small_pen" : (((this._SafeStr_5539.catalogType == _SafeStr_2388.BUILDER)) ? (this._SafeStr_5539.imageGalleryHost + "icon_193.png") : ((this._SafeStr_5539.imageGalleryHost + _local_4._SafeStr_6416) + ".png"))); }; } private function _SafeStr_6409(k:WindowEvent):void{ var _local_2:_SafeStr_3715 = (k as _SafeStr_3715); if (_local_2 != null) { _SafeStr_4.log(("=============== HTML LINK: " + _local_2.link)); } else { _SafeStr_4.log(("=============== BAD HTML LINK: " + k.target)); }; } private function _SafeStr_6406(k:String, _arg_2:String):void{ var _local_3:IWindow; var _local_4:BitmapDataAsset; var _local_5:BitmapData; var _local_6:int; var _local_7:int; var _local_8:String; var _local_9:String; _SafeStr_4.log(("[LocalizationCatalogWidget] Set Element Image: " + [k, _arg_2])); if (_SafeStr_5322 == null) { _SafeStr_4.log(("[LocalizationCatalogWidget] Window is null! " + [k, _arg_2])); return; }; if (_SafeStr_5322.disposed) { _SafeStr_4.log(("[LocalizationCatalogWidget] Window is disposed! " + [k, _arg_2, _SafeStr_5322.name])); return; }; if (k == PageLocalization._SafeStr_6417) { _local_3 = this._SafeStr_5539.mainContainer.findChildByName(k); } else { _local_3 = _SafeStr_5322.findChildByName(k); }; if ((_local_3 is IBitmapWrapperWindow)) { _local_4 = (page.viewer.catalog.assets.getAssetByName(_arg_2) as BitmapDataAsset); if (_local_4 == null) { _SafeStr_4.log(("[LocalizationCatalogWidget] Asset does not exist (Bitmap window): " + [k, _arg_2])); return; }; _local_5 = (_local_4.content as BitmapData); if ((_local_3 as IBitmapWrapperWindow).bitmap == null) { (_local_3 as IBitmapWrapperWindow).bitmap = new BitmapData(_local_3.width, _local_3.height, true, 0xFFFFFF); }; (_local_3 as IBitmapWrapperWindow).bitmap.fillRect((_local_3 as IBitmapWrapperWindow).bitmap.rect, 0xFFFFFF); _local_6 = ((_local_3.width - _local_5.width) / 2); _local_7 = ((_local_3.height - _local_5.height) / 2); (_local_3 as IBitmapWrapperWindow).bitmap.copyPixels(_local_5, _local_5.rect, new Point(_local_6, _local_7), null, null, true); } else { if ((_local_3 is _SafeStr_2434)) { _local_8 = this._SafeStr_5539.getProperty("image.library.catalogue.url"); _local_9 = ((_local_8 + _arg_2) + ".gif"); _SafeStr_4.log(("[LocalizationCatalogWidget] Static Image: " + _local_9)); (_local_3 as _SafeStr_2434).assetUri = _local_9; } else { _SafeStr_4.log(("[LocalizationCatalogWidget] Could not find element: " + k)); }; }; } private function _SafeStr_6407(k:String):void{ var _local_2:String; var _local_6:IWindow; var _local_3:String = (page.viewer.catalog as HabboCatalog).getProperty("image.library.catalogue.url"); var _local_4 = ((page.viewer.catalog as HabboCatalog).getProperty("image.library.url") + "Top_Story_Images/"); var _local_5:String = this._SafeStr_6400[k]; if (_local_5 == PageLocalization._SafeStr_6417) { _local_6 = this._SafeStr_5539.mainContainer.findChildByName(_local_5); } else { _local_6 = _SafeStr_5322.findChildByName(_local_5); }; if (((_local_6) && ((_local_6.tags.indexOf("TOP_STORY") > -1)))) { _local_2 = _local_4; } else { _local_2 = _local_3; }; var _local_7 = ((_local_2 + k) + ".gif"); _SafeStr_4.log(("[LocalizationCatalogWidget] : " + _local_7)); var _local_8:URLRequest = new URLRequest(_local_7); var _local_9:_SafeStr_37 = page.viewer.catalog.assets.loadAssetFromFile(k, _local_8, "image/gif"); _local_9.addEventListener(AssetLoaderEvent._SafeStr_6418, this._SafeStr_6419); } private function _SafeStr_6419(k:AssetLoaderEvent):void{ var _local_3:String; var _local_4:String; var _local_2:_SafeStr_37 = (k.target as _SafeStr_37); if (_local_2 != null) { _local_3 = _local_2.assetName; _local_4 = this._SafeStr_6400[_local_3]; this._SafeStr_6406(_local_4, _local_3); }; } private function _SafeStr_6410(k:ITextWindow):void{ if (!k) { return; }; var _local_2:StyleSheet = new StyleSheet(); var _local_3:Object = new Object(); _local_3.color = "#336a95"; var _local_4:Object = new Object(); _local_4.textDecoration = "underline"; _local_4.color = "#333333"; var _local_5:Object = new Object(); _local_5.color = "#41b7d9"; var _local_6:Object = new Object(); _local_6.textDecoration = "underline"; _local_2.setStyle("a:link", _local_4); _local_2.setStyle("a:hover", _local_3); _local_2.setStyle("a:active", _local_5); _local_2.setStyle(".visited", _local_6); k.styleSheet = _local_2; } } }//package _-0bT // _SafeStr_12 = "_-0VB" (String#1598, DoABC#3) // _SafeStr_2366 = "_-62V" (String#846, DoABC#3) // _SafeStr_2386 = "_-2xZ" (String#3599, DoABC#3) // _SafeStr_2388 = "_-1OD" (String#1730, DoABC#3) // _SafeStr_2434 = "_-4gV" (String#282, DoABC#3) // _SafeStr_2444 = "_-xj" (String#7141, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2615 = "_-L" (String#10232, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_37 = "_-4eo" (String#1156, DoABC#3) // _SafeStr_3715 = "_-5DP" (String#5466, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_6 = "_-TM" (String#1447, DoABC#3) // _SafeStr_6128 = "_-6A5" (String#4993, DoABC#3) // _SafeStr_6176 = "_-0Pr" (String#10891, DoABC#3) // _SafeStr_6178 = "_-6Jm" (String#3497, DoABC#3) // _SafeStr_6288 = "_-61H" (String#2578, DoABC#3) // _SafeStr_6289 = "_-GT" (String#25152, DoABC#3) // _SafeStr_6290 = "_-40b" (String#10947, DoABC#3) // _SafeStr_6339 = "_-0-y" (String#8864, DoABC#3) // _SafeStr_6400 = "_-1ad" (String#12240, DoABC#3) // _SafeStr_6401 = "_-4p1" (String#38086, DoABC#3) // _SafeStr_6402 = "_-5bG" (String#34146, DoABC#3) // _SafeStr_6403 = "_-5Z2" (String#38860, DoABC#3) // _SafeStr_6404 = "_-3cS" (String#24336, DoABC#3) // _SafeStr_6405 = "_-1Ke" (String#8293, DoABC#3) // _SafeStr_6406 = "_-4d8" (String#3101, DoABC#3) // _SafeStr_6407 = "_-2mo" (String#29599, DoABC#3) // _SafeStr_6408 = "_-2AM" (String#15458, DoABC#3) // _SafeStr_6409 = "_-6bW" (String#36998, DoABC#3) // _SafeStr_6410 = "_-1f4" (String#15851, DoABC#3) // _SafeStr_6411 = "_-35N" (String#15246, DoABC#3) // _SafeStr_6412 = "_-46g" (String#4002, DoABC#3) // _SafeStr_6413 = "_-1GI" (String#19960, DoABC#3) // _SafeStr_6414 = "_-0Ud" (String#24485, DoABC#3) // _SafeStr_6415 = "_-1FR" (String#11243, DoABC#3) // _SafeStr_6416 = "_-0xJ" (String#6557, DoABC#3) // _SafeStr_6417 = "_-35j" (String#11746, DoABC#3) // _SafeStr_6418 = "_-63Y" (String#2878, DoABC#3) // _SafeStr_6419 = "_-5FT" (String#35586, DoABC#3) //------------------------------------------------------------ //_-0bT.MarketPlaceCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-4V3._SafeStr_3445; import _-4V3._SafeStr_3484; import _-6Sj.IItemListWindow; import _-29V.IWindowContainer; import flash.utils.Timer; import _-WS.Map; import flash.events.TimerEvent; import _-4V3.MarketplaceChart; import flash.display.BitmapData; import _-4V3._SafeStr_2385; import _-29V.IWindow; import _-6Sj.ISelectorWindow; import _-6Sj.ISelectableWindow; import _-6Sj.IBitmapWrapperWindow; import _-4V3._SafeStr_2355; import _-6Sj.IDropMenuWindow; import _-3UH.XmlAsset; import _-Qx._SafeStr_500; import _-5x9._SafeStr_2973; import flash.geom.Point; import _-6Sj._SafeStr_2600; import _-6Tv._SafeStr_3667; import _-6Tv._SafeStr_3686; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; import _-6Tv._SafeStr_3669; import flash.geom.Matrix; import _-6Sj.ITextFieldWindow; public class MarketPlaceCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325, _SafeStr_3445 { private const _SafeStr_6420:int = 1; private const _SafeStr_6421:int = 2; private const _SafeStr_6422:int = 40; private const _SafeStr_6423:int = 10; private var _SafeStr_6424:Array; private var _SafeStr_6425:_SafeStr_3484; private var _SafeStr_6426:IItemListWindow; private var _SafeStr_6427:IWindowContainer; private var _SafeStr_6428:Timer; private var _SafeStr_6168:Map; private var _SafeStr_6429:int; public function MarketPlaceCatalogWidget(k:IWindowContainer){ this._SafeStr_6424 = []; super(k); } override public function dispose():void{ super.dispose(); this._SafeStr_6425 = null; this._SafeStr_6168 = null; this._SafeStr_6426 = null; if (this._SafeStr_6427) { this._SafeStr_6427.dispose(); this._SafeStr_6427 = null; }; if (this._SafeStr_6428) { this._SafeStr_6428.removeEventListener(TimerEvent.TIMER, this._SafeStr_6430); this._SafeStr_6428 = null; }; } override public function init():Boolean{ if (!super.init()) { return (false); }; if (this._SafeStr_6431 == null) { return (false); }; this._SafeStr_6431._SafeStr_6171(this); this._SafeStr_6432(); var k:IItemListWindow = (_SafeStr_5322.findChildByName("offer_list") as IItemListWindow); this._SafeStr_6427 = (k.removeListItem(k.getListItemByName("offer_item")) as IWindowContainer); return (true); } public function _SafeStr_6433():void{ this._SafeStr_6434(); this._SafeStr_6294(); } public function _SafeStr_6435():void{ var _local_6:MarketplaceChart; var _local_9:BitmapData; var _local_10:String; if (((((!(this._SafeStr_6431)) || (!(this._SafeStr_6431.localization)))) || (!(_SafeStr_5322)))) { return; }; var k:_SafeStr_2385 = this._SafeStr_6431._SafeStr_6436; if (!k) { return; }; var _local_2:IWindowContainer = (_SafeStr_5322.findChildByName("details_container") as IWindowContainer); if (((!(_local_2)) || (!(_local_2.visible)))) { return; }; var _local_3:IWindow = _local_2.findChildByName("offer_count"); if (_local_3) { this._SafeStr_6431.localization.registerParameter("catalog.marketplace.offer_details.offer_count", "count", k._SafeStr_6437.toString()); _local_3.visible = true; }; var _local_4:ISelectorWindow = (_local_2.findChildByName("chart_selector") as ISelectorWindow); if (!_local_4) { return; }; var _local_5:ISelectableWindow = _local_4._SafeStr_6438(); if (!_local_5) { return; }; switch (_local_5.name) { case "price_development": _local_6 = new MarketplaceChart(k._SafeStr_6439, k._SafeStr_6440); break; case "trade_volume": _local_6 = new MarketplaceChart(k._SafeStr_6439, k._SafeStr_6441); break; default: return; }; if (!_local_6) { return; }; var _local_7:IBitmapWrapperWindow = (_local_2.findChildByName("chart_bitmap") as IBitmapWrapperWindow); if (_local_7) { _local_7.bitmap = null; _local_7.bitmap = new BitmapData(_local_7.width, _local_7.height); _local_9 = _local_6.draw(_local_7.width, _local_7.height); _local_7.bitmap.draw(_local_9); _local_9.dispose(); }; var _local_8:IWindow = _local_2.findChildByName("chart_title"); if (_local_8) { if (_local_6.available) { _local_10 = ("catalog.marketplace.offer_details.chart_title." + _local_5.name); this._SafeStr_6431.localization.registerParameter(_local_10, "days", k._SafeStr_6442.toString()); } else { _local_10 = "catalog.marketplace.offer_details.chart_title.not_available"; }; _local_8.caption = this._SafeStr_6431.localization.getLocalization(_local_10); }; } private function get _SafeStr_6431():_SafeStr_2355{ if (((((page) && (page.viewer))) && (page.viewer.catalog))) { return (page.viewer.catalog.getMarketPlace()); }; return (null); } public function _SafeStr_6432():void{ _SafeStr_5962(_SafeStr_4805._SafeStr_5983); window.procedure = this._SafeStr_6443; this._SafeStr_6426 = (window.findChildByName("offer_list") as IItemListWindow); this._SafeStr_6444("search_by_activity"); } private function _SafeStr_6444(k:String):void{ var _local_5:String; var _local_2:ISelectorWindow = (_SafeStr_5322.findChildByName("search_selector") as ISelectorWindow); if (_local_2 == null) { return; }; var _local_3:ISelectableWindow = _local_2._SafeStr_6445(k); if (_local_3 == null) { return; }; _local_2._SafeStr_6446(_local_3); var _local_4:IWindowContainer = (_SafeStr_5322.findChildByName("search_container") as IWindowContainer); if (_local_4 == null) { return; }; while (_local_4.numChildren > 0) { _local_4.removeChildAt(0); }; switch (k) { case "search_by_value": _local_5 = "marketplace_search_simple"; this._SafeStr_6424 = [1, 2]; break; case "search_by_activity": _local_5 = "marketplace_search_simple"; this._SafeStr_6424 = [3, 4, 5, 6]; break; case "search_advanced": _local_5 = "marketplace_search_advanced"; this._SafeStr_6424 = [1, 2, 3, 4, 5, 6]; break; default: return; }; var _local_6:IWindowContainer = (this.createWindow(_local_5) as IWindowContainer); _local_4.addChild(_local_6); var _local_7:IDropMenuWindow = (_SafeStr_5322.findChildByName("sort_dropmenu") as IDropMenuWindow); if (_local_7 != null) { _local_7.populate(this._SafeStr_6447(this._SafeStr_6424)); _local_7.selection = 0; }; } private function _SafeStr_6447(k:Array):Array{ var _local_3:int; var _local_2:Array = []; for each (_local_3 in k) { _local_2.push(((("$" + "{catalog.marketplace.sort.") + _local_3) + "}")); }; return (_local_2); } private function createWindow(k:String):IWindow{ if (((((((((!(page)) || (!(page.viewer)))) || (!(page.viewer.catalog)))) || (!(page.viewer.catalog.assets)))) || (!(page.viewer.catalog.windowManager)))) { return (null); }; var _local_2:XmlAsset = (page.viewer.catalog.assets.getAssetByName(k) as XmlAsset); if (((!(_local_2)) || (!(_local_2.content)))) { return (null); }; var _local_3:XML = (_local_2.content as XML); if (!_local_3) { return (null); }; return (page.viewer.catalog.windowManager.buildFromXML(_local_3)); } private function _SafeStr_6448(k:int, _arg_2:int=-1, _arg_3:int=-1):void{ var _local_6:String; var _local_4:_SafeStr_500 = this._SafeStr_6431.localization; if (!_local_4) { return; }; if (((((((!(window)) || (!(page)))) || (!(page.viewer)))) || (!(page.viewer.catalog)))) { return; }; var _local_5:IWindow = window.findChildByName("status_text"); if (_local_5 == null) { return; }; if (k == this._SafeStr_6420) { _local_6 = _local_4.getLocalization("catalog.marketplace.searching"); } else { if (this._SafeStr_6421) { if (_arg_3 > 0) { _local_6 = _local_4.getLocalization("catalog.marketplace.items_found"); _local_6 = _local_6.replace("%count%", _arg_3); if ((((_arg_2 > 0)) && ((_arg_2 < _arg_3)))) { _local_6 = (_local_6 + ((". " + _local_4.getLocalization("catalog.marketplace.items_shown")) + ".")); _local_6 = _local_6.replace("%count%", _arg_2); }; } else { _local_6 = _local_4.getLocalization("catalog.marketplace.no_items"); }; }; }; _local_5.caption = _local_6; } private function _SafeStr_6294():void{ if (((!(this._SafeStr_6431)) || (!(window)))) { return; }; var k:Map = this._SafeStr_6431._SafeStr_6449(); if (!k) { return; }; var _local_2:int = this._SafeStr_6431._SafeStr_6450(); this._SafeStr_6168 = k; if (!this._SafeStr_6426) { return; }; this._SafeStr_6426._SafeStr_6302(); if (!this._SafeStr_6427) { return; }; var _local_3:Array = k._SafeStr_6451(); if (_local_3 == null) { return; }; this._SafeStr_6448(this._SafeStr_6421, _local_3.length, _local_2); if (!this._SafeStr_6428) { this._SafeStr_6428 = new Timer(25); this._SafeStr_6428.addEventListener(TimerEvent.TIMER, this._SafeStr_6430); }; this._SafeStr_6429 = 0; this._SafeStr_6452(); this._SafeStr_6428.start(); } private function _SafeStr_6430(k:TimerEvent):void{ if (!this._SafeStr_6428) { return; }; if (this._SafeStr_6452()) { this._SafeStr_6428.stop(); }; } private function _SafeStr_6452():Boolean{ if (!this._SafeStr_6168) { return (true); }; var k:int; while (k < 5) { if (this._SafeStr_6429 >= this._SafeStr_6168.length) { return (true); }; this.addListItem(this._SafeStr_6168._SafeStr_5505(this._SafeStr_6429)); this._SafeStr_6429++; k++; }; return (false); } private function addListItem(k:_SafeStr_3484):void{ var _local_7:String; var _local_8:String; var _local_9:_SafeStr_2973; var _local_10:IBitmapWrapperWindow; var _local_11:Point; var _local_12:IWindow; var _local_13:_SafeStr_2600; var _local_14:_SafeStr_3667; var _local_15:_SafeStr_2600; var _local_16:_SafeStr_3686; var _local_17:IWindow; if (((((((!(k)) || (!(this._SafeStr_6426)))) || (!(this._SafeStr_6427)))) || (!(this._SafeStr_6431.localization)))) { return; }; var _local_2:IWindowContainer = (this._SafeStr_6427.clone() as IWindowContainer); if (((!(_local_2)) || (_local_2.disposed))) { return; }; var _local_3:IWindow = _local_2.findChildByName("item_name"); if (_local_3 != null) { _local_3.caption = ((("$" + "{") + this._SafeStr_6431._SafeStr_6453(k)) + "}"); }; var _local_4:IWindow = _local_2.findChildByName("item_desc"); if (_local_4 != null) { _local_4.caption = ((("$" + "{") + this._SafeStr_6431._SafeStr_6454(k)) + "}"); }; var _local_5:IWindow = _local_2.findChildByName("item_price"); if (_local_5 != null) { _local_7 = this._SafeStr_6431.localization.getLocalization("catalog.marketplace.offer.price_public_item"); _local_7 = _local_7.replace("%price%", k.price); _local_7 = _local_7.replace("%average%", (((k._SafeStr_6455)!=0) ? k._SafeStr_6455.toString() : " - ")); _local_5.caption = _local_7; }; var _local_6:IWindow = _local_2.findChildByName("offer_count"); if (_local_6) { _local_8 = this._SafeStr_6431.localization.getLocalization("catalog.marketplace.offer_count"); _local_8 = _local_8.replace("%count%", k._SafeStr_6437); _local_6.caption = _local_8; }; if (k.image == null) { _local_9 = this._SafeStr_6139(k.furniId, k._SafeStr_6456, k.extraData); if (((!((_local_9 == null))) && (!((_local_9.data == null))))) { k.image = (_local_9.data as BitmapData); k._SafeStr_6457 = _local_9.id; }; _local_2.id = _local_9.id; }; if (k.image != null) { _local_10 = (_local_2.findChildByName("item_image") as IBitmapWrapperWindow); if (_local_10 != null) { _local_11 = new Point(((_local_10.width - k.image.width) / 2), ((_local_10.height - k.image.height) / 2)); if (_local_10.bitmap == null) { _local_10.bitmap = new BitmapData(_local_10.width, _local_10.height, true, 0); }; _local_10.bitmap.copyPixels(k.image, k.image.rect, _local_11); }; }; if (k.isUniqueLimitedItem) { _local_12 = _local_2.findChildByName("unique_item_background_bitmap"); _local_13 = _SafeStr_2600(_local_2.findChildByName("unique_item_overlay_widget")); _local_14 = _SafeStr_3667(_local_13.widget); _local_14._SafeStr_6458 = k.stuffData.uniqueSerialNumber; _local_14.animated = true; _local_12.visible = true; _local_13.visible = true; }; if (((k.stuffData) && ((k.stuffData.rarityLevel >= 0)))) { _local_15 = _SafeStr_2600(_local_2.findChildByName("rarity_item_overlay_widget")); _local_16 = _SafeStr_3686(_local_15.widget); _local_15.visible = true; _local_16.rarityLevel = k.stuffData.rarityLevel; }; if (this._SafeStr_6431._SafeStr_6239()) { _local_17 = _local_2.findChildByName("buy_button"); if (_local_17 != null) { _local_17.disable(); }; }; this._SafeStr_6426.addListItem(_local_2); _local_2.procedure = this._SafeStr_6459; } public function imageReady(k:int, _arg_2:BitmapData):void{ var _local_4:IWindowContainer; var _local_5:_SafeStr_3484; var _local_6:IBitmapWrapperWindow; var _local_7:Point; if (((((((((disposed) || (!(this._SafeStr_6431)))) || (!(_arg_2)))) || (!(this._SafeStr_6426)))) || (!(this._SafeStr_6168)))) { return; }; var _local_3:Array = []; if (this._SafeStr_6426._SafeStr_6460(k, _local_3)) { for each (_local_4 in _local_3) { if (_local_4) { _local_6 = (_local_4.findChildByName("item_image") as IBitmapWrapperWindow); if (_local_6 != null) { _local_6.bitmap = new BitmapData(_local_6.width, _local_6.height, true, 0xFFFFFF); _local_7 = new Point(((_local_6.width - _arg_2.width) / 2), ((_local_6.height - _arg_2.height) / 2)); _local_6.bitmap.copyPixels(_arg_2, _arg_2.rect, _local_7, null, null, true); }; _local_4.id = 0; }; }; }; for each (_local_5 in this._SafeStr_6168) { if (_local_5._SafeStr_6457 == k) { _local_5._SafeStr_6457 = 0; _local_5.image = _arg_2; }; }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_6139(k:int, _arg_2:int, _arg_3:String=null):_SafeStr_2973{ if (((((!(page)) || (!(page.viewer)))) || (!(page.viewer.roomEngine)))) { return (null); }; if (_arg_2 == 1) { return (page.viewer.roomEngine.getFurnitureIcon(k, this)); }; if (_arg_2 == 2) { return (page.viewer.roomEngine.getWallItemIcon(k, this, _arg_3)); }; return (null); } private function _SafeStr_6459(k:WindowEvent, _arg_2:IWindow=null):void{ var _local_3:int; var _local_4:Map; var _local_5:_SafeStr_3484; if (k.type == WindowMouseEvent.CLICK) { if (((((!(window)) || (!(this._SafeStr_6431)))) || (!(_arg_2)))) { return; }; if (this._SafeStr_6426 == null) { return; }; _local_3 = this._SafeStr_6426._SafeStr_5896(k.window.parent); _local_4 = this._SafeStr_6431._SafeStr_6449(); _local_5 = (_local_4._SafeStr_5505(_local_3) as _SafeStr_3484); if (!_local_5) { return; }; switch (_arg_2.name) { case "buy_button": this._SafeStr_6431._SafeStr_6461(_local_5._SafeStr_5719); return; case "more_button": this._SafeStr_6462(_local_5); return; }; }; } private function _SafeStr_6462(k:_SafeStr_3484):void{ var _local_10:_SafeStr_2973; var _local_11:IBitmapWrapperWindow; var _local_12:_SafeStr_3669; var _local_13:_SafeStr_3686; var _local_14:IWindow; if (((((!(k)) || (!(_SafeStr_5322)))) || (!(this._SafeStr_6431)))) { return; }; this._SafeStr_6425 = k; var _local_2:_SafeStr_500 = this._SafeStr_6431.localization; if (!_local_2) { return; }; _SafeStr_5322.getChildAt(0).visible = false; var _local_3:IWindowContainer = (_SafeStr_5322.findChildByName("details_container") as IWindowContainer); if (_local_3) { _local_3.visible = true; } else { _local_3 = (this.createWindow("marketplace_offer_details") as IWindowContainer); _SafeStr_5322.addChild(_local_3); _local_3.procedure = this._SafeStr_6463; }; var _local_4:IWindow = _local_3.findChildByName("item_name"); if (_local_4) { _local_4.caption = ((("$" + "{") + this._SafeStr_6431._SafeStr_6453(k)) + "}"); }; _local_4 = _local_3.findChildByName("item_description"); if (_local_4) { _local_4.caption = ((("$" + "{") + this._SafeStr_6431._SafeStr_6454(k)) + "}"); }; _local_4 = _local_3.findChildByName("item_count"); if (_local_4) { _local_4.visible = false; }; _local_2.registerParameter("catalog.marketplace.offer_details.price", "price", k.price.toString()); _local_2.registerParameter("catalog.marketplace.offer_details.average_price", "days", this._SafeStr_6431._SafeStr_6464.toString()); var _local_5:String = (((k._SafeStr_6455 == 0)) ? " - " : k._SafeStr_6455.toString()); _local_2.registerParameter("catalog.marketplace.offer_details.average_price", "average", _local_5); if (k.image == null) { _local_10 = this._SafeStr_6139(k.furniId, k._SafeStr_6456, k.extraData); if (((!((_local_10 == null))) && (!((_local_10.data == null))))) { k.image = (_local_10.data as BitmapData); k._SafeStr_6457 = _local_10.id; }; }; if (k.image != null) { _local_11 = (_local_3.findChildByName("item_image") as IBitmapWrapperWindow); if (_local_11 != null) { _local_11.bitmap = null; _local_11.bitmap = new BitmapData(_local_11.width, _local_11.height, true, 0); _local_11.bitmap.draw(k.image, new Matrix(1, 0, 0, 1, ((_local_11.width - k.image.width) / 2), ((_local_11.height - k.image.height) / 2))); }; }; var _local_6:ISelectorWindow = (_local_3.findChildByName("chart_selector") as ISelectorWindow); if (_local_6) { _local_6._SafeStr_6446(_local_6._SafeStr_6465(0)); }; var _local_7:IBitmapWrapperWindow = (_local_3.findChildByName("chart_bitmap") as IBitmapWrapperWindow); if (_local_7) { _local_7.bitmap = null; }; var _local_8:_SafeStr_2600 = _SafeStr_2600(_local_3.findChildByName("unique_item_overlay_widget")); if (k.isUniqueLimitedItem) { _local_12 = _SafeStr_3669(_local_8.widget); _local_12._SafeStr_6458 = k.stuffData.uniqueSerialNumber; _local_12._SafeStr_6084 = k.stuffData._SafeStr_6466; _local_8.visible = true; } else { _local_8.visible = false; }; var _local_9:_SafeStr_2600 = _SafeStr_2600(_local_3.findChildByName("rarity_item_overlay_widget")); if (((k.stuffData) && ((k.stuffData.rarityLevel >= 0)))) { _local_13 = _SafeStr_3686(_local_9.widget); _local_9.visible = true; _local_13.rarityLevel = k.stuffData.rarityLevel; } else { _local_9.visible = false; }; if (this._SafeStr_6431._SafeStr_6239()) { _local_14 = _local_3.findChildByName("buy_button"); if (_local_14 != null) { _local_14.disable(); }; }; this._SafeStr_6431._SafeStr_6467(k._SafeStr_6456, k.furniId); } private function _SafeStr_6434():void{ if (!_SafeStr_5322) { return; }; this._SafeStr_6425 = null; var k:IWindow = _SafeStr_5322.findChildByName("details_container"); if (k) { k.visible = false; }; _SafeStr_5322.getChildAt(0).visible = true; } private function _SafeStr_6468():void{ var _local_5:IWindow; this._SafeStr_6448(this._SafeStr_6420); var k:int = -1; var _local_2:int = -1; var _local_3:String = ""; var _local_4:int = 1; _local_5 = _SafeStr_5322.findChildByName("min_price_input"); if (_local_5) { if (_local_5.caption == "") { k = -1; } else { k = parseInt(_local_5.caption); }; }; _local_5 = _SafeStr_5322.findChildByName("max_price_input"); if (_local_5) { if (_local_5.caption == "") { _local_2 = -1; } else { _local_2 = parseInt(_local_5.caption); }; }; _local_5 = _SafeStr_5322.findChildByName("search_input"); if (_local_5) { _local_3 = _local_5.caption; }; var _local_6:IDropMenuWindow = (_SafeStr_5322.findChildByName("sort_dropmenu") as IDropMenuWindow); if (((((_local_6) && ((_local_6.selection >= 0)))) && ((_local_6.selection < this._SafeStr_6424.length)))) { _local_4 = this._SafeStr_6424[_local_6.selection]; }; this._SafeStr_6431._SafeStr_6172(k, _local_2, _local_3, _local_4); } private function _SafeStr_6443(k:WindowEvent, _arg_2:IWindow=null):void{ var _local_5:ISelectorWindow; var _local_6:ISelectableWindow; var _local_7:ITextFieldWindow; var _local_8:int; if (((((!(k)) || (!(_arg_2)))) || (!(this._SafeStr_6431)))) { return; }; var _local_3:_SafeStr_500 = this._SafeStr_6431.localization; var _local_4:IWindow = window.findChildByName("search_input"); if (k.type == WindowEvent._SafeStr_6365) { switch (_arg_2.name) { case "sort_dropmenu": _local_5 = (_SafeStr_5322.findChildByName("search_selector") as ISelectorWindow); if (!_local_5) { return; }; _local_6 = _local_5._SafeStr_6438(); if (!_local_6) { return; }; if ((((_local_6.name == "search_by_value")) || ((_local_6.name == "search_by_activity")))) { this._SafeStr_6468(); }; break; case "search_by_value": case "search_by_activity": case "search_advanced": this._SafeStr_6444(_arg_2.name); break; }; } else { if (k.type == WindowMouseEvent.CLICK) { switch (_arg_2.name) { case "search_input": if (((((_local_3) && (_local_4))) && ((_local_4.caption == _local_3.getLocalization("catalog.marketplace.search_name"))))) { _local_4.caption = ""; }; break; case "search_button": if (((((_local_3) && (_local_4))) && ((_local_4.caption == _local_3.getLocalization("catalog.marketplace.search_name"))))) { return; }; this._SafeStr_6468(); break; }; } else { if (k.type == WindowEvent._SafeStr_5844) { _local_7 = (_arg_2 as ITextFieldWindow); if (!_local_7) { return; }; switch (_local_7.name) { case "min_price_input": case "max_price_input": _local_8 = this._SafeStr_6423; break; case "search_input": _local_8 = this._SafeStr_6422; break; default: return; }; if (_local_7.text.length > _local_8) { _local_7.text = _local_7.text.substr(0, _local_8); }; _local_7.scrollH = 0; }; }; }; } private function _SafeStr_6463(k:WindowEvent, _arg_2:IWindow):void{ if (((!(k)) || (!(_arg_2)))) { return; }; if (k.type == WindowMouseEvent.CLICK) { switch (_arg_2.name) { case "back_button": this._SafeStr_6434(); return; case "buy_button": this._SafeStr_6431._SafeStr_6461(this._SafeStr_6425._SafeStr_5719); return; }; return; }; if (k.type == WindowEvent._SafeStr_6365) { switch (_arg_2.name) { case "price_development": case "trade_volume": this._SafeStr_6435(); return; }; }; } } }//package _-0bT // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2355 = "_-4GJ" (String#8067, DoABC#3) // _SafeStr_2385 = "_-4Dm" (String#6297, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3445 = "_-2SM" (String#10142, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3484 = "_-0wu" (String#2082, DoABC#3) // _SafeStr_3667 = "_-1t5" (String#3738, DoABC#3) // _SafeStr_3669 = "_-5Gj" (String#3823, DoABC#3) // _SafeStr_3686 = "_-5oa" (String#3170, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5844 = "_-2EM" (String#4084, DoABC#3) // _SafeStr_5896 = "_-3HF" (String#3467, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5983 = "_-6C3" (String#21004, DoABC#3) // _SafeStr_6084 = "_-2On" (String#5737, DoABC#3) // _SafeStr_6139 = "_-3wr" (String#9602, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6171 = "_-35t" (String#10507, DoABC#3) // _SafeStr_6172 = "_-5W0" (String#10432, DoABC#3) // _SafeStr_6239 = "_-1XU" (String#6445, DoABC#3) // _SafeStr_6294 = "_-02v" (String#13938, DoABC#3) // _SafeStr_6302 = "_-U9" (String#2422, DoABC#3) // _SafeStr_6365 = "_-183" (String#2263, DoABC#3) // _SafeStr_6420 = "_-1uK" (String#15195, DoABC#3) // _SafeStr_6421 = "_-1gl" (String#15598, DoABC#3) // _SafeStr_6422 = "_-4Oe" (String#36814, DoABC#3) // _SafeStr_6423 = "_-28p" (String#33176, DoABC#3) // _SafeStr_6424 = "_-27V" (String#10155, DoABC#3) // _SafeStr_6425 = "_-1Wk" (String#21500, DoABC#3) // _SafeStr_6426 = "_-0Xo" (String#747, DoABC#3) // _SafeStr_6427 = "_-4Qi" (String#10720, DoABC#3) // _SafeStr_6428 = "_-5G6" (String#8183, DoABC#3) // _SafeStr_6429 = "_-6X4" (String#16233, DoABC#3) // _SafeStr_6430 = "_-6Q0" (String#30686, DoABC#3) // _SafeStr_6431 = "_-qR" (String#1917, DoABC#3) // _SafeStr_6432 = "_-6HG" (String#18382, DoABC#3) // _SafeStr_6433 = "_-Sq" (String#9558, DoABC#3) // _SafeStr_6434 = "_-Ek" (String#28843, DoABC#3) // _SafeStr_6435 = "_-5GN" (String#20252, DoABC#3) // _SafeStr_6436 = "_-3CR" (String#15711, DoABC#3) // _SafeStr_6437 = "_-5-c" (String#5141, DoABC#3) // _SafeStr_6438 = "_-2hG" (String#2208, DoABC#3) // _SafeStr_6439 = "_-3-G" (String#12767, DoABC#3) // _SafeStr_6440 = "_-1vk" (String#14341, DoABC#3) // _SafeStr_6441 = "_-3ux" (String#14704, DoABC#3) // _SafeStr_6442 = "_-6DO" (String#13817, DoABC#3) // _SafeStr_6443 = "_-0Vf" (String#25515, DoABC#3) // _SafeStr_6444 = "_-3EX" (String#30905, DoABC#3) // _SafeStr_6445 = "_-5gF" (String#7167, DoABC#3) // _SafeStr_6446 = "_-6Gs" (String#1744, DoABC#3) // _SafeStr_6447 = "_-3Tm" (String#37452, DoABC#3) // _SafeStr_6448 = "_-1O" (String#16879, DoABC#3) // _SafeStr_6449 = "_-4nw" (String#22874, DoABC#3) // _SafeStr_6450 = "_-3y0" (String#17588, DoABC#3) // _SafeStr_6451 = "_-1-C" (String#2261, DoABC#3) // _SafeStr_6452 = "_-5XP" (String#27859, DoABC#3) // _SafeStr_6453 = "_-419" (String#14279, DoABC#3) // _SafeStr_6454 = "_-0vH" (String#18398, DoABC#3) // _SafeStr_6455 = "_-3if" (String#5032, DoABC#3) // _SafeStr_6456 = "_-2W6" (String#5274, DoABC#3) // _SafeStr_6457 = "_-1z7" (String#6479, DoABC#3) // _SafeStr_6458 = "_-0iv" (String#4257, DoABC#3) // _SafeStr_6459 = "_-4TR" (String#36726, DoABC#3) // _SafeStr_6460 = "_-2UJ" (String#15159, DoABC#3) // _SafeStr_6461 = "_-0d8" (String#25101, DoABC#3) // _SafeStr_6462 = "_-6bk" (String#7638, DoABC#3) // _SafeStr_6463 = "_-1w1" (String#38497, DoABC#3) // _SafeStr_6464 = "_-4JH" (String#6759, DoABC#3) // _SafeStr_6465 = "_-4A" (String#6664, DoABC#3) // _SafeStr_6466 = "_-0Wm" (String#7666, DoABC#3) // _SafeStr_6467 = "_-1Sx" (String#29887, DoABC#3) // _SafeStr_6468 = "_-2Oi" (String#7450, DoABC#3) //------------------------------------------------------------ //_-0bT.MarketPlaceOwnItemsCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-4V3._SafeStr_3445; import _-WS.Map; import _-6Sj.IItemListWindow; import _-29V.IWindowContainer; import _-3xK._SafeStr_637; import _-4V3._SafeStr_3487; import _-Qx._SafeStr_500; import _-29V.IWindow; import _-4V3._SafeStr_2355; import _-4V3._SafeStr_3484; import _-5x9._SafeStr_2973; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Point; import _-6Sj._SafeStr_2600; import _-6Tv._SafeStr_3667; import _-6Tv._SafeStr_3686; import flash.display.BitmapData; import _-6Sj.IButtonWindow; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; public class MarketPlaceOwnItemsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325, _SafeStr_3445 { private const _SafeStr_6420:int = 1; private const _SafeStr_6421:int = 2; private var _SafeStr_6469:Map; private var _SafeStr_6426:IItemListWindow; private var _SafeStr_6168:Map; public function MarketPlaceOwnItemsCatalogWidget(k:IWindowContainer){ super(k); this._SafeStr_6469 = new Map(); } override public function dispose():void{ super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; if (this._SafeStr_6431 == null) { return (false); }; var k:_SafeStr_637 = this._SafeStr_6431.windowManager; if (k == null) { return (false); }; this._SafeStr_6432(); var _local_2:IItemListWindow = (_SafeStr_5322.findChildByName("item_list") as IItemListWindow); this._SafeStr_6469.add(_SafeStr_3487._SafeStr_6470, _local_2.removeListItem(_local_2.getListItemByName("ongoing_item"))); this._SafeStr_6469.add(_SafeStr_3487._SafeStr_6471, _local_2.removeListItem(_local_2.getListItemByName("sold_item"))); this._SafeStr_6469.add(_SafeStr_3487._SafeStr_6472, _local_2.removeListItem(_local_2.getListItemByName("expired_item"))); this._SafeStr_6431._SafeStr_6171(this); this._SafeStr_6431._SafeStr_6473(); this._SafeStr_6448(this._SafeStr_6420); this._SafeStr_6474(false); return (true); } private function _SafeStr_6474(k:Boolean):void{ if (!window) { return; }; var _local_2:IWindowContainer = (window.findChildByName("redeem_border") as IWindowContainer); if (_local_2) { _local_2.visible = k; }; } public function _SafeStr_6433():void{ if (this._SafeStr_6431 == null) { return; }; this._SafeStr_6294(this._SafeStr_6431._SafeStr_6475()); } private function _SafeStr_6448(k:int, _arg_2:int=-1):void{ var _local_5:String; if (((!(this._SafeStr_6431)) || (!(window)))) { return; }; var _local_3:_SafeStr_500 = this._SafeStr_6431.localization; if (!_local_3) { return; }; var _local_4:IWindow = window.findChildByName("status_text"); if (_local_4 == null) { return; }; if (k == this._SafeStr_6420) { _local_5 = _local_3.getLocalization("catalog.marketplace.searching"); } else { if (this._SafeStr_6421) { if (_arg_2 > 0) { _local_5 = _local_3.getLocalization("catalog.marketplace.items_found"); _local_5 = _local_5.replace("%count%", _arg_2); } else { _local_5 = _local_3.getLocalization("catalog.marketplace.no_items"); }; }; }; _local_4.caption = _local_5; } private function get _SafeStr_6431():_SafeStr_2355{ if (((((!(page)) || (!(page.viewer)))) || (!(page.viewer.catalog)))) { return (null); }; return (page.viewer.catalog.getMarketPlace()); } private function _SafeStr_6294(k:Map):void{ var _local_4:IWindowContainer; var _local_10:int; var _local_11:_SafeStr_3484; var _local_12:IWindowContainer; var _local_13:IWindow; var _local_14:IWindow; var _local_15:IWindow; var _local_16:String; var _local_17:IWindow; var _local_18:int; var _local_19:int; var _local_20:int; var _local_21:String; var _local_22:String; var _local_23:IWindow; var _local_24:IWindow; var _local_25:_SafeStr_2973; var _local_26:IBitmapWrapperWindow; var _local_27:Point; var _local_28:IWindow; var _local_29:_SafeStr_2600; var _local_30:_SafeStr_3667; var _local_31:_SafeStr_2600; var _local_32:_SafeStr_3686; if (((((!(k)) || (!(this._SafeStr_6431)))) || (!(window)))) { return; }; this._SafeStr_6168 = k; var _local_2:_SafeStr_500 = this._SafeStr_6431.localization; if (!_local_2) { return; }; var _local_3:IItemListWindow = (window.findChildByName("item_list") as IItemListWindow); if (!_local_3) { return; }; _local_3._SafeStr_6302(); var _local_5:int; var _local_6:Array = k._SafeStr_6451(); if (!_local_6) { return; }; this._SafeStr_6448(this._SafeStr_6421, _local_6.length); var _local_7:int; while (_local_7 < _local_6.length) { _local_10 = _local_6[_local_7]; _local_11 = (k.getValue(_local_10) as _SafeStr_3484); if (_local_11.status == _SafeStr_3487._SafeStr_6471) { _local_5++; }; _local_4 = this._SafeStr_6469.getValue(_local_11.status); if (_local_4) { _local_12 = (_local_4.clone() as IWindowContainer); if (!((!(_local_12)) || (_local_12.disposed))) { _local_13 = _local_12.findChildByName("item_name"); if (_local_13 != null) { _local_13.caption = (((this._SafeStr_6431)!=null) ? ((("$" + "{") + this._SafeStr_6431._SafeStr_6453(_local_11)) + "}") : ""); }; _local_14 = _local_12.findChildByName("item_desc"); if (_local_14 != null) { _local_14.caption = (((this._SafeStr_6431)!=null) ? ((("$" + "{") + this._SafeStr_6431._SafeStr_6454(_local_11)) + "}") : ""); }; _local_15 = _local_12.findChildByName("item_price"); if (_local_15 != null) { _local_16 = _local_2.getLocalization("catalog.marketplace.offer.price_own_item"); _local_16 = _local_16.replace("%price%", _local_11.price); _local_15.caption = _local_16; }; if (_local_11.status == _SafeStr_3487._SafeStr_6470) { _local_17 = _local_12.findChildByName("item_time"); if (_local_17 != null) { _local_18 = Math.max(1, _local_11._SafeStr_6476); _local_19 = Math.floor((_local_18 / 60)); _local_20 = (_local_18 - (_local_19 * 60)); _local_21 = ((_local_20 + " ") + _local_2.getLocalization("catalog.marketplace.offer.minutes")); if (_local_19 > 0) { _local_21 = ((((_local_19 + " ") + _local_2.getLocalization("catalog.marketplace.offer.hours")) + " ") + _local_21); }; _local_22 = _local_2.getLocalization("catalog.marketplace.offer.time_left"); _local_22 = _local_22.replace("%time%", _local_21); _local_17.caption = _local_22; }; }; if (_local_11.status == _SafeStr_3487._SafeStr_6471) { _local_23 = _local_12.findChildByName("item_sold"); if (_local_23 != null) { _local_23.caption = _local_2.getLocalization("catalog.marketplace.offer.sold"); }; }; if (_local_11.status == _SafeStr_3487._SafeStr_6472) { _local_24 = _local_12.findChildByName("item_expired"); if (_local_24 != null) { _local_24.caption = _local_2.getLocalization("catalog.marketplace.offer.expired"); }; }; if (_local_11.image == null) { _local_25 = this._SafeStr_6139(_local_11.furniId, _local_11._SafeStr_6456, _local_11.extraData); if (((!((_local_25 == null))) && (!((_local_25.data == null))))) { _local_11.image = (_local_25.data as BitmapData); _local_11._SafeStr_6457 = _local_25.id; _local_12.id = _local_25.id; }; }; if (_local_11.image != null) { _local_26 = (_local_12.findChildByName("item_image") as IBitmapWrapperWindow); if (_local_26 != null) { _local_27 = new Point(((_local_26.width - _local_11.image.width) / 2), ((_local_26.height - _local_11.image.height) / 2)); if (_local_26.bitmap == null) { _local_26.bitmap = new BitmapData(_local_26.width, _local_26.height, true, 0); }; _local_26.bitmap.copyPixels(_local_11.image, _local_11.image.rect, _local_27); }; }; if (_local_11.isUniqueLimitedItem) { _local_28 = _local_12.findChildByName("unique_item_background_bitmap"); _local_29 = _SafeStr_2600(_local_12.findChildByName("unique_item_overlay_widget")); _local_30 = _SafeStr_3667(_local_29.widget); _local_30._SafeStr_6458 = _local_11.stuffData.uniqueSerialNumber; _local_30.animated = true; _local_28.visible = true; _local_29.visible = true; }; if (((_local_11.stuffData) && ((_local_11.stuffData.rarityLevel >= 0)))) { _local_31 = _SafeStr_2600(_local_12.findChildByName("rarity_item_overlay_widget")); _local_32 = _SafeStr_3686(_local_31.widget); _local_31.visible = true; _local_32.rarityLevel = _local_11.stuffData.rarityLevel; }; _local_3.addListItem(_local_12); _local_12.procedure = this._SafeStr_6477; }; }; _local_7++; }; this._SafeStr_6474(true); var _local_8:IButtonWindow = (window.findChildByName("redeem_sold") as IButtonWindow); var _local_9:IWindow = window.findChildByName("redeem_info"); if (((_local_8) && (_local_9))) { if (_local_5 > 0) { _local_8.enable(); _local_2.registerParameter("catalog.marketplace.redeem.get_credits", "count", _local_5.toString()); _local_2.registerParameter("catalog.marketplace.redeem.get_credits", "credits", this._SafeStr_6431._SafeStr_6478.toString()); _local_9.caption = ("$" + "{catalog.marketplace.redeem.get_credits}"); } else { _local_8.disable(); _local_9.caption = ("$" + "{catalog.marketplace.redeem.no_sold_items}"); }; }; } public function _SafeStr_6432():void{ _SafeStr_5962(_SafeStr_4805._SafeStr_5984); window.procedure = this._SafeStr_6443; this._SafeStr_6426 = (window.findChildByName("item_list") as IItemListWindow); } public function imageReady(k:int, _arg_2:BitmapData):void{ var _local_4:IWindowContainer; var _local_5:_SafeStr_3484; var _local_6:IBitmapWrapperWindow; var _local_7:Point; if (((((((((disposed) || (!(this._SafeStr_6431)))) || (!(_arg_2)))) || (!(this._SafeStr_6426)))) || (!(this._SafeStr_6168)))) { return; }; var _local_3:Array = []; if (this._SafeStr_6426._SafeStr_6460(k, _local_3)) { for each (_local_4 in _local_3) { if (_local_4) { _local_6 = (_local_4.findChildByName("item_image") as IBitmapWrapperWindow); if (_local_6 != null) { _local_6.bitmap = new BitmapData(_local_6.width, _local_6.height, true, 0xFFFFFF); _local_7 = new Point(((_local_6.width - _arg_2.width) / 2), ((_local_6.height - _arg_2.height) / 2)); _local_6.bitmap.copyPixels(_arg_2, _arg_2.rect, _local_7, null, null, true); }; _local_4.id = 0; }; }; }; for each (_local_5 in this._SafeStr_6168) { if (_local_5._SafeStr_6457 == k) { _local_5._SafeStr_6457 = 0; _local_5.image = _arg_2; }; }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_6139(k:int, _arg_2:int, _arg_3:String=null):_SafeStr_2973{ if (((((!(page)) || (!(page.viewer)))) || (!(page.viewer.roomEngine)))) { return (null); }; if (_arg_2 == 1) { return (page.viewer.roomEngine.getFurnitureIcon(k, this)); }; if (_arg_2 == 2) { return (page.viewer.roomEngine.getWallItemIcon(k, this, _arg_3)); }; return (null); } private function _SafeStr_6477(k:WindowEvent, _arg_2:IWindow=null):void{ var _local_3:IItemListWindow; var _local_4:int; var _local_5:Map; var _local_6:_SafeStr_3484; if (k.type == WindowMouseEvent.CLICK) { if (((((!(this._SafeStr_6431)) || (!(_arg_2)))) || (!(window)))) { return; }; if (_arg_2.name == "pick_button") { _local_3 = (window.findChildByName("item_list") as IItemListWindow); if (_local_3 == null) { return; }; _local_4 = _local_3._SafeStr_5896(k.window.parent); _local_5 = this._SafeStr_6431._SafeStr_6475(); if (!_local_5) { return; }; _local_6 = (_local_5._SafeStr_5505(_local_4) as _SafeStr_3484); if (_local_6) { this._SafeStr_6431._SafeStr_6479(_local_6._SafeStr_5719); }; }; }; } private function _SafeStr_6443(k:WindowEvent, _arg_2:IWindow):void{ if (_arg_2 == null) { _arg_2 = (k.target as IWindow); }; if (k.type == WindowMouseEvent.CLICK) { switch (_arg_2.name) { case "redeem_sold": if (this._SafeStr_6431) { this._SafeStr_6431._SafeStr_6480(); }; return; }; }; } public function _SafeStr_6435():void{ } } }//package _-0bT // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2355 = "_-4GJ" (String#8067, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3445 = "_-2SM" (String#10142, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3484 = "_-0wu" (String#2082, DoABC#3) // _SafeStr_3487 = "_-Uv" (String#7440, DoABC#3) // _SafeStr_3667 = "_-1t5" (String#3738, DoABC#3) // _SafeStr_3686 = "_-5oa" (String#3170, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5896 = "_-3HF" (String#3467, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5984 = "_-6DV" (String#20484, DoABC#3) // _SafeStr_6139 = "_-3wr" (String#9602, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6171 = "_-35t" (String#10507, DoABC#3) // _SafeStr_6294 = "_-02v" (String#13938, DoABC#3) // _SafeStr_6302 = "_-U9" (String#2422, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) // _SafeStr_6420 = "_-1uK" (String#15195, DoABC#3) // _SafeStr_6421 = "_-1gl" (String#15598, DoABC#3) // _SafeStr_6426 = "_-0Xo" (String#747, DoABC#3) // _SafeStr_6431 = "_-qR" (String#1917, DoABC#3) // _SafeStr_6432 = "_-6HG" (String#18382, DoABC#3) // _SafeStr_6433 = "_-Sq" (String#9558, DoABC#3) // _SafeStr_6435 = "_-5GN" (String#20252, DoABC#3) // _SafeStr_6443 = "_-0Vf" (String#25515, DoABC#3) // _SafeStr_6448 = "_-1O" (String#16879, DoABC#3) // _SafeStr_6451 = "_-1-C" (String#2261, DoABC#3) // _SafeStr_6453 = "_-419" (String#14279, DoABC#3) // _SafeStr_6454 = "_-0vH" (String#18398, DoABC#3) // _SafeStr_6456 = "_-2W6" (String#5274, DoABC#3) // _SafeStr_6457 = "_-1z7" (String#6479, DoABC#3) // _SafeStr_6458 = "_-0iv" (String#4257, DoABC#3) // _SafeStr_6460 = "_-2UJ" (String#15159, DoABC#3) // _SafeStr_6469 = "_-0VV" (String#14454, DoABC#3) // _SafeStr_6470 = "_-3N" (String#17655, DoABC#3) // _SafeStr_6471 = "_-4lS" (String#12515, DoABC#3) // _SafeStr_6472 = "_-Gu" (String#8954, DoABC#3) // _SafeStr_6473 = "_-0M0" (String#27821, DoABC#3) // _SafeStr_6474 = "_-x1" (String#27773, DoABC#3) // _SafeStr_6475 = "_-4UO" (String#23505, DoABC#3) // _SafeStr_6476 = "_-6jO" (String#7873, DoABC#3) // _SafeStr_6477 = "_-2wo" (String#36861, DoABC#3) // _SafeStr_6478 = "_-tI" (String#19478, DoABC#3) // _SafeStr_6479 = "_-4rj" (String#27672, DoABC#3) // _SafeStr_6480 = "_-2Sj" (String#31688, DoABC#3) //------------------------------------------------------------ //_-0bT.NewPetsCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-WS.Map; import _-29V.IWindow; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_5168; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_3507; import _-6K0._SafeStr_3508; import _-5x9.PetColorResult; import _-4-i._SafeStr_5167; import _-4-i._SafeStr_5153; import _-5Vh.WindowEvent; import _-64Q._SafeStr_2464; import _-4-i._SafeStr_2461; import _-Qx._SafeStr_500; import _-4-i._SafeStr_2370; import _-5x9._SafeStr_2213; import _-4nT._SafeStr_2993; import _-0bw._SafeStr_2308; import _-5x9._SafeStr_2973; import flash.display.BitmapData; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Point; import flash.geom.Matrix; public class NewPetsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325 { private static const _SafeStr_6481:Array = [15]; private static const _SafeStr_6482:int = 20; private var _SafeStr_6168:Map; private var _SafeStr_6483:IWindow; private var _SafeStr_6484:int = -1; private var _SafeStr_6485:int = -1; private var _SafeStr_6486:String; private var _SafeStr_6487:Boolean = false; private var _SafeStr_5588:Boolean = false; private var _SafeStr_6488:Array = null; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; private var _SafeStr_6489:int = -1; public function NewPetsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (this._SafeStr_5588) { return; }; this._SafeStr_6487 = false; if (this._SafeStr_6168 != null) { this._SafeStr_6168.dispose(); this._SafeStr_6168 = null; }; this._SafeStr_6488 = null; this._SafeStr_5539 = null; this._SafeStr_6166 = null; super.dispose(); this._SafeStr_5588 = true; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6487 = false; this._SafeStr_6483 = window.findChildByName("name_input_text"); if (this._SafeStr_6483 == null) { return (false); }; this._SafeStr_6483.caption = ""; this._SafeStr_6168 = new Map(); if (page.offers.length == 0) { return (false); }; var k:_SafeStr_2399 = page.offers[0]; this._SafeStr_6484 = this._SafeStr_6490(k._SafeStr_5799); if (this._SafeStr_6484 < 8) { return (false); }; this._SafeStr_6486 = k._SafeStr_5799; this._SafeStr_6491(k._SafeStr_5799); if (((!((this._SafeStr_6488 == null))) && ((this._SafeStr_6488.length > 0)))) { this._SafeStr_6485 = 0; } else { this._SafeStr_6485 = -1; }; this._SafeStr_6168.add(this._SafeStr_6484, k); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451.COLOUR_INDEX, this._SafeStr_6386); events.addEventListener(_SafeStr_3451._SafeStr_6492, this._SafeStr_6493); events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); events.addEventListener(_SafeStr_3451.SELLABLE_PET_PALETTES, this._SafeStr_6494); return (true); } private function _SafeStr_6277(k:_SafeStr_3507=null):void{ if (this._SafeStr_5588) { return; }; events.dispatchEvent(new _SafeStr_5168(this._SafeStr_6226)); var _local_2:_SafeStr_2399 = this._SafeStr_6168._SafeStr_5505(0); if (_local_2 != null) { events.dispatchEvent(new _SafeStr_2445(_local_2)); }; this._SafeStr_6495(); } private function _SafeStr_6495():void{ var k:Array; var _local_2:int; var _local_3:_SafeStr_3508; var _local_4:PetColorResult; if (this._SafeStr_6488 != null) { k = []; _local_2 = 0; while ((((_local_2 < _SafeStr_6482)) && ((_local_2 < this._SafeStr_6488.length)))) { _local_3 = this._SafeStr_6488[_local_2]; _local_4 = this._SafeStr_5539.roomEngine._SafeStr_6496(this._SafeStr_6484, _local_3.paletteId); if (_local_4 != null) { if (_local_4._SafeStr_6366 == _local_4._SafeStr_6367) { k.push([_local_4._SafeStr_6366]); } else { k.push([_local_4._SafeStr_6366, _local_4._SafeStr_6367]); }; }; _local_2++; }; events.dispatchEvent(new _SafeStr_5167(k, "ctlg_clr_27x22_1", "ctlg_clr_27x22_2", "ctlg_clr_27x22_3")); }; } private function _SafeStr_6386(k:_SafeStr_5153):void{ if (k == null) { return; }; var _local_2:int = k.index; this._SafeStr_6497(_local_2); } private function _SafeStr_6497(k:int):void{ if (((!((this._SafeStr_6488 == null))) && ((this._SafeStr_6488.length > 0)))) { if ((((k < 0)) || ((k > this._SafeStr_6488.length)))) { k = 0; }; this._SafeStr_6485 = k; this._SafeStr_6498(); }; } private function _SafeStr_6499():String{ var k:_SafeStr_3508; if (this._SafeStr_6485 < 0) { return (""); }; if (((!((page == null))) && (!((page.viewer == null))))) { if (((!((this._SafeStr_5539 == null))) && (!((this._SafeStr_5539.localization == null))))) { k = (this._SafeStr_6488[this._SafeStr_6485] as _SafeStr_3508); return (this._SafeStr_5539.localization.getLocalization(this._SafeStr_6500(this._SafeStr_6484, k._SafeStr_6501), this._SafeStr_6500(this._SafeStr_6484, k._SafeStr_6501))); }; }; k = this._SafeStr_6488[this._SafeStr_6485]; return (this._SafeStr_6500(this._SafeStr_6484, k._SafeStr_6501)); } private function _SafeStr_6226(k:WindowEvent):void{ if (this._SafeStr_6487) { _SafeStr_4.log("* Cannot buy a pet, pending previous name approval."); }; if (this._SafeStr_6502() == "") { return; }; var _local_2:String = this._SafeStr_6483.caption; this._SafeStr_6487 = true; this._SafeStr_5539._SafeStr_6503(_local_2, 1); } private function _SafeStr_6047(k:_SafeStr_2445):void{ if (k == null) { return; }; this._SafeStr_6498(); } private function _SafeStr_6493(event:_SafeStr_2461):void{ if ((((event == null)) || (!(this._SafeStr_6487)))) { return; }; this._SafeStr_6487 = false; var nameValidationInfo:String = event.nameValidationInfo; if (event.result != 0) { this._SafeStr_5539._SafeStr_6234(false); }; switch (event.result) { case 1: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("long", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 2: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("short", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 3: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("chars", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 4: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("bobba", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; }; var extraParameter:String = this._SafeStr_6502(); if (extraParameter == "") { _SafeStr_4.log("* Not enough information to buy a pet!"); return; }; _SafeStr_4.log(("* Will buy pet as " + extraParameter)); this._SafeStr_5539._SafeStr_6243(this._SafeStr_6168._SafeStr_5505(0), page.pageId, extraParameter, 1, null, null, true, this._SafeStr_6505()); } private function _SafeStr_6504(k:String, _arg_2:String):String{ var _local_3:_SafeStr_500 = this._SafeStr_5539.localization; var _local_4:String = ("catalog.alert.petname." + k); var _local_5 = (_local_4 + ".additionalInfo"); _local_3.registerParameter(_local_5, "additional_info", _arg_2); var _local_6:String = _local_3.getLocalization(_local_4); var _local_7:String = _local_3.getLocalization(_local_5); if (((((((!((_arg_2 == null))) && ((_arg_2.length > 0)))) && (!((_local_7 == null))))) && ((_local_7.length > 0)))) { _local_6 = _local_7; }; return (_local_6); } private function _SafeStr_6494(k:_SafeStr_2370):void{ if (k._SafeStr_6179 == this._SafeStr_6486) { this._SafeStr_6488 = this._SafeStr_6506(k._SafeStr_6507); this._SafeStr_6495(); this._SafeStr_6497(0); this._SafeStr_6498(); }; } private function _SafeStr_6506(k:Array):Array{ var _local_3:_SafeStr_3508; if (!k) { return (null); }; var _local_2:Array = new Array(); for each (_local_3 in k) { if ((((_local_3.type == this._SafeStr_6484)) && (_local_3.sellable))) { _local_2.push(_local_3); }; }; return (_local_2); } private function _SafeStr_6505():BitmapData{ var _local_2:int; var _local_6:_SafeStr_2213; var _local_11:int; var _local_12:int; var _local_13:PetColorResult; var _local_14:PetColorResult; var _local_15:int; var _local_16:int; var _local_17:_SafeStr_2993; var _local_18:_SafeStr_2993; var k:_SafeStr_2399 = this._SafeStr_6168._SafeStr_5505(0); if ((((k == null)) || ((this._SafeStr_6485 < 0)))) { return (null); }; _local_2 = this._SafeStr_6484; var _local_3:_SafeStr_3508 = this._SafeStr_6488[this._SafeStr_6485]; var _local_4:int = _local_3.paletteId; var _local_5 = 0xFFFFFF; _local_6 = this._SafeStr_5539.roomEngine; var _local_7 = (_SafeStr_6481.indexOf(_local_2) == -1); var _local_8:_SafeStr_2308 = ((_local_7) ? new _SafeStr_2308(135) : new _SafeStr_2308(90)); var _local_9:Array = []; switch (_local_2) { case 15: _local_11 = _local_6._SafeStr_6508(_local_2, "hair"); _local_12 = _local_6._SafeStr_6508(_local_2, "tail"); _local_13 = _local_6._SafeStr_6509(_local_2, "hair"); _local_14 = _local_6._SafeStr_6509(_local_2, "tail"); _local_15 = ((_local_13) ? parseInt(_local_13.id) : -1); _local_16 = ((_local_14) ? parseInt(_local_14.id) : -1); _local_17 = new _SafeStr_2993(_local_11, -1, _local_15); _local_18 = new _SafeStr_2993(_local_12, -1, _local_16); _local_9 = [_local_17, _local_18]; break; }; var _local_10:_SafeStr_2973 = _local_6._SafeStr_6505(_local_2, _local_4, _local_5, _local_8, 64, this, true, 0, _local_9); if (_local_10 != null) { this._SafeStr_6489 = _local_10.id; return (_local_10.data); }; return (null); } private function _SafeStr_6498():void{ var k:_SafeStr_2399 = this._SafeStr_6168._SafeStr_5505(0); if ((((k == null)) || ((this._SafeStr_6485 < 0)))) { return; }; var _local_2:BitmapData = this._SafeStr_6505(); if (_local_2 != null) { this._SafeStr_5599(_local_2, true); }; var _local_3:IWindow = window.findChildByName("ctlg_teaserimg_1"); this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(k, _SafeStr_5322, this._SafeStr_6166, _local_3, -6, false, 6); var _local_4:IWindow = _SafeStr_5322.findChildByName("pet_breed_text"); if (_local_4) { _local_4.caption = this._SafeStr_6499(); }; } private function _SafeStr_6502():String{ var name:String = this._SafeStr_6483.caption; if ((((name == null)) || ((name.length == 0)))) { this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", "${catalog.alert.petname.empty}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return (""); }; if (this._SafeStr_6485 < 0) { return (""); }; var color:uint = 0xFFFFFF; var data:_SafeStr_3508 = this._SafeStr_6488[this._SafeStr_6485]; var p:String = ((((name + String.fromCharCode(10)) + data.paletteId) + String.fromCharCode(10)) + this._SafeStr_6510(color.toString(16).toUpperCase(), 6)); return (p); } private function _SafeStr_5599(k:BitmapData, _arg_2:Boolean):void{ var _local_3:IBitmapWrapperWindow; var _local_4:int; var _local_5:BitmapData; var _local_6:Point; if (!window.disposed) { if (k == null) { k = new BitmapData(1, 1); _arg_2 = true; }; _local_3 = (window.findChildByName("ctlg_teaserimg_1") as IBitmapWrapperWindow); if (_local_3 != null) { if (_local_3.bitmap == null) { _local_3.bitmap = new BitmapData(_local_3.width, _local_3.height, true, 0xFFFFFF); }; _local_3.bitmap.fillRect(_local_3.bitmap.rect, 0xFFFFFF); _local_4 = 1; if (_SafeStr_6481.indexOf(this._SafeStr_6484) == -1) { _local_4 = 2; }; _local_5 = new BitmapData((k.width * _local_4), (k.height * _local_4), true, 0xFFFFFF); _local_5.draw(k, new Matrix(_local_4, 0, 0, _local_4)); _local_6 = new Point(((_local_3.width - _local_5.width) / 2), ((_local_3.height - _local_5.height) / 2)); _local_3.bitmap.copyPixels(_local_5, _local_5.rect, _local_6, null, null, true); _local_3.invalidate(); _local_5.dispose(); }; }; if (_arg_2) { k.dispose(); }; } private function _SafeStr_6490(k:String):int{ if (k.length == 0) { return (0); }; var _local_2:int; _local_2 = (k.length - 1); while (_local_2 >= 0) { if (isNaN(parseInt(k.charAt(_local_2)))) { break; }; _local_2--; }; if (_local_2 > 0) { return (int(k.substring((_local_2 + 1)))); }; return (-1); } private function _SafeStr_6500(k:int, _arg_2:int):String{ return (((("pet.breed." + k) + ".") + _arg_2)); } private function _SafeStr_6510(k:String, _arg_2:int):String{ while (k.length < _arg_2) { k = ("0" + k); }; return (k); } private function _SafeStr_6491(k:String):void{ var _local_2:Array; if (this._SafeStr_6488 == null) { _local_2 = this._SafeStr_5539._SafeStr_6511(k); this._SafeStr_6488 = this._SafeStr_6506(_local_2); }; } public function imageReady(k:int, _arg_2:BitmapData):void{ if (disposed) { return; }; if (k == this._SafeStr_6489) { this._SafeStr_5599(_arg_2, true); this._SafeStr_6277(); }; } public function _SafeStr_5602(k:int):void{ } } }//package _-0bT // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2370 = "_-6gI" (String#13228, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2461 = "_-5EP" (String#9117, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_2993 = "_-RN" (String#2155, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_3508 = "_-6aY" (String#3388, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5153 = "_-0ok" (String#8203, DoABC#3) // _SafeStr_5167 = "_-6Lb" (String#13494, DoABC#3) // _SafeStr_5168 = "_-0UG" (String#8941, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6179 = "_-5B3" (String#2369, DoABC#3) // _SafeStr_6226 = "_-0gO" (String#12105, DoABC#3) // _SafeStr_6234 = "_-4J4" (String#11532, DoABC#3) // _SafeStr_6243 = "_-6ZF" (String#7922, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6366 = "_-6XP" (String#7952, DoABC#3) // _SafeStr_6367 = "_-450" (String#9007, DoABC#3) // _SafeStr_6386 = "_-23G" (String#10270, DoABC#3) // _SafeStr_6481 = "_-6fF" (String#17914, DoABC#3) // _SafeStr_6482 = "_-0ME" (String#19134, DoABC#3) // _SafeStr_6483 = "_-6OJ" (String#1028, DoABC#3) // _SafeStr_6484 = "_-2eg" (String#3444, DoABC#3) // _SafeStr_6485 = "_-0oJ" (String#4103, DoABC#3) // _SafeStr_6486 = "_-2fz" (String#14856, DoABC#3) // _SafeStr_6487 = "_-4As" (String#5898, DoABC#3) // _SafeStr_6488 = "_-2vW" (String#2912, DoABC#3) // _SafeStr_6489 = "_-1y-" (String#14379, DoABC#3) // _SafeStr_6490 = "_-0cU" (String#25107, DoABC#3) // _SafeStr_6491 = "_-1A0" (String#25559, DoABC#3) // _SafeStr_6492 = "_-14U" (String#13650, DoABC#3) // _SafeStr_6493 = "_-eS" (String#16969, DoABC#3) // _SafeStr_6494 = "_-5kU" (String#22570, DoABC#3) // _SafeStr_6495 = "_-531" (String#26512, DoABC#3) // _SafeStr_6496 = "_-2ne" (String#12841, DoABC#3) // _SafeStr_6497 = "_-5hz" (String#26958, DoABC#3) // _SafeStr_6498 = "_-2Te" (String#5802, DoABC#3) // _SafeStr_6499 = "_-0HY" (String#34442, DoABC#3) // _SafeStr_6500 = "_-2HE" (String#13056, DoABC#3) // _SafeStr_6501 = "_-421" (String#3904, DoABC#3) // _SafeStr_6502 = "_-0qW" (String#13846, DoABC#3) // _SafeStr_6503 = "_-1yz" (String#30392, DoABC#3) // _SafeStr_6504 = "_-1qs" (String#7096, DoABC#3) // _SafeStr_6505 = "_-2oe" (String#2165, DoABC#3) // _SafeStr_6506 = "_-6R6" (String#16078, DoABC#3) // _SafeStr_6507 = "_-6Ku" (String#21068, DoABC#3) // _SafeStr_6508 = "_-69F" (String#15947, DoABC#3) // _SafeStr_6509 = "_-22o" (String#9900, DoABC#3) // _SafeStr_6510 = "_-ah" (String#22587, DoABC#3) // _SafeStr_6511 = "_-3NN" (String#30871, DoABC#3) //------------------------------------------------------------ //_-0bT.PetPreviewCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-29V.IWindow; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Point; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-3UH.XmlAsset; import _-0bw._SafeStr_2308; import _-5x9._SafeStr_2973; import _-4-i._SafeStr_3451; import _-3WJ._SafeStr_2399; import flash.display.BitmapData; import _-5x9._SafeStr_2213; import _-En._SafeStr_2382; import _-3Pt._SafeStr_2354; import _-5x9.PetColorResult; import _-4nT._SafeStr_2993; import _-6bU._SafeStr_2357; import _-4nT._SafeStr_3564; import _-0ch._SafeStr_2417; import _-En.Offer; import _-4-i._SafeStr_2445; public class PetPreviewCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325 { private var _SafeStr_6512:int = 15; private var _SafeStr_6513:int = 1; private var COLOR:int = 0xFFFFFF; private var _SafeStr_6514:int = 2; private var _SafeStr_6515:int = -1; private var _SafeStr_6516:IWindow; private var _SafeStr_6517:IWindow; private var _SafeStr_6518:IBitmapWrapperWindow; private var _SafeStr_6519:Point; private var _SafeStr_5590:int; protected var _SafeStr_6275:XML; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; public function PetPreviewCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ this._SafeStr_5539 = null; this._SafeStr_6166 = null; super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6516 = _SafeStr_5322.findChildByName("ctlg_product_name"); this._SafeStr_6516.caption = ""; this._SafeStr_6517 = _SafeStr_5322.findChildByName("ctlg_description"); this._SafeStr_6517.caption = ""; this._SafeStr_6518 = (_SafeStr_5322.findChildByName("ctlg_teaserimg_1") as IBitmapWrapperWindow); this._SafeStr_6519 = new Point(this._SafeStr_6518.x, this._SafeStr_6518.y); var k:XmlAsset = (page.viewer.catalog.assets.getAssetByName("gridItem") as XmlAsset); this._SafeStr_6275 = (k.content as XML); var _local_2:_SafeStr_2973 = (page.viewer.catalog as HabboCatalog).roomEngine._SafeStr_6505(this._SafeStr_6512, this._SafeStr_6514, this.COLOR, new _SafeStr_2308(90), 64, this, true, 0); if (_local_2 != null) { this._SafeStr_5599(_local_2.data, true, new Point(0, 0)); this._SafeStr_5590 = _local_2.id; }; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); return (true); } private function _SafeStr_6090(k:_SafeStr_2445):void{ var _local_2:_SafeStr_2399; var _local_4:String; var _local_5:String; var _local_6:BitmapData; var _local_8:_SafeStr_2213; var _local_9:_SafeStr_2382; var _local_10:_SafeStr_2973; var _local_11:_SafeStr_2354; var _local_12:String; var _local_13:Array; var _local_14:int; var _local_15:Array; var _local_16:Array; var _local_17:Array; var _local_18:Array; var _local_19:int; var _local_20:String; var _local_21:Array; var _local_22:int; var _local_23:PetColorResult; var _local_24:int; var _local_25:int; var _local_26:PetColorResult; var _local_27:PetColorResult; var _local_28:int; var _local_29:int; var _local_30:_SafeStr_2993; var _local_31:_SafeStr_2993; if (k == null) { return; }; _local_2 = k.offer; var _local_3:_SafeStr_2357 = page.viewer.catalog.getProductData(_local_2._SafeStr_5799); if (_local_3 != null) { _local_4 = (("${" + _local_3.name) + "}"); _local_5 = (("${" + _local_3.description) + "}"); } else { _local_4 = (("${" + _local_2._SafeStr_5799) + "}"); _local_5 = (("${" + _local_2._SafeStr_5799) + "}"); }; this._SafeStr_6516.caption = _local_4; this._SafeStr_6517.caption = _local_5; this._SafeStr_6517.y = ((this._SafeStr_6516.y + this._SafeStr_6516.height) + 5); this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(k.offer, _SafeStr_5322, this._SafeStr_6166, this._SafeStr_6518, -6, true, 6); var _local_7:Point = new Point(0, 0); _local_8 = (page.viewer.catalog as HabboCatalog).roomEngine; switch (_local_2._SafeStr_6081) { case Offer._SafeStr_6082: case Offer._SafeStr_6527: _local_9 = _local_2.product; _local_11 = _local_9._SafeStr_5768; if ((((_local_11 == null)) || ((_local_11._SafeStr_5598 == null)))) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Unsupported product: " + _local_9._SafeStr_5797)); break; }; _local_12 = _local_11._SafeStr_5598; _local_13 = _local_12.split(" "); if (_local_13.length < 1) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Invalid custom params: " + _local_9._SafeStr_5797)); break; }; _local_14 = int(_local_13[0]); _local_18 = []; switch (_local_11.category) { case _SafeStr_2417._SafeStr_6522: if (_local_13.length < 2) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Invalid custom params: " + _local_9._SafeStr_5797)); break; }; _local_20 = _local_13[1]; _local_21 = _local_8._SafeStr_6520(_local_14, _local_20); for each (_local_23 in _local_21) { if (_local_23.breed == this._SafeStr_6513) { _local_22 = int(_local_23.id); break; }; }; switch (_local_14) { case _SafeStr_3564._SafeStr_6521: _local_24 = 2; _local_25 = 3; _local_26 = _local_8._SafeStr_6509(_local_14, "hair"); _local_27 = _local_8._SafeStr_6509(_local_14, "tail"); _local_28 = ((_local_26) ? parseInt(_local_26.id) : -1); _local_29 = ((_local_27) ? parseInt(_local_27.id) : -1); _local_30 = new _SafeStr_2993(_local_24, -1, _local_28); _local_31 = new _SafeStr_2993(_local_25, -1, _local_29); _local_18 = [_local_30, _local_31]; break; }; _local_10 = _local_8._SafeStr_6505(_local_14, _local_22, this.COLOR, new _SafeStr_2308(90), 64, this, true, 0, _local_18); break; case _SafeStr_2417._SafeStr_6523: if (_local_13.length < 4) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Invalid custom params: " + _local_9._SafeStr_5797)); break; }; _local_15 = (_local_13[1] as String).split(","); _local_16 = (_local_13[2] as String).split(","); _local_17 = (_local_13[3] as String).split(","); _local_19 = 0; while (_local_19 < _local_15.length) { _local_18.push(new _SafeStr_2993(int(_local_15[_local_19]), int(_local_16[_local_19]), int(_local_17[_local_19]))); _local_19++; }; _local_10 = _local_8._SafeStr_6505(_local_14, this._SafeStr_6514, this.COLOR, new _SafeStr_2308(90), 64, this, true, 0, _local_18); break; case _SafeStr_2417._SafeStr_6524: if (_local_13.length < 3) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Invalid custom params: " + _local_9._SafeStr_5797)); break; }; _local_15 = (_local_13[1] as String).split(","); _local_17 = (_local_13[2] as String).split(","); _local_19 = 0; while (_local_19 < _local_15.length) { _local_18.push(new _SafeStr_2993(int(_local_15[_local_19]), this._SafeStr_6515, int(_local_17[_local_19]))); _local_19++; }; _local_10 = _local_8._SafeStr_6505(_local_14, this._SafeStr_6514, this.COLOR, new _SafeStr_2308(90), 64, this, true, 0, _local_18); break; case _SafeStr_2417._SafeStr_6525: if (_local_13.length < 4) { _SafeStr_4.log(("[PetPreviewCatalogWidget] Invalid custom params: " + _local_9._SafeStr_5797)); }; _local_18.push(new _SafeStr_2993(int(_local_13[1]), int(_local_13[2]), int(_local_13[3]))); _local_10 = _local_8._SafeStr_6505(_local_14, this._SafeStr_6514, this.COLOR, new _SafeStr_2308(90), 64, this, true, 0, _local_18); break; default: _SafeStr_4.log(("[PetPreviewCatalogWidget] Unsupported Product Type: " + _local_9._SafeStr_5797)); }; if (_local_10 != null) { _local_2._SafeStr_6526 = _local_10.id; _local_6 = _local_10.data; }; break; default: _SafeStr_4.log(("[PetPreviewCatalogWidget] Unknown pricing model" + _local_2._SafeStr_6081)); }; this._SafeStr_5599(_local_6, true, _local_7); _SafeStr_5322.invalidate(); } public function imageReady(k:int, _arg_2:BitmapData):void{ var _local_3:Offer; if (((((disposed) || ((page == null)))) || ((page.offers == null)))) { return; }; if (this._SafeStr_5590 == k) { this._SafeStr_5599(_arg_2, true); this._SafeStr_5590 = 0; } else { for each (_local_3 in page.offers) { if (_local_3._SafeStr_6526 == k) { this._SafeStr_5599(_arg_2, true); _local_3._SafeStr_6526 = 0; break; }; }; }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_5599(k:BitmapData, _arg_2:Boolean, _arg_3:Point=null):void{ var _local_4:Point; if (((!((this._SafeStr_6518 == null))) && (!(window.disposed)))) { if (k == null) { k = new BitmapData(1, 1); _arg_2 = true; }; if (this._SafeStr_6518.bitmap == null) { this._SafeStr_6518.bitmap = new BitmapData(this._SafeStr_6518.width, this._SafeStr_6518.height, true, 0xFFFFFF); }; this._SafeStr_6518.bitmap.fillRect(this._SafeStr_6518.bitmap.rect, 0xFFFFFF); _local_4 = new Point(((this._SafeStr_6518.width - k.width) / 2), ((this._SafeStr_6518.height - k.height) / 2)); this._SafeStr_6518.bitmap.copyPixels(k, k.rect, _local_4, null, null, true); this._SafeStr_6518.invalidate(); this._SafeStr_6518.x = this._SafeStr_6519.x; this._SafeStr_6518.y = this._SafeStr_6519.y; if (_arg_3 != null) { this._SafeStr_6518.x = (this._SafeStr_6518.x + _arg_3.x); this._SafeStr_6518.y = (this._SafeStr_6518.y + _arg_3.y); }; }; if (_arg_2) { k.dispose(); }; } } }//package _-0bT // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2357 = "_-k5" (String#2324, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2417 = "_-2Da" (String#1188, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_2993 = "_-RN" (String#2155, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3564 = "_-2tw" (String#2640, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5590 = "_-1Zr" (String#4026, DoABC#3) // _SafeStr_5598 = "_-3po" (String#5847, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5768 = "_-3Be" (String#2340, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6082 = "_-5EF" (String#8194, DoABC#3) // _SafeStr_6090 = "_-6DS" (String#6426, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6505 = "_-2oe" (String#2165, DoABC#3) // _SafeStr_6509 = "_-22o" (String#9900, DoABC#3) // _SafeStr_6512 = "_-T3" (String#34910, DoABC#3) // _SafeStr_6513 = "_-1DT" (String#33886, DoABC#3) // _SafeStr_6514 = "_-0mW" (String#19646, DoABC#3) // _SafeStr_6515 = "_-Fs" (String#34044, DoABC#3) // _SafeStr_6516 = "_-65D" (String#3502, DoABC#3) // _SafeStr_6517 = "_-kX" (String#5030, DoABC#3) // _SafeStr_6518 = "_-xg" (String#1530, DoABC#3) // _SafeStr_6519 = "_-2dC" (String#9934, DoABC#3) // _SafeStr_6520 = "_-VP" (String#16717, DoABC#3) // _SafeStr_6521 = "_-0-X" (String#8739, DoABC#3) // _SafeStr_6522 = "_-Aa" (String#11257, DoABC#3) // _SafeStr_6523 = "_-1jK" (String#10412, DoABC#3) // _SafeStr_6524 = "_-0OL" (String#10978, DoABC#3) // _SafeStr_6525 = "_-4tB" (String#8256, DoABC#3) // _SafeStr_6526 = "_-cE" (String#4016, DoABC#3) // _SafeStr_6527 = "_-1j1" (String#8390, DoABC#3) //------------------------------------------------------------ //_-0bT.PetsCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-WS.Map; import _-3WJ.HabboCatalog; import _-29V.IWindow; import _-29V.IWindowContainer; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_5168; import _-En.Offer; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_5154; import _-4-i._SafeStr_3507; import _-5Vh.WindowEvent; import _-6Sj.IDropMenuWindow; import _-4-i._SafeStr_5153; import _-64Q._SafeStr_2464; import _-4-i._SafeStr_2461; import _-Qx._SafeStr_500; import _-4-i._SafeStr_2370; import _-6K0._SafeStr_3508; import _-0bw._SafeStr_2308; import _-5x9._SafeStr_2973; import flash.display.BitmapData; import _-6Sj.IBitmapWrapperWindow; import flash.geom.Point; import flash.geom.Matrix; public class PetsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325 { private var _SafeStr_6168:Map; private var _SafeStr_6484:int = -1; private var _SafeStr_6485:int = 0; private var _SafeStr_6528:int = 0; private var _SafeStr_6486:String; private var _SafeStr_6487:Boolean = false; private var _SafeStr_6488:Array; private var _SafeStr_6529:Array; private var _SafeStr_5588:Boolean = false; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; private var _SafeStr_6489:int = -1; private var _SafeStr_6483:IWindow; public function PetsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (this._SafeStr_5588) { return; }; this._SafeStr_6487 = false; this._SafeStr_6168.dispose(); this._SafeStr_6168 = null; this._SafeStr_6488 = null; this._SafeStr_6529 = null; this._SafeStr_5539 = null; this._SafeStr_6166 = null; super.dispose(); this._SafeStr_5588 = true; } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6487 = false; var k:IWindow = window.findChildByName("ctlg_buy_button"); this._SafeStr_6483 = window.findChildByName("name_input_text"); if (this._SafeStr_6483 == null) { return (false); }; this._SafeStr_6483.caption = ""; this._SafeStr_6168 = new Map(); if (page.offers.length == 0) { return (false); }; var _local_2:_SafeStr_2399 = page.offers[0]; this._SafeStr_6484 = this._SafeStr_6490(_local_2._SafeStr_5799); if (this._SafeStr_6484 >= 8) { return (false); }; this._SafeStr_6491(_local_2._SafeStr_5799); this._SafeStr_6486 = _local_2._SafeStr_5799; this._SafeStr_6530(); this._SafeStr_6168.add(this._SafeStr_6484, _local_2); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451.COLOUR_INDEX, this._SafeStr_6386); events.addEventListener(_SafeStr_3451._SafeStr_6492, this._SafeStr_6493); events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); events.addEventListener(_SafeStr_3451.SELLABLE_PET_PALETTES, this._SafeStr_6494); return (true); } private function _SafeStr_6530():void{ this._SafeStr_6529 = []; if (this._SafeStr_6484 == 0) { this._SafeStr_6529 = [16743226, 16750435, 16764339, 0xF59500, 16498012, 16704690, 0xEDD400, 16115545, 16513201, 8694111, 11585939, 14413767, 6664599, 9553845, 12971486, 8358322, 10002885, 13292268, 10780600, 12623573, 14403561, 12418717, 14327229, 15517403, 14515069, 15764368, 16366271, 0xABABAB, 0xD4D4D4, 0xFFFFFF, 14256481, 14656129, 15848130, 14005087, 14337152, 15918540, 15118118, 15531929, 9764857, 11258085]; } else { if (this._SafeStr_6484 == 1) { this._SafeStr_6529 = [16743226, 16750435, 16764339, 0xF59500, 16498012, 16704690, 0xEDD400, 16115545, 16513201, 8694111, 11585939, 14413767, 6664599, 9553845, 12971486, 8358322, 10002885, 13292268, 10780600, 12623573, 14403561, 12418717, 14327229, 15517403, 14515069, 15764368, 16366271, 0xABABAB, 0xD4D4D4, 0xFFFFFF, 14256481, 14656129, 15848130, 14005087, 14337152, 15918540, 15118118, 15531929, 9764857, 11258085]; } else { if (this._SafeStr_6484 == 2) { this._SafeStr_6529 = [16579283, 15378351, 8830016, 15257125, 9340985, 8949607, 6198292, 8703620, 9889626, 8972045, 12161285, 13162269, 8620113, 12616503, 8628101, 0xD2FF00, 9764857]; } else { if (this._SafeStr_6484 == 3) { this._SafeStr_6529 = [0xFFFFFF, 0xEEEEEE, 0xDDDDDD]; } else { if (this._SafeStr_6484 == 4) { this._SafeStr_6529 = [0xFFFFFF, 16053490, 15464440, 16248792, 15396319, 15007487]; } else { if (this._SafeStr_6484 == 5) { this._SafeStr_6529 = [0xFFFFFF, 0xEEEEEE, 0xDDDDDD]; } else { if (this._SafeStr_6484 == 6) { this._SafeStr_6529 = [0xFFFFFF, 0xEEEEEE, 0xDDDDDD, 16767177, 16770205, 16751331]; } else { if (this._SafeStr_6484 == 7) { this._SafeStr_6529 = [0xCCCCCC, 0xAEAEAE, 16751331, 10149119, 16763290, 16743786]; }; }; }; }; }; }; }; }; } private function _SafeStr_6277(k:_SafeStr_3507=null):void{ var _local_4:int; if (this._SafeStr_5588) { return; }; events.dispatchEvent(new _SafeStr_5168(this._SafeStr_6226)); var _local_2:Offer = this._SafeStr_6168._SafeStr_5505(0); if (_local_2 != null) { events.dispatchEvent(new _SafeStr_2445(_local_2)); }; var _local_3:Array = []; for each (_local_4 in this._SafeStr_6529) { _local_3.push(_local_4); }; events.dispatchEvent(new _SafeStr_5154(_local_3, "ctlg_clr_27x22_1", "ctlg_clr_27x22_2", "ctlg_clr_27x22_3")); } private function _SafeStr_6226(k:WindowEvent):void{ if (this._SafeStr_6487) { _SafeStr_4.log("* Cannot buy a pet, pending previous name approval."); }; if (this._SafeStr_6502() == "") { return; }; this._SafeStr_6487 = true; this._SafeStr_5539._SafeStr_6503(this._SafeStr_6483.caption, 1); } public function _SafeStr_6531(k:WindowEvent, _arg_2:IWindow):void{ var _local_3:int; if (k.type == WindowEvent._SafeStr_6365) { _local_3 = IDropMenuWindow(_arg_2).selection; if ((((this._SafeStr_6488 == null)) || ((_local_3 >= this._SafeStr_6488.length)))) { return; }; this._SafeStr_6485 = _local_3; this._SafeStr_6498(); }; } private function _SafeStr_6047(k:_SafeStr_2445):void{ if (k == null) { return; }; this._SafeStr_6498(); } private function _SafeStr_6386(k:_SafeStr_5153):void{ if (k == null) { return; }; this._SafeStr_6528 = k.index; if ((((this._SafeStr_6528 < 0)) || ((this._SafeStr_6528 > this._SafeStr_6529.length)))) { this._SafeStr_6528 = 0; }; this._SafeStr_6498(); } private function _SafeStr_6493(event:_SafeStr_2461):void{ if ((((event == null)) || (!(this._SafeStr_6487)))) { return; }; this._SafeStr_6487 = false; var nameValidationInfo:String = event.nameValidationInfo; if (event.result != 0) { this._SafeStr_5539._SafeStr_6234(false); }; switch (event.result) { case 1: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("long", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 2: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("short", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 3: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("chars", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; case 4: this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", this._SafeStr_6504("bobba", nameValidationInfo), 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return; }; var extraParameter:String = this._SafeStr_6502(); if (extraParameter == "") { _SafeStr_4.log("* Not enough information to buy a pet!"); return; }; _SafeStr_4.log(("* Will buy pet as " + extraParameter)); this._SafeStr_5539._SafeStr_6243(this._SafeStr_6168._SafeStr_5505(0), page.pageId, extraParameter, 1, null, null, true, this._SafeStr_6505()); } private function _SafeStr_6504(k:String, _arg_2:String):String{ var _local_3:_SafeStr_500 = this._SafeStr_5539.localization; var _local_4:String = ("catalog.alert.petname." + k); var _local_5 = (_local_4 + ".additionalInfo"); _local_3.registerParameter(_local_5, "additional_info", _arg_2); var _local_6:String = _local_3.getLocalization(_local_4); var _local_7:String = _local_3.getLocalization(_local_5); if (((((((!((_arg_2 == null))) && ((_arg_2.length > 0)))) && (!((_local_7 == null))))) && ((_local_7.length > 0)))) { _local_6 = _local_7; }; return (_local_6); } private function _SafeStr_6494(k:_SafeStr_2370):void{ if (k._SafeStr_6179 == this._SafeStr_6486) { this._SafeStr_6488 = this._SafeStr_6506(k._SafeStr_6507); this._SafeStr_6485 = 0; this._SafeStr_6532(); }; } private function _SafeStr_6506(k:Array):Array{ var _local_3:_SafeStr_3508; if (!k) { return (null); }; var _local_2:Array = new Array(); for each (_local_3 in k) { if ((((_local_3.type == this._SafeStr_6484)) && (_local_3.sellable))) { _local_2.push(_local_3); }; }; return (_local_2); } private function _SafeStr_6532():void{ var _local_5:_SafeStr_3508; var k:_SafeStr_500 = this._SafeStr_5539.localization; var _local_2:Array = new Array(); var _local_3:int; while (_local_3 < this._SafeStr_6488.length) { _local_5 = (this._SafeStr_6488[_local_3] as _SafeStr_3508); _local_2.push(k.getLocalization(this._SafeStr_6500(this._SafeStr_6484, _local_5._SafeStr_6501), this._SafeStr_6500(this._SafeStr_6484, _local_5._SafeStr_6501))); _local_3++; }; var _local_4:IDropMenuWindow = (window.findChildByName("type_drop_menu") as IDropMenuWindow); if (_local_4 == null) { return; }; if (_local_2.length > 1) { _local_4.populate(_local_2); _local_4.selection = 0; _local_4.procedure = this._SafeStr_6531; _local_4.visible = true; } else { _local_4.visible = false; }; this._SafeStr_6498(); } private function _SafeStr_6505():BitmapData{ var k:Offer = this._SafeStr_6168._SafeStr_5505(0); if (k == null) { return (null); }; if ((((this._SafeStr_6488 == null)) || ((this._SafeStr_6485 >= this._SafeStr_6488.length)))) { return (null); }; var _local_2:uint = 0xFFFFFF; if ((((this._SafeStr_6528 >= 0)) && ((this._SafeStr_6528 < this._SafeStr_6529.length)))) { _local_2 = this._SafeStr_6529[this._SafeStr_6528]; }; var _local_3:int = this._SafeStr_6484; var _local_4:_SafeStr_3508 = (this._SafeStr_6488[this._SafeStr_6485] as _SafeStr_3508); var _local_5:int = _local_4.paletteId; var _local_6:_SafeStr_2973 = this._SafeStr_5539.roomEngine._SafeStr_6505(_local_3, _local_5, _local_2, new _SafeStr_2308(90, 0, 0), 64, this); if (_local_6 != null) { this._SafeStr_6489 = _local_6.id; return (_local_6.data); }; return (null); } private function _SafeStr_6498():void{ var k:Offer = this._SafeStr_6168._SafeStr_5505(0); if ((((k == null)) || ((this._SafeStr_6485 < 0)))) { return; }; var _local_2:BitmapData = this._SafeStr_6505(); if (_local_2 != null) { this._SafeStr_5599(_local_2, true); }; var _local_3:IWindow = window.findChildByName("ctlg_teaserimg_1"); this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(k, _SafeStr_5322, this._SafeStr_6166, _local_3, -6, false, 6); } private function _SafeStr_6502():String{ var name:String = this._SafeStr_6483.caption; if ((((name == null)) || ((name.length == 0)))) { this._SafeStr_5539.windowManager.alert("${catalog.alert.purchaseerror.title}", "${catalog.alert.petname.empty}", 0, function (k:_SafeStr_2464, _arg_2:WindowEvent):void{ k.dispose(); }); return (""); }; if ((((this._SafeStr_6488 == null)) || ((this._SafeStr_6485 >= this._SafeStr_6488.length)))) { return (""); }; if (this._SafeStr_6528 >= this._SafeStr_6529.length) { return (""); }; var color:uint = this._SafeStr_6529[this._SafeStr_6528]; var data:_SafeStr_3508 = (this._SafeStr_6488[this._SafeStr_6485] as _SafeStr_3508); var paletteId:int = data.paletteId; var p:String = ((((name + String.fromCharCode(10)) + paletteId) + String.fromCharCode(10)) + this._SafeStr_6510(color.toString(16).toUpperCase(), 6)); return (p); } private function _SafeStr_5599(k:BitmapData, _arg_2:Boolean):void{ var _local_3:IBitmapWrapperWindow; var _local_4:int; var _local_5:BitmapData; var _local_6:Point; if (!window.disposed) { if (k == null) { k = new BitmapData(1, 1); _arg_2 = true; }; _local_3 = (window.findChildByName("ctlg_teaserimg_1") as IBitmapWrapperWindow); if (_local_3 != null) { if (_local_3.bitmap == null) { _local_3.bitmap = new BitmapData(_local_3.width, _local_3.height, true, 0xFFFFFF); }; _local_3.bitmap.fillRect(_local_3.bitmap.rect, 0xFFFFFF); _local_4 = 2; _local_5 = new BitmapData((k.width * _local_4), (k.height * _local_4), true, 0xFFFFFF); _local_5.draw(k, new Matrix(_local_4, 0, 0, _local_4)); _local_6 = new Point(((_local_3.width - _local_5.width) / 2), ((_local_3.height - _local_5.height) / 2)); _local_3.bitmap.copyPixels(_local_5, _local_5.rect, _local_6, null, null, true); _local_3.invalidate(); _local_5.dispose(); }; }; if (_arg_2) { k.dispose(); }; } private function _SafeStr_6490(k:String):int{ if (k.length == 0) { return (0); }; var _local_2:int; _local_2 = (k.length - 1); while (_local_2 >= 0) { if (isNaN(parseInt(k.charAt(_local_2)))) { break; }; _local_2--; }; if (_local_2 > 0) { return (int(k.substring((_local_2 + 1)))); }; return (-1); } private function _SafeStr_6500(k:int, _arg_2:int):String{ return (((("pet.breed." + k) + ".") + _arg_2)); } private function _SafeStr_6510(k:String, _arg_2:int):String{ while (k.length < _arg_2) { k = ("0" + k); }; return (k); } private function _SafeStr_6491(k:String):void{ var _local_2:Array; if (this._SafeStr_6488 == null) { _local_2 = this._SafeStr_5539._SafeStr_6511(k); this._SafeStr_6488 = this._SafeStr_6506(_local_2); this._SafeStr_6485 = 0; if (this._SafeStr_6488 != null) { this._SafeStr_6532(); }; }; } public function imageReady(k:int, _arg_2:BitmapData):void{ if (disposed) { return; }; if (k == this._SafeStr_6489) { this._SafeStr_5599(_arg_2, true); this._SafeStr_6277(); }; } public function _SafeStr_5602(k:int):void{ } } }//package _-0bT // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2370 = "_-6gI" (String#13228, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2461 = "_-5EP" (String#9117, DoABC#3) // _SafeStr_2464 = "_-U4" (String#1291, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_3508 = "_-6aY" (String#3388, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5153 = "_-0ok" (String#8203, DoABC#3) // _SafeStr_5154 = "_-0n-" (String#7250, DoABC#3) // _SafeStr_5168 = "_-0UG" (String#8941, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6179 = "_-5B3" (String#2369, DoABC#3) // _SafeStr_6226 = "_-0gO" (String#12105, DoABC#3) // _SafeStr_6234 = "_-4J4" (String#11532, DoABC#3) // _SafeStr_6243 = "_-6ZF" (String#7922, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6365 = "_-183" (String#2263, DoABC#3) // _SafeStr_6386 = "_-23G" (String#10270, DoABC#3) // _SafeStr_6483 = "_-6OJ" (String#1028, DoABC#3) // _SafeStr_6484 = "_-2eg" (String#3444, DoABC#3) // _SafeStr_6485 = "_-0oJ" (String#4103, DoABC#3) // _SafeStr_6486 = "_-2fz" (String#14856, DoABC#3) // _SafeStr_6487 = "_-4As" (String#5898, DoABC#3) // _SafeStr_6488 = "_-2vW" (String#2912, DoABC#3) // _SafeStr_6489 = "_-1y-" (String#14379, DoABC#3) // _SafeStr_6490 = "_-0cU" (String#25107, DoABC#3) // _SafeStr_6491 = "_-1A0" (String#25559, DoABC#3) // _SafeStr_6492 = "_-14U" (String#13650, DoABC#3) // _SafeStr_6493 = "_-eS" (String#16969, DoABC#3) // _SafeStr_6494 = "_-5kU" (String#22570, DoABC#3) // _SafeStr_6498 = "_-2Te" (String#5802, DoABC#3) // _SafeStr_6500 = "_-2HE" (String#13056, DoABC#3) // _SafeStr_6501 = "_-421" (String#3904, DoABC#3) // _SafeStr_6502 = "_-0qW" (String#13846, DoABC#3) // _SafeStr_6503 = "_-1yz" (String#30392, DoABC#3) // _SafeStr_6504 = "_-1qs" (String#7096, DoABC#3) // _SafeStr_6505 = "_-2oe" (String#2165, DoABC#3) // _SafeStr_6506 = "_-6R6" (String#16078, DoABC#3) // _SafeStr_6507 = "_-6Ku" (String#21068, DoABC#3) // _SafeStr_6510 = "_-ah" (String#22587, DoABC#3) // _SafeStr_6511 = "_-3NN" (String#30871, DoABC#3) // _SafeStr_6528 = "_-41H" (String#3824, DoABC#3) // _SafeStr_6529 = "_-F2" (String#5011, DoABC#3) // _SafeStr_6530 = "_-6WG" (String#38455, DoABC#3) // _SafeStr_6531 = "_-6N1" (String#34672, DoABC#3) // _SafeStr_6532 = "_-23p" (String#28549, DoABC#3) //------------------------------------------------------------ //_-0bT.ProductViewCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-En._SafeStr_2447; import flash.display.BitmapData; import _-29V.IWindow; import _-6Sj.IBitmapWrapperWindow; import _-29V.IWindowContainer; import _-6Sj.IDisplayObjectWrapper; import flash.geom.Point; import _-6Sj.IItemGridWindow; import _-5x9._SafeStr_2367; import _-4-i._SafeStr_2445; import _-3WJ.HabboCatalog; import _-3WJ._SafeStr_2399; import _-En._SafeStr_2382; import _-En.Product; import _-px._SafeStr_2511; import _-4-i._SafeStr_3451; import _-4-i._SafeStr_5151; import _-0VD._SafeStr_2430; import flash.display.DisplayObject; import _-6Sj.ITextWindow; import _-3UH.XmlAsset; import _-3UH.BitmapDataAsset; import _-5Vh.WindowMouseEvent; import _-5Vh.WindowEvent; import _-5x9._SafeStr_2973; import _-En._SafeStr_3491; import _-40e._SafeStr_48; import _-3Pt._SafeStr_2354; import __AS3__.vec.Vector; import _-3xK._SafeStr_637; import _-1Oc._SafeStr_136; import _-1Oc._SafeStr_135; import _-1Oc._SafeStr_134; import _-4-i._SafeStr_5156; import _-En.ProductImageConfiguration; import _-En.Offer; import _-0ch._SafeStr_2417; import _-0bw._SafeStr_2308; import _-3XT._SafeStr_2485; import _-4zJ._SafeStr_111; import _-4zJ.AvatarAction; import _-4zJ._SafeStr_51; import _-37O._SafeStr_5157; import flash.geom.Matrix; import flash.display.BlendMode; import flash.net.URLRequest; import _-3UH._SafeStr_37; import _-0Ge.AssetLoaderEvent; import _-4-i._SafeStr_4806; import flash.events.Event; import __AS3__.vec.*; public class ProductViewCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325, _SafeStr_2447 { private static const _SafeStr_6533:int = 2; private static const _SafeStr_6534:int = 3; private static const _SafeStr_6535:int = 4; private var _SafeStr_6536:BitmapData; private var _SafeStr_6516:IWindow; private var _SafeStr_6517:IWindow; private var _SafeStr_6518:IBitmapWrapperWindow; private var _SafeStr_6537:IWindowContainer; private var _SafeStr_6538:IDisplayObjectWrapper; private var _SafeStr_6519:Point; private var _SafeStr_6539:IItemGridWindow; protected var _SafeStr_6275:XML; private var _SafeStr_6540:Array; private var _SafeStr_6541:_SafeStr_2367; private var _SafeStr_6542:_SafeStr_2445 = null; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; private var _SafeStr_6543:Boolean = true; private var _SafeStr_6544:Boolean = false; private var _SafeStr_6545:Boolean = true; private var _SafeStr_6151:_SafeStr_2399; private var _SafeStr_6546:Boolean; public function ProductViewCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } private static function _SafeStr_6547(k:_SafeStr_2445):Boolean{ var _local_3:int; var _local_4:_SafeStr_2382; var _local_2:Boolean; if (k.offer.productContainer.products.length == 2) { _local_3 = 0; while (_local_3 < 2) { _local_4 = k.offer.productContainer.products[_local_3]; if ((((_local_4._SafeStr_5797 == _SafeStr_2511._SafeStr_5815)) && ((_local_4._SafeStr_5766 == Product._SafeStr_6548)))) { _local_2 = true; }; _local_3++; }; }; return (_local_2); } override public function dispose():void{ if (!disposed) { events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); events.removeEventListener(_SafeStr_3451._SafeStr_6221, this._SafeStr_6549); events.removeEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6102); events.removeEventListener(_SafeStr_3451.TOTAL_PRICE_WIDGET_INITIALIZED, this._SafeStr_6550); this._SafeStr_5539 = null; this._SafeStr_6166 = null; super.dispose(); this._SafeStr_6536 = null; this._SafeStr_6537 = null; }; } override public function init():Boolean{ var _local_3:_SafeStr_2430; var _local_4:DisplayObject; if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5988); if (!_SafeStr_5960) { _SafeStr_5322.getChildAt(0).width = _SafeStr_5322.width; _SafeStr_5322.getChildAt(0).height = _SafeStr_5322.height; }; if (_SafeStr_5322.tags.indexOf("2X") > -1) { }; this._SafeStr_6545 = (_SafeStr_5322.tags.indexOf("NO_ROOM_CANVAS") == -1); this._SafeStr_6166 = null; this._SafeStr_6516 = _SafeStr_5322.findChildByName("ctlg_product_name"); this._SafeStr_6516.caption = ""; this._SafeStr_6517 = _SafeStr_5322.findChildByName("ctlg_description"); this._SafeStr_6517.caption = ""; (this._SafeStr_6516 as ITextWindow).textColor = 0; (this._SafeStr_6517 as ITextWindow).textColor = 0; this._SafeStr_6518 = (_SafeStr_5322.findChildByName("ctlg_teaserimg_1") as IBitmapWrapperWindow); this._SafeStr_6537 = (_SafeStr_5322.findChildByName("room_canvas_container") as IWindowContainer); if (this._SafeStr_6537 != null) { this._SafeStr_6537.visible = false; this._SafeStr_6538 = (this._SafeStr_6537.findChildByName("room_canvas") as IDisplayObjectWrapper); _local_3 = (page.viewer.catalog as HabboCatalog)._SafeStr_6551; if (((!((this._SafeStr_6538 == null))) && (!((_local_3 == null))))) { this._SafeStr_6537.procedure = this._SafeStr_6552; _local_3._SafeStr_6553 = false; _local_3.reset(false); _local_4 = _local_3._SafeStr_6554(this._SafeStr_6538.width, this._SafeStr_6538.height); if (_local_4 != null) { this._SafeStr_6538.setDisplayObject(_local_4); }; } else { this._SafeStr_6537 = null; this._SafeStr_6538 = null; }; }; this._SafeStr_6519 = new Point(this._SafeStr_6518.x, this._SafeStr_6518.y); this._SafeStr_6539 = (_SafeStr_5322.findChildByName("bundleGrid") as IItemGridWindow); if (this._SafeStr_6539 == null) { _SafeStr_4.log("[ProductViewCatalogWidget] Bundle Grid not initialized!"); }; var k:XmlAsset = (page.viewer.catalog.assets.getAssetByName("gridItem") as XmlAsset); this._SafeStr_6275 = (k.content as XML); var _local_2:BitmapDataAsset = (page.viewer.catalog.assets.getAssetByName("ctlg_dyndeal_background") as BitmapDataAsset); this._SafeStr_6536 = (_local_2.content as BitmapData); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); events.addEventListener(_SafeStr_3451._SafeStr_6221, this._SafeStr_6549); events.addEventListener(_SafeStr_5151._SafeStr_6038, this._SafeStr_6102); events.addEventListener(_SafeStr_3451.TOTAL_PRICE_WIDGET_INITIALIZED, this._SafeStr_6550); return (true); } private function _SafeStr_6552(k:WindowEvent, _arg_2:IWindow):void{ switch (k.type) { case WindowMouseEvent.CLICK: if (this._SafeStr_5539._SafeStr_6551 != null) { this._SafeStr_5539._SafeStr_6551._SafeStr_6555(); }; return; case WindowMouseEvent.UP: case WindowMouseEvent._SafeStr_5575: this._SafeStr_6546 = false; return; case WindowMouseEvent.DOWN: this._SafeStr_6546 = true; return; case WindowMouseEvent._SafeStr_5577: if (this._SafeStr_6546) { if (this._SafeStr_5539.isDraggable(this._SafeStr_6151)) { this._SafeStr_5539._SafeStr_6157(this, this._SafeStr_6151); }; }; this._SafeStr_6546 = false; return; }; } private function _SafeStr_6090(k:_SafeStr_2445):void{ var _local_2:String; var _local_3:_SafeStr_2399; var _local_4:BitmapData; var _local_5:Point; var _local_6:_SafeStr_2430; var _local_7:_SafeStr_2382; var _local_8:_SafeStr_2973; var _local_9:_SafeStr_3491; var _local_10:_SafeStr_48; var _local_11:_SafeStr_2354; var _local_12:Vector.; var _local_13:Array; var _local_14:String; var _local_15:String; var _local_16:String; var _local_17:String; var _local_18:String; var _local_19:String; var _local_20:String; var _local_21:_SafeStr_2354; var _local_22:String; var _local_23:_SafeStr_637; var _local_24:IWindowContainer; var _local_25:uint; var _local_26:BitmapData; var _local_27:HabboCatalog; var _local_28:_SafeStr_48; var _local_29:Point; var _local_30:int; var _local_31:Point; var _local_32:_SafeStr_136; var _local_33:_SafeStr_135; var _local_34:_SafeStr_134; if (k == null) { return; }; this._SafeStr_6542 = k; this._SafeStr_6556(); _local_3 = k.offer; this._SafeStr_6151 = _local_3; if (this._SafeStr_6539 != null) { this._SafeStr_6539.visible = false; this._SafeStr_6539.destroyGridItems(); }; this._SafeStr_6516.caption = _local_3._SafeStr_6273; this._SafeStr_6517.caption = _local_3._SafeStr_6274; this._SafeStr_6517.y = (this._SafeStr_6516.y + this._SafeStr_6516.height); if (((((this._SafeStr_5539._SafeStr_5812) && (_local_3._SafeStr_5796))) && (this._SafeStr_6544))) { this._SafeStr_6557(); this._SafeStr_6558(_local_3); this._SafeStr_6543 = false; } else { events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6029)); events.dispatchEvent(new _SafeStr_5156(_SafeStr_5156._SafeStr_6029)); this._SafeStr_6543 = true; }; if (this._SafeStr_6543) { this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(_local_3, _SafeStr_5322, this._SafeStr_6166, this._SafeStr_6518, -6, false, 6, page.acceptSeasonCurrencyAsCredits, page.acceptSeasonCurrencyAsCredits); } else { if (this._SafeStr_6166 != null) { _SafeStr_5322.removeChild(this._SafeStr_6166); this._SafeStr_6166.dispose(); this._SafeStr_6166 = null; }; }; if (((!((_local_3._SafeStr_6048 == null))) && (!((_local_3._SafeStr_6048 == ""))))) { this._SafeStr_5539.utils._SafeStr_6559(_local_3._SafeStr_6048, _SafeStr_5322, 6, 38, true, false); } else { if (_SafeStr_6547(k)) { this._SafeStr_5539.utils._SafeStr_6560("catalogue_effects_ninja", _SafeStr_5322, 6, 38, true, false); } else { this._SafeStr_5539.utils._SafeStr_6561(_SafeStr_5322); }; }; if (ProductImageConfiguration._SafeStr_5813(_local_3._SafeStr_5799)) { this._SafeStr_6562(ProductImageConfiguration._SafeStr_5814[_local_3._SafeStr_5799]); if (this._SafeStr_6537 != null) { this._SafeStr_6537.visible = false; }; } else { _local_5 = new Point(0, 0); _local_6 = this._SafeStr_5539._SafeStr_6551; switch (_local_3._SafeStr_6081) { case Offer._SafeStr_6392: _local_4 = this._SafeStr_6536.clone(); if (this._SafeStr_6539 != null) { this._SafeStr_6539.visible = true; _local_9 = (_local_3.productContainer as _SafeStr_3491); _local_9._SafeStr_6278(this._SafeStr_6539, this._SafeStr_6275); this._SafeStr_6539.scrollV = 0; }; if (this._SafeStr_6537 != null) { this._SafeStr_6537.visible = false; }; break; case Offer._SafeStr_6082: case Offer._SafeStr_6527: case Offer._SafeStr_6583: _local_7 = _local_3.product; if (((!((this._SafeStr_6537 == null))) && (this._SafeStr_6545))) { if ((((((_local_7._SafeStr_5797 == _SafeStr_2511._SafeStr_5754)) || ((_local_7._SafeStr_5797 == _SafeStr_2511._SafeStr_5755)))) || ((_local_7._SafeStr_5797 == _SafeStr_2511._SafeStr_5815)))) { this._SafeStr_6537.visible = true; } else { this._SafeStr_6537.visible = false; }; }; if (((!((_local_6 == null))) && (!((this._SafeStr_6538 == null))))) { _local_6._SafeStr_6563.y = ((_local_7.isUniqueLimitedItem) ? -15 : 0); _local_6._SafeStr_6553 = false; }; switch (_local_7._SafeStr_5797) { case _SafeStr_2511._SafeStr_5754: if (((!((_local_6 == null))) && (!((this._SafeStr_6538 == null))))) { if ((((_local_7 == null)) || ((_local_7._SafeStr_5768 == null)))) { break; }; if (_local_7._SafeStr_5768.category == _SafeStr_2417._SafeStr_5606) { _local_11 = this._SafeStr_5539.sessionDataManager._SafeStr_6564(_local_7._SafeStr_5768.id); _local_12 = new Vector.(0); _local_13 = _local_11._SafeStr_5598.split(","); for each (_local_14 in _local_13) { if ((page.viewer.catalog as HabboCatalog).avatarRenderManager.isValidFigureSetForGender(parseInt(_local_14), (page.viewer.catalog as HabboCatalog).sessionDataManager.gender)) { _local_12.push(parseInt(_local_14)); }; }; _local_2 = (page.viewer.catalog as HabboCatalog).avatarRenderManager.getFigureStringWithFigureIds((page.viewer.catalog as HabboCatalog).sessionDataManager.figure, (page.viewer.catalog as HabboCatalog).sessionDataManager.gender, _local_12); _local_6._SafeStr_6565(_local_2, _local_7._SafeStr_5766); } else { _local_6._SafeStr_6566(_local_7._SafeStr_5766, new _SafeStr_2308(90, 0, 0), this._SafeStr_6541); }; } else { _local_8 = page.viewer.roomEngine.getFurnitureImage(_local_7._SafeStr_5766, new _SafeStr_2308(90, 0, 0), 64, this, 0, _local_7._SafeStr_5769, -1, -1, this._SafeStr_6541); _local_3._SafeStr_6526 = _local_8.id; }; break; case _SafeStr_2511._SafeStr_5755: if ((((((_local_7._SafeStr_5768.category == _SafeStr_6533)) || ((_local_7._SafeStr_5768.category == _SafeStr_6534)))) || ((_local_7._SafeStr_5768.category == _SafeStr_6535)))) { _local_15 = this._SafeStr_5539.roomEngine._SafeStr_6567(this._SafeStr_5539.roomEngine.activeRoomId, _SafeStr_2485._SafeStr_6568); _local_16 = this._SafeStr_5539.roomEngine._SafeStr_6567(this._SafeStr_5539.roomEngine.activeRoomId, _SafeStr_2485._SafeStr_6569); _local_17 = this._SafeStr_5539.roomEngine._SafeStr_6567(this._SafeStr_5539.roomEngine.activeRoomId, _SafeStr_2485._SafeStr_6570); _local_15 = ((((_local_15) && ((_local_15.length > 0)))) ? _local_15 : "101"); _local_16 = ((((_local_16) && ((_local_16.length > 0)))) ? _local_16 : "101"); _local_17 = ((((_local_17) && ((_local_17.length > 0)))) ? _local_17 : "1.1"); _local_6._SafeStr_6571(true, true); _local_18 = (((_local_7._SafeStr_5768.category == _SafeStr_6534)) ? _local_7._SafeStr_5769 : _local_16); _local_19 = (((_local_7._SafeStr_5768.category == _SafeStr_6533)) ? _local_7._SafeStr_5769 : _local_15); _local_20 = (((_local_7._SafeStr_5768.category == _SafeStr_6535)) ? _local_7._SafeStr_5769 : _local_17); _local_6._SafeStr_6572(_local_18, _local_19, _local_20); if (_local_7._SafeStr_5768.category == _SafeStr_6535) { _local_21 = this._SafeStr_5539._SafeStr_6573("ads_twi_windw", _SafeStr_2511._SafeStr_5755); _local_6._SafeStr_6574(_local_21.id, new _SafeStr_2308(90, 0, 0), _local_21._SafeStr_5598); }; } else { if (((!((_local_6 == null))) && (!((this._SafeStr_6538 == null))))) { _local_6._SafeStr_6574(_local_7._SafeStr_5766, new _SafeStr_2308(90, 0, 0), _local_7._SafeStr_5769); } else { _local_8 = page.viewer.roomEngine.getWallItemImage(_local_7._SafeStr_5766, new _SafeStr_2308(90, 0, 0), 64, this, 0, _local_7._SafeStr_5769); _local_3._SafeStr_6526 = _local_8.id; }; }; break; case _SafeStr_2511._SafeStr_5821: _local_10 = this._SafeStr_5539.avatarRenderManager.createAvatarImage(_local_7._SafeStr_5769, _SafeStr_111._SafeStr_5816, null); _local_10.appendAction(AvatarAction._SafeStr_5819, AvatarAction._SafeStr_5820); _local_10.setDirection(_SafeStr_51._SafeStr_5817, 4); _local_10.setDirection(_SafeStr_51._SafeStr_5824, 3); _local_4 = _local_10._SafeStr_5823(_SafeStr_51._SafeStr_5817); break; case _SafeStr_2511._SafeStr_5815: if (((!((_local_6 == null))) && (!((this._SafeStr_6538 == null))))) { _local_22 = (page.viewer.catalog as HabboCatalog).sessionDataManager.figure; _local_6._SafeStr_6565(_local_22, _local_7._SafeStr_5766); } else { _local_23 = page.viewer.catalog.windowManager; _local_24 = (_SafeStr_5322.findChildByName("pixelsBackground") as IWindowContainer); _local_25 = 4291611852; if (_local_24 != null) { _local_24.visible = true; _local_25 = _local_24.color; }; _local_4 = new BitmapData(this._SafeStr_6518.width, this._SafeStr_6518.height, false, _local_25); _local_26 = null; _local_27 = (page.viewer.catalog as HabboCatalog); if (_local_27.avatarRenderManager != null) { _local_2 = _local_27.sessionDataManager.figure; _local_28 = _local_27.avatarRenderManager.createAvatarImage(_local_2, _SafeStr_111._SafeStr_5816); if (_local_28 != null) { _local_28.setDirection(_SafeStr_51._SafeStr_5824, 3); _local_28._SafeStr_6575(); _local_28.appendAction(AvatarAction._SafeStr_5819, AvatarAction._SafeStr_5820); _local_28.appendAction(AvatarAction._SafeStr_6576, _local_7._SafeStr_5766); _local_28._SafeStr_6577(); _local_28._SafeStr_6578(1); _local_28._SafeStr_6578(1); _local_26 = _local_28.getImage(_SafeStr_51._SafeStr_5817, true); _local_29 = new Point(0, 0); if (_local_26 != null) { _local_32 = _local_28._SafeStr_6579; if (_local_32 != null) { }; _local_29.x = ((_local_4.width - _local_26.width) / 2); _local_29.y = ((_local_4.height - _local_26.height) / 2); for each (_local_33 in _local_28._SafeStr_6580()) { if (_local_33.id == "avatar") { _local_34 = _local_28._SafeStr_6581(_local_33); _local_5.x = _local_34.dx; _local_5.y = _local_34.dy; }; }; }; _local_30 = 64; _local_31 = new Point(((_local_26.width - _local_30) / 2), (_local_26.height - (_local_30 / 4))); this._SafeStr_6582(_local_4, _local_28, _local_5, _local_29.add(_local_31), false); _local_4.copyPixels(_local_26, _local_26.rect, _local_29, null, null, true); this._SafeStr_6582(_local_4, _local_28, _local_5, _local_29.add(_local_31)); }; }; if (_local_28) { _local_28.dispose(); }; }; break; case _SafeStr_2511._SafeStr_5800: break; default: _SafeStr_4.log(("[ProductViewCatalogWidget] Unknown Product Type: " + _local_7._SafeStr_5797)); }; if (_local_8 != null) { _local_4 = _local_8.data; }; break; default: _SafeStr_4.log(("[ProductViewCatalogWidget] Unknown pricing model" + _local_3._SafeStr_6081)); }; this._SafeStr_5599(_local_4, true, _local_5); }; if (((((((((((this._SafeStr_6545) && (_local_6))) && (this._SafeStr_6538))) && (this._SafeStr_6537))) && (this._SafeStr_6538.visible))) && (this._SafeStr_6537.visible))) { (this._SafeStr_6516 as ITextWindow).textColor = 0xFFFFFFFF; (this._SafeStr_6517 as ITextWindow).textColor = 0xFFFFFFFF; } else { (this._SafeStr_6516 as ITextWindow).textColor = 0xFF000000; (this._SafeStr_6517 as ITextWindow).textColor = 0xFF000000; }; _SafeStr_5322.invalidate(); } private function _SafeStr_6558(k:_SafeStr_2399):void{ var _local_2:_SafeStr_5157 = new _SafeStr_5157(_SafeStr_5157._SafeStr_6584); _local_2.activityPointType = k.activityPointType; _local_2.priceActivityPoints = k.priceInActivityPoints; _local_2.priceCredits = k.priceInCredits; _local_2._SafeStr_6048 = k._SafeStr_6048; events.dispatchEvent(new _SafeStr_5156(_SafeStr_5156._SafeStr_6025, _local_2)); } private function _SafeStr_6557():void{ if (this._SafeStr_5539._SafeStr_5795) { events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6025, 1, this._SafeStr_5539.utils._SafeStr_6585)); } else { events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6025, 1)); }; events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6027)); if (this._SafeStr_5539._SafeStr_6121 != null) { events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6031, this._SafeStr_5539._SafeStr_6121._SafeStr_6586)); }; events.dispatchEvent(new _SafeStr_5151(_SafeStr_5151._SafeStr_6033, 1)); } private function _SafeStr_6582(k:BitmapData, _arg_2:_SafeStr_48, _arg_3:Point, _arg_4:Point, _arg_5:Boolean=true):void{ var _local_6:_SafeStr_135; var _local_7:int; var _local_8:_SafeStr_134; var _local_9:int; var _local_10:int; var _local_11:int; var _local_12:int; var _local_13:int; var _local_14:String; var _local_15:BitmapDataAsset; var _local_16:BitmapData; var _local_17:Number; var _local_18:Number; var _local_19:Number; var _local_20:Matrix; for each (_local_6 in _arg_2._SafeStr_6580()) { _local_7 = _SafeStr_5322.getChildIndex(this._SafeStr_6518); _local_8 = _arg_2._SafeStr_6581(_local_6); _local_9 = 0; _local_10 = _local_6._SafeStr_6587(_arg_2.getDirection()); _local_11 = _local_6._SafeStr_6588(_arg_2.getDirection()); _local_12 = _local_6._SafeStr_6589(_arg_2.getDirection()); _local_13 = 0; if (!_arg_5) { if (_local_12 >= 0) { continue; }; } else { if (_local_12 < 0) { continue; }; }; if (_local_6._SafeStr_6590) { _local_13 = _arg_2.getDirection(); }; if (_local_8 != null) { _local_9 = _local_8._SafeStr_6591; _local_10 = (_local_10 + _local_8.dx); _local_11 = (_local_11 + _local_8.dy); _local_13 = (_local_13 + _local_8._SafeStr_6592); }; if (_local_13 < 0) { _local_13 = (_local_13 + 8); }; if (_local_13 > 7) { _local_13 = (_local_13 - 8); }; _local_14 = ((((((_arg_2._SafeStr_6593() + "_") + _local_6.member) + "_") + _local_13) + "_") + _local_9); _local_15 = _arg_2.getAsset(_local_14); if (_local_15 == null) { } else { _local_16 = (_local_15.content as BitmapData).clone(); _local_17 = 1; _local_18 = ((_arg_4.x - (1 * _local_15.offset.x)) + _local_10); _local_19 = ((_arg_4.y - (1 * _local_15.offset.y)) + _local_11); if (_local_6.ink == 33) { _local_20 = new Matrix(1, 0, 0, 1, (_local_18 - _arg_3.x), (_local_19 - _arg_3.y)); k.draw(_local_16, _local_20, null, BlendMode.ADD, null, false); } else { k.copyPixels(_local_16, _local_16.rect, new Point((_local_18 - _arg_3.x), (_local_19 - _arg_3.y))); }; }; }; } private function _SafeStr_6556():void{ var k:IBitmapWrapperWindow; for each (k in this._SafeStr_6540) { _SafeStr_5322.removeChild(k); k.dispose(); k = null; }; this._SafeStr_6540 = new Array(); } public function imageReady(k:int, _arg_2:BitmapData):void{ var _local_3:_SafeStr_2399; if (((((disposed) || ((page == null)))) || ((page.offers == null)))) { return; }; for each (_local_3 in page.offers) { if (_local_3._SafeStr_6526 == k) { this._SafeStr_5599(_arg_2, true); _local_3._SafeStr_6526 = 0; break; }; }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_5599(k:BitmapData, _arg_2:Boolean, _arg_3:Point=null):void{ var _local_4:Point; if (((!((this._SafeStr_6518 == null))) && (!(window.disposed)))) { if (k == null) { k = new BitmapData(1, 1); _arg_2 = true; }; if (this._SafeStr_6518.bitmap == null) { this._SafeStr_6518.bitmap = new BitmapData(this._SafeStr_6518.width, this._SafeStr_6518.height, true, 0xFFFFFF); }; this._SafeStr_6518.bitmap.fillRect(this._SafeStr_6518.bitmap.rect, 0xFFFFFF); _local_4 = new Point(((this._SafeStr_6518.width - k.width) / 2), ((this._SafeStr_6518.height - k.height) / 2)); this._SafeStr_6518.bitmap.copyPixels(k, k.rect, _local_4, null, null, true); this._SafeStr_6518.invalidate(); this._SafeStr_6518.x = this._SafeStr_6519.x; this._SafeStr_6518.y = this._SafeStr_6519.y; if (_arg_3 != null) { this._SafeStr_6518.x = (this._SafeStr_6518.x + _arg_3.x); this._SafeStr_6518.y = (this._SafeStr_6518.y + _arg_3.y); }; }; if (_arg_2) { k.dispose(); }; } private function _SafeStr_6562(k:String):void{ if (((((((((!(k)) || (!(page)))) || (!(page.viewer)))) || (!(page.viewer.catalog)))) || (!(page.viewer.catalog.assets)))) { return; }; var _local_2:BitmapDataAsset = (page.viewer.catalog.assets.getAssetByName(k) as BitmapDataAsset); if (_local_2 == null) { this._SafeStr_6594(k); return; }; this._SafeStr_5599((_local_2.content as BitmapData), false); } private function _SafeStr_6594(k:String):void{ if (((((((!(k)) || (!(page)))) || (!(page.viewer)))) || (!(page.viewer.catalog)))) { return; }; var _local_2 = ((page.viewer.catalog.imageGalleryHost + k) + ".gif"); _SafeStr_4.log(("[ProductViewCatalogWidget] Retrieve Product Preview Asset: " + _local_2)); var _local_3:URLRequest = new URLRequest(_local_2); if (!page.viewer.catalog.assets) { return; }; var _local_4:_SafeStr_37 = page.viewer.catalog.assets.loadAssetFromFile(k, _local_3, "image/gif"); if (!_local_4) { return; }; _local_4.addEventListener(AssetLoaderEvent._SafeStr_6418, this._SafeStr_6595); } private function _SafeStr_6595(k:AssetLoaderEvent):void{ var _local_2:_SafeStr_37 = (k.target as _SafeStr_37); if (_local_2 != null) { this._SafeStr_6562(_local_2.assetName); _local_2.removeEventListener(AssetLoaderEvent._SafeStr_6418, this._SafeStr_6595); }; } private function _SafeStr_6549(k:_SafeStr_4806):void{ var _local_2:_SafeStr_2430; this._SafeStr_6541 = k.stuffData; if (this._SafeStr_6542 != null) { _local_2 = (page.viewer.catalog as HabboCatalog)._SafeStr_6551; if (_local_2 != null) { _local_2.reset(false); }; this._SafeStr_6090(this._SafeStr_6542); }; } private function _SafeStr_6102(k:_SafeStr_5151):void{ var _local_2:IWindowContainer; if (k.type == _SafeStr_5151._SafeStr_6038) { _local_2 = (window.findChildByName("price_box_new") as IWindowContainer); if (((!((_local_2 == null))) && (!((this._SafeStr_6542 == null))))) { this._SafeStr_5539.utils._SafeStr_5807(_local_2, this._SafeStr_6542.offer); }; }; } private function _SafeStr_6550(k:Event):void{ this._SafeStr_6544 = true; } override public function closed():void{ var k:_SafeStr_2430 = (page.viewer.catalog as HabboCatalog)._SafeStr_6551; if (k) { k._SafeStr_6553 = true; }; } public function _SafeStr_6264(k:Boolean, _arg_2:String):void{ } } }//package _-0bT // _SafeStr_111 = "_-4QR" (String#2358, DoABC#3) // _SafeStr_134 = "_-3Ap" (String#7916, DoABC#3) // _SafeStr_135 = "_-0Df" (String#8559, DoABC#3) // _SafeStr_136 = "_-0kI" (String#21807, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2354 = "_-50Q" (String#686, DoABC#3) // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2417 = "_-2Da" (String#1188, DoABC#3) // _SafeStr_2430 = "_-49z" (String#3485, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2447 = "_-6if" (String#5825, DoABC#3) // _SafeStr_2485 = "_-w" (String#217, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3491 = "_-52s" (String#7561, DoABC#3) // _SafeStr_37 = "_-4eo" (String#1156, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_48 = "_-5ao" (String#1431, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4806 = "_-3xb" (String#8459, DoABC#3) // _SafeStr_51 = "_-Jc" (String#1722, DoABC#3) // _SafeStr_5151 = "_-56U" (String#2030, DoABC#3) // _SafeStr_5156 = "_-09s" (String#3807, DoABC#3) // _SafeStr_5157 = "_-2w1" (String#2222, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5575 = "_-2-Q" (String#586, DoABC#3) // _SafeStr_5577 = "_-4xe" (String#624, DoABC#3) // _SafeStr_5598 = "_-3po" (String#5847, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5606 = "_-1Kq" (String#19902, DoABC#3) // _SafeStr_5754 = "_-4oV" (String#2852, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5768 = "_-3Be" (String#2340, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5795 = "_-6fU" (String#11006, DoABC#3) // _SafeStr_5796 = "_-1ly" (String#4673, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_5800 = "_-2OU" (String#6291, DoABC#3) // _SafeStr_5807 = "_-0fY" (String#9176, DoABC#3) // _SafeStr_5812 = "_-3TO" (String#11416, DoABC#3) // _SafeStr_5813 = "_-3zr" (String#24036, DoABC#3) // _SafeStr_5814 = "_-ku" (String#2179, DoABC#3) // _SafeStr_5815 = "_-2Jo" (String#4783, DoABC#3) // _SafeStr_5816 = "_-6bB" (String#2783, DoABC#3) // _SafeStr_5817 = "_-4Ef" (String#2333, DoABC#3) // _SafeStr_5819 = "_-0b8" (String#19773, DoABC#3) // _SafeStr_5820 = "_-2zc" (String#17890, DoABC#3) // _SafeStr_5821 = "_-YW" (String#13504, DoABC#3) // _SafeStr_5823 = "_-5Kz" (String#3211, DoABC#3) // _SafeStr_5824 = "_-373" (String#3552, DoABC#3) // _SafeStr_5960 = "_-Hf" (String#25331, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5988 = "_-0Cl" (String#19450, DoABC#3) // _SafeStr_6025 = "_-2hR" (String#4935, DoABC#3) // _SafeStr_6027 = "_-5Pp" (String#4787, DoABC#3) // _SafeStr_6029 = "_-5p0" (String#2386, DoABC#3) // _SafeStr_6031 = "_-50A" (String#14824, DoABC#3) // _SafeStr_6033 = "_-3xB" (String#14782, DoABC#3) // _SafeStr_6038 = "_-1Pq" (String#6238, DoABC#3) // _SafeStr_6048 = "_-6OH" (String#1626, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6082 = "_-5EF" (String#8194, DoABC#3) // _SafeStr_6090 = "_-6DS" (String#6426, DoABC#3) // _SafeStr_6102 = "_-5Bk" (String#15724, DoABC#3) // _SafeStr_6121 = "_-6gh" (String#7076, DoABC#3) // _SafeStr_6151 = "_-0dj" (String#644, DoABC#3) // _SafeStr_6157 = "_-4Sn" (String#12135, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) // _SafeStr_6221 = "_-1vO" (String#11389, DoABC#3) // _SafeStr_6264 = "_-6Be" (String#11716, DoABC#3) // _SafeStr_6273 = "_-3l8" (String#11312, DoABC#3) // _SafeStr_6274 = "_-2yn" (String#11272, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6278 = "_-2p2" (String#8163, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) // _SafeStr_6392 = "_-lU" (String#8970, DoABC#3) // _SafeStr_6418 = "_-63Y" (String#2878, DoABC#3) // _SafeStr_6516 = "_-65D" (String#3502, DoABC#3) // _SafeStr_6517 = "_-kX" (String#5030, DoABC#3) // _SafeStr_6518 = "_-xg" (String#1530, DoABC#3) // _SafeStr_6519 = "_-2dC" (String#9934, DoABC#3) // _SafeStr_6526 = "_-cE" (String#4016, DoABC#3) // _SafeStr_6527 = "_-1j1" (String#8390, DoABC#3) // _SafeStr_6533 = "_-65H" (String#4469, DoABC#3) // _SafeStr_6534 = "_-1R4" (String#4501, DoABC#3) // _SafeStr_6535 = "_-4Mg" (String#4235, DoABC#3) // _SafeStr_6536 = "_-nT" (String#26056, DoABC#3) // _SafeStr_6537 = "_-21X" (String#4893, DoABC#3) // _SafeStr_6538 = "_-AO" (String#4363, DoABC#3) // _SafeStr_6539 = "_-05i" (String#5036, DoABC#3) // _SafeStr_6540 = "_-6k7" (String#28819, DoABC#3) // _SafeStr_6541 = "_-2yD" (String#23319, DoABC#3) // _SafeStr_6542 = "_-4aI" (String#15547, DoABC#3) // _SafeStr_6543 = "_-5PU" (String#22881, DoABC#3) // _SafeStr_6544 = "_-VD" (String#27072, DoABC#3) // _SafeStr_6545 = "_-2kD" (String#24017, DoABC#3) // _SafeStr_6546 = "_-Ij" (String#19916, DoABC#3) // _SafeStr_6547 = "_-2Os" (String#29951, DoABC#3) // _SafeStr_6548 = "_-Ex" (String#16678, DoABC#3) // _SafeStr_6549 = "_-L4" (String#26748, DoABC#3) // _SafeStr_6550 = "_-5mm" (String#30996, DoABC#3) // _SafeStr_6551 = "_-393" (String#6873, DoABC#3) // _SafeStr_6552 = "_-0rD" (String#38350, DoABC#3) // _SafeStr_6553 = "_-205" (String#13170, DoABC#3) // _SafeStr_6554 = "_-6CI" (String#4258, DoABC#3) // _SafeStr_6555 = "_-0BZ" (String#19314, DoABC#3) // _SafeStr_6556 = "_-4r0" (String#37822, DoABC#3) // _SafeStr_6557 = "_-23C" (String#37707, DoABC#3) // _SafeStr_6558 = "_-6PY" (String#38563, DoABC#3) // _SafeStr_6559 = "_-0Iz" (String#35060, DoABC#3) // _SafeStr_6560 = "_-3zs" (String#36122, DoABC#3) // _SafeStr_6561 = "_-0Qy" (String#33975, DoABC#3) // _SafeStr_6562 = "_-5G7" (String#9049, DoABC#3) // _SafeStr_6563 = "_-1KY" (String#25376, DoABC#3) // _SafeStr_6564 = "_-0qA" (String#4064, DoABC#3) // _SafeStr_6565 = "_-l1" (String#25970, DoABC#3) // _SafeStr_6566 = "_-07T" (String#25871, DoABC#3) // _SafeStr_6567 = "_-6Wg" (String#5666, DoABC#3) // _SafeStr_6568 = "_-5a2" (String#6663, DoABC#3) // _SafeStr_6569 = "_-6Ou" (String#6926, DoABC#3) // _SafeStr_6570 = "_-00G" (String#6682, DoABC#3) // _SafeStr_6571 = "_-51H" (String#14814, DoABC#3) // _SafeStr_6572 = "_-3Aw" (String#6028, DoABC#3) // _SafeStr_6573 = "_-4Po" (String#24214, DoABC#3) // _SafeStr_6574 = "_-0AD" (String#13905, DoABC#3) // _SafeStr_6575 = "_-366" (String#35139, DoABC#3) // _SafeStr_6576 = "_-C1" (String#19844, DoABC#3) // _SafeStr_6577 = "_-21j" (String#35538, DoABC#3) // _SafeStr_6578 = "_-bA" (String#27609, DoABC#3) // _SafeStr_6579 = "_-6iN" (String#35765, DoABC#3) // _SafeStr_6580 = "_-1n6" (String#18418, DoABC#3) // _SafeStr_6581 = "_-EP" (String#19803, DoABC#3) // _SafeStr_6582 = "_-3zp" (String#28633, DoABC#3) // _SafeStr_6583 = "_-5PJ" (String#20526, DoABC#3) // _SafeStr_6584 = "_-6RQ" (String#23172, DoABC#3) // _SafeStr_6585 = "_-1oE" (String#31842, DoABC#3) // _SafeStr_6586 = "_-3yI" (String#36469, DoABC#3) // _SafeStr_6587 = "_-2LY" (String#24691, DoABC#3) // _SafeStr_6588 = "_-27B" (String#24910, DoABC#3) // _SafeStr_6589 = "_-1Pz" (String#26518, DoABC#3) // _SafeStr_6590 = "_-Qr" (String#28611, DoABC#3) // _SafeStr_6591 = "_-1PG" (String#28183, DoABC#3) // _SafeStr_6592 = "_-3vV" (String#27122, DoABC#3) // _SafeStr_6593 = "_-4dA" (String#20280, DoABC#3) // _SafeStr_6594 = "_-57d" (String#11078, DoABC#3) // _SafeStr_6595 = "_-49" (String#8906, DoABC#3) //------------------------------------------------------------ //_-0bT.RecyclerPrizesCatalogWidget package _-0bT{ import _-En._SafeStr_3456; import _-1oV.PrizeViewer; import _-6Sj.IItemListWindow; import _-En._SafeStr_2383; import _-29V.IWindowContainer; import _-3UH.XmlAsset; import flash.events.TimerEvent; import _-1oV._SafeStr_4813; import _-29V.IWindow; import _-6Sj.IItemGridWindow; import _-1oV.PrizeLevelContainer; import _-1oV.DealPrizeContainer; import _-1oV._SafeStr_2359; public class RecyclerPrizesCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3456 { private var _SafeStr_6596:Array; private var _SafeStr_6597:PrizeViewer; private var _SafeStr_6426:IItemListWindow; private var _SafeStr_6275:XML; private var _SafeStr_6598:XML; private var _SafeStr_6322:_SafeStr_2383; public function RecyclerPrizesCatalogWidget(k:IWindowContainer){ super(k); } override public function dispose():void{ super.dispose(); if (this._SafeStr_6597 != null) { this._SafeStr_6597.dispose(); this._SafeStr_6597 = null; }; this._SafeStr_6596 = null; this._SafeStr_6426 = null; this._SafeStr_6275 = null; this._SafeStr_6598 = null; this._SafeStr_6322 = null; } override public function init():Boolean{ var k:XmlAsset; if (!super.init()) { return (false); }; this._SafeStr_6597 = new PrizeViewer(); this._SafeStr_6596 = this.recycler._SafeStr_6599(); if (this._SafeStr_6596 == null) { return (false); }; this._SafeStr_6426 = (_SafeStr_5322.findChildByName("itemList") as IItemListWindow); k = (page.viewer.catalog.assets.getAssetByName("gridItem") as XmlAsset); this._SafeStr_6275 = (k.content as XML); k = (page.viewer.catalog.assets.getAssetByName("recyclerPrizesWidgetLevelItem") as XmlAsset); this._SafeStr_6598 = (k.content as XML); this._SafeStr_6278(); if ((((this._SafeStr_6596.length > 0)) && ((this._SafeStr_6596[0].prizes.length > 0)))) { this.select((this._SafeStr_6596[0].prizes[0] as _SafeStr_2383), false); }; return (true); } private function _SafeStr_6278(k:TimerEvent=null):void{ var _local_2:int; while (_local_2 < this._SafeStr_6596.length) { this._SafeStr_6600(this._SafeStr_6596[_local_2]); _local_2++; }; } private function _SafeStr_6600(k:PrizeLevelContainer):void{ var _local_6:_SafeStr_4813; var _local_2:IWindowContainer = (page.viewer.catalog.windowManager.buildFromXML(this._SafeStr_6598) as IWindowContainer); this._SafeStr_6426.addListItem(_local_2); var _local_3:IWindow = _local_2.findChildByName("headerText"); if (_local_3 != null) { _local_3.caption = page.viewer.catalog.localization.getLocalization(("recycler.prizes.category." + k._SafeStr_6601)); }; var _local_4:IItemGridWindow = (_local_2.findChildByName("itemGrid") as IItemGridWindow); var _local_5:int; while (_local_5 < k.prizes.length) { _local_6 = k.prizes[_local_5]; this._SafeStr_6602(_local_6, _local_4); _local_5++; }; } private function _SafeStr_6602(k:_SafeStr_4813, _arg_2:IItemGridWindow):void{ if ((((((k == null)) || ((_arg_2 == null)))) || (_arg_2.disposed))) { return; }; var _local_3:IWindowContainer = (page.viewer.catalog.windowManager.buildFromXML(this._SafeStr_6275) as IWindowContainer); _local_3.findChildByName("clubLevelIcon").visible = false; k.view = _local_3; k.grid = this; k.setIcon(page.viewer.roomEngine); _arg_2._SafeStr_5382(_local_3); _arg_2.height = _arg_2._SafeStr_6603.height; if ((k is DealPrizeContainer)) { _arg_2.width = _arg_2._SafeStr_6603.width; }; } public function select(k:_SafeStr_2383, _arg_2:Boolean):void{ if (k == null) { return; }; if (this._SafeStr_6322 != null) { this._SafeStr_6322.deactivate(); }; this._SafeStr_6322 = k; k.activate(); var _local_3:IWindowContainer = (window.findChildByName("productView") as IWindowContainer); var _local_4:_SafeStr_4813 = (k as _SafeStr_4813); var _local_5:DealPrizeContainer = (k as DealPrizeContainer); var _local_6:String = ""; if (_local_5 != null) { _local_6 = page.viewer.catalog.localization.getLocalization(("recycler.prizes.odds." + _local_4._SafeStr_6604)); this._SafeStr_6597._SafeStr_6605(page.viewer.roomEngine, page, this._SafeStr_6275, _local_3, _local_5, _local_4.title, _local_6); } else { if (_local_4 != null) { _local_6 = page.viewer.catalog.localization.getLocalization(("recycler.prizes.odds." + _local_4._SafeStr_6604)); this._SafeStr_6597._SafeStr_6606(page.viewer.roomEngine, _local_3, _local_4._SafeStr_6607, _local_4._SafeStr_6608, _local_4.title, _local_6); }; }; } public function _SafeStr_6281(k:_SafeStr_2383):Boolean{ return (false); } private function get recycler():_SafeStr_2359{ return (page.viewer.catalog.getRecycler()); } } }//package _-0bT // _SafeStr_2359 = "_-2Zf" (String#8016, DoABC#3) // _SafeStr_2383 = "_-08I" (String#3016, DoABC#3) // _SafeStr_3456 = "_-1Re" (String#5499, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4813 = "_-0eK" (String#4979, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6278 = "_-2p2" (String#8163, DoABC#3) // _SafeStr_6281 = "_-4tE" (String#15786, DoABC#3) // _SafeStr_6322 = "_-6lT" (String#1841, DoABC#3) // _SafeStr_6426 = "_-0Xo" (String#747, DoABC#3) // _SafeStr_6596 = "_-rb" (String#3540, DoABC#3) // _SafeStr_6597 = "_-4UR" (String#6856, DoABC#3) // _SafeStr_6598 = "_-38C" (String#22280, DoABC#3) // _SafeStr_6599 = "_-0iL" (String#27081, DoABC#3) // _SafeStr_6600 = "_-0bo" (String#33759, DoABC#3) // _SafeStr_6601 = "_-1kj" (String#24463, DoABC#3) // _SafeStr_6602 = "_-6Am" (String#37236, DoABC#3) // _SafeStr_6603 = "_-B5" (String#2119, DoABC#3) // _SafeStr_6604 = "_-2FF" (String#29400, DoABC#3) // _SafeStr_6605 = "_-qD" (String#34854, DoABC#3) // _SafeStr_6606 = "_-TW" (String#34983, DoABC#3) // _SafeStr_6607 = "_-1g2" (String#10498, DoABC#3) // _SafeStr_6608 = "_-Pr" (String#8804, DoABC#3) //------------------------------------------------------------ //_-0bT.RoomAdsCatalogWidget package _-0bT{ import _-3WJ.HabboCatalog; import _-2jU._SafeStr_2275; import _-6Sj.IDropMenuWindow; import _-29V.IWindowContainer; import _-2rM._SafeStr_2309; import _-53T._SafeStr_4307; import _-5Vh.WindowEvent; import _-4-i._SafeStr_3451; import _-07G._SafeStr_2416; import _-UK._SafeStr_194; import _-56A._SafeStr_3329; import _-yK._SafeStr_4651; import _-6K0._SafeStr_5013; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_3507; import _-6Sj.ITextFieldWindow; import _-29V.IWindow; import _-En.Offer; import __AS3__.vec.Vector; import _-5A9._SafeStr_2356; public class RoomAdsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6609:_SafeStr_2275 = null; private var _name:String; private var _SafeStr_5711:String; private var _SafeStr_6610:Array; private var _SafeStr_6611:Boolean; private var _SafeStr_6612:IDropMenuWindow; public function RoomAdsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function init():Boolean{ if (!super.init()) { return (false); }; if (this._SafeStr_5539 == null) { return (false); }; var k:_SafeStr_2309 = this._SafeStr_5539.connection; if (this._SafeStr_6609 == null) { this._SafeStr_6609 = new _SafeStr_4307(this._SafeStr_6613); k.addMessageEvent(this._SafeStr_6609); }; this._SafeStr_5539._SafeStr_6614(); window.findChildByName("name_input_text").addEventListener(WindowEvent._SafeStr_5844, this._SafeStr_6615); window.findChildByName("desc_input_text").addEventListener(WindowEvent._SafeStr_5844, this._SafeStr_6616); events.addEventListener(_SafeStr_3451.PURCHASE, this._SafeStr_6617); var _local_2:_SafeStr_2416 = this._SafeStr_5539._SafeStr_6242; var _local_3:int = this._SafeStr_5539.getInteger("room_ad.duration.minutes", 120); var _local_4:int = this._SafeStr_6618(_local_2, _local_3); this._SafeStr_5539.localization.registerParameter("roomad.catalog_text", "duration", String(_local_4)); this._SafeStr_5539.roomEngine.events.addEventListener(_SafeStr_194._SafeStr_6619, this._SafeStr_6620); this._SafeStr_6621(); return (true); } private function _SafeStr_6618(k:_SafeStr_2416, _arg_2:int):int{ var _local_3:Boolean = this._SafeStr_5539.getBoolean("roomad.limited_extension"); if (((((!(_local_3)) || ((k == null)))) || ((k.expirationTime == null)))) { return (_arg_2); }; var _local_4:Date = new Date(); var _local_5:Number = _local_4.getTime(); var _local_6:Number = k.expirationTime.getTime(); var _local_7:Number = (_local_5 - _local_6); var _local_8:Number = (_local_7 / (1000 * 60)); _local_8 = (_local_8 + _arg_2); return (_local_8); } private function _SafeStr_6621():void{ var _local_2:_SafeStr_3329; if (window == null) { return; }; this._SafeStr_6612 = (window.findChildByName("categories_list") as IDropMenuWindow); var k:Array = []; for each (_local_2 in this._SafeStr_5539.navigator._SafeStr_6622) { k.push((("${navigator.searchcode.title.eventcategory__" + _local_2._SafeStr_5722) + "}")); }; this._SafeStr_6612.populate(k); this._SafeStr_6612.selection = 0; this._SafeStr_6612.addEventListener(WindowEvent._SafeStr_6365, this._SafeStr_6623); } private function _SafeStr_6620(k:_SafeStr_194):void{ if (k == null) { return; }; this._SafeStr_6624(k.roomId, false); } private function _SafeStr_6624(k:int, _arg_2:Boolean=false):void{ var _local_8:_SafeStr_4651; var _local_9:String; var _local_10:_SafeStr_2416; if (window == null) { return; }; var _local_3:IDropMenuWindow = (window.findChildByName("room_drop_menu") as IDropMenuWindow); if (this._SafeStr_6610 == null) { if (_local_3.numMenuItems > 0) { _local_3.selection = 0; }; return; }; var _local_4:int; var _local_5:Array = []; var _local_6:int; while (_local_6 < this._SafeStr_6610.length) { _local_8 = (this._SafeStr_6610[_local_6] as _SafeStr_4651); if (_arg_2) { if (_local_8.roomName.length > 25) { _local_9 = (_local_8.roomName.substr(0, 25) + "..."); _local_5.push(_local_9); } else { _local_5.push(_local_8.roomName); }; }; if (_local_8.roomId == k) { _local_4 = _local_6; }; _local_6++; }; if (_arg_2) { if (_local_5.length == 0) { _local_5.push(this._SafeStr_5539.localization.getLocalization("roomad.no.available.room", "roomad.no.available.room")); }; _local_3.populate(_local_5); }; var _local_7:_SafeStr_4651 = (this._SafeStr_6610[_local_4] as _SafeStr_4651); if (_local_7 != null) { _local_3.selection = _local_4; _local_10 = this._SafeStr_5539._SafeStr_6242; if (_local_10 == null) { _local_10 = new _SafeStr_2416(); this._SafeStr_5539._SafeStr_6242 = _local_10; }; _local_10.flatId = _local_7.roomId; } else { _local_3.selection = 0; }; } private function _SafeStr_6625():void{ var _local_2:_SafeStr_4651; var k:_SafeStr_2416 = this._SafeStr_5539._SafeStr_6242; if (((!((k == null))) && (k._SafeStr_5720))) { window.findChildByName("name_input_text").caption = k.name; window.findChildByName("desc_input_text").caption = k.description; _local_2 = new _SafeStr_4651(k.flatId, k.roomName, false); if (this._SafeStr_6610 != null) { this._SafeStr_6610.push(_local_2); }; if (this._SafeStr_6612 == null) { this._SafeStr_6612 = (window.findChildByName("categories_list") as IDropMenuWindow); }; this._SafeStr_6612.selection = (k._SafeStr_5722 - 1); }; } public function _SafeStr_6613(k:_SafeStr_2275):void{ var _local_7:_SafeStr_2416; var _local_8:IWindowContainer; if (((!(window)) || (window.disposed))) { return; }; var _local_2:_SafeStr_4307 = (k as _SafeStr_4307); var _local_3:_SafeStr_5013 = _local_2._SafeStr_5729(); var _local_4:IDropMenuWindow = (window.findChildByName("room_drop_menu") as IDropMenuWindow); this._SafeStr_6610 = _local_3.rooms; this._SafeStr_6611 = _local_3._SafeStr_6308; var _local_5:int = this._SafeStr_5539.roomEngine.activeRoomId; this._SafeStr_6625(); this._SafeStr_6621(); this._SafeStr_6624(_local_5, true); var _local_6:_SafeStr_2399 = this._SafeStr_6626(); if (_local_6 != null) { events.dispatchEvent(new _SafeStr_2445(_local_6)); _local_7 = this._SafeStr_5539._SafeStr_6242; if (_local_7 == null) { _local_7 = new _SafeStr_2416(); this._SafeStr_5539._SafeStr_6242 = _local_7; }; _local_7._SafeStr_5719 = _local_6._SafeStr_5719; this._SafeStr_5539._SafeStr_6242 = _local_7; _local_8 = (window.findChildByName("price_container") as IWindowContainer); this._SafeStr_5539.utils._SafeStr_5807(_local_8, _local_6); }; } private function _SafeStr_6617(k:_SafeStr_3507):void{ this._SafeStr_5539._SafeStr_6614(); window.findChildByName("name_input_text").caption = ""; window.findChildByName("desc_input_text").caption = ""; if (this._SafeStr_5539._SafeStr_6242) { this._SafeStr_5539._SafeStr_6242.clear(); }; } private function _SafeStr_6615(k:WindowEvent):void{ var _local_2:ITextFieldWindow = (k.target as ITextFieldWindow); if (_local_2 == null) { return; }; var _local_3:_SafeStr_2416 = this._SafeStr_5539._SafeStr_6242; if (_local_3 != null) { _local_3.name = _local_2.text; }; } private function _SafeStr_6616(k:WindowEvent):void{ var _local_2:ITextFieldWindow = (k.target as ITextFieldWindow); if (_local_2 == null) { return; }; var _local_3:_SafeStr_2416 = this._SafeStr_5539._SafeStr_6242; if (_local_3 != null) { _local_3.description = _local_2.text; }; } private function _SafeStr_6627(k:WindowEvent, _arg_2:IWindow):void{ var _local_3:int; var _local_4:_SafeStr_4651; var _local_5:_SafeStr_2416; var _local_6:int; var _local_7:IWindow; var _local_8:String; if ((((k.type == WindowEvent._SafeStr_6365)) && ((this._SafeStr_6610.length > 0)))) { _local_3 = IDropMenuWindow(_arg_2).selection; _local_4 = (this._SafeStr_6610[_local_3] as _SafeStr_4651); _local_5 = this._SafeStr_5539._SafeStr_6242; if (_local_5) { _local_5.flatId = _local_4.roomId; _local_6 = this._SafeStr_5539.getInteger("room_ad.duration.minutes", 120); if (_local_4.roomId == _local_5._SafeStr_5721) { _local_6 = this._SafeStr_6618(_local_5, _local_6); }; _local_7 = window.findChildByName("ctlg_text_1"); _local_7.caption = "${roomad.catalog_text}"; this._SafeStr_5539.localization.registerParameter("roomad.catalog_text", "duration", String(_local_6)); _local_8 = this._SafeStr_5539.localization.getLocalization("roomad.catalog_text"); _local_7.caption = _local_8; }; }; } private function _SafeStr_6623(k:WindowEvent):void{ var _local_5:_SafeStr_3329; var _local_6:_SafeStr_2416; var _local_2:int; var _local_3:int = -1; var _local_4:int = this._SafeStr_6612.selection; for each (_local_5 in this._SafeStr_5539.navigator._SafeStr_6622) { if (_local_5.visible) { if (_local_4 == _local_2) { _local_3 = _local_5._SafeStr_5722; break; }; _local_2++; }; }; _local_6 = this._SafeStr_5539._SafeStr_6242; if (_local_6) { _local_6._SafeStr_5722 = _local_3; }; } private function _SafeStr_6626():_SafeStr_2399{ var _local_2:int; var _local_3:Offer; var k:Vector.<_SafeStr_2399> = page.offers; if (((!((k == null))) && (k))) { if (k.length == 1) { return (k[0]); }; _local_2 = 0; while (_local_2 < k.length) { _local_3 = (k[_local_2] as Offer); if ((((((_local_3.clubLevel == _SafeStr_2356._SafeStr_6174)) && (this._SafeStr_6611))) || (((!((_local_3.clubLevel == _SafeStr_2356._SafeStr_6174))) && (!(this._SafeStr_6611)))))) { return (_local_3); }; _local_2++; }; }; return (null); } override public function dispose():void{ var k:_SafeStr_2309; super.dispose(); if (this._SafeStr_5539 != null) { k = this._SafeStr_5539.connection; if (this._SafeStr_6609 != null) { k.removeMessageEvent(this._SafeStr_6609); this._SafeStr_6609 = null; }; this._SafeStr_5539.roomEngine.events.removeEventListener(_SafeStr_194._SafeStr_6619, this._SafeStr_6620); this._SafeStr_5539 = null; }; } } }//package _-0bT // _SafeStr_194 = "_-0lc" (String#1200, DoABC#3) // _SafeStr_2275 = "_-2Kx" (String#157, DoABC#3) // _SafeStr_2309 = "_-38x" (String#1056, DoABC#3) // _SafeStr_2356 = "_-k9" (String#1139, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2416 = "_-1vX" (String#3410, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3329 = "_-4N6" (String#5698, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_4307 = "_-6dJ" (String#9291, DoABC#3) // _SafeStr_4651 = "_-0ei" (String#2801, DoABC#3) // _SafeStr_5013 = "_-3mK" (String#11217, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5711 = "_-2W5" (String#1305, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5720 = "_-5xY" (String#12392, DoABC#3) // _SafeStr_5721 = "_-0m7" (String#23211, DoABC#3) // _SafeStr_5722 = "_-1FU" (String#2393, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5807 = "_-0fY" (String#9176, DoABC#3) // _SafeStr_5844 = "_-2EM" (String#4084, DoABC#3) // _SafeStr_6174 = "_-6L0" (String#1995, DoABC#3) // _SafeStr_6242 = "_-5rz" (String#3340, DoABC#3) // _SafeStr_6308 = "_-1CA" (String#15840, DoABC#3) // _SafeStr_6365 = "_-183" (String#2263, DoABC#3) // _SafeStr_6609 = "_-6Vb" (String#12835, DoABC#3) // _SafeStr_6610 = "_-5OT" (String#1748, DoABC#3) // _SafeStr_6611 = "_-2g-" (String#8226, DoABC#3) // _SafeStr_6612 = "_-2Qf" (String#5741, DoABC#3) // _SafeStr_6613 = "_-5k9" (String#38364, DoABC#3) // _SafeStr_6614 = "_-RX" (String#23251, DoABC#3) // _SafeStr_6615 = "_-1pY" (String#34424, DoABC#3) // _SafeStr_6616 = "_-5bZ" (String#32746, DoABC#3) // _SafeStr_6617 = "_-qV" (String#34926, DoABC#3) // _SafeStr_6618 = "_-3uV" (String#27091, DoABC#3) // _SafeStr_6619 = "_-6K1" (String#6174, DoABC#3) // _SafeStr_6620 = "_-36U" (String#15812, DoABC#3) // _SafeStr_6621 = "_-4T1" (String#31765, DoABC#3) // _SafeStr_6622 = "_-5Nq" (String#10075, DoABC#3) // _SafeStr_6623 = "_-5ec" (String#36644, DoABC#3) // _SafeStr_6624 = "_-0mp" (String#27601, DoABC#3) // _SafeStr_6625 = "_-15Q" (String#34126, DoABC#3) // _SafeStr_6626 = "_-5Jq" (String#35372, DoABC#3) // _SafeStr_6627 = "_-61e" (String#45138, DoABC#3) //------------------------------------------------------------ //_-0bT.SingleViewCatalogWidget package _-0bT{ import _-29V.IWindowContainer; import _-3WJ.HabboCatalog; import _-4-i._SafeStr_3451; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_3507; public class SingleViewCatalogWidget extends ProductViewCatalogWidget implements _SafeStr_3459 { public function SingleViewCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k, _arg_2); } override public function dispose():void{ super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); return (true); } public function _SafeStr_6277(k:_SafeStr_3507):void{ if (page.offers.length == 0) { return; }; var _local_2:_SafeStr_2399 = page.offers[0]; events.dispatchEvent(new _SafeStr_2445(_local_2)); } } }//package _-0bT // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) //------------------------------------------------------------ //_-0bT.SoldLtdItemsCatalogWidget package _-0bT{ import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import __AS3__.vec.Vector; import _-0Kw._SafeStr_2366; import _-En.CatalogPage; import _-px._SafeStr_2386; import _-4-i._SafeStr_4807; import _-4-i._SafeStr_2445; import __AS3__.vec.*; public class SoldLtdItemsCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private var _SafeStr_5539:HabboCatalog; public function SoldLtdItemsCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (!disposed) { events.removeEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); super.dispose(); }; } override public function init():Boolean{ if (!super.init()) { return (false); }; _SafeStr_5962(_SafeStr_4805._SafeStr_5996); window.visible = false; events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6090); return (true); } private function _SafeStr_6090(k:_SafeStr_2445):void{ var _local_2:Vector.<_SafeStr_2366>; var _local_3:_SafeStr_2366; if ((((((k == null)) || ((k.offer == null)))) || ((k.offer.product == null)))) { return; }; if (page.mode == CatalogPage._SafeStr_6415) { _local_2 = this._SafeStr_5539._SafeStr_6412._SafeStr_6628(k.offer._SafeStr_5719); if (!_local_2) { _local_2 = new Vector.<_SafeStr_2366>(0); }; for each (_local_3 in _local_2) { if (_local_3.pageName.indexOf(_SafeStr_2386._SafeStr_6629) > -1) { window.visible = true; events.dispatchEvent(new _SafeStr_4807(_SafeStr_4805.PURCHASE, false)); return; }; }; }; if (page.layoutCode == "sold_ltd_items") { window.visible = true; events.dispatchEvent(new _SafeStr_4807(_SafeStr_4805.PURCHASE, false)); return; }; if (((k.offer.product.isUniqueLimitedItem) && ((k.offer.product.uniqueLimitedItemsLeft == 0)))) { window.visible = true; events.dispatchEvent(new _SafeStr_4807(_SafeStr_4805.PURCHASE, false)); } else { window.visible = false; events.dispatchEvent(new _SafeStr_4807(_SafeStr_4805.PURCHASE, true)); }; } } }//package _-0bT // _SafeStr_2366 = "_-62V" (String#846, DoABC#3) // _SafeStr_2386 = "_-2xZ" (String#3599, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_4805 = "_-6L1" (String#1463, DoABC#3) // _SafeStr_4807 = "_-1yo" (String#5584, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5962 = "_-3RT" (String#2695, DoABC#3) // _SafeStr_5996 = "_-0G3" (String#19475, DoABC#3) // _SafeStr_6090 = "_-6DS" (String#6426, DoABC#3) // _SafeStr_6412 = "_-46g" (String#4002, DoABC#3) // _SafeStr_6415 = "_-1FR" (String#11243, DoABC#3) // _SafeStr_6628 = "_-3tY" (String#8411, DoABC#3) // _SafeStr_6629 = "_-J4" (String#25123, DoABC#3) //------------------------------------------------------------ //_-0bT.SpacesNewCatalogWidget package _-0bT{ import _-4Y1._SafeStr_3; import _-En._SafeStr_3456; import _-6Sj.ISelectorWindow; import _-29V.IWindowContainer; import _-5A9._SafeStr_2175; import __AS3__.vec.Vector; import _-3WJ._SafeStr_2399; import _-29V.IWindow; import _-4-i._SafeStr_3451; import _-6Sj.ISelectableWindow; import _-5Vh.WindowEvent; import _-4-i._SafeStr_3507; import _-En.ProductContainer; import _-4-i._SafeStr_2396; import _-En._SafeStr_2383; import _-4-i._SafeStr_5166; import _-En._SafeStr_2382; import _-En.Offer; import _-px._SafeStr_2511; import __AS3__.vec.*; public class SpacesNewCatalogWidget extends ItemGridCatalogWidget implements _SafeStr_3, _SafeStr_3459, _SafeStr_3456 { private var _SafeStr_6630:Array; private var _SafeStr_6631:Array; private var _SafeStr_6632:int = 0; private var _SafeStr_6633:Array; private var _SafeStr_6634:ISelectorWindow; private var _SafeStr_6635:Array; public function SpacesNewCatalogWidget(k:IWindowContainer, _arg_2:_SafeStr_2175, _arg_3:String){ this._SafeStr_6630 = ["wallpaper", "floor", "landscape"]; this._SafeStr_6631 = new Array(); this._SafeStr_6633 = [0, 0, 0]; this._SafeStr_6635 = ["group.walls", "group.floors", "group.views"]; super(k, _arg_2, _arg_3); } override public function dispose():void{ var k:Vector.<_SafeStr_2399>; var _local_2:_SafeStr_2399; super.dispose(); for each (k in this._SafeStr_6631) { for each (_local_2 in k) { _local_2.dispose(); }; }; this._SafeStr_6631 = null; } override public function init():Boolean{ var k:int; var _local_2:IWindow; _SafeStr_4.log("Init Item Group Catalog Widget (Spaces New)"); this._SafeStr_6636(); if (!super.init()) { return (false); }; events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); this._SafeStr_6634 = (_SafeStr_5322.findChildByName("groups") as ISelectorWindow); if (this._SafeStr_6634) { k = 0; while (k < this._SafeStr_6634._SafeStr_6637) { _local_2 = this._SafeStr_6634._SafeStr_6465(k); if ((_local_2 is ISelectableWindow)) { _local_2.addEventListener(WindowEvent._SafeStr_6365, this._SafeStr_6638); }; k++; }; }; this.switchCategory(this._SafeStr_6635[this._SafeStr_6632]); this._SafeStr_6639(); return (true); } public function _SafeStr_6277(k:_SafeStr_3507):void{ var _local_2:int = this._SafeStr_6633[this._SafeStr_6632]; var _local_3:_SafeStr_2399 = this._SafeStr_6631[this._SafeStr_6632][_local_2]; this.select(_local_3.gridItem, false); } public function _SafeStr_6640(k:int):void{ var _local_2:_SafeStr_2399; if ((((k > -1)) && ((k < _SafeStr_6276.numGridItems)))) { _local_2 = this._SafeStr_6631[this._SafeStr_6632][k]; this.select(_local_2.gridItem, false); }; } override public function select(k:_SafeStr_2383, _arg_2:Boolean):void{ if (k == null) { return; }; super.select(k, false); var _local_3:_SafeStr_2399 = (k as ProductContainer).offer; if (_local_3 == null) { return; }; events.dispatchEvent(new _SafeStr_2396(_local_3.product._SafeStr_5769)); this._SafeStr_6633[this._SafeStr_6632] = (this._SafeStr_6631[this._SafeStr_6632] as Vector.<_SafeStr_2399>).indexOf(_local_3); this._SafeStr_6639(); } private function _SafeStr_6639():void{ var k:int = this._SafeStr_6633[0]; var _local_2:int = this._SafeStr_6633[1]; var _local_3:int = this._SafeStr_6633[2]; var _local_4:_SafeStr_2399 = (((this._SafeStr_6631[0].length > k)) ? this._SafeStr_6631[0][k] : null); var _local_5:_SafeStr_2399 = (((this._SafeStr_6631[1].length > _local_2)) ? this._SafeStr_6631[1][_local_2] : null); var _local_6:_SafeStr_2399 = (((this._SafeStr_6631[2].length > _local_3)) ? this._SafeStr_6631[2][_local_3] : null); if (((((!(_local_5)) || (!(_local_4)))) || (!(_local_6)))) { return; }; events.dispatchEvent(new _SafeStr_5166(_local_5.product._SafeStr_5769, _local_4.product._SafeStr_5769, _local_6.product._SafeStr_5769, 64)); } private function _SafeStr_6636():Boolean{ var k:_SafeStr_2399; var _local_2:_SafeStr_2382; var _local_3:int; var _local_4:String; var _local_5:int; for each (k in page.offers) { if ((((k._SafeStr_6081 == Offer._SafeStr_6082)) || ((k._SafeStr_6081 == Offer._SafeStr_6527)))) { _local_2 = k.product; if (_local_2 != null) { _local_3 = _local_2._SafeStr_5766; if ((((_local_2._SafeStr_5797 == _SafeStr_2511._SafeStr_5755)) || ((_local_2._SafeStr_5797 == _SafeStr_2511._SafeStr_5754)))) { if (_local_2._SafeStr_5768 != null) { _local_4 = _local_2._SafeStr_5768._SafeStr_5607; _local_5 = this._SafeStr_6630.indexOf(_local_4); if (this._SafeStr_6630.indexOf(_local_4) == -1) { this._SafeStr_6630.push(_local_4); }; while (this._SafeStr_6631.length < this._SafeStr_6630.length) { this._SafeStr_6631.push(new Vector.<_SafeStr_2399>(0)); }; switch (_local_4) { case "floor": (this._SafeStr_6631[_local_5] as Vector.<_SafeStr_2399>).push(k); break; case "wallpaper": (this._SafeStr_6631[_local_5] as Vector.<_SafeStr_2399>).push(k); break; case "landscape": (this._SafeStr_6631[_local_5] as Vector.<_SafeStr_2399>).push(k); break; default: _SafeStr_4.log(("[SpacesCatalogWidget] : " + _local_4)); }; }; }; }; }; }; page.replaceOffers(new Vector.<_SafeStr_2399>(0), false); return (true); } private function _SafeStr_6638(k:WindowEvent):void{ var _local_3:int; var _local_2:ISelectableWindow = (k.target as ISelectableWindow); if (_local_2) { _local_3 = this._SafeStr_6634._SafeStr_6641(_local_2); _SafeStr_4.log(("select: " + [_local_2.name, _local_3])); this.switchCategory(_local_2.name); }; } private function switchCategory(k:String):void{ var _local_3:Vector.<_SafeStr_2399>; var _local_4:int; if (disposed) { return; }; if (!this._SafeStr_6634) { return; }; this._SafeStr_6634._SafeStr_6446(this._SafeStr_6634._SafeStr_6445(k)); var _local_2:int = -1; switch (k) { case "group.walls": _local_2 = 0; break; case "group.floors": _local_2 = 1; break; case "group.views": _local_2 = 2; break; default: _local_2 = -1; }; if (_local_2 > -1) { if (_SafeStr_6322 != null) { _SafeStr_6322.deactivate(); }; _SafeStr_6322 = null; this._SafeStr_6632 = _local_2; if (_SafeStr_6276) { _SafeStr_6276.destroyGridItems(); }; _local_3 = (((this._SafeStr_6631[this._SafeStr_6632] == null)) ? new Vector.<_SafeStr_2399>(0) : this._SafeStr_6631[this._SafeStr_6632]); page.replaceOffers(_local_3, false); _SafeStr_6395(); _SafeStr_6278(); _SafeStr_6384(); if (_SafeStr_6374) { _SafeStr_6374.start(); }; _local_4 = this._SafeStr_6633[this._SafeStr_6632]; this._SafeStr_6640(_local_4); }; } } }//package _-0bT // _SafeStr_2175 = "_-4xS" (String#1073, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2383 = "_-08I" (String#3016, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2511 = "_-2Gl" (String#1128, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3456 = "_-1Re" (String#5499, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5166 = "_-4lM" (String#12474, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5607 = "_-6UJ" (String#3527, DoABC#3) // _SafeStr_5754 = "_-4oV" (String#2852, DoABC#3) // _SafeStr_5755 = "_-5hW" (String#2279, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5768 = "_-3Be" (String#2340, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5797 = "_-2eL" (String#2013, DoABC#3) // _SafeStr_6081 = "_-4qZ" (String#4643, DoABC#3) // _SafeStr_6082 = "_-5EF" (String#8194, DoABC#3) // _SafeStr_6276 = "_-32R" (String#1461, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6278 = "_-2p2" (String#8163, DoABC#3) // _SafeStr_6322 = "_-6lT" (String#1841, DoABC#3) // _SafeStr_6365 = "_-183" (String#2263, DoABC#3) // _SafeStr_6374 = "_-0c1" (String#983, DoABC#3) // _SafeStr_6384 = "_-3xn" (String#14564, DoABC#3) // _SafeStr_6395 = "_-20D" (String#23777, DoABC#3) // _SafeStr_6445 = "_-5gF" (String#7167, DoABC#3) // _SafeStr_6446 = "_-6Gs" (String#1744, DoABC#3) // _SafeStr_6465 = "_-4A" (String#6664, DoABC#3) // _SafeStr_6527 = "_-1j1" (String#8390, DoABC#3) // _SafeStr_6630 = "_-0Zg" (String#13747, DoABC#3) // _SafeStr_6631 = "_-6-p" (String#3172, DoABC#3) // _SafeStr_6632 = "_-x6" (String#2336, DoABC#3) // _SafeStr_6633 = "_-0jz" (String#11137, DoABC#3) // _SafeStr_6634 = "_-dE" (String#2010, DoABC#3) // _SafeStr_6635 = "_-1P7" (String#1104, DoABC#3) // _SafeStr_6636 = "_-515" (String#37020, DoABC#3) // _SafeStr_6637 = "_-1RD" (String#8018, DoABC#3) // _SafeStr_6638 = "_-0yS" (String#22253, DoABC#3) // _SafeStr_6639 = "_-1Vp" (String#31647, DoABC#3) // _SafeStr_6640 = "_-5rq" (String#33192, DoABC#3) // _SafeStr_6641 = "_-1OP" (String#12193, DoABC#3) //------------------------------------------------------------ //_-0bT.TrophyCatalogWidget package _-0bT{ import _-5x9._SafeStr_2325; import _-6Sj.IBitmapWrapperWindow; import _-WS.Map; import _-3WJ.HabboCatalog; import _-29V.IWindow; import _-29V.IWindowContainer; import _-4-i._SafeStr_3451; import _-6Sj.IContainerButtonWindow; import _-5Vh.WindowMouseEvent; import _-En.Offer; import _-4-i._SafeStr_2445; import _-4-i._SafeStr_5154; import _-4-i._SafeStr_3507; import flash.display.BitmapData; import _-En._SafeStr_2382; import _-5x9._SafeStr_2973; import _-3WJ._SafeStr_2399; import _-6bU._SafeStr_2357; import _-En.ProductImageConfiguration; import _-0bw._SafeStr_2308; import _-4-i._SafeStr_5153; import _-4-i._SafeStr_2396; import _-4-i._SafeStr_5158; import flash.geom.Point; import _-3UH.BitmapDataAsset; import flash.net.URLRequest; import _-3UH._SafeStr_37; import _-0Ge.AssetLoaderEvent; public class TrophyCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_2325 { private static const gold:int = 0xFFCC00; private static const silver:int = 0xCCCCCC; private static const _SafeStr_6642:int = 0xCC6600; private var _SafeStr_6518:IBitmapWrapperWindow; private var _SafeStr_6643:Map; private var _SafeStr_6644:int = 0; private var _SafeStr_6645:String = "g"; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6166:IWindow; public function TrophyCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; } override public function dispose():void{ if (this._SafeStr_6643 != null) { this._SafeStr_6643.dispose(); }; this._SafeStr_6643 = null; this._SafeStr_5539 = null; this._SafeStr_6166 = null; super.dispose(); } override public function init():Boolean{ var _local_4:String; var _local_5:String; var _local_6:Map; var _local_7:IWindowContainer; if (!super.init()) { return (false); }; this._SafeStr_6518 = (window.findChildByName("ctlg_teaserimg_1") as IBitmapWrapperWindow); events.addEventListener(_SafeStr_3451.SELECT_PRODUCT, this._SafeStr_6047); events.addEventListener(_SafeStr_3451.COLOUR_INDEX, this._SafeStr_6386); events.addEventListener(_SafeStr_3451.TEXT_INPUT, this._SafeStr_6646); var k:IContainerButtonWindow = (window.findChildByName("ctlg_nextmodel_button") as IContainerButtonWindow); var _local_2:IContainerButtonWindow = (window.findChildByName("ctlg_prevmodel_button") as IContainerButtonWindow); if (k != null) { k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6647); }; if (_local_2 != null) { _local_2.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6648); }; this._SafeStr_6643 = new Map(); var _local_3:Offer; for each (_local_3 in page.offers) { _local_4 = this._SafeStr_6649(_local_3._SafeStr_5799); _local_5 = this._SafeStr_6650(_local_3._SafeStr_5799); if (this._SafeStr_6643.getValue(_local_4) == null) { this._SafeStr_6643.add(_local_4, new Map()); }; _local_6 = (this._SafeStr_6643.getValue(_local_4) as Map); _local_6.add(_local_5, _local_3); }; if (page.offers.length == 1) { k.visible = (_local_2.visible = false); if (page.offers[0].product.isColorable == false) { if (IWindowContainer(window.parent)) { _local_7 = (IWindowContainer(window.parent).findChildByName("colourGridWidget") as IWindowContainer); if (_local_7) { _local_7.visible = false; }; }; }; }; events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); return (true); } private function _SafeStr_6277(k:_SafeStr_3507):void{ var _local_4:Offer; var _local_2:Array = new Array(); _local_2.push(gold); _local_2.push(silver); _local_2.push(_SafeStr_6642); var _local_3:Map = this._SafeStr_6643._SafeStr_5505(this._SafeStr_6644); if (_local_3 != null) { _local_4 = _local_3.getValue(this._SafeStr_6645); if (_local_4 == null) { _local_4 = _local_3._SafeStr_5505(0); }; if (_local_4 != null) { events.dispatchEvent(new _SafeStr_2445(_local_4)); }; }; events.dispatchEvent(new _SafeStr_5154(_local_2, "ctlg_clr_40x32_1", "ctlg_clr_40x32_2", "ctlg_clr_40x32_3")); } private function _SafeStr_6047(k:_SafeStr_2445):void{ var _local_4:BitmapData; var _local_5:_SafeStr_2382; var _local_6:_SafeStr_2973; if (k == null) { return; }; var _local_2:_SafeStr_2399 = k.offer; var _local_3:_SafeStr_2357 = page.viewer.catalog.getProductData(_local_2._SafeStr_5799); if (ProductImageConfiguration._SafeStr_5813(_local_2._SafeStr_5799)) { this._SafeStr_6562(ProductImageConfiguration._SafeStr_5814[_local_2._SafeStr_5799]); } else { _local_5 = _local_2.product; _local_6 = page.viewer.roomEngine.getFurnitureImage(_local_5._SafeStr_5766, new _SafeStr_2308(2, 0, 0), 64, this, 0, _local_5._SafeStr_5769); _local_2._SafeStr_6526 = _local_6.id; if (_local_6 != null) { _local_4 = _local_6.data; }; this._SafeStr_5599(_local_4, true); }; this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(_local_2, _SafeStr_5322, this._SafeStr_6166, this._SafeStr_6518, 0, false, 0); } private function _SafeStr_6386(k:_SafeStr_5153):void{ var _local_3:Offer; if (k.index == 0) { this._SafeStr_6645 = "g"; }; if (k.index == 1) { this._SafeStr_6645 = "s"; }; if (k.index == 2) { this._SafeStr_6645 = "b"; }; var _local_2:Map = this._SafeStr_6643._SafeStr_5505(this._SafeStr_6644); if (_local_2 != null) { _local_3 = _local_2.getValue(this._SafeStr_6645); if (_local_3 == null) { _local_3 = _local_2._SafeStr_5505(0); }; if (_local_3 != null) { events.dispatchEvent(new _SafeStr_2445(_local_3)); }; }; this._SafeStr_6166 = this._SafeStr_5539.utils._SafeStr_6167(_local_3, _SafeStr_5322, this._SafeStr_6166, this._SafeStr_6518, 0, false, 0); } public function _SafeStr_6646(k:_SafeStr_5158):void{ events.dispatchEvent(new _SafeStr_2396(k.text)); } public function imageReady(k:int, _arg_2:BitmapData):void{ var _local_3:Offer; if (((((disposed) || ((page == null)))) || ((page.offers == null)))) { return; }; for each (_local_3 in page.offers) { if (_local_3._SafeStr_6526 == k) { _local_3._SafeStr_6526 = 0; this._SafeStr_5599(_arg_2, true); break; }; }; } public function _SafeStr_5602(k:int):void{ } private function _SafeStr_6649(k:String):String{ var _local_2:String = this._SafeStr_6650(k); if (_local_2.length > 0) { return (k.slice(0, ((k.length - 1) - _local_2.length))); }; return (k); } private function _SafeStr_6650(k:String):String{ var _local_2:int = k.indexOf("prizetrophy_2011_"); if (_local_2 != -1) { return (""); }; var _local_3:int = (k.lastIndexOf("_") + 1); if (_local_3 <= 0) { return (""); }; var _local_4:String = k.substr(_local_3); if ((((_local_4.length > 1)) || (((((!((_local_4 == "g"))) && (!((_local_4 == "s"))))) && (!((_local_4 == "b"))))))) { return (""); }; return (_local_4); } private function _SafeStr_6647(k:WindowMouseEvent):void{ var _local_3:Offer; this._SafeStr_6644++; if (this._SafeStr_6644 >= this._SafeStr_6643.length) { this._SafeStr_6644 = 0; }; var _local_2:Map = this._SafeStr_6643._SafeStr_5505(this._SafeStr_6644); if (_local_2 != null) { _local_3 = _local_2.getValue(this._SafeStr_6645); if (_local_3 == null) { _local_3 = _local_2._SafeStr_5505(0); }; if (_local_3 != null) { events.dispatchEvent(new _SafeStr_2445(_local_3)); }; }; } private function _SafeStr_6648(k:WindowMouseEvent):void{ var _local_3:Offer; this._SafeStr_6644--; if (this._SafeStr_6644 < 0) { this._SafeStr_6644 = (this._SafeStr_6643.length - 1); }; var _local_2:Map = this._SafeStr_6643._SafeStr_5505(this._SafeStr_6644); if (_local_2 != null) { _local_3 = _local_2.getValue(this._SafeStr_6645); if (_local_3 == null) { _local_3 = _local_2._SafeStr_5505(0); }; if (_local_3 != null) { events.dispatchEvent(new _SafeStr_2445(_local_3)); }; }; } private function _SafeStr_5599(k:BitmapData, _arg_2:Boolean):void{ var _local_3:Point; if (((!(window.disposed)) && (!((this._SafeStr_6518 == null))))) { if (k == null) { k = new BitmapData(1, 1); _arg_2 = true; }; if (this._SafeStr_6518.bitmap == null) { this._SafeStr_6518.bitmap = new BitmapData(this._SafeStr_6518.width, this._SafeStr_6518.height, true, 0xFFFFFF); }; this._SafeStr_6518.bitmap.fillRect(this._SafeStr_6518.bitmap.rect, 0xFFFFFF); _local_3 = new Point(((this._SafeStr_6518.width - k.width) / 2), ((this._SafeStr_6518.height - k.height) / 2)); this._SafeStr_6518.bitmap.copyPixels(k, k.rect, _local_3, null, null, true); this._SafeStr_6518.invalidate(); }; if (((_arg_2) && (!((k == null))))) { k.dispose(); }; } private function _SafeStr_6562(k:String):void{ var _local_2:BitmapDataAsset = (page.viewer.catalog.assets.getAssetByName(k) as BitmapDataAsset); if (_local_2 == null) { this._SafeStr_6594(k); return; }; this._SafeStr_5599((_local_2.content as BitmapData), false); } private function _SafeStr_6594(k:String):void{ var _local_2 = ((page.viewer.catalog.imageGalleryHost + k) + ".gif"); _SafeStr_4.log(("[TrophyCatalogWidget] Retrieve Product Preview Asset: " + _local_2)); var _local_3:URLRequest = new URLRequest(_local_2); var _local_4:_SafeStr_37 = page.viewer.catalog.assets.loadAssetFromFile(k, _local_3, "image/gif"); _local_4.addEventListener(AssetLoaderEvent._SafeStr_6418, this._SafeStr_6595); } private function _SafeStr_6595(k:AssetLoaderEvent):void{ var _local_2:_SafeStr_37 = (k.target as _SafeStr_37); if (_local_2 != null) { this._SafeStr_6562(_local_2.assetName); }; } } }//package _-0bT // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_2325 = "_-4CB" (String#1328, DoABC#3) // _SafeStr_2357 = "_-k5" (String#2324, DoABC#3) // _SafeStr_2382 = "_-1Fg" (String#1382, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2973 = "_-1qE" (String#690, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_37 = "_-4eo" (String#1156, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_5153 = "_-0ok" (String#8203, DoABC#3) // _SafeStr_5154 = "_-0n-" (String#7250, DoABC#3) // _SafeStr_5158 = "_-4ch" (String#13029, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5505 = "_-5V3" (String#908, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5599 = "_-60j" (String#3641, DoABC#3) // _SafeStr_5602 = "_-43s" (String#2214, DoABC#3) // _SafeStr_5766 = "_-6es" (String#2982, DoABC#3) // _SafeStr_5769 = "_-5D" (String#1281, DoABC#3) // _SafeStr_5799 = "_-2bB" (String#2310, DoABC#3) // _SafeStr_5813 = "_-3zr" (String#24036, DoABC#3) // _SafeStr_5814 = "_-ku" (String#2179, DoABC#3) // _SafeStr_6047 = "_-18E" (String#3450, DoABC#3) // _SafeStr_6166 = "_-0s1" (String#3115, DoABC#3) // _SafeStr_6167 = "_-ZW" (String#10369, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6386 = "_-23G" (String#10270, DoABC#3) // _SafeStr_6418 = "_-63Y" (String#2878, DoABC#3) // _SafeStr_6518 = "_-xg" (String#1530, DoABC#3) // _SafeStr_6526 = "_-cE" (String#4016, DoABC#3) // _SafeStr_6562 = "_-5G7" (String#9049, DoABC#3) // _SafeStr_6594 = "_-57d" (String#11078, DoABC#3) // _SafeStr_6595 = "_-49" (String#8906, DoABC#3) // _SafeStr_6642 = "_-0Dj" (String#25921, DoABC#3) // _SafeStr_6643 = "_-2Kw" (String#5804, DoABC#3) // _SafeStr_6644 = "_-4KP" (String#6599, DoABC#3) // _SafeStr_6645 = "_-3AR" (String#9928, DoABC#3) // _SafeStr_6646 = "_-6Qu" (String#32041, DoABC#3) // _SafeStr_6647 = "_-1r3" (String#32201, DoABC#3) // _SafeStr_6648 = "_-6WN" (String#38984, DoABC#3) // _SafeStr_6649 = "_-MX" (String#32572, DoABC#3) // _SafeStr_6650 = "_-Op" (String#27112, DoABC#3) //------------------------------------------------------------ //_-0bT.UserBadgeSelectorCatalogWidget package _-0bT{ import _-6Sj.IItemGridWindow; import _-3WJ.HabboCatalog; import _-2jU._SafeStr_2275; import _-29V.IWindowContainer; import _-3UH.XmlAsset; import _-4-i._SafeStr_3451; import _-0fE._SafeStr_3471; import _-3WJ._SafeStr_2399; import _-4-i._SafeStr_3507; import _-4-i._SafeStr_2445; import _-6Tv._SafeStr_3453; import _-6Sj._SafeStr_2600; import _-5W._SafeStr_4670; import _-6Sj.IBorderWindow; import _-5Vh.WindowMouseEvent; import _-4-i._SafeStr_2396; import _-4-i._SafeStr_4806; import _-5Vh.WindowEvent; import _-29V.IWindow; import _-4V9.StringArrayStuffData; import _-5x9._SafeStr_2367; public class UserBadgeSelectorCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459 { private static const _SafeStr_6651:String = "badgeGridItem"; private var _SafeStr_6276:IItemGridWindow; private var _SafeStr_6275:XML; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6652:int = -1; private var _SafeStr_6653:_SafeStr_2275; private var _SafeStr_6654:Array; public function UserBadgeSelectorCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog){ super(k); this._SafeStr_5539 = _arg_2; this._SafeStr_6654 = this._SafeStr_5539.getProperty("badge.display.excluded.badgeCodes").split(","); } override public function dispose():void{ if (this._SafeStr_6653) { this._SafeStr_5539.connection.removeMessageEvent(this._SafeStr_6653); }; this._SafeStr_5539 = null; this._SafeStr_6654 = null; super.dispose(); } override public function init():Boolean{ this._SafeStr_6276 = (_SafeStr_5322.findChildByName("badgeGrid") as IItemGridWindow); var k:XmlAsset = (page.viewer.catalog.assets.getAssetByName("badgeGridItem") as XmlAsset); this._SafeStr_6275 = (k.content as XML); this._SafeStr_6655(); events.addEventListener(_SafeStr_3451.WIDGETS_INITIALIZED, this._SafeStr_6277); this._SafeStr_6653 = new _SafeStr_3471(this._SafeStr_6656); this._SafeStr_5539.connection.addMessageEvent(this._SafeStr_6653); return (true); } private function _SafeStr_6655():void{ var _local_2:String; this._SafeStr_6276.destroyGridItems(); var k:int; for each (_local_2 in this._SafeStr_5539.inventory._SafeStr_6657(this._SafeStr_6654)) { this._SafeStr_6276._SafeStr_5382(this._SafeStr_6391(_local_2, k++)); }; } private function _SafeStr_6277(k:_SafeStr_3507):void{ if (page.offers.length == 0) { return; }; var _local_2:_SafeStr_2399 = page.offers[0]; events.dispatchEvent(new _SafeStr_3507(_SafeStr_3451._SafeStr_6230)); events.dispatchEvent(new _SafeStr_2445(_local_2)); } protected function _SafeStr_6391(k:String, _arg_2:int):IWindowContainer{ var _local_3:IWindowContainer = (page.viewer.catalog.windowManager.buildFromXML(this._SafeStr_6275) as IWindowContainer); var _local_4:_SafeStr_3453 = _SafeStr_3453(_SafeStr_2600(_local_3.findChildByName("badgeWidget")).widget); _local_4.type = _SafeStr_4670.NORMAL; _local_4.badgeId = k; _local_3.id = _arg_2; _local_3.name = _SafeStr_6651; _local_3.procedure = this._SafeStr_6658; return (_local_3); } private function _SafeStr_6659(k:int, _arg_2:Boolean):void{ var _local_3:IWindowContainer = IWindowContainer(this._SafeStr_6276._SafeStr_5897(k)); if (_local_3 != null) { IBorderWindow(_local_3.findChildByName("bg")).style = ((_arg_2) ? 0 : 2); }; } private function _SafeStr_6660(k:int):String{ var _local_2:IWindowContainer = IWindowContainer(this._SafeStr_6276._SafeStr_5897(k)); var _local_3:_SafeStr_3453 = _SafeStr_3453(_SafeStr_2600(_local_2.findChildByName("badgeWidget")).widget); return (_local_3.badgeId); } private function _SafeStr_6658(k:WindowEvent, _arg_2:IWindow):void{ if (k.type != WindowMouseEvent.CLICK) { return; }; if (_arg_2.name == _SafeStr_6651) { if (this._SafeStr_6652 != -1) { this._SafeStr_6659(this._SafeStr_6652, false); }; this._SafeStr_6652 = _arg_2.id; if (this._SafeStr_6652 < this._SafeStr_5539.inventory._SafeStr_6657(this._SafeStr_6654).length) { this._SafeStr_6659(this._SafeStr_6652, true); events.dispatchEvent(new _SafeStr_2396(this._SafeStr_6660(this._SafeStr_6652))); page.dispatchWidgetEvent(new _SafeStr_4806(this._SafeStr_6368())); }; }; } private function _SafeStr_6368():_SafeStr_2367{ var k:Array = new Array(); k.push("0"); k.push(this._SafeStr_5539.inventory._SafeStr_6657(this._SafeStr_6654)[this._SafeStr_6652]); k.push(""); k.push(""); var _local_2:StringArrayStuffData = new StringArrayStuffData(); _local_2._SafeStr_6370(k); return (_local_2); } private function _SafeStr_6656(k:_SafeStr_2275):void{ this._SafeStr_6655(); } } }//package _-0bT // _SafeStr_2275 = "_-2Kx" (String#157, DoABC#3) // _SafeStr_2367 = "_-6Fl" (String#731, DoABC#3) // _SafeStr_2396 = "_-558" (String#5186, DoABC#3) // _SafeStr_2399 = "_-3Qi" (String#693, DoABC#3) // _SafeStr_2445 = "_-22D" (String#2097, DoABC#3) // _SafeStr_2600 = "_-0HZ" (String#318, DoABC#3) // _SafeStr_3451 = "_-0r" (String#1148, DoABC#3) // _SafeStr_3453 = "_-3ev" (String#1214, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3471 = "_-5Y3" (String#7215, DoABC#3) // _SafeStr_3507 = "_-5cm" (String#4033, DoABC#3) // _SafeStr_4670 = "_-09x" (String#5842, DoABC#3) // _SafeStr_4806 = "_-3xb" (String#8459, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5382 = "_-492" (String#2697, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5897 = "_-0hG" (String#2741, DoABC#3) // _SafeStr_6230 = "_-0pW" (String#13990, DoABC#3) // _SafeStr_6275 = "_-kQ" (String#4053, DoABC#3) // _SafeStr_6276 = "_-32R" (String#1461, DoABC#3) // _SafeStr_6277 = "_-1nn" (String#4030, DoABC#3) // _SafeStr_6368 = "_-6Vx" (String#23967, DoABC#3) // _SafeStr_6370 = "_-lk" (String#20627, DoABC#3) // _SafeStr_6391 = "_-Hb" (String#10937, DoABC#3) // _SafeStr_6651 = "_-5Hv" (String#20401, DoABC#3) // _SafeStr_6652 = "_-50P" (String#10824, DoABC#3) // _SafeStr_6653 = "_-30U" (String#18467, DoABC#3) // _SafeStr_6654 = "_-52B" (String#14869, DoABC#3) // _SafeStr_6655 = "_-5PL" (String#29275, DoABC#3) // _SafeStr_6656 = "_-4j5" (String#36111, DoABC#3) // _SafeStr_6657 = "_-3oY" (String#20341, DoABC#3) // _SafeStr_6658 = "_-4UQ" (String#36645, DoABC#3) // _SafeStr_6659 = "_-1Km" (String#27034, DoABC#3) // _SafeStr_6660 = "_-1uv" (String#32921, DoABC#3) //------------------------------------------------------------ //_-0bT.VipBuyCatalogWidget package _-0bT{ import _-5GB._SafeStr_2466; import _-3WJ.HabboCatalog; import _-29V.IWindowContainer; import _-px._SafeStr_2462; import _-5GB._SafeStr_5164; import _-Qx._SafeStr_500; import _-0Cn._SafeStr_2358; import _-5A9._SafeStr_2356; import _-6Sj.ITextWindow; import flash.text.TextFormat; import flash.text.TextFormatAlign; import _-29V.IWindow; import _-5Vh.WindowMouseEvent; import flash.text.StyleSheet; import _-WS.ErrorReportStorage; import _-En.CatalogPage; import _-6Sj.IItemListWindow; import _-5GB._SafeStr_2400; public class VipBuyCatalogWidget extends _SafeStr_3460 implements _SafeStr_3459, _SafeStr_3505 { private var _SafeStr_5332:_SafeStr_2466; private var _SafeStr_6168:Array; private var _SafeStr_5539:HabboCatalog; private var _SafeStr_6661:Boolean; public function VipBuyCatalogWidget(k:IWindowContainer, _arg_2:HabboCatalog, _arg_3:Boolean=false){ super(k); this._SafeStr_5539 = _arg_2; this._SafeStr_6661 = _arg_3; } public function get isGift():Boolean{ return (this._SafeStr_6661); } override public function dispose():void{ if (this._SafeStr_5332 != null) { this._SafeStr_5332._SafeStr_6169(this); this._SafeStr_5332 = null; }; this.reset(); super.dispose(); } override public function init():Boolean{ if (!super.init()) { return (false); }; this._SafeStr_6168 = []; this._SafeStr_5332 = this._SafeStr_5539._SafeStr_6170(); this._SafeStr_5332._SafeStr_6171(this); this._SafeStr_5332._SafeStr_6172(((this._SafeStr_6661) ? _SafeStr_2462._SafeStr_6662 : _SafeStr_2462._SafeStr_6663)); return (true); } public function reset():void{ var k:_SafeStr_5164; for each (k in this._SafeStr_6168) { k.dispose(); }; this._SafeStr_6168 = []; } public function _SafeStr_5964(k:int):void{ var _local_4:int; var _local_5:int; var _local_6:int; if (disposed) { return; }; var _local_2:_SafeStr_500 = this._SafeStr_5539.localization; var _local_3:_SafeStr_2358 = this._SafeStr_5539.getPurse(); if (((!((_local_3 == null))) && (!((_local_2 == null))))) { _local_4 = _local_3.clubDays; _local_5 = _local_3.clubPeriods; _local_6 = ((_local_5 * 31) + _local_4); _local_2.registerParameter("catalog.vip.extend.info", "days", String(_local_6)); }; if (((((!((_SafeStr_5322 == null))) && ((k == _SafeStr_2356._SafeStr_6174)))) && (!(this._SafeStr_6661)))) { _SafeStr_5322.findChildByName("vip_title").caption = "${catalog.vip.extend.title}"; _SafeStr_5322.findChildByName("vip_info").caption = "${catalog.vip.extend.info}"; }; if (_SafeStr_5322 != null) { this._SafeStr_6175((_SafeStr_5322.findChildByName("vip_title") as ITextWindow)); this._SafeStr_6175((_SafeStr_5322.findChildByName("vip_info") as ITextWindow), 3); }; this._SafeStr_6176(); } private function _SafeStr_6175(k:ITextWindow, _arg_2:Number=0):void{ var _local_3:TextFormat = k.getTextFormat(); _local_3.align = TextFormatAlign.CENTER; _local_3.leading = _arg_2; k.setTextFormat(_local_3); } private function _SafeStr_6176():void{ var k:IWindow; var _local_2:ITextWindow; if (_SafeStr_5322) { k = _SafeStr_5322.findChildByName("vip_link"); if (k) { k.addEventListener(WindowMouseEvent.CLICK, this._SafeStr_6177); k._SafeStr_6178 = 0; }; _local_2 = (_SafeStr_5322.findChildByName("hccenter_link") as ITextWindow); if (((_local_2) && (this._SafeStr_5332))) { _local_2.text = this._SafeStr_5332.localization.getLocalization("catalog.vip.buy.hccenter", "catalog.vip.buy.hccenter"); this._SafeStr_6410(_local_2); }; }; } private function _SafeStr_6410(k:ITextWindow):void{ if (!k) { return; }; var _local_2:StyleSheet = new StyleSheet(); var _local_3:Object = new Object(); _local_3.textDecoration = "underline"; _local_2.setStyle("a:link", _local_3); k.styleSheet = _local_2; } public function _SafeStr_6177(k:WindowMouseEvent):void{ this._SafeStr_5539.utils.showVipBenefits(); } public function _SafeStr_5794(offer:_SafeStr_2400):void{ var item:_SafeStr_5164; if (((disposed) || (!(offer.vip)))) { return; }; _SafeStr_4.log(("Offer: " + [offer._SafeStr_5719, offer._SafeStr_6179, offer.priceCredits, offer.vip, offer.months, offer._SafeStr_6180, offer.year, offer.month, offer.day, offer._SafeStr_6181])); offer.page = page; try { item = new _SafeStr_5164(offer, this._SafeStr_5539, ((this._SafeStr_6661) ? "HabboCatalogGift" : "HabboCatalogBuy")); } catch(e:Error) { ErrorReportStorage._SafeStr_6182("ClubBuyCatalogWidget", (((("showOffer - new ClubBuyItem(" + String(offer)) + ", ") + String((page as CatalogPage))) + ") crashed!")); return; }; var target:IItemListWindow = (_SafeStr_5322.findChildByName("item_list_vip") as IItemListWindow); if (target != null) { target.addListItem(item.window); }; this._SafeStr_6168.push(item); } } }//package _-0bT // _SafeStr_2356 = "_-k9" (String#1139, DoABC#3) // _SafeStr_2358 = "_-3-A" (String#3987, DoABC#3) // _SafeStr_2400 = "_-Ab" (String#2832, DoABC#3) // _SafeStr_2462 = "_-3ZI" (String#6725, DoABC#3) // _SafeStr_2466 = "_-08B" (String#6415, DoABC#3) // _SafeStr_3459 = "_-4FX" (String#1723, DoABC#3) // _SafeStr_3460 = "_-4jN" (String#858, DoABC#3) // _SafeStr_3505 = "_-40k" (String#8215, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5164 = "_-38Z" (String#4790, DoABC#3) // _SafeStr_5322 = "_-12v" (String#15, DoABC#3) // _SafeStr_5332 = "_-0CD" (String#194, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5719 = "_-5zr" (String#1484, DoABC#3) // _SafeStr_5794 = "_-1xE" (String#8405, DoABC#3) // _SafeStr_5964 = "_-41O" (String#17413, DoABC#3) // _SafeStr_6168 = "_-1eU" (String#1180, DoABC#3) // _SafeStr_6169 = "_-0ZK" (String#25479, DoABC#3) // _SafeStr_6170 = "_-gm" (String#25749, DoABC#3) // _SafeStr_6171 = "_-35t" (String#10507, DoABC#3) // _SafeStr_6172 = "_-5W0" (String#10432, DoABC#3) // _SafeStr_6174 = "_-6L0" (String#1995, DoABC#3) // _SafeStr_6175 = "_-2ni" (String#14272, DoABC#3) // _SafeStr_6176 = "_-0Pr" (String#10891, DoABC#3) // _SafeStr_6177 = "_-2WO" (String#22373, DoABC#3) // _SafeStr_6178 = "_-6Jm" (String#3497, DoABC#3) // _SafeStr_6179 = "_-5B3" (String#2369, DoABC#3) // _SafeStr_6180 = "_-2FL" (String#15887, DoABC#3) // _SafeStr_6181 = "_-2Hc" (String#15610, DoABC#3) // _SafeStr_6182 = "_-5CK" (String#1829, DoABC#3) // _SafeStr_6410 = "_-1f4" (String#15851, DoABC#3) // _SafeStr_6661 = "_-5w6" (String#16226, DoABC#3) // _SafeStr_6662 = "_-0pl" (String#20919, DoABC#3) // _SafeStr_6663 = "_-4ji" (String#20907, DoABC#3) //------------------------------------------------------------ //_-0BU._SafeStr_4162 package _-0BU{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4162 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_4162(k:int){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0BU // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4162 = "_-5sC" (String#16516, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_2305 package _-0bw{ import flash.geom.Point; public interface _SafeStr_2305 { function get scale():Number; function get _SafeStr_6665():_SafeStr_2307; function get direction():_SafeStr_2307; function _SafeStr_6666(_arg_1:_SafeStr_2307):_SafeStr_2307; function _SafeStr_6667(_arg_1:_SafeStr_2307):Point; function _SafeStr_6668(_arg_1:_SafeStr_2307):_SafeStr_2307; function _SafeStr_6669(_arg_1:Point, _arg_2:_SafeStr_2307, _arg_3:_SafeStr_2307, _arg_4:_SafeStr_2307):Point; function _SafeStr_6670(_arg_1:_SafeStr_2307, _arg_2:_SafeStr_2307):void; function _SafeStr_6671(_arg_1:_SafeStr_2307, _arg_2:Number):void; function _SafeStr_6672():void; function _SafeStr_6673():void; function _SafeStr_6674():void; function _SafeStr_6675():Boolean; function get _SafeStr_6676():int; function set _SafeStr_6677(_arg_1:Number):void; } }//package _-0bw // _SafeStr_2305 = "_-34L" (String#1071, DoABC#3) // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_6665 = "_-4Sw" (String#14590, DoABC#3) // _SafeStr_6666 = "_-4-1" (String#13257, DoABC#3) // _SafeStr_6667 = "_-2aP" (String#3204, DoABC#3) // _SafeStr_6668 = "_-616" (String#5547, DoABC#3) // _SafeStr_6669 = "_-5wf" (String#30036, DoABC#3) // _SafeStr_6670 = "_-0hc" (String#26960, DoABC#3) // _SafeStr_6671 = "_-3-x" (String#12613, DoABC#3) // _SafeStr_6672 = "_-8a" (String#27086, DoABC#3) // _SafeStr_6673 = "_-1YM" (String#25719, DoABC#3) // _SafeStr_6674 = "_-4os" (String#22814, DoABC#3) // _SafeStr_6675 = "_-1wM" (String#12219, DoABC#3) // _SafeStr_6676 = "_-25A" (String#4669, DoABC#3) // _SafeStr_6677 = "_-3gl" (String#24179, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_2307 package _-0bw{ public interface _SafeStr_2307 { function get x():Number; function get y():Number; function get z():Number; function get length():Number; } }//package _-0bw // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_2308 package _-0bw{ public class _SafeStr_2308 implements _SafeStr_2307 { private var _x:Number; private var _y:Number; private var _z:Number; private var _SafeStr_6678:Number = NaN; public function _SafeStr_2308(k:Number=0, _arg_2:Number=0, _arg_3:Number=0){ this._x = k; this._y = _arg_2; this._z = _arg_3; } public static function sum(k:_SafeStr_2307, _arg_2:_SafeStr_2307):_SafeStr_2308{ if ((((k == null)) || ((_arg_2 == null)))) { return (null); }; var _local_3:_SafeStr_2308 = new (_SafeStr_2308)((k.x + _arg_2.x), (k.y + _arg_2.y), (k.z + _arg_2.z)); return (_local_3); } public static function _SafeStr_6679(k:_SafeStr_2307, _arg_2:_SafeStr_2307):_SafeStr_2308{ if ((((k == null)) || ((_arg_2 == null)))) { return (null); }; var _local_3:_SafeStr_2308 = new (_SafeStr_2308)((k.x - _arg_2.x), (k.y - _arg_2.y), (k.z - _arg_2.z)); return (_local_3); } public static function product(k:_SafeStr_2307, _arg_2:Number):_SafeStr_2308{ if (k == null) { return (null); }; var _local_3:_SafeStr_2308 = new (_SafeStr_2308)((k.x * _arg_2), (k.y * _arg_2), (k.z * _arg_2)); return (_local_3); } public static function _SafeStr_6680(k:_SafeStr_2307, _arg_2:_SafeStr_2307):Number{ if ((((k == null)) || ((_arg_2 == null)))) { return (0); }; return ((((k.x * _arg_2.x) + (k.y * _arg_2.y)) + (k.z * _arg_2.z))); } public static function _SafeStr_6681(k:_SafeStr_2307, _arg_2:_SafeStr_2307):_SafeStr_2308{ if ((((k == null)) || ((_arg_2 == null)))) { return (null); }; var _local_3:_SafeStr_2308 = new (_SafeStr_2308)(((k.y * _arg_2.z) - (k.z * _arg_2.y)), ((k.z * _arg_2.x) - (k.x * _arg_2.z)), ((k.x * _arg_2.y) - (k.y * _arg_2.x))); return (_local_3); } public static function _SafeStr_6682(k:_SafeStr_2307, _arg_2:_SafeStr_2307):Number{ if ((((k == null)) || ((_arg_2 == null)))) { return (-1); }; var _local_3:Number = _arg_2.length; if (_local_3 > 0) { return (((((k.x * _arg_2.x) + (k.y * _arg_2.y)) + (k.z * _arg_2.z)) / _local_3)); }; return (-1); } public static function cosAngle(k:_SafeStr_2307, _arg_2:_SafeStr_2307):Number{ if ((((k == null)) || ((_arg_2 == null)))) { return (0); }; var _local_3:Number = (k.length * _arg_2.length); if (_local_3 == 0) { return (0); }; return ((_SafeStr_2308._SafeStr_6680(k, _arg_2) / _local_3)); } public static function _SafeStr_6683(k:_SafeStr_2307, _arg_2:_SafeStr_2307):Boolean{ if ((((k == null)) || ((_arg_2 == null)))) { return (false); }; if ((((((k.x == _arg_2.x)) && ((k.y == _arg_2.y)))) && ((k.z == _arg_2.z)))) { return (true); }; return (false); } public function get x():Number{ return (this._x); } public function get y():Number{ return (this._y); } public function get z():Number{ return (this._z); } public function get length():Number{ if (isNaN(this._SafeStr_6678)) { this._SafeStr_6678 = Math.sqrt((((this._x * this._x) + (this._y * this._y)) + (this._z * this._z))); }; return (this._SafeStr_6678); } public function set x(k:Number):void{ this._x = k; this._SafeStr_6678 = NaN; } public function set y(k:Number):void{ this._y = k; this._SafeStr_6678 = NaN; } public function set z(k:Number):void{ this._z = k; this._SafeStr_6678 = NaN; } public function _SafeStr_6684():void{ this._x = -(this._x); this._y = -(this._y); this._z = -(this._z); } public function add(k:_SafeStr_2307):void{ if (k == null) { return; }; this._x = (this._x + k.x); this._y = (this._y + k.y); this._z = (this._z + k.z); this._SafeStr_6678 = NaN; } public function _SafeStr_6685(k:_SafeStr_2307):void{ if (k == null) { return; }; this._x = (this._x - k.x); this._y = (this._y - k.y); this._z = (this._z - k.z); this._SafeStr_6678 = NaN; } public function _SafeStr_6686(k:Number):void{ this._x = (this._x * k); this._y = (this._y * k); this._z = (this._z * k); this._SafeStr_6678 = NaN; } public function div(k:Number):void{ if (k != 0) { this._x = (this._x / k); this._y = (this._y / k); this._z = (this._z / k); this._SafeStr_6678 = NaN; }; } public function _SafeStr_6687(k:_SafeStr_2307):void{ if (k == null) { return; }; this._x = k.x; this._y = k.y; this._z = k.z; this._SafeStr_6678 = NaN; } public function toString():String{ return ((("(" + [this._x, this._y, this._z].join(",")) + ")")); } } }//package _-0bw // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_6678 = "_-20y" (String#5728, DoABC#3) // _SafeStr_6679 = "implements" (String#6987, DoABC#3) // _SafeStr_6680 = "_-5bx" (String#22668, DoABC#3) // _SafeStr_6681 = "_-5wh" (String#10785, DoABC#3) // _SafeStr_6682 = "_-08K" (String#6631, DoABC#3) // _SafeStr_6683 = "_-2aZ" (String#18959, DoABC#3) // _SafeStr_6684 = "_-60V" (String#12320, DoABC#3) // _SafeStr_6685 = "_-17-" (String#19247, DoABC#3) // _SafeStr_6686 = "_-601" (String#8058, DoABC#3) // _SafeStr_6687 = "_-2h3" (String#1277, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_2806 package _-0bw{ public class _SafeStr_2806 { private static const _SafeStr_6688:int = 0x7FFF0000; public static function _SafeStr_6689(k:int):int{ return (((k & 0xFFFF) + _SafeStr_6688)); } public static function _SafeStr_6690(k:int):Boolean{ return ((k >= _SafeStr_6688)); } } }//package _-0bw // _SafeStr_2806 = "_-1LM" (String#12206, DoABC#3) // _SafeStr_6688 = "_-2kV" (String#17363, DoABC#3) // _SafeStr_6689 = "_-gj" (String#32398, DoABC#3) // _SafeStr_6690 = "_-6Ke" (String#21806, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_2864 package _-0bw{ import flash.utils.getTimer; public class _SafeStr_2864 { public static const _SafeStr_6691:int = 0; public static const _SafeStr_6692:int = 1; public static const _SafeStr_6693:int = 2; public static const _SafeStr_6694:int = 3; private static var _SafeStr_6695:int = _SafeStr_6691;//0 private static var _SafeStr_6696:Boolean = false; private static var _SafeStr_6697:Number; private static var _SafeStr_6698:int = 0; private static var _SafeStr_6699:int = (20 * 1000);//20000 private static var _SafeStr_6700:int = 2000; public static function init(k:int, _arg_2:int):void{ _SafeStr_6697 = 0; _SafeStr_6699 = k; _SafeStr_6700 = _arg_2; _SafeStr_6698 = getTimer(); _SafeStr_6695 = _SafeStr_6692; } public static function _SafeStr_6701():void{ if ((((_SafeStr_6695 == _SafeStr_6691)) || ((_SafeStr_6695 == _SafeStr_6694)))) { return; }; var k:int = (getTimer() - _SafeStr_6698); if (k > (_SafeStr_6699 + _SafeStr_6700)) { _SafeStr_6695 = _SafeStr_6694; return; }; _SafeStr_6696 = true; if (k < _SafeStr_6699) { _SafeStr_6695 = _SafeStr_6692; return; }; _SafeStr_6695 = _SafeStr_6693; _SafeStr_6697 = ((k - _SafeStr_6699) / _SafeStr_6700); } public static function _SafeStr_6702():void{ _SafeStr_6696 = false; } public static function _SafeStr_6703():Boolean{ return (((_SafeStr_6696) && (_SafeStr_6704()))); } public static function _SafeStr_6704():Boolean{ if ((((_SafeStr_6695 == _SafeStr_6692)) || ((_SafeStr_6695 == _SafeStr_6693)))) { return (true); }; return (false); } public static function _SafeStr_6705(k:Number=0, _arg_2:Number=1):Number{ return (Math.min(Math.max(_SafeStr_6697, k), _arg_2)); } public static function get _SafeStr_6706():int{ return ((_SafeStr_6699 + _SafeStr_6700)); } } }//package _-0bw // _SafeStr_2864 = "_-4Bb" (String#4220, DoABC#3) // _SafeStr_6691 = "_-2MG" (String#5735, DoABC#3) // _SafeStr_6692 = "_-3Dk" (String#4677, DoABC#3) // _SafeStr_6693 = "_-4Ys" (String#5531, DoABC#3) // _SafeStr_6694 = "_-3s" (String#5599, DoABC#3) // _SafeStr_6695 = "_-3RB" (String#372, DoABC#3) // _SafeStr_6696 = "_-0rI" (String#3752, DoABC#3) // _SafeStr_6697 = "_-54-" (String#5184, DoABC#3) // _SafeStr_6698 = "_-1Vw" (String#4785, DoABC#3) // _SafeStr_6699 = "_-1PK" (String#3576, DoABC#3) // _SafeStr_6700 = "_-3sQ" (String#3719, DoABC#3) // _SafeStr_6701 = "_-5dM" (String#10778, DoABC#3) // _SafeStr_6702 = "_-5VJ" (String#10546, DoABC#3) // _SafeStr_6703 = "_-2Td" (String#10565, DoABC#3) // _SafeStr_6704 = "_-0Qu" (String#3888, DoABC#3) // _SafeStr_6705 = "_-3Hb" (String#23988, DoABC#3) // _SafeStr_6706 = "_-4Jr" (String#23060, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_3004 package _-0bw{ public class _SafeStr_3004 { private var _SafeStr_6707:int = 0; private var _SafeStr_6708:Array; private var _SafeStr_6709:Array; public function _SafeStr_3004(k:int){ this._SafeStr_6708 = []; this._SafeStr_6709 = []; super(); if (k < 0) { k = 0; }; var _local_2:int; while (_local_2 < k) { this._SafeStr_6709.push(_local_2); _local_2++; }; } public function dispose():void{ this._SafeStr_6708 = null; this._SafeStr_6709 = null; this._SafeStr_6707 = 0; } public function _SafeStr_6710():int{ var k:int; if (this._SafeStr_6709.length > 0) { k = (this._SafeStr_6709.pop() as int); this._SafeStr_6708.push(k); return (k); }; return (-1); } public function _SafeStr_6711(k:int):void{ var _local_2:int = this._SafeStr_6708.indexOf(k); if (_local_2 >= 0) { this._SafeStr_6708.splice(_local_2, 1); this._SafeStr_6709.push(k); }; } } }//package _-0bw // _SafeStr_3004 = "_-6Up" (String#8779, DoABC#3) // _SafeStr_6707 = "_-0vV" (String#11669, DoABC#3) // _SafeStr_6708 = "_-6gL" (String#17043, DoABC#3) // _SafeStr_6709 = "_-5Qx" (String#12007, DoABC#3) // _SafeStr_6710 = "_-63Z" (String#28336, DoABC#3) // _SafeStr_6711 = "_-42i" (String#17398, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_3021 package _-0bw{ import _-WS.Map; import flash.geom.Point; public class _SafeStr_3021 implements _SafeStr_2305 { public static const _SafeStr_6712:Number = 64; public static const _SafeStr_6713:Number = 32; private var _SafeStr_6714:int = 0; private var _x:_SafeStr_2308; private var _y:_SafeStr_2308; private var _z:_SafeStr_2308; private var _SafeStr_6715:_SafeStr_2308; private var _location:_SafeStr_2308; private var _SafeStr_5761:_SafeStr_2308; private var _SafeStr_6716:_SafeStr_2308; private var _SafeStr_6717:Number = 1; private var _SafeStr_6718:Number = 1; private var _SafeStr_6719:Number = 1; private var _SafeStr_6720:Number = 1; private var _SafeStr_6721:Number = 1; private var _SafeStr_6722:Number = 1; private var _SafeStr_6723:Number = 1; private var _SafeStr_5709:_SafeStr_2308; private var _SafeStr_5710:_SafeStr_2308; private var _SafeStr_6724:Number = -500; private var _SafeStr_6725:Number = 500; private var _SafeStr_6726:Map = null; public function _SafeStr_3021(k:Number, _arg_2:_SafeStr_2307, _arg_3:_SafeStr_2307, _arg_4:_SafeStr_2307=null){ this.scale = k; this._x = new _SafeStr_2308(); this._y = new _SafeStr_2308(); this._z = new _SafeStr_2308(); this._SafeStr_6715 = new _SafeStr_2308(); this._location = new _SafeStr_2308(); this._SafeStr_5761 = new _SafeStr_2308(); this._SafeStr_6716 = new _SafeStr_2308(); this._SafeStr_6721 = 1; this._SafeStr_6722 = 1; this._SafeStr_6727 = 1; this._SafeStr_6728 = 1; this._SafeStr_6723 = (Math.sqrt((1 / 2)) / Math.sqrt((3 / 4))); this._SafeStr_6677 = 1; this.location = new _SafeStr_2308(_arg_3.x, _arg_3.y, _arg_3.z); this.direction = new _SafeStr_2308(_arg_2.x, _arg_2.y, _arg_2.z); if (_arg_4 != null) { this._SafeStr_6729(_arg_4); } else { this._SafeStr_6729(_arg_2); }; this._SafeStr_6726 = new Map(); } public static function getIntersectionVector(k:_SafeStr_2307, _arg_2:_SafeStr_2307, _arg_3:_SafeStr_2307, _arg_4:_SafeStr_2307):_SafeStr_2307{ var _local_5:Number = _SafeStr_2308._SafeStr_6680(_arg_2, _arg_4); if (Math.abs(_local_5) < 1E-5) { return (null); }; var _local_6:_SafeStr_2308 = _SafeStr_2308._SafeStr_6679(k, _arg_3); var _local_7:Number = (-(_SafeStr_2308._SafeStr_6680(_arg_4, _local_6)) / _local_5); var _local_8:_SafeStr_2308 = _SafeStr_2308.sum(k, _SafeStr_2308.product(_arg_2, _local_7)); return (_local_8); } public function get _SafeStr_6676():int{ return (this._SafeStr_6714); } public function get scale():Number{ return ((this._SafeStr_6717 / Math.sqrt(0.5))); } public function get _SafeStr_6665():_SafeStr_2307{ return (this._SafeStr_6715); } public function get location():_SafeStr_2307{ this._location._SafeStr_6687(this._SafeStr_5709); this._location.x = (this._location.x * this._SafeStr_6718); this._location.y = (this._location.y * this._SafeStr_6719); this._location.z = (this._location.z * this._SafeStr_6720); return (this._location); } public function get direction():_SafeStr_2307{ return (this._SafeStr_5761); } public function set _SafeStr_6727(k:Number):void{ if (this._SafeStr_6718 != (k * this._SafeStr_6721)) { this._SafeStr_6718 = (k * this._SafeStr_6721); this._SafeStr_6714++; }; } public function set _SafeStr_6728(k:Number):void{ if (this._SafeStr_6719 != (k * this._SafeStr_6722)) { this._SafeStr_6719 = (k * this._SafeStr_6722); this._SafeStr_6714++; }; } public function set _SafeStr_6677(k:Number):void{ if (this._SafeStr_6720 != (k * this._SafeStr_6723)) { this._SafeStr_6720 = (k * this._SafeStr_6723); this._SafeStr_6714++; }; } public function set scale(k:Number):void{ if (k <= 1) { k = 1; }; k = (k * Math.sqrt(0.5)); if (k != this._SafeStr_6717) { this._SafeStr_6717 = k; this._SafeStr_6714++; }; } public function set location(k:_SafeStr_2307):void{ if (k == null) { return; }; if (this._SafeStr_5709 == null) { this._SafeStr_5709 = new _SafeStr_2308(); }; var _local_2:Number = this._SafeStr_5709.x; var _local_3:Number = this._SafeStr_5709.y; var _local_4:Number = this._SafeStr_5709.z; this._SafeStr_5709._SafeStr_6687(k); this._SafeStr_5709.x = (this._SafeStr_5709.x / this._SafeStr_6718); this._SafeStr_5709.y = (this._SafeStr_5709.y / this._SafeStr_6719); this._SafeStr_5709.z = (this._SafeStr_5709.z / this._SafeStr_6720); if (((((!((this._SafeStr_5709.x == _local_2))) || (!((this._SafeStr_5709.y == _local_3))))) || (!((this._SafeStr_5709.z == _local_4))))) { this._SafeStr_6714++; }; } public function set direction(k:_SafeStr_2307):void{ var _local_21:Number; var _local_22:Number; var _local_23:_SafeStr_2308; var _local_24:_SafeStr_2308; var _local_25:_SafeStr_2308; if (k == null) { return; }; if (this._SafeStr_5710 == null) { this._SafeStr_5710 = new _SafeStr_2308(); }; var _local_2:Number = this._SafeStr_5710.x; var _local_3:Number = this._SafeStr_5710.y; var _local_4:Number = this._SafeStr_5710.z; this._SafeStr_5710._SafeStr_6687(k); this._SafeStr_5761._SafeStr_6687(k); if (((((!((this._SafeStr_5710.x == _local_2))) || (!((this._SafeStr_5710.y == _local_3))))) || (!((this._SafeStr_5710.z == _local_4))))) { this._SafeStr_6714++; }; var _local_5:_SafeStr_2308 = new _SafeStr_2308(0, 1, 0); var _local_6:_SafeStr_2308 = new _SafeStr_2308(0, 0, 1); var _local_7:_SafeStr_2308 = new _SafeStr_2308(1, 0, 0); var _local_8:Number = ((k.x / 180) * Math.PI); var _local_9:Number = ((k.y / 180) * Math.PI); var _local_10:Number = ((k.z / 180) * Math.PI); var _local_11:Number = Math.cos(_local_8); var _local_12:Number = Math.sin(_local_8); var _local_13:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_5, _local_11), _SafeStr_2308.product(_local_7, -(_local_12))); var _local_14:_SafeStr_2308 = new _SafeStr_2308(_local_6.x, _local_6.y, _local_6.z); var _local_15:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_5, _local_12), _SafeStr_2308.product(_local_7, _local_11)); var _local_16:Number = Math.cos(_local_9); var _local_17:Number = Math.sin(_local_9); var _local_18:_SafeStr_2308 = new _SafeStr_2308(_local_13.x, _local_13.y, _local_13.z); var _local_19:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_14, _local_16), _SafeStr_2308.product(_local_15, _local_17)); var _local_20:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_14, -(_local_17)), _SafeStr_2308.product(_local_15, _local_16)); if (_local_10 != 0) { _local_21 = Math.cos(_local_10); _local_22 = Math.sin(_local_10); _local_23 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_18, _local_21), _SafeStr_2308.product(_local_19, _local_22)); _local_24 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_18, -(_local_22)), _SafeStr_2308.product(_local_19, _local_21)); _local_25 = new _SafeStr_2308(_local_20.x, _local_20.y, _local_20.z); this._x._SafeStr_6687(_local_23); this._y._SafeStr_6687(_local_24); this._z._SafeStr_6687(_local_25); this._SafeStr_6715._SafeStr_6687(this._z); } else { this._x._SafeStr_6687(_local_18); this._y._SafeStr_6687(_local_19); this._z._SafeStr_6687(_local_20); this._SafeStr_6715._SafeStr_6687(this._z); }; } public function dispose():void{ this._x = null; this._y = null; this._z = null; this._SafeStr_5709 = null; this._SafeStr_5710 = null; this._SafeStr_6715 = null; this._location = null; if (this._SafeStr_6726 != null) { this._SafeStr_6726.dispose(); this._SafeStr_6726 = null; }; } public function _SafeStr_6670(k:_SafeStr_2307, _arg_2:_SafeStr_2307):void{ var _local_3:String; var _local_4:_SafeStr_2308; if ((((k == null)) || ((_arg_2 == null)))) { return; }; if (this._SafeStr_6726 != null) { _local_3 = ((((int(Math.round(k.x)) + "_") + int(Math.round(k.y))) + "_") + int(Math.round(k.z))); this._SafeStr_6726.remove(_local_3); _local_4 = new _SafeStr_2308(); _local_4._SafeStr_6687(_arg_2); this._SafeStr_6726.add(_local_3, _local_4); this._SafeStr_6714++; }; } private function _SafeStr_6730(k:_SafeStr_2307):_SafeStr_2307{ var _local_2:String; if (this._SafeStr_6726 != null) { _local_2 = ((((int(Math.round(k.x)) + "_") + int(Math.round(k.y))) + "_") + int(Math.round(k.z))); return (this._SafeStr_6726.getValue(_local_2)); }; return (null); } public function _SafeStr_6729(k:_SafeStr_2307):void{ var _local_18:Number; var _local_19:Number; var _local_20:_SafeStr_2308; var _local_21:_SafeStr_2308; var _local_22:_SafeStr_2308; var _local_2:_SafeStr_2308 = new _SafeStr_2308(0, 1, 0); var _local_3:_SafeStr_2308 = new _SafeStr_2308(0, 0, 1); var _local_4:_SafeStr_2308 = new _SafeStr_2308(1, 0, 0); var _local_5:Number = ((k.x / 180) * Math.PI); var _local_6:Number = ((k.y / 180) * Math.PI); var _local_7:Number = ((k.z / 180) * Math.PI); var _local_8:Number = Math.cos(_local_5); var _local_9:Number = Math.sin(_local_5); var _local_10:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_2, _local_8), _SafeStr_2308.product(_local_4, -(_local_9))); var _local_11:_SafeStr_2308 = new _SafeStr_2308(_local_3.x, _local_3.y, _local_3.z); var _local_12:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_2, _local_9), _SafeStr_2308.product(_local_4, _local_8)); var _local_13:Number = Math.cos(_local_6); var _local_14:Number = Math.sin(_local_6); var _local_15:_SafeStr_2308 = new _SafeStr_2308(_local_10.x, _local_10.y, _local_10.z); var _local_16:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_11, _local_13), _SafeStr_2308.product(_local_12, _local_14)); var _local_17:_SafeStr_2308 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_11, -(_local_14)), _SafeStr_2308.product(_local_12, _local_13)); if (_local_7 != 0) { _local_18 = Math.cos(_local_7); _local_19 = Math.sin(_local_7); _local_20 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_15, _local_18), _SafeStr_2308.product(_local_16, _local_19)); _local_21 = _SafeStr_2308.sum(_SafeStr_2308.product(_local_15, -(_local_19)), _SafeStr_2308.product(_local_16, _local_18)); _local_22 = new _SafeStr_2308(_local_17.x, _local_17.y, _local_17.z); this._SafeStr_6716._SafeStr_6687(_local_22); } else { this._SafeStr_6716._SafeStr_6687(_local_17); }; this._SafeStr_6714++; } public function _SafeStr_6671(k:_SafeStr_2307, _arg_2:Number):void{ if ((((k == null)) || ((this._z == null)))) { return; }; var _local_3:_SafeStr_2308 = _SafeStr_2308.product(this._z, -(_arg_2)); var _local_4:_SafeStr_2308 = new _SafeStr_2308((k.x + _local_3.x), (k.y + _local_3.y), (k.z + _local_3.z)); this.location = _local_4; } public function _SafeStr_6666(k:_SafeStr_2307):_SafeStr_2307{ if (k == null) { return (null); }; var _local_2:Number = _SafeStr_2308._SafeStr_6682(k, this._x); var _local_3:Number = _SafeStr_2308._SafeStr_6682(k, this._y); var _local_4:Number = _SafeStr_2308._SafeStr_6682(k, this._z); var _local_5:_SafeStr_2308 = new _SafeStr_2308(_local_2, _local_3, _local_4); return (_local_5); } public function _SafeStr_6668(k:_SafeStr_2307):_SafeStr_2307{ var _local_2:_SafeStr_2308 = _SafeStr_2308._SafeStr_6679(k, this._SafeStr_5709); _local_2.x = (_local_2.x * this._SafeStr_6718); _local_2.y = (_local_2.y * this._SafeStr_6719); _local_2.z = (_local_2.z * this._SafeStr_6720); var _local_3:Number = _SafeStr_2308._SafeStr_6682(_local_2, this._SafeStr_6716); if ((((_local_3 < this._SafeStr_6724)) || ((_local_3 > this._SafeStr_6725)))) { return (null); }; var _local_4:Number = _SafeStr_2308._SafeStr_6682(_local_2, this._x); var _local_5:Number = -(_SafeStr_2308._SafeStr_6682(_local_2, this._y)); _local_4 = (_local_4 * this._SafeStr_6717); _local_5 = (_local_5 * this._SafeStr_6717); var _local_6:_SafeStr_2307 = this._SafeStr_6730(k); if (_local_6 != null) { _local_2 = _SafeStr_2308._SafeStr_6679(k, this._SafeStr_5709); _local_2.add(_local_6); _local_2.x = (_local_2.x * this._SafeStr_6718); _local_2.y = (_local_2.y * this._SafeStr_6719); _local_2.z = (_local_2.z * this._SafeStr_6720); _local_3 = _SafeStr_2308._SafeStr_6682(_local_2, this._SafeStr_6716); }; _local_2.x = _local_4; _local_2.y = _local_5; _local_2.z = _local_3; return (_local_2); } public function _SafeStr_6667(k:_SafeStr_2307):Point{ var _local_2:_SafeStr_2307 = this._SafeStr_6668(k); if (_local_2 == null) { return (null); }; var _local_3:Point = new Point(_local_2.x, _local_2.y); return (_local_3); } public function _SafeStr_6669(k:Point, _arg_2:_SafeStr_2307, _arg_3:_SafeStr_2307, _arg_4:_SafeStr_2307):Point{ var _local_15:Number; var _local_16:Number; var _local_5:Number = (k.x / this._SafeStr_6717); var _local_6:Number = (-(k.y) / this._SafeStr_6717); var _local_7:_SafeStr_2308 = _SafeStr_2308.product(this._x, _local_5); _local_7.add(_SafeStr_2308.product(this._y, _local_6)); var _local_8:_SafeStr_2308 = new _SafeStr_2308((this._SafeStr_5709.x * this._SafeStr_6718), (this._SafeStr_5709.y * this._SafeStr_6719), (this._SafeStr_5709.z * this._SafeStr_6720)); _local_8.add(_local_7); var _local_9:_SafeStr_2307 = this._z; var _local_10:_SafeStr_2308 = new _SafeStr_2308((_arg_2.x * this._SafeStr_6718), (_arg_2.y * this._SafeStr_6719), (_arg_2.z * this._SafeStr_6720)); var _local_11:_SafeStr_2308 = new _SafeStr_2308((_arg_3.x * this._SafeStr_6718), (_arg_3.y * this._SafeStr_6719), (_arg_3.z * this._SafeStr_6720)); var _local_12:_SafeStr_2308 = new _SafeStr_2308((_arg_4.x * this._SafeStr_6718), (_arg_4.y * this._SafeStr_6719), (_arg_4.z * this._SafeStr_6720)); var _local_13:_SafeStr_2307 = _SafeStr_2308._SafeStr_6681(_local_11, _local_12); var _local_14:_SafeStr_2308 = new _SafeStr_2308(); _local_14._SafeStr_6687(_SafeStr_3021.getIntersectionVector(_local_8, _local_9, _local_10, _local_13)); if (_local_14 != null) { _local_14._SafeStr_6685(_local_10); _local_15 = ((_SafeStr_2308._SafeStr_6682(_local_14, _arg_3) / _local_11.length) * _arg_3.length); _local_16 = ((_SafeStr_2308._SafeStr_6682(_local_14, _arg_4) / _local_12.length) * _arg_4.length); return (new Point(_local_15, _local_16)); }; return (null); } public function _SafeStr_6672():void{ if (this._SafeStr_6675()) { this.scale = _SafeStr_6713; } else { this.scale = _SafeStr_6712; }; } public function _SafeStr_6675():Boolean{ return ((this.scale == _SafeStr_6712)); } public function _SafeStr_6673():void{ this.scale = _SafeStr_6713; } public function _SafeStr_6674():void{ this.scale = _SafeStr_6712; } } }//package _-0bw // _SafeStr_2305 = "_-34L" (String#1071, DoABC#3) // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_3021 = "_-1K-" (String#2900, DoABC#3) // _SafeStr_5709 = "_-1ol" (String#1272, DoABC#3) // _SafeStr_5710 = "_-gJ" (String#2028, DoABC#3) // _SafeStr_5761 = "_-6gq" (String#1234, DoABC#3) // _SafeStr_6665 = "_-4Sw" (String#14590, DoABC#3) // _SafeStr_6666 = "_-4-1" (String#13257, DoABC#3) // _SafeStr_6667 = "_-2aP" (String#3204, DoABC#3) // _SafeStr_6668 = "_-616" (String#5547, DoABC#3) // _SafeStr_6669 = "_-5wf" (String#30036, DoABC#3) // _SafeStr_6670 = "_-0hc" (String#26960, DoABC#3) // _SafeStr_6671 = "_-3-x" (String#12613, DoABC#3) // _SafeStr_6672 = "_-8a" (String#27086, DoABC#3) // _SafeStr_6673 = "_-1YM" (String#25719, DoABC#3) // _SafeStr_6674 = "_-4os" (String#22814, DoABC#3) // _SafeStr_6675 = "_-1wM" (String#12219, DoABC#3) // _SafeStr_6676 = "_-25A" (String#4669, DoABC#3) // _SafeStr_6677 = "_-3gl" (String#24179, DoABC#3) // _SafeStr_6679 = "implements" (String#6987, DoABC#3) // _SafeStr_6680 = "_-5bx" (String#22668, DoABC#3) // _SafeStr_6681 = "_-5wh" (String#10785, DoABC#3) // _SafeStr_6682 = "_-08K" (String#6631, DoABC#3) // _SafeStr_6685 = "_-17-" (String#19247, DoABC#3) // _SafeStr_6687 = "_-2h3" (String#1277, DoABC#3) // _SafeStr_6712 = "_-0Z" (String#11104, DoABC#3) // _SafeStr_6713 = "_-47S" (String#14355, DoABC#3) // _SafeStr_6714 = "_-6Ec" (String#4685, DoABC#3) // _SafeStr_6715 = "_-5Y0" (String#15961, DoABC#3) // _SafeStr_6716 = "_-10q" (String#6388, DoABC#3) // _SafeStr_6717 = "_-2Qo" (String#1074, DoABC#3) // _SafeStr_6718 = "_-3Zt" (String#7612, DoABC#3) // _SafeStr_6719 = "_-2nF" (String#7567, DoABC#3) // _SafeStr_6720 = "_-2-S" (String#7487, DoABC#3) // _SafeStr_6721 = "_-4tz" (String#21915, DoABC#3) // _SafeStr_6722 = "_-5ok" (String#22952, DoABC#3) // _SafeStr_6723 = "_-lx" (String#25805, DoABC#3) // _SafeStr_6724 = "_-6hM" (String#38614, DoABC#3) // _SafeStr_6725 = "_-1zf" (String#32176, DoABC#3) // _SafeStr_6726 = "_-96" (String#8585, DoABC#3) // _SafeStr_6727 = "_-5SK" (String#37863, DoABC#3) // _SafeStr_6728 = "_-44-" (String#38840, DoABC#3) // _SafeStr_6729 = "_-2f9" (String#18887, DoABC#3) // _SafeStr_6730 = "_-23O" (String#33346, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_3137 package _-0bw{ import flash.utils.Timer; import flash.utils.getTimer; import flash.events.TimerEvent; public class _SafeStr_3137 { public static const _SafeStr_6691:int = 0; public static const _SafeStr_6692:int = 1; public static const _SafeStr_6693:int = 2; public static const _SafeStr_6694:int = 3; private static var _SafeStr_6695:int = _SafeStr_6691;//0 private static var _SafeStr_6696:Boolean = false; private static var _SafeStr_6697:Number; private static var _SafeStr_6698:int = 0; private static var _SafeStr_6699:int = (20 * 1000);//20000 private static var _SafeStr_6700:int = 5000; private static var _SafeStr_6731:Timer; public static function init(k:int, _arg_2:int):void{ _SafeStr_6697 = 0; _SafeStr_6699 = k; _SafeStr_6700 = _arg_2; _SafeStr_6698 = getTimer(); _SafeStr_6695 = _SafeStr_6692; } public static function _SafeStr_6701():void{ if ((((_SafeStr_6695 == _SafeStr_6691)) || ((_SafeStr_6695 == _SafeStr_6694)))) { return; }; if ((((_SafeStr_6731 == null)) || (!(_SafeStr_6731.running)))) { _SafeStr_6731 = new Timer(_SafeStr_6700, 1); _SafeStr_6731.addEventListener(TimerEvent.TIMER_COMPLETE, _SafeStr_6702); _SafeStr_6731.start(); }; var k:int = (getTimer() - _SafeStr_6698); if (k > (_SafeStr_6699 + _SafeStr_6700)) { _SafeStr_6695 = _SafeStr_6694; return; }; _SafeStr_6696 = true; if (k < _SafeStr_6699) { _SafeStr_6695 = _SafeStr_6692; return; }; _SafeStr_6695 = _SafeStr_6693; _SafeStr_6697 = ((k - _SafeStr_6699) / _SafeStr_6700); } public static function _SafeStr_6702(k:TimerEvent):void{ _SafeStr_6696 = false; _SafeStr_6731.stop(); _SafeStr_6731.removeEventListener(TimerEvent.TIMER_COMPLETE, _SafeStr_6702); _SafeStr_6731 = null; } public static function _SafeStr_6703():Boolean{ return (((_SafeStr_6696) && (_SafeStr_6704()))); } private static function _SafeStr_6704():Boolean{ if ((((_SafeStr_6695 == _SafeStr_6692)) || ((_SafeStr_6695 == _SafeStr_6693)))) { return (true); }; return (false); } } }//package _-0bw // _SafeStr_3137 = "_-5LP" (String#7755, DoABC#3) // _SafeStr_6691 = "_-2MG" (String#5735, DoABC#3) // _SafeStr_6692 = "_-3Dk" (String#4677, DoABC#3) // _SafeStr_6693 = "_-4Ys" (String#5531, DoABC#3) // _SafeStr_6694 = "_-3s" (String#5599, DoABC#3) // _SafeStr_6695 = "_-3RB" (String#372, DoABC#3) // _SafeStr_6696 = "_-0rI" (String#3752, DoABC#3) // _SafeStr_6697 = "_-54-" (String#5184, DoABC#3) // _SafeStr_6698 = "_-1Vw" (String#4785, DoABC#3) // _SafeStr_6699 = "_-1PK" (String#3576, DoABC#3) // _SafeStr_6700 = "_-3sQ" (String#3719, DoABC#3) // _SafeStr_6701 = "_-5dM" (String#10778, DoABC#3) // _SafeStr_6702 = "_-5VJ" (String#10546, DoABC#3) // _SafeStr_6703 = "_-2Td" (String#10565, DoABC#3) // _SafeStr_6704 = "_-0Qu" (String#3888, DoABC#3) // _SafeStr_6731 = "_-5uS" (String#3981, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_3573 package _-0bw{ public class _SafeStr_3573 { public static function _SafeStr_6732(k:int):int{ var _local_2:Number = (((k >> 16) & 0xFF) / 0xFF); var _local_3:Number = (((k >> 8) & 0xFF) / 0xFF); var _local_4:Number = ((k & 0xFF) / 0xFF); var _local_5:Number = Math.max(_local_2, _local_3, _local_4); var _local_6:Number = Math.min(_local_2, _local_3, _local_4); var _local_7:Number = (_local_5 - _local_6); var _local_8:Number = 0; var _local_9:Number = 0; var _local_10:Number = 0; if (_local_7 == 0) { _local_8 = 0; } else { if (_local_5 == _local_2) { if (_local_3 > _local_4) { _local_8 = ((60 * (_local_3 - _local_4)) / _local_7); } else { _local_8 = (((60 * (_local_3 - _local_4)) / _local_7) + 360); }; } else { if (_local_5 == _local_3) { _local_8 = (((60 * (_local_4 - _local_2)) / _local_7) + 120); } else { if (_local_5 == _local_4) { _local_8 = (((60 * (_local_2 - _local_3)) / _local_7) + 240); }; }; }; }; _local_9 = (0.5 * (_local_5 + _local_6)); if (_local_7 == 0) { _local_10 = 0; } else { if (_local_9 <= 0.5) { _local_10 = ((_local_7 / _local_9) * 0.5); } else { _local_10 = ((_local_7 / (1 - _local_9)) * 0.5); }; }; var _local_11:int = Math.round(((_local_8 / 360) * 0xFF)); var _local_12:int = Math.round((_local_10 * 0xFF)); var _local_13:int = Math.round((_local_9 * 0xFF)); var _local_14:int = (((_local_11 << 16) + (_local_12 << 8)) + _local_13); return (_local_14); } public static function _SafeStr_5949(k:int):int{ var _local_12:Number; var _local_13:Number; var _local_14:Number; var _local_15:Number; var _local_16:Number; var _local_2:Number = (((k >> 16) & 0xFF) / 0xFF); var _local_3:Number = (((k >> 8) & 0xFF) / 0xFF); var _local_4:Number = ((k & 0xFF) / 0xFF); var _local_5:Number = 0; var _local_6:Number = 0; var _local_7:Number = 0; if (_local_3 > 0) { _local_12 = 0; _local_13 = 0; if (_local_4 < 0.5) { _local_12 = (_local_4 * (1 + _local_3)); } else { _local_12 = ((_local_4 + _local_3) - (_local_4 * _local_3)); }; _local_13 = ((2 * _local_4) - _local_12); _local_14 = (_local_2 + (1 / 3)); _local_15 = _local_2; _local_16 = (_local_2 - (1 / 3)); if (_local_14 < 0) { _local_14 = (_local_14 + 1); } else { if (_local_14 > 1) { _local_14--; }; }; if (_local_15 < 0) { _local_15 = (_local_15 + 1); } else { if (_local_15 > 1) { _local_15--; }; }; if (_local_16 < 0) { _local_16 = (_local_16 + 1); } else { if (_local_16 > 1) { _local_16--; }; }; if ((_local_14 * 6) < 1) { _local_5 = (_local_13 + (((_local_12 - _local_13) * 6) * _local_14)); } else { if ((_local_14 * 2) < 1) { _local_5 = _local_12; } else { if ((_local_14 * 3) < 2) { _local_5 = (_local_13 + (((_local_12 - _local_13) * 6) * ((2 / 3) - _local_14))); } else { _local_5 = _local_13; }; }; }; if ((_local_15 * 6) < 1) { _local_6 = (_local_13 + (((_local_12 - _local_13) * 6) * _local_15)); } else { if ((_local_15 * 2) < 1) { _local_6 = _local_12; } else { if ((_local_15 * 3) < 2) { _local_6 = (_local_13 + (((_local_12 - _local_13) * 6) * ((2 / 3) - _local_15))); } else { _local_6 = _local_13; }; }; }; if ((_local_16 * 6) < 1) { _local_7 = (_local_13 + (((_local_12 - _local_13) * 6) * _local_16)); } else { if ((_local_16 * 2) < 1) { _local_7 = _local_12; } else { if ((_local_16 * 3) < 2) { _local_7 = (_local_13 + (((_local_12 - _local_13) * 6) * ((2 / 3) - _local_16))); } else { _local_7 = _local_13; }; }; }; } else { _local_5 = _local_4; _local_6 = _local_4; _local_7 = _local_4; }; var _local_8:int = Math.round((_local_5 * 0xFF)); var _local_9:int = Math.round((_local_6 * 0xFF)); var _local_10:int = Math.round((_local_7 * 0xFF)); var _local_11:int = (((_local_8 << 16) + (_local_9 << 8)) + _local_10); return (_local_11); } public static function rgb2xyz(k:int):_SafeStr_2307{ var _local_2:Number = (((k >> 16) & 0xFF) / 0xFF); var _local_3:Number = (((k >> 8) & 0xFF) / 0xFF); var _local_4:Number = (((k >> 0) & 0xFF) / 0xFF); if (_local_2 > 0.04045) { _local_2 = Math.pow(((_local_2 + 0.055) / 1.055), 2.4); } else { _local_2 = (_local_2 / 12.92); }; if (_local_3 > 0.04045) { _local_3 = Math.pow(((_local_3 + 0.055) / 1.055), 2.4); } else { _local_3 = (_local_3 / 12.92); }; if (_local_4 > 0.04045) { _local_4 = Math.pow(((_local_4 + 0.055) / 1.055), 2.4); } else { _local_4 = (_local_4 / 12.92); }; _local_2 = (_local_2 * 100); _local_3 = (_local_3 * 100); _local_4 = (_local_4 * 100); return (new _SafeStr_2308((((_local_2 * 0.4124) + (_local_3 * 0.3576)) + (_local_4 * 0.1805)), (((_local_2 * 0.2126) + (_local_3 * 0.7152)) + (_local_4 * 0.0722)), (((_local_2 * 0.0193) + (_local_3 * 0.1192)) + (_local_4 * 0.9505)))); } public static function xyz2CieLab(k:_SafeStr_2307):_SafeStr_2307{ var _local_2:Number = (k.x / 95.047); var _local_3:Number = (k.y / 100); var _local_4:Number = (k.z / 108.883); if (_local_2 > 0.008856) { _local_2 = Math.pow(_local_2, (1 / 3)); } else { _local_2 = ((7.787 * _local_2) + (16 / 116)); }; if (_local_3 > 0.008856) { _local_3 = Math.pow(_local_3, (1 / 3)); } else { _local_3 = ((7.787 * _local_3) + (16 / 116)); }; if (_local_4 > 0.008856) { _local_4 = Math.pow(_local_4, (1 / 3)); } else { _local_4 = ((7.787 * _local_4) + (16 / 116)); }; return (new _SafeStr_2308(((116 * _local_3) - 16), (500 * (_local_2 - _local_3)), (200 * (_local_3 - _local_4)))); } public static function rgb2CieLab(k:int):_SafeStr_2307{ return (_SafeStr_3573.xyz2CieLab(_SafeStr_3573.rgb2xyz(k))); } } }//package _-0bw // _SafeStr_2307 = "_-1sW" (String#255, DoABC#3) // _SafeStr_2308 = "_-5G3" (String#148, DoABC#3) // _SafeStr_3573 = "_-5wT" (String#7527, DoABC#3) // _SafeStr_5949 = "_-bb" (String#20651, DoABC#3) // _SafeStr_6732 = "_-4DC" (String#29865, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_4693 package _-0bw{ import flash.utils.Timer; import flash.utils.getTimer; import flash.events.TimerEvent; public class _SafeStr_4693 { public static const _SafeStr_6691:int = 0; public static const _SafeStr_6692:int = 1; public static const _SafeStr_6693:int = 2; public static const _SafeStr_6694:int = 3; private static var _SafeStr_6695:int = _SafeStr_6691;//0 private static var _SafeStr_6696:Boolean = false; private static var _SafeStr_6697:Number; private static var _SafeStr_6698:int = 0; private static var _SafeStr_6699:int = (20 * 1000);//20000 private static var _SafeStr_6700:int = 5000; private static var _SafeStr_6731:Timer; public static function init(k:int, _arg_2:int):void{ _SafeStr_6697 = 0; _SafeStr_6699 = k; _SafeStr_6700 = _arg_2; _SafeStr_6698 = getTimer(); _SafeStr_6695 = _SafeStr_6692; } public static function _SafeStr_6701():void{ if ((((_SafeStr_6695 == _SafeStr_6691)) || ((_SafeStr_6695 == _SafeStr_6694)))) { return; }; if ((((_SafeStr_6731 == null)) || (!(_SafeStr_6731.running)))) { _SafeStr_6731 = new Timer(_SafeStr_6700, 1); _SafeStr_6731.addEventListener(TimerEvent.TIMER_COMPLETE, _SafeStr_6702); _SafeStr_6731.start(); }; var k:int = (getTimer() - _SafeStr_6698); if (k > (_SafeStr_6699 + _SafeStr_6700)) { _SafeStr_6695 = _SafeStr_6694; return; }; _SafeStr_6696 = true; if (k < _SafeStr_6699) { _SafeStr_6695 = _SafeStr_6692; return; }; _SafeStr_6695 = _SafeStr_6693; _SafeStr_6697 = ((k - _SafeStr_6699) / _SafeStr_6700); } public static function _SafeStr_6702(k:TimerEvent):void{ _SafeStr_6696 = false; _SafeStr_6731.stop(); _SafeStr_6731.removeEventListener(TimerEvent.TIMER_COMPLETE, _SafeStr_6702); _SafeStr_6731 = null; } public static function _SafeStr_6703():Boolean{ return (((_SafeStr_6696) && (_SafeStr_6704()))); } private static function _SafeStr_6704():Boolean{ if ((((_SafeStr_6695 == _SafeStr_6692)) || ((_SafeStr_6695 == _SafeStr_6693)))) { return (true); }; return (false); } } }//package _-0bw // _SafeStr_4693 = "_-1Cm" (String#14135, DoABC#3) // _SafeStr_6691 = "_-2MG" (String#5735, DoABC#3) // _SafeStr_6692 = "_-3Dk" (String#4677, DoABC#3) // _SafeStr_6693 = "_-4Ys" (String#5531, DoABC#3) // _SafeStr_6694 = "_-3s" (String#5599, DoABC#3) // _SafeStr_6695 = "_-3RB" (String#372, DoABC#3) // _SafeStr_6696 = "_-0rI" (String#3752, DoABC#3) // _SafeStr_6697 = "_-54-" (String#5184, DoABC#3) // _SafeStr_6698 = "_-1Vw" (String#4785, DoABC#3) // _SafeStr_6699 = "_-1PK" (String#3576, DoABC#3) // _SafeStr_6700 = "_-3sQ" (String#3719, DoABC#3) // _SafeStr_6701 = "_-5dM" (String#10778, DoABC#3) // _SafeStr_6702 = "_-5VJ" (String#10546, DoABC#3) // _SafeStr_6703 = "_-2Td" (String#10565, DoABC#3) // _SafeStr_6704 = "_-0Qu" (String#3888, DoABC#3) // _SafeStr_6731 = "_-5uS" (String#3981, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_5029 package _-0bw{ import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Matrix; public class _SafeStr_5029 { public static function line(k:BitmapData, _arg_2:Point, _arg_3:Point, _arg_4:int):void{ var _local_5:int; var _local_6:int; var _local_7:int; var _local_8:int; var _local_9:int; var _local_10:int; var _local_11:int = _arg_2.x; var _local_12:int = _arg_2.y; _local_5 = (_arg_3.x - _arg_2.x); _local_6 = (_arg_3.y - _arg_2.y); _local_8 = (((_local_5)>0) ? 1 : -1); _local_9 = (((_local_6)>0) ? 1 : -1); _local_5 = Math.abs(_local_5); _local_6 = Math.abs(_local_6); k.lock(); k.setPixel32(_local_11, _local_12, _arg_4); if ((((_local_5 == 0)) && ((_local_6 == 0)))) { return; }; if (_local_5 > _local_6) { _local_7 = (_local_5 - 1); while (_local_7 >= 0) { _local_10 = (_local_10 + _local_6); _local_11 = (_local_11 + _local_8); if (_local_10 >= (_local_5 / 2)) { _local_10 = (_local_10 - _local_5); _local_12 = (_local_12 + _local_9); }; k.setPixel32(_local_11, _local_12, _arg_4); _local_7--; }; } else { _local_7 = (_local_6 - 1); while (_local_7 >= 0) { _local_10 = (_local_10 + _local_5); _local_12 = (_local_12 + _local_9); if (_local_10 >= (_local_6 / 2)) { _local_10 = (_local_10 - _local_6); _local_11 = (_local_11 + _local_8); }; k.setPixel32(_local_11, _local_12, _arg_4); _local_7--; }; }; k.setPixel32(_arg_3.x, _arg_3.y, _arg_4); k.unlock(); } public static function _SafeStr_6733(k:BitmapData):BitmapData{ if (k == null) { return (null); }; var _local_2:BitmapData; _local_2 = new BitmapData(k.width, k.height, true, 0xFFFFFF); var _local_3:Matrix = new Matrix(); _local_3.scale(-1, 1); _local_3.translate(k.width, 0); _local_2.draw(k, _local_3); return (_local_2); } public static function _SafeStr_6734(k:BitmapData):BitmapData{ if (k == null) { return (null); }; var _local_2:BitmapData; _local_2 = new BitmapData(k.width, k.height, true, 0xFFFFFF); var _local_3:Matrix = new Matrix(); _local_3.scale(1, -1); _local_3.translate(0, k.height); _local_2.draw(k, _local_3); return (_local_2); } public static function _SafeStr_6735(k:BitmapData):BitmapData{ if (k == null) { return (null); }; var _local_2:BitmapData; _local_2 = new BitmapData(k.width, k.height, true, 0xFFFFFF); var _local_3:Matrix = new Matrix(); _local_3.scale(-1, -1); _local_3.translate(k.width, k.height); _local_2.draw(k, _local_3); return (_local_2); } } }//package _-0bw // _SafeStr_5029 = "_-10r" (String#7603, DoABC#3) // _SafeStr_6733 = "_-3Sz" (String#22899, DoABC#3) // _SafeStr_6734 = "_-3ID" (String#30127, DoABC#3) // _SafeStr_6735 = "_-640" (String#27766, DoABC#3) //------------------------------------------------------------ //_-0bw._SafeStr_5063 package _-0bw{ import flash.geom.Point; public class _SafeStr_5063 { public static function sum(k:Point, _arg_2:Point):Point{ return (new Point((k.x + _arg_2.x), (k.y + _arg_2.y))); } public static function _SafeStr_6685(k:Point, _arg_2:Point):Point{ return (new Point((k.x - _arg_2.x), (k.y - _arg_2.y))); } public static function _SafeStr_6686(k:Point, _arg_2:Number):Point{ return (new Point((k.x * _arg_2), (k.y * _arg_2))); } } }//package _-0bw // _SafeStr_5063 = "_-1Gl" (String#15456, DoABC#3) // _SafeStr_6685 = "_-17-" (String#19247, DoABC#3) // _SafeStr_6686 = "_-601" (String#8058, DoABC#3) //------------------------------------------------------------ //_-0bw.XMLValidator package _-0bw{ public class XMLValidator { public static function _SafeStr_5516(k:Object, _arg_2:Array):Boolean{ var _local_4:XML; var _local_5:XMLList; if ((((k == null)) || ((_arg_2 == null)))) { return (false); }; var _local_3:int; if ((k is XML)) { _local_4 = (k as XML); _local_3 = 0; while (_local_3 < _arg_2.length) { if (_local_4.attribute(String(_arg_2[_local_3])).length() == 0) { return (false); }; _local_3++; }; } else { if ((k is XMLList)) { _local_5 = (k as XMLList); _local_3 = 0; while (_local_3 < _arg_2.length) { if (_local_4.attribute(String(_arg_2[_local_3])).length() == 0) { return (false); }; _local_3++; }; } else { return (false); }; }; return (true); } } }//package _-0bw // _SafeStr_5516 = "_-62c" (String#2514, DoABC#3) //------------------------------------------------------------ //_-0Bw._SafeStr_2349 package _-0Bw{ public class _SafeStr_2349 { public static const _SafeStr_6736:int = 0; public static const _SafeStr_6737:int = 1; public static const _SafeStr_6738:int = 2; public static const _SafeStr_6739:int = 3; public static const _SafeStr_6740:int = 4; public static const _SafeStr_5865:int = 5; } }//package _-0Bw // _SafeStr_2349 = "_-50R" (String#2017, DoABC#3) // _SafeStr_5865 = "_-4xj" (String#4346, DoABC#3) // _SafeStr_6736 = "_-z1" (String#8334, DoABC#3) // _SafeStr_6737 = "_-3zg" (String#3039, DoABC#3) // _SafeStr_6738 = "_-JO" (String#16674, DoABC#3) // _SafeStr_6739 = "_-bX" (String#20666, DoABC#3) // _SafeStr_6740 = "_-057" (String#9201, DoABC#3) //------------------------------------------------------------ //_-0Bw._SafeStr_3195 package _-0Bw{ public class _SafeStr_3195 { public static const _SafeStr_6741:int = 0; public static const _SafeStr_6742:int = 1; public static const _SafeStr_6743:int = 2; public static function _SafeStr_6744(k:int):String{ switch (k) { case _SafeStr_6743: return ("${trading.mode.free}"); case _SafeStr_6742: return ("${trading.mode.controller}"); case _SafeStr_6741: return ("${trading.mode.not.allowed}"); }; return (""); } } }//package _-0Bw // _SafeStr_3195 = "_-1jU" (String#8866, DoABC#3) // _SafeStr_6741 = "_-11Z" (String#19220, DoABC#3) // _SafeStr_6742 = "_-18K" (String#19760, DoABC#3) // _SafeStr_6743 = "_-jG" (String#11660, DoABC#3) // _SafeStr_6744 = "_-3ze" (String#36119, DoABC#3) //------------------------------------------------------------ //_-0Bw._SafeStr_3231 package _-0Bw{ public class _SafeStr_3231 { public static const _SafeStr_6745:int = 4008; public static const _SafeStr_6746:int = -13001; } }//package _-0Bw // _SafeStr_3231 = "_-e8" (String#22379, DoABC#3) // _SafeStr_6745 = "_-5so" (String#8354, DoABC#3) // _SafeStr_6746 = "_-6V9" (String#29576, DoABC#3) //------------------------------------------------------------ //_-0CF._SafeStr_1 package _-0CF{ import flash.display.MovieClip; public class _SafeStr_1 { static const _SafeStr_6747:Array = new Array([-824019065, 747413455, -1445564105, -1616558106, 276546290, 1752412176, -231396062, -1396134783, -17588779, 349099346, 1738841845, -1248237292, -1179176070, -1536621865, 444940981, -189755510], [1293645512, 417849349, 316170044, -1043233726, -548730195, 1884625619, 739293562, 1114850292, 30020754, 1661456544, -2057485184, -347991991, -486068531, -1859479446, 706086350, -986228809], [1829986083, -1762077137, 1992737750, 1495147477, -1463675773, 2142939418, 1830055199, -873724814, -16123282, -1120589324, 386545607, 1087714901, 147668579, -30486709, -914008635, 2104141474, 1441948046, 1096291008, -1214761556, 1640731428, 741433857, -69040779, -1370061804, -903268683, 1543421451, 0x78B000B7], [-1611539911, -478978883, 1117566178, 820717328, 1120769964, 2009858968, -863271827, 1073308266, 1240993835, 84782315, 1885132759, 297688185, 1789953812, 902445030, 774628011, 1964519946, 81461209, 1353580069, 1365071306, 1106939523, -863271827, 1073308266, -2052204053, -1056395601, -138526629, 595524233, 989261825, 392541175], [-1122617664, -1178892284, -1698449547, 207815257, 1039123086, -914951632, -169489939, -1757663436, 6804140, 418922167, -1196989222, -2089477085, -2072265410, 60686412, 1698870490, -593531382, -1462684489, 579401479, 1550963868, 1764279239, 377061887, -926177561, 43885830, 1488659051, -1559778440, -1233596082, -1113586027, -163644300], [-1722964912, -262699312, 1896000571, -1634266368, -1539057556, -1937977312, 0x59001384, -1236601479, -2082137758, 994816705, -1188878189, 776685366, 1020689354, -1088503787, 10024493, -249905590], [-174767276, -1089728867, 910881895, 1596227239, 1917019462, -531486952, 1126604176, -324326822, -2047479364, -2014708523, 897021712, -1811011290, 1126604176, -324326822, -174767276, -1089728867, -690618219, -1302524004], [1113325174, 1777161105, -1212981160, 438114519, -19558547, 1457945605, 1395569544, -1546180079, -1191174998, -1680278840, -444940406, -135542998, 1143739312, -2091428776, 494858175, 485268272, 833555815, 977722904, -2078972271, -2079831678, -71950089, 540376714, 629530074, 2124758653], [-1246981761, 1744654705, -1067531363, -1311827716, -1002825398, -325409366, -1799987336, -731017856, -781867592, -682704840, 30081199, -971640283, -1710672128, -2007192829, 144329577, -1930381476, 577554130, -898564906, -989888187, -893686637], [-1150296414, -1356448179, 1312248326, 1209225666, -732375642, -460680607, 949733194, -2007985932, -514790126, 601734191, 399312300, 1210095875, 859850327, -1087965095, 1866975642, -518096611, 528826367, -1977255643, -1449549528, -1441151269, -379636455, -128410792], [1592278492, -1410171858, 424420244, -147777083, 644524705, 1492915767, 301430284, -1991714803, 876459725, 1660475766, 1465372530, 1061965596, 1757272975, -484734470, 831105466, -1332298291, 872093877, 1073297241, -1446631648, -1687457462, -1431591105, -1339588398], [342673052, 1255098022, 56633387, 660904095, -606421008, 1956375524, -494259558, 907184132, 2061239361, -1969637441, 1243828923, -409291097, -1424511795, 1941732960, -764580168, 932652882, 138337710, -585975834, 857757856, 555290617, 2103875032, 100651487]); static const _SafeStr_6748:Array = new Array([-442181068, -257970945, 1486829658, 1459925003], [144641718, 1688008290, 1775052360, -2025749956], [870683118, -1626320234, 737144732, 438061051], [-1775614767, 660467792, -1180309238, -1381447503], [1616405068, 1433550055, 1393494782, -479805949], [1160027548, -355580393, -1063736809, 463967538], [-1353690660, -1101925375, 468173525, 1665426115], [1144493791, 81878901, -932197232, -565384094], [1768640319, -283981708, -1683011669, -2122126077], [110461878, 1793519856, -1628800246, -1811744951], [-503865428, 543547349, -1261431616, 1554946603], [-759733488, -988393396, -67460595, -1845384236]); static const _SafeStr_6749:Array = new Array(_SafeStr_1._SafeStr_6750(-649, -342), _SafeStr_1._SafeStr_6750(-648, -343), _SafeStr_1._SafeStr_6750(-651, -340), _SafeStr_1._SafeStr_6750(-650, -341), _SafeStr_1._SafeStr_6750(-645, -346), _SafeStr_1._SafeStr_6750(-644, -347), _SafeStr_1._SafeStr_6750(-647, -344), _SafeStr_1._SafeStr_6750(-646, -345), _SafeStr_1._SafeStr_6750(-641, -350), _SafeStr_1._SafeStr_6750(-640, -351), _SafeStr_1._SafeStr_6750(-643, -348), _SafeStr_1._SafeStr_6750(-642, -349)); static const _SafeStr_6751:Boolean = true; public static function _SafeStr_6750(_arg_1:int, _arg_2:int):String{ var _local_3:String; var _local_4:int; var _local_5:int; var _local_6:int; var _local_7:int; var _local_8:*; var _local_9:*; _local_3 = ""; _local_4 = 0; _local_5 = _SafeStr_6747[((_arg_1 - 5) ^ -654)].length; while (_local_4 < _local_5) { _local_6 = int(_SafeStr_6747[((_arg_1 - 5) ^ -654)][_local_4]); _local_4++; _local_7 = int(_SafeStr_6747[((_arg_1 - 5) ^ -654)][_local_4]); _local_8 = 2654435769; _local_9 = 84941944608; while (_local_9 != 0) { _local_7 = (_local_7 - ((((_local_6 << 4) ^ (_local_6 >>> 5)) + _local_6) ^ (_local_9 + int(_SafeStr_6748[((_arg_2 + 3) ^ -339)][((_local_9 >>> 11) & 3)])))); _local_9 = (_local_9 - _local_8); _local_6 = (_local_6 - ((((_local_7 << 4) ^ (_local_7 >>> 5)) + _local_7) ^ (_local_9 + int(_SafeStr_6748[((_arg_2 + 3) ^ -339)][(_local_9 & 3)])))); }; _local_3 = (_local_3 + (String.fromCharCode(_local_6) + String.fromCharCode(_local_7))); _local_4++; }; if (_local_3.charCodeAt((_local_3.length - 1)) == 0) { _local_3 = _local_3.substring(0, (_local_3.length - 1)); }; return (_local_3); } public static function _SafeStr_5304(_arg_1:MovieClip):Boolean{ return (true); return (false); //dead code } } }//package _-0CF // _SafeStr_1 = "_-Sn" (String#13, DoABC#1) // _SafeStr_5304 = "_-654" (String#23, DoABC#1) // _SafeStr_6747 = "_-6V-" (String#8, DoABC#1) // _SafeStr_6748 = "_-21z" (String#11, DoABC#1) // _SafeStr_6749 = "_-25p" (String#9, DoABC#1) // _SafeStr_6750 = "_-0D4" (String#5, DoABC#1) // _SafeStr_6751 = "_-0sq" (String#12, DoABC#1) //------------------------------------------------------------ //_-0ch._SafeStr_2417 package _-0ch{ public class _SafeStr_2417 { public static const DEFAULT:int = 1; public static const _SafeStr_6533:int = 2; public static const _SafeStr_6534:int = 3; public static const _SafeStr_6535:int = 4; public static const _SafeStr_6752:int = 5; public static const _SafeStr_6753:int = 6; public static const _SafeStr_6754:int = 7; public static const _SafeStr_6755:int = 8; public static const _SafeStr_6756:int = 9; public static const _SafeStr_6757:int = 10; public static const _SafeStr_6003:int = 11; public static const _SafeStr_6758:int = 12; public static const _SafeStr_6522:int = 13; public static const _SafeStr_6523:int = 14; public static const _SafeStr_6524:int = 15; public static const _SafeStr_6525:int = 16; public static const _SafeStr_6759:int = 17; public static const _SafeStr_6760:int = 18; public static const MONSTERPLANT_SEED:int = 19; public static const _SafeStr_6761:int = 20; public static const _SafeStr_6762:int = 21; public static const _SafeStr_6763:int = 22; public static const _SafeStr_5606:int = 23; } }//package _-0ch // _SafeStr_2417 = "_-2Da" (String#1188, DoABC#3) // _SafeStr_5606 = "_-1Kq" (String#19902, DoABC#3) // _SafeStr_6003 = "_-2h5" (String#5708, DoABC#3) // _SafeStr_6522 = "_-Aa" (String#11257, DoABC#3) // _SafeStr_6523 = "_-1jK" (String#10412, DoABC#3) // _SafeStr_6524 = "_-0OL" (String#10978, DoABC#3) // _SafeStr_6525 = "_-4tB" (String#8256, DoABC#3) // _SafeStr_6533 = "_-65H" (String#4469, DoABC#3) // _SafeStr_6534 = "_-1R4" (String#4501, DoABC#3) // _SafeStr_6535 = "_-4Mg" (String#4235, DoABC#3) // _SafeStr_6752 = "_-2Ku" (String#15869, DoABC#3) // _SafeStr_6753 = "_-3rf" (String#6775, DoABC#3) // _SafeStr_6754 = "_-6k-" (String#28666, DoABC#3) // _SafeStr_6755 = "_-6ik" (String#11911, DoABC#3) // _SafeStr_6756 = "_-5OF" (String#8048, DoABC#3) // _SafeStr_6757 = "_-402" (String#22117, DoABC#3) // _SafeStr_6758 = "_-2D7" (String#31968, DoABC#3) // _SafeStr_6759 = "_-4ww" (String#15064, DoABC#3) // _SafeStr_6760 = "_-5-1" (String#27555, DoABC#3) // _SafeStr_6761 = "_-0nF" (String#9588, DoABC#3) // _SafeStr_6762 = "_-yE" (String#13575, DoABC#3) // _SafeStr_6763 = "_-5VZ" (String#13097, DoABC#3) //------------------------------------------------------------ //_-0ch._SafeStr_2625 package _-0ch{ public class _SafeStr_2625 { public static const _SafeStr_6764:int = 1; public static const _SafeStr_6765:int = 2; public static const _SafeStr_6766:int = 3; public static const BADGE:int = 4; public static const BOT:int = 5; public static const GAMES:int = 6; public static const _SafeStr_6767:Array = [_SafeStr_6764, _SafeStr_6765, _SafeStr_6766, BADGE, BOT]; } }//package _-0ch // _SafeStr_2625 = "_-0x9" (String#2996, DoABC#3) // _SafeStr_6764 = "_-2av" (String#9641, DoABC#3) // _SafeStr_6765 = "_-3ah" (String#9687, DoABC#3) // _SafeStr_6766 = "_-6QY" (String#4185, DoABC#3) // _SafeStr_6767 = "_-2lx" (String#14285, DoABC#3) //------------------------------------------------------------ //_-0ch._SafeStr_2629 package _-0ch{ public class _SafeStr_2629 { public static const EMPTY:String = "empty"; public static const _SafeStr_6768:String = "trading"; public static const _SafeStr_5989:String = "recycler"; } }//package _-0ch // _SafeStr_2629 = "_-3Er" (String#6215, DoABC#3) // _SafeStr_5989 = "_-5Pl" (String#7831, DoABC#3) // _SafeStr_6768 = "_-4G0" (String#9244, DoABC#3) //------------------------------------------------------------ //_-0ch._SafeStr_2633 package _-0ch{ public class _SafeStr_2633 { public static const _SafeStr_6769:String = "furni"; public static const _SafeStr_6770:String = "rentables"; public static const _SafeStr_5363:String = "badges"; public static const _SafeStr_6771:String = "effects"; public static const _SafeStr_5986:String = "pets"; public static const _SafeStr_6772:String = "bots"; public static const _SafeStr_6773:String = "marketplace"; } }//package _-0ch // _SafeStr_2633 = "_-5QF" (String#1178, DoABC#3) // _SafeStr_5363 = "_-3A8" (String#5115, DoABC#3) // _SafeStr_5986 = "_-VM" (String#4557, DoABC#3) // _SafeStr_6769 = "_-4Fb" (String#2945, DoABC#3) // _SafeStr_6770 = "_-36X" (String#4066, DoABC#3) // _SafeStr_6771 = "class" (String#3977, DoABC#3) // _SafeStr_6772 = "_-3Nk" (String#5236, DoABC#3) // _SafeStr_6773 = "_-1SY" (String#9296, DoABC#3) //------------------------------------------------------------ //_-0Cn._SafeStr_2358 package _-0Cn{ public interface _SafeStr_2358 { function set credits(_arg_1:int):void; function set clubDays(_arg_1:int):void; function set clubPeriods(_arg_1:int):void; function get _SafeStr_6774():Boolean; function get _SafeStr_6775():int; function set _SafeStr_6774(_arg_1:Boolean):void; function get credits():int; function get clubDays():int; function get clubPeriods():int; function get _SafeStr_6776():Boolean; function get _SafeStr_6777():Boolean; function get _SafeStr_6298():int; function get _SafeStr_6299():int; function _SafeStr_5751(_arg_1:int):int; } }//package _-0Cn // _SafeStr_2358 = "_-3-A" (String#3987, DoABC#3) // _SafeStr_5751 = "_-2EA" (String#7581, DoABC#3) // _SafeStr_6298 = "_-2XW" (String#9331, DoABC#3) // _SafeStr_6299 = "_-2Xz" (String#6449, DoABC#3) // _SafeStr_6774 = "_-371" (String#18491, DoABC#3) // _SafeStr_6775 = "_-3Ao" (String#6072, DoABC#3) // _SafeStr_6776 = "_-5Ce" (String#20420, DoABC#3) // _SafeStr_6777 = "_-6-5" (String#4841, DoABC#3) //------------------------------------------------------------ //_-0Cn._SafeStr_2404 package _-0Cn{ import flash.events.Event; public class _SafeStr_2404 extends Event { public static const _SafeStr_6778:String = "catalog_purse_credit_balance"; public static const _SafeStr_6779:String = "catalog_purse_activity_point_balance"; private var _SafeStr_6780:int; private var _SafeStr_6781:int; public function _SafeStr_2404(k:String, _arg_2:int, _arg_3:int, _arg_4:Boolean=false, _arg_5:Boolean=false){ super(k, _arg_4, _arg_5); this._SafeStr_6780 = _arg_2; this._SafeStr_6781 = _arg_3; } public function get balance():int{ return (this._SafeStr_6780); } public function get activityPointType():int{ return (this._SafeStr_6781); } } }//package _-0Cn // _SafeStr_2404 = "_-1MQ" (String#3496, DoABC#3) // _SafeStr_6778 = "_-qX" (String#5920, DoABC#3) // _SafeStr_6779 = "_-2-t" (String#10806, DoABC#3) // _SafeStr_6780 = "_-0L7" (String#6588, DoABC#3) // _SafeStr_6781 = "_-4MH" (String#3021, DoABC#3) //------------------------------------------------------------ //_-0Cn._SafeStr_2408 package _-0Cn{ import flash.events.Event; public class _SafeStr_2408 extends Event { public static const _SafeStr_6010:String = "catalog_purse_update"; public function _SafeStr_2408(k:Boolean=false, _arg_2:Boolean=false){ super(_SafeStr_6010, k, _arg_2); } } }//package _-0Cn // _SafeStr_2408 = "_-0OZ" (String#5965, DoABC#3) // _SafeStr_6010 = "_-0c8" (String#12700, DoABC#3) //------------------------------------------------------------ //_-0Cn._SafeStr_2479 package _-0Cn{ import _-4Y1._SafeStr_12; public class _SafeStr_2479 { public static const _SafeStr_6782:int = 0; public static const _SafeStr_6783:int = 3; public static const _SafeStr_6784:int = 5; public static const SEASONAL_1:int = 101; public static const SEASONAL_2:int = 102; public static const SEASONAL_3:int = 103; public static const SEASONAL_4:int = 104; public static const SEASONAL_5:int = 105; public static const NO_OP_1:int = 1; public static const NO_OP_2:int = 2; public static const NO_OP_4:int = 4; public static function _SafeStr_6785():Array{ return ([_SafeStr_6782, SEASONAL_1, SEASONAL_2, SEASONAL_3, SEASONAL_4, SEASONAL_5, NO_OP_1, NO_OP_2, NO_OP_4]); } public static function _SafeStr_6014(k:int, _arg_2:_SafeStr_12, _arg_3:Boolean, _arg_4:Boolean=false):int{ var _local_5:String; if (k == -1) { return (((_arg_3) ? 34 : 35)); }; if (k == _SafeStr_6782) { return (((_arg_3) ? 32 : 33)); }; if (k == _SafeStr_6783) { return (((_arg_3) ? 36 : 37)); }; if (k == _SafeStr_6784) { if (_arg_2.getBoolean("diamonds.enabled")) { return (((_arg_3) ? 41 : 42)); }; return (((_arg_3) ? 53 : 54)); }; _local_5 = (((("currencyiconstyle." + ((_arg_3) ? "big" : "small")) + ".") + k) + ((_arg_4) ? ".combo" : "")); return (_arg_2.getInteger(_local_5, 0)); } public static function _SafeStr_5360(k:int):Boolean{ if ([NO_OP_1, NO_OP_2, NO_OP_4].indexOf(k) != 1) { return (false); }; return (true); } } }//package _-0Cn // _SafeStr_12 = "_-0VB" (String#1598, DoABC#3) // _SafeStr_2479 = "_-0Ep" (String#3035, DoABC#3) // _SafeStr_5360 = "_-6Wz" (String#2394, DoABC#3) // _SafeStr_6014 = "_-22C" (String#6724, DoABC#3) // _SafeStr_6782 = "_-zO" (String#6575, DoABC#3) // _SafeStr_6783 = "_-2me" (String#22058, DoABC#3) // _SafeStr_6784 = "_-0qE" (String#10561, DoABC#3) // _SafeStr_6785 = "_-5Qk" (String#37790, DoABC#3) //------------------------------------------------------------ //_-0Cn.Purse package _-0Cn{ import flash.utils.Dictionary; import flash.utils.getTimer; public class Purse implements _SafeStr_2358 { private var _SafeStr_6786:int = 0; private var _SafeStr_6787:Dictionary; private var _SafeStr_6788:int = 0; private var _SafeStr_6789:int = 0; private var _SafeStr_6790:Boolean = false; private var _SafeStr_6791:int = 0; private var _SafeStr_6792:int = 0; private var _SafeStr_6793:Boolean = false; private var _SafeStr_6794:int = 0; private var _SafeStr_6795:int; private var _SafeStr_6796:int; public function Purse(){ this._SafeStr_6787 = new Dictionary(); super(); } public function get credits():int{ return (this._SafeStr_6786); } public function set credits(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6786 = k; } public function get clubDays():int{ return (this._SafeStr_6788); } public function set clubDays(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6788 = k; } public function get clubPeriods():int{ return (this._SafeStr_6789); } public function set clubPeriods(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6789 = k; } public function get _SafeStr_6776():Boolean{ return ((((this._SafeStr_6788 > 0)) || ((this._SafeStr_6789 > 0)))); } public function get _SafeStr_6777():Boolean{ return (this._SafeStr_6790); } public function get _SafeStr_6774():Boolean{ return (this._SafeStr_6793); } public function set _SafeStr_6774(k:Boolean):void{ this._SafeStr_6793 = k; } public function set _SafeStr_6777(k:Boolean):void{ this._SafeStr_6790 = k; } public function get _SafeStr_6298():int{ return (this._SafeStr_6791); } public function set _SafeStr_6298(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6791 = k; } public function get _SafeStr_6299():int{ return (this._SafeStr_6792); } public function set _SafeStr_6299(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6792 = k; } public function get _SafeStr_6797():Dictionary{ return (this._SafeStr_6787); } public function set _SafeStr_6797(k:Dictionary):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6787 = k; } public function _SafeStr_5751(k:int):int{ return (this._SafeStr_6787[k]); } public function set _SafeStr_6775(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6794 = k; } public function get _SafeStr_6775():int{ var k:int = ((getTimer() - this._SafeStr_6796) / (1000 * 60)); var _local_2:int = (this._SafeStr_6794 - k); return ((((_local_2 > 0)) ? _local_2 : 0)); } public function set _SafeStr_6798(k:int):void{ this._SafeStr_6796 = getTimer(); this._SafeStr_6795 = k; } public function get _SafeStr_6798():int{ return (this._SafeStr_6795); } public function get _SafeStr_6799():int{ return (this._SafeStr_6796); } } }//package _-0Cn // _SafeStr_2358 = "_-3-A" (String#3987, DoABC#3) // _SafeStr_5751 = "_-2EA" (String#7581, DoABC#3) // _SafeStr_6298 = "_-2XW" (String#9331, DoABC#3) // _SafeStr_6299 = "_-2Xz" (String#6449, DoABC#3) // _SafeStr_6774 = "_-371" (String#18491, DoABC#3) // _SafeStr_6775 = "_-3Ao" (String#6072, DoABC#3) // _SafeStr_6776 = "_-5Ce" (String#20420, DoABC#3) // _SafeStr_6777 = "_-6-5" (String#4841, DoABC#3) // _SafeStr_6786 = "_-0--" (String#26804, DoABC#3) // _SafeStr_6787 = "_-1R-" (String#20250, DoABC#3) // _SafeStr_6788 = "_-6H4" (String#8547, DoABC#3) // _SafeStr_6789 = "_-6WR" (String#13276, DoABC#3) // _SafeStr_6790 = "_-5I-" (String#9727, DoABC#3) // _SafeStr_6791 = "_-2M5" (String#15950, DoABC#3) // _SafeStr_6792 = "_-6jL" (String#17007, DoABC#3) // _SafeStr_6793 = "_-38T" (String#14427, DoABC#3) // _SafeStr_6794 = "_-6hg" (String#8853, DoABC#3) // _SafeStr_6795 = "_-2z9" (String#9267, DoABC#3) // _SafeStr_6796 = "_-5io" (String#4337, DoABC#3) // _SafeStr_6797 = "_-5sa" (String#24630, DoABC#3) // _SafeStr_6798 = "_-2Gs" (String#9021, DoABC#3) // _SafeStr_6799 = "_-3HT" (String#43850, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_2668 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_2668 implements _SafeStr_2285 { public function _SafeStr_5914():Array{ return ([]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_2668 = "_-0FG" (String#15454, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_2669 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_2669 implements _SafeStr_2285 { public function _SafeStr_5914():Array{ return ([]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_2669 = "_-3vM" (String#14724, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_2687 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_2687 implements _SafeStr_2285 { private var _SafeStr_6800:Boolean; public function _SafeStr_2687(k:Boolean){ this._SafeStr_6800 = k; } public function _SafeStr_5914():Array{ return ([this._SafeStr_6800]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_2687 = "_-4oj" (String#13903, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6800 = "_-1ij" (String#30211, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3905 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_3905 implements _SafeStr_2285 { private var _SafeStr_6664:Array; public function _SafeStr_3905(k:String){ this._SafeStr_6664 = []; super(); this._SafeStr_6664.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3905 = "_-0pZ" (String#10552, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3910 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3910 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3910(k:String, _arg_2:int, _arg_3:int, _arg_4:int, _arg_5:int){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664 = [k, _arg_2, _arg_3, _arg_4, _arg_5]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3910 = "_-0Ot" (String#9893, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3911 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3911 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3911(k:int, _arg_2:int){ this._SafeStr_6664 = []; super(); this._SafeStr_6664 = [k, _arg_2]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return ((this._SafeStr_6664 == null)); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3911 = "_-1yH" (String#9943, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3912 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3912 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3912(k:String, _arg_2:int, _arg_3:int, _arg_4:int, _arg_5:Array){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664.push(k); this._SafeStr_6664.push(_arg_2); this._SafeStr_6664.push(_arg_3); this._SafeStr_6664.push(_arg_4); this._SafeStr_6664.push((_arg_5.length / 2)); this._SafeStr_6664 = this._SafeStr_6664.concat(_arg_5); } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3912 = "_-3q9" (String#8134, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3913 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3913 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3913(k:int, _arg_2:int, _arg_3:int, _arg_4:String){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664 = [k, _arg_2, _arg_3, _arg_4]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3913 = "_-BD" (String#10305, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3915 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3915 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3915(k:String, _arg_2:int, _arg_3:int, _arg_4:String, _arg_5:int){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664 = [k, _arg_2, _arg_3, _arg_4, _arg_5]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3915 = "_-5lE" (String#16314, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3916 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_3916 implements _SafeStr_2285 { public function _SafeStr_5914():Array{ return ([]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3916 = "_-2TN" (String#15250, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3917 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3917 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3917(k:int, _arg_2:int, _arg_3:int, _arg_4:int, _arg_5:String){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664 = [k, _arg_2, _arg_3, _arg_4, _arg_5]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3917 = "_-0ue" (String#10143, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3920 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3920 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3920(k:String, _arg_2:int, _arg_3:int, _arg_4:Array){ this._SafeStr_6664 = new Array(); super(); this._SafeStr_6664.push(k); this._SafeStr_6664.push(_arg_2); this._SafeStr_6664.push(_arg_3); this._SafeStr_6664.push((_arg_4.length / 2)); this._SafeStr_6664 = this._SafeStr_6664.concat(_arg_4); } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return (false); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3920 = "_-1X7" (String#10021, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3979 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_3979 implements _SafeStr_2285 { public function _SafeStr_5914():Array{ return ([]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3979 = "_-2NY" (String#25080, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3992 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3992 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_3992(k:Boolean){ this._SafeStr_6664 = []; super(); this._SafeStr_6664 = [k]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return ((this._SafeStr_6664 == null)); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3992 = "_-53i" (String#11072, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_3994 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_3994 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_3994(k:Boolean){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3994 = "_-2CG" (String#10185, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4002 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4002 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4002(k:Boolean, _arg_2:Boolean, _arg_3:Boolean, _arg_4:Boolean){ this._SafeStr_5513 = []; super(); this._SafeStr_5513 = [k, _arg_2, _arg_3, _arg_4]; } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4002 = "_-0a5" (String#6007, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4010 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4010 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4010(){ this._SafeStr_5513 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4010 = "_-2L8" (String#10402, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4028 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_4028 implements _SafeStr_2285 { private var _SafeStr_6801:String; public function _SafeStr_4028(k:String){ this._SafeStr_6801 = k; } public function _SafeStr_5914():Array{ return ([this._SafeStr_6801]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_4028 = "_-5Xj" (String#21573, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6801 = "_-0QK" (String#15529, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4050 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_4050 implements _SafeStr_2285 { private var _SafeStr_6802:int; public function _SafeStr_4050(k:int){ this._SafeStr_6802 = k; } public function _SafeStr_5914():Array{ return ([this._SafeStr_6802]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_4050 = "_-2y4" (String#23273, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6802 = "_-0H3" (String#3451, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4071 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4071 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_4071(k:int){ this._SafeStr_6664 = []; super(); this._SafeStr_6664 = [k]; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return ((this._SafeStr_6664 == null)); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4071 = "_-3ir" (String#8632, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4097 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4097 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4097(){ this._SafeStr_5513 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4097 = "_-0xI" (String#15475, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4100 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4100 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_6664:Array; public function _SafeStr_4100(){ this._SafeStr_6664 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } public function get disposed():Boolean{ return ((this._SafeStr_6664 == null)); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4100 = "_-5KP" (String#6985, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4151 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4151 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4151(){ this._SafeStr_5513 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4151 = "_-26Q" (String#10026, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4169 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4169 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4169(k:Boolean){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4169 = "_-5g" (String#6027, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4184 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4184 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4184(){ this._SafeStr_5513 = []; super(); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4184 = "_-O4" (String#16779, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4200 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_4200 implements _SafeStr_2285 { private var _SafeStr_5718:int; public function _SafeStr_4200(k:int){ this._SafeStr_5718 = k; } public function _SafeStr_5914():Array{ return ([this._SafeStr_5718]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_4200 = "_-2zf" (String#22977, DoABC#3) // _SafeStr_5718 = "_-0i6" (String#2167, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4208 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4208 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4208(k:int, _arg_2:String){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); this._SafeStr_5513.push(_arg_2); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4208 = "_-2eD" (String#9919, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4212 package _-0Dx{ import _-2jU._SafeStr_2285; public class _SafeStr_4212 implements _SafeStr_2285 { public function _SafeStr_5914():Array{ return ([]); } public function dispose():void{ } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_4212 = "_-3AY" (String#25991, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4213 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4213 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4213(k:String){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4213 = "_-5IG" (String#14433, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4261 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4261 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4261(k:String){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4261 = "_-61N" (String#13601, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx._SafeStr_4281 package _-0Dx{ import _-2jU._SafeStr_2285; import _-4Y1._SafeStr_3; public class _SafeStr_4281 implements _SafeStr_2285, _SafeStr_3 { private var _SafeStr_5513:Array; private var _disposed:Boolean = false; public function _SafeStr_4281(k:Boolean){ this._SafeStr_5513 = []; super(); this._SafeStr_5513.push(k); } public function _SafeStr_5914():Array{ return (this._SafeStr_5513); } public function dispose():void{ this._SafeStr_5513 = null; this._disposed = true; } public function get disposed():Boolean{ return (this._disposed); } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_4281 = "_-33y" (String#15234, DoABC#3) // _SafeStr_5513 = "_-ZV" (String#61, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) //------------------------------------------------------------ //_-0Dx.PostQuizAnswersComposer package _-0Dx{ import _-2jU._SafeStr_2285; public class PostQuizAnswersComposer implements _SafeStr_2285 { private var _SafeStr_6664:Array; public function PostQuizAnswersComposer(k:String, _arg_2:Array){ this._SafeStr_6664 = []; super(); this._SafeStr_6664.push(k); this._SafeStr_6664.push(_arg_2.length); var _local_3:int; while (_local_3 < _arg_2.length) { this._SafeStr_6664.push(_arg_2[_local_3]); _local_3++; }; } public function _SafeStr_5914():Array{ return (this._SafeStr_6664); } public function dispose():void{ this._SafeStr_6664 = null; } } }//package _-0Dx // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_5914 = "_-0hu" (String#257, DoABC#3) // _SafeStr_6664 = "_-5MW" (String#125, DoABC#3) //------------------------------------------------------------ //_-0fE._SafeStr_3471 package _-0fE{ import _-2jU._SafeStr_2278; import _-1W3._SafeStr_3469; public class _SafeStr_3471 extends _SafeStr_2278 { public function _SafeStr_3471(k:Function){ super(k, _SafeStr_3469); } public function _SafeStr_5729():_SafeStr_3469{ return ((_SafeStr_5915 as _SafeStr_3469)); } } }//package _-0fE // _SafeStr_2278 = "_-0jq" (String#67, DoABC#3) // _SafeStr_3469 = "_-3Pu" (String#9180, DoABC#3) // _SafeStr_3471 = "_-5Y3" (String#7215, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5915 = "_-3BT" (String#250, DoABC#3) //------------------------------------------------------------ //_-0fE._SafeStr_3755 package _-0fE{ import _-2jU._SafeStr_2278; import _-1W3._SafeStr_3735; public class _SafeStr_3755 extends _SafeStr_2278 { public function _SafeStr_3755(k:Function){ super(k, _SafeStr_3735); } public function _SafeStr_5729():_SafeStr_3735{ return ((_SafeStr_5915 as _SafeStr_3735)); } } }//package _-0fE // _SafeStr_2278 = "_-0jq" (String#67, DoABC#3) // _SafeStr_3735 = "_-61X" (String#10243, DoABC#3) // _SafeStr_3755 = "_-0bx" (String#10944, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5915 = "_-3BT" (String#250, DoABC#3) //------------------------------------------------------------ //_-0fE._SafeStr_3781 package _-0fE{ import _-2jU._SafeStr_2278; import _-1W3._SafeStr_3722; public class _SafeStr_3781 extends _SafeStr_2278 { public function _SafeStr_3781(k:Function){ super(k, _SafeStr_3722); } public function _SafeStr_5729():_SafeStr_3722{ return ((_SafeStr_5915 as _SafeStr_3722)); } } }//package _-0fE // _SafeStr_2278 = "_-0jq" (String#67, DoABC#3) // _SafeStr_3722 = "_-cv" (String#10668, DoABC#3) // _SafeStr_3781 = "_-wh" (String#12199, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5915 = "_-3BT" (String#250, DoABC#3) //------------------------------------------------------------ //_-0fE._SafeStr_4112 package _-0fE{ import _-2jU._SafeStr_2278; import _-1W3._SafeStr_4961; public class _SafeStr_4112 extends _SafeStr_2278 { public function _SafeStr_4112(k:Function){ super(k, _SafeStr_4961); } public function _SafeStr_5729():_SafeStr_4961{ return ((_SafeStr_5915 as _SafeStr_4961)); } } }//package _-0fE // _SafeStr_2278 = "_-0jq" (String#67, DoABC#3) // _SafeStr_4112 = "_-jP" (String#11162, DoABC#3) // _SafeStr_4961 = "_-6Ee" (String#12068, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_5915 = "_-3BT" (String#250, DoABC#3) //------------------------------------------------------------ //_-0fm._SafeStr_1417 package _-0fm{ import _-4Y1._SafeStr_8; import flash.events.IEventDispatcher; public interface _SafeStr_1417 extends _SafeStr_8 { function get events():IEventDispatcher; function get _SafeStr_6803():Boolean; function get _SafeStr_6804():Boolean; function loadGameClient(_arg_1:int, _arg_2:String, _arg_3:String, _arg_4:String, _arg_5:String, _arg_6:int, _arg_7:int, _arg_8:int, _arg_9:Object):void; function _SafeStr_6805(_arg_1:int, _arg_2:String, _arg_3:String, _arg_4:String=""):void; function _SafeStr_6806(_arg_1:int, _arg_2:String, _arg_3:String):void; function joinPlayerQueue(_arg_1:int):void; function _SafeStr_6807(_arg_1:int):void; function acceptGameInvite(_arg_1:int, _arg_2:int):void; function showGameCenter(_arg_1:String, _arg_2:int=0, _arg_3:Boolean=false):void; function showGameCenterByGameName(_arg_1:String, _arg_2:String, _arg_3:Boolean=false):void; function _SafeStr_6808():void; function _SafeStr_6809(_arg_1:int):String; function getGameId(_arg_1:String):int; function getGameAssetURL(_arg_1:int, _arg_2:String):String; } }//package _-0fm // _SafeStr_1417 = "_-5LD" (String#3814, DoABC#3) // _SafeStr_6803 = "_-pa" (String#25040, DoABC#3) // _SafeStr_6804 = "_-2uA" (String#18767, DoABC#3) // _SafeStr_6805 = "_-2VH" (String#31228, DoABC#3) // _SafeStr_6806 = "_-1kr" (String#12665, DoABC#3) // _SafeStr_6807 = "_-6Dl" (String#13611, DoABC#3) // _SafeStr_6808 = "_-2JR" (String#18070, DoABC#3) // _SafeStr_6809 = "_-6ST" (String#34042, DoABC#3) // _SafeStr_8 = "_-6in" (String#1560, DoABC#3) //------------------------------------------------------------ //_-0fm._SafeStr_2730 package _-0fm{ public class _SafeStr_2730 { public static const _SafeStr_6810:String = "basejump"; } }//package _-0fm // _SafeStr_2730 = "_-1hD" (String#18227, DoABC#3) // _SafeStr_6810 = "_-2FZ" (String#18275, DoABC#3) //------------------------------------------------------------ //_-0fm._SafeStr_4349 package _-0fm{ public class _SafeStr_4349 { public static const _SafeStr_6811:String = "GAE_ICON"; public static const _SafeStr_6812:String = "GAE_SMALL_ICON"; public static const _SafeStr_6813:String = "GAE_LOGO"; public static const _SafeStr_6814:String = "GAE_GRADIENT"; public static const _SafeStr_6815:String = "GAE_THEME"; } }//package _-0fm // _SafeStr_4349 = "_-5Q-" (String#5952, DoABC#3) // _SafeStr_6811 = "_-20t" (String#19984, DoABC#3) // _SafeStr_6812 = "_-5P2" (String#15412, DoABC#3) // _SafeStr_6813 = "_-3bc" (String#14821, DoABC#3) // _SafeStr_6814 = "_-5gq" (String#30988, DoABC#3) // _SafeStr_6815 = "_-y-" (String#19209, DoABC#3) //------------------------------------------------------------ //_-0fm.HabboGameManager package _-0fm{ import _-4Y1.Component; import _-3va._SafeStr_36; import _-67y._SafeStr_1375; import _-3xK._SafeStr_637; import _-Qx._SafeStr_500; import _-5A9._SafeStr_2175; import _-5A9._SafeStr_198; import _-11z._SafeStr_2155; import _-40e._SafeStr_13; import _-3WJ._SafeStr_431; import _-5x9._SafeStr_2213; import _-1Y6._SafeStr_1357; import _-Qa._SafeStr_1202; import _-Zf._SafeStr_270; import _-1JS.SharedMessageHandler; import _-07J.JsMessageHandler; import _-18p._SafeStr_2727; import _-1Tx._SafeStr_2653; import flash.display.Loader; import com.sulake.iid.IIDHabboWindowManager; import com.sulake.iid.IIDHabboCommunicationManager; import com.sulake.iid.IIDHabboConfigurationManager; import com.sulake.iid.IIDHabboLocalizationManager; import com.sulake.iid.IIDSessionDataManager; import com.sulake.iid.IIDHabboRoomSessionManager; import com.sulake.iid.IIDAvatarRenderManager; import com.sulake.iid.IIDHabboToolbar; import com.sulake.iid.IIDHabboCatalog; import com.sulake.iid.IIDHabboLandingView; import com.sulake.iid.IIDRoomEngine; import com.sulake.iid.IIDHabboHelp; import com.sulake.iid.IIDHabboInventory; import com.sulake.iid.IIDHabboNavigator; import _-4Y1._SafeStr_9; import _-3UH._SafeStr_10; import _-5A9._SafeStr_2439; import _-3Xw._SafeStr_2297; import _-4Y1._SafeStr_34; import _-4Y1._SafeStr_8; import _-18p.GameConfigurations; import _-11z.HabboToolbarIconEnum; import _-2w9._SafeStr_2734; import _-2jU._SafeStr_2285; import _-2rM._SafeStr_2309; import _-2a8._SafeStr_2286; import _-35T._SafeStr_6; import _-2cB._SafeStr_2728; import _-11z._SafeStr_2736; import _-vp._SafeStr_2737; import _-vp._SafeStr_2731; import flash.system.LoaderContext; import _-WS.PlayerVersionCheck; import _-vp._SafeStr_2729; import flash.net.URLRequest; import flash.events.MouseEvent; import flash.events.Event; import flash.events.IOErrorEvent; import flash.events.SecurityErrorEvent; import flash.events.ProgressEvent; import flash.system.Capabilities; import flash.system.ApplicationDomain; import flash.system.SecurityDomain; import flash.events.UncaughtErrorEvent; import flash.display.Stage; import _-0ch._SafeStr_2625; import flash.net.URLVariables; import flash.display.DisplayObject; import _-6a2.Core; import flash.display.StageScaleMode; import _-1JS.SharedEventToGameEnum; import _-vp._SafeStr_2735; import _-vp._SafeStr_2732; import _-vp._SafeStr_2733; import flash.events.ErrorEvent; import flash.net.URLRequestMethod; import flash.net.sendToURL; public class HabboGameManager extends Component implements _SafeStr_1417, _SafeStr_36 { private static const EMBEDDED:int = 0; private static const IFRAME:int = 1; private var _SafeStr_5337:_SafeStr_1375; private var _SafeStr_5338:_SafeStr_637; private var _SafeStr_5776:_SafeStr_500; private var _SafeStr_6816:_SafeStr_2175; private var _SafeStr_6817:_SafeStr_198; private var _SafeStr_6818:_SafeStr_2155; private var _SafeStr_6819:_SafeStr_13; private var _SafeStr_5539:_SafeStr_431; private var _SafeStr_5775:_SafeStr_2213; private var _SafeStr_6820:_SafeStr_1357; private var _SafeStr_6821:_SafeStr_1202; private var _SafeStr_6822:_SafeStr_270; private var _SafeStr_6823:IncomingMessages; private var _SafeStr_6824:SharedMessageHandler; private var _SafeStr_6825:JsMessageHandler; private var _SafeStr_6826:Boolean = false; private var _SafeStr_6827:Boolean = false; private var _SafeStr_6828:Boolean = false; private var _SafeStr_6829:_SafeStr_2727; private var _SafeStr_6830:_SafeStr_2653; private var _SafeStr_6831:Loader; private var _SafeStr_6832:String; private var _SafeStr_6833:String; private var _SafeStr_6834:String; private var _SafeStr_6835:int; private var _SafeStr_6836:String; private var _SafeStr_6837:int; private var _SafeStr_6838:int = -1; private var _SafeStr_6839:int = -1; private var _SafeStr_6840:int = -1; private var _SafeStr_6841:Array; private var _SafeStr_6842:Boolean = false; private var _SafeStr_6843:int = 0; private var _SafeStr_6844:String = ""; public function HabboGameManager(k:_SafeStr_9, _arg_2:uint=0, _arg_3:_SafeStr_10=null){ super(k, _arg_2, _arg_3); queueInterface(new IIDHabboWindowManager(), this._SafeStr_6845); queueInterface(new IIDHabboCommunicationManager(), this._SafeStr_6846); queueInterface(new IIDHabboConfigurationManager(), this._SafeStr_6847); queueInterface(new IIDHabboLocalizationManager(), this._SafeStr_6848); queueInterface(new IIDSessionDataManager(), this._SafeStr_6849); queueInterface(new IIDHabboRoomSessionManager(), this._SafeStr_6850); queueInterface(new IIDAvatarRenderManager(), this._SafeStr_6851); queueInterface(new IIDHabboToolbar(), this._SafeStr_6852); queueInterface(new IIDHabboCatalog(), this._SafeStr_6853); queueInterface(new IIDHabboLandingView(), this._SafeStr_6854); queueInterface(new IIDRoomEngine(), this.onRoomEngineReady); queueInterface(new IIDHabboHelp(), this._SafeStr_6855); queueInterface(new IIDHabboInventory(), this._SafeStr_6856); queueInterface(new IIDHabboNavigator(), this._SafeStr_6857); this._SafeStr_6825 = new JsMessageHandler(this, true); k.addLinkEventTracker(this); HabboGamesCom.log(("HabboGameManager initialized: " + _arg_3)); } public function get windowManager():_SafeStr_637{ return (this._SafeStr_5338); } public function get sessionDataManager():_SafeStr_2175{ return (this._SafeStr_6816); } public function get communication():_SafeStr_1375{ return (this._SafeStr_5337); } public function get localization():_SafeStr_500{ return (this._SafeStr_5776); } public function get _SafeStr_6858():_SafeStr_13{ return (this._SafeStr_6819); } public function get roomEngine():_SafeStr_2213{ return (this._SafeStr_5775); } public function get inventory():_SafeStr_1202{ return (this._SafeStr_6821); } public function get navigator():_SafeStr_270{ return (this._SafeStr_6822); } public function get _SafeStr_6803():Boolean{ return (((this._SafeStr_6826) || (((this._SafeStr_6827) && (this.sessionDataManager.hasSecurity(_SafeStr_2439._SafeStr_6344)))))); } public function get _SafeStr_6804():Boolean{ return (this._SafeStr_6828); } public function set _SafeStr_6859(k:Boolean):void{ this._SafeStr_6828 = k; } override public function dispose():void{ if (this._SafeStr_5337) { this._SafeStr_5337.release(new IIDHabboCommunicationManager()); this._SafeStr_5337 = null; }; context.removeLinkEventTracker(this); if (this._SafeStr_5338) { this._SafeStr_5338.release(new IIDHabboWindowManager()); this._SafeStr_5338 = null; }; if (this._SafeStr_5776) { this._SafeStr_5776.release(new IIDHabboLocalizationManager()); this._SafeStr_5776 = null; }; if (this._SafeStr_6816 != null) { this._SafeStr_6816.release(new IIDSessionDataManager()); this._SafeStr_6816 = null; }; if (this._SafeStr_6820 != null) { this._SafeStr_6820.release(new IIDHabboHelp()); this._SafeStr_6820 = null; }; if (this._SafeStr_6818) { if (this._SafeStr_6818.events) { this._SafeStr_6818.events.removeEventListener(_SafeStr_2297._SafeStr_6860, this._SafeStr_6861); }; this._SafeStr_6818.release(new IIDHabboToolbar()); this._SafeStr_6818 = null; }; if (this._SafeStr_6819 != null) { this._SafeStr_6819.release(new IIDAvatarRenderManager()); this._SafeStr_6819 = null; }; if (this._SafeStr_5539 != null) { this._SafeStr_5539.release(new IIDHabboCatalog()); this._SafeStr_5539 = null; }; if (this._SafeStr_6823) { this._SafeStr_6823.dispose(); this._SafeStr_6823 = null; }; if (this._SafeStr_6830) { this._SafeStr_6830.release(new IIDHabboLandingView()); this._SafeStr_6830 = null; }; if (this._SafeStr_5775) { this._SafeStr_5775.release(new IIDRoomEngine()); this._SafeStr_5775 = null; }; if (this._SafeStr_6821) { this._SafeStr_6821.release(new IIDHabboInventory()); this._SafeStr_6821 = null; }; if (this._SafeStr_6822) { this._SafeStr_6822.release(new IIDHabboNavigator()); this._SafeStr_6822 = null; }; if (this._SafeStr_6824) { this._SafeStr_6824.dispose(); this._SafeStr_6824 = null; }; if (this._SafeStr_6825) { this._SafeStr_6825.dispose(); this._SafeStr_6825 = null; }; this._SafeStr_6839 = -1; super.dispose(); } private function _SafeStr_6845(k:_SafeStr_34, _arg_2:_SafeStr_8):void{ this._SafeStr_5338 = (_arg_2 as _SafeStr_637); WindowUtils.init(assets, this._SafeStr_5338); } private function _SafeStr_6846(k:_SafeStr_34, _arg_2:_SafeStr_8):void{ this._SafeStr_5337 = (_arg_2 as _SafeStr_1375); this._SafeStr_6823 = new IncomingMessages(this); } private function _SafeStr_6847(k:_SafeStr_34, _arg_2:_SafeStr_8):void{ this._SafeStr_6826 = getBoolean("game.center.enabled"); this._SafeStr_6827 = getBoolean("game.center.enabled.forStaff"); } private function _SafeStr_6848(k:_SafeStr_34, _arg_2:_SafeStr_8):void{ this._SafeStr_5776 = (_arg_2 as _SafeStr_500); } private function _SafeStr_6849(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_6816 = (_arg_2 as _SafeStr_2175); } private function _SafeStr_6850(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_6817 = (_arg_2 as _SafeStr_198); } private function _SafeStr_6851(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_6819 = (_arg_2 as _SafeStr_13); } private function _SafeStr_6852(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_6818 = (_arg_2 as _SafeStr_2155); this._SafeStr_6818.events.addEventListener(_SafeStr_2297._SafeStr_6860, this._SafeStr_6861); } private function _SafeStr_6853(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_5539 = (_arg_2 as _SafeStr_431); } private function _SafeStr_6854(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ if (disposed) { return; }; this._SafeStr_6830 = (_arg_2 as _SafeStr_2653); } private function onRoomEngineReady(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ this._SafeStr_5775 = (_arg_2 as _SafeStr_2213); } private function _SafeStr_6855(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ if (disposed) { return; }; this._SafeStr_6820 = (_arg_2 as _SafeStr_1357); } private function _SafeStr_6856(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ if (disposed) { return; }; this._SafeStr_6821 = (_arg_2 as _SafeStr_1202); } private function _SafeStr_6857(k:_SafeStr_34=null, _arg_2:_SafeStr_8=null):void{ if (disposed) { return; }; this._SafeStr_6822 = (_arg_2 as _SafeStr_270); } public function _SafeStr_6862(k:int):void{ this._SafeStr_6843 = k; } public function _SafeStr_6863():int{ var k:String = getProperty("game.center.promoted_game"); var _local_2:int = GameConfigurations.getId(k); return (_local_2); } public function _SafeStr_6864():void{ var k:String = GameConfigurations._SafeStr_6865(this._SafeStr_6863()); if (((((!((k == null))) && (!(this._SafeStr_6842)))) && ((this._SafeStr_6843 == 0)))) { this._SafeStr_6842 = true; this._SafeStr_6820._SafeStr_6866(HabboToolbarIconEnum.GAMES, (k.toLowerCase() + ".promotion"), _SafeStr_2734.LEFT, "GAMES"); }; } public function send(k:_SafeStr_2285):void{ if (this._SafeStr_5337) { this._SafeStr_5337.connection.send(k); }; } public function _SafeStr_6867(k:String, _arg_2:String, _arg_3:int=-1):void{ this._SafeStr_5539.openClubCenter(); this._SafeStr_6868(k, _arg_2); } public function alert(k:String):void{ if (((this._SafeStr_6803) && (this._SafeStr_6829))) { this._SafeStr_6829._SafeStr_6869(k); }; } public function _SafeStr_6868(k:String, _arg_2:String, _arg_3:String="", _arg_4:int=0):void{ var _local_5:_SafeStr_2309 = this._SafeStr_5337.connection; if (((_local_5) && (!((_arg_2 == ""))))) { this.send(new _SafeStr_2286("GameCenter", k, _arg_2, _arg_3, _arg_4)); }; } private function _SafeStr_6861(k:_SafeStr_2297):void{ switch (k._SafeStr_6870) { case HabboToolbarIconEnum.GAMES: if (this._SafeStr_6803) { this.showGameCenterByGameName("showGameCenter.toolBarClick", this._SafeStr_6871); }; return; case HabboToolbarIconEnum.STORIES: _SafeStr_4.log("stories button click"); if (this._SafeStr_6826) { if (getInteger("spaweb", 0) == 1) { _SafeStr_6.openPage("/stories"); _SafeStr_4.log("calling openPage to stories"); } else { this.showGameCenterByGameName("showGameCenter.toolBarClick", "elisa_habbo_stories", true); _SafeStr_4.log("old game center opening of stories"); }; }; return; case HabboToolbarIconEnum.RECEPTION: this._SafeStr_6808(); return; }; } private function get _SafeStr_6871():String{ return (((propertyExists("game.center.default_game")) ? getProperty("game.center.default_game") : _SafeStr_2730._SafeStr_6810)); } public function showGameCenterByGameName(k:String, _arg_2:String, _arg_3:Boolean=false):void{ var _local_4:Array = _arg_2.split("?"); _arg_2 = _local_4[0]; if (_local_4.length > 1) { this._SafeStr_6844 = ("?" + _local_4[1]); }; var _local_5:int = GameConfigurations.getId(_arg_2); if (_local_5 > -1) { this.showGameCenter(k, _local_5, _arg_3); } else { _local_5 = GameConfigurations.getId(this._SafeStr_6871); this.showGameCenter(k, _local_5); }; } public function showGameCenter(k:String, _arg_2:int=0, _arg_3:Boolean=false):void{ this._SafeStr_6872(); if (!this._SafeStr_6829) { this._SafeStr_6829 = new _SafeStr_2727(this); }; if (((this._SafeStr_6817) && (this._SafeStr_6817.getSession(-1)))) { this._SafeStr_6817._SafeStr_6873(-1, false); this.send(new _SafeStr_2728()); }; this._SafeStr_6818._SafeStr_6874(_SafeStr_2736._SafeStr_6875); this._SafeStr_6829.initialize(_arg_2, _arg_3); this._SafeStr_6868(GameConfigurations._SafeStr_6865(_arg_2), k); if (this._SafeStr_6822) { this._SafeStr_6822._SafeStr_6876(); }; } private function _SafeStr_6872():void{ GameConfigurations._SafeStr_6877 = false; this.send(new _SafeStr_2737()); this.send(new _SafeStr_2731()); } public function _SafeStr_6808():void{ if (this._SafeStr_6829) { this._SafeStr_6829.disable(); }; } public function loadGameClient(k:int, _arg_2:String, _arg_3:String, _arg_4:String, _arg_5:String, _arg_6:int, _arg_7:int, _arg_8:int, _arg_9:Object):void{ var _local_12:LoaderContext; if (!PlayerVersionCheck._SafeStr_6878(_arg_7, _arg_8)) { this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "versionCheckFailed"); this.send(new _SafeStr_2729(k)); this._SafeStr_5776.registerParameter("gamecenter.flash_version_required", "version", ((_arg_7 + ".") + _arg_8)); this.alert("${gamecenter.flash_version_required}"); return; }; var _local_10:Loader = new Loader(); var _local_11:URLRequest = new URLRequest(_arg_3); _local_10.addEventListener(MouseEvent.CLICK, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.DOUBLE_CLICK, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_UP, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_DOWN, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_OVER, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_OUT, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_MOVE, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.MOUSE_WHEEL, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.ROLL_OVER, this._SafeStr_6879); _local_10.addEventListener(MouseEvent.ROLL_OUT, this._SafeStr_6879); _local_10.contentLoaderInfo.addEventListener(Event.COMPLETE, this._SafeStr_6880); _local_10.contentLoaderInfo.addEventListener(Event.INIT, this._SafeStr_6881); _local_10.contentLoaderInfo.addEventListener(Event.UNLOAD, this._SafeStr_6882); _local_10.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this._SafeStr_6883); _local_10.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this._SafeStr_6884); _local_10.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, this._SafeStr_6885); if (_local_10.contentLoaderInfo.hasOwnProperty("uncaughtErrorEvents")) { _local_10.contentLoaderInfo["uncaughtErrorEvents"].addEventListener("uncaughtError", this._SafeStr_6886, true, int.MAX_VALUE); _local_10.contentLoaderInfo["uncaughtErrorEvents"].addEventListener("uncaughtError", this._SafeStr_6886, false, int.MAX_VALUE); }; this._SafeStr_6831 = _local_10; this._SafeStr_6832 = _arg_2; if (this._SafeStr_6824) { this._SafeStr_6824.dispose(); }; this._SafeStr_6824 = new SharedMessageHandler(this, _local_10.contentLoaderInfo.sharedEvents); this._SafeStr_6833 = _arg_4; this._SafeStr_6834 = _arg_5; this._SafeStr_6835 = _arg_6; if (Capabilities.playerType == "StandAlone") { _local_12 = new LoaderContext(false, new ApplicationDomain()); } else { _local_12 = new LoaderContext(false, new ApplicationDomain(), SecurityDomain.currentDomain); }; _local_11.data = this._SafeStr_6887(_arg_9); if (PlayerVersionCheck._SafeStr_6878(10, 2)) { _local_11.data = null; _local_12.parameters = _arg_9; }; _local_10.load(_local_11, _local_12); _local_10.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, this._SafeStr_6886, true, int.MAX_VALUE); _local_10.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, this._SafeStr_6886, false, int.MAX_VALUE); var _local_13:Stage = context.displayObjectContainer.stage; this._SafeStr_6836 = _local_13.quality; this._SafeStr_6837 = _local_13.frameRate; this._SafeStr_6839 = k; this._SafeStr_6840 = EMBEDDED; this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "loadGameClient"); this.inventory._SafeStr_5347._SafeStr_6888(_SafeStr_2625.GAMES, [k]); if (this._SafeStr_6829) { this._SafeStr_6829._SafeStr_6889(k); }; } public function _SafeStr_6805(k:int, _arg_2:String, _arg_3:String, _arg_4:String=""):void{ if (_arg_3.indexOf("?") != -1) { _arg_4.replace("?", "&"); }; _SafeStr_6.showGame((_arg_3 + this._SafeStr_6844)); this._SafeStr_6844 = ""; this._SafeStr_6839 = k; this._SafeStr_6840 = IFRAME; this._SafeStr_6832 = _arg_2; this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "loadGameClient"); this.inventory._SafeStr_5347._SafeStr_6888(_SafeStr_2625.GAMES, [k]); if (this._SafeStr_6829) { this._SafeStr_6829._SafeStr_6889(k); }; } private function _SafeStr_6887(k:Object):URLVariables{ var _local_3:String; var _local_2:URLVariables = new URLVariables(); for (_local_3 in k) { _local_2[_local_3] = k[_local_3]; }; return (_local_2); } private function _SafeStr_6881(k:Event):void{ var _local_4:DisplayObject; var _local_2:Stage = context.displayObjectContainer.stage; _local_2.quality = this._SafeStr_6833; _local_2.frameRate = this._SafeStr_6835; this._SafeStr_6841 = new Array(); var _local_3:int = (_local_2.numChildren - 1); while (_local_3 >= 0) { _local_4 = _local_2.getChildAt(_local_3); this._SafeStr_6841.push(_local_4); _local_2.removeChildAt(_local_3); _local_3--; }; this._SafeStr_6841.reverse(); _local_2.addEventListener(Event.RESIZE, this._SafeStr_6890); _local_2.addChild(this._SafeStr_6831); Core._SafeStr_6892._SafeStr_6891(0); this._SafeStr_6890(); } private function _SafeStr_6880(k:Event):void{ HabboGamesCom.log("[HabboGameManager] external game client complete"); this._SafeStr_6890(); this._SafeStr_5912(); } public function _SafeStr_5912():void{ this._SafeStr_6868(GameConfigurations._SafeStr_6865(this._SafeStr_6839), "gameClientLoaded"); } private function _SafeStr_6890(k:Event=null):void{ var _local_2:Stage; var _local_3:Number; var _local_4:Number; if (disposed) { return; }; _local_2 = context.displayObjectContainer.stage; if (this._SafeStr_6831) { switch (this._SafeStr_6834) { case StageScaleMode.SHOW_ALL: _local_3 = (this._SafeStr_6831.width / this._SafeStr_6831.height); _local_4 = (_local_2.stageWidth / _local_2.stageHeight); if (_local_3 > _local_4) { this._SafeStr_6831.width = _local_2.stageWidth; this._SafeStr_6831.scaleY = this._SafeStr_6831.scaleX; } else { this._SafeStr_6831.height = _local_2.stageHeight; this._SafeStr_6831.scaleX = this._SafeStr_6831.scaleY; }; this._SafeStr_6831.x = ((_local_2.stageWidth - this._SafeStr_6831.width) / 2); this._SafeStr_6831.y = ((_local_2.stageHeight - this._SafeStr_6831.height) / 2); break; case StageScaleMode.NO_SCALE: this._SafeStr_6831.width = _local_2.stageWidth; this._SafeStr_6831.height = _local_2.stageHeight; this._SafeStr_6831.scaleX = 1; this._SafeStr_6831.scaleY = 1; this._SafeStr_6831.x = 0; this._SafeStr_6831.y = 0; break; }; if (((this._SafeStr_6824) && ((this._SafeStr_6824._SafeStr_6893 > -1)))) { this._SafeStr_6824.send(this._SafeStr_6824._SafeStr_6893, SharedEventToGameEnum.RESIZE_UPDATE, new Array(_local_2.stageWidth, _local_2.stageHeight)); }; }; } private function _SafeStr_6883(k:IOErrorEvent):void{ HabboGamesCom.log("[HabboGameManager] external game client IO error"); context.error(("IOError while loading game client for " + this._SafeStr_6839), false); this._SafeStr_6806(this._SafeStr_6839, this._SafeStr_6832, "loadGameClientError"); } private function _SafeStr_6884(k:SecurityErrorEvent):void{ HabboGamesCom.log("[HabboGameManager] external game client security error"); context.error(("SecurityError while loading game client for " + this._SafeStr_6839), false); this._SafeStr_6806(this._SafeStr_6839, this._SafeStr_6832, "loadGameClientError"); } private function _SafeStr_6885(k:ProgressEvent):void{ HabboGamesCom.log(((("[HabboGameManager] external game client progress " + k.bytesLoaded) + "/") + k.bytesTotal)); } private function _SafeStr_6879(k:Event):void{ k.stopImmediatePropagation(); } public function joinPlayerQueue(k:int):void{ this._SafeStr_6894(); this.send(new _SafeStr_2735(k)); if (this._SafeStr_6829) { this._SafeStr_6829._SafeStr_6895(k); }; this._SafeStr_6838 = k; this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "joinPlayerQueue"); } private function _SafeStr_6894():void{ if (this._SafeStr_6838 != -1) { this._SafeStr_6807(this._SafeStr_6838); }; } public function _SafeStr_6807(k:int):void{ this.send(new _SafeStr_2732(k)); this._SafeStr_6838 = -1; } public function acceptGameInvite(k:int, _arg_2:int):void{ this._SafeStr_6894(); this.send(new _SafeStr_2733(k, _arg_2)); this._SafeStr_6838 = k; this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "joinPlayerQueue", "", _arg_2); if (this._SafeStr_6829) { this._SafeStr_6829._SafeStr_6895(k); }; } public function _SafeStr_6882(k:Event):void{ HabboGamesCom.log("[HabboGameManager] external game client unloaded"); } public function _SafeStr_6806(k:int, _arg_2:String, _arg_3:String):void{ var _local_4:_SafeStr_2297; this._SafeStr_6838 = -1; if (this._SafeStr_6829) { this._SafeStr_6829._SafeStr_6889(k); }; if ((((this._SafeStr_6839 > -1)) && ((this._SafeStr_6832 == _arg_2)))) { this._SafeStr_6868(GameConfigurations._SafeStr_6865(this._SafeStr_6839), _arg_3); this._SafeStr_6839 = -1; Core._SafeStr_6892.resume(); switch (this._SafeStr_6840) { case EMBEDDED: this.unloadGameClient(); break; case IFRAME: this._SafeStr_6896(); break; }; if (GameConfigurations._SafeStr_6865(k) == "elisa_habbo_stories") { if (this._SafeStr_6830) { this._SafeStr_6830.activate(); }; _local_4 = new _SafeStr_2297(_SafeStr_2297._SafeStr_6860); _local_4._SafeStr_6870 = HabboToolbarIconEnum.RECEPTION; this._SafeStr_6818.events.dispatchEvent(_local_4); } else { if (this._SafeStr_6829) { this._SafeStr_6829.activate(k, false); this._SafeStr_6868(GameConfigurations._SafeStr_6865(k), "showGameCenter.gameEnd"); }; }; this.send(new _SafeStr_2729(k)); }; } public function _SafeStr_5911():void{ if (this._SafeStr_6839 > -1) { this._SafeStr_6806(this._SafeStr_6839, this._SafeStr_6832, "unloadGameClient"); }; } private function unloadGameClient():void{ var _local_2:DisplayObject; var k:Stage = context.displayObjectContainer.stage; k.removeEventListener(Event.RESIZE, this._SafeStr_6890); if (this._SafeStr_6831) { if (k.contains(this._SafeStr_6831)) { k.removeChild(this._SafeStr_6831); }; if (this._SafeStr_6831.contentLoaderInfo.hasOwnProperty("uncaughtErrorEvents")) { this._SafeStr_6831.contentLoaderInfo["uncaughtErrorEvents"].removeEventListener("uncaughtError", this._SafeStr_6886, true); this._SafeStr_6831.contentLoaderInfo["uncaughtErrorEvents"].removeEventListener("uncaughtError", this._SafeStr_6886, false); }; this._SafeStr_6831.removeEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, this._SafeStr_6886, true); this._SafeStr_6831.removeEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, this._SafeStr_6886, false); this._SafeStr_6831.unloadAndStop(); this._SafeStr_6831 = null; }; for each (_local_2 in this._SafeStr_6841) { k.addChild(_local_2); }; this._SafeStr_6841 = null; k.quality = this._SafeStr_6836; k.frameRate = this._SafeStr_6837; } private function _SafeStr_6896():void{ _SafeStr_6.hideGame(); } public function _SafeStr_6809(k:int):String{ return (GameConfigurations._SafeStr_6865(k)); } public function getGameId(k:String):int{ return (GameConfigurations.getId(k)); } public function getGameAssetURL(k:int, _arg_2:String):String{ return (GameConfigurations._SafeStr_6897(k, _arg_2)); } private function _SafeStr_6886(k:UncaughtErrorEvent):void{ var _local_2:String; var _local_3:String; var _local_5:Error; var _local_6:ErrorEvent; HabboGamesCom.log(((("[HabboGameManager] external game client crashed, eventType:" + k.type) + " errorID:") + k.errorID)); var _local_4:String; if ((k.error is Error)) { _local_5 = (k.error as Error); _local_2 = _local_5.errorID.toString(); _local_3 = _local_5.message; _local_4 = _local_5.getStackTrace(); } else { if ((k.error is ErrorEvent)) { _local_6 = (k.error as ErrorEvent); _local_2 = _local_6.errorID.toString(); _local_3 = _local_6.type; _local_4 = _local_6.toString(); } else { _local_2 = k.errorID.toString(); _local_3 = k.type; _local_4 = k.error.toString(); }; }; this._SafeStr_5913(_local_2, _local_3, _local_4); k.stopImmediatePropagation(); } public function _SafeStr_5913(k:String, _arg_2:String, _arg_3:String=null):void{ this._SafeStr_6898(this._SafeStr_6839, k, _arg_2, _arg_3); this._SafeStr_6806(this._SafeStr_6839, this._SafeStr_6832, "gameClientCrash"); this.alert("${gamecenter.game_crashed}"); } private function _SafeStr_6898(gameTypeId:int, errorId:String, errorMessage:String, debugData:String=null):void{ var url:String = getProperty("game.center.error.url"); var variables:URLVariables = new URLVariables(); var request:URLRequest = new URLRequest(url); variables.gameTypeId = gameTypeId; variables.flashVersion = Capabilities.version; variables.errorId = errorId; variables.errorMessage = errorMessage; if (debugData) { variables.debugData = debugData; }; request.data = variables; request.method = URLRequestMethod.POST; if (Capabilities.playerType != "StandAlone") { try { sendToURL(request); } catch(e:Error) { _SafeStr_4.log(("Error while sending error report: " + e.message)); }; }; } public function get _SafeStr_6899():String{ return ("games/"); } public function _SafeStr_6900(k:String):void{ var _local_2:Array = k.split("/"); if (_local_2.length < 2) { return; }; switch (_local_2[1]) { case "open": if (_local_2.length > 2) { this.showGameCenterByGameName("", _local_2[2]); }; return; case "play": if (_local_2.length > 2) { this.showGameCenterByGameName("", _local_2[2], true); }; return; }; } } }//package _-0fm // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_1202 = "_-2GY" (String#2478, DoABC#3) // _SafeStr_13 = "_-5oO" (String#1978, DoABC#3) // _SafeStr_1357 = "_-0cv" (String#2274, DoABC#3) // _SafeStr_1375 = "_-67Z" (String#891, DoABC#3) // _SafeStr_1417 = "_-5LD" (String#3814, DoABC#3) // _SafeStr_198 = "_-5rs" (String#2316, DoABC#3) // _SafeStr_2155 = "_-4Q7" (String#1601, DoABC#3) // _SafeStr_2175 = "_-4xS" (String#1073, DoABC#3) // _SafeStr_2213 = "_-l-" (String#862, DoABC#3) // _SafeStr_2285 = "null " (String#239, DoABC#3) // _SafeStr_2286 = "_-66Y" (String#1559, DoABC#3) // _SafeStr_2297 = "_-5m7" (String#880, DoABC#3) // _SafeStr_2309 = "_-38x" (String#1056, DoABC#3) // _SafeStr_2439 = "_-6I8" (String#2698, DoABC#3) // _SafeStr_2625 = "_-0x9" (String#2996, DoABC#3) // _SafeStr_2653 = "_-2wD" (String#9433, DoABC#3) // _SafeStr_270 = "_-6R1" (String#2202, DoABC#3) // _SafeStr_2727 = "_-1b7" (String#5479, DoABC#3) // _SafeStr_2728 = "_-5wd" (String#4798, DoABC#3) // _SafeStr_2729 = "_-2Ko" (String#10350, DoABC#3) // _SafeStr_2730 = "_-1hD" (String#18227, DoABC#3) // _SafeStr_2731 = "_-6-1" (String#11341, DoABC#3) // _SafeStr_2732 = "_-2yb" (String#14669, DoABC#3) // _SafeStr_2733 = "_-5d-" (String#13835, DoABC#3) // _SafeStr_2734 = "_-3tn" (String#9122, DoABC#3) // _SafeStr_2735 = "_-6lJ" (String#16842, DoABC#3) // _SafeStr_2736 = "_-172" (String#2713, DoABC#3) // _SafeStr_2737 = "_-1Co" (String#10968, DoABC#3) // _SafeStr_34 = "_-hi" (String#1387, DoABC#3) // _SafeStr_36 = "_-5Jb" (String#3293, DoABC#3) // _SafeStr_4 = "_-4tV" (String#232, DoABC#3) // _SafeStr_431 = "_-5AK" (String#1130, DoABC#3) // _SafeStr_500 = "_-6Kw" (String#592, DoABC#3) // _SafeStr_5337 = "_-jQ" (String#411, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_5347 = "_-4xY" (String#4224, DoABC#3) // _SafeStr_5539 = "_-hF" (String#164, DoABC#3) // _SafeStr_5775 = "_-ld" (String#210, DoABC#3) // _SafeStr_5776 = "_-Ox" (String#525, DoABC#3) // _SafeStr_5911 = "_-4V-" (String#31533, DoABC#3) // _SafeStr_5912 = "_-2OG" (String#31363, DoABC#3) // _SafeStr_5913 = "_-3-a" (String#29515, DoABC#3) // _SafeStr_6 = "_-TM" (String#1447, DoABC#3) // _SafeStr_6344 = "_-6-g" (String#4665, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) // _SafeStr_6803 = "_-pa" (String#25040, DoABC#3) // _SafeStr_6804 = "_-2uA" (String#18767, DoABC#3) // _SafeStr_6805 = "_-2VH" (String#31228, DoABC#3) // _SafeStr_6806 = "_-1kr" (String#12665, DoABC#3) // _SafeStr_6807 = "_-6Dl" (String#13611, DoABC#3) // _SafeStr_6808 = "_-2JR" (String#18070, DoABC#3) // _SafeStr_6809 = "_-6ST" (String#34042, DoABC#3) // _SafeStr_6810 = "_-2FZ" (String#18275, DoABC#3) // _SafeStr_6816 = "_-2Xj" (String#573, DoABC#3) // _SafeStr_6817 = "_-4R" (String#1307, DoABC#3) // _SafeStr_6818 = "_-2U7" (String#287, DoABC#3) // _SafeStr_6819 = "_-3x0" (String#4164, DoABC#3) // _SafeStr_6820 = "_-67U" (String#234, DoABC#3) // _SafeStr_6821 = "_-4eG" (String#526, DoABC#3) // _SafeStr_6822 = "_-2GQ" (String#109, DoABC#3) // _SafeStr_6823 = "_-1p2" (String#3620, DoABC#3) // _SafeStr_6824 = "_-41v" (String#7595, DoABC#3) // _SafeStr_6825 = "_-00D" (String#20678, DoABC#3) // _SafeStr_6826 = "_-wd" (String#25794, DoABC#3) // _SafeStr_6827 = "_-1hm" (String#30156, DoABC#3) // _SafeStr_6828 = "_-0TB" (String#28824, DoABC#3) // _SafeStr_6829 = "_-0B" (String#1031, DoABC#3) // _SafeStr_6830 = "_-0Yn" (String#404, DoABC#3) // _SafeStr_6831 = "_-4LH" (String#2975, DoABC#3) // _SafeStr_6832 = "_-4-y" (String#4922, DoABC#3) // _SafeStr_6833 = "_-107" (String#28057, DoABC#3) // _SafeStr_6834 = "_-5Hi" (String#28575, DoABC#3) // _SafeStr_6835 = "_-26M" (String#31414, DoABC#3) // _SafeStr_6836 = "_-0xn" (String#30560, DoABC#3) // _SafeStr_6837 = "_-2zR" (String#31252, DoABC#3) // _SafeStr_6838 = "_-6Qj" (String#11918, DoABC#3) // _SafeStr_6839 = "_-34M" (String#5361, DoABC#3) // _SafeStr_6840 = "_-5av" (String#23982, DoABC#3) // _SafeStr_6841 = "_-6Y3" (String#16137, DoABC#3) // _SafeStr_6842 = "_-3Lp" (String#29738, DoABC#3) // _SafeStr_6843 = "_-2eF" (String#30911, DoABC#3) // _SafeStr_6844 = "_-zW" (String#24528, DoABC#3) // _SafeStr_6845 = "_-1p9" (String#25623, DoABC#3) // _SafeStr_6846 = "_-8d" (String#36625, DoABC#3) // _SafeStr_6847 = "_-6H-" (String#23410, DoABC#3) // _SafeStr_6848 = "_-60Y" (String#11580, DoABC#3) // _SafeStr_6849 = "_-5Uo" (String#22048, DoABC#3) // _SafeStr_6850 = "_-Wn" (String#35219, DoABC#3) // _SafeStr_6851 = "_-02w" (String#33302, DoABC#3) // _SafeStr_6852 = "_-0wS" (String#22765, DoABC#3) // _SafeStr_6853 = "_-3su" (String#23424, DoABC#3) // _SafeStr_6854 = "_-39A" (String#32779, DoABC#3) // _SafeStr_6855 = "_-12D" (String#24543, DoABC#3) // _SafeStr_6856 = "_-5-v" (String#37305, DoABC#3) // _SafeStr_6857 = "_-60N" (String#37518, DoABC#3) // _SafeStr_6858 = "_-4EV" (String#35226, DoABC#3) // _SafeStr_6859 = "_-2lD" (String#38674, DoABC#3) // _SafeStr_6860 = "_-5-m" (String#2548, DoABC#3) // _SafeStr_6861 = "_-4cg" (String#3829, DoABC#3) // _SafeStr_6862 = "_-5Sk" (String#38011, DoABC#3) // _SafeStr_6863 = "_-08e" (String#25736, DoABC#3) // _SafeStr_6864 = "_-50O" (String#36854, DoABC#3) // _SafeStr_6865 = "_-5Mf" (String#3261, DoABC#3) // _SafeStr_6866 = "_-3dk" (String#11168, DoABC#3) // _SafeStr_6867 = "_-159" (String#34092, DoABC#3) // _SafeStr_6868 = "_-4R0" (String#4781, DoABC#3) // _SafeStr_6869 = "_-3kU" (String#6837, DoABC#3) // _SafeStr_6870 = "_-5TT" (String#4008, DoABC#3) // _SafeStr_6871 = "_-1Wi" (String#31619, DoABC#3) // _SafeStr_6872 = "_-3QS" (String#38913, DoABC#3) // _SafeStr_6873 = "_-66N" (String#10671, DoABC#3) // _SafeStr_6874 = "_-Ze" (String#6188, DoABC#3) // _SafeStr_6875 = "_-1kv" (String#9189, DoABC#3) // _SafeStr_6876 = "_-Sw" (String#9830, DoABC#3) // _SafeStr_6877 = "_-1tf" (String#4901, DoABC#3) // _SafeStr_6878 = "_-1XF" (String#31598, DoABC#3) // _SafeStr_6879 = "_-1Ay" (String#7707, DoABC#3) // _SafeStr_6880 = "_-3lb" (String#37270, DoABC#3) // _SafeStr_6881 = "_-4TD" (String#36680, DoABC#3) // _SafeStr_6882 = "_-4xr" (String#38813, DoABC#3) // _SafeStr_6883 = "_-Ot" (String#32149, DoABC#3) // _SafeStr_6884 = "_-1hi" (String#33798, DoABC#3) // _SafeStr_6885 = "_-6g6" (String#36344, DoABC#3) // _SafeStr_6886 = "_-3d" (String#9028, DoABC#3) // _SafeStr_6887 = "_-2aY" (String#32064, DoABC#3) // _SafeStr_6888 = "_-6iw" (String#23845, DoABC#3) // _SafeStr_6889 = "_-2NK" (String#25204, DoABC#3) // _SafeStr_6890 = "_-26A" (String#21104, DoABC#3) // _SafeStr_6891 = "_-1z3" (String#43540, DoABC#3) // _SafeStr_6892 = "_-1TV" (String#5722, DoABC#3) // _SafeStr_6893 = "_-0tA" (String#29826, DoABC#3) // _SafeStr_6894 = "_-5nU" (String#30825, DoABC#3) // _SafeStr_6895 = "_-0eG" (String#27539, DoABC#3) // _SafeStr_6896 = "_-1Sm" (String#34445, DoABC#3) // _SafeStr_6897 = "_-4Xk" (String#14737, DoABC#3) // _SafeStr_6898 = "_-6Il" (String#32533, DoABC#3) // _SafeStr_6899 = "_-1Qx" (String#3492, DoABC#3) // _SafeStr_6900 = "_-3Mr" (String#3693, DoABC#3) // _SafeStr_8 = "_-6in" (String#1560, DoABC#3) // _SafeStr_9 = "_-3rX" (String#1383, DoABC#3) //------------------------------------------------------------ //_-0fm.IncomingMessages package _-0fm{ import _-4Y1._SafeStr_3; import _-67y._SafeStr_1375; import _-4a3._SafeStr_3961; import _-4a3._SafeStr_4108; import _-4XP._SafeStr_2296; import _-4a3._SafeStr_4057; import _-4a3._SafeStr_4138; import _-4a3._SafeStr_4215; import _-4a3._SafeStr_4096; import _-5cL._SafeStr_3240; import _-5cL._SafeStr_3246; import _-3ca._SafeStr_4219; import _-5cL._SafeStr_3261; import _-4a3._SafeStr_4216; import _-6ct._SafeStr_4356; import _-6ct._SafeStr_4357; import _-6ct.LoadGameMessageParser; import _-6ct._SafeStr_4355; import _-6ct._SafeStr_4358; import _-vR._SafeStr_4352; import _-08v._SafeStr_3950; import _-vp._SafeStr_2737; import _-vp._SafeStr_2731; import _-2jU._SafeStr_2275; import _-6ct._SafeStr_4353; import _-6ct.GameListMessageParser; import _-18p.GameConfigurations; import _-18p._SafeStr_4348; import _-6ct._SafeStr_4354; import _-6ct.GameAchievementsMessageParser; public class IncomingMessages implements _SafeStr_3 { private var _SafeStr_6901:HabboGameManager; private var _SafeStr_5588:Boolean = false; public function IncomingMessages(k:HabboGameManager){ this._SafeStr_6901 = k; var _local_2:_SafeStr_1375 = this._SafeStr_6901.communication; _local_2.addHabboConnectionMessageEvent(new _SafeStr_3961(this._SafeStr_6902)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4108(this._SafeStr_6903)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_2296(this._SafeStr_6904)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4057(this._SafeStr_6905)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4138(this._SafeStr_6906)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4215(this._SafeStr_6907)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4096(this._SafeStr_6908)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_3240(this._SafeStr_6909)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_3246(this._SafeStr_6909)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4219(this._SafeStr_6910)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_3261(this._SafeStr_6909)); _local_2.addHabboConnectionMessageEvent(new _SafeStr_4216(this._SafeStr_6911)); } public function dispose():void{ this._SafeStr_6901 = null; this._SafeStr_5588 = true; } public function get disposed():Boolean{ return (this._SafeStr_5588); } private function _SafeStr_6908(k:_SafeStr_4096):void{ var _local_2:_SafeStr_4356 = k._SafeStr_5729(); HabboGamesCom.log(("[BaseJump] joined queue for game " + _local_2.gameTypeId)); } private function _SafeStr_6911(k:_SafeStr_4216):void{ var _local_2:_SafeStr_4357 = k._SafeStr_5729(); HabboGamesCom.log(("[BaseJump] left queue for game " + _local_2.gameTypeId)); } private function _SafeStr_6903(k:_SafeStr_4108):void{ var _local_2:LoadGameMessageParser = k._SafeStr_5729(); HabboGamesCom.log(((("[BaseJump] load game " + _local_2.gameTypeId) + " url:") + _local_2.url)); this._SafeStr_6901.loadGameClient(_local_2.gameTypeId, _local_2._SafeStr_6912, _local_2.url, _local_2.quality, _local_2.scaleMode, _local_2.frameRate, _local_2._SafeStr_6913, _local_2._SafeStr_6914, _local_2.params); } private function _SafeStr_6906(k:_SafeStr_4138):void{ var _local_2:_SafeStr_4355 = k._SafeStr_5729(); HabboGamesCom.log(((("[BaseJump] load game url " + _local_2.gameTypeId) + " url:") + _local_2.url)); this._SafeStr_6901._SafeStr_6805(_local_2.gameTypeId, _local_2._SafeStr_6912, _local_2.url); } private function _SafeStr_6907(k:_SafeStr_4215):void{ var _local_2:_SafeStr_4358 = k._SafeStr_5729(); HabboGamesCom.log(("[BaseJump] unload game " + _local_2.gameTypeId)); this._SafeStr_6901._SafeStr_6806(_local_2.gameTypeId, _local_2._SafeStr_6912, "unloadGameClient"); } private function _SafeStr_6910(k:_SafeStr_4219):void{ var _local_2:_SafeStr_4352 = k._SafeStr_5729(); if (_local_2.gameTypeId == this._SafeStr_6901._SafeStr_6863()) { this._SafeStr_6901._SafeStr_6862(_local_2._SafeStr_6915); this._SafeStr_6901._SafeStr_6864(); }; } private function _SafeStr_6904(k:_SafeStr_2296):void{ var _local_2:int = this._SafeStr_6901._SafeStr_6863(); if (_local_2 != -1) { this._SafeStr_6901.send(new _SafeStr_3950(_local_2)); }; this._SafeStr_6901.send(new _SafeStr_2737()); this._SafeStr_6901.send(new _SafeStr_2731()); } private function _SafeStr_6909(k:_SafeStr_2275):void{ this._SafeStr_6901._SafeStr_6859 = true; } private function _SafeStr_6902(k:_SafeStr_3961):void{ var _local_3:_SafeStr_4353; var _local_2:GameListMessageParser = (k.parser as GameListMessageParser); GameConfigurations._SafeStr_6916(); for each (_local_3 in _local_2.games) { GameConfigurations._SafeStr_6917(new _SafeStr_4348(_local_3._SafeStr_6918, _local_3._SafeStr_6919, _local_3.bgColor, _local_3.textColor, _local_3._SafeStr_6920, _local_3._SafeStr_6921)); }; GameConfigurations._SafeStr_6922(this._SafeStr_6901.events); } private function _SafeStr_6905(k:_SafeStr_4057):void{ var _local_3:_SafeStr_4354; var _local_4:int; var _local_5:String; var _local_2:GameAchievementsMessageParser = (k.parser as GameAchievementsMessageParser); GameConfigurations._SafeStr_6923(); for each (_local_3 in _local_2.achievements) { _local_4 = 1; while (_local_4 <= _local_3.levels) { _local_5 = (("ACH_" + _local_3._SafeStr_6924) + _local_4); GameConfigurations._SafeStr_6925(_local_3.gameTypeId, _local_5); _local_4++; }; }; GameConfigurations._SafeStr_6926(this._SafeStr_6901.events); } } }//package _-0fm // _SafeStr_1375 = "_-67Z" (String#891, DoABC#3) // _SafeStr_2275 = "_-2Kx" (String#157, DoABC#3) // _SafeStr_2296 = "_-5TL" (String#6638, DoABC#3) // _SafeStr_2731 = "_-6-1" (String#11341, DoABC#3) // _SafeStr_2737 = "_-1Co" (String#10968, DoABC#3) // _SafeStr_3 = "_-3sj" (String#265, DoABC#3) // _SafeStr_3240 = "_-59F" (String#9026, DoABC#3) // _SafeStr_3246 = "_-030" (String#9427, DoABC#3) // _SafeStr_3261 = "_-4Kw" (String#9425, DoABC#3) // _SafeStr_3950 = "_-1NN" (String#10603, DoABC#3) // _SafeStr_3961 = "_-ib" (String#11663, DoABC#3) // _SafeStr_4057 = "_-3-Y" (String#12851, DoABC#3) // _SafeStr_4096 = "_-2ih" (String#13563, DoABC#3) // _SafeStr_4108 = "_-6Nw" (String#11503, DoABC#3) // _SafeStr_4138 = "_-5ie" (String#11626, DoABC#3) // _SafeStr_4215 = "_-6A7" (String#12182, DoABC#3) // _SafeStr_4216 = "_-1xO" (String#12113, DoABC#3) // _SafeStr_4219 = "_-1gH" (String#7324, DoABC#3) // _SafeStr_4348 = "_-050" (String#3213, DoABC#3) // _SafeStr_4352 = "_-0x" (String#8902, DoABC#3) // _SafeStr_4353 = "_-Vu" (String#7761, DoABC#3) // _SafeStr_4354 = "_-5UE" (String#7731, DoABC#3) // _SafeStr_4355 = "_-0DZ" (String#11136, DoABC#3) // _SafeStr_4356 = "_-do" (String#10656, DoABC#3) // _SafeStr_4357 = "_-4hu" (String#11435, DoABC#3) // _SafeStr_4358 = "_-5aw" (String#10874, DoABC#3) // _SafeStr_5588 = "_-0C3" (String#652, DoABC#3) // _SafeStr_5729 = "_-4Im" (String#110, DoABC#3) // _SafeStr_6805 = "_-2VH" (String#31228, DoABC#3) // _SafeStr_6806 = "_-1kr" (String#12665, DoABC#3) // _SafeStr_6859 = "_-2lD" (String#38674, DoABC#3) // _SafeStr_6862 = "_-5Sk" (String#38011, DoABC#3) // _SafeStr_6863 = "_-08e" (String#25736, DoABC#3) // _SafeStr_6864 = "_-50O" (String#36854, DoABC#3) // _SafeStr_6901 = "_-18C" (String#1472, DoABC#3) // _SafeStr_6902 = "_-1C2" (String#32907, DoABC#3) // _SafeStr_6903 = "_-1CJ" (String#33107, DoABC#3) // _SafeStr_6904 = "_-6IP" (String#34359, DoABC#3) // _SafeStr_6905 = "_-2zQ" (String#37102, DoABC#3) // _SafeStr_6906 = "_-2Ob" (String#33714, DoABC#3) // _SafeStr_6907 = "_-09B" (String#32119, DoABC#3) // _SafeStr_6908 = "_-4WP" (String#36566, DoABC#3) // _SafeStr_6909 = "_-2pP" (String#14127, DoABC#3) // _SafeStr_6910 = "_-R" (String#24326, DoABC#3) // _SafeStr_6911 = "_-3Fe" (String#34504, DoABC#3) // _SafeStr_6912 = "_-16n" (String#15141, DoABC#3) // _SafeStr_6913 = "_-36k" (String#33758, DoABC#3) // _SafeStr_6914 = "_-sc" (String#34962, DoABC#3) // _SafeStr_6915 = "_-3jt" (String#37099, DoABC#3) // _SafeStr_6916 = "_-3TB" (String#37467, DoABC#3) // _SafeStr_6917 = "_-4us" (String#38655, DoABC#3) // _SafeStr_6918 = "_-jm" (String#7651, DoABC#3) // _SafeStr_6919 = "_-3xE" (String#14787, DoABC#3) // _SafeStr_6920 = "_-21V" (String#20003, DoABC#3) // _SafeStr_6921 = "_-1aB" (String#21456, DoABC#3) // _SafeStr_6922 = "_-3Um" (String#37905, DoABC#3) // _SafeStr_6923 = "_-2j2" (String#35911, DoABC#3) // _SafeStr_6924 = "_-05w" (String#32318, DoABC#3) // _SafeStr_6925 = "_-0dG" (String#34231, DoABC#3) // _SafeStr_6926 = "_-Zh" (String#32520, DoABC#3) //------------------------------------------------------------ //_-0fm.WindowUtils package _-0fm{ import _-3UH._SafeStr_10; import _-3xK._SafeStr_637; import _-29V.IWindow; import _-29V.IWindowContainer; import _-6Sj.IItemListWindow; import _-6Sj.IItemGridWindow; import _-6Sj.IBitmapWrapperWindow; import _-6Sj.IDisplayObjectWrapper; import flash.display.BitmapData; import flash.geom.Point; import flash.display.Bitmap; import _-3UH.XmlAsset; import _-3UH._SafeStr_39; import _-6RG.PropertyStruct; import _-3UH.BitmapDataAsset; import _-6Sj.ITextWindow; public class WindowUtils { private static var _assets:_SafeStr_10; private static var _SafeStr_5338:_SafeStr_637; public static function _SafeStr_6927(k:IWindow, _arg_2:String):void{ var _local_3:IWindow; k.caption = _arg_2; if ((k.parent is IWindowContainer)) { _local_3 = (k.parent as IWindowContainer).findChildByName((k.name + "_stroke")); }; if ((k.parent is IItemListWindow)) { _local_3 = (k.parent as IItemListWindow).getListItemByName((k.name + "_stroke")); }; if ((k.parent is IItemGridWindow)) { _local_3 = (k.parent as IItemGridWindow)._SafeStr_6928((k.name + "_stroke")); }; if (_local_3) { if (_local_3.caption != _arg_2) { _local_3.caption = _arg_2; }; }; } public static function init(k:_SafeStr_10, _arg_2:_SafeStr_637):void{ _assets = k; _SafeStr_5338 = _arg_2; } public static function _SafeStr_6406(k:IWindow, _arg_2:BitmapData, _arg_3:int=0, _arg_4:int=0, _arg_5:int=0):void{ var _local_9:IBitmapWrapperWindow; var _local_10:IDisplayObjectWrapper; if (_arg_2 == null) { return; }; if (k == null) { return; }; if (k.disposed) { return; }; var _local_6:int = (((_arg_3)>0) ? _arg_3 : k.height); var _local_7:int = (((k.width - _arg_2.width) / 2) + _arg_4); var _local_8:int = (((_local_6 - _arg_2.height) / 2) + _arg_5); if ((k as IBitmapWrapperWindow) != null) { _local_9 = IBitmapWrapperWindow(k); if ((((_local_9.bitmap == null)) || ((_arg_3 > 0)))) { _local_9.bitmap = new BitmapData(k.width, _local_6, true, 0xFFFFFF); }; _local_9.bitmap.fillRect(_local_9.bitmap.rect, 0xFFFFFF); _local_9.bitmap.copyPixels(_arg_2, _arg_2.rect, new Point(_local_7, _local_8), null, null, false); k.invalidate(); } else { if ((k as IDisplayObjectWrapper) != null) { _local_10 = IDisplayObjectWrapper(k); _local_10.setDisplayObject(new Bitmap(_arg_2)); }; }; } public static function createWindow(k:String, _arg_2:int=2):IWindow{ var _local_6:IWindow; var _local_7:IBitmapWrapperWindow; HabboGamesCom.log(("CreateWindow: " + k)); if (((!(_assets)) || (!(_SafeStr_5338)))) { return (null); }; var _local_3:XmlAsset = (_assets.getAssetByName(k) as XmlAsset); if (_local_3 == null) { HabboGamesCom.log(("CreateWindow() could not find the asset for window: " + k)); return (null); }; var _local_4:IWindow = _SafeStr_5338.buildFromXML((_local_3.content as XML), _arg_2); var _local_5:Array = []; if ((_local_4 is IWindowContainer)) { (_local_4 as IWindowContainer).groupChildrenWithTag("bitmap", _local_5, -1); } else { if ((_local_4 is IItemListWindow)) { (_local_4 as IItemListWindow)._SafeStr_6929("bitmap", _local_5, -1); } else { if ((_local_4 is IItemGridWindow)) { }; }; }; for each (_local_6 in _local_5) { HabboGamesCom.log(("Found child: " + _local_6.name)); }; for each (_local_7 in _local_5) { if (_local_7 == null) { } else { _SafeStr_6930(_local_7, false); }; }; return (_local_4); } private static function _SafeStr_6930(bmpWindow:IBitmapWrapperWindow, active:Boolean):void{ var asset:_SafeStr_39; var assetName:String; var src:BitmapData; if (!_assets) { return; }; if (bmpWindow == null) { return; }; var result:Array = bmpWindow.properties.filter(function (k:*, _arg_2:int, _arg_3:Array):Boolean{ return ((PropertyStruct(k).key == "bitmap_asset_name")); }); var offset:Point = new Point(); if (((result) && (result.length))) { assetName = (PropertyStruct(result[0]).value as String); HabboGamesCom.log(((("Found Image: " + bmpWindow.name) + " : ") + assetName)); if (active) { assetName = assetName.replace("_on", ""); }; asset = _assets.getAssetByName(assetName); if (((asset) && ((asset is BitmapDataAsset)))) { bmpWindow.bitmap = new BitmapData(bmpWindow.width, bmpWindow.height, true, 0); src = (asset.content as BitmapData); offset.x = ((bmpWindow.width - src.width) / 2); offset.y = ((bmpWindow.height - src.height) / 2); bmpWindow.bitmap.copyPixels(src, src.rect, offset); }; }; } public static function _SafeStr_6931(k:IWindowContainer, _arg_2:String):void{ var _local_3:IWindow = k.findChildByName(_arg_2); if (_local_3) { _local_3.visible = false; }; var _local_4:IWindow = k.findChildByName((_arg_2 + "_stroke")); if (_local_4) { _local_4.visible = false; }; } public static function _SafeStr_6932(k:IWindow, _arg_2:uint):void{ var _local_4:ITextWindow; var _local_3:Array = []; if ((k is IWindowContainer)) { (k as IWindowContainer).groupChildrenWithTag("stroke", _local_3, 10); } else { if ((k is IItemListWindow)) { (k as IItemListWindow)._SafeStr_6929("stroke", _local_3, 10); } else { if ((k is IItemGridWindow)) { }; }; }; for each (_local_4 in _local_3) { if (_local_4 == null) { } else { _local_4.textColor = _arg_2; }; }; } public static function _SafeStr_6933(k:IWindowContainer, _arg_2:String):void{ var _local_3:IWindow = k.findChildByName(_arg_2); if (_local_3) { _local_3.visible = true; }; var _local_4:IWindow = k.findChildByName((_arg_2 + "_stroke")); if (_local_4) { _local_4.visible = true; }; } } }//package _-0fm // _SafeStr_10 = "_-lo" (String#398, DoABC#3) // _SafeStr_39 = "_-0KE" (String#593, DoABC#3) // _SafeStr_5338 = "_-02L" (String#188, DoABC#3) // _SafeStr_637 = "_-6-A" (String#470, DoABC#3) // _SafeStr_6406 = "_-4d8" (String#3101, DoABC#3) // _SafeStr_6927 = "_-5pZ" (String#5207, DoABC#3) // _SafeStr_6928 = "_-3u1" (String#18038, DoABC#3) // _SafeStr_6929 = "_-52V" (String#10946, DoABC#3) // _SafeStr_6930 = "_-1Bj" (String#26148, DoABC#3) // _SafeStr_6931 = "_-29p" (String#44103, DoABC#3) // _SafeStr_6932 = "_-2p7" (String#43787, DoABC#3) // _SafeStr_6933 = "_-4V7" (String#43737, DoABC#3) //------------------------------------------------------------ //_-0Ge._SafeStr_62 package _-0Ge{ import flash.events.IEventDispatcher; import _-4Y1._SafeStr_3; import flash.net.URLRequest; public interface _SafeStr_62 extends IEventDispatcher, _SafeStr_3 { function get url():String; function get content():Object; function get mimeType():String; function get bytesLoaded():uint; function get bytesTotal():uint; function get errorCode():uint; function get _SafeStr_6934():String; function get _SafeStr_6935():int; function get _SafeStr_6936():Boolean; function get id():int; function load(_arg_1:URLRequest):void; } }//package _-0Ge // _SafeStr_3 = "_-3sj" (String#2437, DoABC#2) // _SafeStr_62 = "_-42j" (String#2466, DoABC#2) // _SafeStr_6934 = "_-0cw" (String#1720, DoABC#2) // _SafeStr_6935 = "_-6Zp" (String#3030, DoABC#2) // _SafeStr_6936 = "_-5M4" (String#2761, DoABC#2) //------------------------------------------------------------ //_-0Ge._SafeStr_63 package _-0Ge{ import _-3va.EventDispatcherWrapper; import _-4Y1._SafeStr_3; import flash.events.HTTPStatusEvent; import _-0Ge.AssetLoaderEvent; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.IOErrorEvent; import flash.events.SecurityErrorEvent; class _SafeStr_63 extends EventDispatcherWrapper implements _SafeStr_3 { public static const NONE:uint = 0; public static const IO_ERROR:uint = 1; public static const SECURITY_ERROR:uint = 2; protected var _SafeStr_6937:int = 0; protected var _SafeStr_6938:int = 0; protected var _SafeStr_6939:int = 2; protected var _SafeStr_6940:uint = 0; public function get errorCode():uint{ return (this._SafeStr_6940); } protected function loadEventHandler(k:Event):void{ switch (k.type) { case HTTPStatusEvent.HTTP_STATUS: this._SafeStr_6937 = HTTPStatusEvent(k).status; dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6941, this._SafeStr_6937)); return; case Event.COMPLETE: dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6418, this._SafeStr_6937)); return; case Event.UNLOAD: dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6942, this._SafeStr_6937)); return; case Event.OPEN: dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6943, this._SafeStr_6937)); return; case ProgressEvent.PROGRESS: dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6944, this._SafeStr_6937)); return; case IOErrorEvent.IO_ERROR: this._SafeStr_6940 = IO_ERROR; if (!this.retry()) { dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6945, this._SafeStr_6937)); }; return; case SecurityErrorEvent.SECURITY_ERROR: this._SafeStr_6940 = SECURITY_ERROR; if (!this.retry()) { dispatchEvent(new AssetLoaderEvent(AssetLoaderEvent._SafeStr_6945, this._SafeStr_6937)); }; return; }; } protected function retry():Boolean{ return (false); } } }//package _-0Ge // _SafeStr_3 = "_-3sj" (String#2437, DoABC#2) // _SafeStr_63 = "_-4H1" (String#2521, DoABC#2) // _SafeStr_6418 = "_-63Y" (String#2918, DoABC#2) // _SafeStr_6937 = "_-aX" (String#3195, DoABC#2) // _SafeStr_6938 = "_-PD" (String#3153, DoABC#2) // _SafeStr_6939 = "_-5TY" (String#2793, DoABC#2) // _SafeStr_6940 = "_-5Ri" (String#2787, DoABC#2) // _SafeStr_6941 = "_-5up" (String#2892, DoABC#2) // _SafeStr_6942 = "_-5KD" (String#2751, DoABC#2) // _SafeStr_6943 = "_-hK" (String#3220, DoABC#2) // _SafeStr_6944 = "_-19Q" (String#1825, DoABC#2) // _SafeStr_6945 = "_-0kc" (String#1746, DoABC#2) //------------------------------------------------------------ //_-0Ge._SafeStr_64 package _-0Ge{ import flash.display.Loader; import flash.system.LoaderContext; import flash.utils.Timer; import flash.events.Event; import flash.events.HTTPStatusEvent; import flash.events.ProgressEvent; import flash.events.IOErrorEvent; import flash.events.SecurityErrorEvent; import flash.net.URLRequest; import flash.utils.ByteArray; import flash.display.Bitmap; import flash.display.BitmapData; import _-WS.PlayerVersionCheck; import _-mh.PNGEncoder; import flash.events.TimerEvent; import flash.system.Security; public class _SafeStr_64 extends _SafeStr_63 implements _SafeStr_62 { protected var _SafeStr_5923:String; protected var _SafeStr_6946:String; protected var _SafeStr_6947:Loader; protected var _SafeStr_6948:LoaderContext; private var _SafeStr_6949:String = null; private var _SafeStr_6950:int = -1; private var _SafeStr_6951:Boolean = false; private var _SafeStr_5742:int = -1; private var _SafeStr_6952:Timer; private var _SafeStr_6953:Event; public function _SafeStr_64(k:String, _arg_2:URLRequest=null, _arg_3:String=null, _arg_4:int=-1, _arg_5:ByteArray=null, _arg_6:int=-1){ this._SafeStr_5923 = (((_arg_2 == null)) ? "" : _arg_2.url); this._SafeStr_6946 = k; this._SafeStr_6947 = new Loader(); this._SafeStr_6948 = new LoaderContext(); this._SafeStr_6948.checkPolicyFile = true; this._SafeStr_6947.contentLoaderInfo.addEventListener(Event.COMPLETE, this._SafeStr_6954); this._SafeStr_6947.contentLoaderInfo.addEventListener(Event.UNLOAD, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadEventHandler); this._SafeStr_6949 = _arg_3; this._SafeStr_6950 = _arg_4; this._SafeStr_5742 = _arg_6; if (((!((_arg_5 == null))) && ((_arg_5.length > 0)))) { this._SafeStr_6951 = true; this._SafeStr_6947.loadBytes(_arg_5); } else { if (((!((_arg_2 == null))) && (!((_arg_2.url == null))))) { this._SafeStr_6947.load(_arg_2, this._SafeStr_6948); }; }; } public function get url():String{ return (this._SafeStr_5923); } public function get content():Object{ return (((this._SafeStr_6947) ? this._SafeStr_6947.content : null)); } public function get bytes():ByteArray{ var k:Bitmap = (this.content as Bitmap); if (k == null) { return (null); }; var _local_2:BitmapData = k.bitmapData; if (PlayerVersionCheck._SafeStr_6878(11, 3)) { }; return (PNGEncoder.encode(_local_2)); } public function get mimeType():String{ return (this._SafeStr_6946); } public function get bytesLoaded():uint{ return (((this._SafeStr_6947) ? this._SafeStr_6947.contentLoaderInfo.bytesLoaded : 0)); } public function get bytesTotal():uint{ return (((this._SafeStr_6947) ? this._SafeStr_6947.contentLoaderInfo.bytesTotal : 0)); } public function get _SafeStr_6955():LoaderContext{ return (this._SafeStr_6948); } public function get _SafeStr_6934():String{ return (this._SafeStr_6949); } public function get _SafeStr_6935():int{ return (this._SafeStr_6950); } public function get _SafeStr_6936():Boolean{ return (this._SafeStr_6951); } public function get id():int{ return (this._SafeStr_5742); } public function load(k:URLRequest):void{ this._SafeStr_5923 = k.url; _SafeStr_6938 = 0; this._SafeStr_6947.load(k, this._SafeStr_6948); } override protected function retry():Boolean{ if (!_disposed) { if (++_SafeStr_6938 <= _SafeStr_6939) { try { this._SafeStr_6947.close(); this._SafeStr_6947.unload(); } catch(e:Error) { }; this._SafeStr_6947.load(new URLRequest((((this._SafeStr_5923 + (((this._SafeStr_5923.indexOf("?") == -1)) ? "?" : "&")) + "retry=") + _SafeStr_6938)), this._SafeStr_6948); return (true); }; }; return (false); } override public function dispose():void{ if (!_disposed) { super.dispose(); this._SafeStr_6947.contentLoaderInfo.removeEventListener(Event.COMPLETE, this._SafeStr_6954); this._SafeStr_6947.contentLoaderInfo.removeEventListener(Event.UNLOAD, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.removeEventListener(HTTPStatusEvent.HTTP_STATUS, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, loadEventHandler); this._SafeStr_6947.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, loadEventHandler); if (this._SafeStr_6952) { this._SafeStr_6952.stop(); this._SafeStr_6952.removeEventListener(TimerEvent.TIMER_COMPLETE, this._SafeStr_6956); this._SafeStr_6952 = null; }; try { this._SafeStr_6947.close(); } catch(e) { }; this._SafeStr_6947.unload(); this._SafeStr_6947 = null; this._SafeStr_6946 = null; this._SafeStr_5923 = null; }; } private function _SafeStr_6954(k:Event):void{ if (this._SafeStr_5923 == this._SafeStr_6947.contentLoaderInfo.url) { loadEventHandler(k); return; }; this._SafeStr_6953 = k; var _local_2:int = this._SafeStr_6947.contentLoaderInfo.url.indexOf("//"); var _local_3 = (this._SafeStr_6947.contentLoaderInfo.url.slice(0, (this._SafeStr_6947.contentLoaderInfo.url.indexOf("/", (_local_2 + 3)) + 1)) + "crossdomain.xml"); Security.loadPolicyFile(_local_3); this._SafeStr_6957(); } private function _SafeStr_6956(k:TimerEvent):void{ if (this._SafeStr_6947.contentLoaderInfo.childAllowsParent) { loadEventHandler(this._SafeStr_6953); } else { this._SafeStr_6957(); }; } private function _SafeStr_6957():void{ this._SafeStr_6952 = new Timer(250, 1); this._SafeStr_6952.addEventListener(TimerEvent.TIMER_COMPLETE, this._SafeStr_6956); this._SafeStr_6952.start(); } } }//package _-0Ge // _SafeStr_5742 = "_-Pw" (String#3157, DoABC#2) // _SafeStr_5923 = "_-1ax" (String#1924, DoABC#2) // _SafeStr_62 = "_-42j" (String#2466, DoABC#2) // _SafeStr_63 = "_-4H1" (String#2521, DoABC#2) // _SafeStr_64 = "_-0dF" (String#1722, DoABC#2) // _SafeStr_6878 = "_-1XF" (String#1909, DoABC#2) // _SafeStr_6934 = "_-0cw" (String#1720, DoABC#2) // _SafeStr_6935 = "_-6Zp" (String#3030, DoABC#2) // _SafeStr_6936 = "_-5M4" (String#2761, DoABC#2) // _SafeStr_6938 = "_-PD" (String#3153, DoABC#2) // _SafeStr_6939 = "_-5TY" (String#2793, DoABC#2) // _SafeStr_6946 = "_-2mL" (String#2203, DoABC#2) // _SafeStr_6947 = "_-3Ky" (String#76, DoABC#2) // _SafeStr_6948 = "_-4AI" (String#2490, DoABC#2) // _SafeStr_6949 = "_-2Vs" (String#2142, DoABC#2) // _SafeStr_6950 = "_-0c5" (String#1716, DoABC#2) // _SafeStr_6951 = "_-dw" (String#3206, DoABC#2) // _SafeStr_6952 = "_-2NU" (String#2116, DoABC#2) // _SafeStr_6953 = "_-2FI" (String#2092, DoABC#2) // _SafeStr_6954 = "_-0sg" (String#1769, DoABC#2) // _SafeStr_6955 = "_-5G8" (String#2741, DoABC#2) // _SafeStr_6956 = "_-2b0" (String#2163, DoABC#2) // _SafeStr_6957 = "_-5ku" (String#2854, DoABC#2) //------------------------------------------------------------ //_-0Ge._SafeStr_65 package _-0Ge{ import flash.net.URLLoader; import flash.utils.Timer; import flash.events.Event; import flash.events.HTTPStatusEvent; import flash.events.ProgressEvent; import flash.events.IOErrorEvent; import flash.events.SecurityErrorEvent; import flash.events.TimerEvent; import flash.net.URLRequest; import flash.utils.ByteArray; import flash.net.URLLoaderDataFormat; public class _SafeStr_65 extends _SafeStr_63 implements _SafeStr_62 { public static const _SafeStr_6958:String = "/crossdomain.xml"; protected var _SafeStr_5923:String; protected var _SafeStr_6946:String; protected var _SafeStr_5513:Object; protected var _SafeStr_6947:URLLoader; private var _SafeStr_6949:String = null; private var _SafeStr_6950:int = -1; private var _SafeStr_6951:Boolean = false; private var _SafeStr_5742:int; public function _SafeStr_65(k:String, _arg_2:URLRequest=null, _arg_3:String=null, _arg_4:int=-1, _arg_5:ByteArray=null, _arg_6:int=-1){ var _local_7:Timer; super(); this._SafeStr_5923 = (((_arg_2 == null)) ? "" : _arg_2.url); this._SafeStr_6946 = k; this._SafeStr_6947 = new URLLoader(); this._SafeStr_6947.addEventListener(Event.COMPLETE, loadEventHandler); this._SafeStr_6947.addEventListener(Event.UNLOAD, loadEventHandler); this._SafeStr_6947.addEventListener(HTTPStatusEvent.HTTP_STATUS, loadEventHandler); this._SafeStr_6947.addEventListener(ProgressEvent.PROGRESS, loadEventHandler); this._SafeStr_6947.addEventListener(IOErrorEvent.IO_ERROR, loadEventHandler); this._SafeStr_6947.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this._SafeStr_6959); this._SafeStr_6949 = _arg_3; this._SafeStr_6950 = _arg_4; this._SafeStr_5742 = _arg_6; if (((!((_arg_5 == null))) && ((_arg_5.length > 0)))) { this._SafeStr_6951 = true; this._SafeStr_5513 = _arg_5; _local_7 = new Timer(10, 1); _local_7.addEventListener(TimerEvent.TIMER, this._SafeStr_6960); _local_7.start(); return; }; if (_arg_2 != null) { this.load(_arg_2); }; } public function get url():String{ return (this._SafeStr_5923); } public function get content():Object{ return (((this._SafeStr_5513) ? this._SafeStr_5513 : ((this._SafeStr_6947) ? this._SafeStr_6947.data : null))); } public function get bytes():ByteArray{ return (((this._SafeStr_6947) ? this._SafeStr_6947.data : null)); } public function get mimeType():String{ return (this._SafeStr_6946); } public function get bytesLoaded():uint{ return (((this._SafeStr_6947) ? this._SafeStr_6947.bytesLoaded : 0)); } public function get bytesTotal():uint{ return (((this._SafeStr_6947) ? this._SafeStr_6947.bytesTotal : 0)); } public function get _SafeStr_6936():Boolean{ return (this._SafeStr_6951); } public function get _SafeStr_6934():String{ return (this._SafeStr_6949); } public function get _SafeStr_6935():int{ return (this._SafeStr_6950); } public function get id():int{ return (this._SafeStr_5742); } public function load(k:URLRequest):void{ this._SafeStr_5923 = k.url; this._SafeStr_5513 = null; _SafeStr_6938 = 0; this._SafeStr_6947.dataFormat = URLLoaderDataFormat.BINARY; this._SafeStr_6947.load(k); } override protected function retry():Boolean{ if (!_disposed) { if (++_SafeStr_6938 <= _SafeStr_6939) { try { this._SafeStr_6947.close(); } catch(e:Error) { }; this._SafeStr_6947.load(new URLRequest((((this._SafeStr_5923 + (((this._SafeStr_5923.indexOf("?") == -1)) ? "?" : "&")) + "retry=") + _SafeStr_6938))); return (true); }; }; return (false); } override public function dispose():void{ if (!_disposed) { super.dispose(); this._SafeStr_6947.removeEventListener(Event.COMPLETE, loadEventHandler); this._SafeStr_6947.removeEventListener(Event.UNLOAD, loadEventHandler); this._SafeStr_6947.removeEventListener(HTTPStatusEvent.HTTP_STATUS, loadEventHandler); this._SafeStr_6947.removeEventListener(ProgressEvent.PROGRESS, loadEventHandler); this._SafeStr_6947.removeEventListener(IOErrorEvent.IO_ERROR, loadEventHandler); this._SafeStr_6947.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this._SafeStr_6959); try { this._SafeStr_6947.close(); } catch(e:Error) { }; this._SafeStr_6947 = null; this._SafeStr_6946 = null; this._SafeStr_5513 = null; this._SafeStr_5923 = null; }; } private function _SafeStr_6959(k:SecurityErrorEvent):void{ if (!_disposed) { loadEventHandler(k); }; } private function _SafeStr_6960(k:TimerEvent):void{ var _local_2:Timer = (k.target as Timer); if (_local_2) { _local_2.stop(); _local_2.removeEventListener(TimerEvent.TIMER, this._SafeStr_6960); }; if (!_disposed) { loadEventHandler(new Event(Event.COMPLETE)); }; } } }//package _-0Ge // _SafeStr_5513 = "_-ZV" (String#3188, DoABC#2) // _SafeStr_5742 = "_-Pw" (String#3157, DoABC#2) // _SafeStr_5923 = "_-1ax" (String#1924, DoABC#2) // _SafeStr_62 = "_-42j" (String#2466, DoABC#2) // _SafeStr_63 = "_-4H1" (String#2521, DoABC#2) // _SafeStr_65 = "_-5mD" (String#2861, DoABC#2) // _SafeStr_6934 = "_-0cw" (String#1720, DoABC#2) // _SafeStr_6935 = "_-6Zp" (String#3030, DoABC#2) // _SafeStr_6936 = "_-5M4" (String#2761, DoABC#2) // _SafeStr_6938 = "_-PD" (String#3153, DoABC#2) // _SafeStr_6939 = "_-5TY" (String#2793, DoABC#2) // _SafeStr_6946 = "_-2mL" (String#2203, DoABC#2) // _SafeStr_6947 = "_-3Ky" (String#76, DoABC#2) // _SafeStr_6949 = "_-2Vs" (String#2142, DoABC#2) // _SafeStr_6950 = "_-0c5" (String#1716, DoABC#2) // _SafeStr_6951 = "_-dw" (String#3206, DoABC#2) // _SafeStr_6958 = "_-0Wk" (String#1693, DoABC#2) // _SafeStr_6959 = "_-6MB" (String#2977, DoABC#2) // _SafeStr_6960 = "_-0TJ" (String#1677, DoABC#2) //------------------------------------------------------------ //_-0Ge._SafeStr_67 package _-0Ge{ import flash.net.URLStream; import flash.utils.ByteArray; import flash.utils.Timer; import flash.events.Event; import flash.events.HTTPStatusEvent; import flash.events.IOErrorEvent; import flash.events.ProgressEvent; import flash.events.SecurityErrorEvent; import flash.events.TimerEvent; import flash.net.URLRequest; public class _SafeStr_67 extends _SafeStr_63 implements _SafeStr_62 { protected var _SafeStr_5923:String; protected var _SafeStr_6946:String; protected var _SafeStr_6961:URLStream; protected var _SafeStr_5513:ByteArray; private var _SafeStr_6949:String; private var _SafeStr_6950:int; private var _SafeStr_6951:Boolean = false; private var _SafeStr_5742:int; public function _SafeStr_67(k:String, _arg_2:URLRequest=null, _arg_3:String=null, _arg_4:int=-1, _arg_5:ByteArray=null, _arg_6:int=-1){ var _local_7:Timer; super(); this._SafeStr_5923 = (((_arg_2 == null)) ? "" : _arg_2.url); this._SafeStr_6946 = k; this._SafeStr_6961 = new URLStream(); this._SafeStr_6961.addEventListener(Event.COMPLETE, loadEventHandler); this._SafeStr_6961.addEventListener(HTTPStatusEvent.HTTP_STATUS, loadEventHandler); this._SafeStr_6961.addEventListener(IOErrorEvent.IO_ERROR, loadEventHandler); this._SafeStr_6961.addEventListener(Event.OPEN, loadEventHandler); this._SafeStr_6961.addEventListener(ProgressEvent.PROGRESS, loadEventHandler); this._SafeStr_6961.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadEventHandler); this._S