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

A
Very
Merry Christmas!


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

everywherechat.swf

This is the info page for
Flash #117441

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


ActionScript [AS3]
Section 1
//ActionEvent (com.eightlabs.IRCLib.events.ActionEvent) package com.eightlabs.IRCLib.events { public class ActionEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function ActionEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varMessage = _arg6.substring((_arg6.indexOf(" ") + 1), _arg6.lastIndexOf(String.fromCharCode(1))); } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 2
//AuthAcceptedEvent (com.eightlabs.IRCLib.events.AuthAcceptedEvent) package com.eightlabs.IRCLib.events { import flash.events.*; public class AuthAcceptedEvent extends Event { public function AuthAcceptedEvent(){ super("AuthAcceptedEvent"); } } }//package com.eightlabs.IRCLib.events
Section 3
//AuthRequiredEvent (com.eightlabs.IRCLib.events.AuthRequiredEvent) package com.eightlabs.IRCLib.events { import flash.events.*; public class AuthRequiredEvent extends Event { public function AuthRequiredEvent(){ super("AuthRequiredEvent"); } } }//package com.eightlabs.IRCLib.events
Section 4
//AuthUnacceptedEvent (com.eightlabs.IRCLib.events.AuthUnacceptedEvent) package com.eightlabs.IRCLib.events { import flash.events.*; public class AuthUnacceptedEvent extends Event { public function AuthUnacceptedEvent(){ super("AuthUnacceptedEvent"); } } }//package com.eightlabs.IRCLib.events
Section 5
//BadNickEvent (com.eightlabs.IRCLib.events.BadNickEvent) package com.eightlabs.IRCLib.events { public class BadNickEvent extends IncomingDataEvent { private var varMessage:String; private var varNickName:String; private var varDestination:String; public function BadNickEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varNickName = _arg5[1]; } final public function get nickName():String{ return (this.varNickName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 6
//IncomingDataEvent (com.eightlabs.IRCLib.events.IncomingDataEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import flash.utils.*; public class IncomingDataEvent extends Event { private var varPrefixHost:String; private var varEventTimestamp:Date; private var varCommand:String; private var varTrailingParameter:String; private var varPrefixUser:String; private var varParameters:Array; private var varPrefixName:String; public function IncomingDataEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ varParameters = new Array(); varEventTimestamp = new Date(); super(getQualifiedClassName(this).substring((getQualifiedClassName(this).indexOf("::") + 2))); this.varCommand = _arg1; this.varPrefixName = _arg2; this.varPrefixUser = _arg3; this.varPrefixHost = _arg4; this.varParameters = _arg5; this.varTrailingParameter = _arg6; this.varEventTimestamp.setDate(); } public function get eventName():String{ return (getQualifiedClassName(this).substring((getQualifiedClassName(this).indexOf("::") + 2))); } public function get parameters():Array{ return (this.varParameters); } public function get prefixHost():String{ return (this.varPrefixHost); } public function get trailingParameter():String{ return (this.varTrailingParameter); } public function get prefixUser():String{ return (this.varPrefixUser); } public function get command():String{ return (this.varCommand); } public function get eventTimeStamp():Date{ return (this.varEventTimestamp); } public function get prefixName():String{ return (this.varPrefixName); } } }//package com.eightlabs.IRCLib.events
Section 7
//InvalidParametersEvent (com.eightlabs.IRCLib.events.InvalidParametersEvent) package com.eightlabs.IRCLib.events { public class InvalidParametersEvent extends IncomingDataEvent { private var varDestination:String; private var varCommandName:String; public function InvalidParametersEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varCommandName = _arg5[1]; } final public function get commandName():String{ return (this.varCommandName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 8
//IsonEvent (com.eightlabs.IRCLib.events.IsonEvent) package com.eightlabs.IRCLib.events { public class IsonEvent extends IncomingDataEvent { private var varNickName:String; private var varDestination:String; public function IsonEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varNickName = _arg6; } final public function get nickName():String{ return (this.varNickName); } final public function get isOn():Boolean{ if (this.varNickName == ""){ return (false); }; return (true); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 9
//JoinEvent (com.eightlabs.IRCLib.events.JoinEvent) package com.eightlabs.IRCLib.events { public class JoinEvent extends IncomingDataEvent { private var varRoomName:String; public function JoinEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varRoomName = _arg6; } final public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.IRCLib.events
Section 10
//KickEvent (com.eightlabs.IRCLib.events.KickEvent) package com.eightlabs.IRCLib.events { public class KickEvent extends IncomingDataEvent { private var varMessage:String; private var varNickName:String; private var varRoomName:String; public function KickEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varRoomName = _arg5[0]; this.varNickName = _arg5[1]; this.varMessage = _arg6; } final public function get roomName():String{ return (this.varRoomName); } final public function get nickName():String{ return (this.varNickName); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 11
//KillEvent (com.eightlabs.IRCLib.events.KillEvent) package com.eightlabs.IRCLib.events { public class KillEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function KillEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varMessage = _arg6.substring((_arg6.indexOf("(") + 1), _arg6.indexOf(")")); } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 12
//ListEndEvent (com.eightlabs.IRCLib.events.ListEndEvent) package com.eightlabs.IRCLib.events { public class ListEndEvent extends IncomingDataEvent { private var varDestination:String; public function ListEndEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 13
//ListEntryEvent (com.eightlabs.IRCLib.events.ListEntryEvent) package com.eightlabs.IRCLib.events { public class ListEntryEvent extends IncomingDataEvent { private var varRoomCount:String; private var varDestination:String; private var varRoomName:String; private var varRoomTopic:String; public function ListEntryEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varRoomName = _arg5[1]; this.varRoomCount = _arg5[2]; this.varRoomTopic = _arg6; } final public function get roomName():String{ return (this.varRoomName); } final public function get destination():String{ return (this.varDestination); } final public function get roomCount():String{ return (this.varRoomCount); } final public function get roomTopic():String{ return (this.varRoomTopic); } } }//package com.eightlabs.IRCLib.events
Section 14
//ListStartEvent (com.eightlabs.IRCLib.events.ListStartEvent) package com.eightlabs.IRCLib.events { public class ListStartEvent extends IncomingDataEvent { private var varDestination:String; public function ListStartEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 15
//ModeEvent (com.eightlabs.IRCLib.events.ModeEvent) package com.eightlabs.IRCLib.events { import mx.collections.*; import com.eightlabs.IRCLib.*; import com.eightlabs.utilities.*; public class ModeEvent extends IncomingDataEvent { private var varDestination:String; private var varModes:ArrayCollection; public function ModeEvent(_arg1:IRCLib, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Array, _arg7:String){ var _local9:Boolean; varModes = new ArrayCollection(); super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7); this.varDestination = _arg6[0]; debug.write(((((("mode: " + this.varDestination) + " :: ") + _arg1.userName) + " :: ") + _arg6[1])); var _local8 = 2; var _local10:int; while (_local10 < _arg6[1].length) { switch (_arg6[1].charAt(_local10)){ case "+": _local9 = true; break; case "-": _local9 = false; break; case "o": _arg1.dispatch(new ModeEventOp(_arg6[0], _arg3, _arg6[_local8], _local9)); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:_arg6[_local8], toggle:_local9}); _local8++; break; case "h": _arg1.dispatch(new ModeEventHalfop(_arg6[0], _arg3, _arg6[_local8], _local9)); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:_arg6[_local8], toggle:_local9}); _local8++; break; case "v": _arg1.dispatch(new ModeEventVoice(_arg6[0], _arg3, _arg6[_local8], _local9)); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:_arg6[_local8], toggle:_local9}); _local8++; break; case "b": _arg1.dispatch(new ModeEventBan(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "q": _arg1.dispatch(new ModeEventQuiet(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "i": _arg1.dispatch(new ModeEventInviteOnly(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "c": _arg1.dispatch(new ModeEventP2pModsOnly(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "e": _arg1.dispatch(new ModeEventOverflowMessages(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "f": _arg1.dispatch(new ModeEventOverflowRoom(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "h": _arg1.dispatch(new ModeEventForum(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "j": _arg1.dispatch(new ModeEventMembersOnly(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "s": _arg1.dispatch(new ModeEventSecret(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "m": _arg1.dispatch(new ModeEventModerated(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "n": _arg1.dispatch(new ModeEventNoExternalMsg(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "t": _arg1.dispatch(new ModeEventOnlyOpsChangeTopic(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); break; case "u": if (this.varDestination.indexOf("#") == -1){ debug.write("Nickname Authentication Required!!!"); _arg1.dispatch(new ModeEventNickAuthRequired(_arg1, _arg6[0], _arg3, _local9, _arg6[_local8])); } else { _arg1.dispatch(new ModeEventOwnersChangeSettings(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); }; break; case "l": _arg1.dispatch(new ModeEventLimit(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:_arg6[_local8], toggle:_local9}); _local8++; break; case "k": _arg1.dispatch(new ModeEventRoomPassword(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:_arg6[_local8], toggle:_local9}); _local8++; break; case "r": if (this.varDestination.indexOf("#") == -1){ _arg1.dispatch(new ModeEventNickRegistered(_arg1, _arg6[0], _arg3, _local9, _arg6[_local8])); } else { _arg1.dispatch(new ModeEventRoomRegistered(_arg6[0], _arg3, _local9, _arg6[_local8])); this.varModes.addItem({mode:_arg6[1].charAt(_local10), subject:null, toggle:_local9}); }; break; }; _local10++; }; } final public function get modes():ArrayCollection{ return (this.varModes); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 16
//ModeEventBan (com.eightlabs.IRCLib.events.ModeEventBan) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventBan extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventBan(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventBan"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 17
//ModeEventForum (com.eightlabs.IRCLib.events.ModeEventForum) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventForum extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventForum(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventForum"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 18
//ModeEventHalfop (com.eightlabs.IRCLib.events.ModeEventHalfop) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventHalfop extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventHalfop(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean){ super("ModeEventHalfop"); this.varRoomName = _arg1; this.varSetter = _arg2; this.varSubject = _arg3; this.varModeToggle = _arg4; } final public function get subject():String{ return (this.varSubject); } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 19
//ModeEventInviteOnly (com.eightlabs.IRCLib.events.ModeEventInviteOnly) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventInviteOnly extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventInviteOnly(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventInviteOnly"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 20
//ModeEventLimit (com.eightlabs.IRCLib.events.ModeEventLimit) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventLimit extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventLimit(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventLimit"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 21
//ModeEventMembersOnly (com.eightlabs.IRCLib.events.ModeEventMembersOnly) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventMembersOnly extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventMembersOnly(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventMembersOnly"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 22
//ModeEventModerated (com.eightlabs.IRCLib.events.ModeEventModerated) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventModerated extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventModerated(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventModerated"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 23
//ModeEventNickAuthRequired (com.eightlabs.IRCLib.events.ModeEventNickAuthRequired) package com.eightlabs.IRCLib.events { import flash.events.*; import com.eightlabs.IRCLib.*; public class ModeEventNickAuthRequired extends Event { private var varModeToggle:Boolean; public function ModeEventNickAuthRequired(_arg1:IRCLib, _arg2:String, _arg3:String, _arg4:Boolean, _arg5:String=""){ super("ModeEventNickAuthRequired"); this.varModeToggle = _arg4; if (_arg4){ _arg1.dispatch(new AuthRequiredEvent()); } else { _arg1.dispatch(new AuthAcceptedEvent()); }; } final public function get modeToggle():Boolean{ return (this.varModeToggle); } } }//package com.eightlabs.IRCLib.events
Section 24
//ModeEventNickRegistered (com.eightlabs.IRCLib.events.ModeEventNickRegistered) package com.eightlabs.IRCLib.events { import flash.events.*; import com.eightlabs.IRCLib.*; public class ModeEventNickRegistered extends Event { private var varModeToggle:Boolean; public function ModeEventNickRegistered(_arg1:IRCLib, _arg2:String, _arg3:String, _arg4:Boolean, _arg5:String=""){ super("ModeEventNickRegistered"); this.varModeToggle = _arg4; if (_arg4){ _arg1.dispatch(new NickRegistered()); } else { _arg1.dispatch(new NickNotRegistered()); }; } final public function get modeToggle():Boolean{ return (this.varModeToggle); } } }//package com.eightlabs.IRCLib.events
Section 25
//ModeEventNoExternalMsg (com.eightlabs.IRCLib.events.ModeEventNoExternalMsg) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventNoExternalMsg extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventNoExternalMsg(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventNoExternalMsg"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 26
//ModeEventOnlyOpsChangeTopic (com.eightlabs.IRCLib.events.ModeEventOnlyOpsChangeTopic) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventOnlyOpsChangeTopic extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventOnlyOpsChangeTopic(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventOnlyOpsChangeTopic"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 27
//ModeEventOp (com.eightlabs.IRCLib.events.ModeEventOp) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventOp extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventOp(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean){ super("ModeEventOp"); this.varRoomName = _arg1; this.varSetter = _arg2; this.varSubject = _arg3; this.varModeToggle = _arg4; } final public function get subject():String{ return (this.varSubject); } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 28
//ModeEventOverflowMessages (com.eightlabs.IRCLib.events.ModeEventOverflowMessages) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventOverflowMessages extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventOverflowMessages(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventOverflowMessages"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 29
//ModeEventOverflowRoom (com.eightlabs.IRCLib.events.ModeEventOverflowRoom) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventOverflowRoom extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventOverflowRoom(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventOverflowRoom"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 30
//ModeEventOwnersChangeSettings (com.eightlabs.IRCLib.events.ModeEventOwnersChangeSettings) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventOwnersChangeSettings extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventOwnersChangeSettings(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventOwnersChangeSettings"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 31
//ModeEventP2pModsOnly (com.eightlabs.IRCLib.events.ModeEventP2pModsOnly) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventP2pModsOnly extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventP2pModsOnly(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventP2pModsOnly"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 32
//ModeEventQuiet (com.eightlabs.IRCLib.events.ModeEventQuiet) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventQuiet extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventQuiet(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventQuiet"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 33
//ModeEventRoomPassword (com.eightlabs.IRCLib.events.ModeEventRoomPassword) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventRoomPassword extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventRoomPassword(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventRoomPassword"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 34
//ModeEventRoomRegistered (com.eightlabs.IRCLib.events.ModeEventRoomRegistered) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventRoomRegistered extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventRoomRegistered(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventRoomRegistered"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 35
//ModeEventSecret (com.eightlabs.IRCLib.events.ModeEventSecret) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventSecret extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventSecret(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""){ super("ModeEventSecret"); this.varRoomName = _arg1; this.varSubject = _arg4; this.varModeToggle = _arg3; this.varSetter = _arg2; } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get subject():String{ return (this.varSubject); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 36
//ModeEventVoice (com.eightlabs.IRCLib.events.ModeEventVoice) package com.eightlabs.IRCLib.events { import flash.events.*; public class ModeEventVoice extends Event { private var varSubject:String; private var varSetter:String; private var varRoomName:String; private var varModeToggle:Boolean; public function ModeEventVoice(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean){ super("ModeEventVoice"); this.varRoomName = _arg1; this.varSetter = _arg2; this.varSubject = _arg3; this.varModeToggle = _arg4; } final public function get subject():String{ return (this.varSubject); } final public function get roomName():String{ return (this.varRoomName); } final public function get modeToggle():Boolean{ return (this.varModeToggle); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 37
//MotdEndEvent (com.eightlabs.IRCLib.events.MotdEndEvent) package com.eightlabs.IRCLib.events { public class MotdEndEvent extends IncomingDataEvent { private var varDestination:String; public function MotdEndEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ this.varDestination = _arg5[0]; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 38
//MotdEntryEvent (com.eightlabs.IRCLib.events.MotdEntryEvent) package com.eightlabs.IRCLib.events { public class MotdEntryEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function MotdEntryEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ this.varDestination = _arg5[0]; this.varMessage = _arg6; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 39
//MotdEvent (com.eightlabs.IRCLib.events.MotdEvent) package com.eightlabs.IRCLib.events { import flash.events.*; public class MotdEvent extends Event { private var varMessage:String; public function MotdEvent(_arg1:String){ super("MotdEvent"); this.varMessage = _arg1; } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 40
//MotdStartEvent (com.eightlabs.IRCLib.events.MotdStartEvent) package com.eightlabs.IRCLib.events { public class MotdStartEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function MotdStartEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ this.varDestination = _arg5[0]; this.varMessage = _arg6; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 41
//NameListEvent (com.eightlabs.IRCLib.events.NameListEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import mx.collections.*; import com.eightlabs.IRCLib.handlers.*; public class NameListEvent extends Event { private var varNameList:ArrayCollection; private var varRoomName:String; public function NameListEvent(_arg1:NameList){ super("NameListEvent"); this.varNameList = _arg1.names; this.varRoomName = _arg1.roomName; } final public function get roomName():String{ return (this.varRoomName); } final public function get nameList():ArrayCollection{ return (this.varNameList); } } }//package com.eightlabs.IRCLib.events
Section 42
//NamesEndEvent (com.eightlabs.IRCLib.events.NamesEndEvent) package com.eightlabs.IRCLib.events { public class NamesEndEvent extends IncomingDataEvent { private var varDestination:String; private var varRoomName:String; public function NamesEndEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varRoomName = _arg5[1]; } final public function get roomName():String{ return (this.varRoomName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 43
//NamesEntryEvent (com.eightlabs.IRCLib.events.NamesEntryEvent) package com.eightlabs.IRCLib.events { public class NamesEntryEvent extends IncomingDataEvent { private var varDestination:String; private var varRoomName:String; private var varNickNames:Array; public function NamesEntryEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varRoomName = _arg5[2]; this.varNickNames = _arg6.split(" "); } final public function get nickNames():Array{ return (this.varNickNames); } final public function get destination():String{ return (this.varDestination); } final public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.IRCLib.events
Section 44
//NickEvent (com.eightlabs.IRCLib.events.NickEvent) package com.eightlabs.IRCLib.events { public class NickEvent extends IncomingDataEvent { private var varNickName:String; public function NickEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); if (!(_arg6) == ""){ this.varNickName = _arg6; } else { this.varNickName = _arg5[0]; }; } final public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.IRCLib.events
Section 45
//NickInUseEvent (com.eightlabs.IRCLib.events.NickInUseEvent) package com.eightlabs.IRCLib.events { public class NickInUseEvent extends IncomingDataEvent { private var varNickName:String; public function NickInUseEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varNickName = _arg5[1]; } final public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.IRCLib.events
Section 46
//NickNotRegistered (com.eightlabs.IRCLib.events.NickNotRegistered) package com.eightlabs.IRCLib.events { import flash.events.*; public class NickNotRegistered extends Event { public function NickNotRegistered(){ super("NickNotRegistered"); } } }//package com.eightlabs.IRCLib.events
Section 47
//NickRegistered (com.eightlabs.IRCLib.events.NickRegistered) package com.eightlabs.IRCLib.events { import flash.events.*; public class NickRegistered extends Event { public function NickRegistered(){ super("NickRegistered"); } } }//package com.eightlabs.IRCLib.events
Section 48
//NoNickGivenEvent (com.eightlabs.IRCLib.events.NoNickGivenEvent) package com.eightlabs.IRCLib.events { public class NoNickGivenEvent extends IncomingDataEvent { private var varMessage:String; private var varNickName:String; private var varDestination:String; public function NoNickGivenEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varNickName = _arg5[1]; } final public function get nickName():String{ return (this.varNickName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 49
//NoSuchDestinationEvent (com.eightlabs.IRCLib.events.NoSuchDestinationEvent) package com.eightlabs.IRCLib.events { public class NoSuchDestinationEvent extends IncomingDataEvent { private var varSubject:String; private var varDestination:String; public function NoSuchDestinationEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varSubject = _arg5[1]; } final public function get subject():String{ return (this.varSubject); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 50
//NoticeEvent (com.eightlabs.IRCLib.events.NoticeEvent) package com.eightlabs.IRCLib.events { public class NoticeEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function NoticeEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varMessage = _arg6; } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 51
//PartEvent (com.eightlabs.IRCLib.events.PartEvent) package com.eightlabs.IRCLib.events { public class PartEvent extends IncomingDataEvent { private var varMessage:String; private var varRoomName:String; public function PartEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varRoomName = _arg5[0]; this.varMessage = _arg6; } final public function get roomName():String{ return (this.varRoomName); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 52
//PermissionDeniedEvent (com.eightlabs.IRCLib.events.PermissionDeniedEvent) package com.eightlabs.IRCLib.events { public class PermissionDeniedEvent extends IncomingDataEvent { private var varDestination:String; private var varCommandName:String; public function PermissionDeniedEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varCommandName = _arg5[1]; } final public function get commandName():String{ return (this.varCommandName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 53
//PingEvent (com.eightlabs.IRCLib.events.PingEvent) package com.eightlabs.IRCLib.events { import com.eightlabs.IRCLib.*; import flash.utils.*; import com.hurlant.crypto.hash.*; import com.eightlabs.utilities.*; import com.hurlant.crypto.*; import com.hurlant.util.*; public class PingEvent extends IncomingDataEvent { private var varMessage:String; private var varServerName:String; public function PingEvent(_arg1:IRCLib, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:Array, _arg7:String):void{ super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7); this.varServerName = _arg3; this.varMessage = _arg7; _arg1.key = _arg7; if (_arg7.indexOf("everywherechat.com") == -1){ _arg1.sk = SHA1.encrypt(((IRCLib.pk + _arg7) + _arg1.userName)); _arg1.pingParam = _arg7; }; if (_arg1.sk != null){ _arg1.send.pong(_arg1.sk); } else { _arg1.send.pong(_arg7); }; } private function getHash(_arg1:String):String{ var _local3:ByteArray; _arg1 = (_arg1 + 3443888319); var _local2:IHash = Crypto.getHash("sha1"); _local3 = Hex.toArray(Hex.fromString(_arg1)); var _local4:ByteArray = _local2.hash(_local3); _arg1 = Hex.fromArray(_local4); return (_arg1); } final public function get message():String{ return (this.varMessage); } final public function get serverName():String{ return (this.serverName); } } }//package com.eightlabs.IRCLib.events
Section 54
//PongEvent (com.eightlabs.IRCLib.events.PongEvent) package com.eightlabs.IRCLib.events { public class PongEvent extends IncomingDataEvent { private var varMessage:String; private var varServerName:String; public function PongEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String):void{ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varServerName = _arg5[0]; this.varMessage = _arg5[1]; } final public function get message():String{ return (this.varMessage); } final public function get serverName():String{ return (this.varServerName); } } }//package com.eightlabs.IRCLib.events
Section 55
//PrivmsgEvent (com.eightlabs.IRCLib.events.PrivmsgEvent) package com.eightlabs.IRCLib.events { public class PrivmsgEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function PrivmsgEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varMessage = _arg6; } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 56
//QuitEvent (com.eightlabs.IRCLib.events.QuitEvent) package com.eightlabs.IRCLib.events { public class QuitEvent extends IncomingDataEvent { private var varMessage:String; public function QuitEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varMessage = _arg6; } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 57
//RoomBanListEntry (com.eightlabs.IRCLib.events.RoomBanListEntry) package com.eightlabs.IRCLib.events { import flash.events.*; public class RoomBanListEntry extends Event { private var varUserMask:String; private var varSetter:String; private var varTimeStamp:Date; private var varRoomName:String; public function RoomBanListEntry(_arg1:String, _arg2:String, _arg3:String, _arg4:int){ varTimeStamp = new Date(); super("RoomBanListEntry"); this.varRoomName = _arg1; this.varSetter = _arg3; this.varUserMask = _arg2; this.varTimeStamp.setTime((_arg4 * 1000)); } final public function get roomName():String{ return (this.varRoomName); } final public function get timeStamp():Date{ return (this.varTimeStamp); } final public function get userMask():String{ return (this.varUserMask); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 58
//RoomKeyEvent (com.eightlabs.IRCLib.events.RoomKeyEvent) package com.eightlabs.IRCLib.events { import flash.events.*; public class RoomKeyEvent extends Event { private var varRoomName:String; public function RoomKeyEvent(_arg1:String){ super("RoomKeyEvent"); this.varRoomName = _arg1; } final public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.IRCLib.events
Section 59
//RoomListEvent (com.eightlabs.IRCLib.events.RoomListEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import mx.collections.*; import com.eightlabs.IRCLib.handlers.*; public class RoomListEvent extends Event { private var varRoomList:ArrayCollection; public function RoomListEvent(_arg1:RoomList){ this.varRoomList = _arg1.roomList; super("RoomListEvent"); } final public function get roomList():ArrayCollection{ return (this.varRoomList); } } }//package com.eightlabs.IRCLib.events
Section 60
//RoomModeEvent (com.eightlabs.IRCLib.events.RoomModeEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import mx.collections.*; import com.eightlabs.utilities.*; public class RoomModeEvent extends Event { private var varModes:ArrayCollection; private var varRoomName:String; public function RoomModeEvent(_arg1:String, _arg2:String, _arg3:Array){ varModes = new ArrayCollection(); super("RoomModeEvent"); debug.write(((("Recieved modes for " + _arg1) + ": ") + _arg2)); this.varRoomName = _arg1; var _local4:int; var _local5:int; while (_local5 < _arg2.length) { switch (_arg2.charAt(_local5)){ case "i": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "c": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "e": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "f": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "h": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "j": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "s": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "m": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "n": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "t": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "u": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; case "l": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:_arg3[_local4]}); _local4++; break; case "k": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:_arg3[_local4]}); _local4++; break; case "r": this.varModes.addItem({mode:_arg2.charAt(_local5), datum:null}); break; default: break; }; _local5++; }; } final public function get modes():ArrayCollection{ return (this.varModes); } final public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.IRCLib.events
Section 61
//RoomQuietListEntry (com.eightlabs.IRCLib.events.RoomQuietListEntry) package com.eightlabs.IRCLib.events { import flash.events.*; public class RoomQuietListEntry extends Event { private var varUserMask:String; private var varSetter:String; private var varTimeStamp:Date; private var varRoomName:String; public function RoomQuietListEntry(_arg1:String, _arg2:String, _arg3:String, _arg4:int){ varTimeStamp = new Date(); super("RoomQuietListEntry"); this.varRoomName = _arg1; this.varSetter = _arg3; this.varUserMask = _arg2; this.varTimeStamp.setTime((_arg4 * 1000)); } final public function get roomName():String{ return (this.varRoomName); } final public function get timeStamp():Date{ return (this.varTimeStamp); } final public function get userMask():String{ return (this.varUserMask); } final public function get setter():String{ return (this.varSetter); } } }//package com.eightlabs.IRCLib.events
Section 62
//ServerDetailsEvent (com.eightlabs.IRCLib.events.ServerDetailsEvent) package com.eightlabs.IRCLib.events { public class ServerDetailsEvent extends IncomingDataEvent { private var varChannelModes:Array; private var varServerName:String; private var varUserModes:Array; private var varDestination:String; private var varServerVersion:String; public function ServerDetailsEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array){ varUserModes = new Array(); varChannelModes = new Array(); super(_arg1, _arg2, _arg3, _arg4, _arg5, ""); varDestination = _arg5[0]; varServerName = _arg5[1]; varServerVersion = _arg5[2]; } } }//package com.eightlabs.IRCLib.events
Section 63
//ServicesAccessDenied (com.eightlabs.IRCLib.events.ServicesAccessDenied) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesAccessDenied extends Event { public function ServicesAccessDenied(){ super("ServicesAccessDenied"); } } }//package com.eightlabs.IRCLib.events
Section 64
//ServicesAutoOpAdd (com.eightlabs.IRCLib.events.ServicesAutoOpAdd) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesAutoOpAdd extends Event { private var varType:String; private var varNickname:String; private var varRoom:String; public function ServicesAutoOpAdd(_arg1:String, _arg2:String, _arg3:String){ super("ServicesAutoOpAdd"); this.varType = _arg1; this.varRoom = _arg2; this.varNickname = _arg3; } final public function get opType():String{ return (this.varType); } final public function get room():String{ return (this.varRoom); } final public function get nickname():String{ return (this.varNickname); } } }//package com.eightlabs.IRCLib.events
Section 65
//ServicesAutoOpDelete (com.eightlabs.IRCLib.events.ServicesAutoOpDelete) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesAutoOpDelete extends Event { private var varType:String; private var varNickname:String; private var varRoom:String; public function ServicesAutoOpDelete(_arg1:String, _arg2:String, _arg3:String){ super("ServicesAutoOpDelete"); this.varType = _arg1; this.varRoom = _arg2; this.varNickname = _arg3; } final public function get opType():String{ return (this.varType); } final public function get room():String{ return (this.varRoom); } final public function get nickname():String{ return (this.varNickname); } } }//package com.eightlabs.IRCLib.events
Section 66
//ServicesAutoOpFailureRegNicks (com.eightlabs.IRCLib.events.ServicesAutoOpFailureRegNicks) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesAutoOpFailureRegNicks extends Event { public function ServicesAutoOpFailureRegNicks(){ super("ServicesAutoOpFailureRegNicks"); } } }//package com.eightlabs.IRCLib.events
Section 67
//ServicesGhostFailure (com.eightlabs.IRCLib.events.ServicesGhostFailure) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesGhostFailure extends Event { public function ServicesGhostFailure(){ super("ServicesGhostFailure"); } } }//package com.eightlabs.IRCLib.events
Section 68
//ServicesGhostSuccess (com.eightlabs.IRCLib.events.ServicesGhostSuccess) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesGhostSuccess extends Event { public function ServicesGhostSuccess(){ super("ServicesGhostSuccess"); } } }//package com.eightlabs.IRCLib.events
Section 69
//ServicesNickRegSuccess (com.eightlabs.IRCLib.events.ServicesNickRegSuccess) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesNickRegSuccess extends Event { public function ServicesNickRegSuccess(){ super("ServicesNickRegSuccess"); } } }//package com.eightlabs.IRCLib.events
Section 70
//ServicesPasswordComplexity (com.eightlabs.IRCLib.events.ServicesPasswordComplexity) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesPasswordComplexity extends Event { public function ServicesPasswordComplexity(){ super("ServicesPasswordComplexity"); } } }//package com.eightlabs.IRCLib.events
Section 71
//ServicesRoomRegistrationEvent (com.eightlabs.IRCLib.events.ServicesRoomRegistrationEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import com.eightlabs.IRCLib.handlers.*; public class ServicesRoomRegistrationEvent extends Event { private var varReg:ServicesRoomRegistration; public function ServicesRoomRegistrationEvent(_arg1:ServicesRoomRegistration){ super("ServicesRoomRegistrationEvent"); this.varReg = _arg1; } public function get roomReg():ServicesRoomRegistration{ return (this.varReg); } } }//package com.eightlabs.IRCLib.events
Section 72
//ServicesRoomRegSuccess (com.eightlabs.IRCLib.events.ServicesRoomRegSuccess) package com.eightlabs.IRCLib.events { import flash.events.*; public class ServicesRoomRegSuccess extends Event { private var varRoom:String; public function ServicesRoomRegSuccess(_arg1:String){ super("ServicesRoomRegSuccess"); this.varRoom = _arg1; } final public function get room():String{ return (this.varRoom); } } }//package com.eightlabs.IRCLib.events
Section 73
//StatusEvent (com.eightlabs.IRCLib.events.StatusEvent) package com.eightlabs.IRCLib.events { public class StatusEvent extends IncomingDataEvent { private var varMessage:String; public function StatusEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varMessage = _arg6; } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 74
//TopicChangeEvent (com.eightlabs.IRCLib.events.TopicChangeEvent) package com.eightlabs.IRCLib.events { public class TopicChangeEvent extends IncomingDataEvent { private var varMessage:String; private var varRoomName:String; public function TopicChangeEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varRoomName = _arg5[0]; this.varMessage = _arg6; } final public function get roomName():String{ return (this.varRoomName); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 75
//TopicEvent (com.eightlabs.IRCLib.events.TopicEvent) package com.eightlabs.IRCLib.events { public class TopicEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; private var varRoomName:String; public function TopicEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varRoomName = _arg5[1]; this.varMessage = _arg6; } final public function get destination():String{ return (this.varDestination); } final public function get roomName():String{ return (this.varRoomName); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 76
//TopicInfoEvent (com.eightlabs.IRCLib.events.TopicInfoEvent) package com.eightlabs.IRCLib.events { public class TopicInfoEvent extends IncomingDataEvent { private var varDestination:String; private var varRoomName:String; private var varTimeStamp:Date; private var varNickName:String; public function TopicInfoEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ varTimeStamp = new Date(); super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varRoomName = _arg5[1]; this.varNickName = _arg5[2]; this.varTimeStamp.setTime((int(_arg5[3]) * 1000)); } final public function get roomName():String{ return (this.varRoomName); } final public function get destination():String{ return (this.varDestination); } final public function get timeStamp():Date{ return (this.varTimeStamp); } final public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.IRCLib.events
Section 77
//TourEvent (com.eightlabs.IRCLib.events.TourEvent) package com.eightlabs.IRCLib.events { public class TourEvent extends IncomingDataEvent { private var varNewRoom:String; private var varDestination:String; public function TourEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varNewRoom = _arg5[1]; } final public function get newRoom():String{ return (this.varNewRoom); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 78
//UnknownCommandEvent (com.eightlabs.IRCLib.events.UnknownCommandEvent) package com.eightlabs.IRCLib.events { public class UnknownCommandEvent extends IncomingDataEvent { private var varDestination:String; private var varCommandName:String; public function UnknownCommandEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.varDestination = _arg5[0]; this.varCommandName = _arg5[1]; } final public function get commandName():String{ return (this.varCommandName); } final public function get destination():String{ return (this.varDestination); } } }//package com.eightlabs.IRCLib.events
Section 79
//WelcomeEvent (com.eightlabs.IRCLib.events.WelcomeEvent) package com.eightlabs.IRCLib.events { public class WelcomeEvent extends IncomingDataEvent { private var varMessage:String; private var varDestination:String; public function WelcomeEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Array, _arg6:String){ this.varDestination = _arg5[0]; this.varMessage = _arg6; super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } final public function get destination():String{ return (this.varDestination); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 80
//WhoisEvent (com.eightlabs.IRCLib.events.WhoisEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import com.eightlabs.IRCLib.handlers.*; public class WhoisEvent extends Event { private var varObject:Whois; public function WhoisEvent(_arg1:Whois){ super("WhoisEvent"); this.varObject = _arg1; } final public function get whois():Whois{ return (this.varObject); } } }//package com.eightlabs.IRCLib.events
Section 81
//XlineEvent (com.eightlabs.IRCLib.events.XlineEvent) package com.eightlabs.IRCLib.events { import flash.events.*; import com.eightlabs.utilities.*; public class XlineEvent extends Event { private var varMessage:String; public function XlineEvent(_arg1:String){ super("XlineEvent"); this.varMessage = _arg1.substring((_arg1.indexOf("[") + 1), _arg1.indexOf("]")); debug.write(("XlineEvent created: " + this.varMessage)); } final public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.events
Section 82
//Motd (com.eightlabs.IRCLib.handlers.Motd) package com.eightlabs.IRCLib.handlers { public class Motd { private var varMessage:String;// = "" public static var motd:Motd; public function Motd(_arg1:String){ this.varMessage = (this.varMessage + (_arg1 + "\n")); } public function addMsg(_arg1:String):void{ this.varMessage = (this.varMessage + (_arg1 + "\n")); } public function get message():String{ return (this.varMessage); } } }//package com.eightlabs.IRCLib.handlers
Section 83
//NameList (com.eightlabs.IRCLib.handlers.NameList) package com.eightlabs.IRCLib.handlers { import flash.events.*; import mx.events.*; import mx.collections.*; public class NameList implements IEventDispatcher { private var varRoomName:String; private var namesArray:Array; private var _1274511263varNames:ArrayCollection; private var _bindingEventDispatcher:EventDispatcher; public static var nameList:Object = new Object(); public function NameList(_arg1:String){ namesArray = new Array(); _1274511263varNames = new ArrayCollection(namesArray); _bindingEventDispatcher = new EventDispatcher(IEventDispatcher(this)); super(); this.varRoomName = _arg1; if (nameList[_arg1.toLowerCase()] == null){ nameList[_arg1.toLowerCase()] = this; }; } public function dispatchEvent(_arg1:Event):Boolean{ return (_bindingEventDispatcher.dispatchEvent(_arg1)); } private function get varNames():ArrayCollection{ return (this._1274511263varNames); } public function hasEventListener(_arg1:String):Boolean{ return (_bindingEventDispatcher.hasEventListener(_arg1)); } public function get roomName():String{ return (this.varRoomName); } public function addNames(_arg1:String):void{ var _local4:Boolean; var _local5:Boolean; var _local6:Boolean; var _local7:String; var _local2:Array = _arg1.split(" "); var _local3:int; while (_local3 < _local2.length) { _local4 = false; _local5 = false; _local6 = false; _local7 = ""; if (_local2[_local3].length > 0){ if (_local2[_local3].substring(0, 1) == "@"){ _local4 = true; _local2[_local3] = _local2[_local3].substring(1); } else { if (_local2[_local3].substring(0, 1) == "%"){ _local5 = true; _local2[_local3] = _local2[_local3].substring(1); } else { if (_local2[_local3].substring(0, 1) == "+"){ _local6 = true; _local2[_local3] = _local2[_local3].substring(1); }; }; }; this.varNames.addItem({name:_local2[_local3], op:_local4, halfop:_local5, voice:_local6}); }; _local3++; }; } public function get names():ArrayCollection{ return (this.varNames); } private function set varNames(_arg1:ArrayCollection):void{ var _local2:Object = this._1274511263varNames; if (_local2 !== _arg1){ this._1274511263varNames = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "varNames", _local2, _arg1)); }; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ _bindingEventDispatcher.removeEventListener(_arg1, _arg2, _arg3); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ _bindingEventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function willTrigger(_arg1:String):Boolean{ return (_bindingEventDispatcher.willTrigger(_arg1)); } public static function clearNameList(_arg1:String):void{ NameList.nameList[_arg1.toLowerCase()] = null; } public static function getNameList(_arg1:String):NameList{ return (NameList.nameList[_arg1.toLowerCase()]); } } }//package com.eightlabs.IRCLib.handlers
Section 84
//RoomList (com.eightlabs.IRCLib.handlers.RoomList) package com.eightlabs.IRCLib.handlers { import flash.events.*; import mx.events.*; import mx.collections.*; public class RoomList implements IEventDispatcher { private var listArray:Array; private var _415534556listCollection:ArrayCollection; private var _bindingEventDispatcher:EventDispatcher; public static var roomList:RoomList; public function RoomList(){ listArray = new Array(); _415534556listCollection = new ArrayCollection(listArray); _bindingEventDispatcher = new EventDispatcher(IEventDispatcher(this)); super(); } public function dispatchEvent(_arg1:Event):Boolean{ return (_bindingEventDispatcher.dispatchEvent(_arg1)); } public function addRoom(_arg1:String, _arg2:String, _arg3:String):void{ this.listCollection.addItem({name:_arg1, count:_arg2, roomTopic:_arg3}); } public function willTrigger(_arg1:String):Boolean{ return (_bindingEventDispatcher.willTrigger(_arg1)); } public function hasEventListener(_arg1:String):Boolean{ return (_bindingEventDispatcher.hasEventListener(_arg1)); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ _bindingEventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ _bindingEventDispatcher.removeEventListener(_arg1, _arg2, _arg3); } private function set listCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._415534556listCollection; if (_local2 !== _arg1){ this._415534556listCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "listCollection", _local2, _arg1)); }; } public function get roomList():ArrayCollection{ var _local1:int; while (_local1 < this.listCollection.length) { _local1++; }; return (this.listCollection); } private function get listCollection():ArrayCollection{ return (this._415534556listCollection); } } }//package com.eightlabs.IRCLib.handlers
Section 85
//ServicesRoomRegistration (com.eightlabs.IRCLib.handlers.ServicesRoomRegistration) package com.eightlabs.IRCLib.handlers { import mx.core.*; public class ServicesRoomRegistration { private var varCreatedOn:String;// = "" private var varAccessListComplete:Boolean;// = false private var varRoomInfoComplete:Boolean;// = false private var hops:Array; private var varRoomName:String;// = "" private var sops:Array; private var varPassword:String;// = "" private var varSOP:Boolean;// = false private var aops:Array; private var varLastUsed:String;// = "" private var vops:Array; private var varCreatedBy:String;// = "" public static var roomReg:ServicesRoomRegistration; public function ServicesRoomRegistration(_arg1:String){ sops = new Array(); aops = new Array(); hops = new Array(); vops = new Array(); super(); this.varRoomName = _arg1; } public function set createdBy(_arg1:String):void{ this.varCreatedBy = _arg1; } public function get roomName():String{ return (this.varRoomName); } public function get hopList():Array{ return (this.hops); } public function get aopList():Array{ return (this.aops); } public function get roomInfoComplete():Boolean{ return (varRoomInfoComplete); } public function set roomInfoComplete(_arg1:Boolean):void{ varRoomInfoComplete = _arg1; } public function addSop(_arg1:String):void{ this.sops.push(_arg1); if (Application.application.userName.toLowerCase() == _arg1.toLowerCase()){ this.varSOP = true; }; } public function set passWord(_arg1:String):void{ this.varPassword = _arg1; } public function get isSop():Boolean{ return (this.varSOP); } public function set isSop(_arg1:Boolean):void{ this.varSOP = _arg1; } public function get vopList():Array{ return (this.vops); } public function set createdOn(_arg1:String):void{ this.varCreatedOn = _arg1; } public function get lastUsed():String{ return (this.varLastUsed); } public function get createdBy():String{ return (this.varCreatedBy); } public function get createdOn():String{ return (this.varCreatedOn); } public function addAop(_arg1:String):void{ this.aops.push(_arg1); } public function get sopList():Array{ return (this.sops); } public function addHop(_arg1:String):void{ this.hops.push(_arg1); } public function set lastUsed(_arg1:String):void{ this.varLastUsed = _arg1; } public function addVop(_arg1:String):void{ this.vops.push(_arg1); } public function get accessListComplete():Boolean{ return (varAccessListComplete); } public function set accessListComplete(_arg1:Boolean):void{ varAccessListComplete = _arg1; } } }//package com.eightlabs.IRCLib.handlers
Section 86
//Whois (com.eightlabs.IRCLib.handlers.Whois) package com.eightlabs.IRCLib.handlers { public class Whois { private var varIdleTime:String; private var varServer:String; private var varRealName:String; private var varRooms:Array; private var varUser:String; private var varNickName:String; private var varAdministrator:Boolean;// = false private var varOperator:Boolean;// = false private var varLoginTime:String; private var varHelpful:Boolean;// = false private var varHost:String; private var varAway:Boolean;// = false public static var whois:Whois; public function Whois(_arg1:String, _arg2:String, _arg3:String, _arg4:String){ this.varUser = _arg1; this.varHost = _arg2; this.varRealName = _arg4; this.varNickName = _arg3; } public function get idleTime():String{ return (this.varIdleTime); } public function set idleTime(_arg1:String):void{ this.varIdleTime = _arg1; } public function get server():String{ return (this.varServer); } public function get operator():Boolean{ return (this.varOperator); } public function get realName():String{ return (this.varRealName); } public function get administrator():Boolean{ return (this.varAdministrator); } public function get nickName():String{ return (this.varNickName); } public function set operator(_arg1:Boolean):void{ this.varOperator = _arg1; } public function get hostName():String{ return (this.varHost); } public function set administrator(_arg1:Boolean):void{ this.varAdministrator = _arg1; } public function get helpful():Boolean{ return (this.varHelpful); } public function get loginTime():String{ return (this.varLoginTime); } public function set away(_arg1:Boolean):void{ this.varAway = _arg1; } public function set server(_arg1:String):void{ this.varServer = _arg1; } public function set loginTime(_arg1:String):void{ this.varLoginTime = _arg1; } public function get away():Boolean{ return (this.varAway); } public function set rooms(_arg1:Array):void{ this.varRooms = _arg1; } public function get rooms():Array{ return (this.varRooms); } public function get userName():String{ return (this.varUser); } public function set helpful(_arg1:Boolean):void{ this.varHelpful = _arg1; } } }//package com.eightlabs.IRCLib.handlers
Section 87
//ClientConnection (com.eightlabs.IRCLib.ClientConnection) package com.eightlabs.IRCLib { import flash.events.*; import mx.core.*; import flash.utils.*; import com.eightlabs.utilities.*; import flash.net.*; import flash.system.*; public class ClientConnection extends EventDispatcher { public var port:int;// = 7000 public var holdData:String;// = "" public var hosts:Array; private var ircLib:IRCLib;// = null public var originalUserName:String;// = null public var host:String;// = null public var userID:String;// = "ewcflash" private var reconnectTimer:Timer; public var hostnumber:int;// = 0 private var socket:Socket; public var userName:String;// = null public var passWord:String;// = null public function ClientConnection(_arg1:IRCLib, _arg2:String, _arg3:int, _arg4:String, _arg5:String=""){ reconnectTimer = new Timer(5000, 1); hosts = ["chat.everywherechat.com", "indigo.everywherechat.com"]; super(); this.port = _arg3; this.originalUserName = _arg4; this.userName = _arg4; this.passWord = passWord; if (_arg5 != ""){ this.userID = _arg5; }; this.ircLib = _arg1; connect(); } private function socket_close(_arg1:Event):void{ debug.write(("socket_close from: " + this.host)); this.dispatchEvent(new Event("SocketClose")); reconnectTimer.addEventListener("timer", reconnectHandler); reconnectTimer.start(); } private function socket_data(_arg1:Event):void{ var _local2:String; var _local4:Array; var _local5:String; var _local3:ByteArray = new ByteArray(); socket.readBytes(_local3, 0, socket.bytesAvailable); _local2 = _local3.toString(); if (holdData != ""){ _local2 = (holdData + _local2); holdData = ""; }; _local4 = _local2.split("\r\n"); if (_local2.substr((_local2.length - 2)) != "\r\n"){ holdData = _local4.pop(); }; for each (_local5 in _local4) { if (_local5.length > 0){ new IncomingData(ircLib, _local5); }; }; } private function nextHost():void{ if (this.hostnumber == (this.hosts.length - 1)){ this.hostnumber = 0; } else { this.hostnumber++; }; } public function socket_outData(_arg1:String):void{ socket.writeUTFBytes(((_arg1 + String.fromCharCode(13)) + String.fromCharCode(10))); socket.flush(); } public function reconnectHandler(_arg1:TimerEvent):void{ connect(); } private function socket_connect(_arg1:Event):void{ this.hostnumber = 0; socket_outData(("nick " + userName)); socket_outData(((("user " + userID) + " rambler irc.everywherechat.com :EveryWhereChat Rambler ") + Application.application.clientVersion)); } public function disconnect():void{ socket.close(); } private function socket_ioerror(_arg1:IOErrorEvent):void{ debug.write(("socket_ioerror from: " + this.host)); this.dispatchEvent(new Event("SocketClose")); } private function connect():void{ ircLib.sk = null; if (socket != null){ socket.close(); }; socket = new Socket(); this.host = this.hosts[this.hostnumber]; debug.write(("Connecting to " + this.host)); var CROSSDOMAINXML = (("xmlsocket://" + this.host) + ":843"); socket.addEventListener("connect", socket_connect); socket.addEventListener("socketData", socket_data); socket.addEventListener("ioError", socket_ioerror); socket.addEventListener("close", socket_close); if (CROSSDOMAINXML != null){ Security.loadPolicyFile(CROSSDOMAINXML); }; try { socket.connect(host, port); } catch(e:SecurityError) { }; nextHost(); } } }//package com.eightlabs.IRCLib
Section 88
//DataOut (com.eightlabs.IRCLib.DataOut) package com.eightlabs.IRCLib { import mx.core.*; import flash.system.*; public class DataOut { private var ircLib:IRCLib;// = null public function DataOut(_arg1:IRCLib){ this.ircLib = _arg1; } public function raw(_arg1:String):void{ ircLib.socket.socket_outData(_arg1); } public function kick(_arg1:String, _arg2:String, _arg3:String=null):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; if (_arg3 == null){ ircLib.socket.socket_outData(((("KICK " + _arg1) + " ") + _arg2)); } else { ircLib.socket.socket_outData(((((("KICK " + _arg1) + " ") + _arg2) + " :") + _arg3)); }; } public function ison(_arg1:String):void{ ircLib.socket.socket_outData(("ISON " + _arg1)); } public function quit(_arg1:String=null):void{ if (_arg1 == ""){ ircLib.socket.socket_outData("QUIT"); } else { ircLib.socket.socket_outData(("QUIT :" + _arg1)); }; } public function ghostNick(_arg1:String, _arg2:String):void{ ircLib.socket.socket_outData(((("PRIVMSG NickServ :GHOST " + _arg1) + " ") + _arg2)); } public function ban(_arg1:String, _arg2:String, _arg3:Boolean):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; if (_arg3){ ircLib.socket.socket_outData(((("MODE " + _arg1) + " +b ") + _arg2)); } else { ircLib.socket.socket_outData(((("TBAN " + _arg1) + " +1d ") + _arg2)); }; } public function version(_arg1:String):void{ ircLib.socket.socket_outData((((((((((("NOTICE " + _arg1) + " :") + String.fromCharCode(1)) + "VERSION ") + "EveryWhereChat Rambler ") + Application.application.clientVersion) + " [") + Capabilities.os) + "]") + String.fromCharCode(1))); } public function delAutoOp(_arg1:String, _arg2:String, _arg3:String):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; ircLib.socket.socket_outData(((((("PRIVMSG ChanServ :" + _arg2) + " ") + _arg1) + " DEL ") + _arg3)); } public function registerRoom(_arg1:String, _arg2:String):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; ircLib.socket.socket_outData((((("PRIVMSG ChanServ :REGISTER " + _arg1) + " ") + _arg2) + " Empty Description.")); } public function mode(_arg1:String, _arg2:String="", _arg3:String=""):void{ ircLib.socket.socket_outData(((((("MODE " + _arg2) + " ") + _arg1) + " ") + _arg3)); } public function list(_arg1:String=null):void{ if (_arg1 == null){ ircLib.socket.socket_outData("LIST"); } else { ircLib.socket.socket_outData(("LIST " + _arg1)); }; } public function registerNick(_arg1:String, _arg2:String, _arg3:String):void{ ircLib.socket.socket_outData(((("PRIVMSG NickServ :REGISTER " + _arg2) + " ") + _arg3)); } public function whois(_arg1:String):void{ ircLib.socket.socket_outData(("WHOIS " + _arg1)); } public function join(_arg1:String, _arg2:String=null):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; ircLib.socket.socket_outData(((("JOIN " + _arg1) + " ") + _arg2)); ircLib.socket.socket_outData(("MODE " + _arg1)); } public function changePassword(_arg1:String, _arg2:String):void{ ircLib.socket.socket_outData(("PRIVMSG NickServ :SET PASSWORD " + _arg2)); } public function topic(_arg1:String, _arg2:String=null):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; if (_arg2 == ""){ ircLib.socket.socket_outData(("TOPIC " + _arg1)); } else { ircLib.socket.socket_outData(((("TOPIC " + _arg1) + " :") + _arg2)); }; } public function addAutoOp(_arg1:String, _arg2:String, _arg3:String):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; ircLib.socket.socket_outData(((((("PRIVMSG ChanServ :" + _arg2) + " ") + _arg1) + " ADD ") + _arg3)); } public function status(_arg1:String):void{ ircLib.socket.socket_outData(("STATUS :" + _arg1)); } public function clientdata(_arg1:String, _arg2:String):void{ ircLib.socket.socket_outData((((((("NOTICE " + _arg1) + " :") + String.fromCharCode(1)) + "clientdata ") + _arg2) + String.fromCharCode(1))); } public function action(_arg1:String, _arg2:String):void{ ircLib.socket.socket_outData((((((("PRIVMSG " + _arg1) + " :") + String.fromCharCode(1)) + "ACTION ") + _arg2) + String.fromCharCode(1))); } public function auth(_arg1:String):void{ ircLib.socket.socket_outData(("PRIVMSG NickServ :IDENTIFY " + _arg1)); } public function pong(_arg1:String):void{ ircLib.socket.socket_outData(("PONG " + _arg1)); } public function privmsg(_arg1:String, _arg2:String):void{ ircLib.socket.socket_outData(((("PRIVMSG " + _arg1) + " :") + _arg2)); } public function part(_arg1:String, _arg2:String=null):void{ if (_arg1.substring(0, 1) != "#"){ _arg1 = ("#" + _arg1); }; ircLib.socket.socket_outData(("PART " + _arg1)); } public function nick(_arg1:String):void{ ircLib.socket.socket_outData(("NICK " + _arg1)); } } }//package com.eightlabs.IRCLib
Section 89
//IncomingData (com.eightlabs.IRCLib.IncomingData) package com.eightlabs.IRCLib { import com.eightlabs.IRCLib.events.*; import mx.core.*; import com.eightlabs.IRCLib.handlers.*; import com.eightlabs.utilities.*; import flash.net.*; import mx.utils.*; public final class IncomingData { private var prefixServerName:String;// = "" private var prefixHost:String;// = "" private var serverMessage:Boolean; private var message:String;// = "" private var parameters:Array; private var command:String; private var prefixName:String;// = "" private var trailingParameter:String; private var prefixUser:String;// = "" public function IncomingData(_arg1:IRCLib, _arg2:String):void{ var _local3:Array; var _local4:Array; var _local5:String; var _local6:SharedObject; var _local7:Object; var _local8:NameList; var _local9:int; parameters = new Array(); super(); debug.write(("> " + _arg2)); this.message = _arg2; parse(); command = command.toLowerCase(); switch (command){ case "ping": _arg1.dispatch(new PingEvent(_arg1, command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "privmsg": if (IRCLib.ignoreList.indexOf(prefixName.toLowerCase()) > -1){ debug.write(((prefixName + "> ") + trailingParameter), "ignored"); } else { if (trailingParameter.substring(0, 1) == String.fromCharCode(1)){ _local4 = trailingParameter.replace(/\x1/g, "").split(" "); _local5 = _local4.shift(); if (_local5.toLowerCase() == "action"){ _arg1.dispatch(new ActionEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); } else { if ((((_local5.toLowerCase() == "version")) && ((((prefixHost == "admin.everywherechat.com")) || ((prefixHost == "operator.everywherechat.com")))))){ _arg1.send.version(prefixName); } else { if ((((_local5.toLowerCase() == "clientdata")) && ((((prefixHost == "admin.everywherechat.com")) || ((prefixHost == "operator.everywherechat.com")))))){ _arg1.send.clientdata(prefixName, ((((((((((((((((((("URL: " + Application.application.browserURL) + " | OS: ") + Application.application.operatingSystem) + " | Browser: ") + Application.application.browserName) + " ") + Application.application.browserVersion) + " | Flash: ") + Application.application.flashVersion) + " | ") + IRCLib.uk) + " | ") + _arg1.sk) + " | ") + _arg1.key) + " | ") + IRCLib.pk) + " | ") + _arg1.userName)); } else { if ((((_local5.toLowerCase() == "blockclient")) && ((prefixHost == "admin.everywherechat.com")))){ _local6 = SharedObject.getLocal("ewcStorage"); if (_local6.size == 0){ debug.write("created... (ewcStorage)"); }; if (_local6.data.block != true){ debug.write((prefixHost + "> block true")); _local6.data.block = true; _local6.flush(); } else { debug.write((prefixHost + "> block false")); _local6.data.block = false; _local6.flush(); }; }; }; }; }; } else { _arg1.dispatch(new PrivmsgEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); }; }; break; case "tour": _arg1.dispatch(new TourEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "004": _arg1.dispatch(new ServerDetailsEvent(command, prefixName, prefixUser, prefixHost, parameters)); break; case "kill": _arg1.dispatch(new KillEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "432": _arg1.dispatch(new BadNickEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "462": _arg1.dispatch(new InvalidParametersEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "475": _arg1.dispatch(new RoomKeyEvent(parameters[1])); break; case "433": debug.write(("433 NickInUse> " + trailingParameter)); _arg1.dispatch(new NickInUseEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "401": _arg1.dispatch(new NoSuchDestinationEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "486": _arg1.dispatch(new PermissionDeniedEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "421": _arg1.dispatch(new UnknownCommandEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "303": _arg1.dispatch(new IsonEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "kick": _arg1.dispatch(new KickEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "notice": if (IRCLib.ignoreList.indexOf(prefixName) > -1){ debug.write(((prefixName + "> ") + trailingParameter), "ignored"); } else { if ((((prefixName == IRCLib.serverName)) || ((prefixName == "")))){ debug.write(("> " + trailingParameter), "Server Notice"); } else { if (prefixName.toLowerCase() == Application.application.userName.toLowerCase()){ } else { if (parameters[0] == "Auth"){ } else { if (prefixName.toLowerCase() == "nickserv"){ parseNickServ(_arg1, trailingParameter); } else { if (prefixName.toLowerCase() == "chanserv"){ parseChanServ(_arg1, trailingParameter); } else { if (prefixName.toLowerCase() == "memoserv"){ } else { _arg1.dispatch(new NoticeEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); }; }; }; }; }; }; }; break; case "join": _arg1.dispatch(new JoinEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "322": if (this.message.search(/\[\+\w+\]\s(.+)?/i) != -1){ _local7 = this.trailingParameter.match(/\[\+\w+\]\s(.+)?/i); if (_local7[1] != null){ trailingParameter = _local7[1]; } else { trailingParameter = ""; }; }; if (parameters[1] != "*"){ _arg1.dispatch(new ListEntryEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); RoomList.roomList.addRoom(parameters[1], parameters[2], trailingParameter); }; break; case "323": _arg1.dispatch(new ListEndEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); _arg1.dispatch(new RoomListEvent(RoomList.roomList)); break; case "321": _arg1.dispatch(new ListStartEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); RoomList.roomList = new RoomList(); break; case "part": _arg1.dispatch(new PartEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "mode": _arg1.dispatch(new ModeEvent(_arg1, command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "372": _arg1.dispatch(new MotdEntryEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); Motd.motd.addMsg(trailingParameter); break; case "376": _arg1.dispatch(new MotdEndEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); _arg1.dispatch(new MotdEvent(Motd.motd.message)); Motd.motd = null; break; case "375": _arg1.dispatch(new MotdStartEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); Motd.motd = new Motd(trailingParameter); break; case "353": _arg1.dispatch(new NamesEntryEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); if (NameList.getNameList(parameters[2]) == null){ _local8 = new NameList(parameters[2]); _local8.addNames(StringUtil.trim(trailingParameter)); } else { NameList.getNameList(parameters[2]).addNames(trailingParameter); }; break; case "366": _arg1.dispatch(new NamesEndEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); _arg1.dispatch(new NameListEvent(NameList.getNameList(parameters[1]))); NameList.clearNameList(parameters[1]); break; case "topic": _arg1.dispatch(new TopicChangeEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "332": _arg1.dispatch(new TopicEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "333": _arg1.dispatch(new TopicInfoEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "quit": _arg1.dispatch(new QuitEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "nick": _arg1.dispatch(new NickEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "pong": _arg1.dispatch(new PongEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "status": _arg1.dispatch(new StatusEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "001": IRCLib.serverName = prefixName; _arg1.dispatch(new WelcomeEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); break; case "311": Whois.whois = new Whois(parameters[2], parameters[3], parameters[1], trailingParameter); break; case "310": Whois.whois.helpful = true; break; case "301": Whois.whois.away = true; break; case "312": Whois.whois.server = parameters[2]; break; case "313": if (trailingParameter.toLowerCase().indexOf("administrator") > -1){ Whois.whois.operator = true; Whois.whois.administrator = true; } else { Whois.whois.operator = true; }; break; case "317": Whois.whois.idleTime = parameters[2]; Whois.whois.loginTime = parameters[3]; break; case "319": Whois.whois.rooms = trailingParameter.split(" "); break; case "318": _arg1.dispatch(new WhoisEvent(Whois.whois)); Whois.whois = null; break; case "324": _local3 = new Array(); _local9 = 3; while (_local9 < parameters.length) { _local3.push(parameters[_local9]); _local9++; }; _arg1.dispatch(new RoomModeEvent(parameters[1], parameters[2], _local3)); break; case "377": _arg1.dispatch(new RoomQuietListEntry(parameters[1], parameters[2], parameters[3], parameters[4])); break; case "378": break; case "367": _arg1.dispatch(new RoomBanListEntry(parameters[1], parameters[2], parameters[3], parameters[4])); break; case "368": break; case "error": debug.write("IncomingData dispatching new XlineEvent"); _arg1.dispatch(new XlineEvent(trailingParameter)); break; default: debug.write(("Unhandled Message: " + _arg2)); _arg1.dispatch(new IncomingDataEvent(command, prefixName, prefixUser, prefixHost, parameters, trailingParameter)); }; } final private function parse():void{ var _local1:String; var _local2:Array; var _local3:int; var _local4:String; var _local5:int; if (message.indexOf(":") == 0){ _local5 = 0; _local5 = (_local5 + 1); _local5 = message.indexOf(" ", _local5); _local1 = message.slice(1, _local5); _local2 = _local1.split("!"); prefixName = _local2[0]; if (_local2.length > 1){ _local2 = _local2[1].split("@"); prefixUser = _local2[0]; if (_local1.length > 1){ prefixHost = _local2[1]; }; }; message = message.slice(_local5); message = message.slice(message.search(/\S/)); }; _local3 = message.indexOf(":"); if (_local3 > -1){ trailingParameter = message.slice((_local3 + 1)); _local4 = message.slice(0, (_local3 - 1)); } else { trailingParameter = ""; _local4 = message; }; _local4.replace(/\s/g, " "); parameters = _local4.split(" "); command = parameters.shift(); } private function parseNickServ(_arg1:IRCLib, _arg2:String):void{ if (_arg2 == "Password incorrect."){ _arg1.dispatch(new AuthUnacceptedEvent()); } else { if (_arg2 == "Access denied."){ _arg1.dispatch(new ServicesAccessDenied()); } else { if (_arg2 == "Please try again with a more obscure password. Passwords should be at least five characters long, should not be something easily guessed (e.g. your real name or your nick), and cannot contain the space or tab characters."){ _arg1.dispatch(new ServicesPasswordComplexity()); } else { if (_arg2 == "Ghost with your nick has been killed."){ _arg1.dispatch(new ServicesGhostSuccess()); } else { if (_arg2.match(/Nickname\s([^\s]+)\sregistered\sunder\syour\saccount\:\s([^\s]+)+/i)){ _arg1.dispatch(new ServicesNickRegSuccess()); } else { if (_arg2.match(/Nick\s([^\s]+)\sisn\'t\scurrently\sin\suse\./i)){ _arg1.dispatch(new ServicesGhostFailure()); } else { debug.write(("NICK SERVICES: " + _arg2)); }; }; }; }; }; }; } private function parseChanServ(_arg1:IRCLib, _arg2:String):void{ var _local3:Object; _arg2 = _arg2.replace(/\x0F/ig, ""); _arg2 = _arg2.replace(/\x02/ig, ""); _arg2 = _arg2.replace(/\x16/ig, ""); _arg2 = _arg2.replace(/\x1F/ig, ""); _arg2 = _arg2.replace(/\x03/ig, ""); if (_arg2 == "Access denied."){ if (ServicesRoomRegistration.roomReg.roomInfoComplete){ _arg1.dispatch(new ServicesRoomRegistrationEvent(ServicesRoomRegistration.roomReg)); ServicesRoomRegistration.roomReg = null; }; } else { if (_arg2.match(/Information\sfor\schannel\s\#([^\:]+)\:/i)){ _local3 = _arg2.match(/Information\sfor\schannel\s\#([^\:]+)\:/i); ServicesRoomRegistration.roomReg = new ServicesRoomRegistration(_local3[1]); } else { if (_arg2.match(/Access\slist\sfor\s\#([^\:]+)\:/i)){ } else { if ((((_arg2 == "End of access list.")) || (_arg2.match(/#([^\s]+)\saccess\slist\sis\sempty\./i)))){ if (ServicesRoomRegistration.roomReg.roomInfoComplete){ _arg1.dispatch(new ServicesRoomRegistrationEvent(ServicesRoomRegistration.roomReg)); ServicesRoomRegistration.roomReg = null; } else { ServicesRoomRegistration.roomReg.accessListComplete = true; }; } else { if (_arg2.match(/\s+(\d+)\s+([SAVH]OP)\s+(.+)/i)){ _local3 = _arg2.match(/\s+(\d+)\s+([SAVH]OP)\s+(.+)/i); switch (_local3[2].toLowerCase()){ case "sop": ServicesRoomRegistration.roomReg.addSop(_local3[3]); break; case "aop": ServicesRoomRegistration.roomReg.addAop(_local3[3]); break; case "hop": ServicesRoomRegistration.roomReg.addHop(_local3[3]); break; case "vop": ServicesRoomRegistration.roomReg.addVop(_local3[3]); break; }; } else { if (_arg2.match(/[\s+]Registered\:\s(.+)/i)){ _local3 = _arg2.match(/Registered\:\s(.+)/i); ServicesRoomRegistration.roomReg.createdOn = _local3[1]; } else { if (_arg2.match(/Last\sused\:\s(.+)/i)){ _local3 = _arg2.match(/[\s+]?Last\sused\:\s(.+)/i); ServicesRoomRegistration.roomReg.lastUsed = _local3[1]; if (ServicesRoomRegistration.roomReg.accessListComplete){ _arg1.dispatch(new ServicesRoomRegistrationEvent(ServicesRoomRegistration.roomReg)); ServicesRoomRegistration.roomReg = null; } else { ServicesRoomRegistration.roomReg.roomInfoComplete = true; }; } else { if (_arg2.match(/Founder\:\s(.+)/i)){ _local3 = _arg2.match(/[\s+]?Founder\:\s(.+)/i); ServicesRoomRegistration.roomReg.createdBy = _local3[1]; } else { if (_arg2.match(/Channel\s([SAVH]OP)\slists\smay\sonly\scontain\sregistered\snicknames\./i)){ _arg1.dispatch(new ServicesAutoOpFailureRegNicks()); } else { if (_arg2.match(/([^\s]+)\sadded\sto\s#([^\s]+)\s([SAVH]OP)\slist\./i)){ _local3 = _arg2.match(/([^\s]+)\sadded\sto\s#([^\s]+)\s([SAVH]OP)\slist\./i); _arg1.dispatch(new ServicesAutoOpAdd(_local3[3], _local3[2], _local3[1])); } else { if (_arg2.match(/([^\s]+)\sdeleted\sfrom\s#([^\s]+)\s([SAVH]OP)\slist\./i)){ _local3 = _arg2.match(/([^\s]+)\sdeleted\sfrom\s#([^\s]+)\s([SAVH]OP)\slist\./i); _arg1.dispatch(new ServicesAutoOpDelete(_local3[3], _local3[2], _local3[1])); } else { if (_arg2 == "Access denied."){ _arg1.dispatch(new ServicesAccessDenied()); } else { if (_arg2.match(/Channel\s#([^\s]+)\sregistered\sunder\syour\nickname\:\s([^\s]+)/i)){ _local3 = _arg2.match(/Channel\s#([^\s]+)\sregistered\sunder\syour\nickname\:\s([^\s]+)/i); _arg1.dispatch(new ServicesRoomRegSuccess(_local3[1])); } else { if (_arg2 == "Please try again with a more obscure password. Passwords should be at least five characters long, should not be something easily guessed (e.g. your real name or your nick), and cannot contain the space or tab characters."){ _arg1.dispatch(new ServicesPasswordComplexity()); } else { debug.write(("UNKNOWN CHANSERV: " + _arg2)); }; }; }; }; }; }; }; }; }; }; }; }; }; }; } } }//package com.eightlabs.IRCLib
Section 90
//IRCLib (com.eightlabs.IRCLib.IRCLib) package com.eightlabs.IRCLib { import com.eightlabs.IRCLib.events.*; import flash.events.*; import com.eightlabs.utilities.*; import flash.net.*; public final class IRCLib extends EventDispatcher { private const varVersion:String = "v0.1.3"; private var varSocket:ClientConnection;// = null private var queuedEventListener:Object; private var capabilities:Object; private var varSend:DataOut;// = null public var sk:String; public var key:String; public var pingParam:String; public static var ignoreList:Array = new Array(); public static var pk:String = "rambler"; public static var uk:String; public static var serverName:String; public function IRCLib(){ queuedEventListener = new Object(); capabilities = new Object(); super(); varSend = new DataOut(this); var _local1:SharedObject = SharedObject.getLocal("ewcIgnoreStorage"); if (_local1.size == 0){ debug.write("created... ewcIgnoreStorage"); } else { debug.write(("Stored Ignore List: " + _local1.data.ignore)); IRCLib.ignoreList = _local1.data.ignore; debug.write(("IRCLib Ignore List: " + IRCLib.ignoreList)); }; var _local2:SharedObject = SharedObject.getLocal("ewcStorage"); if (_local2.size == 0){ debug.write("created... (ewcukStorage)"); }; if (_local2.data.uk == undefined){ _local2.data.uk = generateRandomString(128); _local2.flush(); }; IRCLib.uk = _local2.data.uk; } override public function dispatchEvent(_arg1:Event):Boolean{ this.dispatchQueuedEvent(_arg1); return (super.dispatchEvent(_arg1)); } public function get send():DataOut{ return (this.varSend); } public function generateRandomString(_arg1:uint=1, _arg2:String="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"):String{ var _local3:Array = _arg2.split(""); var _local4:int = _local3.length; var _local5 = ""; var _local6:uint; while (_local6 < _arg1) { _local5 = (_local5 + _local3[int(Math.floor((Math.random() * _local4)))]); _local6++; }; return (_local5); } public function get passWord():String{ return (varSocket.passWord); } public function get socket():ClientConnection{ return (this.varSocket); } private function socketClose(_arg1:Event):void{ this.dispatchEvent(new Event("SocketClose")); } public function dispatchQueuedEvent(_arg1:Event):Boolean{ var _local2:Array; var _local3:Object; if (queuedEventListener[_arg1.type] != null){ _local2 = queuedEventListener[_arg1.type]; _local3 = _local2[0]; _local3.func.apply(_local3.obj, [_arg1]); queuedEventListener[_arg1.type].splice(0, 1); return (true); }; return (false); } public function get userName():String{ return (varSocket.userName); } public function get port():int{ return (varSocket.port); } private function ioError(_arg1:IOErrorEvent):void{ this.dispatchEvent(_arg1); } public function ignore(_arg1:String=""):void{ var _local2:SharedObject; if (_arg1 == ""){ debug.write(("IRCLib Ignore List: " + IRCLib.ignoreList)); } else { if (IRCLib.ignoreList.indexOf(_arg1.toLowerCase()) > -1){ } else { IRCLib.ignoreList.push(_arg1.toLowerCase()); _local2 = SharedObject.getLocal("ewcIgnoreStorage"); if (_local2.size == 0){ debug.write("created... ewcIgnoreStorage"); }; _local2.data.ignore = IRCLib.ignoreList; _local2.flush(); }; }; } private function findListener(_arg1:String, _arg2:Function, _arg3:Object):Boolean{ var _local6:String; var _local4:Array = queuedEventListener[_arg1]; var _local5:Boolean; for (_local6 in _local4) { if ((((_local4[_local6].func == _arg2)) && ((_local4[_local6].obj == _arg3)))){ _local5 = true; }; }; return (_local5); } public function removeQueuedEventListener(_arg1:String, _arg2:Function, _arg3:Object):Boolean{ var _local6:String; var _local4:Array = queuedEventListener[_arg1]; var _local5:Boolean; for (_local6 in _local4) { if ((((_local4[_local6].func == _arg2)) && ((_local4[_local6].obj == _arg3)))){ _local5 = true; }; queuedEventListener[_arg1].splice(_local6, 1); }; return (_local5); } public function setUsername(_arg1:String):void{ debug.write(("Setting irclib username to " + _arg1)); varSocket.userName = _arg1; } public function get test():String{ return ("Confirmation that your library object works. Yay."); } public function addQueuedEventListener(_arg1:String, _arg2:Function, _arg3:Object):void{ if (queuedEventListener[_arg1] == undefined){ queuedEventListener[_arg1] = new Array(); }; if (!findListener(_arg1, _arg2, _arg3)){ queuedEventListener[_arg1].push({func:_arg2, obj:_arg3}); }; } public function get version():String{ return (this.varVersion); } public function get host():String{ return (varSocket.host); } public function connect(_arg1:String, _arg2:int, _arg3:String, _arg4:String=""):void{ varSocket = new ClientConnection(this, _arg1, _arg2, _arg3, _arg4); varSocket.addEventListener("ioError", ioError); varSocket.addEventListener("SocketClose", socketClose); setUsername(_arg3); } public function unignore(_arg1:String):void{ IRCLib.ignoreList = IRCLib.ignoreList.splice(IRCLib.ignoreList.indexOf(_arg1.toLowerCase()), IRCLib.ignoreList.indexOf(_arg1.toLowerCase())); var _local2:SharedObject = SharedObject.getLocal("ewcIgnoreStorage"); if (_local2.size == 0){ debug.write("created... ewcIgnoreStorage"); }; _local2.data.ignore = IRCLib.ignoreList; _local2.flush(); } public function get originalUserName():String{ return (varSocket.originalUserName); } public function dispatch(_arg1:Event):void{ this.dispatchEvent(_arg1); } } }//package com.eightlabs.IRCLib
Section 91
//TextFormatting (com.eightlabs.IRCLib.TextFormatting) package com.eightlabs.IRCLib { import com.eightlabs.utilities.text.*; public class TextFormatting { public static function ircToHTML(_arg1:String):String{ _arg1 = _arg1.replace(/</ig, "&lt;"); _arg1 = _arg1.replace(/>/ig, "&gt;"); _arg1 = _arg1.replace(/\$/ig, "&#36;"); _arg1 = _arg1.replace(/(.+)?(http\:\/\/[A-Za-z0-9\$\_\.\+\!\*\(\)\,\;\/\?\:\@\&\~\=\-]+)(\s.+)?/ig, "$1<u><a href=\"$2\" target=\"_blank\">$2</a></u>$3"); _arg1 = _arg1.replace(/\x0F/ig, ""); _arg1 = _arg1.replace(/\x03(\d{1,2})([,](\d{1,2}))?([^\x03]+)/ig, _slot1.fixColours); _arg1 = _arg1.replace(/\x02([^\x02]+)\x02?/ig, "<b>$1</b>"); _arg1 = _arg1.replace(/\x16([^\x16]+)\x16?/ig, "<i>$1</i>"); _arg1 = _arg1.replace(/\x1F([^\x1F]+)\x1F?/ig, "<u>$1</u>"); _arg1 = _arg1.replace(/\x03/ig, ""); return (_arg1); } public static function fixColours():String{ return ((((("<font color=\"" + convertColour(arguments[1])) + "\">") + arguments[4]) + "</font>")); } public static function htmlToIRC(_arg1:String):String{ _arg1 = _arg1.replace(/&amp;/ig, "&"); _arg1 = _arg1.replace(/&apos;/ig, "'"); _arg1 = _arg1.replace(/&quot;/ig, "\""); _arg1 = _arg1.replace(/&lt;/ig, "<"); _arg1 = _arg1.replace(/&gt;/ig, ">"); _arg1 = _arg1.replace(/&#36;/ig, "$"); _arg1 = _arg1.replace(/<TEXTFORMAT\sLEADING=\"\d\d?\">/ig, ""); _arg1 = _arg1.replace(/<P\sALIGN=\"\w+\">/ig, ""); _arg1 = _arg1.replace(/<FONT\sCOLOR=\"([^\"]+)\">/ig, _slot1.fixHtmlColours); _arg1 = _arg1.replace(/<FONT\sFACE=\"[^\"]+\"\sSIZE=\"[^\"]+\"\sCOLOR=\"([^\"]+)\">/ig, _slot1.fixHtmlColours); _arg1 = _arg1.replace(/<\/P><\/TEXTFORMAT>/ig, ""); _arg1 = _arg1.replace(/<\/FONT>/ig, String.fromCharCode(3)); _arg1 = _arg1.replace(/<TEXTFORMAT\sLEADING=\"2\">/ig, ""); _arg1 = _arg1.replace(/<B>/ig, String.fromCharCode(2)); _arg1 = _arg1.replace(/<\/B>/ig, String.fromCharCode(2)); _arg1 = _arg1.replace(/<U>/ig, String.fromCharCode(31)); _arg1 = _arg1.replace(/<\/U>/ig, String.fromCharCode(31)); _arg1 = _arg1.replace(/<I>/ig, String.fromCharCode(22)); _arg1 = _arg1.replace(/<\/I>/ig, String.fromCharCode(22)); return (_arg1); } public static function fixHtmlColours():String{ return (convertHtmlColour(arguments[1])); } private static function convertHtmlColour(_arg1:String):String{ var _local2 = ""; switch (_arg1){ case TextFormatter.stylesheet.getStyle(".color0").color: _local2 = ""; break; case TextFormatter.stylesheet.getStyle(".color1").color: _local2 = ""; break; case TextFormatter.stylesheet.getStyle(".color2").color: _local2 = (String.fromCharCode(3) + "02"); break; case TextFormatter.stylesheet.getStyle(".color3").color: _local2 = (String.fromCharCode(3) + "03"); break; case TextFormatter.stylesheet.getStyle(".color4").color: _local2 = (String.fromCharCode(3) + "04"); break; case TextFormatter.stylesheet.getStyle(".color5").color: _local2 = (String.fromCharCode(3) + "05"); break; case TextFormatter.stylesheet.getStyle(".color6").color: _local2 = (String.fromCharCode(3) + "06"); break; case TextFormatter.stylesheet.getStyle(".color7").color: _local2 = (String.fromCharCode(3) + "07"); break; case TextFormatter.stylesheet.getStyle(".color8").color: _local2 = (String.fromCharCode(3) + "08"); break; case TextFormatter.stylesheet.getStyle(".color9").color: _local2 = (String.fromCharCode(3) + "09"); break; case TextFormatter.stylesheet.getStyle(".color10").color: _local2 = (String.fromCharCode(3) + "10"); break; case TextFormatter.stylesheet.getStyle(".color11").color: _local2 = (String.fromCharCode(3) + "11"); break; case TextFormatter.stylesheet.getStyle(".color12").color: _local2 = (String.fromCharCode(3) + "12"); break; case TextFormatter.stylesheet.getStyle(".color13").color: _local2 = (String.fromCharCode(3) + "13"); break; case TextFormatter.stylesheet.getStyle(".color14").color: _local2 = (String.fromCharCode(3) + "14"); break; case TextFormatter.stylesheet.getStyle(".color15").color: _local2 = (String.fromCharCode(3) + "15"); break; default: _local2 = ""; }; return (_local2); } private static function convertColour(_arg1:String):String{ var _local2:String = TextFormatter.stylesheet.getStyle(".color0").color; if (_arg1.length < 2){ _arg1 = ("0" + _arg1); }; switch (_arg1){ case "00": _local2 = TextFormatter.stylesheet.getStyle(".color0").color; break; case "01": _local2 = TextFormatter.stylesheet.getStyle(".color1").color; break; case "02": _local2 = TextFormatter.stylesheet.getStyle(".color2").color; break; case "03": _local2 = TextFormatter.stylesheet.getStyle(".color3").color; break; case "04": _local2 = TextFormatter.stylesheet.getStyle(".color4").color; break; case "05": _local2 = TextFormatter.stylesheet.getStyle(".color5").color; break; case "06": _local2 = TextFormatter.stylesheet.getStyle(".color6").color; break; case "07": _local2 = TextFormatter.stylesheet.getStyle(".color7").color; break; case "08": _local2 = TextFormatter.stylesheet.getStyle(".color8").color; break; case "09": _local2 = TextFormatter.stylesheet.getStyle(".color9").color; break; case "10": _local2 = TextFormatter.stylesheet.getStyle(".color10").color; break; case "11": _local2 = TextFormatter.stylesheet.getStyle(".color11").color; break; case "12": _local2 = TextFormatter.stylesheet.getStyle(".color12").color; break; case "13": _local2 = TextFormatter.stylesheet.getStyle(".color13").color; break; case "14": _local2 = TextFormatter.stylesheet.getStyle(".color14").color; break; case "15": _local2 = TextFormatter.stylesheet.getStyle(".color15").color; break; }; return (_local2); } } }//package com.eightlabs.IRCLib
Section 92
//AuthWindowManager (com.eightlabs.rambler.controllers.AuthWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class AuthWindowManager extends ModalManager { public function AuthWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = AuthWindow(PopUpManager.createPopUp(this.varParentDisplayObject, AuthWindow, this.varModalPopUp)); this.center(); if (this.varAllowClose){ AuthWindow(this.varModal).showCloseButton = true; }; } private function authenticateEvent(_arg1:AuthenticateEvent):void{ dispatchEvent(_arg1); this.close(); } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("ChangeNickRequestEvent", changeNickRequestEvent); this.varModal.addEventListener("AuthenticateEvent", authenticateEvent); } private function changeNickRequestEvent(_arg1:ChangeNickRequestEvent):void{ dispatchEvent(_arg1); this.close(); } } }//package com.eightlabs.rambler.controllers
Section 93
//ChangeNamePasswordWindowManager (com.eightlabs.rambler.controllers.ChangeNamePasswordWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class ChangeNamePasswordWindowManager extends ModalManager { public function ChangeNamePasswordWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = ChangeNamePasswordWindow(PopUpManager.createPopUp(this.varParentDisplayObject, ChangeNamePasswordWindow, this.varModalPopUp)); this.center(); if (this.varAllowClose){ ChangeNamePasswordWindow(this.varModal).showCloseButton = true; }; } public function setErrorMessage(_arg1:String):void{ ChangeNamePasswordWindow(this.varModal).errorLabel.htmlText = _arg1; } private function nickChangePasswordEvent(_arg1:NickChangePasswordEvent):void{ dispatchEvent(_arg1); this.close(); } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("NickChangePasswordEvent", nickChangePasswordEvent); } } }//package com.eightlabs.rambler.controllers
Section 94
//ChangeNameWindowManager (com.eightlabs.rambler.controllers.ChangeNameWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class ChangeNameWindowManager extends ModalManager { public function ChangeNameWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = ChangeNameWindow(PopUpManager.createPopUp(this.varParentDisplayObject, ChangeNameWindow, this.varModalPopUp)); this.center(); if (this.varAllowClose){ ChangeNameWindow(this.varModal).showCloseButton = true; }; } public function setErrorMessage(_arg1:String):void{ ChangeNameWindow(this.varModal).errorMsg.htmlText = _arg1; } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("NickChangeEvent", nickChangeEvent); } private function nickChangeEvent(_arg1:NickChangeEvent):void{ dispatchEvent(_arg1); this.close(); } } }//package com.eightlabs.rambler.controllers
Section 95
//CommandParser (com.eightlabs.rambler.controllers.CommandParser) package com.eightlabs.rambler.controllers { import mx.core.*; public class CommandParser { private var varArgs:String; private var varCommand:String; public function CommandParser(_arg1:String, _arg2:String, _arg3:String){ this.varCommand = _arg2.toLowerCase(); this.varArgs = _arg3; switch (this.varCommand){ case "pi": Application.application.ramblerGUI.backbitch(); break; case "join": if (Application.application.roomListVisible){ cmdJoin(this.varArgs); }; break; case "list": cmdList(); break; case "whois": cmdWhois(this.varArgs); break; case "clear": cmdClear(_arg1.substring(1)); break; case "dump": cmdDump(_arg1.substring(1)); break; case "ignore": cmdIgnore(this.varArgs); break; case "unignore": cmdUnignore(this.varArgs); break; default: cmdRaw(); break; }; } private function cmdUnignore(_arg1:String):void{ Application.application.ircLib.unignore(_arg1); } private function cmdJoin(_arg1:String):void{ Application.application.ircLib.send.join(_arg1); } private function cmdIgnore(_arg1:String=""):void{ Application.application.ircLib.ignore(_arg1); } private function cmdWhois(_arg1:String):void{ Application.application.ircLib.send.whois(_arg1); } private function cmdDump(_arg1:String):void{ Application.application.ramblerGUI.roomsManager.dump(_arg1); } private function cmdList():void{ Application.application.ircLib.send.list(); } private function cmdClear(_arg1:String):void{ Application.application.ramblerGUI.roomsManager.clearMessages(_arg1); } private function cmdRaw():void{ Application.application.ircLib.send.raw(((this.varCommand + " ") + this.varArgs)); } } }//package com.eightlabs.rambler.controllers
Section 96
//ListRoomsWindowManager (com.eightlabs.rambler.controllers.ListRoomsWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class ListRoomsWindowManager extends ModalManager { public function ListRoomsWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = ListRoomsWindow(PopUpManager.createPopUp(this.varParentDisplayObject, ListRoomsWindow, this.varModalPopUp)); this.center(); } public function addListRoomsData(_arg1:String="", _arg2:int=0, _arg3:String=""):void{ if (this.varModal){ ListRoomsWindow(this.varModal).addData(_arg1, _arg2, _arg3); }; } private function listRoomsRequestEvent(_arg1:ListRoomsRequestEvent):void{ dispatchEvent(_arg1); } private function joinRoomRequestEvent(_arg1:JoinRoomRequestEvent):void{ this.close(); dispatchEvent(_arg1); } public function endListRoomsData():void{ if (this.varModal){ ListRoomsWindow(this.varModal).listFinished(); }; } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("JoinRoomRequestEvent", joinRoomRequestEvent); this.varModal.addEventListener("ListRoomsRequestEvent", listRoomsRequestEvent); } } }//package com.eightlabs.rambler.controllers
Section 97
//ModalManager (com.eightlabs.rambler.controllers.ModalManager) package com.eightlabs.rambler.controllers { import flash.events.*; import mx.core.*; import flash.display.*; import mx.managers.*; public class ModalManager extends EventDispatcher { protected var varModalPopUp:Boolean; protected var varModal:IFlexDisplayObject; protected var varParentDisplayObject:DisplayObject; protected var varAllowClose:Boolean; public function ModalManager(_arg1:DisplayObject):void{ varParentDisplayObject = _arg1; } public function pop(_arg1:Boolean=true, _arg2:Boolean=true):void{ if (!this.varModal){ this.varAllowClose = _arg1; this.varModalPopUp = _arg2; this.createPopUp(); this.addCustomListeners(); }; } protected function addCustomListeners():void{ if (this.varAllowClose){ this.varModal.addEventListener("mouseDownOutside", close); this.varModal.addEventListener("close", close); }; } public function center():void{ if (this.varModal){ PopUpManager.centerPopUp(this.varModal); }; } protected function createPopUp():void{ } public function close(_arg1:Event=null):void{ if (this.varModal){ PopUpManager.removePopUp(this.varModal); this.varModal = null; }; } } }//package com.eightlabs.rambler.controllers
Section 98
//ModalManager_252 (com.eightlabs.rambler.controllers.ModalManager_252) package com.eightlabs.rambler.controllers { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.core.*; import flash.display.*; import mx.managers.*; public class ModalManager_252 extends UIComponent { private var modalHash:Object; public function ModalManager_252(){ modalHash = new Object(); super(); } public function getModalName(_arg1:IFlexDisplayObject):String{ var _local3:String; var _local2 = ""; for (_local3 in this.modalHash) { if (this.modalHash[_local3] == _arg1){ _local2 = _local3; }; }; return (_local2); } public function removeAllModals():void{ var _local1:String; for (_local1 in this.modalHash) { this.removeModal(_local1); }; } private function optionsPrivateEvent(_arg1:OptionsPrivateEvent):void{ this.dispatchEvent(_arg1); } private function addEventListeners(_arg1:EventDispatcher, _arg2:Boolean):void{ if (_arg2){ _arg1.addEventListener("mouseDownOutside", closeEvent); _arg1.addEventListener("close", closeEvent); }; _arg1.addEventListener("cancel", closeEvent); _arg1.addEventListener("OptionsProfileEvent", optionsProfileEvent); _arg1.addEventListener("OptionsPrivateEvent", optionsPrivateEvent); _arg1.addEventListener("OptionsOpEvent", optionsOpEvent); _arg1.addEventListener("OptionsVoiceEvent", optionsVoiceEvent); _arg1.addEventListener("OptionsRemoveEvent", optionsRemoveEvent); _arg1.addEventListener("OptionsHalfopEvent", optionsHalfopEvent); _arg1.addEventListener("RoomModeChangeRequest", roomModeChangeReuqest); _arg1.addEventListener("RoomTopicChangeRequest", roomTopicChangeRequest); _arg1.addEventListener("RoomServicesDelOpRequest", roomServicesDelOpRequest); _arg1.addEventListener("RoomServicesAddOpRequest", roomServicesAddOpRequest); _arg1.addEventListener("RoomAuthenticationEvent", roomAuthenticationEvent); } private function roomAuthenticationEvent(_arg1:RoomAuthenticationEvent):void{ this.dispatchEvent(_arg1); } private function optionsHalfopEvent(_arg1:OptionsHalfopEvent):void{ this.dispatchEvent(_arg1); } private function roomModeChangeReuqest(_arg1:RoomModeChangeRequest):void{ this.dispatchEvent(_arg1); } private function optionsOpEvent(_arg1:OptionsOpEvent):void{ this.dispatchEvent(_arg1); } private function roomTopicChangeRequest(_arg1:RoomTopicChangeRequest):void{ this.dispatchEvent(_arg1); } public function addModal(_arg1:String, _arg2:Class, _arg3:Boolean, _arg4:Boolean=true, _arg5:Boolean=true, _arg6:Boolean=true):EventDispatcher{ var _local7:IFlexDisplayObject = _arg2(PopUpManager.createPopUp(DisplayObject(Application.application), _arg2, true)); PopUpManager.centerPopUp(_local7); addEventListeners(EventDispatcher(_local7), _arg3); this.modalHash[_arg1] = _local7; return (EventDispatcher(_local7)); } private function roomServicesAddOpRequest(_arg1:RoomServicesAddOpRequest):void{ this.dispatchEvent(_arg1); } private function optionsProfileEvent(_arg1:OptionsProfileEvent):void{ this.dispatchEvent(_arg1); } public function removeModal(_arg1:String):void{ if (getModal(_arg1) != null){ PopUpManager.removePopUp(IFlexDisplayObject(getModal(_arg1))); this.modalHash[_arg1] = null; }; } private function closeEvent(_arg1:Event):void{ this.dispatchEvent(new Event("ModalCloseEvent")); this.removeModal(this.getModalName(IFlexDisplayObject(_arg1.target))); } private function optionsVoiceEvent(_arg1:OptionsVoiceEvent):void{ this.dispatchEvent(_arg1); } public function getModal(_arg1:String):IFlexDisplayObject{ var _local3:String; var _local2:IFlexDisplayObject; for (_local3 in this.modalHash) { if (_local3 == _arg1){ _local2 = this.modalHash[_local3]; }; }; return (_local2); } private function optionsRemoveEvent(_arg1:OptionsRemoveEvent):void{ this.dispatchEvent(_arg1); } private function roomServicesDelOpRequest(_arg1:RoomServicesDelOpRequest):void{ this.dispatchEvent(_arg1); } } }//package com.eightlabs.rambler.controllers
Section 99
//MotdWindowManager (com.eightlabs.rambler.controllers.MotdWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class MotdWindowManager extends ModalManager { public function MotdWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = MotdWindow(PopUpManager.createPopUp(this.varParentDisplayObject, MotdWindow, this.varModalPopUp)); this.center(); } public function addMotdData(_arg1:String):void{ if (this.varModal){ MotdWindow(this.varModal).txtMOTD.htmlText = (MotdWindow(this.varModal).txtMOTD.htmlText + _arg1); }; } override protected function addCustomListeners():void{ super.addCustomListeners(); } } }//package com.eightlabs.rambler.controllers
Section 100
//PrivatesManager (com.eightlabs.rambler.controllers.PrivatesManager) package com.eightlabs.rambler.controllers { import flash.events.*; import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import mx.containers.*; public class PrivatesManager extends EventDispatcher { private var varPrivatesHash:Object; private var varStylesHash:Object; private var varAccordion:Accordion; private var varUmPanel:UserManagementPanel; private var varActivePrivateRecipientName:String; private var varViewStack:ViewStack; public function PrivatesManager(_arg1:ViewStack, _arg2:Accordion, _arg3:UserManagementPanel){ varPrivatesHash = new Object(); varStylesHash = new Object(); super(); this.varViewStack = _arg1; this.varAccordion = _arg2; this.varUmPanel = _arg3; } private function addPrivateListeners(_arg1:PrivateHandle):void{ _arg1.addEventListener("InputStyleChanged", inputStyleChanged); _arg1.addEventListener("PrivateSwitchEvent", dispatchPrivateSwitch); _arg1.addEventListener("PrivateCloseEvent", dispatchPrivateClose); _arg1.addEventListener("SendPrivateMessageEvent", dispatchSendPrivateMessage); _arg1.addEventListener("SendPrivateActionEvent", dispatchSendPrivateAction); _arg1.addEventListener("SendPrivateCommandEvent", dispatchSendPrivateCommand); } private function dispatchSendPrivateMessage(_arg1:SendPrivateMessageEvent):void{ dispatchEvent(_arg1); } private function getPrivate(_arg1:String):PrivateHandle{ if (this.varPrivatesHash[_arg1.toLowerCase()]){ return (this.varPrivatesHash[_arg1.toLowerCase()]); }; return (null); } private function dispatchPrivateClose(_arg1:PrivateCloseEvent):void{ this.removePrivate(_arg1.recipientName); dispatchEvent(_arg1); } public function inputFocus():void{ if (getPrivate(this.varActivePrivateRecipientName)){ getPrivate(this.varActivePrivateRecipientName).chatBox.inputFocus(); }; } public function setInputStyles(_arg1:String, _arg2:Object):void{ var _local3:PrivateHandle; varStylesHash[_arg1] = _arg2; for each (_local3 in this.varPrivatesHash) { _local3.chatBox.setInputStyles(_arg1, _arg2); }; } private function dispatchSendPrivateAction(_arg1:SendPrivateActionEvent):void{ dispatchEvent(_arg1); } public function removePrivate(_arg1:String):void{ var _local2:PrivateHandle = getPrivate(_arg1); if (_local2){ this.varViewStack.removeChild(_local2.chatBox); this.varUmPanel.removePMCanvas(_local2.canvas); delete this.varPrivatesHash[_arg1.toLowerCase()]; }; } public function addPrivate(_arg1:String):void{ var _local2:PrivateHandle; if (!getPrivate(_arg1)){ _local2 = new PrivateHandle(_arg1, varStylesHash); this.varViewStack.addChild(_local2.chatBox); this.varUmPanel.addPMCanvas(_local2.canvas); addPrivateListeners(_local2); this.varPrivatesHash[_arg1.toLowerCase()] = _local2; if (this.varAccordion.selectedChild == _local2.canvas){ this.varActivePrivateRecipientName = _arg1; }; }; } public function addMessage(_arg1:String, _arg2:String):void{ if (getPrivate(_arg1)){ getPrivate(_arg1).chatBox.addMessage(_arg2); this.dispatchEvent(new InactiveMessageEvent("PrivateMessage")); if (this.varAccordion.selectedChild != getPrivate(_arg1).canvas){ getPrivate(_arg1).startBlink(); }; }; } public function get activePrivateRecipientName():String{ return (this.varActivePrivateRecipientName); } public function renamePrivate(_arg1:String, _arg2:String):void{ var _local3:PrivateHandle = getPrivate(_arg1); if (((_local3) && (!(getPrivate(_arg2))))){ _local3.canvas.label = _arg2; _local3.chatBox.title = _arg2; _local3.recipientName = _arg2; this.varPrivatesHash[_arg2.toLocaleLowerCase()] = _local3; delete this.varPrivatesHash[_arg1.toLowerCase()]; }; } private function inputStyleChanged(_arg1:InputStyleChanged):void{ dispatchEvent(_arg1); } public function switchToPrivate(_arg1:String):void{ var _local2:PrivateHandle = getPrivate(_arg1); if (_local2){ if (_local2.blinking){ _local2.stopBlink(); }; this.varAccordion.selectedChild = _local2.canvas; this.varViewStack.selectedChild = _local2.chatBox; this.varActivePrivateRecipientName = _arg1; }; } private function dispatchSendPrivateCommand(_arg1:SendPrivateCommandEvent):void{ dispatchEvent(_arg1); } private function dispatchPrivateSwitch(_arg1:PrivateSwitchEvent):void{ this.switchToPrivate(_arg1.recipientName); dispatchEvent(_arg1); } } }//package com.eightlabs.rambler.controllers
Section 101
//ProfileWindowManager (com.eightlabs.rambler.controllers.ProfileWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import com.eightlabs.utilities.text.*; import mx.managers.*; public class ProfileWindowManager extends ModalManager { public function ProfileWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = ProfileWindow(PopUpManager.createPopUp(this.varParentDisplayObject, ProfileWindow, this.varModalPopUp)); this.center(); } public function addRoom(_arg1:String, _arg2:String):void{ if (this.varModal){ ProfileWindow(this.varModal).addRoom(_arg1, _arg2); }; } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("JoinRoomRequestEvent", joinRoomRequestEvent); } public function setProfile(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String, _arg7:Boolean):void{ var _local8:Object; if (this.varModal){ _local8 = new Object(); _local8["username"] = _arg1; ProfileWindow(this.varModal).title = TextFormatter.getText("ProfileWindowTitle", _local8); ProfileWindow(this.varModal).profileName.text = _arg1; ProfileWindow(this.varModal).profileHost.text = _arg2; ProfileWindow(this.varModal).profileUsername.text = _arg3; ProfileWindow(this.varModal).profileRealName.text = _arg4; ProfileWindow(this.varModal).signOnTime.text = _arg5; ProfileWindow(this.varModal).idleTime.text = _arg6; if (_arg7){ ProfileWindow(this.varModal).awayStatus.text = "Is Away"; }; }; } private function joinRoomRequestEvent(_arg1:JoinRoomRequestEvent):void{ this.close(); dispatchEvent(_arg1); } } }//package com.eightlabs.rambler.controllers
Section 102
//RegisterNameWindowManager (com.eightlabs.rambler.controllers.RegisterNameWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class RegisterNameWindowManager extends ModalManager { public function RegisterNameWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = RegisterNameWindow(PopUpManager.createPopUp(this.varParentDisplayObject, RegisterNameWindow, this.varModalPopUp)); this.center(); if (this.varAllowClose){ RegisterNameWindow(this.varModal).showCloseButton = true; }; } public function setErrorMessage(_arg1:String):void{ RegisterNameWindow(this.varModal).errorLabel.htmlText = _arg1; } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("NickRegistrationEvent", nickRegistrationEvent); } private function nickRegistrationEvent(_arg1:NickRegistrationEvent):void{ dispatchEvent(_arg1); this.close(); } } }//package com.eightlabs.rambler.controllers
Section 103
//RegisterRoomWindowManager (com.eightlabs.rambler.controllers.RegisterRoomWindowManager) package com.eightlabs.rambler.controllers { import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import flash.display.*; import mx.managers.*; public class RegisterRoomWindowManager extends ModalManager { public function RegisterRoomWindowManager(_arg1:DisplayObject):void{ super(_arg1); } override protected function createPopUp():void{ this.varModal = RegisterRoomWindow(PopUpManager.createPopUp(this.varParentDisplayObject, RegisterRoomWindow, this.varModalPopUp)); this.center(); if (this.varAllowClose){ RegisterRoomWindow(this.varModal).showCloseButton = true; }; } public function setErrorMessage(_arg1:String):void{ RegisterRoomWindow(this.varModal).errorLabel.htmlText = _arg1; } override protected function addCustomListeners():void{ super.addCustomListeners(); this.varModal.addEventListener("RoomRegistrationEvent", roomRegistrationEvent); } private function roomRegistrationEvent(_arg1:RoomRegistrationEvent):void{ dispatchEvent(_arg1); this.close(); } } }//package com.eightlabs.rambler.controllers
Section 104
//RoomsManager (com.eightlabs.rambler.controllers.RoomsManager) package com.eightlabs.rambler.controllers { import flash.events.*; import com.eightlabs.rambler.events.*; import com.eightlabs.rambler.views.*; import mx.containers.*; import com.eightlabs.rambler.core.*; public class RoomsManager extends EventDispatcher { private var varStylesHash:Object; private var varUmPanel:UserManagementPanel; private var varActiveRoomName:String;// = "" private var varRoomsHash:Object; private var varAccordion:Accordion; private var varViewStack:ViewStack; public function RoomsManager(_arg1:ViewStack, _arg2:Accordion, _arg3:UserManagementPanel){ varRoomsHash = new Object(); varStylesHash = new Object(); super(); this.varViewStack = _arg1; this.varAccordion = _arg2; this.varUmPanel = _arg3; } private function dispatchOptionRequest(_arg1:OptionRequestEvent):void{ dispatchEvent(_arg1); } private function addRoomListeners(_arg1:RoomHandle):void{ _arg1.addEventListener("SwitchRoomEvent", dispatchRoomSwitch); _arg1.addEventListener("RoomCloseEvent", dispatchRoomClose); _arg1.addEventListener("SendRoomMessageEvent", dispatchSendRoomMessage); _arg1.addEventListener("SendRoomActionEvent", dispatchSendRoomAction); _arg1.addEventListener("SendRoomCommandEvent", dispatchSendRoomCommand); _arg1.addEventListener("ServicesListEvent", dispatchServicesListEvent); _arg1.addEventListener("InputStyleChanged", inputStyleChanged); _arg1.userList.addEventListener("PrivateRequestEvent", dispatchPrivateRequest); _arg1.userList.addEventListener("OptionRequestEvent", dispatchOptionRequest); } private function dispatchServicesListEvent(_arg1:ServicesListEvent):void{ dispatchEvent(_arg1); } public function addActiveMessage(_arg1:String):void{ if (getRoom(this.varActiveRoomName)){ getRoom(this.varActiveRoomName).chatBox.addMessage(_arg1); this.dispatchEvent(new InactiveMessageEvent("RoomMessage")); }; } private function dispatchRoomSwitch(_arg1:SwitchRoomEvent):void{ this.switchToRoom(_arg1.roomName); dispatchEvent(_arg1); } public function setInputStyles(_arg1:String, _arg2:Object):void{ var _local3:RoomHandle; varStylesHash[_arg1] = _arg2; for each (_local3 in this.varRoomsHash) { _local3.chatBox.setInputStyles(_arg1, _arg2); }; } public function addUser(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Boolean, _arg7:Boolean):void{ if (getRoom(_arg1)){ getRoom(_arg1).userList.addUser(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7); }; } public function getVoiceStatus(_arg1:String, _arg2:String):Boolean{ if (getRoom(_arg1).userList.getUserByName(_arg2)){ return (getRoom(_arg1).userList.getUserByName(_arg2).voice); }; return (false); } private function dispatchRoomClose(_arg1:RoomCloseEvent):void{ this.removeRoom(_arg1.roomName); dispatchEvent(_arg1); } public function addMessageAll(_arg1:String):void{ var _local2:Object; for each (_local2 in varRoomsHash) { _local2.chatBox.addMessage(_arg1); }; } public function addRoom(_arg1:String):void{ var _local2:RoomHandle; if (!getRoom(_arg1)){ _local2 = new RoomHandle(_arg1, varStylesHash); this.varViewStack.addChild(_local2.chatBox); this.varUmPanel.addRoomCanvas(_local2.userList); addRoomListeners(_local2); this.varRoomsHash[_arg1.toLowerCase()] = _local2; if (this.varAccordion.selectedChild == _local2.userList){ this.varActiveRoomName = _arg1; }; }; } public function voiceUser(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean):void{ if (getRoom(_arg1).userList.getUserByName(_arg3)){ getRoom(_arg1).userList.voiceUser(_arg2, _arg3, _arg4); }; } public function clearRoomUsers(_arg1:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).userList.clearUsers(); }; } public function addMessage(_arg1:String, _arg2:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).chatBox.addMessage(_arg2); this.dispatchEvent(new InactiveMessageEvent("RoomMessage")); if (this.varAccordion.selectedChild != getRoom(_arg1).userList){ getRoom(_arg1).startBlink(); }; }; } public function renameUser(_arg1:String, _arg2:String):void{ var _local3:RoomHandle; for each (_local3 in this.varRoomsHash) { if (_local3.userList.getUserByName(_arg1)){ _local3.userList.renameUser(_arg1, _arg2); dispatchEvent(new RoomUserRenameEvent(_local3.roomName, _arg1, _arg2)); }; }; } private function dispatchSendRoomMessage(_arg1:SendRoomMessageEvent):void{ dispatchEvent(_arg1); } public function get activeRoomName():String{ return (this.varActiveRoomName); } private function dispatchPrivateRequest(_arg1:PrivateRequestEvent):void{ dispatchEvent(_arg1); } public function inputFocus():void{ if (getRoom(this.varActiveRoomName)){ getRoom(this.varActiveRoomName).chatBox.inputFocus(); }; } public function getOpStatus(_arg1:String, _arg2:String):Boolean{ if (getRoom(_arg1).userList.getUserByName(_arg2)){ return (getRoom(_arg1).userList.getUserByName(_arg2).op); }; return (false); } private function inputStyleChanged(_arg1:InputStyleChanged):void{ dispatchEvent(_arg1); } public function clearMessages(_arg1:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).chatBox.clear(); }; } public function quitUser(_arg1:String, _arg2:String, _arg3:String, _arg4:String):void{ var _local5:RoomHandle; for each (_local5 in this.varRoomsHash) { if (_local5.userList.getUserByName(_arg1)){ _local5.userList.removeUser(_arg1); dispatchEvent(new RoomUserQuitEvent(_local5.roomName, _arg1, _arg2, _arg3, _arg4)); }; }; } public function getRoomUser(_arg1:String, _arg2:String):RoomUser{ if (((getRoom(_arg1)) && (getRoom(_arg1).userList.getUserByName(_arg2)))){ return (getRoom(_arg1).userList.getUserByName(_arg2)); }; return (null); } public function roomRegistered(_arg1:String):Boolean{ return (getRoom(_arg1).roomRegistered); } public function halfopUser(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean):void{ if (getRoom(_arg1).userList.getUserByName(_arg3)){ getRoom(_arg1).userList.halfopUser(_arg2, _arg3, _arg4); }; } public function setRoomRegistered(_arg1:String, _arg2:Boolean):void{ getRoom(_arg1).roomRegistered = _arg2; } public function setTopicAltText(_arg1:String, _arg2:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).chatBox.setTopicAltText(_arg2); }; } public function opUser(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean):void{ if (getRoom(_arg1).userList.getUserByName(_arg3)){ getRoom(_arg1).userList.opUser(_arg2, _arg3, _arg4); }; } private function getRoom(_arg1:String):RoomHandle{ if (this.varRoomsHash[_arg1.toLowerCase()]){ return (this.varRoomsHash[_arg1.toLowerCase()]); }; return (null); } public function getRoomUserStyle(_arg1:String, _arg2:String):String{ if (((getRoom(_arg1)) && (getRoom(_arg1).userList.getUserByName(_arg2)))){ return (getRoom(_arg1).userList.getUserByName(_arg2).getUserStyle()); }; return (null); } public function switchToRoom(_arg1:String):void{ var _local2:RoomHandle = getRoom(_arg1); if (_local2){ if (_local2.blinking){ _local2.stopBlink(); }; this.varAccordion.selectedChild = _local2.userList; this.varViewStack.selectedChild = _local2.chatBox; this.varActiveRoomName = _arg1; }; } private function dispatchSendRoomAction(_arg1:SendRoomActionEvent):void{ dispatchEvent(_arg1); } public function reJoinAll():void{ var _local1:Object; var _local2:SendRoomCommandEvent; for each (_local1 in varRoomsHash) { _local1.chatBox.addMessage(("Rejoining: " + _local1.roomName)); clearRoomUsers(_local1.roomName); _local2 = new SendRoomCommandEvent(_local1.roomName, "join", _local1.roomName); dispatchEvent(_local2); }; } public function setTopic(_arg1:String, _arg2:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).chatBox.setTopicText(_arg2); }; } private function dispatchSendRoomCommand(_arg1:SendRoomCommandEvent):void{ dispatchEvent(_arg1); } public function removeUser(_arg1:String, _arg2:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).userList.removeUser(_arg2); }; } public function dump(_arg1:String):void{ if (getRoom(_arg1)){ getRoom(_arg1).chatBox.dump(); }; } public function getTopic(_arg1:String):String{ if (getRoom(_arg1)){ return (getRoom(_arg1).chatBox.getTopicText()); }; return (null); } public function removeRoom(_arg1:String):void{ var _local2:RoomHandle = getRoom(_arg1); if (_local2){ this.varViewStack.removeChild(_local2.chatBox); this.varUmPanel.removeRoomCanvas(_local2.userList); delete this.varRoomsHash[_arg1.toLowerCase()]; }; } } }//package com.eightlabs.rambler.controllers
Section 105
//WindowManager (com.eightlabs.rambler.controllers.WindowManager) package com.eightlabs.rambler.controllers { import flash.events.*; import flash.display.*; public class WindowManager extends EventDispatcher { public var Auth:AuthWindowManager; public var Profile:ProfileWindowManager; public var RegisterName:RegisterNameWindowManager; private var varParentDisplayObject:DisplayObject; public var Motd:MotdWindowManager; public var ListRooms:ListRoomsWindowManager; public var ChangeName:ChangeNameWindowManager; public var ChangeNamePassword:ChangeNamePasswordWindowManager; public var RegisterRoom:RegisterRoomWindowManager; public function WindowManager(_arg1:DisplayObject){ this.varParentDisplayObject = _arg1; this.Profile = new ProfileWindowManager(this.varParentDisplayObject); this.ListRooms = new ListRoomsWindowManager(this.varParentDisplayObject); this.Motd = new MotdWindowManager(this.varParentDisplayObject); this.ChangeName = new ChangeNameWindowManager(this.varParentDisplayObject); this.RegisterName = new RegisterNameWindowManager(this.varParentDisplayObject); this.RegisterRoom = new RegisterRoomWindowManager(this.varParentDisplayObject); this.Auth = new AuthWindowManager(this.varParentDisplayObject); this.ChangeNamePassword = new ChangeNamePasswordWindowManager(this.varParentDisplayObject); this.addCustomListeners(); } private function reDispatchEvent(_arg1:Event):void{ dispatchEvent(_arg1); } private function addCustomListeners():void{ this.Profile.addEventListener("JoinRoomRequestEvent", reDispatchEvent); this.ListRooms.addEventListener("JoinRoomRequestEvent", reDispatchEvent); this.ListRooms.addEventListener("ListRoomsRequestEvent", reDispatchEvent); this.ChangeName.addEventListener("NickChangeEvent", reDispatchEvent); this.Auth.addEventListener("ChangeNickRequestEvent", reDispatchEvent); this.Auth.addEventListener("AuthenticateEvent", reDispatchEvent); this.RegisterName.addEventListener("NickRegistrationEvent", reDispatchEvent); this.RegisterRoom.addEventListener("RoomRegistrationEvent", reDispatchEvent); this.ChangeNamePassword.addEventListener("NickChangePasswordEvent", reDispatchEvent); } } }//package com.eightlabs.rambler.controllers
Section 106
//HtmlRenderer (com.eightlabs.rambler.core.HtmlRenderer) package com.eightlabs.rambler.core { import mx.events.*; import mx.controls.*; public class HtmlRenderer extends Text { private var _data:Object; override public function set data(_arg1:Object):void{ _data = _arg1; if (listData){ htmlText = listData.label; } else { if (_data != null){ if ((_data is String)){ htmlText = String(_data); } else { htmlText = _data.toString(); }; }; }; dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } override public function get data():Object{ return (_data); } } }//package com.eightlabs.rambler.core
Section 107
//RoomUser (com.eightlabs.rambler.core.RoomUser) package com.eightlabs.rambler.core { public class RoomUser { private var varVoice:Boolean; private var varSelf:Boolean; private var varName:String; private var varHalfop:Boolean; private var varOp:Boolean; private var varAway:Boolean; public function RoomUser(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false):void{ this.name = _arg1; this.away = _arg2; this.voice = _arg3; this.op = _arg4; this.halfop = _arg5; this.self = _arg6; } public function set op(_arg1:Boolean):void{ this.varOp = _arg1; } public function get name():String{ return (this.varName); } public function get self():Boolean{ return (this.varSelf); } public function get halfop():Boolean{ return (this.varHalfop); } public function set name(_arg1:String):void{ this.varName = _arg1; } public function set self(_arg1:Boolean):void{ this.varSelf = _arg1; } public function set away(_arg1:Boolean):void{ this.varAway = _arg1; } public function getStatusSymbol():String{ if (op){ return ("resources/images/3_host.png"); }; if (halfop){ return ("resources/images/2_assistant.png"); }; if (voice){ return ("resources/images/1_speaker.png"); }; return (""); } public function get op():Boolean{ return (this.varOp); } public function set voice(_arg1:Boolean):void{ this.varVoice = _arg1; } public function get away():Boolean{ return (this.varAway); } public function set halfop(_arg1:Boolean):void{ this.varHalfop = _arg1; } public function getUserStyle():String{ if (this.varSelf){ return ("Self"); }; if (this.varOp){ return ("Operator"); }; if (this.varVoice){ return ("Voiced"); }; if (this.varHalfop){ return ("Halfop"); }; return ("Other"); } public function getFormattedName():String{ return (((((("<span class=\"" + this.getUserStyle()) + "-USERLIST") + "\">") + this.varName) + "</span>")); } public function get voice():Boolean{ return (this.varVoice); } } }//package com.eightlabs.rambler.core
Section 108
//CustomLoginWindow (com.eightlabs.rambler.custom.kd01.views.CustomLoginWindow) package com.eightlabs.rambler.custom.kd01.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class CustomLoginWindow extends Canvas { public var defaultRoom:String;// = null private var _677442937formbox:Form; private var _951351530connect:Image; private var _documentDescriptor_:UIComponentDescriptor; private var _878701069txtNick:TextInput; public function CustomLoginWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({width:640, height:278, childDescriptors:[new UIComponentDescriptor({type:Form, id:"formbox", propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:FormItem, propertiesFactory:function ():Object{ return ({percentWidth:100, label:"Nickname", required:true, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"txtNick", propertiesFactory:function ():Object{ return ({text:"Guest"}); }})]}); }}), new UIComponentDescriptor({type:VBox, stylesFactory:function ():void{ this.horizontalAlign = "right"; }, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Image, id:"connect", propertiesFactory:function ():Object{ return ({source:"http://www.everywherechat.com/resources/custom/kd01/images/connectBtn.png"}); }})]}); }})]}); }})]}); }}); super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.backgroundImage = "http://www.everywherechat.com/resources/custom/kd01/images/ChatLogin.png"; }; this.width = 640; this.height = 278; this.addEventListener("creationComplete", ___CustomLoginWindow_Canvas1_creationComplete); } public function creationCompleteEvent():void{ this.x = ((Application.application.width / 2) - (this.width / 2)); this.y = ((Application.application.height / 2) - (this.height / 2)); this.formbox.x = 50; this.formbox.y = 110; addCustomEventListeners(); } public function get formbox():Form{ return (this._677442937formbox); } public function set formbox(_arg1:Form):void{ var _local2:Object = this._677442937formbox; if (_local2 !== _arg1){ this._677442937formbox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "formbox", _local2, _arg1)); }; } override public function initialize():void{ mx_internal::setDocumentDescriptor(_documentDescriptor_); super.initialize(); } public function set connect(_arg1:Image):void{ var _local2:Object = this._951351530connect; if (_local2 !== _arg1){ this._951351530connect = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "connect", _local2, _arg1)); }; } private function addCustomEventListeners():void{ this.connect.addEventListener("click", loginEvent); this.connect.addEventListener("mouseOver", mouseOver); this.connect.addEventListener("mouseOut", mouseOut); this.txtNick.addEventListener("enter", loginEvent); } private function mouseOver(_arg1:Event):void{ this.connect.source = "http://www.everywherechat.com/resources/custom/kd01/images/connectBtn_hvr.png"; } public function set txtNick(_arg1:TextInput):void{ var _local2:Object = this._878701069txtNick; if (_local2 !== _arg1){ this._878701069txtNick = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtNick", _local2, _arg1)); }; } private function mouseOut(_arg1:Event):void{ this.connect.source = "http://www.everywherechat.com/resources/custom/kd01/images/connectBtn.png"; } public function get connect():Image{ return (this._951351530connect); } private function loginEvent(_arg1:Event):void{ this.connect.source = "http://www.everywherechat.com/resources/custom/kd01/images/connectBtn.png"; if ((((this.txtNick.text == "")) || ((this.txtNick.text.toLowerCase() == "guest")))){ this.txtNick.text = ("Guest" + Math.floor((Math.random() * 9999))); }; this.dispatchEvent(new LoginEvent(this, this.txtNick.text, "", defaultRoom)); } public function ___CustomLoginWindow_Canvas1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function get txtNick():TextInput{ return (this._878701069txtNick); } } }//package com.eightlabs.rambler.custom.kd01.views
Section 109
//AuthenticateEvent (com.eightlabs.rambler.events.AuthenticateEvent) package com.eightlabs.rambler.events { import flash.events.*; public class AuthenticateEvent extends Event { private var varPassword:String; public function AuthenticateEvent(_arg1:String){ super("AuthenticateEvent"); this.varPassword = _arg1; } public function get passWord():String{ return (this.varPassword); } override public function clone():Event{ return (new AuthenticateEvent(this.varPassword)); } } }//package com.eightlabs.rambler.events
Section 110
//ChangeNickRequestEvent (com.eightlabs.rambler.events.ChangeNickRequestEvent) package com.eightlabs.rambler.events { import flash.events.*; public class ChangeNickRequestEvent extends Event { public function ChangeNickRequestEvent(){ super("ChangeNickRequestEvent"); } override public function clone():Event{ return (new ChangeNickRequestEvent()); } } }//package com.eightlabs.rambler.events
Section 111
//DictLoadedEvent (com.eightlabs.rambler.events.DictLoadedEvent) package com.eightlabs.rambler.events { import flash.events.*; public class DictLoadedEvent extends Event { private var varDictionary:Object; public function DictLoadedEvent(_arg1:Object){ super("DictLoadedEvent"); this.varDictionary = _arg1; } override public function clone():Event{ return (new DictLoadedEvent(this.varDictionary)); } public function get dictionary():Object{ return (this.varDictionary); } } }//package com.eightlabs.rambler.events
Section 112
//InactiveMessageEvent (com.eightlabs.rambler.events.InactiveMessageEvent) package com.eightlabs.rambler.events { import flash.events.*; public class InactiveMessageEvent extends Event { private var varType:String; public function InactiveMessageEvent(_arg1:String){ super("InactiveMessageEvent"); this.varType = _arg1; } public function get msgType():String{ return (this.varType); } override public function clone():Event{ return (new InactiveMessageEvent(this.varType)); } } }//package com.eightlabs.rambler.events
Section 113
//InputStyleChanged (com.eightlabs.rambler.events.InputStyleChanged) package com.eightlabs.rambler.events { import flash.events.*; public class InputStyleChanged extends Event { private var varType:String; private var varValue:Object; public function InputStyleChanged(_arg1:String, _arg2:Object){ super("InputStyleChanged"); this.varType = _arg1; this.varValue = _arg2; } public function get value():Object{ return (this.varValue); } public function get style():String{ return (this.varType); } override public function clone():Event{ return (new InputStyleChanged(this.varType, this.varValue)); } } }//package com.eightlabs.rambler.events
Section 114
//JoinRoomRequestEvent (com.eightlabs.rambler.events.JoinRoomRequestEvent) package com.eightlabs.rambler.events { import flash.events.*; public class JoinRoomRequestEvent extends Event { private var varRoomName:String; public function JoinRoomRequestEvent(_arg1:String){ super("JoinRoomRequestEvent"); this.varRoomName = _arg1; } override public function clone():Event{ return (new JoinRoomRequestEvent(this.varRoomName)); } public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.rambler.events
Section 115
//ListRoomsRequestEvent (com.eightlabs.rambler.events.ListRoomsRequestEvent) package com.eightlabs.rambler.events { import flash.events.*; public class ListRoomsRequestEvent extends Event { private var varSearchMask:String; public function ListRoomsRequestEvent(_arg1:String=null){ super("ListRoomsRequestEvent"); this.varSearchMask = _arg1; } public function get searchMask():String{ return (this.varSearchMask); } override public function clone():Event{ return (new ListRoomsRequestEvent(this.varSearchMask)); } } }//package com.eightlabs.rambler.events
Section 116
//LoginEvent (com.eightlabs.rambler.events.LoginEvent) package com.eightlabs.rambler.events { import flash.events.*; import mx.core.*; public class LoginEvent extends Event { private var varPassWord:String; private var varRoomName:String; private var varPopupWindow:IFlexDisplayObject; private var varUserName:String; public function LoginEvent(_arg1:IFlexDisplayObject, _arg2:String, _arg3:String, _arg4:String){ super("LoginEvent"); this.varPopupWindow = _arg1; this.varUserName = _arg2.replace(/[^\w^\d^\`^\[^\]^\{^\}^\^^\\^\-]/ig, ""); this.varPassWord = _arg3; this.varRoomName = _arg4; } final public function get roomName():String{ return (this.varRoomName); } override public function clone():Event{ return (new LoginEvent(varPopupWindow, userName, passWord, roomName)); } final public function get userName():String{ return (this.varUserName); } final public function get passWord():String{ return (this.varPassWord); } } }//package com.eightlabs.rambler.events
Section 117
//NickChangeEvent (com.eightlabs.rambler.events.NickChangeEvent) package com.eightlabs.rambler.events { import flash.events.*; public class NickChangeEvent extends Event { private var varNewNickName:String; public function NickChangeEvent(_arg1:String){ super("NickChangeEvent"); this.varNewNickName = _arg1.replace(/[^\w^\d^\`^\[^\]^\{^\}^\^^\\^\-]/ig, ""); } public function get newNickName():String{ return (this.varNewNickName); } override public function clone():Event{ return (new NickChangeEvent(this.varNewNickName)); } } }//package com.eightlabs.rambler.events
Section 118
//NickChangePasswordEvent (com.eightlabs.rambler.events.NickChangePasswordEvent) package com.eightlabs.rambler.events { import flash.events.*; public class NickChangePasswordEvent extends Event { private var varPassword:String; public function NickChangePasswordEvent(_arg1:String){ super("NickChangePasswordEvent"); this.varPassword = _arg1; } public function get password():String{ return (this.varPassword); } override public function clone():Event{ return (new NickChangePasswordEvent(this.varPassword)); } } }//package com.eightlabs.rambler.events
Section 119
//NickRegistrationEvent (com.eightlabs.rambler.events.NickRegistrationEvent) package com.eightlabs.rambler.events { import flash.events.*; public class NickRegistrationEvent extends Event { private var varPassword:String; private var varEmail:String; public function NickRegistrationEvent(_arg1:String, _arg2:String){ super("NickRegistrationEvent"); this.varEmail = _arg1; this.varPassword = _arg2; } public function get password():String{ return (this.varPassword); } public function get email():String{ return (this.varEmail); } override public function clone():Event{ return (new NickRegistrationEvent(this.varEmail, this.varPassword)); } } }//package com.eightlabs.rambler.events
Section 120
//OptionRequestEvent (com.eightlabs.rambler.events.OptionRequestEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionRequestEvent extends Event { private var varNickName:String; public function OptionRequestEvent(_arg1:String){ super("OptionRequestEvent"); this.varNickName = _arg1; } override public function clone():Event{ return (new OptionRequestEvent(this.varNickName)); } public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.rambler.events
Section 121
//OptionsHalfopEvent (com.eightlabs.rambler.events.OptionsHalfopEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsHalfopEvent extends Event { private var varRecipientName:String; private var varStatus:Boolean; private var varRoomName:String; public function OptionsHalfopEvent(_arg1:String, _arg2:String, _arg3:Boolean){ super("OptionsHalfopEvent"); this.varRecipientName = _arg1; this.varRoomName = _arg2; this.varStatus = _arg3; } public function get roomName():String{ return (this.varRoomName); } public function get recipientName():String{ return (this.varRecipientName); } override public function clone():Event{ return (new OptionsHalfopEvent(this.varRecipientName, this.varRoomName, this.varStatus)); } public function get status():Boolean{ return (this.varStatus); } } }//package com.eightlabs.rambler.events
Section 122
//OptionsOpEvent (com.eightlabs.rambler.events.OptionsOpEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsOpEvent extends Event { private var varRecipientName:String; private var varStatus:Boolean; private var varRoomName:String; public function OptionsOpEvent(_arg1:String, _arg2:String, _arg3:Boolean){ super("OptionsOpEvent"); this.varRecipientName = _arg1; this.varRoomName = _arg2; this.varStatus = _arg3; } public function get roomName():String{ return (this.varRoomName); } public function get recipientName():String{ return (this.varRecipientName); } override public function clone():Event{ return (new OptionsOpEvent(this.varRecipientName, this.varRoomName, this.varStatus)); } public function get status():Boolean{ return (this.varStatus); } } }//package com.eightlabs.rambler.events
Section 123
//OptionsPrivateEvent (com.eightlabs.rambler.events.OptionsPrivateEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsPrivateEvent extends Event { private var varRecipientName:String; public function OptionsPrivateEvent(_arg1:String){ super("OptionsPrivateEvent"); this.varRecipientName = _arg1; } override public function clone():Event{ return (new OptionsPrivateEvent(this.varRecipientName)); } public function get recipientName():String{ return (this.varRecipientName); } } }//package com.eightlabs.rambler.events
Section 124
//OptionsProfileEvent (com.eightlabs.rambler.events.OptionsProfileEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsProfileEvent extends Event { private var varRecipientName:String; public function OptionsProfileEvent(_arg1:String){ super("OptionsProfileEvent"); this.varRecipientName = _arg1; } override public function clone():Event{ return (new OptionsProfileEvent(this.varRecipientName)); } public function get recipientName():String{ return (this.varRecipientName); } } }//package com.eightlabs.rambler.events
Section 125
//OptionsRemoveEvent (com.eightlabs.rambler.events.OptionsRemoveEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsRemoveEvent extends Event { private var varRecipientName:String; private var varRoomName:String; public function OptionsRemoveEvent(_arg1:String, _arg2:String){ super("OptionsRemoveEvent"); this.varRecipientName = _arg1; this.varRoomName = _arg2; } public function get roomName():String{ return (this.varRoomName); } public function get recipientName():String{ return (this.varRecipientName); } override public function clone():Event{ return (new OptionsRemoveEvent(this.varRecipientName, this.varRoomName)); } } }//package com.eightlabs.rambler.events
Section 126
//OptionsVoiceEvent (com.eightlabs.rambler.events.OptionsVoiceEvent) package com.eightlabs.rambler.events { import flash.events.*; public class OptionsVoiceEvent extends Event { private var varRecipientName:String; private var varStatus:Boolean; private var varRoomName:String; public function OptionsVoiceEvent(_arg1:String, _arg2:String, _arg3:Boolean){ super("OptionsVoiceEvent"); this.varRecipientName = _arg1; this.varRoomName = _arg2; this.varStatus = _arg3; } public function get roomName():String{ return (this.varRoomName); } public function get recipientName():String{ return (this.varRecipientName); } override public function clone():Event{ return (new OptionsVoiceEvent(this.varRecipientName, this.varRoomName, this.varStatus)); } public function get status():Boolean{ return (this.varStatus); } } }//package com.eightlabs.rambler.events
Section 127
//PrivateCloseEvent (com.eightlabs.rambler.events.PrivateCloseEvent) package com.eightlabs.rambler.events { import flash.events.*; public class PrivateCloseEvent extends Event { private var varRecipientName:String; public function PrivateCloseEvent(_arg1:String){ super("PrivateCloseEvent"); this.varRecipientName = _arg1; } override public function clone():Event{ return (new PrivateCloseEvent(this.varRecipientName)); } public function get recipientName():String{ return (this.varRecipientName); } } }//package com.eightlabs.rambler.events
Section 128
//PrivateRequestEvent (com.eightlabs.rambler.events.PrivateRequestEvent) package com.eightlabs.rambler.events { import flash.events.*; public class PrivateRequestEvent extends Event { private var varNickName:String; public function PrivateRequestEvent(_arg1:String){ super("PrivateRequestEvent"); this.varNickName = _arg1; } override public function clone():Event{ return (new PrivateRequestEvent(this.varNickName)); } public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.rambler.events
Section 129
//PrivateSwitchEvent (com.eightlabs.rambler.events.PrivateSwitchEvent) package com.eightlabs.rambler.events { import flash.events.*; public class PrivateSwitchEvent extends Event { private var varRecipientName:String; public function PrivateSwitchEvent(_arg1:String){ super("PrivateSwitchEvent"); this.varRecipientName = _arg1; } override public function clone():Event{ return (new PrivateSwitchEvent(this.varRecipientName)); } public function get recipientName():String{ return (this.varRecipientName); } } }//package com.eightlabs.rambler.events
Section 130
//RamblerMinimizeEvent (com.eightlabs.rambler.events.RamblerMinimizeEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RamblerMinimizeEvent extends Event { public function RamblerMinimizeEvent(){ super("RamblerMinimizeEvent"); } override public function clone():Event{ return (new RamblerMinimizeEvent()); } } }//package com.eightlabs.rambler.events
Section 131
//RoomAuthenticationEvent (com.eightlabs.rambler.events.RoomAuthenticationEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomAuthenticationEvent extends Event { private var varPassword:String; private var varRoomName:String; public function RoomAuthenticationEvent(_arg1:String, _arg2:String){ super("RoomAuthenticationEvent"); this.varRoomName = _arg1; this.varPassword = _arg2; } public function get roomName():String{ return (this.varRoomName); } public function get passWord():String{ return (this.varPassword); } override public function clone():Event{ return (new RoomAuthenticationEvent(this.varRoomName, this.varPassword)); } } }//package com.eightlabs.rambler.events
Section 132
//RoomCloseEvent (com.eightlabs.rambler.events.RoomCloseEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomCloseEvent extends Event { private var varRoomName:String; public function RoomCloseEvent(_arg1:String){ super("RoomCloseEvent"); this.varRoomName = _arg1; } override public function clone():Event{ return (new RoomCloseEvent(this.varRoomName)); } public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.rambler.events
Section 133
//RoomModeChangeRequest (com.eightlabs.rambler.events.RoomModeChangeRequest) package com.eightlabs.rambler.events { import flash.events.*; public class RoomModeChangeRequest extends Event { private var varRoomName:String; private var varModeString:String; public function RoomModeChangeRequest(_arg1:String, _arg2:String){ super("RoomModeChangeRequest"); this.varRoomName = _arg1; this.varModeString = _arg2; } public function get roomName():String{ return (this.varRoomName); } public function get modeString():String{ return (this.varModeString); } override public function clone():Event{ return (new RoomModeChangeRequest(this.varRoomName, this.varModeString)); } } }//package com.eightlabs.rambler.events
Section 134
//RoomOptionsRemoveUserEvent (com.eightlabs.rambler.events.RoomOptionsRemoveUserEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomOptionsRemoveUserEvent extends Event { private var varBan:Boolean; private var varRoomName:String; private var varNickName:String; private var varPerm:Boolean; private var varUserMask:String; public function RoomOptionsRemoveUserEvent(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:Boolean, _arg5:String){ super("RoomOptionsRemoveUserEvent"); this.varRoomName = _arg1; this.varNickName = _arg2; this.varBan = _arg3; this.varPerm = _arg4; this.varUserMask = _arg5; } public function get roomName():String{ return (this.varRoomName); } public function get userMask():String{ return (this.varUserMask); } public function get ban():Boolean{ return (this.varBan); } public function get nickName():String{ return (this.varNickName); } public function get perm():Boolean{ return (this.varPerm); } } }//package com.eightlabs.rambler.events
Section 135
//RoomRegistrationEvent (com.eightlabs.rambler.events.RoomRegistrationEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomRegistrationEvent extends Event { private var varPassword:String; public function RoomRegistrationEvent(_arg1:String){ super("RoomRegistrationEvent"); this.varPassword = _arg1; } public function get password():String{ return (this.varPassword); } override public function clone():Event{ return (new RoomRegistrationEvent(this.varPassword)); } } }//package com.eightlabs.rambler.events
Section 136
//RoomServicesAddOpRequest (com.eightlabs.rambler.events.RoomServicesAddOpRequest) package com.eightlabs.rambler.events { import flash.events.*; public class RoomServicesAddOpRequest extends Event { private var varType:String; private var varNickname:String; private var varRoomName:String; public function RoomServicesAddOpRequest(_arg1:String, _arg2:String, _arg3:String){ super("RoomServicesAddOpRequest"); this.varRoomName = _arg1; this.varType = _arg2; this.varNickname = _arg3; } override public function clone():Event{ return (new RoomServicesAddOpRequest(this.varRoomName, this.varType, this.varNickname)); } public function get roomName():String{ return (this.varRoomName); } public function get opType():String{ return (this.varType); } public function get nickname():String{ return (this.varNickname); } } }//package com.eightlabs.rambler.events
Section 137
//RoomServicesDelOpRequest (com.eightlabs.rambler.events.RoomServicesDelOpRequest) package com.eightlabs.rambler.events { import flash.events.*; public class RoomServicesDelOpRequest extends Event { private var varType:String; private var varNickname:String; private var varRoomName:String; public function RoomServicesDelOpRequest(_arg1:String, _arg2:String, _arg3:String){ super("RoomServicesDelOpRequest"); this.varRoomName = _arg1; this.varType = _arg2; this.varNickname = _arg3; } override public function clone():Event{ return (new RoomServicesDelOpRequest(this.varRoomName, this.varType, this.varNickname)); } public function get roomName():String{ return (this.varRoomName); } public function get opType():String{ return (this.varType); } public function get nickname():String{ return (this.varNickname); } } }//package com.eightlabs.rambler.events
Section 138
//RoomSettingsAddBanEvent (com.eightlabs.rambler.events.RoomSettingsAddBanEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomSettingsAddBanEvent extends Event { private var varBanned:String; private var varRoomName:String; public function RoomSettingsAddBanEvent(_arg1:String, _arg2:String){ super("RoomSettingsAddBanEvent"); this.varRoomName = _arg1; this.varBanned = _arg2; } public function get roomName():String{ return (this.varRoomName); } public function get banned():String{ return (this.varBanned); } } }//package com.eightlabs.rambler.events
Section 139
//RoomSettingsAddOpEvent (com.eightlabs.rambler.events.RoomSettingsAddOpEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomSettingsAddOpEvent extends Event { private var varType:String; private var varNickName:String; private var varRoomName:String; public function RoomSettingsAddOpEvent(_arg1:String, _arg2:String, _arg3:String){ super("RoomSettingsAddOpEvent"); this.varRoomName = _arg1; this.varNickName = _arg2; this.varType = _arg3; } public function get roomName():String{ return (this.varRoomName); } public function get opType():String{ return (this.varType); } public function get nickName():String{ return (this.varNickName); } } }//package com.eightlabs.rambler.events
Section 140
//RoomTopicChangeRequest (com.eightlabs.rambler.events.RoomTopicChangeRequest) package com.eightlabs.rambler.events { import flash.events.*; public class RoomTopicChangeRequest extends Event { private var varTopicString:String; private var varRoomName:String; public function RoomTopicChangeRequest(_arg1:String, _arg2:String){ super("RoomTopicChangeRequest"); this.varRoomName = _arg1; this.varTopicString = _arg2; } public function get topicString():String{ return (this.varTopicString); } override public function clone():Event{ return (new RoomTopicChangeRequest(this.varRoomName, this.varTopicString)); } public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.rambler.events
Section 141
//RoomUserQuitEvent (com.eightlabs.rambler.events.RoomUserQuitEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomUserQuitEvent extends Event { private var varMessage:String; private var varPrefixHost:String; private var varPrefixUser:String; private var varUserName:String; private var varRoomName:String; public function RoomUserQuitEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String){ super("RoomUserQuitEvent"); this.varRoomName = _arg1; this.varUserName = _arg2; this.varPrefixUser = _arg3; this.varPrefixHost = _arg4; this.varMessage = _arg5; } public function get roomName():String{ return (this.varRoomName); } public function get message():String{ return (this.varMessage); } public function get prefixHost():String{ return (this.varPrefixHost); } public function get prefixUser():String{ return (this.varPrefixUser); } public function get userName():String{ return (this.varUserName); } override public function clone():Event{ return (new RoomUserQuitEvent(this.varRoomName, this.varUserName, this.prefixUser, this.prefixHost, this.varMessage)); } } }//package com.eightlabs.rambler.events
Section 142
//RoomUserRenameEvent (com.eightlabs.rambler.events.RoomUserRenameEvent) package com.eightlabs.rambler.events { import flash.events.*; public class RoomUserRenameEvent extends Event { private var varOldUserName:String; private var varRoomName:String; private var varNewUserName:String; public function RoomUserRenameEvent(_arg1:String, _arg2:String, _arg3:String){ super("RoomUserRenameEvent"); this.varRoomName = _arg1; this.varNewUserName = _arg3; this.varOldUserName = _arg2; } public function get oldUserName():String{ return (this.varOldUserName); } override public function clone():Event{ return (new RoomUserRenameEvent(this.varRoomName, this.varOldUserName, this.varNewUserName)); } public function get roomName():String{ return (this.varRoomName); } public function get newUserName():String{ return (this.varNewUserName); } } }//package com.eightlabs.rambler.events
Section 143
//SendActionEvent (com.eightlabs.rambler.events.SendActionEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendActionEvent extends Event { private var varMessage:String; private var varRawMessage:String; public function SendActionEvent(_arg1:String, _arg2:String){ super("SendActionEvent"); this.varMessage = _arg1; this.varRawMessage = _arg2; } override public function clone():Event{ return (new SendActionEvent(this.varMessage, this.varRawMessage)); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 144
//SendCommandEvent (com.eightlabs.rambler.events.SendCommandEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendCommandEvent extends Event { private var varCommand:String; private var varArguments:String; public function SendCommandEvent(_arg1:String, _arg2:String){ super("SendCommandEvent"); this.varCommand = _arg1; this.varArguments = _arg2; } public function get arguments():String{ return (this.varArguments); } public function get command():String{ return (this.varCommand); } override public function clone():Event{ return (new SendCommandEvent(this.varCommand, this.varArguments)); } } }//package com.eightlabs.rambler.events
Section 145
//SendMessageEvent (com.eightlabs.rambler.events.SendMessageEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendMessageEvent extends Event { private var varMessage:String; private var varRawMessage:String; public function SendMessageEvent(_arg1:String, _arg2:String){ super("SendMessageEvent"); this.varMessage = _arg1; this.varRawMessage = _arg2; } override public function clone():Event{ return (new SendMessageEvent(this.varMessage, this.varRawMessage)); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 146
//SendPrivateActionEvent (com.eightlabs.rambler.events.SendPrivateActionEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendPrivateActionEvent extends Event { private var varMessage:String; private var varRawMessage:String; private var varRecipientName:String; public function SendPrivateActionEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendPrivateActionEvent"); this.varRecipientName = _arg1; this.varMessage = _arg2; this.varRawMessage = _arg3; } override public function clone():Event{ return (new SendPrivateActionEvent(this.varRecipientName, this.varMessage, this.varRawMessage)); } public function get recipientName():String{ return (this.varRecipientName); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 147
//SendPrivateCommandEvent (com.eightlabs.rambler.events.SendPrivateCommandEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendPrivateCommandEvent extends Event { private var varCommand:String; private var varRecipientName:String; private var varArguments:String; public function SendPrivateCommandEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendPrivateCommandEvent"); this.varRecipientName = _arg1; this.varCommand = _arg2; this.varArguments = _arg3; } public function get command():String{ return (this.varCommand); } public function get arguments():String{ return (this.varArguments); } public function get recipientName():String{ return (this.varRecipientName); } override public function clone():Event{ return (new SendPrivateCommandEvent(this.varRecipientName, this.varCommand, this.varArguments)); } } }//package com.eightlabs.rambler.events
Section 148
//SendPrivateMessageEvent (com.eightlabs.rambler.events.SendPrivateMessageEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendPrivateMessageEvent extends Event { private var varMessage:String; private var varRawMessage:String; private var varRecipientName:String; public function SendPrivateMessageEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendPrivateMessageEvent"); this.varRecipientName = _arg1; this.varMessage = _arg2; this.varRawMessage = _arg3; } override public function clone():Event{ return (new SendPrivateMessageEvent(this.varRecipientName, this.varMessage, this.varRawMessage)); } public function get recipientName():String{ return (this.varRecipientName); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 149
//SendRoomActionEvent (com.eightlabs.rambler.events.SendRoomActionEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendRoomActionEvent extends Event { private var varMessage:String; private var varRawMessage:String; private var varRoomName:String; public function SendRoomActionEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendRoomActionEvent"); this.varRoomName = _arg1; this.varMessage = _arg2; this.varRawMessage = _arg3; } override public function clone():Event{ return (new SendRoomActionEvent(this.varRoomName, this.varMessage, this.varRawMessage)); } public function get roomName():String{ return (this.varRoomName); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 150
//SendRoomCommandEvent (com.eightlabs.rambler.events.SendRoomCommandEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendRoomCommandEvent extends Event { private var varCommand:String; private var varRoomName:String; private var varArguments:String; public function SendRoomCommandEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendRoomCommandEvent"); this.varRoomName = _arg1; this.varCommand = _arg2; this.varArguments = _arg3; } public function get arguments():String{ return (this.varArguments); } public function get roomName():String{ return (this.varRoomName); } public function get command():String{ return (this.varCommand); } override public function clone():Event{ return (new SendRoomCommandEvent(this.varRoomName, this.varCommand, this.varArguments)); } } }//package com.eightlabs.rambler.events
Section 151
//SendRoomMessageEvent (com.eightlabs.rambler.events.SendRoomMessageEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SendRoomMessageEvent extends Event { private var varMessage:String; private var varRawMessage:String; private var varRoomName:String; public function SendRoomMessageEvent(_arg1:String, _arg2:String, _arg3:String){ super("SendRoomMessageEvent"); this.varRoomName = _arg1; this.varMessage = _arg2; this.varRawMessage = _arg3; } override public function clone():Event{ return (new SendRoomMessageEvent(this.varRoomName, this.varMessage, this.varRawMessage)); } public function get roomName():String{ return (this.varRoomName); } public function get message():String{ return (this.varMessage); } public function get rawMessage():String{ return (this.varRawMessage); } } }//package com.eightlabs.rambler.events
Section 152
//ServicesListEvent (com.eightlabs.rambler.events.ServicesListEvent) package com.eightlabs.rambler.events { import flash.events.*; public class ServicesListEvent extends Event { private var varRoomName:String; public function ServicesListEvent(_arg1:String){ super("ServicesListEvent"); this.varRoomName = _arg1; } override public function clone():Event{ return (new ServicesListEvent(this.varRoomName)); } public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.rambler.events
Section 153
//StyleSheetLoadedEvent (com.eightlabs.rambler.events.StyleSheetLoadedEvent) package com.eightlabs.rambler.events { import flash.events.*; import flash.text.*; public class StyleSheetLoadedEvent extends Event { private var varStyleSheet:StyleSheet; public function StyleSheetLoadedEvent(_arg1:StyleSheet){ super("StyleSheetLoadedEvent"); this.varStyleSheet = _arg1; } override public function clone():Event{ return (new StyleSheetLoadedEvent(this.varStyleSheet)); } public function get stylesheet():StyleSheet{ return (this.varStyleSheet); } } }//package com.eightlabs.rambler.events
Section 154
//SwitchRoomEvent (com.eightlabs.rambler.events.SwitchRoomEvent) package com.eightlabs.rambler.events { import flash.events.*; public class SwitchRoomEvent extends Event { private var varRoomName:String; public function SwitchRoomEvent(_arg1:String){ super("SwitchRoomEvent"); this.varRoomName = _arg1; } override public function clone():Event{ return (new SwitchRoomEvent(this.varRoomName)); } public function get roomName():String{ return (this.varRoomName); } } }//package com.eightlabs.rambler.events
Section 155
//TabAllClosedEvent (com.eightlabs.rambler.events.TabAllClosedEvent) package com.eightlabs.rambler.events { import flash.events.*; public class TabAllClosedEvent extends Event { public function TabAllClosedEvent(){ super("TabAllClosedEvent"); } override public function clone():Event{ return (new TabAllClosedEvent()); } } }//package com.eightlabs.rambler.events
Section 156
//TabCompleteEvent (com.eightlabs.rambler.events.TabCompleteEvent) package com.eightlabs.rambler.events { import flash.events.*; public class TabCompleteEvent extends Event { private var varNickFrag:String; private var varStartIndex:int; private var varEndIndex:int; public function TabCompleteEvent(_arg1:String, _arg2:int, _arg3:int){ super("TabCompleteEvent"); this.varNickFrag = _arg1; this.varStartIndex = _arg2; this.varEndIndex = _arg3; } public function get startIndex():int{ return (this.varStartIndex); } public function get nickFrag():String{ return (this.varNickFrag); } public function get endIndex():int{ return (this.varEndIndex); } override public function clone():Event{ return (new TabCompleteEvent(this.varNickFrag, this.varStartIndex, this.varEndIndex)); } } }//package com.eightlabs.rambler.events
Section 157
//AdBox (com.eightlabs.rambler.views.AdBox) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import com.eightlabs.utilities.advertisements.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class AdBox extends VBox { private var _embed_mxml__assets_img_closeButtonWhite_png_511449305:Class; private var _92634272adImg:Image; private var ad:Advertisement; private var _documentDescriptor_:UIComponentDescriptor; public function AdBox(){ _documentDescriptor_ = new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Image, events:{click:"___AdBox_Image1_click"}, propertiesFactory:function ():Object{ return ({source:_embed_mxml__assets_img_closeButtonWhite_png_511449305, height:15, width:15}); }}), new UIComponentDescriptor({type:Image, id:"adImg", events:{click:"__adImg_click"}, stylesFactory:function ():void{ this.horizontalAlign = "center"; }, propertiesFactory:function ():Object{ return ({percentHeight:100, percentWidth:100, scaleContent:false, maintainAspectRatio:true}); }})]}); }})]}); }}); _embed_mxml__assets_img_closeButtonWhite_png_511449305 = AdBox__embed_mxml__assets_img_closeButtonWhite_png_511449305; super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.borderStyle = "solid"; this.borderThickness = 0; this.cornerRadius = 5; this.horizontalAlign = "center"; }; this.verticalScrollPolicy = "off"; this.horizontalScrollPolicy = "off"; this.addEventListener("creationComplete", ___AdBox_VBox1_creationComplete); } public function showAd():void{ this.visible = true; this.includeInLayout = true; } public function closeAd():void{ this.visible = false; this.includeInLayout = false; } private function imgClick():void{ if (this.ad.ImgRequest){ navigateToURL(this.ad.ImgRequest, "_blank"); }; } private function footerImgClick():void{ if (this.ad.FooterImgRequest){ navigateToURL(this.ad.FooterImgRequest, "_blank"); }; } public function adLoaded(_arg1:Event):void{ debug.write("adLoaded called."); if (this.ad.Img){ debug.write(("ad img loaded: " + ad.Img)); this.adImg.source = this.ad.Img; this.adImg.visible = true; this.adImg.includeInLayout = true; } else { this.adImg.visible = false; this.adImg.includeInLayout = false; }; if (this.ad.ImgRequest){ this.adImg.useHandCursor = true; this.adImg.buttonMode = true; } else { this.adImg.useHandCursor = false; this.adImg.buttonMode = false; }; this.showAd(); } public function __adImg_click(_arg1:MouseEvent):void{ imgClick(); } public function set adImg(_arg1:Image):void{ var _local2:Object = this._92634272adImg; if (_local2 !== _arg1){ this._92634272adImg = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "adImg", _local2, _arg1)); }; } override public function initialize():void{ mx_internal::setDocumentDescriptor(_documentDescriptor_); super.initialize(); } private function textClick():void{ if (this.ad.DescriptionRequest){ navigateToURL(this.ad.DescriptionRequest, "_blank"); }; } public function init():void{ this.setAd(this.ad); } public function get adImg():Image{ return (this._92634272adImg); } public function setAd(_arg1:Advertisement):void{ if (this.ad){ this.ad.removeEventListener(Advertisement.LOAD_COMPLETE, adLoaded); }; this.ad = _arg1; if (!this.ad){ this.closeAd(); return; }; this.ad.addEventListener(Advertisement.LOAD_COMPLETE, adLoaded); debug.write(("ad showing: " + ad.Header)); this.ad.load(); } private function footerClick():void{ if (this.ad.FooterRequest){ navigateToURL(this.ad.FooterRequest, "_blank"); }; } public function ___AdBox_VBox1_creationComplete(_arg1:FlexEvent):void{ init(); } public function ___AdBox_Image1_click(_arg1:MouseEvent):void{ closeAd(); } private function headerClick():void{ if (this.ad.HeaderRequest){ navigateToURL(this.ad.HeaderRequest, "_blank"); }; } } }//package com.eightlabs.rambler.views
Section 158
//AdBox__embed_mxml__assets_img_closeButtonWhite_png_511449305 (com.eightlabs.rambler.views.AdBox__embed_mxml__assets_img_closeButtonWhite_png_511449305) package com.eightlabs.rambler.views { import mx.core.*; public class AdBox__embed_mxml__assets_img_closeButtonWhite_png_511449305 extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 159
//AuthWindow (com.eightlabs.rambler.views.AuthWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class AuthWindow extends RamblerPanel implements IBindingClient { private var _documentDescriptor_:UIComponentDescriptor; private var _891535336submit:Button; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; private var _713328468lblUsername:Label; mx_internal var _watchers:Array; private var _2132097229changeNick:Button; private var _1216985755password:TextInput; mx_internal var _bindings:Array; public var _AuthWindow_FormItem1:FormItem; private static var _watcherSetupUtil:IWatcherSetupUtil; public function AuthWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:144, childDescriptors:[new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Label, id:"lblUsername"}), new UIComponentDescriptor({type:FormItem, id:"_AuthWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password", propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"changeNick"}), new UIComponentDescriptor({type:Button, id:"submit", stylesFactory:function ():void{ this.right = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = false; this.verticalScrollPolicy = "off"; this.horizontalScrollPolicy = "off"; this.layout = "vertical"; this.width = 400; this.height = 144; this.addEventListener("creationComplete", ___AuthWindow_RamblerPanel1_creationComplete); } public function get lblUsername():Label{ return (this._713328468lblUsername); } private function _AuthWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AuthWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AuthWindowPassword"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _AuthWindow_FormItem1.label = _arg1; }, "_AuthWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AuthWindowChangeUsername"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ changeNick.label = _arg1; }, "changeNick.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AuthWindowSubmit"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ submit.label = _arg1; }, "submit.label"); result[3] = binding; return (result); } public function creationCompleteEvent():void{ password.setFocus(); addCustomEventListeners(); } public function set password(_arg1:TextInput):void{ var _local2:Object = this._1216985755password; if (_local2 !== _arg1){ this._1216985755password = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password", _local2, _arg1)); }; } public function get submit():Button{ return (this._891535336submit); } override public function initialize():void{ var target:AuthWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _AuthWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function addCustomEventListeners():void{ this.submit.addEventListener("click", submitEvent); this.password.addEventListener("enter", submitEvent); this.changeNick.addEventListener("click", changeNickEvent); } private function submitEvent(_arg1:Event):void{ if (this.password.text == ""){ this.lblUsername.text = TextFormatter.getText("AuthWindowEmpty"); } else { if (this.password.text != ""){ this.dispatchEvent(new AuthenticateEvent(this.password.text)); }; }; } public function set changeNick(_arg1:Button):void{ var _local2:Object = this._2132097229changeNick; if (_local2 !== _arg1){ this._2132097229changeNick = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "changeNick", _local2, _arg1)); }; } private function changeNickEvent(_arg1:Event):void{ this.dispatchEvent(new ChangeNickRequestEvent()); } private function _AuthWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("AuthWindowTitle"); _local1 = TextFormatter.getText("AuthWindowPassword"); _local1 = TextFormatter.getText("AuthWindowChangeUsername"); _local1 = TextFormatter.getText("AuthWindowSubmit"); } public function get password():TextInput{ return (this._1216985755password); } public function set lblUsername(_arg1:Label):void{ var _local2:Object = this._713328468lblUsername; if (_local2 !== _arg1){ this._713328468lblUsername = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "lblUsername", _local2, _arg1)); }; } public function set submit(_arg1:Button):void{ var _local2:Object = this._891535336submit; if (_local2 !== _arg1){ this._891535336submit = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "submit", _local2, _arg1)); }; } public function get changeNick():Button{ return (this._2132097229changeNick); } public function ___AuthWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 160
//ChangeNamePasswordWindow (com.eightlabs.rambler.views.ChangeNamePasswordWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ChangeNamePasswordWindow extends RamblerPanel implements IBindingClient { private var _1618067916errorLabel:Label; private var _891535336submit:Button; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; private var _928147209password2:TextInput; mx_internal var _watchers:Array; public var _ChangeNamePasswordWindow_FormItem1:FormItem; public var _ChangeNamePasswordWindow_FormItem2:FormItem; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private var _928147210password1:TextInput; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ChangeNamePasswordWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:222, childDescriptors:[new UIComponentDescriptor({type:Label, id:"errorLabel", propertiesFactory:function ():Object{ return ({text:""}); }}), new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_ChangeNamePasswordWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password1", events:{enter:"__password1_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ChangeNamePasswordWindow_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password2", events:{enter:"__password2_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"submit", events:{click:"__submit_click"}, stylesFactory:function ():void{ this.right = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.verticalScrollPolicy = "off"; this.layout = "vertical"; this.width = 400; this.height = 222; this.addEventListener("creationComplete", ___ChangeNamePasswordWindow_RamblerPanel1_creationComplete); } public function __submit_click(_arg1:MouseEvent):void{ register(); } public function set errorLabel(_arg1:Label):void{ var _local2:Object = this._1618067916errorLabel; if (_local2 !== _arg1){ this._1618067916errorLabel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "errorLabel", _local2, _arg1)); }; } private function creationCompleteEvent():void{ password1.setFocus(); } public function set password1(_arg1:TextInput):void{ var _local2:Object = this._928147210password1; if (_local2 !== _arg1){ this._928147210password1 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password1", _local2, _arg1)); }; } public function get submit():Button{ return (this._891535336submit); } public function get errorLabel():Label{ return (this._1618067916errorLabel); } public function ___ChangeNamePasswordWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } private function register():void{ if (((((!((Application.application.userName.toLowerCase() == password1.text.toLowerCase()))) && ((password1.text.length > 4)))) && ((password1.text == password2.text)))){ this.dispatchEvent(new NickChangePasswordEvent(password1.text)); dispatchEvent(new Event("close")); } else { if (Application.application.userName.toLowerCase() == password1.text.toLowerCase()){ errorLabel.text = "Your password cannot be the same as your nickname."; } else { if (password1.text.length < 5){ errorLabel.text = "Your password must be at least 5 characters."; } else { password1.text = ""; password2.text = ""; errorLabel.text = "Passwords must match. Please try again."; }; }; }; } override public function initialize():void{ var target:ChangeNamePasswordWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _ChangeNamePasswordWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function set password2(_arg1:TextInput):void{ var _local2:Object = this._928147209password2; if (_local2 !== _arg1){ this._928147209password2 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password2", _local2, _arg1)); }; } public function __password1_enter(_arg1:FlexEvent):void{ register(); } public function __password2_enter(_arg1:FlexEvent):void{ register(); } private function _ChangeNamePasswordWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNamePasswordWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNamePasswordWindowPass"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ChangeNamePasswordWindow_FormItem1.label = _arg1; }, "_ChangeNamePasswordWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNamePasswordWindowPassAgain"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ChangeNamePasswordWindow_FormItem2.label = _arg1; }, "_ChangeNamePasswordWindow_FormItem2.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNamePasswordWindowSubmitButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ submit.label = _arg1; }, "submit.label"); result[3] = binding; return (result); } public function get password2():TextInput{ return (this._928147209password2); } private function _ChangeNamePasswordWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("ChangeNamePasswordWindowTitle"); _local1 = TextFormatter.getText("ChangeNamePasswordWindowPass"); _local1 = TextFormatter.getText("ChangeNamePasswordWindowPassAgain"); _local1 = TextFormatter.getText("ChangeNamePasswordWindowSubmitButton"); } public function get password1():TextInput{ return (this._928147210password1); } public function set submit(_arg1:Button):void{ var _local2:Object = this._891535336submit; if (_local2 !== _arg1){ this._891535336submit = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "submit", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 161
//ChangeNameWindow (com.eightlabs.rambler.views.ChangeNameWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ChangeNameWindow extends RamblerPanel implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _watchers:Array; private var _265713450username:TextInput; private var _3548ok:Button; public var _ChangeNameWindow_FormItem1:FormItem; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private var _1396097113errorMsg:Label; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ChangeNameWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:336, height:132, childDescriptors:[new UIComponentDescriptor({type:Label, id:"errorMsg"}), new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_ChangeNameWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"username"})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"ok", stylesFactory:function ():void{ this.right = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.layout = "absolute"; this.width = 336; this.height = 132; this.addEventListener("creationComplete", ___ChangeNameWindow_RamblerPanel1_creationComplete); } public function set username(_arg1:TextInput):void{ var _local2:Object = this._265713450username; if (_local2 !== _arg1){ this._265713450username = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "username", _local2, _arg1)); }; } private function _ChangeNameWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("ChangeNameTitle"); _local1 = TextFormatter.getText("ChangeNameNewNick"); _local1 = TextFormatter.getText("ChangeNameSubmit"); } override public function initialize():void{ var target:ChangeNameWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _ChangeNameWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function addCustomEventListeners():void{ this.username.addEventListener("enter", changeEvent); this.ok.addEventListener("click", changeEvent); this.ok.addEventListener("enter", changeEvent); } private function changeEvent(_arg1:Event):void{ this.dispatchEvent(new NickChangeEvent(username.text)); } public function get ok():Button{ return (this._3548ok); } public function get username():TextInput{ return (this._265713450username); } public function get errorMsg():Label{ return (this._1396097113errorMsg); } public function init():void{ addCustomEventListeners(); username.setFocus(); } public function ___ChangeNameWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ init(); } public function set errorMsg(_arg1:Label):void{ var _local2:Object = this._1396097113errorMsg; if (_local2 !== _arg1){ this._1396097113errorMsg = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "errorMsg", _local2, _arg1)); }; } private function _ChangeNameWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNameTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNameNewNick"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ChangeNameWindow_FormItem1.label = _arg1; }, "_ChangeNameWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ChangeNameSubmit"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ ok.label = _arg1; }, "ok.label"); result[2] = binding; return (result); } public function set ok(_arg1:Button):void{ var _local2:Object = this._3548ok; if (_local2 !== _arg1){ this._3548ok = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ok", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 162
//ChatBox (com.eightlabs.rambler.views.ChatBox) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ChatBox extends RamblerPanel { private const LINECOUNTMAX:int = 500; private const INPUTHISTORYMAX:int = 10; private var _1464196961txtTopic:Text; private var inputHistoryIndex:int;// = -1 private var oldScrollPosition:int; private var varStylesHash:Object; private var scrollEnabled:Boolean;// = true private var txtInput:RichTextEditor; private var _957319652topicBox:HBox; private var _879029784txtChat:RamblerTextArea; private var _3015856cBar:HBox; private var inputHistory:Array; private var bttnSend:Button; private var _documentDescriptor_:UIComponentDescriptor; private var lineCount:int; private var bttnTest:Button; public function ChatBox(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:HBox, id:"topicBox", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Text, id:"txtTopic", propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:RamblerTextArea, id:"txtChat", events:{updateComplete:"__txtChat_updateComplete", scroll:"__txtChat_scroll"}, propertiesFactory:function ():Object{ return ({editable:false, percentWidth:100, percentHeight:100, verticalScrollPolicy:"auto", horizontalScrollPolicy:"off"}); }}), new UIComponentDescriptor({type:HBox, id:"cBar", propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }}); txtInput = new RichTextEditor(); bttnSend = new Button(); bttnTest = new Button(); inputHistory = new Array(); super(); mx_internal::_document = this; this.layout = "vertical"; this.percentWidth = 100; this.percentHeight = 100; this.showCloseButton = true; this.creationPolicy = "all"; this.addEventListener("initialize", ___ChatBox_RamblerPanel1_initialize); this.addEventListener("creationComplete", ___ChatBox_RamblerPanel1_creationComplete); } private function previousInputHistory():void{ inputHistoryIndex = (inputHistoryIndex - 1); if ((((inputHistoryIndex >= inputHistory.length)) || ((inputHistoryIndex < 0)))){ inputHistoryIndex = (inputHistory.length - 1); }; txtInput.htmlText = inputHistory[inputHistoryIndex]; } private function nextInputHistory():void{ inputHistoryIndex = (inputHistoryIndex + 1); if ((((inputHistoryIndex >= inputHistory.length)) || ((inputHistoryIndex < 0)))){ inputHistoryIndex = 0; }; txtInput.htmlText = inputHistory[inputHistoryIndex]; } private function setNewInputStyles(_arg1:Event):void{ var style:String; var localStorage:SharedObject; var prop:String; var e = _arg1; try { localStorage = SharedObject.getLocal("ewcStorage"); if (localStorage.size == 0){ debug.write("created... ewcInputStyle (chatbox)"); }; for (prop in localStorage.data) { setInputStyles(prop, localStorage.data[prop]); }; } catch(e:Error) { debug.write(("Problem getting/setting the SharedObject (chatbox): " + e.message)); }; for (style in this.varStylesHash) { this.setInputStyles(style, this.varStylesHash[style]); }; } private function init():void{ var _local1:Object = new Object(); _local1 = TextFormatter.stylesheet.getStyle(".chatBox"); _local1.fontSize = Application.application.defaultFont; TextFormatter.stylesheet.setStyle(".chatBox", _local1); TextFormatter.styleComponent(txtChat); } public function setInputStyles(_arg1:String, _arg2:Object):void{ txtInput.updateTextStyles(_arg1, _arg2); } public function dump():void{ debug.write(txtChat.htmlText); } override public function initialize():void{ mx_internal::setDocumentDescriptor(_documentDescriptor_); super.initialize(); } public function get topicBox():HBox{ return (this._957319652topicBox); } private function sendCommand(_arg1:String):void{ var _local3:String; var _local4:String; var _local2:Number = _arg1.indexOf(" "); if (_local2 == -1){ _local3 = _arg1.substr(1); _local4 = ""; } else { _local3 = _arg1.substring(1, _local2); _local4 = _arg1.substring((_local2 + 1)); }; dispatchEvent(new SendCommandEvent(_local3, _local4)); } private function initControlBar():void{ txtInput.initialize(); bttnSend.label = TextFormatter.getText("ChatInputSendButton"); cBar.addChild(txtInput); cBar.addChild(bttnSend); } public function set stylesHash(_arg1:Object):void{ varStylesHash = _arg1; } private function sendInput(_arg1:Event):void{ var _local2:String = txtInput.htmlText; var _local3:String = txtInput.textArea.text; if (_local3 != ""){ if (txtInput.textArea.text.substr(0, 4) == "/me "){ this.sendAction(_local2.replace(/\/me\s/i, ""), _local3); } else { if (txtInput.textArea.text.substr(0, 1) == "/"){ this.sendCommand(_local3); } else { this.sendMessage(_local2, _local3); }; }; this.txtInput.textArea.text = ""; txtInput.textArea.setFocus(); addInputHistory(_local2); }; } private function addInputHistory(_arg1:String):void{ if (inputHistory[(inputHistory.length - 1)] != _arg1){ if (inputHistory.length == INPUTHISTORYMAX){ inputHistory.shift(); }; inputHistory.push(_arg1); }; inputHistoryIndex = -1; } private function inputStyleChanged(_arg1:InputStyleChanged):void{ dispatchEvent(_arg1); } private function userScrolled():void{ } public function get cBar():HBox{ return (this._3015856cBar); } public function inputFocus():void{ txtInput.textArea.setFocus(); } public function get txtTopic():Text{ return (this._1464196961txtTopic); } public function ___ChatBox_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ createComplete(); } public function __txtChat_updateComplete(_arg1:FlexEvent):void{ setScroll(); } public function addMessage(_arg1:String):void{ var _local2:Date; if (Application.application.timeStamps){ _local2 = new Date(); txtChat.htmlText = (txtChat.htmlText + ((((((("<span class=\"chatBox\">[" + doubleDigitFormat(_local2.getHours())) + ":") + doubleDigitFormat(_local2.getMinutes())) + "] ") + _arg1) + "</span>") + "\n")); } else { txtChat.htmlText = (txtChat.htmlText + ((("<span class=\"chatBox\">" + _arg1) + "</span>") + "\n")); }; lineCount++; if (lineCount > LINECOUNTMAX){ txtChat.htmlText = txtChat.htmlText.substr((txtChat.htmlText.indexOf("\n") + 1)); lineCount--; }; } public function set topicBox(_arg1:HBox):void{ var _local2:Object = this._957319652topicBox; if (_local2 !== _arg1){ this._957319652topicBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "topicBox", _local2, _arg1)); }; } public function set txtTopic(_arg1:Text):void{ var _local2:Object = this._1464196961txtTopic; if (_local2 !== _arg1){ this._1464196961txtTopic = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtTopic", _local2, _arg1)); }; } public function getTopicText():String{ return (txtTopic.htmlText); } public function setTopicText(_arg1:String):void{ txtTopic.htmlText = _arg1; } public function insertAt(_arg1:int, _arg2:int, _arg3:String):void{ this.txtInput.insertAt(_arg1, _arg2, _arg3); } public function clear():void{ txtChat.htmlText = ""; } private function setScroll():void{ if (scrollEnabled){ txtChat.verticalScrollPosition = txtChat.maxVerticalScrollPosition; }; oldScrollPosition = txtChat.maxVerticalScrollPosition; } private function inputKeyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int = _arg1.keyCode; switch (_local2){ case 9: debug.write(((("Tab key pressed down in input box. " + _arg1.cancelable) + " :: ") + _arg1.isDefaultPrevented())); break; }; } private function createComplete():void{ initControlBar(); addCustomEventListeners(); TextFormatter.styleRTE(txtInput); } private function addCustomEventListeners():void{ this.txtInput.addEventListener("creationComplete", setNewInputStyles); this.txtInput.textArea.addEventListener(KeyboardEvent.KEY_UP, inputKeyHandler, false, 0, true); this.txtInput.textArea.addEventListener(KeyboardEvent.KEY_DOWN, inputKeyDownHandler, false, 0, true); this.txtInput.textArea.addEventListener("enter", sendInput, false, 0, true); this.bttnSend.addEventListener("click", sendInput, false, 0, true); this.bttnSend.addEventListener("enter", sendInput, false, 0, true); this.txtInput.addEventListener("InputStyleChanged", inputStyleChanged); this.bttnSend.addEventListener("enter", sendInput, false, 0, true); } public function setTopicAltText(_arg1:String):void{ txtTopic.toolTip = _arg1; } private function inputKeyHandler(_arg1:KeyboardEvent):void{ var _local2:int = _arg1.keyCode; switch (_local2){ case 38: previousInputHistory(); break; case 40: nextInputHistory(); break; case 9: _arg1.stopImmediatePropagation(); _arg1.preventDefault(); debug.write(((("Tab key released in input box. " + _arg1.cancelable) + " :: ") + _arg1.isDefaultPrevented())); break; case 39: tabComplete(); break; }; } private function sendAction(_arg1:String, _arg2:String):void{ dispatchEvent(new SendActionEvent(_arg1, _arg2)); } private function sendMessage(_arg1:String, _arg2:String):void{ dispatchEvent(new SendMessageEvent(_arg1, _arg2)); } public function set cBar(_arg1:HBox):void{ var _local2:Object = this._3015856cBar; if (_local2 !== _arg1){ this._3015856cBar = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cBar", _local2, _arg1)); }; } public function __txtChat_scroll(_arg1:ScrollEvent):void{ userScrolled(); } private function tabComplete():void{ var _local1:int = (this.txtInput.text.lastIndexOf(" ", this.txtInput.getPos()) + 1); var _local2:int = this.txtInput.getPos(); var _local3:String = this.txtInput.text.substring(_local1, _local2); debug.write(("Tab Complete: " + _local3)); dispatchEvent(new TabCompleteEvent(_local3, _local1, _local2)); } public function set txtChat(_arg1:RamblerTextArea):void{ var _local2:Object = this._879029784txtChat; if (_local2 !== _arg1){ this._879029784txtChat = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtChat", _local2, _arg1)); }; } private function doubleDigitFormat(_arg1:uint):String{ if (_arg1 < 10){ return (("0" + _arg1)); }; return (_arg1.toString()); } public function get txtChat():RamblerTextArea{ return (this._879029784txtChat); } public function ___ChatBox_RamblerPanel1_initialize(_arg1:FlexEvent):void{ init(); } } }//package com.eightlabs.rambler.views
Section 163
//IndeterminateProgressWindow (com.eightlabs.rambler.views.IndeterminateProgressWindow) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class IndeterminateProgressWindow extends RamblerPanel implements IBindingClient { private var _320320613cCanvas:Canvas; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _watchers:Array; private var _1367724422cancel:Button; mx_internal var _bindings:Array; private var _1131509414progressBar:ProgressBar; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function IndeterminateProgressWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:250, height:125, childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:ProgressBar, id:"progressBar", propertiesFactory:function ():Object{ return ({label:"...", percentWidth:80, height:25, indeterminate:true, labelPlacement:"top"}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"cCanvas", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"cancel"})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.layout = "absolute"; this.width = 250; this.height = 125; this.title = "..."; this.addEventListener("creationComplete", ___IndeterminateProgressWindow_RamblerPanel1_creationComplete); } private function cancelEvent(_arg1:Event):void{ this.dispatchEvent(new Event("cancel")); } private function _IndeterminateProgressWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():Number{ return (((cCanvas.width / 2) - (progressBar.width / 2))); }, function (_arg1:Number):void{ progressBar.x = _arg1; }, "progressBar.x"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("IntermediateProgressCancel"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.label = _arg1; }, "cancel.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = ((cCanvas.width / 2) - (cancel.width / 2)); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.setStyle("left", _arg1); }, "cancel.left"); result[2] = binding; return (result); } public function init():void{ addCustomEventListeners(); } public function ___IndeterminateProgressWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ init(); } override public function initialize():void{ var target:IndeterminateProgressWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _IndeterminateProgressWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get cCanvas():Canvas{ return (this._320320613cCanvas); } private function _IndeterminateProgressWindow_bindingExprs():void{ var _local1:*; _local1 = ((cCanvas.width / 2) - (progressBar.width / 2)); _local1 = TextFormatter.getText("IntermediateProgressCancel"); _local1 = ((cCanvas.width / 2) - (cancel.width / 2)); } public function set progressBar(_arg1:ProgressBar):void{ var _local2:Object = this._1131509414progressBar; if (_local2 !== _arg1){ this._1131509414progressBar = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "progressBar", _local2, _arg1)); }; } private function addCustomEventListeners():void{ this.cancel.addEventListener("click", cancelEvent); } public function set cancel(_arg1:Button):void{ var _local2:Object = this._1367724422cancel; if (_local2 !== _arg1){ this._1367724422cancel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cancel", _local2, _arg1)); }; } public function get progressBar():ProgressBar{ return (this._1131509414progressBar); } public function get cancel():Button{ return (this._1367724422cancel); } public function set cCanvas(_arg1:Canvas):void{ var _local2:Object = this._320320613cCanvas; if (_local2 !== _arg1){ this._320320613cCanvas = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cCanvas", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 164
//ListRoomsWindow (com.eightlabs.rambler.views.ListRoomsWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import mx.controls.dataGridClasses.*; import mx.collections.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ListRoomsWindow extends RamblerPanel implements IBindingClient { mx_internal var _watchers:Array; private var _1085444827refresh:Button; private var _173555687roomList:DataGrid; private var _173503994roomName:TextInput; public var _ListRoomsWindow_DataGridColumn2:DataGridColumn; public var _ListRoomsWindow_DataGridColumn3:DataGridColumn; public var loading:Boolean;// = true private var _3267882join:Button; public var _ListRoomsWindow_DataGridColumn1:DataGridColumn; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; private var listArray:Array; mx_internal var _bindings:Array; private var _415534556listCollection:ArrayCollection; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ListRoomsWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:475, height:340, childDescriptors:[new UIComponentDescriptor({type:VBox, stylesFactory:function ():void{ this.backgroundAlpha = 0; }, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:DataGrid, id:"roomList", events:{click:"__roomList_click", doubleClick:"__roomList_doubleClick"}, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, doubleClickEnabled:true, draggableColumns:false, columns:[_ListRoomsWindow_DataGridColumn1_i(), _ListRoomsWindow_DataGridColumn2_i(), _ListRoomsWindow_DataGridColumn3_i()]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"refresh", events:{click:"__refresh_click"}}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:TextInput, id:"roomName"}), new UIComponentDescriptor({type:Button, id:"join", events:{click:"__join_click"}})]}); }})]}); }})]}); }}); listArray = new Array(); _415534556listCollection = new ArrayCollection(listArray); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.showMaxButton = true; this.showResizeButton = true; this.layout = "vertical"; this.width = 475; this.height = 340; this.minHeight = 170; this.minWidth = 475; this.addEventListener("creationComplete", ___ListRoomsWindow_RamblerPanel1_creationComplete); } private function keyEvent(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 13){ joinRoomRequest(); }; } public function get roomName():TextInput{ return (this._173503994roomName); } public function ___ListRoomsWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function set roomName(_arg1:TextInput):void{ var _local2:Object = this._173503994roomName; if (_local2 !== _arg1){ this._173503994roomName = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "roomName", _local2, _arg1)); }; } override public function initialize():void{ var target:ListRoomsWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _ListRoomsWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function __join_click(_arg1:MouseEvent):void{ joinRoomRequest(); } public function get roomList():DataGrid{ return (this._173555687roomList); } public function roomSelected():void{ if (roomList.selectedItem){ roomName.text = roomList.selectedItem.channel; }; } private function setSort():void{ var _local1:Sort = new Sort(); _local1.fields = [new SortField("users", false, true, true), new SortField("channel", true)]; listCollection.sort = _local1; listCollection.refresh(); } private function _ListRoomsWindow_DataGridColumn2_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _ListRoomsWindow_DataGridColumn2 = _local1; _local1.width = 50; _local1.itemRenderer = _ListRoomsWindow_ClassFactory2_c(); BindingManager.executeBindings(this, "_ListRoomsWindow_DataGridColumn2", _ListRoomsWindow_DataGridColumn2); return (_local1); } public function refreshData():void{ if (loading){ this.stopLoading(); } else { loading = true; listCollection.removeAll(); this.title = (((((TextFormatter.getText("ListRoomsWindowTitle") + " - ") + TextFormatter.getText("ListRoomsLoadingText")) + " (") + listArray.length.toString()) + ")"); refresh.label = TextFormatter.getText("ListRoomsStopButton"); dispatchEvent(new ListRoomsRequestEvent()); }; } private function joinRoomRequest(_arg1:Event=null):void{ if (roomName.text != ""){ dispatchEvent(new JoinRoomRequestEvent(roomName.text)); } else { if (roomList.selectedItem){ dispatchEvent(new JoinRoomRequestEvent(roomList.selectedItem.channel)); }; }; } private function _ListRoomsWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("ListRoomsWindowTitle"); _local1 = listCollection; _local1 = TextFormatter.getText("ListRoomsRoomNameHeader"); _local1 = TextFormatter.getText("ListRoomsRoomCountHeader"); _local1 = TextFormatter.getText("ListRoomsRoomTopicHeader"); _local1 = TextFormatter.getText("ListRoomsStopButton"); _local1 = TextFormatter.getText("ListRoomsJoinButton"); } public function get join():Button{ return (this._3267882join); } public function set roomList(_arg1:DataGrid):void{ var _local2:Object = this._173555687roomList; if (_local2 !== _arg1){ this._173555687roomList = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "roomList", _local2, _arg1)); }; } public function listFinished():void{ loading = false; this.title = ((((((TextFormatter.getText("ListRoomsWindowTitle") + " - ") + TextFormatter.getText("ListRoomsLoadingFinishedText")) + " ") + listArray.length.toString()) + " ") + TextFormatter.getText("ListRoomsRoomsLoadedText")); refresh.label = TextFormatter.getText("ListRoomsRefreshButton"); listCollection.refresh(); } private function sizeList():void{ var _local1:int; var _local2:int; _local1 = this.parent.height; _local2 = this.parent.width; this.width = (_local2 - 50); this.height = (_local1 - 50); } private function creationCompleteEvent():void{ setSort(); this.addEventListener("keyUp", keyEvent); } public function __refresh_click(_arg1:MouseEvent):void{ refreshData(); } public function set refresh(_arg1:Button):void{ var _local2:Object = this._1085444827refresh; if (_local2 !== _arg1){ this._1085444827refresh = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "refresh", _local2, _arg1)); }; } private function set listCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._415534556listCollection; if (_local2 !== _arg1){ this._415534556listCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "listCollection", _local2, _arg1)); }; } private function _ListRoomsWindow_ClassFactory2_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = ListRoomsWindow_inlineComponent2; _local1.properties = {outerDocument:this}; return (_local1); } public function __roomList_click(_arg1:MouseEvent):void{ roomSelected(); } public function set join(_arg1:Button):void{ var _local2:Object = this._3267882join; if (_local2 !== _arg1){ this._3267882join = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "join", _local2, _arg1)); }; } public function stopLoading():void{ loading = false; this.title = ((((((TextFormatter.getText("ListRoomsWindowTitle") + " - ") + TextFormatter.getText("ListRoomsLoadingStoppedText")) + " ") + listArray.length.toString()) + " ") + TextFormatter.getText("ListRoomsRoomsLoadedText")); refresh.label = TextFormatter.getText("ListRoomsRefreshButton"); } private function get listCollection():ArrayCollection{ return (this._415534556listCollection); } private function _ListRoomsWindow_DataGridColumn1_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _ListRoomsWindow_DataGridColumn1 = _local1; _local1.dataField = "channel"; _local1.width = 120; _local1.itemRenderer = _ListRoomsWindow_ClassFactory1_c(); BindingManager.executeBindings(this, "_ListRoomsWindow_DataGridColumn1", _ListRoomsWindow_DataGridColumn1); return (_local1); } public function get refresh():Button{ return (this._1085444827refresh); } private function _ListRoomsWindow_DataGridColumn3_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _ListRoomsWindow_DataGridColumn3 = _local1; _local1.itemRenderer = _ListRoomsWindow_ClassFactory3_c(); BindingManager.executeBindings(this, "_ListRoomsWindow_DataGridColumn3", _ListRoomsWindow_DataGridColumn3); return (_local1); } public function addData(_arg1:String="", _arg2:int=0, _arg3:String=""):void{ if (loading){ listCollection.addItem({channel:_arg1, users:_arg2, topic:_arg3}); this.title = (((((TextFormatter.getText("ListRoomsWindowTitle") + " - ") + TextFormatter.getText("ListRoomsLoadingText")) + " (") + listArray.length.toString()) + ")"); }; } private function _ListRoomsWindow_ClassFactory1_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = ListRoomsWindow_inlineComponent1; _local1.properties = {outerDocument:this}; return (_local1); } private function _ListRoomsWindow_ClassFactory3_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = ListRoomsWindow_inlineComponent3; _local1.properties = {outerDocument:this}; return (_local1); } public function __roomList_doubleClick(_arg1:MouseEvent):void{ joinRoomRequest(); } private function _ListRoomsWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():Object{ return (listCollection); }, function (_arg1:Object):void{ roomList.dataProvider = _arg1; }, "roomList.dataProvider"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsRoomNameHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ListRoomsWindow_DataGridColumn1.headerText = _arg1; }, "_ListRoomsWindow_DataGridColumn1.headerText"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsRoomCountHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ListRoomsWindow_DataGridColumn2.headerText = _arg1; }, "_ListRoomsWindow_DataGridColumn2.headerText"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsRoomTopicHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ListRoomsWindow_DataGridColumn3.headerText = _arg1; }, "_ListRoomsWindow_DataGridColumn3.headerText"); result[4] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsStopButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ refresh.label = _arg1; }, "refresh.label"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsJoinButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ join.label = _arg1; }, "join.label"); result[6] = binding; return (result); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ ListRoomsWindow._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 165
//ListRoomsWindow_inlineComponent1 (com.eightlabs.rambler.views.ListRoomsWindow_inlineComponent1) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ListRoomsWindow_inlineComponent1 extends Label implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindings:Array; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; private var _88844982outerDocument:ListRoomsWindow; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ListRoomsWindow_inlineComponent1(){ _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); this.selectable = false; } public function set outerDocument(_arg1:ListRoomsWindow):void{ var _local2:Object = this._88844982outerDocument; if (_local2 !== _arg1){ this._88844982outerDocument = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "outerDocument", _local2, _arg1)); }; } private function _ListRoomsWindow_inlineComponent1_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = data.channel; var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.text = _arg1; }, "this.text"); result[0] = binding; return (result); } override public function initialize():void{ var target:ListRoomsWindow_inlineComponent1; var watcherSetupUtilClass:Object; var bindings:Array = _ListRoomsWindow_inlineComponent1_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get outerDocument():ListRoomsWindow{ return (this._88844982outerDocument); } private function _ListRoomsWindow_inlineComponent1_bindingExprs():void{ var _local1:*; _local1 = data.channel; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ ListRoomsWindow_inlineComponent1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 166
//ListRoomsWindow_inlineComponent2 (com.eightlabs.rambler.views.ListRoomsWindow_inlineComponent2) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ListRoomsWindow_inlineComponent2 extends Label implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindings:Array; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; private var _88844982outerDocument:ListRoomsWindow; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ListRoomsWindow_inlineComponent2(){ _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); this.selectable = false; } public function set outerDocument(_arg1:ListRoomsWindow):void{ var _local2:Object = this._88844982outerDocument; if (_local2 !== _arg1){ this._88844982outerDocument = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "outerDocument", _local2, _arg1)); }; } public function get outerDocument():ListRoomsWindow{ return (this._88844982outerDocument); } private function _ListRoomsWindow_inlineComponent2_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = data.users; var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.text = _arg1; }, "this.text"); result[0] = binding; return (result); } override public function initialize():void{ var target:ListRoomsWindow_inlineComponent2; var watcherSetupUtilClass:Object; var bindings:Array = _ListRoomsWindow_inlineComponent2_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function _ListRoomsWindow_inlineComponent2_bindingExprs():void{ var _local1:*; _local1 = data.users; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ ListRoomsWindow_inlineComponent2._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 167
//ListRoomsWindow_inlineComponent3 (com.eightlabs.rambler.views.ListRoomsWindow_inlineComponent3) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ListRoomsWindow_inlineComponent3 extends Label implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindings:Array; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; private var _88844982outerDocument:ListRoomsWindow; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ListRoomsWindow_inlineComponent3(){ _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); this.selectable = false; } private function _ListRoomsWindow_inlineComponent3_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = this.text; var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.toolTip = _arg1; }, "this.toolTip"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = data.topic; var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.htmlText = _arg1; }, "this.htmlText"); result[1] = binding; return (result); } public function set outerDocument(_arg1:ListRoomsWindow):void{ var _local2:Object = this._88844982outerDocument; if (_local2 !== _arg1){ this._88844982outerDocument = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "outerDocument", _local2, _arg1)); }; } private function _ListRoomsWindow_inlineComponent3_bindingExprs():void{ var _local1:*; _local1 = this.text; _local1 = data.topic; } override public function initialize():void{ var target:ListRoomsWindow_inlineComponent3; var watcherSetupUtilClass:Object; var bindings:Array = _ListRoomsWindow_inlineComponent3_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get outerDocument():ListRoomsWindow{ return (this._88844982outerDocument); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ ListRoomsWindow_inlineComponent3._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 168
//LoginWindow (com.eightlabs.rambler.views.LoginWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class LoginWindow extends RamblerPanel implements IBindingClient { private var _878701069txtNick:TextInput; mx_internal var _bindingsByDestination:Object; private var _690449065advertBox:AdBox; mx_internal var _bindingsBeginWithWord:Object; private var _951351530connect:Button; private var _823377060txtNickPass:TextInput; public var _LoginWindow_FormItem1:FormItem; public var _LoginWindow_FormItem2:FormItem; mx_internal var _watchers:Array; private var _878575765txtRoom:TextInput; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private var _2092173590formRoomName:FormItem; private static var _watcherSetupUtil:IWatcherSetupUtil; public function LoginWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:315, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_LoginWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, required:true, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"txtNick", propertiesFactory:function ():Object{ return ({text:"Guest"}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_LoginWindow_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, visible:true, required:false, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"txtNickPass", propertiesFactory:function ():Object{ return ({text:"", displayAsPassword:true, visible:true}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"formRoomName", propertiesFactory:function ():Object{ return ({percentWidth:100, required:false, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"txtRoom", propertiesFactory:function ():Object{ return ({text:"lobby"}); }})]}); }}), new UIComponentDescriptor({type:VBox, stylesFactory:function ():void{ this.horizontalAlign = "center"; }, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"connect"})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, stylesFactory:function ():void{ this.horizontalAlign = "center"; this.verticalAlign = "top"; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:AdBox, id:"advertBox", propertiesFactory:function ():Object{ return ({percentWidth:100, includeInLayout:false}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.verticalAlign = "middle"; }; this.layout = "absolute"; this.width = 315; this.addEventListener("creationComplete", ___LoginWindow_RamblerPanel1_creationComplete); } public function set formRoomName(_arg1:FormItem):void{ var _local2:Object = this._2092173590formRoomName; if (_local2 !== _arg1){ this._2092173590formRoomName = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "formRoomName", _local2, _arg1)); }; } public function creationCompleteEvent():void{ addCustomEventListeners(); } public function set txtNick(_arg1:TextInput):void{ var _local2:Object = this._878701069txtNick; if (_local2 !== _arg1){ this._878701069txtNick = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtNick", _local2, _arg1)); }; } public function set txtNickPass(_arg1:TextInput):void{ var _local2:Object = this._823377060txtNickPass; if (_local2 !== _arg1){ this._823377060txtNickPass = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtNickPass", _local2, _arg1)); }; } override public function initialize():void{ var target:LoginWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _LoginWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function addCustomEventListeners():void{ this.connect.addEventListener("click", loginEvent); this.txtNick.addEventListener("enter", loginEvent); this.txtNickPass.addEventListener("enter", loginEvent); this.txtRoom.addEventListener("enter", loginEvent); } public function set connect(_arg1:Button):void{ var _local2:Object = this._951351530connect; if (_local2 !== _arg1){ this._951351530connect = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "connect", _local2, _arg1)); }; } private function _LoginWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("LoginWindowTitle"); _local1 = TextFormatter.getText("LoginWindowNick"); _local1 = TextFormatter.getText("LoginWindowPassword"); _local1 = TextFormatter.getText("LoginWindowRoom"); _local1 = TextFormatter.getText("LoginWindowConnect"); } public function get txtNick():TextInput{ return (this._878701069txtNick); } public function get connect():Button{ return (this._951351530connect); } public function get txtNickPass():TextInput{ return (this._823377060txtNickPass); } public function set txtRoom(_arg1:TextInput):void{ var _local2:Object = this._878575765txtRoom; if (_local2 !== _arg1){ this._878575765txtRoom = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtRoom", _local2, _arg1)); }; } public function get txtRoom():TextInput{ return (this._878575765txtRoom); } public function get advertBox():AdBox{ return (this._690449065advertBox); } public function get formRoomName():FormItem{ return (this._2092173590formRoomName); } private function loginEvent(_arg1:Event):void{ if ((((this.txtNick.text == "")) || ((this.txtNick.text.toLowerCase() == "guest")))){ this.txtNick.text = ("Guest" + Math.floor((Math.random() * 9999))); }; this.dispatchEvent(new LoginEvent(this, this.txtNick.text, this.txtNickPass.text, this.txtRoom.text)); } public function set advertBox(_arg1:AdBox):void{ var _local2:Object = this._690449065advertBox; if (_local2 !== _arg1){ this._690449065advertBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "advertBox", _local2, _arg1)); }; } private function _LoginWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("LoginWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("LoginWindowNick"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _LoginWindow_FormItem1.label = _arg1; }, "_LoginWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("LoginWindowPassword"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _LoginWindow_FormItem2.label = _arg1; }, "_LoginWindow_FormItem2.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("LoginWindowRoom"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ formRoomName.label = _arg1; }, "formRoomName.label"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("LoginWindowConnect"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ connect.label = _arg1; }, "connect.label"); result[4] = binding; return (result); } public function ___LoginWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ LoginWindow._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 169
//MotdWindow (com.eightlabs.rambler.views.MotdWindow) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class MotdWindow extends RamblerPanel implements IBindingClient { private var _94756344close:Button; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _watchers:Array; mx_internal var _bindings:Array; private var _878756350txtMOTD:TextArea; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function MotdWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:300, childDescriptors:[new UIComponentDescriptor({type:TextArea, id:"txtMOTD", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, editable:false, horizontalScrollPolicy:"off", verticalScrollPolicy:"on"}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"close", events:{click:"__close_click"}, stylesFactory:function ():void{ this.right = "0"; this.top = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.showMaxButton = true; this.showResizeButton = true; this.layout = "vertical"; this.width = 400; this.height = 300; this.minWidth = 200; this.minHeight = 150; this.addEventListener("creationComplete", ___MotdWindow_RamblerPanel1_creationComplete); } public function creationCompleteEvent():void{ txtMOTD.setFocus(); this.addEventListener("keyUp", keyEvent); } public function set txtMOTD(_arg1:TextArea):void{ var _local2:Object = this._878756350txtMOTD; if (_local2 !== _arg1){ this._878756350txtMOTD = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtMOTD", _local2, _arg1)); }; } public function get txtMOTD():TextArea{ return (this._878756350txtMOTD); } override public function initialize():void{ var target:MotdWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _MotdWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function ___MotdWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function __close_click(_arg1:MouseEvent):void{ dispatchEvent(new Event("close")); } public function set close(_arg1:Button):void{ var _local2:Object = this._94756344close; if (_local2 !== _arg1){ this._94756344close = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "close", _local2, _arg1)); }; } private function _MotdWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("MotdWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("MotdCloseButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ close.label = _arg1; }, "close.label"); result[1] = binding; return (result); } private function _MotdWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("MotdWindowTitle"); _local1 = TextFormatter.getText("MotdCloseButton"); } public function get close():Button{ return (this._94756344close); } public function keyEvent(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 13){ dispatchEvent(new Event("close")); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 170
//PrivateCanvas (com.eightlabs.rambler.views.PrivateCanvas) package com.eightlabs.rambler.views { import mx.events.*; import mx.core.*; import mx.containers.*; public class PrivateCanvas extends Canvas { private var _documentDescriptor_:UIComponentDescriptor; public function PrivateCanvas(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({width:250}); }}); super(); mx_internal::_document = this; this.width = 250; this.percentHeight = 100; this.addEventListener("creationComplete", ___PrivateCanvas_Canvas1_creationComplete); } override public function initialize():void{ mx_internal::setDocumentDescriptor(_documentDescriptor_); super.initialize(); } public function ___PrivateCanvas_Canvas1_creationComplete(_arg1:FlexEvent):void{ init(); } public function init():void{ addCustomEventListeners(); } private function addCustomEventListeners():void{ } } }//package com.eightlabs.rambler.views
Section 171
//PrivateHandle (com.eightlabs.rambler.views.PrivateHandle) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import flash.utils.*; public class PrivateHandle extends EventDispatcher { private var blinkTimer:Timer; private var varRecipientName:String; private var varCanvas:PrivateCanvas; private var _1106654332ledoff:Class; private var varChatBox:ChatBox; private var _102848810ledon:Class; public function PrivateHandle(_arg1:String, _arg2:Object){ varChatBox = new ChatBox(); varCanvas = new PrivateCanvas(); _1106654332ledoff = PrivateHandle_ledoff; _102848810ledon = PrivateHandle_ledon; super(); this.varRecipientName = _arg1; this.varChatBox.initialize(); this.varCanvas.initialize(); this.varChatBox.title = _arg1; this.varCanvas.label = _arg1; this.varChatBox.stylesHash = _arg2; addPrivateListeners(); } private function blinkTimerHandler(_arg1:TimerEvent):void{ if (this.varCanvas.icon == ledon){ this.varCanvas.icon = ledoff; } else { this.varCanvas.icon = ledon; }; } public function get recipientName():String{ return (this.varRecipientName); } private function dispatchSendPrivateMessage(_arg1:SendMessageEvent):void{ dispatchEvent(new SendPrivateMessageEvent(this.varRecipientName, _arg1.message, _arg1.rawMessage)); } public function set recipientName(_arg1:String):void{ this.varRecipientName = _arg1; } private function dispatchSendPrivateCommand(_arg1:SendCommandEvent):void{ dispatchEvent(new SendPrivateCommandEvent(this.varRecipientName, _arg1.command, _arg1.arguments)); } private function get ledoff():Class{ return (this._1106654332ledoff); } public function get blinking():Boolean{ if (this.blinkTimer == null){ return (false); }; return (true); } private function dispatchPrivateClose(_arg1:Event):void{ dispatchEvent(new PrivateCloseEvent(this.varRecipientName)); } public function get chatBox():ChatBox{ return (this.varChatBox); } private function set ledon(_arg1:Class):void{ var _local2:Object = this._102848810ledon; if (_local2 !== _arg1){ this._102848810ledon = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ledon", _local2, _arg1)); }; } private function dispatchPrivateSwitch(_arg1:Event):void{ dispatchEvent(new PrivateSwitchEvent(this.varRecipientName)); } private function dispatchSendPrivateAction(_arg1:SendActionEvent):void{ dispatchEvent(new SendPrivateActionEvent(this.varRecipientName, _arg1.message, _arg1.rawMessage)); } public function startBlink():void{ if (!blinking){ this.varCanvas.icon = ledon; blinkTimer = new Timer(750, 0); blinkTimer.addEventListener("timer", blinkTimerHandler); blinkTimer.start(); }; } public function stopBlink():void{ if (blinking){ blinkTimer.stop(); blinkTimer = null; this.varCanvas.icon = null; }; } private function set ledoff(_arg1:Class):void{ var _local2:Object = this._1106654332ledoff; if (_local2 !== _arg1){ this._1106654332ledoff = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ledoff", _local2, _arg1)); }; } public function get canvas():PrivateCanvas{ return (this.varCanvas); } private function get ledon():Class{ return (this._102848810ledon); } private function inputStyleChanged(_arg1:InputStyleChanged):void{ dispatchEvent(_arg1); } private function addPrivateListeners():void{ this.varCanvas.addEventListener("show", dispatchPrivateSwitch); this.varChatBox.addEventListener("close", dispatchPrivateClose); this.varChatBox.addEventListener("SendMessageEvent", dispatchSendPrivateMessage); this.varChatBox.addEventListener("SendActionEvent", dispatchSendPrivateAction); this.varChatBox.addEventListener("SendCommandEvent", dispatchSendPrivateCommand); this.varChatBox.addEventListener("InputStyleChanged", inputStyleChanged); } } }//package com.eightlabs.rambler.views
Section 172
//PrivateHandle_ledoff (com.eightlabs.rambler.views.PrivateHandle_ledoff) package com.eightlabs.rambler.views { import mx.core.*; public class PrivateHandle_ledoff extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 173
//PrivateHandle_ledon (com.eightlabs.rambler.views.PrivateHandle_ledon) package com.eightlabs.rambler.views { import mx.core.*; public class PrivateHandle_ledon extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 174
//ProfileWindow (com.eightlabs.rambler.views.ProfileWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import mx.controls.dataGridClasses.*; import mx.collections.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class ProfileWindow extends RamblerPanel implements IBindingClient { mx_internal var _watchers:Array; private var _1600481943signOnTime:TextInput; private var _173555687roomList:DataGrid; private var _1776889930roomsCollection:ArrayCollection; public var _ProfileWindow_Button1:Button; private var _55377089idleTime:TextInput; private var roomsArray:Array; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _bindingsByDestination:Object; public var _ProfileWindow_FormItem1:FormItem; public var _ProfileWindow_FormItem2:FormItem; public var _ProfileWindow_FormItem3:FormItem; public var _ProfileWindow_FormItem4:FormItem; public var _ProfileWindow_FormItem5:FormItem; public var _ProfileWindow_FormItem7:FormItem; private var _198787681profileUsername:TextInput; public var _ProfileWindow_FormItem6:FormItem; public var _ProfileWindow_Label1:Label; private var _793412078profileRealName:TextInput; public var _ProfileWindow_DataGridColumn2:DataGridColumn; private var _177338097profileHost:TextInput; mx_internal var _bindings:Array; private var _1828336768awayStatus:TextInput; private var _177503188profileName:TextInput; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function ProfileWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:400, creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"profileName", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"profileUsername", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem3", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"profileHost", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem4", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"profileRealName", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem5", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"signOnTime", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem6", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"idleTime", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_ProfileWindow_FormItem7", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"awayStatus", stylesFactory:function ():void{ this.borderStyle = "none"; }, propertiesFactory:function ():Object{ return ({height:20, editable:false, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Label, id:"_ProfileWindow_Label1"}), new UIComponentDescriptor({type:DataGrid, id:"roomList", events:{doubleClick:"__roomList_doubleClick"}, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, sortableColumns:true, resizableColumns:false, allowMultipleSelection:false, draggableColumns:false, doubleClickEnabled:true, columns:[_ProfileWindow_DataGridColumn1_c(), _ProfileWindow_DataGridColumn2_i()]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:Button, id:"_ProfileWindow_Button1", events:{click:"___ProfileWindow_Button1_click"}})]}); }})]}); }}); roomsArray = new Array(); _1776889930roomsCollection = new ArrayCollection(roomsArray); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.width = 400; this.height = 400; this.creationPolicy = "all"; this.showCloseButton = true; this.addEventListener("creationComplete", ___ProfileWindow_RamblerPanel1_creationComplete); } public function get awayStatus():TextInput{ return (this._1828336768awayStatus); } public function get signOnTime():TextInput{ return (this._1600481943signOnTime); } public function set profileHost(_arg1:TextInput):void{ var _local2:Object = this._177338097profileHost; if (_local2 !== _arg1){ this._177338097profileHost = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "profileHost", _local2, _arg1)); }; } public function set awayStatus(_arg1:TextInput):void{ var _local2:Object = this._1828336768awayStatus; if (_local2 !== _arg1){ this._1828336768awayStatus = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "awayStatus", _local2, _arg1)); }; } private function closeEvent(_arg1:Event=null):void{ dispatchEvent(new CloseEvent("close")); } private function init():void{ initData(); } private function _ProfileWindow_DataGridColumn2_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _ProfileWindow_DataGridColumn2 = _local1; _local1.dataField = "room"; BindingManager.executeBindings(this, "_ProfileWindow_DataGridColumn2", _ProfileWindow_DataGridColumn2); return (_local1); } public function get profileRealName():TextInput{ return (this._793412078profileRealName); } public function get profileHost():TextInput{ return (this._177338097profileHost); } override public function initialize():void{ var target:ProfileWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _ProfileWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get roomList():DataGrid{ return (this._173555687roomList); } public function set idleTime(_arg1:TextInput):void{ var _local2:Object = this._55377089idleTime; if (_local2 !== _arg1){ this._55377089idleTime = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "idleTime", _local2, _arg1)); }; } public function addRoom(_arg1:String, _arg2:String=""):void{ roomsCollection.addItem({op:_arg2, room:_arg1}); } public function ___ProfileWindow_Button1_click(_arg1:MouseEvent):void{ closeEvent(); } public function set profileRealName(_arg1:TextInput):void{ var _local2:Object = this._793412078profileRealName; if (_local2 !== _arg1){ this._793412078profileRealName = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "profileRealName", _local2, _arg1)); }; } public function get profileUsername():TextInput{ return (this._198787681profileUsername); } public function set profileName(_arg1:TextInput):void{ var _local2:Object = this._177503188profileName; if (_local2 !== _arg1){ this._177503188profileName = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "profileName", _local2, _arg1)); }; } private function joinRoomRequest(_arg1:Event=null):void{ if (roomList.selectedItem){ dispatchEvent(new JoinRoomRequestEvent(roomList.selectedItem.room)); }; } private function get roomsCollection():ArrayCollection{ return (this._1776889930roomsCollection); } private function _ProfileWindow_DataGridColumn1_c():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _local1.headerText = ""; _local1.dataField = "op"; _local1.width = 25; return (_local1); } public function set profileUsername(_arg1:TextInput):void{ var _local2:Object = this._198787681profileUsername; if (_local2 !== _arg1){ this._198787681profileUsername = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "profileUsername", _local2, _arg1)); }; } public function get idleTime():TextInput{ return (this._55377089idleTime); } public function get profileName():TextInput{ return (this._177503188profileName); } private function initData():void{ var _local1:Sort = new Sort(); _local1.fields = [new SortField("room", true)]; roomsCollection.sort = _local1; roomsCollection.refresh(); } public function set roomList(_arg1:DataGrid):void{ var _local2:Object = this._173555687roomList; if (_local2 !== _arg1){ this._173555687roomList = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "roomList", _local2, _arg1)); }; } private function _ProfileWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("ProfileWindowRegName"); _local1 = TextFormatter.getText("ProfileWindowUserid"); _local1 = TextFormatter.getText("ProfileWindowHostname"); _local1 = TextFormatter.getText("ProfileWindowRealName"); _local1 = TextFormatter.getText("ProfileWindowSignedon"); _local1 = TextFormatter.getText("ProfileWindowIdle"); _local1 = TextFormatter.getText("ProfileWindowAway"); _local1 = TextFormatter.getText("ProfileWindowRooms"); _local1 = roomsCollection; _local1 = TextFormatter.getText("ProfileWindowRoomsHeader"); _local1 = TextFormatter.getText("ProfileWindowCloseButton"); } private function set roomsCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._1776889930roomsCollection; if (_local2 !== _arg1){ this._1776889930roomsCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "roomsCollection", _local2, _arg1)); }; } public function __roomList_doubleClick(_arg1:MouseEvent):void{ joinRoomRequest(); } private function _ProfileWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowRegName"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem1.label = _arg1; }, "_ProfileWindow_FormItem1.label"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowUserid"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem2.label = _arg1; }, "_ProfileWindow_FormItem2.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowHostname"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem3.label = _arg1; }, "_ProfileWindow_FormItem3.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowRealName"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem4.label = _arg1; }, "_ProfileWindow_FormItem4.label"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowSignedon"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem5.label = _arg1; }, "_ProfileWindow_FormItem5.label"); result[4] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowIdle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem6.label = _arg1; }, "_ProfileWindow_FormItem6.label"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowAway"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_FormItem7.label = _arg1; }, "_ProfileWindow_FormItem7.label"); result[6] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowRooms"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_Label1.text = _arg1; }, "_ProfileWindow_Label1.text"); result[7] = binding; binding = new Binding(this, function ():Object{ return (roomsCollection); }, function (_arg1:Object):void{ roomList.dataProvider = _arg1; }, "roomList.dataProvider"); result[8] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowRoomsHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_DataGridColumn2.headerText = _arg1; }, "_ProfileWindow_DataGridColumn2.headerText"); result[9] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowCloseButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _ProfileWindow_Button1.label = _arg1; }, "_ProfileWindow_Button1.label"); result[10] = binding; return (result); } public function ___ProfileWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ init(); } public function set signOnTime(_arg1:TextInput):void{ var _local2:Object = this._1600481943signOnTime; if (_local2 !== _arg1){ this._1600481943signOnTime = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "signOnTime", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 175
//RamblerLabel (com.eightlabs.rambler.views.RamblerLabel) package com.eightlabs.rambler.views { import flash.events.*; import mx.controls.*; import flash.text.*; import com.eightlabs.utilities.text.*; public class RamblerLabel extends Label { public function RamblerLabel():void{ this.addEventListener("initialize", init); } private function init(_arg1:Event):void{ TextFormatter.styleComponent(this); } public function set styleSheet(_arg1:StyleSheet):void{ this.textField.styleSheet = _arg1; } public function get styleSheet():StyleSheet{ return (this.textField.styleSheet); } } }//package com.eightlabs.rambler.views
Section 176
//RamblerPanel (com.eightlabs.rambler.views.RamblerPanel) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.controls.*; import mx.containers.*; import flash.geom.*; public class RamblerPanel extends Panel { private var resizeButton:Button; private var maximized:Boolean;// = false private var minButton:Image; private var maxButton:Image; private var oH:Number; private var varShowMinButton:Boolean;// = false private var oW:Number; private var oX:Number; private var closeButton:Image; private var oY:Number; private var varShowMaxButton:Boolean;// = false private var oPoint:Point; private var varShowCloseButton:Boolean;// = false private var varShowResizeButton:Boolean;// = false private static var decreaseButtonIconWhite:Class = RamblerPanel_decreaseButtonIconWhite; private static var increaseButtonIconWhite:Class = RamblerPanel_increaseButtonIconWhite; private static var closeButtonIconWhite:Class = RamblerPanel_closeButtonIconWhite; private static var increaseButtonIconBlack:Class = RamblerPanel_increaseButtonIconBlack; private static var decreaseButtonIconBlack:Class = RamblerPanel_decreaseButtonIconBlack; private static var closeButtonIconBlack:Class = RamblerPanel_closeButtonIconBlack; private static var minButtonIcon:Class = RamblerPanel_minButtonIcon; private static var blankButtonIcon:Class = RamblerPanel_blankButtonIcon; public function RamblerPanel():void{ maxButton = new Image(); minButton = new Image(); closeButton = new Image(); resizeButton = new Button(); oPoint = new Point(); super(); } private function highlightButton(_arg1:Event):void{ if (_arg1.type == "mouseOut"){ this.closeButton.source = blankButtonIcon; this.maxButton.source = blankButtonIcon; } else { if (_arg1.type == "mouseOver"){ this.closeButton.source = closeButtonIconBlack; if (maximized){ this.maxButton.source = decreaseButtonIconBlack; } else { this.maxButton.source = increaseButtonIconBlack; }; }; }; if (_arg1.currentTarget == this.closeButton){ if (_arg1.type == "mouseOver"){ this.closeButton.source = closeButtonIconWhite; } else { if (_arg1.type == "mouseDown"){ this.closeButton.source = closeButtonIconBlack; }; }; }; if (_arg1.currentTarget == this.maxButton){ if (_arg1.type == "mouseOver"){ if (maximized){ this.maxButton.source = decreaseButtonIconWhite; } else { this.maxButton.source = increaseButtonIconWhite; }; } else { if (_arg1.type == "mouseDown"){ if (maximized){ this.maxButton.source = decreaseButtonIconBlack; } else { this.maxButton.source = increaseButtonIconBlack; }; }; }; }; } public function restore():void{ this.x = this.oX; this.y = this.oY; this.width = this.oW; this.height = this.oH; this.maximized = false; this.positionChildren(); this.showResizeButton = true; } private function showButton(_arg1:UIComponent):void{ if (((((_arg1) && ((_arg1.parent == null)))) && (this.titleBar))){ this.titleBar.addChild(_arg1); }; } private function hideButton(_arg1:UIComponent):void{ if (((((_arg1) && ((_arg1.parent == this.titleBar)))) && (!((_arg1.parent == null))))){ _arg1.parent.removeChild(_arg1); }; } public function set showCloseButton(_arg1:Boolean):void{ this.varShowCloseButton = _arg1; if (_arg1){ showButton(this.closeButton); } else { hideButton(this.closeButton); }; } public function get showCloseButton():Boolean{ return (this.varShowCloseButton); } private function addListeners():void{ this.closeButton.addEventListener(MouseEvent.CLICK, closeClickHandler); this.maxButton.addEventListener(MouseEvent.CLICK, maxClickHandler); this.resizeButton.addEventListener(MouseEvent.MOUSE_DOWN, resizeDownHandler); this.addEventListener(ResizeEvent.RESIZE, repositionChildren); } override protected function createChildren():void{ super.createChildren(); this.rawChildren.addChild(resizeButton); if (this.varShowMaxButton){ this.titleBar.addChild(this.maxButton); }; if (this.varShowCloseButton){ this.titleBar.addChild(this.closeButton); }; if (this.varShowMinButton){ this.titleBar.addChild(this.minButton); }; this.resizeButton.width = 10; this.resizeButton.height = 10; this.showResizeButton = this.varShowResizeButton; this.maxButton.source = blankButtonIcon; this.maxButton.width = 15; this.maxButton.height = 15; this.minButton.width = 15; this.minButton.height = 15; this.closeButton.source = blankButtonIcon; this.closeButton.width = 15; this.closeButton.height = 15; this.closeButton.addEventListener("mouseOver", highlightButton); this.closeButton.addEventListener("mouseOut", highlightButton); this.closeButton.addEventListener("mouseDown", highlightButton); this.maxButton.addEventListener("mouseOver", highlightButton); this.maxButton.addEventListener("mouseOut", highlightButton); this.maxButton.addEventListener("mouseDown", highlightButton); this.positionChildren(); this.addListeners(); this.remPosition(); } private function maxClickHandler(_arg1:Event):void{ if (this.maximized){ this.restore(); Application.application.parent.removeEventListener(ResizeEvent.RESIZE, maximize); } else { this.maximize(); Application.application.parent.addEventListener(ResizeEvent.RESIZE, maximize); }; } public function get showMinButton():Boolean{ return (this.varShowMinButton); } public function get showResizeButton():Boolean{ return (this.varShowResizeButton); } private function minClickHandler(_arg1:Event):void{ dispatchEvent(new RamblerMinimizeEvent()); } private function closeClickHandler(_arg1:Event):void{ dispatchEvent(new CloseEvent(CloseEvent.CLOSE)); } public function set showResizeButton(_arg1:Boolean):void{ this.varShowResizeButton = _arg1; this.resizeButton.visible = _arg1; } public function set showMinButton(_arg1:Boolean):void{ this.varShowMinButton = _arg1; if (_arg1){ showButton(this.minButton); } else { hideButton(this.minButton); }; } public function maximize(_arg1:Event=null):void{ if (!maximized){ this.oX = this.x; this.oY = this.y; this.oW = this.width; this.oH = this.height; }; this.x = 0; this.y = 0; this.width = screen.width; this.height = screen.height; this.maximized = true; this.positionChildren(); this.showResizeButton = false; } private function positionChildren():void{ var _local1 = 8; this.closeButton.x = ((this.unscaledWidth - this.closeButton.width) - _local1); this.maxButton.x = (((this.width - this.maxButton.width) - this.closeButton.width) - _local1); this.minButton.x = ((((this.width - this.minButton.width) - this.maxButton.width) - this.closeButton.width) - _local1); this.minButton.y = _local1; this.maxButton.y = _local1; this.closeButton.y = _local1; this.resizeButton.y = ((this.unscaledHeight - resizeButton.height) - 1); this.resizeButton.x = ((this.unscaledWidth - resizeButton.width) - 1); } private function resizeUpHandler(_arg1:Event):void{ Application.application.parent.removeEventListener(MouseEvent.MOUSE_MOVE, resizeMoveHandler); Application.application.parent.removeEventListener(MouseEvent.MOUSE_UP, resizeUpHandler); this.remPosition(); } private function remPosition():void{ this.oX = this.x; this.oY = this.y; this.oW = this.width; this.oH = this.height; } private function resizeMoveHandler(_arg1:Event):void{ this.stopDragging(); var _local2:Number = (Application.application.parent.mouseX - this.oPoint.x); var _local3:Number = (Application.application.parent.mouseY - this.oPoint.y); if ((this.oW + _local2) > this.minWidth){ this.width = (this.oW + _local2); }; if ((this.oH + _local3) > this.minHeight){ this.height = (this.oH + _local3); }; this.positionChildren(); } public function set showMaxButton(_arg1:Boolean):void{ this.varShowMaxButton = _arg1; if (_arg1){ showButton(this.maxButton); } else { hideButton(this.maxButton); }; } private function resizeDownHandler(_arg1:Event):void{ Application.application.parent.addEventListener(MouseEvent.MOUSE_MOVE, resizeMoveHandler); Application.application.parent.addEventListener(MouseEvent.MOUSE_UP, resizeUpHandler); this.oPoint.x = mouseX; this.oPoint.y = mouseY; this.oPoint = this.localToGlobal(oPoint); } private function repositionChildren(_arg1:Event):void{ this.positionChildren(); } public function get showMaxButton():Boolean{ return (this.varShowMaxButton); } } }//package com.eightlabs.rambler.views
Section 177
//RamblerPanel_blankButtonIcon (com.eightlabs.rambler.views.RamblerPanel_blankButtonIcon) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_blankButtonIcon extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 178
//RamblerPanel_closeButtonIconBlack (com.eightlabs.rambler.views.RamblerPanel_closeButtonIconBlack) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_closeButtonIconBlack extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 179
//RamblerPanel_closeButtonIconWhite (com.eightlabs.rambler.views.RamblerPanel_closeButtonIconWhite) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_closeButtonIconWhite extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 180
//RamblerPanel_decreaseButtonIconBlack (com.eightlabs.rambler.views.RamblerPanel_decreaseButtonIconBlack) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_decreaseButtonIconBlack extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 181
//RamblerPanel_decreaseButtonIconWhite (com.eightlabs.rambler.views.RamblerPanel_decreaseButtonIconWhite) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_decreaseButtonIconWhite extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 182
//RamblerPanel_increaseButtonIconBlack (com.eightlabs.rambler.views.RamblerPanel_increaseButtonIconBlack) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_increaseButtonIconBlack extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 183
//RamblerPanel_increaseButtonIconWhite (com.eightlabs.rambler.views.RamblerPanel_increaseButtonIconWhite) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_increaseButtonIconWhite extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 184
//RamblerPanel_minButtonIcon (com.eightlabs.rambler.views.RamblerPanel_minButtonIcon) package com.eightlabs.rambler.views { import mx.core.*; public class RamblerPanel_minButtonIcon extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 185
//RamblerTextArea (com.eightlabs.rambler.views.RamblerTextArea) package com.eightlabs.rambler.views { import flash.events.*; import mx.controls.*; import flash.text.*; public class RamblerTextArea extends TextArea { public function RamblerTextArea():void{ this.addEventListener("initialize", init); } private function init(_arg1:Event):void{ this.textField.focusRect = false; } override public function styleChanged(_arg1:String):void{ super.styleChanged(_arg1); } override public function invalidateDisplayList():void{ super.invalidateDisplayList(); } override public function setStyle(_arg1:String, _arg2):void{ super.setStyle(_arg1, _arg2); } override public function set styleSheet(_arg1:StyleSheet):void{ this.textField.styleSheet = _arg1; } override public function get styleSheet():StyleSheet{ return (this.textField.styleSheet); } } }//package com.eightlabs.rambler.views
Section 186
//RegisterNameWindow (com.eightlabs.rambler.views.RegisterNameWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RegisterNameWindow extends RamblerPanel implements IBindingClient { private var _928147210password1:TextInput; private var _1618067916errorLabel:Label; mx_internal var _bindingsByDestination:Object; private var _96619420email:TextInput; private var _891535336submit:Button; private var _928147209password2:TextInput; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _watchers:Array; public var _RegisterNameWindow_FormItem2:FormItem; public var _RegisterNameWindow_FormItem3:FormItem; private var _documentDescriptor_:UIComponentDescriptor; mx_internal var _bindings:Array; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RegisterNameWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:222, childDescriptors:[new UIComponentDescriptor({type:Label, id:"errorLabel", propertiesFactory:function ():Object{ return ({text:""}); }}), new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, propertiesFactory:function ():Object{ return ({percentWidth:100, label:"Email Address:", childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"email", events:{enter:"__email_enter"}, propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_RegisterNameWindow_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password1", events:{enter:"__password1_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_RegisterNameWindow_FormItem3", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password2", events:{enter:"__password2_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"submit", events:{click:"__submit_click"}, stylesFactory:function ():void{ this.right = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.verticalScrollPolicy = "off"; this.layout = "vertical"; this.width = 400; this.height = 222; this.addEventListener("creationComplete", ___RegisterNameWindow_RamblerPanel1_creationComplete); } public function __submit_click(_arg1:MouseEvent):void{ register(); } private function creationCompleteEvent():void{ email.setFocus(); } public function get submit():Button{ return (this._891535336submit); } public function __email_enter(_arg1:FlexEvent):void{ register(); } public function get errorLabel():Label{ return (this._1618067916errorLabel); } public function get email():TextInput{ return (this._96619420email); } public function ___RegisterNameWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } private function register():void{ if (((((((!((Application.application.userName.toLowerCase() == password1.text.toLowerCase()))) && ((password1.text.length > 4)))) && ((password1.text == password2.text)))) && (!((email.text == ""))))){ this.dispatchEvent(new NickRegistrationEvent(email.text, password1.text)); } else { if (email.text == ""){ errorLabel.text = "You need to enter an e-mail address"; } else { if (Application.application.userName.toLowerCase() == password1.text.toLowerCase()){ errorLabel.text = "Your password cannot be the same as your nickname."; } else { if (password1.text.length < 5){ errorLabel.text = "Your password must be at least 5 characters."; } else { password1.text = ""; password2.text = ""; errorLabel.text = "Passwords must match. Please try again."; }; }; }; }; } public function set password1(_arg1:TextInput):void{ var _local2:Object = this._928147210password1; if (_local2 !== _arg1){ this._928147210password1 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password1", _local2, _arg1)); }; } override public function initialize():void{ var target:RegisterNameWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RegisterNameWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function _RegisterNameWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterNameWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterNameWindowPass"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RegisterNameWindow_FormItem2.label = _arg1; }, "_RegisterNameWindow_FormItem2.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterNameWindowPassAgain"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RegisterNameWindow_FormItem3.label = _arg1; }, "_RegisterNameWindow_FormItem3.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterNameWindowSubmitButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ submit.label = _arg1; }, "submit.label"); result[3] = binding; return (result); } public function set password2(_arg1:TextInput):void{ var _local2:Object = this._928147209password2; if (_local2 !== _arg1){ this._928147209password2 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password2", _local2, _arg1)); }; } public function __password1_enter(_arg1:FlexEvent):void{ register(); } public function __password2_enter(_arg1:FlexEvent):void{ register(); } public function get password2():TextInput{ return (this._928147209password2); } public function set email(_arg1:TextInput):void{ var _local2:Object = this._96619420email; if (_local2 !== _arg1){ this._96619420email = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "email", _local2, _arg1)); }; } public function set errorLabel(_arg1:Label):void{ var _local2:Object = this._1618067916errorLabel; if (_local2 !== _arg1){ this._1618067916errorLabel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "errorLabel", _local2, _arg1)); }; } private function _RegisterNameWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("RegisterNameWindowTitle"); _local1 = TextFormatter.getText("RegisterNameWindowPass"); _local1 = TextFormatter.getText("RegisterNameWindowPassAgain"); _local1 = TextFormatter.getText("RegisterNameWindowSubmitButton"); } public function get password1():TextInput{ return (this._928147210password1); } public function set submit(_arg1:Button):void{ var _local2:Object = this._891535336submit; if (_local2 !== _arg1){ this._891535336submit = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "submit", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 187
//RegisterRoomWindow (com.eightlabs.rambler.views.RegisterRoomWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RegisterRoomWindow extends RamblerPanel implements IBindingClient { private var _1618067916errorLabel:Label; private var _891535336submit:Button; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; private var _928147209password2:TextInput; mx_internal var _watchers:Array; public var _RegisterRoomWindow_FormItem1:FormItem; public var _RegisterRoomWindow_FormItem2:FormItem; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private var _928147210password1:TextInput; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RegisterRoomWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:222, childDescriptors:[new UIComponentDescriptor({type:Label, id:"errorLabel", propertiesFactory:function ():Object{ return ({text:""}); }}), new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_RegisterRoomWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password1", events:{enter:"__password1_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_RegisterRoomWindow_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password2", events:{enter:"__password2_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Button, id:"submit", events:{click:"__submit_click"}, stylesFactory:function ():void{ this.right = "0"; }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.verticalScrollPolicy = "off"; this.layout = "vertical"; this.width = 400; this.height = 222; this.addEventListener("creationComplete", ___RegisterRoomWindow_RamblerPanel1_creationComplete); } public function __submit_click(_arg1:MouseEvent):void{ register(); } private function creationCompleteEvent():void{ password1.setFocus(); } public function get password1():TextInput{ return (this._928147210password1); } public function ___RegisterRoomWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } override public function initialize():void{ var target:RegisterRoomWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RegisterRoomWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function set password1(_arg1:TextInput):void{ var _local2:Object = this._928147210password1; if (_local2 !== _arg1){ this._928147210password1 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password1", _local2, _arg1)); }; } public function get errorLabel():Label{ return (this._1618067916errorLabel); } private function register():void{ if (((((!((Application.application.userName.toLowerCase() == password1.text.toLowerCase()))) && ((password1.text.length > 4)))) && ((password1.text == password2.text)))){ this.dispatchEvent(new RoomRegistrationEvent(password1.text)); } else { if (password1.text.length < 5){ errorLabel.text = "Your password must be at least 5 characters."; } else { if (Application.application.userName.toLowerCase() == password1.text.toLowerCase()){ errorLabel.text = "Your password cannot be the same as your nickname."; } else { password1.text = ""; password2.text = ""; errorLabel.text = "Passwords must match. Please try again."; }; }; }; } public function set errorLabel(_arg1:Label):void{ var _local2:Object = this._1618067916errorLabel; if (_local2 !== _arg1){ this._1618067916errorLabel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "errorLabel", _local2, _arg1)); }; } private function _RegisterRoomWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("RegisterRoomWindowTitle"); _local1 = TextFormatter.getText("RegisterRoomWindowPass"); _local1 = TextFormatter.getText("RegisterRoomWindowPassAgain"); _local1 = TextFormatter.getText("RegisterRoomWindowSubmitButton"); } public function set password2(_arg1:TextInput):void{ var _local2:Object = this._928147209password2; if (_local2 !== _arg1){ this._928147209password2 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password2", _local2, _arg1)); }; } public function __password1_enter(_arg1:FlexEvent):void{ register(); } public function __password2_enter(_arg1:FlexEvent):void{ register(); } public function get password2():TextInput{ return (this._928147209password2); } public function get submit():Button{ return (this._891535336submit); } private function _RegisterRoomWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterRoomWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterRoomWindowPass"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RegisterRoomWindow_FormItem1.label = _arg1; }, "_RegisterRoomWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterRoomWindowPassAgain"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RegisterRoomWindow_FormItem2.label = _arg1; }, "_RegisterRoomWindow_FormItem2.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RegisterRoomWindowSubmitButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ submit.label = _arg1; }, "submit.label"); result[3] = binding; return (result); } public function set submit(_arg1:Button):void{ var _local2:Object = this._891535336submit; if (_local2 !== _arg1){ this._891535336submit = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "submit", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 188
//RichTextEditor (com.eightlabs.rambler.views.RichTextEditor) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import mx.controls.textClasses.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RichTextEditor extends Canvas implements IBindingClient { private var _text:String;// = "" private var htmlTextChanged:Boolean;// = false private var _2023461150underlineButton:Button; private var _1138485634italicButton:Button; private var invalidateToolBarFlag:Boolean;// = false private var _121890429complexDPArray:Array; private var lastCaretIndex:int;// = -1 private var _1004197030textArea:TextInput; mx_internal var _bindingsByDestination:Object; private var _showControlBar:Boolean;// = true public var underlineToolTip:String;// = "Underline" private var _984131529toolBar2:HBox; public var italicToolTip:String;// = "Italic" mx_internal var _watchers:Array; private var firstTime:Boolean;// = true public var boldToolTip:String;// = "Bold" private var textFormatChanged:Boolean;// = false private var textChanged:Boolean;// = false public var colorPickerToolTip:String;// = "Color" mx_internal var _bindingsBeginWithWord:Object; private var _1040280041boldButton:Button; private var _htmlText:String;// = "" private var previousTextFormat:TextFormat;// = null private var showToolTipsChanged:Boolean;// = false private var showControlBarChanged:Boolean;// = false private var _showToolTips:Boolean;// = false private var _885706193colorPicker:ColorPicker; private var _documentDescriptor_:UIComponentDescriptor; mx_internal var _bindings:Array; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RichTextEditor(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({height:50, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"textArea", events:{change:"__textArea_change", valueCommit:"__textArea_valueCommit", keyUp:"__textArea_keyUp", keyDown:"__textArea_keyDown", mouseDown:"__textArea_mouseDown", enter:"__textArea_enter"}, propertiesFactory:function ():Object{ return ({percentWidth:100, minHeight:0, minWidth:0}); }}), new UIComponentDescriptor({type:ControlBar, stylesFactory:function ():void{ this.paddingTop = 0; this.paddingBottom = 0; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({y:25, childDescriptors:[new UIComponentDescriptor({type:HBox, id:"toolBar2", stylesFactory:function ():void{ this.horizontalGap = 0; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"boldButton", events:{click:"__boldButton_click"}, stylesFactory:function ():void{ this.fontWeight = "bold"; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({width:25, toggle:true, label:"B"}); }}), new UIComponentDescriptor({type:Button, id:"italicButton", events:{click:"__italicButton_click"}, stylesFactory:function ():void{ this.fontStyle = "italic"; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({width:25, toggle:true, label:"I"}); }}), new UIComponentDescriptor({type:Button, id:"underlineButton", events:{click:"__underlineButton_click"}, stylesFactory:function ():void{ this.horizontalGap = 0; this.textDecoration = "underline"; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({width:25, toggle:true, label:"U"}); }}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({width:20}); }}), new UIComponentDescriptor({type:ColorPicker, id:"colorPicker", events:{close:"__colorPicker_close"}, stylesFactory:function ():void{ this.swatchPanelStyleName = "SwatchPanelStyle"; }, propertiesFactory:function ():Object{ return ({selectedIndex:0, height:21, width:21, editable:false}); }})]}); }})]}); }})]}); }}); _121890429complexDPArray = [{label:"Black", color:("0x" + TextFormatter.stylesheet.getStyle(".color1").color.substring(1))}, {label:"White", color:("0x" + TextFormatter.stylesheet.getStyle(".color0").color.substring(1))}, {label:"Navy Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color2").color.substring(1))}, {label:"Forest Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color3").color.substring(1))}, {label:"Red", color:("0x" + TextFormatter.stylesheet.getStyle(".color4").color.substring(1))}, {label:"Maroon", color:("0x" + TextFormatter.stylesheet.getStyle(".color5").color.substring(1))}, {label:"Purple", color:("0x" + TextFormatter.stylesheet.getStyle(".color6").color.substring(1))}, {label:"Orange", color:("0x" + TextFormatter.stylesheet.getStyle(".color7").color.substring(1))}, {label:"Yellow", color:("0x" + TextFormatter.stylesheet.getStyle(".color8").color.substring(1))}, {label:"Lime Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color9").color.substring(1))}, {label:"Turquoise", color:("0x" + TextFormatter.stylesheet.getStyle(".color10").color.substring(1))}, {label:"Cyan", color:("0x" + TextFormatter.stylesheet.getStyle(".color11").color.substring(1))}, {label:"Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color12").color.substring(1))}, {label:"Pink", color:("0x" + TextFormatter.stylesheet.getStyle(".color13").color.substring(1))}, {label:"Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color14").color.substring(1))}, {label:"Light Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color15").color.substring(1))}]; _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.height = 50; this.verticalScrollPolicy = "off"; this.horizontalScrollPolicy = "off"; this.percentWidth = 100; } public function set italicButton(_arg1:Button):void{ var _local2:Object = this._1138485634italicButton; if (_local2 !== _arg1){ this._1138485634italicButton = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "italicButton", _local2, _arg1)); }; } private function _RichTextEditor_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():Object{ return (complexDPArray); }, function (_arg1:Object):void{ colorPicker.dataProvider = _arg1; }, "colorPicker.dataProvider"); result[0] = binding; return (result); } public function get showToolTips():Boolean{ return (_showToolTips); } public function __textArea_keyUp(_arg1:KeyboardEvent):void{ getTextStyles(); } public function get boldButton():Button{ return (this._1040280041boldButton); } public function set showToolTips(_arg1:Boolean):void{ _showToolTips = _arg1; showToolTipsChanged = true; invalidateProperties(); } public function getPos():int{ if (!textArea){ return (0); }; return (textArea.getTextField().selectionEndIndex); } public function updateTextStyles(_arg1:String, _arg2:Object):void{ switch (_arg1){ case "bold": boldButton.selected = _arg2; setTextStyles(_arg1, _arg2); break; case "italic": italicButton.selected = _arg2; setTextStyles(_arg1, _arg2); break; case "underline": underlineButton.selected = _arg2; setTextStyles(_arg1, _arg2); break; case "color": trace(("updateTextStyles Selected Index: " + _arg2)); colorPicker.selectedIndex = int(_arg2); setTextStyles(_arg1, null); break; }; } public function __textArea_mouseDown(_arg1:MouseEvent):void{ systemManager.addEventListener(MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true); } public function get underlineButton():Button{ return (this._2023461150underlineButton); } public function __colorPicker_close(_arg1:DropdownEvent):void{ _updateTextStyles("color"); } public function get text():String{ return ((textArea) ? textArea.text : _text); } public function set boldButton(_arg1:Button):void{ var _local2:Object = this._1040280041boldButton; if (_local2 !== _arg1){ this._1040280041boldButton = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "boldButton", _local2, _arg1)); }; } public function get toolBar2():HBox{ return (this._984131529toolBar2); } public function __boldButton_click(_arg1:MouseEvent):void{ _updateTextStyles("bold", _arg1.currentTarget.selected); } public function set underlineButton(_arg1:Button):void{ var _local2:Object = this._2023461150underlineButton; if (_local2 !== _arg1){ this._2023461150underlineButton = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "underlineButton", _local2, _arg1)); }; } public function __underlineButton_click(_arg1:MouseEvent):void{ _updateTextStyles("underline", _arg1.currentTarget.selected); } public function get showControlBar():Boolean{ return (_showControlBar); } public function __textArea_change(_arg1:Event):void{ dispatchEvent(_arg1); } public function get textArea():TextInput{ return (this._1004197030textArea); } override protected function measure():void{ super.measure(); measuredMinWidth = 220; measuredWidth = 320; measuredMinHeight = 200; measuredHeight = 300; } public function set text(_arg1:String):void{ _text = _arg1; textChanged = true; invalidateProperties(); } private function _RichTextEditor_bindingExprs():void{ var _local1:*; _local1 = complexDPArray; } private function getTextStyles():void{ var _local1:TextFormat; var _local4:int; var _local5:TextFormat; if (!textArea){ return; }; var _local2:int = textArea.getTextField().selectionBeginIndex; var _local3:int = textArea.getTextField().selectionEndIndex; if (textFormatChanged){ previousTextFormat = null; }; if (_local2 == _local3){ _local1 = textArea.getTextField().defaultTextFormat; if (_local1.url != ""){ _local4 = textArea.getTextField().caretIndex; if (_local4 < textArea.getTextField().length){ _local5 = textArea.getTextField().getTextFormat(_local4, (_local4 + 1)); if (((!(_local5.url)) || ((_local5.url == "")))){ _local1.url = (_local1.target = ""); }; } else { _local1.url = (_local1.target = ""); }; }; } else { _local1 = textArea.getTextField().getTextFormat(_local2, _local3); }; if (((!(previousTextFormat)) || (!((previousTextFormat.color == _local1.color))))){ colorPicker.selectedColor = Number(_local1.color); }; if (((!(previousTextFormat)) || (!((previousTextFormat.bold == _local1.bold))))){ boldButton.selected = _local1.bold; }; if (((!(previousTextFormat)) || (!((previousTextFormat.italic == _local1.italic))))){ italicButton.selected = _local1.italic; }; if (((!(previousTextFormat)) || (!((previousTextFormat.underline == _local1.underline))))){ underlineButton.selected = _local1.underline; }; if (textArea.getTextField().defaultTextFormat != _local1){ textArea.getTextField().defaultTextFormat = _local1; }; previousTextFormat = _local1; textFormatChanged = false; lastCaretIndex = textArea.getTextField().caretIndex; invalidateToolBarFlag = false; } public function __italicButton_click(_arg1:MouseEvent):void{ _updateTextStyles("italic", _arg1.currentTarget.selected); } public function set toolBar2(_arg1:HBox):void{ var _local2:Object = this._984131529toolBar2; if (_local2 !== _arg1){ this._984131529toolBar2 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "toolBar2", _local2, _arg1)); }; } private function setTextStyles(_arg1:String, _arg2:Object=null):void{ var _local3:TextFormat; var _local4:int = textArea.getTextField().selectionBeginIndex; var _local5:int = textArea.getTextField().selectionEndIndex; if (_local4 == _local5){ _local3 = previousTextFormat; } else { _local3 = new TextFormat(); }; if ((((((_arg1 == "bold")) || ((_arg1 == "italic")))) || ((_arg1 == "underline")))){ _local3[_arg1] = _arg2; } else { if (_arg1 == "color"){ _local3[_arg1] = uint(colorPicker.selectedColor); }; }; textFormatChanged = true; if (_local4 == _local5){ previousTextFormat = _local3; } else { textArea.getTextField().setTextFormat(_local3, _local4, _local5); }; dispatchEvent(new Event("change")); } public function get htmlText():String{ var _local1:String = (textArea) ? textArea.htmlText : _htmlText; _local1 = _local1.replace(/\$/ig, "&#36;"); _local1 = _local1.replace(/<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\">/ig, ""); _local1 = _local1.replace(/<\/P><\/TEXTFORMAT>/ig, ""); _local1 = _local1.replace(/[\r\n]?+/ig, ""); _local1 = _local1.replace(/<FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#(.+)\" LETTERSPACING=\"0\" KERNING=\"0\">/ig, "<FONT COLOR=\"#$1\">"); return (_local1); } public function get complexDPArray():Array{ return (this._121890429complexDPArray); } private function _updateTextStyles(_arg1:String, _arg2:Object=null):void{ var localStorage:SharedObject; var type = _arg1; var value = _arg2; try { localStorage = SharedObject.getLocal("ewcStorage"); if (localStorage.size == 0){ debug.write("created... ewcInputStyle (richtexteditor)"); }; if (type == "bold"){ localStorage.data.bold = value; localStorage.flush(); }; if (type == "italic"){ localStorage.data.italic = value; localStorage.flush(); }; if (type == "underline"){ localStorage.data.underline = value; localStorage.flush(); }; if (type == "color"){ trace(("_updateTextStyles Selected Index: " + colorPicker.selectedIndex)); localStorage.data.color = colorPicker.selectedIndex; localStorage.flush(); }; } catch(e:Error) { debug.write(("Problem getting/setting the SharedObject (richtexteditor): " + e.message)); }; if ((((((type == "bold")) || ((type == "italic")))) || ((type == "underline")))){ dispatchEvent(new InputStyleChanged(type, value)); } else { if (type == "color"){ dispatchEvent(new InputStyleChanged(type, colorPicker.selectedIndex)); }; }; setTextStyles(type, value); } public function get italicButton():Button{ return (this._1138485634italicButton); } public function __textArea_valueCommit(_arg1:FlexEvent):void{ dispatchEvent(_arg1); } public function get selection():TextRange{ return (new TextRange(this, true)); } override public function initialize():void{ var target:RichTextEditor; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RichTextEditor_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function __textArea_enter(_arg1:FlexEvent):void{ dispatchEvent(new Event("enter")); } public function __textArea_keyDown(_arg1:KeyboardEvent):void{ if (textFormatChanged){ textArea.getTextField().defaultTextFormat = previousTextFormat; textFormatChanged = false; }; } public function set colorPicker(_arg1:ColorPicker):void{ var _local2:Object = this._885706193colorPicker; if (_local2 !== _arg1){ this._885706193colorPicker = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "colorPicker", _local2, _arg1)); }; } public function set showControlBar(_arg1:Boolean):void{ _showControlBar = _arg1; showControlBarChanged = true; invalidateProperties(); } public function set textArea(_arg1:TextInput):void{ var _local2:Object = this._1004197030textArea; if (_local2 !== _arg1){ this._1004197030textArea = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "textArea", _local2, _arg1)); }; } override public function styleChanged(_arg1:String):void{ var _local2:String; super.styleChanged(_arg1); if ((((_arg1 == null)) || ((_arg1 == "textAreaStyleName")))){ if (textArea){ _local2 = getStyle("textAreaStyleName"); textArea.styleName = _local2; }; }; if (!invalidateToolBarFlag){ invalidateToolBarFlag = true; callLater(getTextStyles); }; } override protected function commitProperties():void{ var _local1:String; var _local2:TextFormat; super.commitProperties(); if (firstTime){ firstTime = false; _local1 = getStyle("textAreaStyleName"); if (_local1){ textArea.styleName = _local1; }; textArea.getTextField().alwaysShowSelection = true; }; if (showToolTipsChanged){ if (_showToolTips){ boldButton.toolTip = boldToolTip; italicButton.toolTip = italicToolTip; underlineButton.toolTip = underlineToolTip; colorPicker.toolTip = colorPickerToolTip; } else { boldButton.toolTip = ""; italicButton.toolTip = ""; underlineButton.toolTip = ""; colorPicker.toolTip = ""; }; showToolTipsChanged = false; }; if (((textChanged) || (htmlTextChanged))){ _local2 = UITextField(textArea.getTextField()).getTextStyles(); textArea.getTextField().defaultTextFormat = _local2; if (textChanged){ if (_text !== null){ textArea.text = _text; }; textChanged = false; } else { if (_htmlText !== null){ textArea.htmlText = _htmlText; }; htmlTextChanged = false; }; }; } public function insertAt(_arg1:int, _arg2:int, _arg3:String):void{ textArea.getTextField().replaceText(_arg1, _arg2, _arg3); textArea.getTextField().setSelection((_arg2 + _arg3.length), (_arg2 + _arg3.length)); } public function get colorPicker():ColorPicker{ return (this._885706193colorPicker); } private function systemManager_mouseUpHandler(_arg1:MouseEvent):void{ if (lastCaretIndex != textArea.getTextField().caretIndex){ getTextStyles(); } else { if (textArea.getTextField().selectionBeginIndex == textArea.getTextField().selectionEndIndex){ }; }; systemManager.removeEventListener(MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true); } public function set htmlText(_arg1:String):void{ _htmlText = _arg1; htmlTextChanged = true; invalidateProperties(); } public function set complexDPArray(_arg1:Array):void{ var _local2:Object = this._121890429complexDPArray; if (_local2 !== _arg1){ this._121890429complexDPArray = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "complexDPArray", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RichTextEditor._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 189
//RoomHandle (com.eightlabs.rambler.views.RoomHandle) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import flash.utils.*; import com.eightlabs.utilities.*; public class RoomHandle extends EventDispatcher { private var varRoomRegistered:Boolean;// = false private var blinkTimer:Timer; private var varRoomName:String; private var varUserList:RoomUserList; private var _1106654332ledoff:Class; private var varChatBox:ChatBox; private var _102848810ledon:Class; public function RoomHandle(_arg1:String, _arg2:Object){ varChatBox = new ChatBox(); varUserList = new RoomUserList(); _1106654332ledoff = RoomHandle_ledoff; _102848810ledon = RoomHandle_ledon; super(); this.varRoomName = _arg1; this.varChatBox.initialize(); this.varUserList.initialize(); this.varChatBox.title = _arg1; this.varUserList.label = _arg1; this.varChatBox.stylesHash = _arg2; addRoomListeners(); } public function stopBlink():void{ if (blinking){ blinkTimer.stop(); blinkTimer = null; this.varUserList.icon = null; }; } private function dispatchSendRoomAction(_arg1:SendActionEvent):void{ dispatchEvent(new SendRoomActionEvent(this.varRoomName, _arg1.message, _arg1.rawMessage)); } private function addRoomListeners():void{ this.varUserList.addEventListener("show", dispatchRoomSwitch); this.varChatBox.addEventListener("close", dispatchRoomClose); this.varChatBox.addEventListener("SendMessageEvent", dispatchSendRoomMessage); this.varChatBox.addEventListener("TabCompleteEvent", tabComplete); this.varChatBox.addEventListener("SendActionEvent", dispatchSendRoomAction); this.varChatBox.addEventListener("SendCommandEvent", dispatchSendRoomCommand); this.varChatBox.addEventListener("InputStyleChanged", inputStyleChanged); } public function get blinking():Boolean{ if (this.blinkTimer == null){ return (false); }; return (true); } private function dispatchRoomClose(_arg1:Event):void{ dispatchEvent(new RoomCloseEvent(this.varRoomName)); } private function get ledoff():Class{ return (this._1106654332ledoff); } public function get userList():RoomUserList{ return (this.varUserList); } public function set roomName(_arg1:String):void{ this.varRoomName = _arg1; } private function set ledon(_arg1:Class):void{ var _local2:Object = this._102848810ledon; if (_local2 !== _arg1){ this._102848810ledon = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ledon", _local2, _arg1)); }; } public function get roomName():String{ return (this.varRoomName); } private function set ledoff(_arg1:Class):void{ var _local2:Object = this._1106654332ledoff; if (_local2 !== _arg1){ this._1106654332ledoff = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ledoff", _local2, _arg1)); }; } private function blinkTimerHandler(_arg1:TimerEvent):void{ if (this.varUserList.icon == ledon){ this.varUserList.icon = ledoff; } else { this.varUserList.icon = ledon; }; } private function dispatchSendServicesList(_arg1:Event):void{ dispatchEvent(new ServicesListEvent(this.varRoomName)); } public function startBlink():void{ if (!blinking){ this.varUserList.icon = ledon; blinkTimer = new Timer(750, 0); blinkTimer.addEventListener("timer", blinkTimerHandler); blinkTimer.start(); }; } public function get chatBox():ChatBox{ return (this.varChatBox); } private function dispatchSendRoomMessage(_arg1:SendMessageEvent):void{ dispatchEvent(new SendRoomMessageEvent(this.varRoomName, _arg1.message, _arg1.rawMessage)); } private function dispatchRoomSwitch(_arg1:Event):void{ dispatchEvent(new SwitchRoomEvent(this.varRoomName)); } private function inputStyleChanged(_arg1:InputStyleChanged):void{ dispatchEvent(_arg1); } private function tabComplete(_arg1:TabCompleteEvent):void{ debug.write(("nickname match! " + this.userList.tabComplete(_arg1.nickFrag))); this.varChatBox.insertAt(_arg1.startIndex, _arg1.endIndex, this.userList.tabComplete(_arg1.nickFrag)); } private function get ledon():Class{ return (this._102848810ledon); } private function dispatchSendRoomCommand(_arg1:SendCommandEvent):void{ dispatchEvent(new SendRoomCommandEvent(this.varRoomName, _arg1.command, _arg1.arguments)); } public function set roomRegistered(_arg1:Boolean):void{ this.varRoomRegistered = _arg1; } public function get roomRegistered():Boolean{ return (this.varRoomRegistered); } } }//package com.eightlabs.rambler.views
Section 190
//RoomHandle_ledoff (com.eightlabs.rambler.views.RoomHandle_ledoff) package com.eightlabs.rambler.views { import mx.core.*; public class RoomHandle_ledoff extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 191
//RoomHandle_ledon (com.eightlabs.rambler.views.RoomHandle_ledon) package com.eightlabs.rambler.views { import mx.core.*; public class RoomHandle_ledon extends BitmapAsset { } }//package com.eightlabs.rambler.views
Section 192
//RoomKeyWindow (com.eightlabs.rambler.views.RoomKeyWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomKeyWindow extends RamblerPanel implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; public var varRoomName:String; mx_internal var _watchers:Array; private var _1367724422cancel:Button; private var _1976621530instructLabel:Label; private var _1216985755password:TextInput; mx_internal var _bindings:Array; public var _RoomKeyWindow_FormItem1:FormItem; private var _documentDescriptor_:UIComponentDescriptor; private var _3267882join:Button; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomKeyWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:400, height:175, childDescriptors:[new UIComponentDescriptor({type:Label, id:"instructLabel", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_RoomKeyWindow_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"password", events:{enter:"__password_enter"}, propertiesFactory:function ():Object{ return ({displayAsPassword:true, percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:HBox, stylesFactory:function ():void{ this.right = "0"; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"join", events:{click:"__join_click"}}), new UIComponentDescriptor({type:Button, id:"cancel", events:{click:"__cancel_click"}})]}); }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.layout = "vertical"; this.width = 400; this.height = 175; this.addEventListener("creationComplete", ___RoomKeyWindow_RamblerPanel1_creationComplete); } public function get cancel():Button{ return (this._1367724422cancel); } public function set instructLabel(_arg1:Label):void{ var _local2:Object = this._1976621530instructLabel; if (_local2 !== _arg1){ this._1976621530instructLabel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "instructLabel", _local2, _arg1)); }; } private function _RoomKeyWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowPassword"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomKeyWindow_FormItem1.label = _arg1; }, "_RoomKeyWindow_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowJoinButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ join.label = _arg1; }, "join.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowCancelButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.label = _arg1; }, "cancel.label"); result[3] = binding; return (result); } private function creationCompleteEvent():void{ password.setFocus(); } public function set password(_arg1:TextInput):void{ var _local2:Object = this._1216985755password; if (_local2 !== _arg1){ this._1216985755password = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "password", _local2, _arg1)); }; } public function __join_click(_arg1:MouseEvent):void{ this.dispatchEvent(new RoomAuthenticationEvent(varRoomName, password.text)); } public function __password_enter(_arg1:FlexEvent):void{ this.dispatchEvent(new RoomAuthenticationEvent(varRoomName, password.text)); } override public function initialize():void{ var target:RoomKeyWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RoomKeyWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get password():TextInput{ return (this._1216985755password); } public function __cancel_click(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } public function set join(_arg1:Button):void{ var _local2:Object = this._3267882join; if (_local2 !== _arg1){ this._3267882join = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "join", _local2, _arg1)); }; } private function _RoomKeyWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("RoomKeyWindowTitle"); _local1 = TextFormatter.getText("RoomKeyWindowPassword"); _local1 = TextFormatter.getText("RoomKeyWindowJoinButton"); _local1 = TextFormatter.getText("RoomKeyWindowCancelButton"); } public function get join():Button{ return (this._3267882join); } public function get instructLabel():Label{ return (this._1976621530instructLabel); } public function set cancel(_arg1:Button):void{ var _local2:Object = this._1367724422cancel; if (_local2 !== _arg1){ this._1367724422cancel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cancel", _local2, _arg1)); }; } public function ___RoomKeyWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RoomKeyWindow._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 193
//RoomSettingsAddBan (com.eightlabs.rambler.views.RoomSettingsAddBan) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomSettingsAddBan extends RamblerPanel implements IBindingClient { private var _96417add:Button; public var varRoomName:String; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _watchers:Array; private var _1367724422cancel:Button; private var _1396343010banned:TextInput; public var _RoomSettingsAddBan_FormItem1:FormItem; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomSettingsAddBan(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:300, height:150, childDescriptors:[new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_RoomSettingsAddBan_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"banned", events:{enter:"__banned_enter"}, propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:HBox, stylesFactory:function ():void{ this.right = "0"; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"add", events:{click:"__add_click"}}), new UIComponentDescriptor({type:Button, id:"cancel", events:{click:"__cancel_click"}})]}); }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.layout = "vertical"; this.width = 300; this.height = 150; this.addEventListener("creationComplete", ___RoomSettingsAddBan_RamblerPanel1_creationComplete); } private function creationCompleteEvent():void{ } public function set cancel(_arg1:Button):void{ var _local2:Object = this._1367724422cancel; if (_local2 !== _arg1){ this._1367724422cancel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cancel", _local2, _arg1)); }; } public function ___RoomSettingsAddBan_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function __add_click(_arg1:MouseEvent):void{ submit(); } override public function initialize():void{ var target:RoomSettingsAddBan; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RoomSettingsAddBan_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function submit(_arg1:Event=null):void{ this.dispatchEvent(new RoomSettingsAddBanEvent(this.varRoomName, banned.text)); this.dispatchEvent(new Event("close")); } public function __banned_enter(_arg1:FlexEvent):void{ submit(); } public function __cancel_click(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } public function set add(_arg1:Button):void{ var _local2:Object = this._96417add; if (_local2 !== _arg1){ this._96417add = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "add", _local2, _arg1)); }; } public function get banned():TextInput{ return (this._1396343010banned); } public function get add():Button{ return (this._96417add); } private function _RoomSettingsAddBan_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("AddBanwindowTitle"); _local1 = TextFormatter.getText("AddBanWindowBanMask"); _local1 = TextFormatter.getText("AddBanWindowAdd"); _local1 = TextFormatter.getText("RoomKeyWindowCancelButton"); } public function get cancel():Button{ return (this._1367724422cancel); } private function _RoomSettingsAddBan_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddBanwindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddBanWindowBanMask"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsAddBan_FormItem1.label = _arg1; }, "_RoomSettingsAddBan_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddBanWindowAdd"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ add.label = _arg1; }, "add.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowCancelButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.label = _arg1; }, "cancel.label"); result[3] = binding; return (result); } public function set banned(_arg1:TextInput):void{ var _local2:Object = this._1396343010banned; if (_local2 !== _arg1){ this._1396343010banned = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banned", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 194
//RoomSettingsAddOp (com.eightlabs.rambler.views.RoomSettingsAddOp) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomSettingsAddOp extends RamblerPanel implements IBindingClient { public var _RoomSettingsAddOp_FormItem1:FormItem; public var _RoomSettingsAddOp_FormItem2:FormItem; private var _69737614nickName:TextInput; mx_internal var _watchers:Array; private var _1367724422cancel:Button; private var _103497hop:RadioButton; private var _116951vop:RadioButton; private var _96417add:Button; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; public var varRoomName:String; private var _92659298addOp:RadioButtonGroup; mx_internal var _bindings:Array; private var _96770aop:RadioButton; private var _documentDescriptor_:UIComponentDescriptor; private var _114068sop:RadioButton; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomSettingsAddOp(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:300, height:275, childDescriptors:[new UIComponentDescriptor({type:Form, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_RoomSettingsAddOp_FormItem1", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:RadioButton, id:"sop", propertiesFactory:function ():Object{ return ({groupName:"addOp"}); }}), new UIComponentDescriptor({type:RadioButton, id:"aop", propertiesFactory:function ():Object{ return ({groupName:"addOp"}); }}), new UIComponentDescriptor({type:RadioButton, id:"hop", propertiesFactory:function ():Object{ return ({groupName:"addOp"}); }}), new UIComponentDescriptor({type:RadioButton, id:"vop", propertiesFactory:function ():Object{ return ({groupName:"addOp"}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"_RoomSettingsAddOp_FormItem2", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"nickName", events:{enter:"__nickName_enter"}, propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:HBox, stylesFactory:function ():void{ this.right = "0"; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"add", events:{click:"__add_click"}}), new UIComponentDescriptor({type:Button, id:"cancel", events:{click:"__cancel_click"}})]}); }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.layout = "vertical"; this.width = 300; this.height = 275; _RoomSettingsAddOp_RadioButtonGroup1_i(); this.addEventListener("creationComplete", ___RoomSettingsAddOp_RamblerPanel1_creationComplete); } public function set aop(_arg1:RadioButton):void{ var _local2:Object = this._96770aop; if (_local2 !== _arg1){ this._96770aop = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "aop", _local2, _arg1)); }; } public function get aop():RadioButton{ return (this._96770aop); } public function __add_click(_arg1:MouseEvent):void{ submit(); } private function _RoomSettingsAddOp_RadioButtonGroup1_i():RadioButtonGroup{ var _local1:RadioButtonGroup = new RadioButtonGroup(); addOp = _local1; _local1.initialized(this, "addOp"); return (_local1); } public function set hop(_arg1:RadioButton):void{ var _local2:Object = this._103497hop; if (_local2 !== _arg1){ this._103497hop = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "hop", _local2, _arg1)); }; } private function _RoomSettingsAddOp_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowType"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsAddOp_FormItem1.label = _arg1; }, "_RoomSettingsAddOp_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowOwner"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ sop.label = _arg1; }, "sop.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowHost"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ aop.label = _arg1; }, "aop.label"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowAssistant"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ hop.label = _arg1; }, "hop.label"); result[4] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowSpeaker"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ vop.label = _arg1; }, "vop.label"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowNickname"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsAddOp_FormItem2.label = _arg1; }, "_RoomSettingsAddOp_FormItem2.label"); result[6] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AddOpWindowAdd"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ add.label = _arg1; }, "add.label"); result[7] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowCancelButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.label = _arg1; }, "cancel.label"); result[8] = binding; return (result); } private function submit(_arg1:Event=null):void{ var _local2:String; if (sop.selected){ _local2 = "sop"; } else { if (aop.selected){ _local2 = "aop"; } else { if (hop.selected){ _local2 = "hop"; } else { if (vop.selected){ _local2 = "vop"; }; }; }; }; this.dispatchEvent(new RoomSettingsAddOpEvent(this.varRoomName, nickName.text, _local2)); this.dispatchEvent(new Event("close")); } public function get sop():RadioButton{ return (this._114068sop); } public function get nickName():TextInput{ return (this._69737614nickName); } override public function initialize():void{ var target:RoomSettingsAddOp; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RoomSettingsAddOp_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get add():Button{ return (this._96417add); } public function set nickName(_arg1:TextInput):void{ var _local2:Object = this._69737614nickName; if (_local2 !== _arg1){ this._69737614nickName = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "nickName", _local2, _arg1)); }; } public function set sop(_arg1:RadioButton):void{ var _local2:Object = this._114068sop; if (_local2 !== _arg1){ this._114068sop = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "sop", _local2, _arg1)); }; } public function ___RoomSettingsAddOp_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function set vop(_arg1:RadioButton):void{ var _local2:Object = this._116951vop; if (_local2 !== _arg1){ this._116951vop = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "vop", _local2, _arg1)); }; } private function creationCompleteEvent():void{ } public function set addOp(_arg1:RadioButtonGroup):void{ var _local2:Object = this._92659298addOp; if (_local2 !== _arg1){ this._92659298addOp = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "addOp", _local2, _arg1)); }; } public function __nickName_enter(_arg1:FlexEvent):void{ submit(); } public function set add(_arg1:Button):void{ var _local2:Object = this._96417add; if (_local2 !== _arg1){ this._96417add = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "add", _local2, _arg1)); }; } public function get hop():RadioButton{ return (this._103497hop); } public function get vop():RadioButton{ return (this._116951vop); } private function _RoomSettingsAddOp_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("AddOpWindowTitle"); _local1 = TextFormatter.getText("AddOpWindowType"); _local1 = TextFormatter.getText("AddOpWindowOwner"); _local1 = TextFormatter.getText("AddOpWindowHost"); _local1 = TextFormatter.getText("AddOpWindowAssistant"); _local1 = TextFormatter.getText("AddOpWindowSpeaker"); _local1 = TextFormatter.getText("AddOpWindowNickname"); _local1 = TextFormatter.getText("AddOpWindowAdd"); _local1 = TextFormatter.getText("RoomKeyWindowCancelButton"); } public function __cancel_click(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } public function get addOp():RadioButtonGroup{ return (this._92659298addOp); } public function set cancel(_arg1:Button):void{ var _local2:Object = this._1367724422cancel; if (_local2 !== _arg1){ this._1367724422cancel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cancel", _local2, _arg1)); }; } public function get cancel():Button{ return (this._1367724422cancel); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 195
//RoomSettingsWindow (com.eightlabs.rambler.views.RoomSettingsWindow) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import mx.controls.dataGridClasses.*; import mx.collections.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomSettingsWindow extends RamblerPanel implements IBindingClient { private var textKey:String; private var textTopic:String; public var servicesLoaded:Boolean;// = false public var _RoomSettingsWindow_Label1:Label; private var textUserLimit:String; private var textTranscripts:String; private var _1320908673txtRegisterDate:TextInput; private var _282699059loadProgress:ProgressBar; private var changesModes:Object; private var _473440357settingsAccordion:Accordion; private var _480750371m4Panel:Canvas; private var textSecret:String; private var textCreator:String; private var changesServices:Object; private var _2057570299boxOther:VBox; mx_internal var _bindingsByDestination:Object; private var textQuiets:String; public var varRoomName:String; private var _747829639chkboxL:CheckBox; private var _747829641chkboxN:CheckBox; private var _471156836txtCreator:TextInput; public var bansArray:Array; private var _878760301txtLint:TextInput; private var _1268861541footer:HBox; private var textRegDate:String; private var textGreeting:String; private var _379948034bansCollection:ArrayCollection; private var _828995395quietsCollection:ArrayCollection; private var _767746869txtSopPass:TextInput; private var servicesSettings:Object; private var _566637824m1Panel:Canvas; private var _747829646chkboxS:CheckBox; private var changesOpList:Object; private var _957319652topicBox:VBox; private var _3522941save:Button; private var _1918084180txtKstring:TextInput; public var quietsArray:Array; private var modeSettings:Object; private var _1126533967m1Text:TextArea; private var textProfanity:String; private var _94756344close:Button; public var opListLoaded:Boolean;// = false private var textMembersOnly:String; private var changesBanList:Object; private var textBans:String; private var textModerated:String; private var textAoppass:String; private var _3428m1:Canvas; private var txtInput:RichTextEditor; private var _3431m4:Canvas; private var _1123763404m4Text:TextArea; private var _1011328481opList:DataGrid; public var modesLoaded:Boolean;// = false private var textInviteOnly:String; private var _3016260bans:DataGrid; private var _747829638chkboxK:CheckBox; public var _RoomSettingsWindow_DataGridColumn1:DataGridColumn; private var _747829640chkboxM:CheckBox; public var _RoomSettingsWindow_DataGridColumn3:DataGridColumn; public var _RoomSettingsWindow_DataGridColumn4:DataGridColumn; public var _RoomSettingsWindow_DataGridColumn5:DataGridColumn; private var changesQuietList:Object; public var _RoomSettingsWindow_DataGridColumn2:DataGridColumn; private var _3430m3:Canvas; private var _1285492977opMinus:Button; public var opListArray:Array; private var _1124686925m3Text:TextArea; private var _1886179935banMinus:Button; mx_internal var _watchers:Array; private var _747829647chkboxT:CheckBox; private var _509379522m3Panel:Canvas; private var textModTopic:String; private var textOpList:String; private var _747829636chkboxI:CheckBox; private var textSoppass:String; private var textNoExternal:String; private var _79099363opListCollection:ArrayCollection; private var _2136682163settingsContainerBox:Canvas; private var _1011206373opPlus:Button; private var _849313060lblROPass:Label; private var textP2pMods:String; private var _105154641settingsMainBox:ViewStack; private var textModSettings:String; mx_internal var _bindingsBeginWithWord:Object; mx_internal var _bindings:Array; public var _RoomSettingsWindow_Label2:Label; public var _RoomSettingsWindow_Label3:Label; public var _RoomSettingsWindow_Label5:Label; private var _337846711banPlus:Button; public var _RoomSettingsWindow_Label7:Label; public var _RoomSettingsWindow_Label4:Label; public var _RoomSettingsWindow_Label6:Label; private var _documentDescriptor_:UIComponentDescriptor; public var _RoomSettingsWindow_Label9:Label; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomSettingsWindow(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:600, height:400, childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"settingsContainerBox", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Accordion, id:"settingsAccordion", propertiesFactory:function ():Object{ return ({width:150, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"m1", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:TextArea, id:"m1Text", propertiesFactory:function ():Object{ return ({editable:false, percentWidth:100, percentHeight:100}); }})]}); }}), new UIComponentDescriptor({type:Canvas, id:"m3", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:TextArea, id:"m3Text", propertiesFactory:function ():Object{ return ({editable:false, percentWidth:100, percentHeight:100}); }})]}); }}), new UIComponentDescriptor({type:Canvas, id:"m4", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, label:"Room Registration", childDescriptors:[new UIComponentDescriptor({type:TextArea, id:"m4Text", propertiesFactory:function ():Object{ return ({editable:false, percentWidth:100, percentHeight:100, htmlText:"This panel allows you to view and/or modify the registration details for the room."}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ViewStack, id:"settingsMainBox", stylesFactory:function ():void{ this.paddingRight = 5; this.paddingTop = 5; this.paddingBottom = 5; }, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"m1Panel", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentHeight:100, percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label1", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:VBox, id:"topicBox", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentHeight:100}); }}), new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label2", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxS", events:{mouseOver:"__chkboxS_mouseOver", click:"__chkboxS_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }}), new UIComponentDescriptor({type:CheckBox, id:"chkboxI", events:{mouseOver:"__chkboxI_mouseOver", click:"__chkboxI_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }})]}); }}), new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxL", events:{mouseOver:"__chkboxL_mouseOver", click:"__chkboxL_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }}), new UIComponentDescriptor({type:TextInput, id:"txtLint", events:{keyUp:"__txtLint_keyUp"}, propertiesFactory:function ():Object{ return ({width:20}); }})]}); }}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxK", events:{mouseOver:"__chkboxK_mouseOver", click:"__chkboxK_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }}), new UIComponentDescriptor({type:TextInput, id:"txtKstring", events:{keyUp:"__txtKstring_keyUp"}, propertiesFactory:function ():Object{ return ({width:50}); }})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentHeight:100}); }}), new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label3", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxN", events:{mouseOver:"__chkboxN_mouseOver", click:"__chkboxN_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }})]}); }}), new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxM", events:{mouseOver:"__chkboxM_mouseOver", click:"__chkboxM_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentHeight:100}); }}), new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label4", propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"chkboxT", events:{mouseOver:"__chkboxT_mouseOver", click:"__chkboxT_click"}, propertiesFactory:function ():Object{ return ({selected:false}); }})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Canvas, id:"m3Panel", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label5", events:{mouseOver:"___RoomSettingsWindow_Label5_mouseOver"}}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:DataGrid, id:"bans", events:{mouseOver:"__bans_mouseOver"}, propertiesFactory:function ():Object{ return ({percentWidth:100, verticalScrollPolicy:"auto", horizontalScrollPolicy:"auto", percentHeight:100, columns:[_RoomSettingsWindow_DataGridColumn1_i(), _RoomSettingsWindow_DataGridColumn2_i(), _RoomSettingsWindow_DataGridColumn3_i()]}); }}), new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"banPlus", events:{click:"__banPlus_click"}, propertiesFactory:function ():Object{ return ({label:"+", visible:true}); }}), new UIComponentDescriptor({type:Button, id:"banMinus", events:{click:"__banMinus_click"}, propertiesFactory:function ():Object{ return ({label:"-", visible:true}); }})]}); }})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Canvas, id:"m4Panel", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentHeight:100, percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:VBox, id:"boxOther", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label6", events:{mouseOver:"___RoomSettingsWindow_Label6_mouseOver"}}), new UIComponentDescriptor({type:TextInput, id:"txtCreator", events:{mouseOver:"__txtCreator_mouseOver"}, propertiesFactory:function ():Object{ return ({percentWidth:100, text:"", enabled:false}); }})]}); }}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label7", events:{mouseOver:"___RoomSettingsWindow_Label7_mouseOver"}}), new UIComponentDescriptor({type:TextInput, id:"txtRegisterDate", events:{mouseOver:"__txtRegisterDate_mouseOver"}, propertiesFactory:function ():Object{ return ({percentWidth:50, text:"01/02/03", enabled:false}); }}), new UIComponentDescriptor({type:Label, id:"lblROPass", events:{mouseOver:"__lblROPass_mouseOver"}}), new UIComponentDescriptor({type:TextInput, id:"txtSopPass", events:{mouseOver:"__txtSopPass_mouseOver", keyUp:"__txtSopPass_keyUp"}, propertiesFactory:function ():Object{ return ({percentWidth:25, text:"SOPPASS", enabled:false}); }})]}); }})]}); }}), new UIComponentDescriptor({type:Label, id:"_RoomSettingsWindow_Label9", events:{mouseOver:"___RoomSettingsWindow_Label9_mouseOver"}}), new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:DataGrid, id:"opList", events:{mouseOver:"__opList_mouseOver"}, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, verticalScrollPolicy:"auto", horizontalScrollPolicy:"auto", doubleClickEnabled:false, columns:[_RoomSettingsWindow_DataGridColumn4_i(), _RoomSettingsWindow_DataGridColumn5_i()]}); }}), new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"opPlus", events:{click:"__opPlus_click"}, propertiesFactory:function ():Object{ return ({label:"+", enabled:false}); }}), new UIComponentDescriptor({type:Button, id:"opMinus", events:{click:"__opMinus_click"}, propertiesFactory:function ():Object{ return ({label:"-", enabled:false}); }})]}); }})]}); }})]}); }})]}); }})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:HBox, id:"footer", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:ProgressBar, id:"loadProgress", propertiesFactory:function ():Object{ return ({indeterminate:true, label:"Loading...", labelPlacement:"left"}); }}), new UIComponentDescriptor({type:Spacer, propertiesFactory:function ():Object{ return ({percentWidth:100}); }}), new UIComponentDescriptor({type:Button, id:"save", events:{click:"__save_click"}, propertiesFactory:function ():Object{ return ({visible:false}); }}), new UIComponentDescriptor({type:Button, id:"close", events:{click:"__close_click"}})]}); }})]}); }})]}); }}); txtInput = new RichTextEditor(); modeSettings = new Object(); changesModes = new Object(); servicesSettings = new Object(); changesServices = new Object(); opListArray = new Array(); _79099363opListCollection = new ArrayCollection(opListArray); changesOpList = new Object(); bansArray = new Array(); _379948034bansCollection = new ArrayCollection(bansArray); changesBanList = new Object(); quietsArray = new Array(); _828995395quietsCollection = new ArrayCollection(quietsArray); changesQuietList = new Object(); textSecret = TextFormatter.getText("RoomSettingsWindowHintsSecret"); textMembersOnly = TextFormatter.getText("RoomSettingsWindowHintsMembersOnly"); textInviteOnly = TextFormatter.getText("RoomSettingsWindowHintsInviteOnly"); textTranscripts = TextFormatter.getText("RoomSettingsWindowHintsRecordTrans"); textUserLimit = TextFormatter.getText("RoomSettingsWindowHintsUserLimit"); textKey = TextFormatter.getText("RoomSettingsWindowHintsRoomkey"); textNoExternal = TextFormatter.getText("RoomSettingsWindowHintsNoExtern"); textProfanity = TextFormatter.getText("RoomSettingsWindowHintsProfanity"); textP2pMods = TextFormatter.getText("RoomSettingsWindowHintsHostsOnly"); textModerated = TextFormatter.getText("RoomSettingsWindowHintsModerated"); textModTopic = TextFormatter.getText("RoomSettingsWindowHintsHostTopics"); textModSettings = TextFormatter.getText("RoomSettingsWindowHintsHostSettings"); textTopic = TextFormatter.getText("RoomSettingsWindowHintsTopic"); textGreeting = TextFormatter.getText("RoomSettingsWindowHintsGreeting"); textBans = TextFormatter.getText("RoomSettingsWindowHintsBans"); textQuiets = TextFormatter.getText("RoomSettingsWindowHintsQuiets"); textSoppass = TextFormatter.getText("RoomSettingsWindowHintsOwnerPass"); textAoppass = TextFormatter.getText("RoomSettingsWindowHintsHostPass"); textCreator = TextFormatter.getText("RoomSettingsWindowHintsCreator"); textRegDate = TextFormatter.getText("RoomSettingsWindowHintsRegDate"); textOpList = TextFormatter.getText("RoomSettingsWindowHintsAutoOp"); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.showCloseButton = true; this.enabled = false; this.layout = "vertical"; this.width = 600; this.height = 400; this.addEventListener("creationComplete", ___RoomSettingsWindow_RamblerPanel1_creationComplete); } public function set m1Panel(_arg1:Canvas):void{ var _local2:Object = this._566637824m1Panel; if (_local2 !== _arg1){ this._566637824m1Panel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m1Panel", _local2, _arg1)); }; } public function get boxOther():VBox{ return (this._2057570299boxOther); } public function get bansCollection():ArrayCollection{ return (this._379948034bansCollection); } public function set bansCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._379948034bansCollection; if (_local2 !== _arg1){ this._379948034bansCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "bansCollection", _local2, _arg1)); }; } public function set roomName(_arg1:String):void{ this.varRoomName = _arg1; txtInput.htmlText = Application.application.ramblerGUI.roomsManager.getTopic(this.varRoomName); } public function __chkboxN_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textNoExternal; } public function __txtRegisterDate_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textRegDate; } public function plusBan():void{ var _local1:RoomSettingsAddBan = RoomSettingsAddBan(Application.application.ramblerGUI.modalManager.addModal(("roomSettingsAddBan" + varRoomName.toLowerCase()), RoomSettingsAddBan, true)); _local1.varRoomName = varRoomName; _local1.addEventListener("RoomSettingsAddBanEvent", roomSettingsAddBanEvent); } private function roomSettingsAddOpEvent(_arg1:RoomSettingsAddOpEvent):void{ changesOpList[("add" + _arg1.nickName)] = new Array(_arg1.opType, "add", _arg1.nickName); addOpData(_arg1.opType, _arg1.nickName); } public function set boxOther(_arg1:VBox):void{ var _local2:Object = this._2057570299boxOther; if (_local2 !== _arg1){ this._2057570299boxOther = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "boxOther", _local2, _arg1)); }; } public function get topicBox():VBox{ return (this._957319652topicBox); } public function __txtCreator_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textCreator; } public function get opList():DataGrid{ return (this._1011328481opList); } public function get opListCollection():ArrayCollection{ return (this._79099363opListCollection); } public function set opMinus(_arg1:Button):void{ var _local2:Object = this._1285492977opMinus; if (_local2 !== _arg1){ this._1285492977opMinus = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "opMinus", _local2, _arg1)); }; } public function __save_click(_arg1:MouseEvent):void{ saveSettings(); } private function _RoomSettingsWindow_DataGridColumn5_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _RoomSettingsWindow_DataGridColumn5 = _local1; _local1.dataField = "nickname"; BindingManager.executeBindings(this, "_RoomSettingsWindow_DataGridColumn5", _RoomSettingsWindow_DataGridColumn5); return (_local1); } private function _RoomSettingsWindow_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("RoomSettingsWindowTitle"); _local1 = TextFormatter.getText("RoomSettingsWindowHintsTabOptions"); _local1 = TextFormatter.getText("RoomSettingsWindowHintsTabOptionsText"); _local1 = TextFormatter.getText("RoomSettingsWindowHintsTabSecurity"); _local1 = TextFormatter.getText("RoomSettingsWindowHintsTabSecurityText"); _local1 = TextFormatter.getText("RoomSettingsWindowHeaderRoomTopic"); _local1 = TextFormatter.getText("RoomSettingsWindowHeaderRoomSettings"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsSecret"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsInvite"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsUsers"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsKey"); _local1 = TextFormatter.getText("RoomSettingsWindowHeaderMessageSettings"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsExtMessages"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsModerated"); _local1 = TextFormatter.getText("RoomSettingsWindowHeaderHostSettings"); _local1 = TextFormatter.getText("RoomSettingsWindowOptionsModTopic"); _local1 = TextFormatter.getText("RoomSettingsWindowSecurityBans"); _local1 = bansCollection; _local1 = TextFormatter.getText("RoomSettingsWindowSecurityBansUserHeader"); _local1 = TextFormatter.getText("RoomSettingsWindowSecurityBansModHeader"); _local1 = TextFormatter.getText("RoomSettingsWindowSecurityBansDateHeader"); _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationCreator"); _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationRegDate"); _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationOwnerPass"); _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationAutoOps"); _local1 = opListCollection; _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationTypeHeader"); _local1 = TextFormatter.getText("RoomSettingsWindowRegistrationNicknameHeader"); _local1 = TextFormatter.getText("RoomSettingsWindowSaveButton"); _local1 = TextFormatter.getText("RoomSettingsWindowCloseButton"); } public function __chkboxM_click(_arg1:MouseEvent):void{ setNewMode("m", chkboxM); } public function __banPlus_click(_arg1:MouseEvent):void{ plusBan(); } public function set close(_arg1:Button):void{ var _local2:Object = this._94756344close; if (_local2 !== _arg1){ this._94756344close = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "close", _local2, _arg1)); }; } public function set topicBox(_arg1:VBox):void{ var _local2:Object = this._957319652topicBox; if (_local2 !== _arg1){ this._957319652topicBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "topicBox", _local2, _arg1)); }; } public function set opListCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._79099363opListCollection; if (_local2 !== _arg1){ this._79099363opListCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "opListCollection", _local2, _arg1)); }; } public function __chkboxI_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textInviteOnly; } private function _RoomSettingsWindow_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHintsTabOptions"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ m1.label = _arg1; }, "m1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHintsTabOptionsText"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ m1Text.htmlText = _arg1; }, "m1Text.htmlText"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHintsTabSecurity"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ m3.label = _arg1; }, "m3.label"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHintsTabSecurityText"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ m3Text.htmlText = _arg1; }, "m3Text.htmlText"); result[4] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHeaderRoomTopic"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label1.text = _arg1; }, "_RoomSettingsWindow_Label1.text"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHeaderRoomSettings"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label2.text = _arg1; }, "_RoomSettingsWindow_Label2.text"); result[6] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsSecret"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxS.label = _arg1; }, "chkboxS.label"); result[7] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsInvite"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxI.label = _arg1; }, "chkboxI.label"); result[8] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsUsers"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxL.label = _arg1; }, "chkboxL.label"); result[9] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsKey"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxK.label = _arg1; }, "chkboxK.label"); result[10] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHeaderMessageSettings"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label3.text = _arg1; }, "_RoomSettingsWindow_Label3.text"); result[11] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsExtMessages"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxN.label = _arg1; }, "chkboxN.label"); result[12] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsModerated"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxM.label = _arg1; }, "chkboxM.label"); result[13] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowHeaderHostSettings"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label4.text = _arg1; }, "_RoomSettingsWindow_Label4.text"); result[14] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowOptionsModTopic"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ chkboxT.label = _arg1; }, "chkboxT.label"); result[15] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowSecurityBans"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label5.text = _arg1; }, "_RoomSettingsWindow_Label5.text"); result[16] = binding; binding = new Binding(this, function ():Object{ return (bansCollection); }, function (_arg1:Object):void{ bans.dataProvider = _arg1; }, "bans.dataProvider"); result[17] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowSecurityBansUserHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_DataGridColumn1.headerText = _arg1; }, "_RoomSettingsWindow_DataGridColumn1.headerText"); result[18] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowSecurityBansModHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_DataGridColumn2.headerText = _arg1; }, "_RoomSettingsWindow_DataGridColumn2.headerText"); result[19] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowSecurityBansDateHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_DataGridColumn3.headerText = _arg1; }, "_RoomSettingsWindow_DataGridColumn3.headerText"); result[20] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationCreator"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label6.text = _arg1; }, "_RoomSettingsWindow_Label6.text"); result[21] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationRegDate"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label7.text = _arg1; }, "_RoomSettingsWindow_Label7.text"); result[22] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationOwnerPass"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ lblROPass.text = _arg1; }, "lblROPass.text"); result[23] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationAutoOps"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_Label9.text = _arg1; }, "_RoomSettingsWindow_Label9.text"); result[24] = binding; binding = new Binding(this, function ():Object{ return (opListCollection); }, function (_arg1:Object):void{ opList.dataProvider = _arg1; }, "opList.dataProvider"); result[25] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationTypeHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_DataGridColumn4.headerText = _arg1; }, "_RoomSettingsWindow_DataGridColumn4.headerText"); result[26] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowRegistrationNicknameHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _RoomSettingsWindow_DataGridColumn5.headerText = _arg1; }, "_RoomSettingsWindow_DataGridColumn5.headerText"); result[27] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowSaveButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ save.label = _arg1; }, "save.label"); result[28] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomSettingsWindowCloseButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ close.label = _arg1; }, "close.label"); result[29] = binding; return (result); } public function get m3Panel():Canvas{ return (this._509379522m3Panel); } public function get banPlus():Button{ return (this._337846711banPlus); } public function get bans():DataGrid{ return (this._3016260bans); } public function set opPlus(_arg1:Button):void{ var _local2:Object = this._1011206373opPlus; if (_local2 !== _arg1){ this._1011206373opPlus = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "opPlus", _local2, _arg1)); }; } public function set opList(_arg1:DataGrid):void{ var _local2:Object = this._1011328481opList; if (_local2 !== _arg1){ this._1011328481opList = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "opList", _local2, _arg1)); }; } public function set lblROPass(_arg1:Label):void{ var _local2:Object = this._849313060lblROPass; if (_local2 !== _arg1){ this._849313060lblROPass = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "lblROPass", _local2, _arg1)); }; } public function setNewServices(_arg1:String, _arg2:Object):void{ changesServices[_arg1] = _arg2; } public function get settingsAccordion():Accordion{ return (this._473440357settingsAccordion); } private function _RoomSettingsWindow_DataGridColumn4_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _RoomSettingsWindow_DataGridColumn4 = _local1; _local1.dataField = "type"; _local1.width = 50; BindingManager.executeBindings(this, "_RoomSettingsWindow_DataGridColumn4", _RoomSettingsWindow_DataGridColumn4); return (_local1); } public function set m4Text(_arg1:TextArea):void{ var _local2:Object = this._1123763404m4Text; if (_local2 !== _arg1){ this._1123763404m4Text = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m4Text", _local2, _arg1)); }; } public function set loadProgress(_arg1:ProgressBar):void{ var _local2:Object = this._282699059loadProgress; if (_local2 !== _arg1){ this._282699059loadProgress = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "loadProgress", _local2, _arg1)); }; } public function ___RoomSettingsWindow_Label6_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textCreator; } public function __txtSopPass_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textSoppass; } public function minusOp():void{ changesOpList[("del" + opList.selectedItem.nickname)] = new Array(opList.selectedItem.type, "del", opList.selectedItem.nickname); opListCollection.removeItemAt(opListCollection.getItemIndex(opList.selectedItem)); } public function addBanData(_arg1:String="", _arg2:String="", _arg3:String=""):void{ bansCollection.addItem({user:_arg1, mod:_arg2, date:_arg3}); saveBans(); } public function set txtSopPass(_arg1:TextInput):void{ var _local2:Object = this._767746869txtSopPass; if (_local2 !== _arg1){ this._767746869txtSopPass = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtSopPass", _local2, _arg1)); }; } public function __opMinus_click(_arg1:MouseEvent):void{ minusOp(); } public function __chkboxL_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textUserLimit; } public function set m3Panel(_arg1:Canvas):void{ var _local2:Object = this._509379522m3Panel; if (_local2 !== _arg1){ this._509379522m3Panel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m3Panel", _local2, _arg1)); }; } public function set bans(_arg1:DataGrid):void{ var _local2:Object = this._3016260bans; if (_local2 !== _arg1){ this._3016260bans = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "bans", _local2, _arg1)); }; } public function __chkboxT_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textModTopic; } private function roomSettingsAddBanEvent(_arg1:RoomSettingsAddBanEvent):void{ changesBanList[_arg1.banned] = "add"; addBanData(_arg1.banned, "NEW", ""); } public function set banPlus(_arg1:Button):void{ var _local2:Object = this._337846711banPlus; if (_local2 !== _arg1){ this._337846711banPlus = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banPlus", _local2, _arg1)); }; } public function get txtLint():TextInput{ return (this._878760301txtLint); } private function _RoomSettingsWindow_DataGridColumn3_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _RoomSettingsWindow_DataGridColumn3 = _local1; _local1.dataField = "date"; BindingManager.executeBindings(this, "_RoomSettingsWindow_DataGridColumn3", _RoomSettingsWindow_DataGridColumn3); return (_local1); } private function setNewMode(_arg1:String, _arg2:CheckBox):void{ switch (_arg1){ case "k": changesModes[_arg1] = new Array(_arg2.selected, txtKstring.text); break; case "l": changesModes[_arg1] = new Array(_arg2.selected, txtLint.text); break; default: changesModes[_arg1] = new Array(_arg2.selected); }; } public function set settingsContainerBox(_arg1:Canvas):void{ var _local2:Object = this._2136682163settingsContainerBox; if (_local2 !== _arg1){ this._2136682163settingsContainerBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "settingsContainerBox", _local2, _arg1)); }; } public function __close_click(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } public function ___RoomSettingsWindow_Label9_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textOpList; } public function get quietsCollection():ArrayCollection{ return (this._828995395quietsCollection); } public function __bans_mouseOver(_arg1:MouseEvent):void{ m3Text.htmlText = textBans; } private function saveSettings():void{ saveModes(); saveOps(); saveTopic(); this.dispatchEvent(new Event("close")); } public function set m1(_arg1:Canvas):void{ var _local2:Object = this._3428m1; if (_local2 !== _arg1){ this._3428m1 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m1", _local2, _arg1)); }; } public function get m1Text():TextArea{ return (this._1126533967m1Text); } public function set settingsAccordion(_arg1:Accordion):void{ var _local2:Object = this._473440357settingsAccordion; if (_local2 !== _arg1){ this._473440357settingsAccordion = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "settingsAccordion", _local2, _arg1)); }; } public function set m3(_arg1:Canvas):void{ var _local2:Object = this._3430m3; if (_local2 !== _arg1){ this._3430m3 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m3", _local2, _arg1)); }; } public function __txtLint_keyUp(_arg1:KeyboardEvent):void{ setNewMode("l", chkboxL); } public function set m4(_arg1:Canvas):void{ var _local2:Object = this._3431m4; if (_local2 !== _arg1){ this._3431m4 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m4", _local2, _arg1)); }; } public function __opList_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textOpList; } public function get m4Panel():Canvas{ return (this._480750371m4Panel); } private function accordionHandler(_arg1:Event):void{ switch (settingsAccordion.selectedChild){ case m1: settingsMainBox.selectedChild = m1Panel; break; case m3: settingsMainBox.selectedChild = m3Panel; break; case m4: settingsMainBox.selectedChild = m4Panel; break; }; } private function _RoomSettingsWindow_DataGridColumn2_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _RoomSettingsWindow_DataGridColumn2 = _local1; _local1.dataField = "mod"; _local1.width = 50; BindingManager.executeBindings(this, "_RoomSettingsWindow_DataGridColumn2", _RoomSettingsWindow_DataGridColumn2); return (_local1); } public function __txtKstring_keyUp(_arg1:KeyboardEvent):void{ setNewMode("k", chkboxK); } public function __chkboxL_click(_arg1:MouseEvent):void{ setNewMode("l", chkboxL); } public function get m1Panel():Canvas{ return (this._566637824m1Panel); } public function set save(_arg1:Button):void{ var _local2:Object = this._3522941save; if (_local2 !== _arg1){ this._3522941save = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "save", _local2, _arg1)); }; } public function set chkboxI(_arg1:CheckBox):void{ var _local2:Object = this._747829636chkboxI; if (_local2 !== _arg1){ this._747829636chkboxI = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxI", _local2, _arg1)); }; } public function set txtRegisterDate(_arg1:TextInput):void{ var _local2:Object = this._1320908673txtRegisterDate; if (_local2 !== _arg1){ this._1320908673txtRegisterDate = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtRegisterDate", _local2, _arg1)); }; } public function set chkboxL(_arg1:CheckBox):void{ var _local2:Object = this._747829639chkboxL; if (_local2 !== _arg1){ this._747829639chkboxL = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxL", _local2, _arg1)); }; } public function get opMinus():Button{ return (this._1285492977opMinus); } private function init():void{ var localStorage:SharedObject; var prop:String; settingsMainBox.executeChildBindings(true); txtInput.initialize(); topicBox.addChild(txtInput); settingsAccordion.addEventListener("valueCommit", accordionHandler); try { localStorage = SharedObject.getLocal("ewcStorage"); if (localStorage.size == 0){ debug.write("created... ewcInputStyle (RoomSettingsWindow)"); }; for (prop in localStorage.data) { trace(((("RoomSettingsWindow Formatting: " + prop) + " value = ") + localStorage.data[prop])); txtInput.updateTextStyles(prop, localStorage.data[prop]); }; } catch(e:Error) { debug.write(("Problem getting/setting the SharedObject (RoomSettingsWindow): " + e.message)); }; } public function set chkboxN(_arg1:CheckBox):void{ var _local2:Object = this._747829641chkboxN; if (_local2 !== _arg1){ this._747829641chkboxN = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxN", _local2, _arg1)); }; } public function sortComparator(_arg1:String, _arg2:String):int{ return (_arg1.toLowerCase().localeCompare(_arg2.toLowerCase())); } public function set chkboxM(_arg1:CheckBox):void{ var _local2:Object = this._747829640chkboxM; if (_local2 !== _arg1){ this._747829640chkboxM = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxM", _local2, _arg1)); }; } public function set chkboxS(_arg1:CheckBox):void{ var _local2:Object = this._747829646chkboxS; if (_local2 !== _arg1){ this._747829646chkboxS = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxS", _local2, _arg1)); }; } public function set chkboxT(_arg1:CheckBox):void{ var _local2:Object = this._747829647chkboxT; if (_local2 !== _arg1){ this._747829647chkboxT = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxT", _local2, _arg1)); }; } public function plusOp():void{ var _local1:RoomSettingsAddOp = RoomSettingsAddOp(Application.application.ramblerGUI.modalManager.addModal(("roomSettingsAddOp" + varRoomName.toLowerCase()), RoomSettingsAddOp, true)); _local1.varRoomName = varRoomName; _local1.addEventListener("RoomSettingsAddOpEvent", roomSettingsAddOpEvent); } private function _RoomSettingsWindow_DataGridColumn1_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); _RoomSettingsWindow_DataGridColumn1 = _local1; _local1.dataField = "user"; _local1.width = 200; BindingManager.executeBindings(this, "_RoomSettingsWindow_DataGridColumn1", _RoomSettingsWindow_DataGridColumn1); return (_local1); } public function set chkboxK(_arg1:CheckBox):void{ var _local2:Object = this._747829638chkboxK; if (_local2 !== _arg1){ this._747829638chkboxK = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chkboxK", _local2, _arg1)); }; } public function setMode(_arg1:Object):void{ switch (_arg1.mode){ case "m": modeSettings["m"] = new Array("mode", true); chkboxM.selected = true; break; case "h": modeSettings["h"] = new Array("mode", true); break; case "n": modeSettings["n"] = new Array("mode", true); chkboxN.selected = true; break; case "t": modeSettings["t"] = new Array("mode", true); chkboxT.selected = true; break; case "i": modeSettings["i"] = new Array("mode", true); chkboxI.selected = true; break; case "s": modeSettings["s"] = new Array("mode", true); chkboxS.selected = true; break; case "l": modeSettings["l"] = new Array("mode", _arg1.datum); chkboxL.selected = true; txtLint.text = _arg1.datum; break; case "k": modeSettings["k"] = new Array("mode", _arg1.datum); chkboxK.selected = true; txtKstring.text = _arg1.datum; }; } public function get lblROPass():Label{ return (this._849313060lblROPass); } public function __chkboxI_click(_arg1:MouseEvent):void{ setNewMode("i", chkboxI); } public function ___RoomSettingsWindow_Label7_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textRegDate; } public function addOpData(_arg1:String="", _arg2:String=""):void{ opListCollection.addItem({type:_arg1, nickname:_arg2}); } public function set txtLint(_arg1:TextInput):void{ var _local2:Object = this._878760301txtLint; if (_local2 !== _arg1){ this._878760301txtLint = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtLint", _local2, _arg1)); }; } public function set footer(_arg1:HBox):void{ var _local2:Object = this._1268861541footer; if (_local2 !== _arg1){ this._1268861541footer = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "footer", _local2, _arg1)); }; } public function set txtCreator(_arg1:TextInput):void{ var _local2:Object = this._471156836txtCreator; if (_local2 !== _arg1){ this._471156836txtCreator = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtCreator", _local2, _arg1)); }; } public function get txtSopPass():TextInput{ return (this._767746869txtSopPass); } public function get opPlus():Button{ return (this._1011206373opPlus); } public function get m4Text():TextArea{ return (this._1123763404m4Text); } public function __opPlus_click(_arg1:MouseEvent):void{ plusOp(); } public function ___RoomSettingsWindow_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ init(); } public function __chkboxM_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textModerated; } public function __banMinus_click(_arg1:MouseEvent):void{ minusBan(); } public function get loadProgress():ProgressBar{ return (this._282699059loadProgress); } public function get settingsContainerBox():Canvas{ return (this._2136682163settingsContainerBox); } public function set banMinus(_arg1:Button):void{ var _local2:Object = this._1886179935banMinus; if (_local2 !== _arg1){ this._1886179935banMinus = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banMinus", _local2, _arg1)); }; } public function __chkboxT_click(_arg1:MouseEvent):void{ setNewMode("t", chkboxT); } public function set txtKstring(_arg1:TextInput):void{ var _local2:Object = this._1918084180txtKstring; if (_local2 !== _arg1){ this._1918084180txtKstring = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "txtKstring", _local2, _arg1)); }; } private function saveBans():void{ var _local5:String; var _local1 = "+"; var _local2 = "-"; var _local3 = ""; var _local4 = ""; for (_local5 in changesBanList) { if (changesBanList[_local5] == "add"){ _local1 = (_local1 + "b"); _local3 = (_local3 + (_local5 + " ")); } else { _local2 = (_local2 + "b"); _local4 = (_local4 + (_local5 + " ")); }; }; if (_local1.length == 1){ _local1 = ""; }; if (_local2.length == 1){ _local2 = ""; }; if ((((_local1.length > 0)) || ((_local2.length > 0)))){ this.dispatchEvent(new RoomModeChangeRequest(varRoomName, ((((_local1 + _local2) + " ") + _local3) + _local4))); }; } public function get m1():Canvas{ return (this._3428m1); } public function set settingsMainBox(_arg1:ViewStack):void{ var _local2:Object = this._105154641settingsMainBox; if (_local2 !== _arg1){ this._105154641settingsMainBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "settingsMainBox", _local2, _arg1)); }; } public function get m3():Canvas{ return (this._3430m3); } public function get m4():Canvas{ return (this._3431m4); } public function set m1Text(_arg1:TextArea):void{ var _local2:Object = this._1126533967m1Text; if (_local2 !== _arg1){ this._1126533967m1Text = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m1Text", _local2, _arg1)); }; } public function set m3Text(_arg1:TextArea):void{ var _local2:Object = this._1124686925m3Text; if (_local2 !== _arg1){ this._1124686925m3Text = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m3Text", _local2, _arg1)); }; } public function minusBan():void{ changesBanList[bans.selectedItem.user] = "del"; bansCollection.removeItemAt(bansCollection.getItemIndex(bans.selectedItem)); saveBans(); } public function get chkboxL():CheckBox{ return (this._747829639chkboxL); } public function get chkboxM():CheckBox{ return (this._747829640chkboxM); } public function __chkboxN_click(_arg1:MouseEvent):void{ setNewMode("n", chkboxN); } public function get save():Button{ return (this._3522941save); } public function get chkboxS():CheckBox{ return (this._747829646chkboxS); } public function get chkboxT():CheckBox{ return (this._747829647chkboxT); } override public function initialize():void{ var target:RoomSettingsWindow; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RoomSettingsWindow_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function set quietsCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._828995395quietsCollection; if (_local2 !== _arg1){ this._828995395quietsCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "quietsCollection", _local2, _arg1)); }; } public function get chkboxI():CheckBox{ return (this._747829636chkboxI); } public function get chkboxK():CheckBox{ return (this._747829638chkboxK); } public function get txtRegisterDate():TextInput{ return (this._1320908673txtRegisterDate); } public function get footer():HBox{ return (this._1268861541footer); } public function get txtCreator():TextInput{ return (this._471156836txtCreator); } public function get banMinus():Button{ return (this._1886179935banMinus); } public function ___RoomSettingsWindow_Label5_mouseOver(_arg1:MouseEvent):void{ m3Text.htmlText = textBans; } private function saveTopic():void{ this.dispatchEvent(new RoomTopicChangeRequest(this.varRoomName, txtInput.htmlText)); } private function saveModes():void{ var _local5:String; var _local1 = "+"; var _local2 = "-"; var _local3 = ""; var _local4 = ""; for (_local5 in changesModes) { if (changesModes[_local5][0]){ _local1 = (_local1 + _local5); if ((((_local5 == "l")) || ((_local5 == "k")))){ _local3 = (_local3 + (changesModes[_local5][1] + " ")); }; } else { _local2 = (_local2 + _local5); if ((((_local5 == "l")) || ((_local5 == "k")))){ _local4 = (_local4 + (changesModes[_local5][1] + " ")); }; }; }; if (_local1.length == 1){ _local1 = ""; }; if (_local2.length == 1){ _local2 = ""; }; if ((((_local1.length > 0)) || ((_local2.length > 0)))){ this.dispatchEvent(new RoomModeChangeRequest(varRoomName, ((((_local1 + _local2) + " ") + _local3) + _local4))); }; } public function __chkboxK_click(_arg1:MouseEvent):void{ setNewMode("k", chkboxK); } public function __chkboxS_click(_arg1:MouseEvent):void{ setNewMode("s", chkboxS); } public function get txtKstring():TextInput{ return (this._1918084180txtKstring); } public function __txtSopPass_keyUp(_arg1:KeyboardEvent):void{ setNewServices("sopPass", txtSopPass.text); } public function __chkboxK_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textKey; } public function set m4Panel(_arg1:Canvas):void{ var _local2:Object = this._480750371m4Panel; if (_local2 !== _arg1){ this._480750371m4Panel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "m4Panel", _local2, _arg1)); }; } public function get chkboxN():CheckBox{ return (this._747829641chkboxN); } public function get settingsMainBox():ViewStack{ return (this._105154641settingsMainBox); } public function __chkboxS_mouseOver(_arg1:MouseEvent):void{ m1Text.htmlText = textSecret; } public function get m3Text():TextArea{ return (this._1124686925m3Text); } public function isLoaded():void{ if (modesLoaded){ if (Application.application.ramblerGUI.roomsManager.getRoomUser(this.varRoomName, Application.application.userName).op){ this.save.visible = true; }; this.enabled = true; loadProgress.visible = false; }; } public function __lblROPass_mouseOver(_arg1:MouseEvent):void{ m4Text.htmlText = textSoppass; } public function get close():Button{ return (this._94756344close); } private function saveOps():void{ var _local1:String; for (_local1 in changesOpList) { trace(((((("saveOps: " + changesOpList[_local1][1]) + " :: ") + changesOpList[_local1][2]) + " :: ") + changesOpList[_local1][0])); if (changesOpList[_local1][1] == "del"){ this.dispatchEvent(new RoomServicesDelOpRequest(varRoomName, changesOpList[_local1][0], changesOpList[_local1][2])); } else { this.dispatchEvent(new RoomServicesAddOpRequest(varRoomName, changesOpList[_local1][0], changesOpList[_local1][2])); }; }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RoomSettingsWindow._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 196
//RoomUserList (com.eightlabs.rambler.views.RoomUserList) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import mx.controls.dataGridClasses.*; import mx.collections.*; import flash.text.*; import flash.utils.*; import flash.display.*; import com.eightlabs.rambler.core.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; import mx.utils.*; public class RoomUserList extends Canvas implements IBindingClient { mx_internal var _watchers:Array; private var usersArray:Array; mx_internal var _bindingsByDestination:Object; private var _106224477userStatusCol:DataGridColumn; private var _58522287usersArrayCollection:ArrayCollection; mx_internal var _bindingsBeginWithWord:Object; private var _1020747515userDataGrid:DataGrid; private var _1420058794userNameCol:DataGridColumn; mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomUserList(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({width:250, childDescriptors:[new UIComponentDescriptor({type:DataGrid, id:"userDataGrid", propertiesFactory:function ():Object{ return ({percentWidth:100, itemRenderer:_RoomUserList_ClassFactory1_c(), percentHeight:100, doubleClickEnabled:true, showHeaders:false, columns:[_RoomUserList_DataGridColumn1_i(), _RoomUserList_DataGridColumn2_i()]}); }})]}); }}); usersArray = new Array(); _58522287usersArrayCollection = new ArrayCollection(usersArray); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.width = 250; this.percentHeight = 100; this.addEventListener("creationComplete", ___RoomUserList_Canvas1_creationComplete); } private function getNameByIndex(_arg1:int):String{ if (_arg1 != -1){ return (usersArrayCollection[_arg1]["userObject"].name); }; return (null); } public function get selectedUser():String{ var _local1:int = userDataGrid.selectedIndex; if (_local1 != -1){ return (usersArrayCollection[_local1]["userObject"].name); }; return (null); } private function _RoomUserList_ClassFactory2_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = RoomUserList_inlineComponent1; _local1.properties = {outerDocument:this}; return (_local1); } public function addUser(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false):void{ var _local7:RoomUser = new RoomUser(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); this.usersArrayCollection.addItem(new ObjectProxy({userStatus:_local7.getStatusSymbol(), userName:_local7.name, formattedUserName:_local7.getFormattedName(), userObject:_local7})); } override public function initialize():void{ var target:RoomUserList; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _RoomUserList_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function voiceUser(_arg1:String, _arg2:String, _arg3:Boolean):Boolean{ var _local4:RoomUser = removeUser(_arg2); if (_local4 != null){ addUser(_arg2, _local4.away, _arg3, _local4.op, _local4.halfop, _local4.self); return (true); }; return (false); } public function init():void{ addCustomEventListeners(); var _local1:Sort = new Sort(); _local1.fields = [new SortField(this.userStatusCol.dataField, false, true), new SortField(this.userNameCol.dataField, true)]; this.usersArrayCollection.sort = _local1; this.usersArrayCollection.refresh(); this.userDataGrid.dataProvider = this.usersArrayCollection; } public function ___RoomUserList_Canvas1_creationComplete(_arg1:FlexEvent):void{ init(); } public function get userStatusCol():DataGridColumn{ return (this._106224477userStatusCol); } public function renameUser(_arg1:String, _arg2:String):Boolean{ var _local3:RoomUser = removeUser(_arg1); if (_local3 != null){ _local3.name = _arg2; addUser(_local3.name, _local3.away, _local3.voice, _local3.op, _local3.halfop, _local3.self); return (true); }; return (false); } public function getUserByName(_arg1:String):RoomUser{ var _local2:int; while (_local2 < usersArrayCollection.length) { if (usersArrayCollection[_local2]["userName"].toLowerCase() == _arg1.toLowerCase()){ return (usersArrayCollection[_local2]["userObject"]); }; _local2++; }; return (null); } private function get usersArrayCollection():ArrayCollection{ return (this._58522287usersArrayCollection); } public function get userNameCol():DataGridColumn{ return (this._1420058794userNameCol); } private function _RoomUserList_DataGridColumn1_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); userStatusCol = _local1; _local1.headerText = ""; _local1.dataField = "userStatus"; _local1.width = 16; _local1.itemRenderer = _RoomUserList_ClassFactory2_c(); _local1.setStyle("textAlign", "center"); return (_local1); } public function clearUsers():void{ usersArrayCollection.removeAll(); } public function halfopUser(_arg1:String, _arg2:String, _arg3:Boolean):Boolean{ var _local4:RoomUser = removeUser(_arg2); if (_local4 != null){ addUser(_arg2, _local4.away, _local4.voice, _local4.op, _arg3, _local4.self); return (true); }; return (false); } public function set userStatusCol(_arg1:DataGridColumn):void{ var _local2:Object = this._106224477userStatusCol; if (_local2 !== _arg1){ this._106224477userStatusCol = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "userStatusCol", _local2, _arg1)); }; } private function _RoomUserList_ClassFactory1_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = HtmlRenderer; return (_local1); } private function _RoomUserList_ClassFactory3_c():ClassFactory{ var _local1:ClassFactory = new ClassFactory(); _local1.generator = RoomUserList_inlineComponent2; _local1.properties = {outerDocument:this}; return (_local1); } public function opUser(_arg1:String, _arg2:String, _arg3:Boolean):Boolean{ var _local4:RoomUser = removeUser(_arg2); if (_local4 != null){ addUser(_arg2, _local4.away, _local4.voice, _arg3, _local4.halfop, _local4.self); return (true); }; return (false); } public function set userNameCol(_arg1:DataGridColumn):void{ var _local2:Object = this._1420058794userNameCol; if (_local2 !== _arg1){ this._1420058794userNameCol = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "userNameCol", _local2, _arg1)); }; } private function _RoomUserList_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("RoomUserListNameHeader"); } private function addCustomEventListeners():void{ this.userDataGrid.addEventListener(MouseEvent.DOUBLE_CLICK, optionRequest); } private function optionRequest(_arg1:Event):void{ dispatchEvent(new OptionRequestEvent(this.getUserByName(this.selectedUser).name)); } private function set usersArrayCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._58522287usersArrayCollection; if (_local2 !== _arg1){ this._58522287usersArrayCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "usersArrayCollection", _local2, _arg1)); }; } public function tabComplete(_arg1:String):String{ var _local2:int; while (_local2 < usersArrayCollection.length) { if (usersArrayCollection[_local2]["userName"].toLowerCase().indexOf(_arg1.toLowerCase()) == 0){ return (usersArrayCollection[_local2]["userName"]); }; _local2++; }; return (null); } public function removeUser(_arg1:String):RoomUser{ var _local2:RoomUser; var _local3:int; while (_local3 < usersArrayCollection.length) { if (usersArrayCollection[_local3]["userName"].toLowerCase() == _arg1.toLowerCase()){ _local2 = usersArrayCollection[_local3]["userObject"]; usersArrayCollection.removeItemAt(_local3); return (_local2); }; _local3++; }; return (null); } private function _RoomUserList_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomUserListNameHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ userNameCol.headerText = _arg1; }, "userNameCol.headerText"); result[0] = binding; return (result); } private function _RoomUserList_DataGridColumn2_i():DataGridColumn{ var _local1:DataGridColumn = new DataGridColumn(); userNameCol = _local1; _local1.dataField = "userName"; _local1.itemRenderer = _RoomUserList_ClassFactory3_c(); BindingManager.executeBindings(this, "userNameCol", userNameCol); return (_local1); } public function get userDataGrid():DataGrid{ return (this._1020747515userDataGrid); } public function set userDataGrid(_arg1:DataGrid):void{ var _local2:Object = this._1020747515userDataGrid; if (_local2 !== _arg1){ this._1020747515userDataGrid = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "userDataGrid", _local2, _arg1)); }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RoomUserList._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 197
//RoomUserList_inlineComponent1 (com.eightlabs.rambler.views.RoomUserList_inlineComponent1) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomUserList_inlineComponent1 extends Image implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindings:Array; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; private var _88844982outerDocument:RoomUserList; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomUserList_inlineComponent1(){ _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); } public function set outerDocument(_arg1:RoomUserList):void{ var _local2:Object = this._88844982outerDocument; if (_local2 !== _arg1){ this._88844982outerDocument = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "outerDocument", _local2, _arg1)); }; } private function _RoomUserList_inlineComponent1_bindingExprs():void{ var _local1:*; _local1 = data.userStatus; } override public function initialize():void{ var target:RoomUserList_inlineComponent1; var watcherSetupUtilClass:Object; var bindings:Array = _RoomUserList_inlineComponent1_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } private function _RoomUserList_inlineComponent1_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():Object{ return (data.userStatus); }, function (_arg1:Object):void{ this.source = _arg1; }, "this.source"); result[0] = binding; return (result); } public function get outerDocument():RoomUserList{ return (this._88844982outerDocument); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RoomUserList_inlineComponent1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 198
//RoomUserList_inlineComponent2 (com.eightlabs.rambler.views.RoomUserList_inlineComponent2) package com.eightlabs.rambler.views { import flash.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class RoomUserList_inlineComponent2 extends RamblerLabel implements IBindingClient { mx_internal var _bindingsByDestination:Object; mx_internal var _bindings:Array; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; private var _88844982outerDocument:RoomUserList; private static var _watcherSetupUtil:IWatcherSetupUtil; public function RoomUserList_inlineComponent2(){ _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); this.selectable = false; } private function _RoomUserList_inlineComponent2_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = data.formattedUserName; var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.htmlText = _arg1; }, "this.htmlText"); result[0] = binding; return (result); } public function set outerDocument(_arg1:RoomUserList):void{ var _local2:Object = this._88844982outerDocument; if (_local2 !== _arg1){ this._88844982outerDocument = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "outerDocument", _local2, _arg1)); }; } private function _RoomUserList_inlineComponent2_bindingExprs():void{ var _local1:*; _local1 = data.formattedUserName; } override public function initialize():void{ var target:RoomUserList_inlineComponent2; var watcherSetupUtilClass:Object; var bindings:Array = _RoomUserList_inlineComponent2_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get outerDocument():RoomUserList{ return (this._88844982outerDocument); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ RoomUserList_inlineComponent2._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 199
//UserManagementPanel (com.eightlabs.rambler.views.UserManagementPanel) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class UserManagementPanel extends Canvas implements IBindingClient { private var lastRoomIndex:int;// = 0 mx_internal var _bindingsBeginWithWord:Object; mx_internal var _bindingsByDestination:Object; mx_internal var _watchers:Array; private var _1379882170roomTab:Canvas; private var _438813072umAccordion:Accordion; private var lastPmIndex:int;// = 0 mx_internal var _bindings:Array; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function UserManagementPanel(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"roomTab", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, verticalScrollPolicy:"auto", horizontalScrollPolicy:"off", childDescriptors:[new UIComponentDescriptor({type:Accordion, id:"umAccordion", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.paddingTop = 0; this.paddingBottom = 0; this.paddingLeft = 0; this.paddingRight = 0; }; this.creationPolicy = "all"; this.addEventListener("creationComplete", ___UserManagementPanel_Canvas1_creationComplete); } public function ___UserManagementPanel_Canvas1_creationComplete(_arg1:FlexEvent):void{ init(); } private function _UserManagementPanel_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("AccordionRoomsTab"); } private function init():void{ addCustomEventListeners(); } public function addRoomCanvas(_arg1:Canvas):void{ this.umAccordion.addChildAt(_arg1, lastRoomIndex); lastRoomIndex++; this.umAccordion.getHeaderAt(this.umAccordion.getChildIndex(_arg1)).styleName = "roomAccordionButton"; } public function addPMCanvas(_arg1:Canvas):void{ this.umAccordion.addChildAt(_arg1, (lastPmIndex + lastRoomIndex)); lastPmIndex++; this.umAccordion.getHeaderAt(this.umAccordion.getChildIndex(_arg1)).styleName = "pmAccordionButton"; } private function addCustomEventListeners():void{ umAccordion.addEventListener(FlexEvent.VALUE_COMMIT, doYouKnowWhereYourChildrenAre); } public function set umAccordion(_arg1:Accordion):void{ var _local2:Object = this._438813072umAccordion; if (_local2 !== _arg1){ this._438813072umAccordion = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "umAccordion", _local2, _arg1)); }; } private function doYouKnowWhereYourChildrenAre(_arg1:Event):void{ if (umAccordion.selectedIndex == -1){ dispatchEvent(new TabAllClosedEvent()); }; } private function _UserManagementPanel_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AccordionRoomsTab"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ roomTab.label = _arg1; }, "roomTab.label"); result[0] = binding; return (result); } override public function initialize():void{ var target:UserManagementPanel; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _UserManagementPanel_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function set roomTab(_arg1:Canvas):void{ var _local2:Object = this._1379882170roomTab; if (_local2 !== _arg1){ this._1379882170roomTab = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "roomTab", _local2, _arg1)); }; } public function removeRoomCanvas(_arg1:Canvas):void{ this.umAccordion.removeChild(_arg1); lastRoomIndex--; } public function removePMCanvas(_arg1:Canvas):void{ this.umAccordion.removeChild(_arg1); lastPmIndex--; } public function get roomTab():Canvas{ return (this._1379882170roomTab); } public function get umAccordion():Accordion{ return (this._438813072umAccordion); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 200
//UserOptionPanel (com.eightlabs.rambler.views.UserOptionPanel) package com.eightlabs.rambler.views { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class UserOptionPanel extends RamblerPanel implements IBindingClient { private var _documentDescriptor_:UIComponentDescriptor; public var roomName:String; public var userName:String; private var _1845406998optionBox:VBox; public var userIsOp:Boolean; private var _110193op2:HBox; private var _617017158buttonHalfOp:Button; private var _1108005709buttonOp:Button; public var userIsHalfOp:Boolean; private var _110192op1:HBox; mx_internal var _watchers:Array; mx_internal var _bindingsBeginWithWord:Object; public var recipientIsVoice:Boolean; mx_internal var _bindingsByDestination:Object; public var recipientIsHalfop:Boolean; private var _947248663buttonProfile:Button; public var recipientIsOp:Boolean; mx_internal var _bindings:Array; private var _1108005681buttonPm:Button; private var _907042390buttonRemove:Button; private var _1767868128buttonVoice:Button; private static var _watcherSetupUtil:IWatcherSetupUtil; public function UserOptionPanel(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:350, height:140, creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:VBox, id:"optionBox", stylesFactory:function ():void{ this.horizontalAlign = "center"; }, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"buttonPm", propertiesFactory:function ():Object{ return ({width:150}); }}), new UIComponentDescriptor({type:Button, id:"buttonProfile", propertiesFactory:function ():Object{ return ({width:150}); }})]}); }}), new UIComponentDescriptor({type:HBox, id:"op1", propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"buttonOp", propertiesFactory:function ():Object{ return ({label:"", width:150}); }}), new UIComponentDescriptor({type:Button, id:"buttonHalfOp", propertiesFactory:function ():Object{ return ({label:"", width:150}); }})]}); }}), new UIComponentDescriptor({type:HBox, id:"op2", propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"buttonVoice", propertiesFactory:function ():Object{ return ({label:"", width:150}); }}), new UIComponentDescriptor({type:Button, id:"buttonRemove", propertiesFactory:function ():Object{ return ({width:150}); }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.horizontalAlign = "center"; this.verticalAlign = "middle"; }; this.layout = "vertical"; this.width = 350; this.height = 140; this.creationPolicy = "all"; this.addEventListener("creationComplete", ___UserOptionPanel_RamblerPanel1_creationComplete); } private function voiceEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsVoiceEvent(this.userName, this.roomName, !(recipientIsVoice))); } public function ___UserOptionPanel_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ init(); } public function set buttonHalfOp(_arg1:Button):void{ var _local2:Object = this._617017158buttonHalfOp; if (_local2 !== _arg1){ this._617017158buttonHalfOp = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonHalfOp", _local2, _arg1)); }; } private function pmEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsPrivateEvent(this.userName)); } override public function initialize():void{ var target:UserOptionPanel; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _UserOptionPanel_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get buttonVoice():Button{ return (this._1767868128buttonVoice); } public function ready():void{ if (userIsOp){ } else { if (userIsHalfOp){ optionBox.removeChild(op1); this.height = 100; } else { optionBox.removeChild(op1); optionBox.removeChild(op2); this.height = 75; }; }; if (recipientIsOp){ buttonOp.label = TextFormatter.getText("UserOptionWindowRemoveHost"); } else { buttonOp.label = TextFormatter.getText("UserOptionWindowMakeHost"); }; if (recipientIsVoice){ buttonVoice.label = TextFormatter.getText("UserOptionWindowRemoveSpeaker"); } else { buttonVoice.label = TextFormatter.getText("UserOptionWindowMakeSpeaker"); }; if (recipientIsHalfop){ buttonHalfOp.label = TextFormatter.getText("UserOptionWindowRemoveAssistant"); } else { buttonHalfOp.label = TextFormatter.getText("UserOptionWindowMakeAssistant"); }; } private function halfopEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsHalfopEvent(this.userName, this.roomName, !(recipientIsHalfop))); } private function init():void{ this.setFocus(); this.buttonPm.addEventListener("click", pmEvent); this.buttonProfile.addEventListener("click", profileEvent); this.buttonOp.addEventListener("click", opEvent); this.buttonVoice.addEventListener("click", voiceEvent); this.buttonRemove.addEventListener("click", removeEvent); this.buttonHalfOp.addEventListener("click", halfopEvent); this.addEventListener("keyUp", keyEvent); } public function set buttonPm(_arg1:Button):void{ var _local2:Object = this._1108005681buttonPm; if (_local2 !== _arg1){ this._1108005681buttonPm = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonPm", _local2, _arg1)); }; } public function get buttonProfile():Button{ return (this._947248663buttonProfile); } private function _UserOptionPanel_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("ProfileWindowTitle"); _local1 = TextFormatter.getText("UserOptionWindowPM"); _local1 = TextFormatter.getText("UserOptionWindowProfile"); _local1 = TextFormatter.getText("UserOptionWindowRemove"); } private function opEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsOpEvent(this.userName, this.roomName, !(recipientIsOp))); } private function _UserOptionPanel_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ProfileWindowTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionWindowPM"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ buttonPm.label = _arg1; }, "buttonPm.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionWindowProfile"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ buttonProfile.label = _arg1; }, "buttonProfile.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionWindowRemove"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ buttonRemove.label = _arg1; }, "buttonRemove.label"); result[3] = binding; return (result); } public function set buttonProfile(_arg1:Button):void{ var _local2:Object = this._947248663buttonProfile; if (_local2 !== _arg1){ this._947248663buttonProfile = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonProfile", _local2, _arg1)); }; } public function set buttonVoice(_arg1:Button):void{ var _local2:Object = this._1767868128buttonVoice; if (_local2 !== _arg1){ this._1767868128buttonVoice = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonVoice", _local2, _arg1)); }; } public function get optionBox():VBox{ return (this._1845406998optionBox); } public function set buttonRemove(_arg1:Button):void{ var _local2:Object = this._907042390buttonRemove; if (_local2 !== _arg1){ this._907042390buttonRemove = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonRemove", _local2, _arg1)); }; } public function get buttonHalfOp():Button{ return (this._617017158buttonHalfOp); } public function set optionBox(_arg1:VBox):void{ var _local2:Object = this._1845406998optionBox; if (_local2 !== _arg1){ this._1845406998optionBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "optionBox", _local2, _arg1)); }; } public function get buttonOp():Button{ return (this._1108005709buttonOp); } public function get buttonPm():Button{ return (this._1108005681buttonPm); } public function set op2(_arg1:HBox):void{ var _local2:Object = this._110193op2; if (_local2 !== _arg1){ this._110193op2 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "op2", _local2, _arg1)); }; } public function get buttonRemove():Button{ return (this._907042390buttonRemove); } public function set op1(_arg1:HBox):void{ var _local2:Object = this._110192op1; if (_local2 !== _arg1){ this._110192op1 = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "op1", _local2, _arg1)); }; } private function profileEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsProfileEvent(this.userName)); } public function set buttonOp(_arg1:Button):void{ var _local2:Object = this._1108005709buttonOp; if (_local2 !== _arg1){ this._1108005709buttonOp = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "buttonOp", _local2, _arg1)); }; } private function removeEvent(_arg1:Event):void{ this.dispatchEvent(new OptionsRemoveEvent(this.userName, this.roomName)); } public function get op1():HBox{ return (this._110192op1); } public function get op2():HBox{ return (this._110193op2); } private function keyEvent(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case 49: pmEvent(_arg1); break; case 50: profileEvent(_arg1); break; case 51: opEvent(_arg1); break; case 52: halfopEvent(_arg1); case 53: removeEvent(_arg1); break; case 54: voiceEvent(_arg1); break; default: break; }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 201
//UserOptionRemovePanel (com.eightlabs.rambler.views.UserOptionRemovePanel) package com.eightlabs.rambler.views { import com.eightlabs.IRCLib.events.*; import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import mx.controls.*; import mx.containers.*; import flash.text.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class UserOptionRemovePanel extends RamblerPanel implements IBindingClient { mx_internal var _watchers:Array; private var _720610327kickBan:RadioButton; private var _1367724422cancel:Button; private var _282699059loadProgress:ProgressBar; private var _935888146removalOptions:RadioButtonGroup; private var _96417add:Button; private var _337946725banMask:TextInput; private var _1493275391banMaskForm:FormItem; mx_internal var _bindingsByDestination:Object; mx_internal var _bindingsBeginWithWord:Object; public var varRoomName:String; private var _1382902880banCustom:RadioButton; private var _1837876111banOptions:RadioButtonGroup; public var varNickName:String; private var _337853537banPerm:CheckBox; private var _337909742banNick:RadioButton; private var _1396372444banOpt:FormItem; public var _UserOptionRemovePanel_FormItem1:FormItem; mx_internal var _bindings:Array; private var _863683822kickOnly:RadioButton; private var _documentDescriptor_:UIComponentDescriptor; private var _3148996form:Form; private static var _watcherSetupUtil:IWatcherSetupUtil; public function UserOptionRemovePanel(){ _documentDescriptor_ = new UIComponentDescriptor({type:RamblerPanel, propertiesFactory:function ():Object{ return ({width:300, height:170, childDescriptors:[new UIComponentDescriptor({type:Form, id:"form", propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:FormItem, id:"_UserOptionRemovePanel_FormItem1", events:{click:"___UserOptionRemovePanel_FormItem1_click"}, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:RadioButton, id:"kickOnly", propertiesFactory:function ():Object{ return ({groupName:"removalOptions", selected:true}); }}), new UIComponentDescriptor({type:RadioButton, id:"kickBan", propertiesFactory:function ():Object{ return ({groupName:"removalOptions"}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"banOpt", events:{click:"__banOpt_click"}, propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:CheckBox, id:"banPerm"}), new UIComponentDescriptor({type:RadioButton, id:"banNick", propertiesFactory:function ():Object{ return ({groupName:"banOptions", selected:true}); }}), new UIComponentDescriptor({type:RadioButton, id:"banCustom", propertiesFactory:function ():Object{ return ({groupName:"banOptions"}); }})]}); }}), new UIComponentDescriptor({type:FormItem, id:"banMaskForm", propertiesFactory:function ():Object{ return ({percentWidth:100, childDescriptors:[new UIComponentDescriptor({type:TextInput, id:"banMask", events:{enter:"__banMask_enter"}, propertiesFactory:function ():Object{ return ({percentWidth:100}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ControlBar, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:ProgressBar, id:"loadProgress", propertiesFactory:function ():Object{ return ({width:100, indeterminate:true, label:"", labelPlacement:"left"}); }}), new UIComponentDescriptor({type:HBox, stylesFactory:function ():void{ this.right = "0"; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"add", events:{click:"__add_click"}}), new UIComponentDescriptor({type:Button, id:"cancel", events:{click:"__cancel_click"}})]}); }})]}); }})]}); }})]}); }}); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.enabled = false; this.layout = "vertical"; this.width = 300; this.height = 170; _UserOptionRemovePanel_RadioButtonGroup2_i(); _UserOptionRemovePanel_RadioButtonGroup1_i(); this.addEventListener("creationComplete", ___UserOptionRemovePanel_RamblerPanel1_creationComplete); } public function __add_click(_arg1:MouseEvent):void{ submit(); } private function _UserOptionRemovePanel_RadioButtonGroup2_i():RadioButtonGroup{ var _local1:RadioButtonGroup = new RadioButtonGroup(); banOptions = _local1; _local1.initialized(this, "banOptions"); return (_local1); } public function __banOpt_click(_arg1:MouseEvent):void{ updateOptions(); } public function get banOptions():RadioButtonGroup{ return (this._1837876111banOptions); } override public function initialize():void{ var target:UserOptionRemovePanel; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _UserOptionRemovePanel_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get banNick():RadioButton{ return (this._337909742banNick); } private function updateOptions():void{ if (kickBan.selected){ if (!form.contains(banOpt)){ form.addChild(banOpt); this.height = 220; }; } else { if (form.contains(banOpt)){ form.removeChild(banOpt); }; if (form.contains(banMaskForm)){ form.removeChild(banMaskForm); }; this.height = 170; }; if (((kickBan.selected) && (banCustom.selected))){ if (!form.contains(banMaskForm)){ form.addChild(banMaskForm); this.height = 0xFF; }; } else { if (((kickBan.selected) && (!(banCustom.selected)))){ if (form.contains(banMaskForm)){ form.removeChild(banMaskForm); }; this.height = 220; }; }; } private function submit(_arg1:Event=null):void{ var _local2:Boolean; var _local3:String; if (kickOnly.selected){ _local2 = false; } else { if (kickBan.selected){ _local2 = true; }; }; if (_local2){ if (banNick.selected){ _local3 = (this.varNickName + "!*@*"); } else { if (banCustom.selected){ _local3 = banMask.text; }; }; }; if ((((((_local2 == true)) && (!((_local3 == null))))) || ((_local2 == false)))){ this.dispatchEvent(new RoomOptionsRemoveUserEvent(this.varRoomName, this.varNickName, _local2, this.banPerm.selected, _local3)); this.dispatchEvent(new Event("close")); }; } public function get kickOnly():RadioButton{ return (this._863683822kickOnly); } public function get banMask():TextInput{ return (this._337946725banMask); } public function get add():Button{ return (this._96417add); } public function set banNick(_arg1:RadioButton):void{ var _local2:Object = this._337909742banNick; if (_local2 !== _arg1){ this._337909742banNick = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banNick", _local2, _arg1)); }; } public function get banOpt():FormItem{ return (this._1396372444banOpt); } public function ___UserOptionRemovePanel_FormItem1_click(_arg1:MouseEvent):void{ updateOptions(); } public function set banOptions(_arg1:RadioButtonGroup):void{ var _local2:Object = this._1837876111banOptions; if (_local2 !== _arg1){ this._1837876111banOptions = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banOptions", _local2, _arg1)); }; } private function _UserOptionRemovePanel_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("UserOptionRemovePanelTitle"); _local1 = TextFormatter.getText("UserOptionRemovePanelOptions"); _local1 = TextFormatter.getText("UserOptionRemovePanelKick"); _local1 = TextFormatter.getText("UserOptionRemovePanelKickBan"); _local1 = TextFormatter.getText("UserOptionRemovePanelBanOptions"); _local1 = TextFormatter.getText("UserOptionRemovePanelPerm"); _local1 = TextFormatter.getText("UserOptionRemovePanelBan"); _local1 = TextFormatter.getText("UserOptionRemovePanelCustom"); _local1 = TextFormatter.getText("UserOptionRemovePanelBanMask"); _local1 = TextFormatter.getText("UserOptionRemovePanelRemove"); _local1 = TextFormatter.getText("RoomKeyWindowCancelButton"); } public function get removalOptions():RadioButtonGroup{ return (this._935888146removalOptions); } public function set add(_arg1:Button):void{ var _local2:Object = this._96417add; if (_local2 !== _arg1){ this._96417add = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "add", _local2, _arg1)); }; } public function set banMask(_arg1:TextInput):void{ var _local2:Object = this._337946725banMask; if (_local2 !== _arg1){ this._337946725banMask = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banMask", _local2, _arg1)); }; } public function get banPerm():CheckBox{ return (this._337853537banPerm); } public function get loadProgress():ProgressBar{ return (this._282699059loadProgress); } public function set banPerm(_arg1:CheckBox):void{ var _local2:Object = this._337853537banPerm; if (_local2 !== _arg1){ this._337853537banPerm = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banPerm", _local2, _arg1)); }; } public function set banCustom(_arg1:RadioButton):void{ var _local2:Object = this._1382902880banCustom; if (_local2 !== _arg1){ this._1382902880banCustom = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banCustom", _local2, _arg1)); }; } public function set form(_arg1:Form):void{ var _local2:Object = this._3148996form; if (_local2 !== _arg1){ this._3148996form = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "form", _local2, _arg1)); }; } private function creationCompleteEvent():void{ form.removeChildAt(2); form.removeChildAt(1); this.addEventListener("keyUp", keyEvent); } public function set kickOnly(_arg1:RadioButton):void{ var _local2:Object = this._863683822kickOnly; if (_local2 !== _arg1){ this._863683822kickOnly = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "kickOnly", _local2, _arg1)); }; } public function whoisHandler(_arg1:WhoisEvent):void{ var _local2:String = ((((_arg1.whois.nickName + "!") + _arg1.whois.userName) + "@") + _arg1.whois.hostName); banMask.text = _local2.replace("XXXXX", "*"); loadProgress.visible = false; this.enabled = true; } private function _UserOptionRemovePanel_RadioButtonGroup1_i():RadioButtonGroup{ var _local1:RadioButtonGroup = new RadioButtonGroup(); removalOptions = _local1; _local1.initialized(this, "removalOptions"); return (_local1); } private function _UserOptionRemovePanel_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelTitle"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ this.title = _arg1; }, "this.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelOptions"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ _UserOptionRemovePanel_FormItem1.label = _arg1; }, "_UserOptionRemovePanel_FormItem1.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelKick"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ kickOnly.label = _arg1; }, "kickOnly.label"); result[2] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelKickBan"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ kickBan.label = _arg1; }, "kickBan.label"); result[3] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelBanOptions"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ banOpt.label = _arg1; }, "banOpt.label"); result[4] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelPerm"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ banPerm.label = _arg1; }, "banPerm.label"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelBan"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ banNick.label = _arg1; }, "banNick.label"); result[6] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelCustom"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ banCustom.label = _arg1; }, "banCustom.label"); result[7] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelBanMask"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ banMaskForm.label = _arg1; }, "banMaskForm.label"); result[8] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("UserOptionRemovePanelRemove"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ add.label = _arg1; }, "add.label"); result[9] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("RoomKeyWindowCancelButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ cancel.label = _arg1; }, "cancel.label"); result[10] = binding; return (result); } public function __banMask_enter(_arg1:FlexEvent):void{ submit(); } public function set kickBan(_arg1:RadioButton):void{ var _local2:Object = this._720610327kickBan; if (_local2 !== _arg1){ this._720610327kickBan = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "kickBan", _local2, _arg1)); }; } public function get form():Form{ return (this._3148996form); } public function set removalOptions(_arg1:RadioButtonGroup):void{ var _local2:Object = this._935888146removalOptions; if (_local2 !== _arg1){ this._935888146removalOptions = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "removalOptions", _local2, _arg1)); }; } public function get banCustom():RadioButton{ return (this._1382902880banCustom); } public function __cancel_click(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } public function set loadProgress(_arg1:ProgressBar):void{ var _local2:Object = this._282699059loadProgress; if (_local2 !== _arg1){ this._282699059loadProgress = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "loadProgress", _local2, _arg1)); }; } public function set banOpt(_arg1:FormItem):void{ var _local2:Object = this._1396372444banOpt; if (_local2 !== _arg1){ this._1396372444banOpt = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banOpt", _local2, _arg1)); }; } public function get kickBan():RadioButton{ return (this._720610327kickBan); } public function ___UserOptionRemovePanel_RamblerPanel1_creationComplete(_arg1:FlexEvent):void{ creationCompleteEvent(); } public function set cancel(_arg1:Button):void{ var _local2:Object = this._1367724422cancel; if (_local2 !== _arg1){ this._1367724422cancel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "cancel", _local2, _arg1)); }; } public function get cancel():Button{ return (this._1367724422cancel); } public function keyEvent(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 13){ this.submit(); }; } public function set banMaskForm(_arg1:FormItem):void{ var _local2:Object = this._1493275391banMaskForm; if (_local2 !== _arg1){ this._1493275391banMaskForm = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "banMaskForm", _local2, _arg1)); }; } public function get banMaskForm():FormItem{ return (this._1493275391banMaskForm); } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ _slot1._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler.views
Section 202
//rambler (com.eightlabs.rambler.rambler) package com.eightlabs.rambler { import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import mx.controls.*; import mx.containers.*; import mx.collections.*; import com.eightlabs.rambler.controllers.*; import flash.text.*; import com.eightlabs.utilities.advertisements.*; import flash.utils.*; import flash.display.*; import flash.geom.*; import com.eightlabs.utilities.*; import com.eightlabs.utilities.text.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; public class rambler extends Canvas implements IBindingClient { private var _338793908umPanel:UserManagementPanel; private var varModalManager:ModalManager_252; private var varPrivatesManager:PrivatesManager; private var timeStampItem:Object; private var fontSmallItem:Object; private var roomSetItem:Object; private var themeClassicItem:Object; private var _547807896debugbox:TextArea; private var fontNormalItem:Object; mx_internal var _bindingsByDestination:Object; private var unregisteredPMItem:Object; private var fontMenu:Object; private var varRoomsManager:RoomsManager; private var roomRegItem:Object; private var themeNightItem:Object; private var _1115176597debugcanvas:Canvas; private var _1402058424rightPanel:TitleWindow; private var _1975739188listRoomsButton:Button; private var themePinkItem:Object; private var advancedViewItem:Object; private var _3313766mBar:PopUpMenuButton; mx_internal var _watchers:Array; private var nickChangeItem:Object; private var _690449065advertBox:AdBox; private var varWindowManager:WindowManager; private var _1820698334debugtxtin:TextInput; private var themeDayItem:Object; private var fontMassiveItem:Object; mx_internal var _bindingsBeginWithWord:Object; private var _1098128840ctrlbar:ControlBar; private var themeMenu:Object; private var currentTheme:String;// = "night" private var _226797582menuBarCollection:ArrayCollection; mx_internal var _bindings:Array; private var nickChangePasswordItem:Object; private var _1157237035chatboxStack:ViewStack; private var nickRegItem:Object; private var _611478090imgLoader:ProgressBar; private var _documentDescriptor_:UIComponentDescriptor; private static var _watcherSetupUtil:IWatcherSetupUtil; public function rambler(){ _documentDescriptor_ = new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:Canvas, propertiesFactory:function ():Object{ return ({percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:TitleWindow, id:"rightPanel", stylesFactory:function ():void{ this.horizontalAlign = "center"; this.top = "10"; this.bottom = "10"; this.right = "5"; this.paddingBottom = 0; }, propertiesFactory:function ():Object{ return ({width:225, layout:"horizontal", showCloseButton:false, verticalScrollPolicy:"off", includeInLayout:true, horizontalScrollPolicy:"off", visible:false, childDescriptors:[new UIComponentDescriptor({type:UserManagementPanel, id:"umPanel", propertiesFactory:function ():Object{ return ({percentHeight:100, percentWidth:100}); }}), new UIComponentDescriptor({type:ControlBar, id:"ctrlbar", stylesFactory:function ():void{ this.horizontalAlign = "center"; this.verticalAlign = "top"; this.bottom = "0"; this.paddingTop = 0; this.paddingBottom = 0; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:VBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:HBox, propertiesFactory:function ():Object{ return ({childDescriptors:[new UIComponentDescriptor({type:Button, id:"listRoomsButton", events:{click:"__listRoomsButton_click"}}), new UIComponentDescriptor({type:PopUpMenuButton, id:"mBar", events:{itemClick:"__mBar_itemClick"}, stylesFactory:function ():void{ this.popUpStyleName = "popUpButton"; }, propertiesFactory:function ():Object{ return ({labelField:"label"}); }})]}); }}), new UIComponentDescriptor({type:AdBox, id:"advertBox", stylesFactory:function ():void{ this.paddingTop = 0; this.paddingBottom = 0; this.paddingLeft = 0; this.paddingRight = 0; }, propertiesFactory:function ():Object{ return ({width:220}); }})]}); }})]}); }})]}); }}), new UIComponentDescriptor({type:ViewStack, id:"chatboxStack", stylesFactory:function ():void{ this.bottom = "10"; this.left = "10"; this.right = "245"; this.top = "10"; }, propertiesFactory:function ():Object{ return ({creationPolicy:"all", childDescriptors:[new UIComponentDescriptor({type:Canvas, id:"debugcanvas", propertiesFactory:function ():Object{ return ({label:"debug", percentWidth:100, percentHeight:100, childDescriptors:[new UIComponentDescriptor({type:ProgressBar, id:"imgLoader", propertiesFactory:function ():Object{ return ({visible:false, indeterminate:true, labelPlacement:"top"}); }}), new UIComponentDescriptor({type:TextArea, id:"debugbox", stylesFactory:function ():void{ this.bottom = "20"; this.top = "0"; this.right = "0"; this.left = "0"; }, propertiesFactory:function ():Object{ return ({alpha:0.8, visible:false, editable:false, wordWrap:true, verticalScrollPolicy:"on"}); }}), new UIComponentDescriptor({type:TextInput, id:"debugtxtin", events:{enter:"__debugtxtin_enter"}, stylesFactory:function ():void{ this.bottom = "0"; this.right = "0"; this.left = "0"; }, propertiesFactory:function ():Object{ return ({alpha:0.3, visible:false}); }})]}); }})]}); }})]}); }})]}); }})]}); }}); _226797582menuBarCollection = new ArrayCollection(); _bindings = []; _watchers = []; _bindingsByDestination = {}; _bindingsBeginWithWord = {}; super(); mx_internal::_document = this; this.percentHeight = 100; this.percentWidth = 100; this.verticalScrollPolicy = "off"; this.horizontalScrollPolicy = "off"; this.addEventListener("creationComplete", ___rambler_Canvas1_creationComplete); } public function init():void{ varRoomsManager = new RoomsManager(chatboxStack, umPanel.umAccordion, umPanel); varPrivatesManager = new PrivatesManager(chatboxStack, umPanel.umAccordion, umPanel); varModalManager = new ModalManager_252(); varWindowManager = new WindowManager(this); varModalManager.addEventListener("reinit", reinit); varRoomsManager.addEventListener("SwitchRoomEvent", switchRoomEvent); dispatchEvent(new Event("ramblerGUIReady")); setupMenu(); } private function set menuBarCollection(_arg1:ArrayCollection):void{ var _local2:Object = this._226797582menuBarCollection; if (_local2 !== _arg1){ this._226797582menuBarCollection = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "menuBarCollection", _local2, _arg1)); }; } public function set rightPanel(_arg1:TitleWindow):void{ var _local2:Object = this._1402058424rightPanel; if (_local2 !== _arg1){ this._1402058424rightPanel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "rightPanel", _local2, _arg1)); }; } public function get debugtxtin():TextInput{ return (this._1820698334debugtxtin); } private function sendLIST():void{ dispatchEvent(new Event("SendListClick")); } public function set debugbox(_arg1:TextArea):void{ var _local2:Object = this._547807896debugbox; if (_local2 !== _arg1){ this._547807896debugbox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "debugbox", _local2, _arg1)); }; } public function get privatesManager():PrivatesManager{ return (this.varPrivatesManager); } public function showNickChangePasswordItem(_arg1:Boolean):void{ if (_arg1){ if (!menuBarCollection.contains(nickChangePasswordItem)){ menuBarCollection.addItem(nickChangePasswordItem); }; } else { if (menuBarCollection.contains(nickChangePasswordItem)){ menuBarCollection.removeItemAt(menuBarCollection.getItemIndex(showNickChangePasswordItem)); }; }; } public function get modalManager():ModalManager_252{ return (this.varModalManager); } public function set debugtxtin(_arg1:TextInput):void{ var _local2:Object = this._1820698334debugtxtin; if (_local2 !== _arg1){ this._1820698334debugtxtin = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "debugtxtin", _local2, _arg1)); }; } public function get rightPanel():TitleWindow{ return (this._1402058424rightPanel); } public function get umPanel():UserManagementPanel{ return (this._338793908umPanel); } public function get advertBox():AdBox{ return (this._690449065advertBox); } public function dictLoaded(_arg1:DictLoadedEvent):void{ TextFormatter.dictionary = _arg1.dictionary; } private function openEWC():void{ var _local1:URLRequest = new URLRequest("http://www.everywherechat.com/"); navigateToURL(_local1, "_blank"); } public function __debugtxtin_enter(_arg1:FlexEvent):void{ if (debugtxtin.text.toLowerCase() == "/pi"){ backbitch(); }; } public function get debugcanvas():Canvas{ return (this._1115176597debugcanvas); } private function _rambler_bindingsSetup():Array{ var binding:Binding; var result:Array = []; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("AccordionHeader"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ rightPanel.title = _arg1; }, "rightPanel.title"); result[0] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ListRoomsButton"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ listRoomsButton.label = _arg1; }, "listRoomsButton.label"); result[1] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("OptionsMenu"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ mBar.label = _arg1; }, "mBar.label"); result[2] = binding; binding = new Binding(this, function ():Object{ return (menuBarCollection); }, function (_arg1:Object):void{ mBar.dataProvider = _arg1; }, "mBar.dataProvider"); result[3] = binding; binding = new Binding(this, function ():Number{ return (((debugbox.height / 2) - (imgLoader.height / 2))); }, function (_arg1:Number):void{ imgLoader.y = _arg1; }, "imgLoader.y"); result[4] = binding; binding = new Binding(this, function ():Number{ return (((chatboxStack.width / 2) - (imgLoader.width / 2))); }, function (_arg1:Number):void{ imgLoader.x = _arg1; }, "imgLoader.x"); result[5] = binding; binding = new Binding(this, function ():String{ var _local1:* = TextFormatter.getText("ConnectionProgressLabel"); var _local2:* = ((_local1 == undefined)) ? null : String(_local1); return (_local2); }, function (_arg1:String):void{ imgLoader.label = _arg1; }, "imgLoader.label"); result[6] = binding; return (result); } public function showNickReg(_arg1:Boolean):void{ if (_arg1){ if (!menuBarCollection.contains(nickRegItem)){ menuBarCollection.addItem(nickRegItem); }; } else { if (menuBarCollection.contains(nickRegItem)){ menuBarCollection.removeItemAt(menuBarCollection.getItemIndex(nickRegItem)); }; }; } public function __listRoomsButton_click(_arg1:MouseEvent):void{ Application.application.ircLib.send.list(); } public function setupMenu():void{ fontMenu = {label:TextFormatter.getText("OptionsMenuFont"), data:"top"}; fontSmallItem = {label:TextFormatter.getText("OptionsMenuFontSmall"), type:"radio", group:"fontSize", data:"10"}; fontNormalItem = {label:TextFormatter.getText("OptionsMenuFontNormal"), type:"radio", group:"fontSize", selected:"true", data:"15"}; fontMassiveItem = {label:TextFormatter.getText("OptionsMenuFontMassive"), type:"radio", group:"fontSize", data:"25"}; themeMenu = {label:TextFormatter.getText("OptionsMenuTheme"), data:"top"}; themeNightItem = {label:TextFormatter.getText("OptionsMenuThemeNight"), type:"radio", group:"theme", selected:"true", data:"night"}; themeDayItem = {label:TextFormatter.getText("OptionsMenuThemeDay"), type:"radio", group:"theme", data:"day"}; themeClassicItem = {label:TextFormatter.getText("OptionsMenuThemeClassic"), type:"radio", group:"theme", data:"classic"}; themePinkItem = {label:TextFormatter.getText("OptionsMenuThemePink"), type:"radio", group:"theme", data:"pink"}; timeStampItem = {label:TextFormatter.getText("OptionsTimestamps"), data:"timeStamps"}; advancedViewItem = {label:TextFormatter.getText("OptionsAdvancedView"), data:"advancedView"}; unregisteredPMItem = {label:TextFormatter.getText("OptionsUnregisteredPM"), data:"unregisteredPM"}; roomSetItem = {label:TextFormatter.getText("OptionsMenuRoomSettings"), data:"roomSettings"}; roomRegItem = {label:TextFormatter.getText("OptionsMenuRoomReg"), data:"registerRoom"}; nickChangeItem = {label:TextFormatter.getText("OptionsMenuChangeNick"), data:"changeNick"}; nickRegItem = {label:TextFormatter.getText("OptionsMenuNickReg"), data:"registerNick"}; nickChangePasswordItem = {label:TextFormatter.getText("OptionsMenuChangeNickPassword"), data:"changeNickPassword"}; fontMenu.children = new ArrayCollection(); fontMenu.children.addItem(fontSmallItem); fontMenu.children.addItem(fontNormalItem); fontMenu.children.addItem(fontMassiveItem); themeMenu.children = new ArrayCollection(); themeMenu.children.addItem(themeNightItem); themeMenu.children.addItem(themeDayItem); themeMenu.children.addItem(themeClassicItem); themeMenu.children.addItem(themePinkItem); menuBarCollection = new ArrayCollection(); menuBarCollection.addItem(fontMenu); menuBarCollection.addItem(themeMenu); menuBarCollection.addItem(timeStampItem); menuBarCollection.addItem(advancedViewItem); menuBarCollection.addItem(unregisteredPMItem); menuBarCollection.addItem(roomSetItem); menuBarCollection.addItem(roomRegItem); menuBarCollection.addItem(nickChangeItem); menuBarCollection.addItem(nickChangePasswordItem); menuBarCollection.addItem(nickRegItem); } public function get mBar():PopUpMenuButton{ return (this._3313766mBar); } public function __mBar_itemClick(_arg1:MenuEvent):void{ menuHandler(_arg1); } public function set imgLoader(_arg1:ProgressBar):void{ var _local2:Object = this._611478090imgLoader; if (_local2 !== _arg1){ this._611478090imgLoader = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "imgLoader", _local2, _arg1)); }; } override public function initialize():void{ var target:rambler; var watcherSetupUtilClass:Object; mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:Array = _rambler_bindingsSetup(); var watchers:Array = []; target = this; if (_watcherSetupUtil == null){ watcherSetupUtilClass = getDefinitionByName("_com_eightlabs_rambler_ramblerWatcherSetupUtil"); var _local2 = watcherSetupUtilClass; _local2["init"](null); }; _watcherSetupUtil.setup(this, function (_arg1:String){ return (target[_arg1]); }, bindings, watchers); var i:uint; while (i < bindings.length) { Binding(bindings[i]).execute(); i = (i + 1); }; mx_internal::_bindings = mx_internal::_bindings.concat(bindings); mx_internal::_watchers = mx_internal::_watchers.concat(watchers); super.initialize(); } public function get roomsManager():RoomsManager{ return (this.varRoomsManager); } public function get windowManager():WindowManager{ return (this.varWindowManager); } public function get debugbox():TextArea{ return (this._547807896debugbox); } public function set chatboxStack(_arg1:ViewStack):void{ var _local2:Object = this._1157237035chatboxStack; if (_local2 !== _arg1){ this._1157237035chatboxStack = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "chatboxStack", _local2, _arg1)); }; } public function set advertBox(_arg1:AdBox):void{ var _local2:Object = this._690449065advertBox; if (_local2 !== _arg1){ this._690449065advertBox = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "advertBox", _local2, _arg1)); }; } public function set listRoomsButton(_arg1:Button):void{ var _local2:Object = this._1975739188listRoomsButton; if (_local2 !== _arg1){ this._1975739188listRoomsButton = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "listRoomsButton", _local2, _arg1)); }; } public function debuggin(_arg1:String, _arg2:String=""):void{ _arg1 = (_arg1 + "\n"); debugbox.text = (((("[" + _arg2) + "] ") + _arg1) + debugbox.text); if (debugbox.text.length > 100000){ debugbox.text = debugbox.text.substring(0, 100000); }; } public function switchRoomEvent(_arg1:SwitchRoomEvent):void{ if (this.varRoomsManager.roomRegistered(this.roomsManager.activeRoomName)){ this.showRoomReg(false); } else { this.showRoomReg(true); }; } public function backbitch():void{ if (chatboxStack.selectedIndex == 0){ debugbox.visible = false; debugtxtin.visible = false; this.roomsManager.switchToRoom(this.roomsManager.activeRoomName); } else { chatboxStack.selectedChild = debugcanvas; debugbox.visible = true; debugtxtin.visible = true; debugtxtin.setFocus(); }; } private function nickOptions():void{ dispatchEvent(new Event("NickOptionsClick")); } public function set ctrlbar(_arg1:ControlBar):void{ var _local2:Object = this._1098128840ctrlbar; if (_local2 !== _arg1){ this._1098128840ctrlbar = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "ctrlbar", _local2, _arg1)); }; } public function reinit(_arg1:Event):void{ dispatchEvent(_arg1); } private function sendServicesList():void{ } public function showRoomSet(_arg1:Boolean):void{ if (_arg1){ menuBarCollection.addItem(roomSetItem); } else { menuBarCollection.removeItemAt(menuBarCollection.getItemIndex(roomSetItem)); }; } public function set umPanel(_arg1:UserManagementPanel):void{ var _local2:Object = this._338793908umPanel; if (_local2 !== _arg1){ this._338793908umPanel = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "umPanel", _local2, _arg1)); }; } public function get listRoomsButton():Button{ return (this._1975739188listRoomsButton); } public function get chatboxStack():ViewStack{ return (this._1157237035chatboxStack); } public function set debugcanvas(_arg1:Canvas):void{ var _local2:Object = this._1115176597debugcanvas; if (_local2 !== _arg1){ this._1115176597debugcanvas = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "debugcanvas", _local2, _arg1)); }; } public function set mBar(_arg1:PopUpMenuButton):void{ var _local2:Object = this._3313766mBar; if (_local2 !== _arg1){ this._3313766mBar = _arg1; this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "mBar", _local2, _arg1)); }; } public function get ctrlbar():ControlBar{ return (this._1098128840ctrlbar); } private function _rambler_bindingExprs():void{ var _local1:*; _local1 = TextFormatter.getText("AccordionHeader"); _local1 = TextFormatter.getText("ListRoomsButton"); _local1 = TextFormatter.getText("OptionsMenu"); _local1 = menuBarCollection; _local1 = ((debugbox.height / 2) - (imgLoader.height / 2)); _local1 = ((chatboxStack.width / 2) - (imgLoader.width / 2)); _local1 = TextFormatter.getText("ConnectionProgressLabel"); } public function get imgLoader():ProgressBar{ return (this._611478090imgLoader); } public function ___rambler_Canvas1_creationComplete(_arg1:FlexEvent):void{ init(); } private function menuHandler(_arg1:MenuEvent):void{ var _local3:Object; var _local4:StyleSheetLoader; var _local5:RoomSettingsWindow; var _local6:DictLoader; var _local2:SharedObject = SharedObject.getLocal("ewcStorage"); if (_local2.size == 0){ debug.write("created... ewcStorage"); }; if (_arg1.item.data != "top"){ if (_arg1.item.group == "fontSize"){ Application.application.defaultFont = _arg1.item.data; _local3 = new Object(); _local3 = TextFormatter.stylesheet.getStyle(".chatBox"); _local3.fontSize = _arg1.item.data; TextFormatter.stylesheet.setStyle(".chatBox", _local3); TextFormatter.applyStyleSheet(); } else { if (_arg1.item.group == "theme"){ _local4 = new StyleSheetLoader(); _local4.addEventListener("StyleSheetLoadedEvent", Application.application.styleSheetLoadedRuntime); StyleManager.unloadStyleDeclarations((("http://www.everywherechat.com/" + currentTheme) + ".swf")); StyleManager.loadStyleDeclarations((("http://www.everywherechat.com/" + _arg1.item.data) + ".swf")); this.currentTheme = _arg1.item.data; _local4.load(_arg1.item.data); } else { if (_arg1.item.data == "roomSettings"){ if (this.modalManager.getModal(("roomSettingsModal" + this.roomsManager.activeRoomName.toLowerCase())) == null){ debug.write(("rambler.mxml creating new roomSettingsModal: " + this.roomsManager.activeRoomName.toLowerCase())); this.modalManager.addModal(("roomSettingsModal" + this.roomsManager.activeRoomName.toLowerCase()), RoomSettingsWindow, true); }; _local5 = RoomSettingsWindow(this.modalManager.getModal(("roomSettingsModal" + this.roomsManager.activeRoomName.toLowerCase()))); _local5.roomName = this.roomsManager.activeRoomName; _local5.enabled = false; Application.application.ircLib.send.privmsg("ChanServ", ("INFO #" + this.roomsManager.activeRoomName)); Application.application.ircLib.send.privmsg("ChanServ", (("ACCESS #" + this.roomsManager.activeRoomName) + " list")); Application.application.ircLib.send.raw((("mode #" + this.roomsManager.activeRoomName) + " b")); debug.write(("rambler.mxml sending: mode #" + this.roomsManager.activeRoomName)); Application.application.ircLib.send.raw(("mode #" + this.roomsManager.activeRoomName)); } else { if (_arg1.item.data == "changeNick"){ this.windowManager.ChangeName.pop(); } else { if (_arg1.item.data == "registerNick"){ this.varWindowManager.RegisterName.pop(); } else { if (_arg1.item.data == "registerRoom"){ this.varWindowManager.RegisterRoom.pop(); } else { if (_arg1.item.data == "changeNickPassword"){ this.varWindowManager.ChangeNamePassword.pop(); } else { if (_arg1.item.data == "timeStamps"){ if (Application.application.timeStamps){ Application.application.timeStamps = false; _local2.data.timeStamps = false; } else { Application.application.timeStamps = true; _local2.data.timeStamps = true; }; } else { if (_arg1.item.data == "advancedView"){ if (Application.application.advancedView){ Application.application.advancedView = false; _local2.data.advancedView = false; } else { Application.application.advancedView = true; _local2.data.advancedView = true; }; _local6 = new DictLoader(); _local6.addEventListener("DictLoadedEvent", dictLoaded); if (Application.application.advancedView){ _local6.load("advanced-english"); } else { _local6.load("english"); }; } else { if (_arg1.item.data == "unregisteredPM"){ if (Application.application.unregisteredPM){ Application.application.unregisteredPM = false; _local2.data.unregisteredPM = false; Application.application.ircLib.send.raw((("mode " + Application.application.userName) + " +R")); } else { Application.application.unregisteredPM = true; _local2.data.unregisteredPM = true; Application.application.ircLib.send.raw((("mode " + Application.application.userName) + " -R")); }; }; }; }; }; }; }; }; }; }; }; }; } private function get menuBarCollection():ArrayCollection{ return (this._226797582menuBarCollection); } public function showRoomReg(_arg1:Boolean):void{ if (_arg1){ if (!menuBarCollection.contains(roomRegItem)){ menuBarCollection.addItem(roomRegItem); }; } else { if (menuBarCollection.contains(roomRegItem)){ menuBarCollection.removeItemAt(menuBarCollection.getItemIndex(roomRegItem)); }; }; } public static function set watcherSetupUtil(_arg1:IWatcherSetupUtil):void{ rambler._watcherSetupUtil = _arg1; } } }//package com.eightlabs.rambler
Section 203
//AdLoader (com.eightlabs.utilities.advertisements.AdLoader) package com.eightlabs.utilities.advertisements { import flash.events.*; import flash.utils.*; import com.eightlabs.utilities.*; import flash.net.*; public class AdLoader extends EventDispatcher { public var Ads:Array; public var AdTimer:Timer; public var showLogin:Boolean;// = false public var showBox:Boolean;// = false public function AdLoader(_arg1:String){ var url = _arg1; Ads = new Array(); super(); var adloader:URLLoader = new URLLoader(); var adRequest:URLRequest = new URLRequest(url); adloader.addEventListener(Event.COMPLETE, adCompleteHandler); debug.write("started reading ads"); try { adloader.load(adRequest); } catch(error:Error) { debug.write(("error! " + error.message)); }; } private function adCompleteHandler(_arg1:Event):void{ var xml:XML; var adList:XMLList; var adObject:XML; var a:AmazonAdLoader; var newAd:Advertisement; var kw:XML; var kwVal:String; var event = _arg1; debug.write("finished reading ads"); try { debug.write(("ad data: " + event.target.data)); xml = new XML(event.target.data); if (xml.configuration){ if (xml.configuration.timer){ this.AdTimer = new Timer(xml.configuration.timer); }; if (xml.configuration.showlogin){ this.showLogin = (xml.configuration.showlogin == "true"); }; if (xml.configuration.showbox){ this.showBox = (xml.configuration.showbox == "true"); }; }; adList = xml.ad; for each (adObject in xml.ad) { debug.write(("ad: " + adObject.toXMLString())); if (adObject.hasOwnProperty("amazon")){ debug.write("I think this is an amazon ad."); a = new AmazonAdLoader(adObject.amazon); if (adObject.name){ a.Name = adObject.name; }; Ads.push(a); } else { debug.write(("found ad: " + adObject.name)); newAd = new Advertisement(); newAd.Name = adObject.name; newAd.URL = adObject.url; newAd.Img = adObject.img; newAd.ImgRequest = new URLRequest(); newAd.ImgRequest.url = adObject.url; newAd.Header = adObject.header; newAd.Description = adObject.description; for each (kw in adObject.keywords.keyword) { kwVal = kw; newAd.KeyWords.push(kwVal); }; Ads.push(newAd); }; }; } catch(error:Error) { }; dispatchEvent(new Event(Event.COMPLETE)); } public function getRandomAd():Advertisement{ debug.write((("Trying to get a random ad from a list of " + Ads.length) + " ads.")); if (Ads.length < 1){ return (null); }; var _local1:Number = Math.random(); var _local2:Number = (Ads.length - 1); var _local3:Number = Math.round((_local1 * _local2)); debug.write((("decided on ad number " + _local3) + ".")); return (Ads[_local3]); } } }//package com.eightlabs.utilities.advertisements
Section 204
//Advertisement (com.eightlabs.utilities.advertisements.Advertisement) package com.eightlabs.utilities.advertisements { import flash.events.*; import flash.net.*; public class Advertisement extends EventDispatcher { public var FooterImg:String; public var URL:String; public var DescriptionRequest:URLRequest; public var FooterRequest:URLRequest; public var Weight:int; public var Description:String; public var HeaderRequest:URLRequest; public var Img:String; public var FooterImgRequest:URLRequest; public var KeyWords:Array; public var Name:String; public var ImgRequest:URLRequest; public var Header:String; public var Footer:String; public static const LOAD_COMPLETE:String = "LoadComplete"; public function Advertisement(){ KeyWords = new Array(); super(); } public function MatchesKeyword(_arg1:String):Boolean{ var _local2:String; for (_local2 in KeyWords) { if (_arg1.indexOf(_local2) > -1){ return (true); }; }; return (false); } public function load():void{ dispatchEvent(new Event(Advertisement.LOAD_COMPLETE)); } } }//package com.eightlabs.utilities.advertisements
Section 205
//AmazonAdLoader (com.eightlabs.utilities.advertisements.AmazonAdLoader) package com.eightlabs.utilities.advertisements { import flash.events.*; import flash.net.*; import mx.utils.*; public class AmazonAdLoader extends Advertisement { public var amazonLinksURL:String;// = "http://www.everywherechat.com/resources/ads/amazonAdLoader.php?asins={asins}" private var loaded:Boolean; public var asin:String; public function AmazonAdLoader(_arg1:String){ this.asin = _arg1; } override public function load():void{ if (loaded){ dispatchEvent(new Event(Advertisement.LOAD_COMPLETE)); return; }; var adloader:URLLoader = new URLLoader(); var adRequest:URLRequest = new URLRequest(this.amazonLinksURL.replace("{asins}", this.asin)); adloader.addEventListener(Event.COMPLETE, adCompleteHandler); try { adloader.load(adRequest); } catch(error:Error) { }; } private function adCompleteHandler(_arg1:Event):void{ var text:String; var img:String; var imgHref:String; var title:String; var manu:String; var price1:String; var price2:String; var prices:String; var form:String; var postargs:String; var names:Array; var values:Array; var button:String; var privpol:String; var arr:Array; var url:String; var request:URLRequest; var variables:URLVariables; var i:int; var v:String; var event = _arg1; try { text = event.target.data; if (((!(text)) || ((StringUtil.trim(text) == "")))){ return; }; arr = text.match(/(?<=\<div id="image"\>)(.*?)(?=\<\/div\>)/); if (arr != null){ img = arr[0].match(/(?<=src=")(.*?)(?=")/)[0]; imgHref = arr[0].match(/(?<=href=")(.*?)(?=")/)[0]; }; arr = text.match(/(?<=\<p id="title"\>)(.*?)(?=\<\/p\>)/); if (arr != null){ title = arr[0]; title = StringUtil.trim(title); }; arr = text.match(/(?<=\<p\>)(.*?)(?=\<\/p\>)/); if (arr != null){ manu = arr[0]; manu = StringUtil.trim(manu); }; arr = text.match(/(?<=\<p id="prices"\>)(.*?)(?=\<\/p\>)/); if (arr != null){ prices = arr[0].replace(/<p\b[^>]*>|<\/p>|<span\b[^>]*>|<\/span>|<br \/>/g, ""); prices = prices.replace("<a href=", "<u><a href="); prices = prices.replace("</a>", "</a></u>"); prices = StringUtil.trim(prices); }; arr = text.match(/(\<form method="get")(.*?)(\<\/form\>)/); if (arr != null){ form = arr[0]; names = text.match(/(?<=\<input type="hidden" name=")(.*?)(?=")/g); values = form.match(/<input type="hidden".*?value="(.*?)"/g); i = 0; while (i < names.length) { v = values[i].match(/(?<=value=")(.*?)(?=")/)[0]; if (postargs){ postargs = ((((postargs + "&") + names[i]) + "=") + v); } else { postargs = ((names[i] + "=") + v); }; i = (i + 1); }; }; arr = text.match(/(?<=\<p id="privacy"\>)(.*?)(?=\<\/p\>)/); if (arr != null){ privpol = arr[0]; }; this.Description = ((((("<font color=\"#0000FF\"><u>" + title) + "</u></font> \n") + manu) + " \n") + prices); this.Img = (("http://www.everywherechat.com/resources/ads/img/" + this.asin) + ".jpg"); this.ImgRequest = new URLRequest(imgHref); this.FooterImg = "http://www.everywherechat.com/resources/ads/img/buy-from-tan.gif"; url = "http://www.amazon.com/gp/aws/cart/add.html"; request = new URLRequest(url); variables = new URLVariables(postargs); request.data = variables; request.method = URLRequestMethod.POST; this.FooterImgRequest = request; this.Footer = (("<font color=\"#a1a1a1\"><u>" + privpol) + "</u></font>"); this.loaded = true; dispatchEvent(new Event(Advertisement.LOAD_COMPLETE)); } catch(error:Error) { }; } } }//package com.eightlabs.utilities.advertisements
Section 206
//DictLoader (com.eightlabs.utilities.text.DictLoader) package com.eightlabs.utilities.text { import flash.events.*; import com.eightlabs.rambler.events.*; import flash.net.*; public class DictLoader extends EventDispatcher { private var commonLoaded:Boolean;// = false private var langLoaded:Boolean;// = false private var dictionary:Object; public function DictLoader(){ dictionary = new Object(); super(); } private function securityErrorHandler(_arg1:SecurityErrorEvent):void{ } private function langCompleteHandler(_arg1:Event):void{ langLoaded = true; loadDict(_arg1.target); if (((commonLoaded) && (langLoaded))){ this.dispatchEvent(new DictLoadedEvent(this.dictionary)); }; } public function load(_arg1:String):void{ var language = _arg1; var commonLoader:URLLoader = new URLLoader(); var langLoader:URLLoader = new URLLoader(); commonLoader.addEventListener(Event.COMPLETE, commonCompleteHandler); langLoader.addEventListener(Event.COMPLETE, langCompleteHandler); loadListeners(commonLoader); loadListeners(langLoader); var commonRequest:URLRequest = new URLRequest("http://www.everywherechat.com/resources/languages/common.lang"); var langRequest:URLRequest = new URLRequest((("http://www.everywherechat.com/resources/languages/" + language) + ".lang")); try { commonLoader.load(commonRequest); langLoader.load(langRequest); } catch(error:Error) { }; } private function openHandler(_arg1:Event):void{ } private function ioErrorHandler(_arg1:IOErrorEvent):void{ } private function commonCompleteHandler(_arg1:Event):void{ commonLoaded = true; loadDict(_arg1.target); if (((commonLoaded) && (langLoaded))){ this.dispatchEvent(new DictLoadedEvent(this.dictionary)); }; } private function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } private function loadListeners(_arg1:IEventDispatcher):void{ _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); _arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); } private function loadDict(_arg1:Object):void{ var _local3:Array; var _local4:String; var _local5:String; var _local2:URLLoader = URLLoader(_arg1); if (_local2.data.indexOf("\r\n") > -1){ _local3 = _local2.data.split("\r\n"); } else { if (_local2.data.indexOf("\r") > -1){ _local3 = _local2.data.split("\r"); } else { _local3 = _local2.data.split("\n"); }; }; var _local6:int; while (_local6 < _local3.length) { if (_local3[_local6].indexOf("=") > -1){ _local4 = _local3[_local6].substring(0, _local3[_local6].indexOf(" =")); _local5 = _local3[_local6].substring((_local3[_local6].indexOf("=") + 2)); }; if (_local4 != ""){ dictionary[_local4] = _local5; }; _local6++; }; } private function progressHandler(_arg1:ProgressEvent):void{ dispatchEvent(_arg1); } } }//package com.eightlabs.utilities.text
Section 207
//StyleSheetLoader (com.eightlabs.utilities.text.StyleSheetLoader) package com.eightlabs.utilities.text { import flash.events.*; import com.eightlabs.rambler.events.*; import flash.text.*; import com.eightlabs.utilities.*; import flash.net.*; public class StyleSheetLoader extends EventDispatcher { private var stylesheet:StyleSheet; public function StyleSheetLoader(){ stylesheet = new StyleSheet(); super(); } private function openHandler(_arg1:Event):void{ } private function completeHandler(_arg1:Event):void{ var _local2:URLLoader = URLLoader(_arg1.target); this.stylesheet.parseCSS(_local2.data); dispatchEvent(new StyleSheetLoadedEvent(this.stylesheet)); } private function securityErrorHandler(_arg1:SecurityErrorEvent):void{ } public function load(_arg1:String):void{ var sheet = _arg1; var loader:URLLoader = new URLLoader(); configureListeners(loader); debug.write((("loading: http://www.everywherechat.com/resources/stylesheets/" + sheet) + ".css")); var request:URLRequest = new URLRequest((("http://www.everywherechat.com/resources/stylesheets/" + sheet) + ".css")); try { loader.load(request); } catch(error:Error) { }; } private function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } private function ioErrorHandler(_arg1:IOErrorEvent):void{ } private function configureListeners(_arg1:IEventDispatcher):void{ _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(Event.OPEN, openHandler); _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); _arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); } private function progressHandler(_arg1:ProgressEvent):void{ dispatchEvent(_arg1); } } }//package com.eightlabs.utilities.text
Section 208
//TextFormatter (com.eightlabs.utilities.text.TextFormatter) package com.eightlabs.utilities.text { import flash.text.*; public class TextFormatter { public static var stylesheetObjects:Array = new Array(); public static var stylesheet:StyleSheet = new StyleSheet(); public static var dictionary:Object = new Object(); public static var stylesheetRTEs:Array = new Array(); public static function applyStyleSheet():void{ var _local1:int; while (_local1 < TextFormatter.stylesheetObjects.length) { TextFormatter.stylesheetObjects[_local1].styleSheet = TextFormatter.stylesheet; _local1++; }; _local1 = 0; while (_local1 < TextFormatter.stylesheetRTEs.length) { TextFormatter.stylesheetRTEs[_local1].complexDPArray = [{label:"Black", color:("0x" + TextFormatter.stylesheet.getStyle(".color1").color.substring(1))}, {label:"White", color:("0x" + TextFormatter.stylesheet.getStyle(".color0").color.substring(1))}, {label:"Navy Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color2").color.substring(1))}, {label:"Forest Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color3").color.substring(1))}, {label:"Red", color:("0x" + TextFormatter.stylesheet.getStyle(".color4").color.substring(1))}, {label:"Maroon", color:("0x" + TextFormatter.stylesheet.getStyle(".color5").color.substring(1))}, {label:"Purple", color:("0x" + TextFormatter.stylesheet.getStyle(".color6").color.substring(1))}, {label:"Orange", color:("0x" + TextFormatter.stylesheet.getStyle(".color7").color.substring(1))}, {label:"Yellow", color:("0x" + TextFormatter.stylesheet.getStyle(".color8").color.substring(1))}, {label:"Lime Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color9").color.substring(1))}, {label:"Turquoise", color:("0x" + TextFormatter.stylesheet.getStyle(".color10").color.substring(1))}, {label:"Cyan", color:("0x" + TextFormatter.stylesheet.getStyle(".color11").color.substring(1))}, {label:"Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color12").color.substring(1))}, {label:"Pink", color:("0x" + TextFormatter.stylesheet.getStyle(".color13").color.substring(1))}, {label:"Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color14").color.substring(1))}, {label:"Light Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color15").color.substring(1))}]; _local1++; }; } public static function getText(_arg1:String, _arg2:Object=null):String{ var _local3:String; var _local4:RegExp; var _local5:String; if (TextFormatter.dictionary[_arg1] != null){ _local3 = TextFormatter.dictionary[_arg1]; if (_arg2 != null){ for (_local5 in _arg2) { _local4 = new RegExp((("{(<%(.+)/%>)?" + _local5) + "(<%(.+)/%>)?}"), "ig"); if (_arg2[_local5] == ""){ _local3 = _local3.replace(_local4, ""); } else { _local3 = _local3.replace(_local4, (("$2" + _arg2[_local5]) + "$4")); }; }; }; } else { _local3 = (_arg1 + " Not Found"); }; return (_local3); } public static function styleComponent(_arg1:Object):void{ _arg1.styleSheet = TextFormatter.stylesheet; TextFormatter.stylesheetObjects.push(_arg1); } public static function styleRTE(_arg1:Object):void{ _arg1.complexDPArray = [{label:"Black", color:("0x" + TextFormatter.stylesheet.getStyle(".color1").color.substring(1))}, {label:"White", color:("0x" + TextFormatter.stylesheet.getStyle(".color0").color.substring(1))}, {label:"Navy Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color2").color.substring(1))}, {label:"Forest Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color3").color.substring(1))}, {label:"Red", color:("0x" + TextFormatter.stylesheet.getStyle(".color4").color.substring(1))}, {label:"Maroon", color:("0x" + TextFormatter.stylesheet.getStyle(".color5").color.substring(1))}, {label:"Purple", color:("0x" + TextFormatter.stylesheet.getStyle(".color6").color.substring(1))}, {label:"Orange", color:("0x" + TextFormatter.stylesheet.getStyle(".color7").color.substring(1))}, {label:"Yellow", color:("0x" + TextFormatter.stylesheet.getStyle(".color8").color.substring(1))}, {label:"Lime Green", color:("0x" + TextFormatter.stylesheet.getStyle(".color9").color.substring(1))}, {label:"Turquoise", color:("0x" + TextFormatter.stylesheet.getStyle(".color10").color.substring(1))}, {label:"Cyan", color:("0x" + TextFormatter.stylesheet.getStyle(".color11").color.substring(1))}, {label:"Blue", color:("0x" + TextFormatter.stylesheet.getStyle(".color12").color.substring(1))}, {label:"Pink", color:("0x" + TextFormatter.stylesheet.getStyle(".color13").color.substring(1))}, {label:"Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color14").color.substring(1))}, {label:"Light Grey", color:("0x" + TextFormatter.stylesheet.getStyle(".color15").color.substring(1))}]; TextFormatter.stylesheetRTEs.push(_arg1); } } }//package com.eightlabs.utilities.text
Section 209
//debug (com.eightlabs.utilities.debug) package com.eightlabs.utilities { import mx.core.*; public class debug { public static function write(_arg1:String, _arg2:String=""):void{ if (!Application.application.RamblerGUIReady){ trace(_arg1); } else { Application.application.ramblerGUI.debuggin(_arg1, _arg2); }; } } }//package com.eightlabs.utilities
Section 210
//IntUtil (com.eightlabs.utilities.IntUtil) package com.eightlabs.utilities { public class IntUtil { private static var hexChars:String = "0123456789abcdef"; public static function toHex(_arg1:int, _arg2:Boolean=false):String{ var _local4:int; var _local5:int; var _local3 = ""; if (_arg2){ _local4 = 0; while (_local4 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15)))); _local4++; }; } else { _local5 = 0; while (_local5 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15)))); _local5++; }; }; return (_local3); } public static function ror(_arg1:int, _arg2:int):uint{ var _local3:int = (32 - _arg2); return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3)))); } public static function rol(_arg1:int, _arg2:int):int{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } } }//package com.eightlabs.utilities
Section 211
//SHA1 (com.eightlabs.utilities.SHA1) package com.eightlabs.utilities { import flash.utils.*; import mx.utils.*; public class SHA1 { public static var digest:ByteArray; public static function encrypt(_arg1:String):String{ var _local2:Number = 5487357816; var _local3:Array = createBlocksFromString((_arg1 + _local2)); var _local4:ByteArray = hashBlocks(_local3); return (((((IntUtil.toHex(_local4.readInt(), true) + IntUtil.toHex(_local4.readInt(), true)) + IntUtil.toHex(_local4.readInt(), true)) + IntUtil.toHex(_local4.readInt(), true)) + IntUtil.toHex(_local4.readInt(), true))); } private static function createBlocksFromString(_arg1:String):Array{ var _local2:Array = new Array(); var _local3:int = (_arg1.length * 8); var _local4 = 0xFF; var _local5:int; while (_local5 < _local3) { _local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (24 - (_local5 % 32)))); _local5 = (_local5 + 8); }; _local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (24 - (_local3 % 32)))); _local2[((((_local3 + 64) >> 9) << 4) + 15)] = _local3; return (_local2); } private static function hashBlocks(_arg1:Array):ByteArray{ var _local9:int; var _local12:int; var _local13:int; var _local14:int; var _local15:int; var _local16:int; var _local17:int; var _local2 = 1732584193; var _local3:int = 4023233417; var _local4:int = 2562383102; var _local5 = 271733878; var _local6:int = 3285377520; var _local7:int = _arg1.length; var _local8:Array = new Array(80); var _local10:int; while (_local10 < _local7) { _local12 = _local2; _local13 = _local3; _local14 = _local4; _local15 = _local5; _local16 = _local6; _local17 = 0; while (_local17 < 20) { if (_local17 < 16){ _local8[_local17] = _arg1[(_local10 + _local17)]; } else { _local9 = (((_local8[(_local17 - 3)] ^ _local8[(_local17 - 8)]) ^ _local8[(_local17 - 14)]) ^ _local8[(_local17 - 16)]); _local8[_local17] = ((_local9 << 1) | (_local9 >>> 31)); }; _local9 = ((((((_local12 << 5) | (_local12 >>> 27)) + ((_local13 & _local14) | (~(_local13) & _local15))) + _local16) + int(_local8[_local17])) + 1518500249); _local16 = _local15; _local15 = _local14; _local14 = ((_local13 << 30) | (_local13 >>> 2)); _local13 = _local12; _local12 = _local9; _local17++; }; while (_local17 < 40) { _local9 = (((_local8[(_local17 - 3)] ^ _local8[(_local17 - 8)]) ^ _local8[(_local17 - 14)]) ^ _local8[(_local17 - 16)]); _local8[_local17] = ((_local9 << 1) | (_local9 >>> 31)); _local9 = ((((((_local12 << 5) | (_local12 >>> 27)) + ((_local13 ^ _local14) ^ _local15)) + _local16) + int(_local8[_local17])) + 1859775393); _local16 = _local15; _local15 = _local14; _local14 = ((_local13 << 30) | (_local13 >>> 2)); _local13 = _local12; _local12 = _local9; _local17++; }; while (_local17 < 60) { _local9 = (((_local8[(_local17 - 3)] ^ _local8[(_local17 - 8)]) ^ _local8[(_local17 - 14)]) ^ _local8[(_local17 - 16)]); _local8[_local17] = ((_local9 << 1) | (_local9 >>> 31)); _local9 = ((((((_local12 << 5) | (_local12 >>> 27)) + (((_local13 & _local14) | (_local13 & _local15)) | (_local14 & _local15))) + _local16) + int(_local8[_local17])) + 2400959708); _local16 = _local15; _local15 = _local14; _local14 = ((_local13 << 30) | (_local13 >>> 2)); _local13 = _local12; _local12 = _local9; _local17++; }; while (_local17 < 80) { _local9 = (((_local8[(_local17 - 3)] ^ _local8[(_local17 - 8)]) ^ _local8[(_local17 - 14)]) ^ _local8[(_local17 - 16)]); _local8[_local17] = ((_local9 << 1) | (_local9 >>> 31)); _local9 = ((((((_local12 << 5) | (_local12 >>> 27)) + ((_local13 ^ _local14) ^ _local15)) + _local16) + int(_local8[_local17])) + 3395469782); _local16 = _local15; _local15 = _local14; _local14 = ((_local13 << 30) | (_local13 >>> 2)); _local13 = _local12; _local12 = _local9; _local17++; }; _local2 = (_local2 + _local12); _local3 = (_local3 + _local13); _local4 = (_local4 + _local14); _local5 = (_local5 + _local15); _local6 = (_local6 + _local16); _local10 = (_local10 + 16); }; var _local11:ByteArray = new ByteArray(); _local11.writeInt(_local2); _local11.writeInt(_local3); _local11.writeInt(_local4); _local11.writeInt(_local5); _local11.writeInt(_local6); _local11.position = 0; digest = new ByteArray(); digest.writeBytes(_local11); digest.position = 0; return (_local11); } private static function createBlocksFromByteArray(_arg1:ByteArray):Array{ var _local2:int = _arg1.position; _arg1.position = 0; var _local3:Array = new Array(); var _local4:int = (_arg1.length * 8); var _local5 = 0xFF; var _local6:int; while (_local6 < _local4) { _local3[(_local6 >> 5)] = (_local3[(_local6 >> 5)] | ((_arg1.readByte() & _local5) << (24 - (_local6 % 32)))); _local6 = (_local6 + 8); }; _local3[(_local4 >> 5)] = (_local3[(_local4 >> 5)] | (128 << (24 - (_local4 % 32)))); _local3[((((_local4 + 64) >> 9) << 4) + 15)] = _local4; _arg1.position = _local2; return (_local3); } public static function hashBytes(_arg1:ByteArray):String{ var _local2:Array = SHA1.createBlocksFromByteArray(_arg1); var _local3:ByteArray = hashBlocks(_local2); return (((((IntUtil.toHex(_local3.readInt(), true) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true)) + IntUtil.toHex(_local3.readInt(), true))); } public static function hashToBase64(_arg1:String):String{ var _local7:uint; var _local2:Array = SHA1.createBlocksFromString(_arg1); var _local3:ByteArray = hashBlocks(_local2); var _local4 = ""; _local3.position = 0; var _local5:int; while (_local5 < _local3.length) { _local7 = _local3.readUnsignedByte(); _local4 = (_local4 + String.fromCharCode(_local7)); _local5++; }; var _local6:Base64Encoder = new Base64Encoder(); _local6.encode(_local4); return (_local6.flush()); } } }//package com.eightlabs.utilities
Section 212
//HMAC (com.hurlant.crypto.hash.HMAC) package com.hurlant.crypto.hash { import flash.utils.*; public class HMAC { private var bits:uint; private var hash:IHash; public function HMAC(_arg1:IHash, _arg2:uint=0){ this.hash = _arg1; this.bits = _arg2; } public function getHashSize():uint{ if (bits != 0){ return ((bits / 8)); }; return (hash.getHashSize()); } public function dispose():void{ hash = null; bits = 0; } public function compute(_arg1:ByteArray, _arg2:ByteArray):ByteArray{ var _local3:ByteArray; var _local4:ByteArray; var _local5:ByteArray; var _local6:uint; var _local7:ByteArray; var _local8:ByteArray; if (_arg1.length > hash.getInputSize()){ _local3 = hash.hash(_arg1); } else { _local3 = new ByteArray(); _local3.writeBytes(_arg1); }; while (_local3.length < hash.getInputSize()) { _local3[_local3.length] = 0; }; _local4 = new ByteArray(); _local5 = new ByteArray(); _local6 = 0; while (_local6 < _local3.length) { _local4[_local6] = (_local3[_local6] ^ 54); _local5[_local6] = (_local3[_local6] ^ 92); _local6++; }; _local4.position = _local3.length; _local4.writeBytes(_arg2); _local7 = hash.hash(_local4); _local5.position = _local3.length; _local5.writeBytes(_local7); _local8 = hash.hash(_local5); if ((((bits > 0)) && ((bits < (8 * _local8.length))))){ _local8.length = (bits / 8); }; return (_local8); } public function toString():String{ return ((("hmac-" + ((bits > 0)) ? (bits + "-") : "") + hash.toString())); } } }//package com.hurlant.crypto.hash
Section 213
//IHash (com.hurlant.crypto.hash.IHash) package com.hurlant.crypto.hash { import flash.utils.*; public interface IHash { function toString():String; function getHashSize():uint; function getInputSize():uint; function hash(_arg1:ByteArray):ByteArray; } }//package com.hurlant.crypto.hash
Section 214
//MD2 (com.hurlant.crypto.hash.MD2) package com.hurlant.crypto.hash { import flash.utils.*; public class MD2 implements IHash { public static const HASH_SIZE:int = 16; private static const S:Array = [41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6, 19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188, 76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24, 138, 23, 229, 18, 190, 78, 196, 214, 218, 158, 222, 73, 160, 251, 245, 142, 187, 47, 238, 122, 169, 104, 121, 145, 21, 178, 7, 63, 148, 194, 16, 137, 11, 34, 95, 33, 128, 127, 93, 154, 90, 144, 50, 39, 53, 62, 204, 231, 191, 247, 151, 3, 0xFF, 25, 48, 179, 72, 165, 181, 209, 215, 94, 146, 42, 172, 86, 170, 198, 79, 184, 56, 210, 150, 164, 125, 182, 118, 252, 107, 226, 156, 116, 4, 241, 69, 157, 112, 89, 100, 113, 135, 32, 134, 91, 207, 101, 230, 45, 168, 2, 27, 96, 37, 173, 174, 176, 185, 246, 28, 70, 97, 105, 52, 64, 126, 15, 85, 71, 163, 35, 221, 81, 175, 58, 195, 92, 249, 206, 186, 197, 234, 38, 44, 83, 13, 110, 133, 40, 132, 9, 211, 223, 205, 244, 65, 129, 77, 82, 106, 220, 55, 200, 108, 193, 171, 250, 36, 225, 123, 8, 12, 189, 177, 74, 120, 136, 149, 139, 227, 99, 232, 109, 233, 203, 213, 254, 59, 0, 29, 57, 242, 239, 183, 14, 102, 88, 208, 228, 166, 119, 114, 248, 235, 117, 75, 10, 49, 68, 80, 180, 143, 237, 31, 26, 219, 153, 141, 51, 159, 17, 131, 20]; public function getHashSize():uint{ return (HASH_SIZE); } public function toString():String{ return ("md2"); } public function getInputSize():uint{ return (16); } public function hash(_arg1:ByteArray):ByteArray{ var _local2:uint; var _local3:uint; var _local4:uint; var _local5:ByteArray; var _local6:uint; var _local7:ByteArray; var _local8:uint; var _local9:uint; var _local10:uint; _local2 = _arg1.length; _local3 = (((16 - (_arg1.length % 16))) || (16)); do { _arg1[_arg1.length] = _local3; } while ((_arg1.length % 16) != 0); _local4 = _arg1.length; _local5 = new ByteArray(); _local6 = 0; _local3 = 0; while (_local3 < _local4) { _local8 = 0; while (_local8 < 16) { _local6 = (_local5[_local8] = (_local5[_local8] ^ S[(_arg1[(_local3 + _local8)] ^ _local6)])); _local8++; }; _local3 = (_local3 + 16); }; _arg1.position = _arg1.length; _arg1.writeBytes(_local5); _local4 = (_local4 + 16); _local7 = new ByteArray(); _local3 = 0; while (_local3 < _local4) { _local8 = 0; while (_local8 < 16) { _local7[(32 + _local8)] = ((_local7[(16 + _local8)] = _arg1[(_local3 + _local8)]) ^ _local7[_local8]); _local8++; }; _local9 = 0; _local8 = 0; while (_local8 < 18) { _local10 = 0; while (_local10 < 48) { _local9 = (_local7[_local10] ^ S[_local9]); _local7[_local10] = _local9; _local10++; }; _local9 = ((_local9 + _local8) & 0xFF); _local8++; }; _local3 = (_local3 + 16); }; _local7.length = 16; _arg1.length = _local2; return (_local7); } } }//package com.hurlant.crypto.hash
Section 215
//MD5 (com.hurlant.crypto.hash.MD5) package com.hurlant.crypto.hash { import flash.utils.*; public class MD5 implements IHash { public static const HASH_SIZE:int = 16; private function ff(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{ return (cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7)); } private function hh(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{ return (cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7)); } private function cmn(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint):uint{ return ((rol((((_arg2 + _arg1) + _arg4) + _arg6), _arg5) + _arg3)); } public function getHashSize():uint{ return (HASH_SIZE); } private function ii(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{ return (cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7)); } private function rol(_arg1:uint, _arg2:uint):uint{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } public function toString():String{ return ("md5"); } public function getInputSize():uint{ return (64); } private function gg(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{ return (cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7)); } public function hash(_arg1:ByteArray):ByteArray{ var _local2:uint; var _local3:String; var _local4:Array; var _local5:uint; var _local6:Array; var _local7:ByteArray; _local2 = (_arg1.length * 8); _local3 = _arg1.endian; while ((_arg1.length % 4) != 0) { _arg1[_arg1.length] = 0; }; _arg1.position = 0; _local4 = []; _arg1.endian = Endian.LITTLE_ENDIAN; _local5 = 0; while (_local5 < _arg1.length) { _local4.push(_arg1.readUnsignedInt()); _local5 = (_local5 + 4); }; _local6 = core_md5(_local4, _local2); _local7 = new ByteArray(); _local7.endian = Endian.LITTLE_ENDIAN; _local5 = 0; while (_local5 < 4) { _local7.writeUnsignedInt(_local6[_local5]); _local5++; }; _arg1.length = (_local2 / 8); _arg1.endian = _local3; return (_local7); } private function core_md5(_arg1:Array, _arg2:uint):Array{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; var _local11:uint; _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32))); _arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2; _local3 = 1732584193; _local4 = 4023233417; _local5 = 2562383102; _local6 = 271733878; _local7 = 0; while (_local7 < _arg1.length) { _arg1[_local7] = ((_arg1[_local7]) || (0)); _arg1[(_local7 + 1)] = ((_arg1[(_local7 + 1)]) || (0)); _arg1[(_local7 + 2)] = ((_arg1[(_local7 + 2)]) || (0)); _arg1[(_local7 + 3)] = ((_arg1[(_local7 + 3)]) || (0)); _arg1[(_local7 + 4)] = ((_arg1[(_local7 + 4)]) || (0)); _arg1[(_local7 + 5)] = ((_arg1[(_local7 + 5)]) || (0)); _arg1[(_local7 + 6)] = ((_arg1[(_local7 + 6)]) || (0)); _arg1[(_local7 + 7)] = ((_arg1[(_local7 + 7)]) || (0)); _arg1[(_local7 + 8)] = ((_arg1[(_local7 + 8)]) || (0)); _arg1[(_local7 + 9)] = ((_arg1[(_local7 + 9)]) || (0)); _arg1[(_local7 + 10)] = ((_arg1[(_local7 + 10)]) || (0)); _arg1[(_local7 + 11)] = ((_arg1[(_local7 + 11)]) || (0)); _arg1[(_local7 + 12)] = ((_arg1[(_local7 + 12)]) || (0)); _arg1[(_local7 + 13)] = ((_arg1[(_local7 + 13)]) || (0)); _arg1[(_local7 + 14)] = ((_arg1[(_local7 + 14)]) || (0)); _arg1[(_local7 + 15)] = ((_arg1[(_local7 + 15)]) || (0)); _local8 = _local3; _local9 = _local4; _local10 = _local5; _local11 = _local6; _local3 = ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, 3614090360); _local6 = ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, 3905402710); _local5 = ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819); _local4 = ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, 3250441966); _local3 = ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, 4118548399); _local6 = ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426); _local5 = ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, 2821735955); _local4 = ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, 4249261313); _local3 = ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416); _local6 = ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, 2336552879); _local5 = ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, 4294925233); _local4 = ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, 2304563134); _local3 = ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682); _local6 = ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, 4254626195); _local5 = ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, 2792965006); _local4 = ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329); _local3 = gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, 4129170786); _local6 = gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, 3225465664); _local5 = gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713); _local4 = gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, 3921069994); _local3 = gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, 3593408605); _local6 = gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083); _local5 = gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, 3634488961); _local4 = gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, 3889429448); _local3 = gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438); _local6 = gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, 3275163606); _local5 = gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, 4107603335); _local4 = gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501); _local3 = gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, 2850285829); _local6 = gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, 4243563512); _local5 = gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473); _local4 = gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, 2368359562); _local3 = hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, 4294588738); _local6 = hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, 2272392833); _local5 = hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562); _local4 = hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, 4259657740); _local3 = hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, 2763975236); _local6 = hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353); _local5 = hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, 4139469664); _local4 = hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, 3200236656); _local3 = hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174); _local6 = hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, 3936430074); _local5 = hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, 3572445317); _local4 = hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189); _local3 = hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, 3654602809); _local6 = hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, 3873151461); _local5 = hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520); _local4 = hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, 3299628645); _local3 = ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, 4096336452); _local6 = ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415); _local5 = ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, 2878612391); _local4 = ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, 4237533241); _local3 = ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571); _local6 = ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, 2399980690); _local5 = ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, 4293915773); _local4 = ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, 2240044497); _local3 = ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359); _local6 = ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, 4264355552); _local5 = ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, 2734768916); _local4 = ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649); _local3 = ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, 4149444226); _local6 = ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, 3174756917); _local5 = ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259); _local4 = ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, 3951481745); _local3 = (_local3 + _local8); _local4 = (_local4 + _local9); _local5 = (_local5 + _local10); _local6 = (_local6 + _local11); _local7 = (_local7 + 16); }; return ([_local3, _local4, _local5, _local6]); } } }//package com.hurlant.crypto.hash
Section 216
//SHA1 (com.hurlant.crypto.hash.SHA1) package com.hurlant.crypto.hash { public class SHA1 extends SHABase implements IHash { public static const HASH_SIZE:int = 20; private function ft(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint):uint{ if (_arg1 < 20){ return (((_arg2 & _arg3) | (~(_arg2) & _arg4))); }; if (_arg1 < 40){ return (((_arg2 ^ _arg3) ^ _arg4)); }; if (_arg1 < 60){ return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4))); }; return (((_arg2 ^ _arg3) ^ _arg4)); } private function kt(_arg1:uint):uint{ return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? 2400959708 : 3395469782); } override public function toString():String{ return ("sha1"); } override public function getHashSize():uint{ return (HASH_SIZE); } private function rol(_arg1:uint, _arg2:uint):uint{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } override protected function core(_arg1:Array, _arg2:uint):Array{ var _local3:Array; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:uint; var _local14:uint; var _local15:uint; var _local16:uint; _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32)))); _arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2; _local3 = []; _local4 = 1732584193; _local5 = 4023233417; _local6 = 2562383102; _local7 = 271733878; _local8 = 3285377520; _local9 = 0; while (_local9 < _arg1.length) { _local10 = _local4; _local11 = _local5; _local12 = _local6; _local13 = _local7; _local14 = _local8; _local15 = 0; while (_local15 < 80) { if (_local15 < 16){ _local3[_local15] = ((_arg1[(_local9 + _local15)]) || (0)); } else { _local3[_local15] = rol((((_local3[(_local15 - 3)] ^ _local3[(_local15 - 8)]) ^ _local3[(_local15 - 14)]) ^ _local3[(_local15 - 16)]), 1); }; _local16 = ((((rol(_local4, 5) + ft(_local15, _local5, _local6, _local7)) + _local8) + _local3[_local15]) + kt(_local15)); _local8 = _local7; _local7 = _local6; _local6 = rol(_local5, 30); _local5 = _local4; _local4 = _local16; _local15++; }; _local4 = (_local4 + _local10); _local5 = (_local5 + _local11); _local6 = (_local6 + _local12); _local7 = (_local7 + _local13); _local8 = (_local8 + _local14); _local9 = (_local9 + 16); }; return ([_local4, _local5, _local6, _local7, _local8]); } } }//package com.hurlant.crypto.hash
Section 217
//SHA224 (com.hurlant.crypto.hash.SHA224) package com.hurlant.crypto.hash { public class SHA224 extends SHA256 { public function SHA224(){ h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]; } override public function getHashSize():uint{ return (28); } override public function toString():String{ return ("sha224"); } } }//package com.hurlant.crypto.hash
Section 218
//SHA256 (com.hurlant.crypto.hash.SHA256) package com.hurlant.crypto.hash { public class SHA256 extends SHABase implements IHash { protected var h:Array; protected static const k:Array = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; public function SHA256(){ h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]; super(); } protected function rrol(_arg1:uint, _arg2:uint):uint{ return (((_arg1 << (32 - _arg2)) | (_arg1 >>> _arg2))); } override public function toString():String{ return ("sha256"); } override public function getHashSize():uint{ return (32); } override protected function core(_arg1:Array, _arg2:uint):Array{ var _local3:Array; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:uint; var _local14:uint; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:uint; var _local20:uint; var _local21:uint; var _local22:uint; var _local23:uint; var _local24:uint; var _local25:uint; _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32)))); _arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2; _local3 = []; _local4 = h[0]; _local5 = h[1]; _local6 = h[2]; _local7 = h[3]; _local8 = h[4]; _local9 = h[5]; _local10 = h[6]; _local11 = h[7]; _local12 = 0; while (_local12 < _arg1.length) { _local13 = _local4; _local14 = _local5; _local15 = _local6; _local16 = _local7; _local17 = _local8; _local18 = _local9; _local19 = _local10; _local20 = _local11; _local21 = 0; while (_local21 < 64) { if (_local21 < 16){ _local3[_local21] = ((_arg1[(_local12 + _local21)]) || (0)); } else { _local24 = ((rrol(_local3[(_local21 - 15)], 7) ^ rrol(_local3[(_local21 - 15)], 18)) ^ (_local3[(_local21 - 15)] >>> 3)); _local25 = ((rrol(_local3[(_local21 - 2)], 17) ^ rrol(_local3[(_local21 - 2)], 19)) ^ (_local3[(_local21 - 2)] >>> 10)); _local3[_local21] = (((_local3[(_local21 - 16)] + _local24) + _local3[(_local21 - 7)]) + _local25); }; _local22 = (((rrol(_local4, 2) ^ rrol(_local4, 13)) ^ rrol(_local4, 22)) + (((_local4 & _local5) ^ (_local4 & _local6)) ^ (_local5 & _local6))); _local23 = ((((_local11 + ((rrol(_local8, 6) ^ rrol(_local8, 11)) ^ rrol(_local8, 25))) + ((_local8 & _local9) ^ (_local10 & ~(_local8)))) + k[_local21]) + _local3[_local21]); _local11 = _local10; _local10 = _local9; _local9 = _local8; _local8 = (_local7 + _local23); _local7 = _local6; _local6 = _local5; _local5 = _local4; _local4 = (_local23 + _local22); _local21++; }; _local4 = (_local4 + _local13); _local5 = (_local5 + _local14); _local6 = (_local6 + _local15); _local7 = (_local7 + _local16); _local8 = (_local8 + _local17); _local9 = (_local9 + _local18); _local10 = (_local10 + _local19); _local11 = (_local11 + _local20); _local12 = (_local12 + 16); }; return ([_local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11]); } } }//package com.hurlant.crypto.hash
Section 219
//SHABase (com.hurlant.crypto.hash.SHABase) package com.hurlant.crypto.hash { import flash.utils.*; public class SHABase implements IHash { public function getHashSize():uint{ return (0); } public function toString():String{ return ("sha"); } public function getInputSize():uint{ return (64); } public function hash(_arg1:ByteArray):ByteArray{ var _local2:uint; var _local3:String; var _local4:uint; var _local5:Array; var _local6:uint; var _local7:Array; var _local8:ByteArray; var _local9:uint; _local2 = _arg1.length; _local3 = _arg1.endian; _arg1.endian = Endian.BIG_ENDIAN; _local4 = (_local2 * 8); while ((_arg1.length % 4) != 0) { _arg1[_arg1.length] = 0; }; _arg1.position = 0; _local5 = []; _local6 = 0; while (_local6 < _arg1.length) { _local5.push(_arg1.readUnsignedInt()); _local6 = (_local6 + 4); }; _local7 = core(_local5, _local4); _local8 = new ByteArray(); _local9 = (getHashSize() / 4); _local6 = 0; while (_local6 < _local9) { _local8.writeUnsignedInt(_local7[_local6]); _local6++; }; _arg1.length = _local2; _arg1.endian = _local3; return (_local8); } protected function core(_arg1:Array, _arg2:uint):Array{ return (null); } } }//package com.hurlant.crypto.hash
Section 220
//ARC4 (com.hurlant.crypto.prng.ARC4) package com.hurlant.crypto.prng { import com.hurlant.crypto.symmetric.*; import flash.utils.*; import com.hurlant.util.*; public class ARC4 implements IPRNG, IStreamCipher { private const psize:uint = 0x0100; private var S:ByteArray; private var i:int;// = 0 private var j:int;// = 0 public function ARC4(_arg1:ByteArray=null){ i = 0; j = 0; super(); S = new ByteArray(); if (_arg1){ init(_arg1); }; } public function decrypt(_arg1:ByteArray):void{ encrypt(_arg1); } public function init(_arg1:ByteArray):void{ var _local2:int; var _local3:int; var _local4:int; _local2 = 0; while (_local2 < 0x0100) { S[_local2] = _local2; _local2++; }; _local3 = 0; _local2 = 0; while (_local2 < 0x0100) { _local3 = (((_local3 + S[_local2]) + _arg1[(_local2 % _arg1.length)]) & 0xFF); _local4 = S[_local2]; S[_local2] = S[_local3]; S[_local3] = _local4; _local2++; }; this.i = 0; this.j = 0; } public function dispose():void{ var _local1:uint; _local1 = 0; if (S != null){ _local1 = 0; while (_local1 < S.length) { S[_local1] = (Math.random() * 0x0100); _local1++; }; S.length = 0; S = null; }; this.i = 0; this.j = 0; Memory.gc(); } public function encrypt(_arg1:ByteArray):void{ var _local2:uint; _local2 = 0; while (_local2 < _arg1.length) { var _temp1 = _local2; _local2 = (_local2 + 1); var _local3 = _temp1; _arg1[_local3] = (_arg1[_local3] ^ next()); }; } public function next():uint{ var _local1:int; i = ((i + 1) & 0xFF); j = ((j + S[i]) & 0xFF); _local1 = S[i]; S[i] = S[j]; S[j] = _local1; return (S[((_local1 + S[i]) & 0xFF)]); } public function getBlockSize():uint{ return (1); } public function getPoolSize():uint{ return (psize); } public function toString():String{ return ("rc4"); } } }//package com.hurlant.crypto.prng
Section 221
//IPRNG (com.hurlant.crypto.prng.IPRNG) package com.hurlant.crypto.prng { import flash.utils.*; public interface IPRNG { function init(_arg1:ByteArray):void; function next():uint; function dispose():void; function getPoolSize():uint; function toString():String; } }//package com.hurlant.crypto.prng
Section 222
//Random (com.hurlant.crypto.prng.Random) package com.hurlant.crypto.prng { import flash.text.*; import flash.utils.*; import com.hurlant.util.*; import flash.system.*; public class Random { private var psize:int; private var ready:Boolean;// = false private var seeded:Boolean;// = false private var state:IPRNG; private var pool:ByteArray; private var pptr:int; public function Random(_arg1:Class=null){ var _local2:uint; ready = false; seeded = false; super(); if (_arg1 == null){ _arg1 = ARC4; }; state = (new (_arg1) as IPRNG); psize = state.getPoolSize(); pool = new ByteArray(); pptr = 0; while (pptr < psize) { _local2 = (65536 * Math.random()); var _local3 = pptr++; pool[_local3] = (_local2 >>> 8); var _local4 = pptr++; pool[_local4] = (_local2 & 0xFF); }; pptr = 0; seed(); } public function seed(_arg1:int=0):void{ if (_arg1 == 0){ _arg1 = new Date().getTime(); }; var _local2 = pptr++; pool[_local2] = (pool[_local2] ^ (_arg1 & 0xFF)); var _local3 = pptr++; pool[_local3] = (pool[_local3] ^ ((_arg1 >> 8) & 0xFF)); var _local4 = pptr++; pool[_local4] = (pool[_local4] ^ ((_arg1 >> 16) & 0xFF)); var _local5 = pptr++; pool[_local5] = (pool[_local5] ^ ((_arg1 >> 24) & 0xFF)); pptr = (pptr % psize); seeded = true; } public function toString():String{ return (("random-" + state.toString())); } public function dispose():void{ var _local1:uint; _local1 = 0; while (_local1 < pool.length) { pool[_local1] = (Math.random() * 0x0100); _local1++; }; pool.length = 0; pool = null; state.dispose(); state = null; psize = 0; pptr = 0; Memory.gc(); } public function autoSeed():void{ var _local1:ByteArray; var _local2:Array; var _local3:Font; _local1 = new ByteArray(); _local1.writeUnsignedInt(System.totalMemory); _local1.writeUTF(Capabilities.serverString); _local1.writeUnsignedInt(getTimer()); _local1.writeUnsignedInt(new Date().getTime()); _local2 = Font.enumerateFonts(true); for each (_local3 in _local2) { _local1.writeUTF(_local3.fontName); _local1.writeUTF(_local3.fontStyle); _local1.writeUTF(_local3.fontType); }; _local1.position = 0; while (_local1.bytesAvailable >= 4) { seed(_local1.readUnsignedInt()); }; } public function nextByte():int{ if (!ready){ if (!seeded){ autoSeed(); }; state.init(pool); pool.length = 0; pptr = 0; ready = true; }; return (state.next()); } public function nextBytes(_arg1:ByteArray, _arg2:int):void{ while (_arg2--) { _arg1.writeByte(nextByte()); }; } } }//package com.hurlant.crypto.prng
Section 223
//RSAKey (com.hurlant.crypto.rsa.RSAKey) package com.hurlant.crypto.rsa { import flash.utils.*; import com.hurlant.math.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class RSAKey { public var dmp1:BigInteger; protected var canDecrypt:Boolean; public var d:BigInteger; public var e:int; public var dmq1:BigInteger; public var n:BigInteger; public var p:BigInteger; public var q:BigInteger; protected var canEncrypt:Boolean; public var coeff:BigInteger; public function RSAKey(_arg1:BigInteger, _arg2:int, _arg3:BigInteger=null, _arg4:BigInteger=null, _arg5:BigInteger=null, _arg6:BigInteger=null, _arg7:BigInteger=null, _arg8:BigInteger=null){ this.n = _arg1; this.e = _arg2; this.d = _arg3; this.p = _arg4; this.q = _arg5; this.dmp1 = _arg6; this.dmq1 = _arg7; this.coeff = _arg8; canEncrypt = ((!((n == null))) && (!((e == 0)))); canDecrypt = ((canEncrypt) && (!((d == null)))); } public function verify(_arg1:ByteArray, _arg2:ByteArray, _arg3:uint, _arg4:Function=null):void{ _decrypt(doPublic, _arg1, _arg2, _arg3, _arg4, 1); } public function dump():String{ var _local1:String; _local1 = ((((("N=" + n.toString(16)) + "\n") + "E=") + e.toString(16)) + "\n"); if (canDecrypt){ _local1 = (_local1 + (("D=" + d.toString(16)) + "\n")); if (((!((p == null))) && (!((q == null))))){ _local1 = (_local1 + (("P=" + p.toString(16)) + "\n")); _local1 = (_local1 + (("Q=" + q.toString(16)) + "\n")); _local1 = (_local1 + (("DMP1=" + dmp1.toString(16)) + "\n")); _local1 = (_local1 + (("DMQ1=" + dmq1.toString(16)) + "\n")); _local1 = (_local1 + (("IQMP=" + coeff.toString(16)) + "\n")); }; }; return (_local1); } protected function doPrivate2(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; var _local3:BigInteger; var _local4:BigInteger; if ((((p == null)) && ((q == null)))){ return (_arg1.modPow(d, n)); }; _local2 = _arg1.mod(p).modPow(dmp1, p); _local3 = _arg1.mod(q).modPow(dmq1, q); while (_local2.compareTo(_local3) < 0) { _local2 = _local2.add(p); }; _local4 = _local2.subtract(_local3).multiply(coeff).mod(p).multiply(q).add(_local3); return (_local4); } public function decrypt(_arg1:ByteArray, _arg2:ByteArray, _arg3:uint, _arg4:Function=null):void{ _decrypt(doPrivate2, _arg1, _arg2, _arg3, _arg4, 2); } private function _decrypt(_arg1:Function, _arg2:ByteArray, _arg3:ByteArray, _arg4:uint, _arg5:Function, _arg6:int):void{ var _local7:uint; var _local8:int; var _local9:BigInteger; var _local10:BigInteger; var _local11:ByteArray; if (_arg5 == null){ _arg5 = pkcs1unpad; }; if (_arg2.position >= _arg2.length){ _arg2.position = 0; }; _local7 = getBlockSize(); _local8 = (_arg2.position + _arg4); while (_arg2.position < _local8) { _local9 = new BigInteger(_arg2, _arg4); _local10 = _arg1(_local9); _local11 = _arg5(_local10, _local7); _arg3.writeBytes(_local11); }; } protected function doPublic(_arg1:BigInteger):BigInteger{ return (_arg1.modPowInt(e, n)); } public function dispose():void{ e = 0; n.dispose(); n = null; Memory.gc(); } private function _encrypt(_arg1:Function, _arg2:ByteArray, _arg3:ByteArray, _arg4:uint, _arg5:Function, _arg6:int):void{ var _local7:uint; var _local8:int; var _local9:BigInteger; var _local10:BigInteger; if (_arg5 == null){ _arg5 = pkcs1pad; }; if (_arg2.position >= _arg2.length){ _arg2.position = 0; }; _local7 = getBlockSize(); _local8 = (_arg2.position + _arg4); while (_arg2.position < _local8) { _local9 = new BigInteger(_arg5(_arg2, _local8, _local7, _arg6), _local7); _local10 = _arg1(_local9); _local10.toArray(_arg3); }; } private function rawpad(_arg1:ByteArray, _arg2:int, _arg3:uint):ByteArray{ return (_arg1); } public function encrypt(_arg1:ByteArray, _arg2:ByteArray, _arg3:uint, _arg4:Function=null):void{ _encrypt(doPublic, _arg1, _arg2, _arg3, _arg4, 2); } private function pkcs1pad(_arg1:ByteArray, _arg2:int, _arg3:uint, _arg4:uint=2):ByteArray{ var _local5:ByteArray; var _local6:uint; var _local7:int; var _local8:Random; var _local9:int; _local5 = new ByteArray(); _local6 = _arg1.position; _arg2 = Math.min(_arg2, _arg1.length, ((_local6 + _arg3) - 11)); _arg1.position = _arg2; _local7 = (_arg2 - 1); while ((((_local7 >= _local6)) && ((_arg3 > 11)))) { --_arg3; var _local10 = _arg3; var _temp1 = _local7; _local7 = (_local7 - 1); _local5[_local10] = _arg1[_temp1]; }; --_arg3; _local10 = _arg3; _local5[_local10] = 0; _local8 = new Random(); while (_arg3 > 2) { _local9 = 0; while (_local9 == 0) { _local9 = ((_arg4)==2) ? _local8.nextByte() : 0xFF; }; --_arg3; var _local11 = _arg3; _local5[_local11] = _local9; }; --_arg3; _local11 = _arg3; _local5[_local11] = _arg4; --_arg3; var _local12 = _arg3; _local5[_local12] = 0; return (_local5); } private function pkcs1unpad(_arg1:BigInteger, _arg2:uint, _arg3:uint=2):ByteArray{ var _local4:ByteArray; var _local5:ByteArray; var _local6:int; _local4 = _arg1.toByteArray(); _local5 = new ByteArray(); _local6 = 0; while ((((_local6 < _local4.length)) && ((_local4[_local6] == 0)))) { _local6++; }; if (((!(((_local4.length - _local6) == (_arg2 - 1)))) || ((_local4[_local6] > 2)))){ trace(((("PKCS#1 unpad: i=" + _local6) + ", expected b[i]==[0,1,2], got b[i]=") + _local4[_local6].toString(16))); return (null); }; _local6++; while (_local4[_local6] != 0) { ++_local6; if (_local6 >= _local4.length){ trace((((("PKCS#1 unpad: i=" + _local6) + ", b[i-1]!=0 (=") + _local4[(_local6 - 1)].toString(16)) + ")")); return (null); }; }; while (++_local6 < _local4.length) { _local5.writeByte(_local4[_local6]); }; _local5.position = 0; return (_local5); } public function getBlockSize():uint{ return (((n.bitLength() + 7) / 8)); } public function toString():String{ return ("rsa"); } public function sign(_arg1:ByteArray, _arg2:ByteArray, _arg3:uint, _arg4:Function=null):void{ _encrypt(doPrivate2, _arg1, _arg2, _arg3, _arg4, 1); } protected function doPrivate(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; var _local3:BigInteger; if ((((p == null)) || ((q == null)))){ return (_arg1.modPow(d, n)); }; _local2 = _arg1.mod(p).modPow(dmp1, p); _local3 = _arg1.mod(q).modPow(dmq1, q); while (_local2.compareTo(_local3) < 0) { _local2 = _local2.add(p); }; return (_local2.subtract(_local3).multiply(coeff).mod(p).multiply(q).add(_local3)); } protected static function bigRandom(_arg1:int, _arg2:Random):BigInteger{ var _local3:ByteArray; var _local4:BigInteger; if (_arg1 < 2){ return (BigInteger.nbv(1)); }; _local3 = new ByteArray(); _arg2.nextBytes(_local3, (_arg1 >> 3)); _local3.position = 0; _local4 = new BigInteger(_local3); _local4.primify(_arg1, 1); return (_local4); } public static function parsePublicKey(_arg1:String, _arg2:String):RSAKey{ return (new RSAKey(new BigInteger(_arg1, 16), parseInt(_arg2, 16))); } public static function generate(_arg1:uint, _arg2:String):RSAKey{ var _local3:Random; var _local4:uint; var _local5:RSAKey; var _local6:BigInteger; var _local7:BigInteger; var _local8:BigInteger; var _local9:BigInteger; var _local10:BigInteger; _local3 = new Random(); _local4 = (_arg1 >> 1); _local5 = new RSAKey(null, 0, null); _local5.e = parseInt(_arg2, 16); _local6 = new BigInteger(_arg2, 16); while (true) { while (true) { _local5.p = bigRandom((_arg1 - _local4), _local3); if ((((_local5.p.subtract(BigInteger.ONE).gcd(_local6).compareTo(BigInteger.ONE) == 0)) && (_local5.p.isProbablePrime(10)))){ break; }; }; while (true) { _local5.q = bigRandom(_local4, _local3); if ((((_local5.q.subtract(BigInteger.ONE).gcd(_local6).compareTo(BigInteger.ONE) == 0)) && (_local5.q.isProbablePrime(10)))){ break; }; }; if (_local5.p.compareTo(_local5.q) <= 0){ _local10 = _local5.p; _local5.p = _local5.q; _local5.q = _local10; }; _local7 = _local5.p.subtract(BigInteger.ONE); _local8 = _local5.q.subtract(BigInteger.ONE); _local9 = _local7.multiply(_local8); if (_local9.gcd(_local6).compareTo(BigInteger.ONE) == 0){ _local5.n = _local5.p.multiply(_local5.q); _local5.d = _local6.modInverse(_local9); _local5.dmp1 = _local5.d.mod(_local7); _local5.dmq1 = _local5.d.mod(_local8); _local5.coeff = _local5.q.modInverse(_local5.p); break; }; }; return (_local5); } public static function parsePrivateKey(_arg1:String, _arg2:String, _arg3:String, _arg4:String=null, _arg5:String=null, _arg6:String=null, _arg7:String=null, _arg8:String=null):RSAKey{ if (_arg4 == null){ return (new RSAKey(new BigInteger(_arg1, 16), parseInt(_arg2, 16), new BigInteger(_arg3, 16))); }; return (new RSAKey(new BigInteger(_arg1, 16), parseInt(_arg2, 16), new BigInteger(_arg3, 16), new BigInteger(_arg4, 16), new BigInteger(_arg5, 16), new BigInteger(_arg6, 16), new BigInteger(_arg7), new BigInteger(_arg8))); } } }//package com.hurlant.crypto.rsa
Section 224
//AESKey (com.hurlant.crypto.symmetric.AESKey) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class AESKey implements ISymmetricKey { private var state:ByteArray; private var tmp:ByteArray; private var Nr:uint; private var keyLength:uint; private var key:ByteArray; private static const _Xtime2:Array = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 27, 25, 31, 29, 19, 17, 23, 21, 11, 9, 15, 13, 3, 1, 7, 5, 59, 57, 63, 61, 51, 49, 55, 53, 43, 41, 47, 45, 35, 33, 39, 37, 91, 89, 95, 93, 83, 81, 87, 85, 75, 73, 79, 77, 67, 65, 71, 69, 123, 121, 127, 125, 115, 113, 119, 117, 107, 105, 111, 109, 99, 97, 103, 101, 155, 153, 159, 157, 147, 145, 151, 149, 139, 137, 143, 141, 131, 129, 135, 133, 187, 185, 191, 189, 179, 177, 183, 181, 171, 169, 175, 173, 163, 161, 167, 165, 219, 217, 223, 221, 211, 209, 215, 213, 203, 201, 207, 205, 195, 193, 199, 197, 251, 249, 0xFF, 253, 243, 241, 247, 245, 235, 233, 239, 237, 227, 225, 231, 229]; private static const _Xtime9:Array = [0, 9, 18, 27, 36, 45, 54, 63, 72, 65, 90, 83, 108, 101, 126, 119, 144, 153, 130, 139, 180, 189, 166, 175, 216, 209, 202, 195, 252, 245, 238, 231, 59, 50, 41, 32, 31, 22, 13, 4, 115, 122, 97, 104, 87, 94, 69, 76, 171, 162, 185, 176, 143, 134, 157, 148, 227, 234, 241, 248, 199, 206, 213, 220, 118, 127, 100, 109, 82, 91, 64, 73, 62, 55, 44, 37, 26, 19, 8, 1, 230, 239, 244, 253, 194, 203, 208, 217, 174, 167, 188, 181, 138, 131, 152, 145, 77, 68, 95, 86, 105, 96, 123, 114, 5, 12, 23, 30, 33, 40, 51, 58, 221, 212, 207, 198, 249, 240, 235, 226, 149, 156, 135, 142, 177, 184, 163, 170, 236, 229, 254, 247, 200, 193, 218, 211, 164, 173, 182, 191, 128, 137, 146, 155, 124, 117, 110, 103, 88, 81, 74, 67, 52, 61, 38, 47, 16, 25, 2, 11, 215, 222, 197, 204, 243, 250, 225, 232, 159, 150, 141, 132, 187, 178, 169, 160, 71, 78, 85, 92, 99, 106, 113, 120, 15, 6, 29, 20, 43, 34, 57, 48, 154, 147, 136, 129, 190, 183, 172, 165, 210, 219, 192, 201, 246, 0xFF, 228, 237, 10, 3, 24, 17, 46, 39, 60, 53, 66, 75, 80, 89, 102, 111, 116, 125, 161, 168, 179, 186, 133, 140, 151, 158, 233, 224, 251, 242, 205, 196, 223, 214, 49, 56, 35, 42, 21, 28, 7, 14, 121, 112, 107, 98, 93, 84, 79, 70]; private static const Nb:uint = 4; private static const _XtimeB:Array = [0, 11, 22, 29, 44, 39, 58, 49, 88, 83, 78, 69, 116, 127, 98, 105, 176, 187, 166, 173, 156, 151, 138, 129, 232, 227, 254, 245, 196, 207, 210, 217, 123, 112, 109, 102, 87, 92, 65, 74, 35, 40, 53, 62, 15, 4, 25, 18, 203, 192, 221, 214, 231, 236, 241, 250, 147, 152, 133, 142, 191, 180, 169, 162, 246, 253, 224, 235, 218, 209, 204, 199, 174, 165, 184, 179, 130, 137, 148, 159, 70, 77, 80, 91, 106, 97, 124, 119, 30, 21, 8, 3, 50, 57, 36, 47, 141, 134, 155, 144, 161, 170, 183, 188, 213, 222, 195, 200, 249, 242, 239, 228, 61, 54, 43, 32, 17, 26, 7, 12, 101, 110, 115, 120, 73, 66, 95, 84, 247, 252, 225, 234, 219, 208, 205, 198, 175, 164, 185, 178, 131, 136, 149, 158, 71, 76, 81, 90, 107, 96, 125, 118, 31, 20, 9, 2, 51, 56, 37, 46, 140, 135, 154, 145, 160, 171, 182, 189, 212, 223, 194, 201, 248, 243, 238, 229, 60, 55, 42, 33, 16, 27, 6, 13, 100, 111, 114, 121, 72, 67, 94, 85, 1, 10, 23, 28, 45, 38, 59, 48, 89, 82, 79, 68, 117, 126, 99, 104, 177, 186, 167, 172, 157, 150, 139, 128, 233, 226, 0xFF, 244, 197, 206, 211, 216, 122, 113, 108, 103, 86, 93, 64, 75, 34, 41, 52, 63, 14, 5, 24, 19, 202, 193, 220, 215, 230, 237, 240, 251, 146, 153, 132, 143, 190, 181, 168, 163]; private static const _XtimeE:Array = [0, 14, 28, 18, 56, 54, 36, 42, 112, 126, 108, 98, 72, 70, 84, 90, 224, 238, 252, 242, 216, 214, 196, 202, 144, 158, 140, 130, 168, 166, 180, 186, 219, 213, 199, 201, 227, 237, 0xFF, 241, 171, 165, 183, 185, 147, 157, 143, 129, 59, 53, 39, 41, 3, 13, 31, 17, 75, 69, 87, 89, 115, 125, 111, 97, 173, 163, 177, 191, 149, 155, 137, 135, 221, 211, 193, 207, 229, 235, 249, 247, 77, 67, 81, 95, 117, 123, 105, 103, 61, 51, 33, 47, 5, 11, 25, 23, 118, 120, 106, 100, 78, 64, 82, 92, 6, 8, 26, 20, 62, 48, 34, 44, 150, 152, 138, 132, 174, 160, 178, 188, 230, 232, 250, 244, 222, 208, 194, 204, 65, 79, 93, 83, 121, 119, 101, 107, 49, 63, 45, 35, 9, 7, 21, 27, 161, 175, 189, 179, 153, 151, 133, 139, 209, 223, 205, 195, 233, 231, 245, 251, 154, 148, 134, 136, 162, 172, 190, 176, 234, 228, 246, 248, 210, 220, 206, 192, 122, 116, 102, 104, 66, 76, 94, 80, 10, 4, 22, 24, 50, 60, 46, 32, 236, 226, 240, 254, 212, 218, 200, 198, 156, 146, 128, 142, 164, 170, 184, 182, 12, 2, 16, 30, 52, 58, 40, 38, 124, 114, 96, 110, 68, 74, 88, 86, 55, 57, 43, 37, 15, 1, 19, 29, 71, 73, 91, 85, 127, 113, 99, 109, 215, 217, 203, 197, 239, 225, 243, 253, 167, 169, 187, 181, 159, 145, 131, 141]; private static const _Xtime2Sbox:Array = [198, 248, 238, 246, 0xFF, 214, 222, 145, 96, 2, 206, 86, 231, 181, 77, 236, 143, 31, 137, 250, 239, 178, 142, 251, 65, 179, 95, 69, 35, 83, 228, 155, 117, 225, 61, 76, 108, 126, 245, 131, 104, 81, 209, 249, 226, 171, 98, 42, 8, 149, 70, 157, 48, 55, 10, 47, 14, 36, 27, 223, 205, 78, 127, 234, 18, 29, 88, 52, 54, 220, 180, 91, 164, 118, 183, 125, 82, 221, 94, 19, 166, 185, 0, 193, 64, 227, 121, 182, 212, 141, 103, 114, 148, 152, 176, 133, 187, 197, 79, 237, 134, 154, 102, 17, 138, 233, 4, 254, 160, 120, 37, 75, 162, 93, 128, 5, 63, 33, 112, 241, 99, 119, 175, 66, 32, 229, 253, 191, 129, 24, 38, 195, 190, 53, 136, 46, 147, 85, 252, 122, 200, 186, 50, 230, 192, 25, 158, 163, 68, 84, 59, 11, 140, 199, 107, 40, 167, 188, 22, 173, 219, 100, 116, 20, 146, 12, 72, 184, 159, 189, 67, 196, 57, 49, 211, 242, 213, 139, 110, 218, 1, 177, 156, 73, 216, 172, 243, 207, 202, 244, 71, 16, 111, 240, 74, 92, 56, 87, 115, 151, 203, 161, 232, 62, 150, 97, 13, 15, 224, 124, 113, 204, 144, 6, 247, 28, 194, 106, 174, 105, 23, 153, 58, 39, 217, 235, 43, 34, 210, 169, 7, 51, 45, 60, 21, 201, 135, 170, 80, 165, 3, 89, 9, 26, 101, 215, 132, 208, 130, 41, 90, 30, 123, 168, 109, 44]; private static const _Xtime3Sbox:Array = [165, 132, 153, 141, 13, 189, 177, 84, 80, 3, 169, 125, 25, 98, 230, 154, 69, 157, 64, 135, 21, 235, 201, 11, 236, 103, 253, 234, 191, 247, 150, 91, 194, 28, 174, 106, 90, 65, 2, 79, 92, 244, 52, 8, 147, 115, 83, 63, 12, 82, 101, 94, 40, 161, 15, 181, 9, 54, 155, 61, 38, 105, 205, 159, 27, 158, 116, 46, 45, 178, 238, 251, 246, 77, 97, 206, 123, 62, 113, 151, 245, 104, 0, 44, 96, 31, 200, 237, 190, 70, 217, 75, 222, 212, 232, 74, 107, 42, 229, 22, 197, 215, 85, 148, 207, 16, 6, 129, 240, 68, 186, 227, 243, 254, 192, 138, 173, 188, 72, 4, 223, 193, 117, 99, 48, 26, 14, 109, 76, 20, 53, 47, 225, 162, 204, 57, 87, 242, 130, 71, 172, 231, 43, 149, 160, 152, 209, 127, 102, 126, 171, 131, 202, 41, 211, 60, 121, 226, 29, 118, 59, 86, 78, 30, 219, 10, 108, 228, 93, 110, 239, 166, 168, 164, 55, 139, 50, 67, 89, 183, 140, 100, 210, 224, 180, 250, 7, 37, 175, 142, 233, 24, 213, 136, 111, 114, 36, 241, 199, 81, 35, 124, 156, 33, 221, 220, 134, 133, 144, 66, 196, 170, 216, 5, 1, 18, 163, 95, 249, 208, 145, 88, 39, 185, 56, 19, 179, 51, 187, 112, 137, 167, 182, 34, 146, 32, 73, 0xFF, 120, 122, 143, 248, 128, 23, 218, 49, 198, 184, 195, 176, 119, 17, 203, 252, 214, 58]; private static const _InvSbox:Array = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 0xFF, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125]; private static const _XtimeD:Array = [0, 13, 26, 23, 52, 57, 46, 35, 104, 101, 114, 127, 92, 81, 70, 75, 208, 221, 202, 199, 228, 233, 254, 243, 184, 181, 162, 175, 140, 129, 150, 155, 187, 182, 161, 172, 143, 130, 149, 152, 211, 222, 201, 196, 231, 234, 253, 240, 107, 102, 113, 124, 95, 82, 69, 72, 3, 14, 25, 20, 55, 58, 45, 32, 109, 96, 119, 122, 89, 84, 67, 78, 5, 8, 31, 18, 49, 60, 43, 38, 189, 176, 167, 170, 137, 132, 147, 158, 213, 216, 207, 194, 225, 236, 251, 246, 214, 219, 204, 193, 226, 239, 248, 245, 190, 179, 164, 169, 138, 135, 144, 157, 6, 11, 28, 17, 50, 63, 40, 37, 110, 99, 116, 121, 90, 87, 64, 77, 218, 215, 192, 205, 238, 227, 244, 249, 178, 191, 168, 165, 134, 139, 156, 145, 10, 7, 16, 29, 62, 51, 36, 41, 98, 111, 120, 117, 86, 91, 76, 65, 97, 108, 123, 118, 85, 88, 79, 66, 9, 4, 19, 30, 61, 48, 39, 42, 177, 188, 171, 166, 133, 136, 159, 146, 217, 212, 195, 206, 237, 224, 247, 250, 183, 186, 173, 160, 131, 142, 153, 148, 223, 210, 197, 200, 235, 230, 241, 252, 103, 106, 125, 112, 83, 94, 73, 68, 15, 2, 21, 24, 59, 54, 33, 44, 12, 1, 22, 27, 56, 53, 34, 47, 100, 105, 126, 115, 80, 93, 74, 71, 220, 209, 198, 203, 232, 229, 242, 0xFF, 180, 185, 174, 163, 128, 141, 154, 151]; private static const _Sbox:Array = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 0xFF, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22]; private static var XtimeE:ByteArray = new ByteArray(); private static var i:uint = 0; private static var Xtime2Sbox:ByteArray = new ByteArray(); private static var Xtime3Sbox:ByteArray = new ByteArray(); private static var _Rcon:Array = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; private static var Sbox:ByteArray = new ByteArray(); private static var Rcon:ByteArray = new ByteArray(); private static var InvSbox:ByteArray = new ByteArray(); private static var Xtime2:ByteArray = new ByteArray(); private static var Xtime9:ByteArray = new ByteArray(); private static var XtimeB:ByteArray = new ByteArray(); private static var XtimeD:ByteArray = new ByteArray(); public function AESKey(_arg1:ByteArray){ tmp = new ByteArray(); state = new ByteArray(); keyLength = _arg1.length; this.key = new ByteArray(); this.key.writeBytes(_arg1); expandKey(); } public function toString():String{ return (("aes" + (8 * keyLength))); } public function decrypt(_arg1:ByteArray, _arg2:uint=0):void{ var _local3:uint; state.position = 0; state.writeBytes(_arg1, _arg2, (Nb * 4)); addRoundKey(key, ((Nr * Nb) * 4)); invShiftRows(); _local3 = Nr; while (_local3--) { addRoundKey(key, ((_local3 * Nb) * 4)); if (_local3){ invMixSubColumns(); }; }; _arg1.position = _arg2; _arg1.writeBytes(state); } protected function invShiftRows():void{ var _local1:uint; state[0] = InvSbox[state[0]]; state[4] = InvSbox[state[4]]; state[8] = InvSbox[state[8]]; state[12] = InvSbox[state[12]]; _local1 = InvSbox[state[13]]; state[13] = InvSbox[state[9]]; state[9] = InvSbox[state[5]]; state[5] = InvSbox[state[1]]; state[1] = _local1; _local1 = InvSbox[state[2]]; state[2] = InvSbox[state[10]]; state[10] = _local1; _local1 = InvSbox[state[6]]; state[6] = InvSbox[state[14]]; state[14] = _local1; _local1 = InvSbox[state[3]]; state[3] = InvSbox[state[7]]; state[7] = InvSbox[state[11]]; state[11] = InvSbox[state[15]]; state[15] = _local1; } public function dispose():void{ var _local1:uint; var _local2:Random; _local2 = new Random(); _local1 = 0; while (_local1 < key.length) { key[_local1] = _local2.nextByte(); _local1++; }; Nr = _local2.nextByte(); _local1 = 0; while (_local1 < state.length) { state[_local1] = _local2.nextByte(); _local1++; }; _local1 = 0; while (_local1 < tmp.length) { tmp[_local1] = _local2.nextByte(); _local1++; }; key.length = 0; keyLength = 0; state.length = 0; tmp.length = 0; key = null; state = null; tmp = null; Nr = 0; Memory.gc(); } protected function invMixSubColumns():void{ var _local1:uint; tmp.length = 0; tmp[0] = (((XtimeE[state[0]] ^ XtimeB[state[1]]) ^ XtimeD[state[2]]) ^ Xtime9[state[3]]); tmp[5] = (((Xtime9[state[0]] ^ XtimeE[state[1]]) ^ XtimeB[state[2]]) ^ XtimeD[state[3]]); tmp[10] = (((XtimeD[state[0]] ^ Xtime9[state[1]]) ^ XtimeE[state[2]]) ^ XtimeB[state[3]]); tmp[15] = (((XtimeB[state[0]] ^ XtimeD[state[1]]) ^ Xtime9[state[2]]) ^ XtimeE[state[3]]); tmp[4] = (((XtimeE[state[4]] ^ XtimeB[state[5]]) ^ XtimeD[state[6]]) ^ Xtime9[state[7]]); tmp[9] = (((Xtime9[state[4]] ^ XtimeE[state[5]]) ^ XtimeB[state[6]]) ^ XtimeD[state[7]]); tmp[14] = (((XtimeD[state[4]] ^ Xtime9[state[5]]) ^ XtimeE[state[6]]) ^ XtimeB[state[7]]); tmp[3] = (((XtimeB[state[4]] ^ XtimeD[state[5]]) ^ Xtime9[state[6]]) ^ XtimeE[state[7]]); tmp[8] = (((XtimeE[state[8]] ^ XtimeB[state[9]]) ^ XtimeD[state[10]]) ^ Xtime9[state[11]]); tmp[13] = (((Xtime9[state[8]] ^ XtimeE[state[9]]) ^ XtimeB[state[10]]) ^ XtimeD[state[11]]); tmp[2] = (((XtimeD[state[8]] ^ Xtime9[state[9]]) ^ XtimeE[state[10]]) ^ XtimeB[state[11]]); tmp[7] = (((XtimeB[state[8]] ^ XtimeD[state[9]]) ^ Xtime9[state[10]]) ^ XtimeE[state[11]]); tmp[12] = (((XtimeE[state[12]] ^ XtimeB[state[13]]) ^ XtimeD[state[14]]) ^ Xtime9[state[15]]); tmp[1] = (((Xtime9[state[12]] ^ XtimeE[state[13]]) ^ XtimeB[state[14]]) ^ XtimeD[state[15]]); tmp[6] = (((XtimeD[state[12]] ^ Xtime9[state[13]]) ^ XtimeE[state[14]]) ^ XtimeB[state[15]]); tmp[11] = (((XtimeB[state[12]] ^ XtimeD[state[13]]) ^ Xtime9[state[14]]) ^ XtimeE[state[15]]); _local1 = 0; while (_local1 < (4 * Nb)) { state[_local1] = InvSbox[tmp[_local1]]; _local1++; }; } private function expandKey():void{ var _local1:uint; var _local2:uint; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; _local7 = (key.length / 4); Nr = (_local7 + 6); _local6 = _local7; while (_local6 < (Nb * (Nr + 1))) { _local1 = key[((4 * _local6) - 4)]; _local2 = key[((4 * _local6) - 3)]; _local3 = key[((4 * _local6) - 2)]; _local4 = key[((4 * _local6) - 1)]; if (!(_local6 % _local7)){ _local5 = _local4; _local4 = Sbox[_local1]; _local1 = (Sbox[_local2] ^ Rcon[(_local6 / _local7)]); _local2 = Sbox[_local3]; _local3 = Sbox[_local5]; } else { if ((((_local7 > 6)) && (((_local6 % _local7) == 4)))){ _local1 = Sbox[_local1]; _local2 = Sbox[_local2]; _local3 = Sbox[_local3]; _local4 = Sbox[_local4]; }; }; key[((4 * _local6) + 0)] = (key[(((4 * _local6) - (4 * _local7)) + 0)] ^ _local1); key[((4 * _local6) + 1)] = (key[(((4 * _local6) - (4 * _local7)) + 1)] ^ _local2); key[((4 * _local6) + 2)] = (key[(((4 * _local6) - (4 * _local7)) + 2)] ^ _local3); key[((4 * _local6) + 3)] = (key[(((4 * _local6) - (4 * _local7)) + 3)] ^ _local4); _local6++; }; } protected function addRoundKey(_arg1:ByteArray, _arg2:uint):void{ var _local3:uint; _local3 = 0; while (_local3 < 16) { state[_local3] = (state[_local3] ^ _arg1[(_local3 + _arg2)]); _local3++; }; } public function encrypt(_arg1:ByteArray, _arg2:uint=0):void{ var _local3:uint; state.position = 0; state.writeBytes(_arg1, _arg2, (Nb * 4)); addRoundKey(key, 0); _local3 = 1; while (_local3 < (Nr + 1)) { if (_local3 < Nr){ mixSubColumns(); } else { shiftRows(); }; addRoundKey(key, ((_local3 * Nb) * 4)); _local3++; }; _arg1.position = _arg2; _arg1.writeBytes(state); } protected function mixSubColumns():void{ tmp.length = 0; tmp[0] = (((Xtime2Sbox[state[0]] ^ Xtime3Sbox[state[5]]) ^ Sbox[state[10]]) ^ Sbox[state[15]]); tmp[1] = (((Sbox[state[0]] ^ Xtime2Sbox[state[5]]) ^ Xtime3Sbox[state[10]]) ^ Sbox[state[15]]); tmp[2] = (((Sbox[state[0]] ^ Sbox[state[5]]) ^ Xtime2Sbox[state[10]]) ^ Xtime3Sbox[state[15]]); tmp[3] = (((Xtime3Sbox[state[0]] ^ Sbox[state[5]]) ^ Sbox[state[10]]) ^ Xtime2Sbox[state[15]]); tmp[4] = (((Xtime2Sbox[state[4]] ^ Xtime3Sbox[state[9]]) ^ Sbox[state[14]]) ^ Sbox[state[3]]); tmp[5] = (((Sbox[state[4]] ^ Xtime2Sbox[state[9]]) ^ Xtime3Sbox[state[14]]) ^ Sbox[state[3]]); tmp[6] = (((Sbox[state[4]] ^ Sbox[state[9]]) ^ Xtime2Sbox[state[14]]) ^ Xtime3Sbox[state[3]]); tmp[7] = (((Xtime3Sbox[state[4]] ^ Sbox[state[9]]) ^ Sbox[state[14]]) ^ Xtime2Sbox[state[3]]); tmp[8] = (((Xtime2Sbox[state[8]] ^ Xtime3Sbox[state[13]]) ^ Sbox[state[2]]) ^ Sbox[state[7]]); tmp[9] = (((Sbox[state[8]] ^ Xtime2Sbox[state[13]]) ^ Xtime3Sbox[state[2]]) ^ Sbox[state[7]]); tmp[10] = (((Sbox[state[8]] ^ Sbox[state[13]]) ^ Xtime2Sbox[state[2]]) ^ Xtime3Sbox[state[7]]); tmp[11] = (((Xtime3Sbox[state[8]] ^ Sbox[state[13]]) ^ Sbox[state[2]]) ^ Xtime2Sbox[state[7]]); tmp[12] = (((Xtime2Sbox[state[12]] ^ Xtime3Sbox[state[1]]) ^ Sbox[state[6]]) ^ Sbox[state[11]]); tmp[13] = (((Sbox[state[12]] ^ Xtime2Sbox[state[1]]) ^ Xtime3Sbox[state[6]]) ^ Sbox[state[11]]); tmp[14] = (((Sbox[state[12]] ^ Sbox[state[1]]) ^ Xtime2Sbox[state[6]]) ^ Xtime3Sbox[state[11]]); tmp[15] = (((Xtime3Sbox[state[12]] ^ Sbox[state[1]]) ^ Sbox[state[6]]) ^ Xtime2Sbox[state[11]]); state.position = 0; state.writeBytes(tmp, 0, (Nb * 4)); } protected function shiftRows():void{ var _local1:uint; state[0] = Sbox[state[0]]; state[4] = Sbox[state[4]]; state[8] = Sbox[state[8]]; state[12] = Sbox[state[12]]; _local1 = Sbox[state[1]]; state[1] = Sbox[state[5]]; state[5] = Sbox[state[9]]; state[9] = Sbox[state[13]]; state[13] = _local1; _local1 = Sbox[state[2]]; state[2] = Sbox[state[10]]; state[10] = _local1; _local1 = Sbox[state[6]]; state[6] = Sbox[state[14]]; state[14] = _local1; _local1 = Sbox[state[15]]; state[15] = Sbox[state[11]]; state[11] = Sbox[state[7]]; state[7] = Sbox[state[3]]; state[3] = _local1; } public function getBlockSize():uint{ return (16); } while (i < 0x0100) { Sbox[i] = _Sbox[i]; InvSbox[i] = _InvSbox[i]; Xtime2Sbox[i] = _Xtime2Sbox[i]; Xtime3Sbox[i] = _Xtime3Sbox[i]; Xtime2[i] = _Xtime2[i]; Xtime9[i] = _Xtime9[i]; XtimeB[i] = _XtimeB[i]; XtimeD[i] = _XtimeD[i]; XtimeE[i] = _XtimeE[i]; i++; }; i = 0; while (i < _Rcon.length) { Rcon[i] = _Rcon[i]; i++; }; } }//package com.hurlant.crypto.symmetric
Section 225
//BlowFishKey (com.hurlant.crypto.symmetric.BlowFishKey) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.util.*; public class BlowFishKey implements ISymmetricKey { private var S3:Array; private var S2:Array; private var P:Array; private var key:ByteArray;// = null private var S0:Array; private var S1:Array; private static const KP:Array = [608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731]; private static const KS0:Array = [3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402, 4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577, 3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540, 1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946]; private static const KS1:Array = [1266315497, 3048417604, 3681880366, 3289982499, 2909710000, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289, 1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456, 1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347, 1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055]; private static const KS3:Array = [976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132, 3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903, 3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409000, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142, 453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462]; private static const ROUNDS:uint = 16; private static const KS2:Array = [3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547, 1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403, 1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396, 3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504]; private static const BLOCK_SIZE:uint = 8; private static const P_SZ:uint = (ROUNDS + 2); private static const SBOX_SK:uint = 0x0100; public function BlowFishKey(_arg1:ByteArray){ key = null; super(); this.key = _arg1; setKey(_arg1); } private function F(_arg1:uint):uint{ return ((((S0[(_arg1 >>> 24)] + S1[((_arg1 >>> 16) & 0xFF)]) ^ S2[((_arg1 >>> 8) & 0xFF)]) + S3[(_arg1 & 0xFF)])); } private function BytesTo32bits(_arg1:ByteArray, _arg2:uint):uint{ return ((((((_arg1[_arg2] & 0xFF) << 24) | ((_arg1[(_arg2 + 1)] & 0xFF) << 16)) | ((_arg1[(_arg2 + 2)] & 0xFF) << 8)) | (_arg1[(_arg2 + 3)] & 0xFF))); } public function decrypt(_arg1:ByteArray, _arg2:uint=0):void{ decryptBlock(_arg1, _arg2, _arg1, _arg2); } private function decryptBlock(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray, _arg4:uint):void{ var _local5:uint; var _local6:uint; var _local7:uint; _local5 = BytesTo32bits(_arg1, _arg2); _local6 = BytesTo32bits(_arg1, (_arg2 + 4)); _local5 = (_local5 ^ P[(ROUNDS + 1)]); _local7 = ROUNDS; while (_local7 > 0) { _local6 = (_local6 ^ (F(_local5) ^ P[_local7])); _local5 = (_local5 ^ (F(_local6) ^ P[(_local7 - 1)])); _local7 = (_local7 - 2); }; _local6 = (_local6 ^ P[0]); Bits32ToBytes(_local6, _arg3, _arg4); Bits32ToBytes(_local5, _arg3, (_arg4 + 4)); } private function setKey(_arg1:ByteArray):void{ var _local2:uint; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; S0 = KS0.concat(); S1 = KS1.concat(); S2 = KS2.concat(); S3 = KS3.concat(); P = KP.concat(); _local2 = _arg1.length; _local3 = 0; _local4 = 0; while (_local4 < P_SZ) { _local5 = 0; _local6 = 0; while (_local6 < 4) { var _temp1 = _local3; _local3 = (_local3 + 1); _local5 = ((_local5 << 8) | (_arg1[_temp1] & 0xFF)); if (_local3 >= _local2){ _local3 = 0; }; _local6++; }; P[_local4] = (P[_local4] ^ _local5); _local4++; }; processTable(0, 0, P); processTable(P[(P_SZ - 2)], P[(P_SZ - 1)], S0); processTable(S0[(SBOX_SK - 2)], S0[(SBOX_SK - 1)], S1); processTable(S1[(SBOX_SK - 2)], S1[(SBOX_SK - 1)], S2); processTable(S2[(SBOX_SK - 2)], S2[(SBOX_SK - 1)], S3); } public function dispose():void{ var _local1:uint; _local1 = 0; _local1 = 0; while (_local1 < S0.length) { S0[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < S1.length) { S1[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < S2.length) { S2[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < S3.length) { S3[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < P.length) { P[_local1] = 0; _local1++; }; S0 = null; S1 = null; S2 = null; S3 = null; P = null; _local1 = 0; while (_local1 < key.length) { key[_local1] = 0; _local1++; }; key.length = 0; key = null; Memory.gc(); } private function encryptBlock(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray, _arg4:uint):void{ var _local5:uint; var _local6:uint; var _local7:uint; _local5 = BytesTo32bits(_arg1, _arg2); _local6 = BytesTo32bits(_arg1, (_arg2 + 4)); _local5 = (_local5 ^ P[0]); _local7 = 1; while (_local7 < ROUNDS) { _local6 = (_local6 ^ (F(_local5) ^ P[_local7])); _local5 = (_local5 ^ (F(_local6) ^ P[(_local7 + 1)])); _local7 = (_local7 + 2); }; _local6 = (_local6 ^ P[(ROUNDS + 1)]); Bits32ToBytes(_local6, _arg3, _arg4); Bits32ToBytes(_local5, _arg3, (_arg4 + 4)); } public function encrypt(_arg1:ByteArray, _arg2:uint=0):void{ encryptBlock(_arg1, _arg2, _arg1, _arg2); } private function Bits32ToBytes(_arg1:uint, _arg2:ByteArray, _arg3:uint):void{ _arg2[(_arg3 + 3)] = _arg1; _arg2[(_arg3 + 2)] = (_arg1 >> 8); _arg2[(_arg3 + 1)] = (_arg1 >> 16); _arg2[_arg3] = (_arg1 >> 24); } private function processTable(_arg1:uint, _arg2:uint, _arg3:Array):void{ var _local4:uint; var _local5:uint; var _local6:uint; _local4 = _arg3.length; _local5 = 0; while (_local5 < _local4) { _arg1 = (_arg1 ^ P[0]); _local6 = 1; while (_local6 < ROUNDS) { _arg2 = (_arg2 ^ (F(_arg1) ^ P[_local6])); _arg1 = (_arg1 ^ (F(_arg2) ^ P[(_local6 + 1)])); _local6 = (_local6 + 2); }; _arg2 = (_arg2 ^ P[(ROUNDS + 1)]); _arg3[_local5] = _arg2; _arg3[(_local5 + 1)] = _arg1; _arg2 = _arg1; _arg1 = _arg3[_local5]; _local5 = (_local5 + 2); }; } public function toString():String{ return ("blowfish"); } public function getBlockSize():uint{ return (BLOCK_SIZE); } } }//package com.hurlant.crypto.symmetric
Section 226
//CBCMode (com.hurlant.crypto.symmetric.CBCMode) package com.hurlant.crypto.symmetric { import flash.utils.*; public class CBCMode extends IVMode implements IMode { public function CBCMode(_arg1:ISymmetricKey, _arg2:IPad=null){ super(_arg1, _arg2); } public function toString():String{ return ((key.toString() + "-cbc")); } public function decrypt(_arg1:ByteArray):void{ var _local2:ByteArray; var _local3:ByteArray; var _local4:uint; var _local5:uint; _local2 = getIV4d(); _local3 = new ByteArray(); _local4 = 0; while (_local4 < _arg1.length) { _local3.position = 0; _local3.writeBytes(_arg1, _local4, blockSize); key.decrypt(_arg1, _local4); _local5 = 0; while (_local5 < blockSize) { _arg1[(_local4 + _local5)] = (_arg1[(_local4 + _local5)] ^ _local2[_local5]); _local5++; }; _local2.position = 0; _local2.writeBytes(_local3, 0, blockSize); _local4 = (_local4 + blockSize); }; padding.unpad(_arg1); } public function encrypt(_arg1:ByteArray):void{ var _local2:ByteArray; var _local3:uint; var _local4:uint; padding.pad(_arg1); _local2 = getIV4e(); _local3 = 0; while (_local3 < _arg1.length) { _local4 = 0; while (_local4 < blockSize) { _arg1[(_local3 + _local4)] = (_arg1[(_local3 + _local4)] ^ _local2[_local4]); _local4++; }; key.encrypt(_arg1, _local3); _local2.position = 0; _local2.writeBytes(_arg1, _local3, blockSize); _local3 = (_local3 + blockSize); }; } } }//package com.hurlant.crypto.symmetric
Section 227
//CFB8Mode (com.hurlant.crypto.symmetric.CFB8Mode) package com.hurlant.crypto.symmetric { import flash.utils.*; public class CFB8Mode extends IVMode implements IMode { public function CFB8Mode(_arg1:ISymmetricKey, _arg2:IPad=null){ super(_arg1, null); } public function toString():String{ return ((key.toString() + "-cfb8")); } public function decrypt(_arg1:ByteArray):void{ var _local2:ByteArray; var _local3:ByteArray; var _local4:uint; var _local5:uint; var _local6:uint; _local2 = getIV4d(); _local3 = new ByteArray(); _local4 = 0; while (_local4 < _arg1.length) { _local5 = _arg1[_local4]; _local3.position = 0; _local3.writeBytes(_local2); key.encrypt(_local2); _arg1[_local4] = (_arg1[_local4] ^ _local2[0]); _local6 = 0; while (_local6 < (blockSize - 1)) { _local2[_local6] = _local3[(_local6 + 1)]; _local6++; }; _local2[(blockSize - 1)] = _local5; _local4++; }; } public function encrypt(_arg1:ByteArray):void{ var _local2:ByteArray; var _local3:ByteArray; var _local4:uint; var _local5:uint; _local2 = getIV4e(); _local3 = new ByteArray(); _local4 = 0; while (_local4 < _arg1.length) { _local3.position = 0; _local3.writeBytes(_local2); key.encrypt(_local2); _arg1[_local4] = (_arg1[_local4] ^ _local2[0]); _local5 = 0; while (_local5 < (blockSize - 1)) { _local2[_local5] = _local3[(_local5 + 1)]; _local5++; }; _local2[(blockSize - 1)] = _arg1[_local4]; _local4++; }; } } }//package com.hurlant.crypto.symmetric
Section 228
//CFBMode (com.hurlant.crypto.symmetric.CFBMode) package com.hurlant.crypto.symmetric { import flash.utils.*; public class CFBMode extends IVMode implements IMode { public function CFBMode(_arg1:ISymmetricKey, _arg2:IPad=null){ super(_arg1, null); } public function toString():String{ return ((key.toString() + "-cfb")); } public function decrypt(_arg1:ByteArray):void{ var _local2:uint; var _local3:ByteArray; var _local4:ByteArray; var _local5:uint; var _local6:uint; var _local7:uint; _local2 = _arg1.length; _local3 = getIV4d(); _local4 = new ByteArray(); _local5 = 0; while (_local5 < _arg1.length) { key.encrypt(_local3); _local6 = (((_local5 + blockSize))<_local2) ? blockSize : (_local2 - _local5); _local4.position = 0; _local4.writeBytes(_arg1, _local5, _local6); _local7 = 0; while (_local7 < _local6) { _arg1[(_local5 + _local7)] = (_arg1[(_local5 + _local7)] ^ _local3[_local7]); _local7++; }; _local3.position = 0; _local3.writeBytes(_local4); _local5 = (_local5 + blockSize); }; } public function encrypt(_arg1:ByteArray):void{ var _local2:uint; var _local3:ByteArray; var _local4:uint; var _local5:uint; var _local6:uint; _local2 = _arg1.length; _local3 = getIV4e(); _local4 = 0; while (_local4 < _arg1.length) { key.encrypt(_local3); _local5 = (((_local4 + blockSize))<_local2) ? blockSize : (_local2 - _local4); _local6 = 0; while (_local6 < _local5) { _arg1[(_local4 + _local6)] = (_arg1[(_local4 + _local6)] ^ _local3[_local6]); _local6++; }; _local3.position = 0; _local3.writeBytes(_arg1, _local4, _local5); _local4 = (_local4 + blockSize); }; } } }//package com.hurlant.crypto.symmetric
Section 229
//CTRMode (com.hurlant.crypto.symmetric.CTRMode) package com.hurlant.crypto.symmetric { import flash.utils.*; public class CTRMode extends IVMode implements IMode { public function CTRMode(_arg1:ISymmetricKey, _arg2:IPad=null){ super(_arg1, _arg2); } public function toString():String{ return ((key.toString() + "-ctr")); } private function core(_arg1:ByteArray, _arg2:ByteArray):void{ var _local3:ByteArray; var _local4:ByteArray; var _local5:uint; var _local6:uint; _local3 = new ByteArray(); _local4 = new ByteArray(); _local3.writeBytes(_arg2); _local5 = 0; while (_local5 < _arg1.length) { _local4.position = 0; _local4.writeBytes(_local3); key.encrypt(_local4); _local6 = 0; while (_local6 < blockSize) { _arg1[(_local5 + _local6)] = (_arg1[(_local5 + _local6)] ^ _local4[_local6]); _local6++; }; _local6 = (blockSize - 1); while (_local6 >= 0) { var _local7 = _local3; var _local8 = _local6; var _local9 = (_local7[_local8] + 1); _local7[_local8] = _local9; if (_local3[_local6] != 0){ break; }; _local6--; }; _local5 = (_local5 + blockSize); }; } public function decrypt(_arg1:ByteArray):void{ var _local2:ByteArray; _local2 = getIV4d(); core(_arg1, _local2); padding.unpad(_arg1); } public function encrypt(_arg1:ByteArray):void{ var _local2:ByteArray; padding.pad(_arg1); _local2 = getIV4e(); core(_arg1, _local2); } } }//package com.hurlant.crypto.symmetric
Section 230
//DESKey (com.hurlant.crypto.symmetric.DESKey) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.util.*; public class DESKey implements ISymmetricKey { protected var encKey:Array; protected var key:ByteArray; protected var decKey:Array; private static const SP8:Array = [268439616, 0x1000, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 0x1000, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 0x1000, 64, 268697664, 0x1000, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696]; private static const bytebit:Array = [128, 64, 32, 16, 8, 4, 2, 1]; private static const bigbyte:Array = [0x800000, 0x400000, 0x200000, 0x100000, 524288, 262144, 131072, 65536, 0x8000, 0x4000, 0x2000, 0x1000, 0x0800, 0x0400, 0x0200, 0x0100, 128, 64, 32, 16, 8, 4, 2, 1]; private static const pc1:Array = [56, 48, 40, 32, 24, 16, 8, 0, 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 60, 52, 44, 36, 28, 20, 12, 4, 27, 19, 11, 3]; private static const pc2:Array = [13, 16, 10, 23, 0, 4, 2, 27, 14, 5, 20, 9, 22, 18, 11, 3, 25, 7, 15, 6, 26, 19, 12, 1, 40, 51, 30, 36, 46, 54, 29, 39, 50, 44, 32, 47, 43, 48, 38, 55, 33, 52, 45, 41, 49, 35, 28, 31]; private static const Df_Key:Array = [1, 35, 69, 103, 137, 171, 205, 239, 254, 220, 186, 152, 118, 84, 50, 16, 137, 171, 205, 239, 1, 35, 69, 103]; private static const totrot:Array = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; private static const SP1:Array = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 0x0400, 16843776, 16843780, 0x0400, 16778244, 16842756, 16777216, 4, 0x0404, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 0x0404, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 0x0400, 16842756, 65536, 66560, 16777220, 0x0400, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 0x0404, 66564, 16843776, 0x0404, 16778240, 16778240, 0, 65540, 66560, 0, 16842756]; private static const SP2:Array = [2148565024, 2147516416, 0x8000, 1081376, 0x100000, 32, 2148532256, 2147516448, 2147483680, 2148565024, 2148564992, 2147483648, 2147516416, 0x100000, 32, 2148532256, 0x108000, 0x100020, 2147516448, 0, 2147483648, 0x8000, 1081376, 2148532224, 0x100020, 2147483680, 0, 0x108000, 32800, 2148564992, 2148532224, 32800, 0, 1081376, 2148532256, 0x100000, 2147516448, 2148532224, 2148564992, 0x8000, 2148532224, 2147516416, 32, 2148565024, 1081376, 32, 0x8000, 2147483648, 32800, 2148564992, 0x100000, 2147483680, 0x100020, 2147516448, 2147483680, 0x100020, 0x108000, 0, 2147516416, 32800, 2147483648, 2148532256, 2148565024, 0x108000]; private static const SP3:Array = [520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 0x0200, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 0x0200, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 0x0200, 131080, 134349320, 134218240, 134217736, 0x0200, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584]; private static const SP4:Array = [8396801, 8321, 8321, 128, 8396928, 0x800081, 0x800001, 8193, 0, 0x802000, 0x802000, 8396929, 129, 0, 0x800080, 0x800001, 1, 0x2000, 0x800000, 8396801, 128, 0x800000, 8193, 8320, 0x800081, 1, 8320, 0x800080, 0x2000, 8396928, 8396929, 129, 0x800080, 0x800001, 0x802000, 8396929, 129, 0, 0, 0x802000, 8320, 0x800080, 0x800081, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 0x2000, 0x800001, 8193, 8396928, 0x800081, 8193, 8320, 0x800000, 8396801, 128, 0x800000, 0x2000, 8396928]; private static const SP5:Array = [0x0100, 34078976, 34078720, 1107296512, 524288, 0x0100, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 0x0100, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 0x0100, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080]; private static const SP6:Array = [536870928, 541065216, 0x4000, 541081616, 541065216, 16, 541081616, 0x400000, 536887296, 4210704, 0x400000, 536870928, 0x400010, 536887296, 536870912, 16400, 0, 0x400010, 536887312, 0x4000, 0x404000, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 0x404000, 541081600, 536870912, 536887296, 16, 541065232, 0x404000, 541081616, 0x400000, 16400, 536870928, 0x400000, 536887296, 536870912, 16400, 536870928, 541081616, 0x404000, 541065216, 4210704, 541081600, 0, 541065232, 16, 0x4000, 541065216, 4210704, 0x4000, 0x400010, 536887312, 0, 541081600, 536870912, 0x400010, 536887312]; private static const SP7:Array = [0x200000, 69206018, 67110914, 0, 0x0800, 67110914, 2099202, 69208064, 69208066, 0x200000, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 0x200002, 67110912, 67108866, 69206016, 69208064, 0x200002, 69206016, 0x0800, 2050, 69208066, 0x200800, 2, 67108864, 0x200800, 67108864, 0x200800, 0x200000, 67110914, 67110914, 69206018, 69206018, 2, 0x200002, 67108864, 67110912, 0x200000, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 0x200800, 0, 2, 69208066, 0, 2099202, 69206016, 0x0800, 67108866, 67110912, 0x0800, 0x200002]; public function DESKey(_arg1:ByteArray){ this.key = _arg1; this.encKey = generateWorkingKey(true, _arg1, 0); this.decKey = generateWorkingKey(false, _arg1, 0); } protected function generateWorkingKey(_arg1:Boolean, _arg2:ByteArray, _arg3:uint):Array{ var _local4:Array; var _local5:ByteArray; var _local6:ByteArray; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; var _local11:uint; var _local12:uint; var _local13:uint; _local4 = []; _local5 = new ByteArray(); _local6 = new ByteArray(); _local8 = 0; while (_local8 < 56) { _local7 = pc1[_local8]; _local5[_local8] = !(((_arg2[(_arg3 + (_local7 >>> 3))] & bytebit[(_local7 & 7)]) == 0)); _local8++; }; _local9 = 0; while (_local9 < 16) { if (_arg1){ _local10 = (_local9 << 1); } else { _local10 = ((15 - _local9) << 1); }; _local11 = (_local10 + 1); _local4[_local10] = (_local4[_local11] = 0); _local8 = 0; while (_local8 < 28) { _local7 = (_local8 + totrot[_local9]); if (_local7 < 28){ _local6[_local8] = _local5[_local7]; } else { _local6[_local8] = _local5[(_local7 - 28)]; }; _local8++; }; _local8 = 28; while (_local8 < 56) { _local7 = (_local8 + totrot[_local9]); if (_local7 < 56){ _local6[_local8] = _local5[_local7]; } else { _local6[_local8] = _local5[(_local7 - 28)]; }; _local8++; }; _local8 = 0; while (_local8 < 24) { if (_local6[pc2[_local8]]){ _local4[_local10] = (_local4[_local10] | bigbyte[_local8]); }; if (_local6[pc2[(_local8 + 24)]]){ _local4[_local11] = (_local4[_local11] | bigbyte[_local8]); }; _local8++; }; _local9++; }; _local9 = 0; while (_local9 != 32) { _local12 = _local4[_local9]; _local13 = _local4[(_local9 + 1)]; _local4[_local9] = (((((_local12 & 0xFC0000) << 6) | ((_local12 & 4032) << 10)) | ((_local13 & 0xFC0000) >>> 10)) | ((_local13 & 4032) >>> 6)); _local4[(_local9 + 1)] = (((((_local12 & 258048) << 12) | ((_local12 & 63) << 16)) | ((_local13 & 258048) >>> 4)) | (_local13 & 63)); _local9 = (_local9 + 2); }; return (_local4); } public function encrypt(_arg1:ByteArray, _arg2:uint=0):void{ desFunc(encKey, _arg1, _arg2, _arg1, _arg2); } public function decrypt(_arg1:ByteArray, _arg2:uint=0):void{ desFunc(decKey, _arg1, _arg2, _arg1, _arg2); } public function dispose():void{ var _local1:uint; _local1 = 0; _local1 = 0; while (_local1 < encKey.length) { encKey[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < decKey.length) { decKey[_local1] = 0; _local1++; }; encKey = null; decKey = null; _local1 = 0; while (_local1 < key.length) { key[_local1] = 0; _local1++; }; key.length = 0; key = null; Memory.gc(); } protected function desFunc(_arg1:Array, _arg2:ByteArray, _arg3:uint, _arg4:ByteArray, _arg5:uint):void{ var _local6:uint; var _local7:uint; var _local8:uint; var _local9:uint; var _local10:uint; _local8 = ((_arg2[(_arg3 + 0)] & 0xFF) << 24); _local8 = (_local8 | ((_arg2[(_arg3 + 1)] & 0xFF) << 16)); _local8 = (_local8 | ((_arg2[(_arg3 + 2)] & 0xFF) << 8)); _local8 = (_local8 | (_arg2[(_arg3 + 3)] & 0xFF)); _local7 = ((_arg2[(_arg3 + 4)] & 0xFF) << 24); _local7 = (_local7 | ((_arg2[(_arg3 + 5)] & 0xFF) << 16)); _local7 = (_local7 | ((_arg2[(_arg3 + 6)] & 0xFF) << 8)); _local7 = (_local7 | (_arg2[(_arg3 + 7)] & 0xFF)); _local6 = (((_local8 >>> 4) ^ _local7) & 252645135); _local7 = (_local7 ^ _local6); _local8 = (_local8 ^ (_local6 << 4)); _local6 = (((_local8 >>> 16) ^ _local7) & 0xFFFF); _local7 = (_local7 ^ _local6); _local8 = (_local8 ^ (_local6 << 16)); _local6 = (((_local7 >>> 2) ^ _local8) & 858993459); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ (_local6 << 2)); _local6 = (((_local7 >>> 8) ^ _local8) & 0xFF00FF); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ (_local6 << 8)); _local7 = (((_local7 << 1) | ((_local7 >>> 31) & 1)) & 4294967295); _local6 = ((_local8 ^ _local7) & 2863311530); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ _local6); _local8 = (((_local8 << 1) | ((_local8 >>> 31) & 1)) & 4294967295); _local9 = 0; while (_local9 < 8) { _local6 = ((_local7 << 28) | (_local7 >>> 4)); _local6 = (_local6 ^ _arg1[((_local9 * 4) + 0)]); _local10 = SP7[(_local6 & 63)]; _local10 = (_local10 | SP5[((_local6 >>> 8) & 63)]); _local10 = (_local10 | SP3[((_local6 >>> 16) & 63)]); _local10 = (_local10 | SP1[((_local6 >>> 24) & 63)]); _local6 = (_local7 ^ _arg1[((_local9 * 4) + 1)]); _local10 = (_local10 | SP8[(_local6 & 63)]); _local10 = (_local10 | SP6[((_local6 >>> 8) & 63)]); _local10 = (_local10 | SP4[((_local6 >>> 16) & 63)]); _local10 = (_local10 | SP2[((_local6 >>> 24) & 63)]); _local8 = (_local8 ^ _local10); _local6 = ((_local8 << 28) | (_local8 >>> 4)); _local6 = (_local6 ^ _arg1[((_local9 * 4) + 2)]); _local10 = SP7[(_local6 & 63)]; _local10 = (_local10 | SP5[((_local6 >>> 8) & 63)]); _local10 = (_local10 | SP3[((_local6 >>> 16) & 63)]); _local10 = (_local10 | SP1[((_local6 >>> 24) & 63)]); _local6 = (_local8 ^ _arg1[((_local9 * 4) + 3)]); _local10 = (_local10 | SP8[(_local6 & 63)]); _local10 = (_local10 | SP6[((_local6 >>> 8) & 63)]); _local10 = (_local10 | SP4[((_local6 >>> 16) & 63)]); _local10 = (_local10 | SP2[((_local6 >>> 24) & 63)]); _local7 = (_local7 ^ _local10); _local9++; }; _local7 = ((_local7 << 31) | (_local7 >>> 1)); _local6 = ((_local8 ^ _local7) & 2863311530); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ _local6); _local8 = ((_local8 << 31) | (_local8 >>> 1)); _local6 = (((_local8 >>> 8) ^ _local7) & 0xFF00FF); _local7 = (_local7 ^ _local6); _local8 = (_local8 ^ (_local6 << 8)); _local6 = (((_local8 >>> 2) ^ _local7) & 858993459); _local7 = (_local7 ^ _local6); _local8 = (_local8 ^ (_local6 << 2)); _local6 = (((_local7 >>> 16) ^ _local8) & 0xFFFF); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ (_local6 << 16)); _local6 = (((_local7 >>> 4) ^ _local8) & 252645135); _local8 = (_local8 ^ _local6); _local7 = (_local7 ^ (_local6 << 4)); _arg4[(_arg5 + 0)] = ((_local7 >>> 24) & 0xFF); _arg4[(_arg5 + 1)] = ((_local7 >>> 16) & 0xFF); _arg4[(_arg5 + 2)] = ((_local7 >>> 8) & 0xFF); _arg4[(_arg5 + 3)] = (_local7 & 0xFF); _arg4[(_arg5 + 4)] = ((_local8 >>> 24) & 0xFF); _arg4[(_arg5 + 5)] = ((_local8 >>> 16) & 0xFF); _arg4[(_arg5 + 6)] = ((_local8 >>> 8) & 0xFF); _arg4[(_arg5 + 7)] = (_local8 & 0xFF); } public function toString():String{ return ("des"); } public function getBlockSize():uint{ return (8); } } }//package com.hurlant.crypto.symmetric
Section 231
//ECBMode (com.hurlant.crypto.symmetric.ECBMode) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.util.*; public class ECBMode implements IMode, ICipher { private var key:ISymmetricKey; private var padding:IPad; public function ECBMode(_arg1:ISymmetricKey, _arg2:IPad=null){ this.key = _arg1; if (_arg2 == null){ _arg2 = new PKCS5(_arg1.getBlockSize()); } else { _arg2.setBlockSize(_arg1.getBlockSize()); }; this.padding = _arg2; } public function encrypt(_arg1:ByteArray):void{ var _local2:uint; var _local3:ByteArray; var _local4:ByteArray; var _local5:uint; padding.pad(_arg1); _arg1.position = 0; _local2 = key.getBlockSize(); _local3 = new ByteArray(); _local4 = new ByteArray(); _local5 = 0; while (_local5 < _arg1.length) { _local3.length = 0; _arg1.readBytes(_local3, 0, _local2); key.encrypt(_local3); _local4.writeBytes(_local3); _local5 = (_local5 + _local2); }; _arg1.length = 0; _arg1.writeBytes(_local4); } public function decrypt(_arg1:ByteArray):void{ var _local2:uint; var _local3:ByteArray; var _local4:ByteArray; var _local5:uint; _arg1.position = 0; _local2 = key.getBlockSize(); if ((_arg1.length % _local2) != 0){ throw (new Error(("ECB mode cipher length must be a multiple of blocksize " + _local2))); }; _local3 = new ByteArray(); _local4 = new ByteArray(); _local5 = 0; while (_local5 < _arg1.length) { _local3.length = 0; _arg1.readBytes(_local3, 0, _local2); key.decrypt(_local3); _local4.writeBytes(_local3); _local5 = (_local5 + _local2); }; padding.unpad(_local4); _arg1.length = 0; _arg1.writeBytes(_local4); } public function dispose():void{ key.dispose(); key = null; padding = null; Memory.gc(); } public function getBlockSize():uint{ return (key.getBlockSize()); } public function toString():String{ return ((key.toString() + "-ecb")); } } }//package com.hurlant.crypto.symmetric
Section 232
//ICipher (com.hurlant.crypto.symmetric.ICipher) package com.hurlant.crypto.symmetric { import flash.utils.*; public interface ICipher { function encrypt(_arg1:ByteArray):void; function dispose():void; function getBlockSize():uint; function toString():String; function decrypt(_arg1:ByteArray):void; } }//package com.hurlant.crypto.symmetric
Section 233
//IMode (com.hurlant.crypto.symmetric.IMode) package com.hurlant.crypto.symmetric { public interface IMode extends ICipher { } }//package com.hurlant.crypto.symmetric
Section 234
//IPad (com.hurlant.crypto.symmetric.IPad) package com.hurlant.crypto.symmetric { import flash.utils.*; public interface IPad { function pad(_arg1:ByteArray):void; function unpad(_arg1:ByteArray):void; function setBlockSize(_arg1:uint):void; } }//package com.hurlant.crypto.symmetric
Section 235
//IStreamCipher (com.hurlant.crypto.symmetric.IStreamCipher) package com.hurlant.crypto.symmetric { public interface IStreamCipher extends ICipher { } }//package com.hurlant.crypto.symmetric
Section 236
//ISymmetricKey (com.hurlant.crypto.symmetric.ISymmetricKey) package com.hurlant.crypto.symmetric { import flash.utils.*; public interface ISymmetricKey { function encrypt(_arg1:ByteArray, _arg2:uint=0):void; function dispose():void; function getBlockSize():uint; function toString():String; function decrypt(_arg1:ByteArray, _arg2:uint=0):void; } }//package com.hurlant.crypto.symmetric
Section 237
//IVMode (com.hurlant.crypto.symmetric.IVMode) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class IVMode { protected var lastIV:ByteArray; protected var iv:ByteArray; protected var blockSize:uint; protected var padding:IPad; protected var prng:Random; protected var key:ISymmetricKey; public function IVMode(_arg1:ISymmetricKey, _arg2:IPad=null){ this.key = _arg1; blockSize = _arg1.getBlockSize(); if (_arg2 == null){ _arg2 = new PKCS5(blockSize); } else { _arg2.setBlockSize(blockSize); }; this.padding = _arg2; prng = new Random(); iv = null; lastIV = new ByteArray(); } public function set IV(_arg1:ByteArray):void{ iv = _arg1; lastIV.length = 0; lastIV.writeBytes(iv); } protected function getIV4d():ByteArray{ var _local1:ByteArray; _local1 = new ByteArray(); if (iv){ _local1.writeBytes(iv); } else { throw (new Error("an IV must be set before calling decrypt()")); }; return (_local1); } protected function getIV4e():ByteArray{ var _local1:ByteArray; _local1 = new ByteArray(); if (iv){ _local1.writeBytes(iv); } else { prng.nextBytes(_local1, blockSize); }; lastIV.length = 0; lastIV.writeBytes(_local1); return (_local1); } public function get IV():ByteArray{ return (lastIV); } public function dispose():void{ var _local1:uint; if (iv != null){ _local1 = 0; while (_local1 < iv.length) { iv[_local1] = prng.nextByte(); _local1++; }; iv.length = 0; iv = null; }; if (lastIV != null){ _local1 = 0; while (_local1 < iv.length) { lastIV[_local1] = prng.nextByte(); _local1++; }; lastIV.length = 0; lastIV = null; }; key.dispose(); key = null; padding = null; prng.dispose(); prng = null; Memory.gc(); } public function getBlockSize():uint{ return (key.getBlockSize()); } } }//package com.hurlant.crypto.symmetric
Section 238
//NullPad (com.hurlant.crypto.symmetric.NullPad) package com.hurlant.crypto.symmetric { import flash.utils.*; public class NullPad implements IPad { public function pad(_arg1:ByteArray):void{ } public function unpad(_arg1:ByteArray):void{ } public function setBlockSize(_arg1:uint):void{ } } }//package com.hurlant.crypto.symmetric
Section 239
//OFBMode (com.hurlant.crypto.symmetric.OFBMode) package com.hurlant.crypto.symmetric { import flash.utils.*; public class OFBMode extends IVMode implements IMode { public function OFBMode(_arg1:ISymmetricKey, _arg2:IPad=null){ super(_arg1, null); } public function toString():String{ return ((key.toString() + "-ofb")); } private function core(_arg1:ByteArray, _arg2:ByteArray):void{ var _local3:uint; var _local4:ByteArray; var _local5:uint; var _local6:uint; var _local7:uint; _local3 = _arg1.length; _local4 = new ByteArray(); _local5 = 0; while (_local5 < _arg1.length) { key.encrypt(_arg2); _local4.position = 0; _local4.writeBytes(_arg2); _local6 = (((_local5 + blockSize))<_local3) ? blockSize : (_local3 - _local5); _local7 = 0; while (_local7 < _local6) { _arg1[(_local5 + _local7)] = (_arg1[(_local5 + _local7)] ^ _arg2[_local7]); _local7++; }; _arg2.position = 0; _arg2.writeBytes(_local4); _local5 = (_local5 + blockSize); }; } public function decrypt(_arg1:ByteArray):void{ var _local2:ByteArray; _local2 = getIV4d(); core(_arg1, _local2); } public function encrypt(_arg1:ByteArray):void{ var _local2:ByteArray; _local2 = getIV4e(); core(_arg1, _local2); } } }//package com.hurlant.crypto.symmetric
Section 240
//PKCS5 (com.hurlant.crypto.symmetric.PKCS5) package com.hurlant.crypto.symmetric { import flash.utils.*; public class PKCS5 implements IPad { private var blockSize:uint; public function PKCS5(_arg1:uint=0){ this.blockSize = _arg1; } public function unpad(_arg1:ByteArray):void{ var _local2:uint; var _local3:uint; var _local4:uint; _local2 = (_arg1.length % blockSize); if (_local2 != 0){ throw (new Error("PKCS#5::unpad: ByteArray.length isn't a multiple of the blockSize")); }; _local2 = _arg1[(_arg1.length - 1)]; _local3 = _local2; while (_local3 > 0) { _local4 = _arg1[(_arg1.length - 1)]; _arg1.length--; if (_local2 != _local4){ throw (new Error((((("PKCS#5:unpad: Invalid padding value. expected [" + _local2) + "], found [") + _local4) + "]"))); }; _local3--; }; } public function pad(_arg1:ByteArray):void{ var _local2:uint; var _local3:uint; _local2 = (blockSize - (_arg1.length % blockSize)); _local3 = 0; while (_local3 < _local2) { _arg1[_arg1.length] = _local2; _local3++; }; } public function setBlockSize(_arg1:uint):void{ blockSize = _arg1; } } }//package com.hurlant.crypto.symmetric
Section 241
//SimpleIVMode (com.hurlant.crypto.symmetric.SimpleIVMode) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.util.*; public class SimpleIVMode implements IMode, ICipher { protected var mode:IVMode; protected var cipher:ICipher; public function SimpleIVMode(_arg1:IVMode){ this.mode = _arg1; cipher = (_arg1 as ICipher); } public function encrypt(_arg1:ByteArray):void{ var _local2:ByteArray; cipher.encrypt(_arg1); _local2 = new ByteArray(); _local2.writeBytes(mode.IV); _local2.writeBytes(_arg1); _arg1.position = 0; _arg1.writeBytes(_local2); } public function decrypt(_arg1:ByteArray):void{ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeBytes(_arg1, 0, getBlockSize()); mode.IV = _local2; _local2 = new ByteArray(); _local2.writeBytes(_arg1, getBlockSize()); cipher.decrypt(_local2); _arg1.length = 0; _arg1.writeBytes(_local2); } public function dispose():void{ mode.dispose(); mode = null; cipher = null; Memory.gc(); } public function toString():String{ return (("simple-" + cipher.toString())); } public function getBlockSize():uint{ return (mode.getBlockSize()); } } }//package com.hurlant.crypto.symmetric
Section 242
//TripleDESKey (com.hurlant.crypto.symmetric.TripleDESKey) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.util.*; public class TripleDESKey extends DESKey { protected var decKey2:Array; protected var decKey3:Array; protected var encKey2:Array; protected var encKey3:Array; public function TripleDESKey(_arg1:ByteArray){ super(_arg1); encKey2 = generateWorkingKey(false, _arg1, 8); decKey2 = generateWorkingKey(true, _arg1, 8); if (_arg1.length > 16){ encKey3 = generateWorkingKey(true, _arg1, 16); decKey3 = generateWorkingKey(false, _arg1, 16); } else { encKey3 = encKey; decKey3 = decKey; }; } override public function decrypt(_arg1:ByteArray, _arg2:uint=0):void{ desFunc(decKey3, _arg1, _arg2, _arg1, _arg2); desFunc(decKey2, _arg1, _arg2, _arg1, _arg2); desFunc(decKey, _arg1, _arg2, _arg1, _arg2); } override public function encrypt(_arg1:ByteArray, _arg2:uint=0):void{ desFunc(encKey, _arg1, _arg2, _arg1, _arg2); desFunc(encKey2, _arg1, _arg2, _arg1, _arg2); desFunc(encKey3, _arg1, _arg2, _arg1, _arg2); } override public function dispose():void{ var _local1:uint; super.dispose(); _local1 = 0; if (encKey2 != null){ _local1 = 0; while (_local1 < encKey2.length) { encKey2[_local1] = 0; _local1++; }; encKey2 = null; }; if (encKey3 != null){ _local1 = 0; while (_local1 < encKey3.length) { encKey3[_local1] = 0; _local1++; }; encKey3 = null; }; if (decKey2 != null){ _local1 = 0; while (_local1 < decKey2.length) { decKey2[_local1] = 0; _local1++; }; decKey2 = null; }; if (decKey3 != null){ _local1 = 0; while (_local1 < decKey3.length) { decKey3[_local1] = 0; _local1++; }; decKey3 = null; }; Memory.gc(); } override public function toString():String{ return ("3des"); } } }//package com.hurlant.crypto.symmetric
Section 243
//XTeaKey (com.hurlant.crypto.symmetric.XTeaKey) package com.hurlant.crypto.symmetric { import flash.utils.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class XTeaKey implements ISymmetricKey { public const NUM_ROUNDS:uint = 64; private var k:Array; public function XTeaKey(_arg1:ByteArray){ _arg1.position = 0; k = [_arg1.readUnsignedInt(), _arg1.readUnsignedInt(), _arg1.readUnsignedInt(), _arg1.readUnsignedInt()]; } public function dispose():void{ var _local1:Random; var _local2:uint; _local1 = new Random(); _local2 = 0; while (_local2 < k.length) { k[_local2] = _local1.nextByte(); delete k[_local2]; _local2++; }; k = null; Memory.gc(); } public function encrypt(_arg1:ByteArray, _arg2:uint=0):void{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; _arg1.position = _arg2; _local3 = _arg1.readUnsignedInt(); _local4 = _arg1.readUnsignedInt(); _local6 = 0; _local7 = 2654435769; _local5 = 0; while (_local5 < NUM_ROUNDS) { _local3 = (_local3 + ((((_local4 << 4) ^ (_local4 >> 5)) + _local4) ^ (_local6 + k[(_local6 & 3)]))); _local6 = (_local6 + _local7); _local4 = (_local4 + ((((_local3 << 4) ^ (_local3 >> 5)) + _local3) ^ (_local6 + k[((_local6 >> 11) & 3)]))); _local5++; }; _arg1.position = (_arg1.position - 8); _arg1.writeUnsignedInt(_local3); _arg1.writeUnsignedInt(_local4); } public function decrypt(_arg1:ByteArray, _arg2:uint=0):void{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:uint; _arg1.position = _arg2; _local3 = _arg1.readUnsignedInt(); _local4 = _arg1.readUnsignedInt(); _local6 = 2654435769; _local7 = (_local6 * NUM_ROUNDS); _local5 = 0; while (_local5 < NUM_ROUNDS) { _local4 = (_local4 - ((((_local3 << 4) ^ (_local3 >> 5)) + _local3) ^ (_local7 + k[((_local7 >> 11) & 3)]))); _local7 = (_local7 - _local6); _local3 = (_local3 - ((((_local4 << 4) ^ (_local4 >> 5)) + _local4) ^ (_local7 + k[(_local7 & 3)]))); _local5++; }; _arg1.position = (_arg1.position - 8); _arg1.writeUnsignedInt(_local3); _arg1.writeUnsignedInt(_local4); } public function toString():String{ return ("xtea"); } public function getBlockSize():uint{ return (8); } public static function parseKey(_arg1:String):XTeaKey{ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeUnsignedInt(parseInt(_arg1.substr(0, 8), 16)); _local2.writeUnsignedInt(parseInt(_arg1.substr(8, 8), 16)); _local2.writeUnsignedInt(parseInt(_arg1.substr(16, 8), 16)); _local2.writeUnsignedInt(parseInt(_arg1.substr(24, 8), 16)); _local2.position = 0; return (new XTeaKey(_local2)); } } }//package com.hurlant.crypto.symmetric
Section 244
//Crypto (com.hurlant.crypto.Crypto) package com.hurlant.crypto { import com.hurlant.crypto.symmetric.*; import flash.utils.*; import com.hurlant.crypto.hash.*; import com.hurlant.crypto.rsa.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class Crypto { private var b64:Base64; public static function getCipher(_arg1:String, _arg2:ByteArray, _arg3:IPad=null):ICipher{ var _local4:Array; var _local5:ICipher; _local4 = _arg1.split("-"); switch (_local4[0]){ case "simple": _local4.shift(); _arg1 = _local4.join("-"); _local5 = getCipher(_arg1, _arg2, _arg3); if ((_local5 is IVMode)){ return (new SimpleIVMode((_local5 as IVMode))); }; return (_local5); case "aes": case "aes128": case "aes192": case "aes256": _local4.shift(); if ((_arg2.length * 8) == _local4[0]){ _local4.shift(); }; return (getMode(_local4[0], new AESKey(_arg2), _arg3)); case "bf": case "blowfish": _local4.shift(); return (getMode(_local4[0], new BlowFishKey(_arg2), _arg3)); case "des": _local4.shift(); if (((!((_local4[0] == "ede"))) && (!((_local4[0] == "ede3"))))){ return (getMode(_local4[0], new DESKey(_arg2), _arg3)); }; if (_local4.length == 1){ _local4.push("ecb"); }; case "3des": case "des3": _local4.shift(); return (getMode(_local4[0], new TripleDESKey(_arg2), _arg3)); case "xtea": _local4.shift(); return (getMode(_local4[0], new XTeaKey(_arg2), _arg3)); case "rc4": _local4.shift(); return (new ARC4(_arg2)); }; return (null); } public static function getHash(_arg1:String):IHash{ switch (_arg1){ case "md2": return (new MD2()); case "md5": return (new MD5()); case "sha": case "sha1": return (new SHA1()); case "sha224": return (new SHA224()); case "sha256": return (new SHA256()); }; return (null); } public static function getRSA(_arg1:String, _arg2:String):RSAKey{ return (RSAKey.parsePublicKey(_arg2, _arg1)); } private static function getMode(_arg1:String, _arg2:ISymmetricKey, _arg3:IPad=null):IMode{ switch (_arg1){ case "ecb": return (new ECBMode(_arg2, _arg3)); case "cfb": return (new CFBMode(_arg2, _arg3)); case "cfb8": return (new CFB8Mode(_arg2, _arg3)); case "ofb": return (new OFBMode(_arg2, _arg3)); case "ctr": return (new CTRMode(_arg2, _arg3)); case "cbc": default: return (new CBCMode(_arg2, _arg3)); }; } public static function getKeySize(_arg1:String):uint{ var _local2:Array; _local2 = _arg1.split("-"); switch (_local2[0]){ case "simple": _local2.shift(); return (getKeySize(_local2.join("-"))); case "aes128": return (16); case "aes192": return (24); case "aes256": return (32); case "aes": _local2.shift(); return ((parseInt(_local2[0]) / 8)); case "bf": case "blowfish": return (16); case "des": _local2.shift(); switch (_local2[0]){ case "ede": return (16); case "ede3": return (24); default: return (8); }; case "3des": case "des3": return (24); case "xtea": return (8); case "rc4": if (parseInt(_local2[1]) > 0){ return ((parseInt(_local2[1]) / 8)); }; return (16); }; return (0); } public static function getPad(_arg1:String):IPad{ switch (_arg1){ case "null": return (new NullPad()); case "pkcs5": default: return (new PKCS5()); }; } public static function getHMAC(_arg1:String):HMAC{ var _local2:Array; var _local3:uint; _local2 = _arg1.split("-"); if (_local2[0] == "hmac"){ _local2.shift(); }; _local3 = 0; if (_local2.length > 1){ _local3 = parseInt(_local2[1]); }; return (new HMAC(getHash(_local2[0]), _local3)); } } }//package com.hurlant.crypto
Section 245
//BarrettReduction (com.hurlant.math.BarrettReduction) package com.hurlant.math { import com.hurlant.math.*; class BarrettReduction implements IReduction { private var r2:BigInteger; private var q3:BigInteger; private var mu:BigInteger; private var m:BigInteger; function BarrettReduction(_arg1:BigInteger){ r2 = new BigInteger(); q3 = new BigInteger(); BigInteger.ONE.dlShiftTo((2 * _arg1.t), r2); mu = r2.divide(_arg1); this.m = _arg1; } public function reduce(_arg1:BigInteger):void{ var _local2:BigInteger; _local2 = (_arg1 as BigInteger); _local2.drShiftTo((m.t - 1), r2); if (_local2.t > (m.t + 1)){ _local2.t = (m.t + 1); _local2.clamp(); }; mu.multiplyUpperTo(r2, (m.t + 1), q3); m.multiplyLowerTo(q3, (m.t + 1), r2); while (_local2.compareTo(r2) < 0) { _local2.dAddOffset(1, (m.t + 1)); }; _local2.subTo(r2, _local2); while (_local2.compareTo(m) >= 0) { _local2.subTo(m, _local2); }; } public function revert(_arg1:BigInteger):BigInteger{ return (_arg1); } public function convert(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; if ((((_arg1.s < 0)) || ((_arg1.t > (2 * m.t))))){ return (_arg1.mod(m)); }; if (_arg1.compareTo(m) < 0){ return (_arg1); }; _local2 = new BigInteger(); _arg1.copyTo(_local2); reduce(_local2); return (_local2); } public function sqrTo(_arg1:BigInteger, _arg2:BigInteger):void{ _arg1.squareTo(_arg2); reduce(_arg2); } public function mulTo(_arg1:BigInteger, _arg2:BigInteger, _arg3:BigInteger):void{ _arg1.multiplyTo(_arg2, _arg3); reduce(_arg3); } } }//package com.hurlant.math
Section 246
//bi_internal (com.hurlant.math.bi_internal) package com.hurlant.math { public namespace bi_internal = "http://crypto.hurlant.com/BigInteger"; }//package com.hurlant.math
Section 247
//BigInteger (com.hurlant.math.BigInteger) package com.hurlant.math { import flash.utils.*; import com.hurlant.crypto.prng.*; import com.hurlant.util.*; public class BigInteger { bi_internal var a:Array; bi_internal var s:int; public var t:int; public static const ONE:BigInteger = nbv(1); public static const ZERO:BigInteger = nbv(0); public static const DM:int = (DV - 1); public static const F1:int = 22; public static const F2:int = 8; public static const lplim:int = ((1 << 26) / lowprimes[(lowprimes.length - 1)]); public static const lowprimes:Array = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 0x0101, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509]; public static const FV:Number = Math.pow(2, BI_FP); public static const BI_FP:int = 52; public static const DV:int = (1 << DB); public static const DB:int = 30; public function BigInteger(_arg1=null, _arg2:int=0){ var _local3:ByteArray; var _local4:int; super(); a = new Array(); if ((_arg1 is String)){ _arg1 = Hex.toArray(_arg1); _arg2 = 0; }; if ((_arg1 is ByteArray)){ _local3 = (_arg1 as ByteArray); _local4 = ((_arg2) || ((_local3.length - _local3.position))); fromArray(_local3, _local4); }; } public function clearBit(_arg1:int):BigInteger{ return (changeBit(_arg1, op_andnot)); } public function negate():BigInteger{ var _local1:BigInteger; _local1 = nbi(); ZERO.subTo(this, _local1); return (_local1); } public function andNot(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); bitwiseTo(_arg1, op_andnot, _local2); return (_local2); } public function modPow(_arg1:BigInteger, _arg2:BigInteger):BigInteger{ var _local3:int; var _local4:int; var _local5:BigInteger; var _local6:IReduction; var _local7:Array; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:Boolean; var _local14:BigInteger; var _local15:BigInteger; var _local16:BigInteger; _local3 = _arg1.bitLength(); _local5 = nbv(1); if (_local3 <= 0){ return (_local5); }; if (_local3 < 18){ _local4 = 1; } else { if (_local3 < 48){ _local4 = 3; } else { if (_local3 < 144){ _local4 = 4; } else { if (_local3 < 0x0300){ _local4 = 5; } else { _local4 = 6; }; }; }; }; if (_local3 < 8){ _local6 = new ClassicReduction(_arg2); } else { if (_arg2.isEven()){ _local6 = new BarrettReduction(_arg2); } else { _local6 = new MontgomeryReduction(_arg2); }; }; _local7 = []; _local8 = 3; _local9 = (_local4 - 1); _local10 = ((1 << _local4) - 1); _local7[1] = _local6.convert(this); if (_local4 > 1){ _local16 = new BigInteger(); _local6.sqrTo(_local7[1], _local16); while (_local8 <= _local10) { _local7[_local8] = new BigInteger(); _local6.mulTo(_local16, _local7[(_local8 - 2)], _local7[_local8]); _local8 = (_local8 + 2); }; }; _local11 = (_arg1.t - 1); _local13 = true; _local14 = new BigInteger(); _local3 = (nbits(_arg1.a[_local11]) - 1); while (_local11 >= 0) { if (_local3 >= _local9){ _local12 = ((_arg1.a[_local11] >> (_local3 - _local9)) & _local10); } else { _local12 = ((_arg1.a[_local11] & ((1 << (_local3 + 1)) - 1)) << (_local9 - _local3)); if (_local11 > 0){ _local12 = (_local12 | (_arg1.a[(_local11 - 1)] >> ((DB + _local3) - _local9))); }; }; _local8 = _local4; while ((_local12 & 1) == 0) { _local12 = (_local12 >> 1); _local8--; }; _local3 = (_local3 - _local8); if (_local3 < 0){ _local3 = (_local3 + DB); _local11--; }; if (_local13){ _local7[_local12].copyTo(_local5); _local13 = false; } else { while (_local8 > 1) { _local6.sqrTo(_local5, _local14); _local6.sqrTo(_local14, _local5); _local8 = (_local8 - 2); }; if (_local8 > 0){ _local6.sqrTo(_local5, _local14); } else { _local15 = _local5; _local5 = _local14; _local14 = _local15; }; _local6.mulTo(_local14, _local7[_local12], _local5); }; while ((((_local11 >= 0)) && (((_arg1.a[_local11] & (1 << _local3)) == 0)))) { _local6.sqrTo(_local5, _local14); _local15 = _local5; _local5 = _local14; _local14 = _local15; --_local3; if (_local3 < 0){ _local3 = (DB - 1); _local11--; }; }; }; return (_local6.revert(_local5)); } public function isProbablePrime(_arg1:int):Boolean{ var _local2:int; var _local3:BigInteger; var _local4:int; var _local5:int; _local3 = abs(); if ((((_local3.t == 1)) && ((_local3.a[0] <= lowprimes[(lowprimes.length - 1)])))){ _local2 = 0; while (_local2 < lowprimes.length) { if (_local3[0] == lowprimes[_local2]){ return (true); }; _local2++; }; return (false); }; if (_local3.isEven()){ return (false); }; _local2 = 1; while (_local2 < lowprimes.length) { _local4 = lowprimes[_local2]; _local5 = (_local2 + 1); while ((((_local5 < lowprimes.length)) && ((_local4 < lplim)))) { var _temp1 = _local5; _local5 = (_local5 + 1); _local4 = (_local4 * lowprimes[_temp1]); }; _local4 = _local3.modInt(_local4); while (_local2 < _local5) { var _temp2 = _local4; var _temp3 = _local2; _local2 = (_local2 + 1); if ((_temp2 % lowprimes[_temp3]) == 0){ return (false); }; }; }; return (_local3.millerRabin(_arg1)); } private function op_or(_arg1:int, _arg2:int):int{ return ((_arg1 | _arg2)); } public function mod(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = nbi(); abs().divRemTo(_arg1, null, _local2); if ((((s < 0)) && ((_local2.compareTo(ZERO) > 0)))){ _arg1.subTo(_local2, _local2); }; return (_local2); } protected function addTo(_arg1:BigInteger, _arg2:BigInteger):void{ var _local3:int; var _local4:int; var _local5:int; _local3 = 0; _local4 = 0; _local5 = Math.min(_arg1.t, t); while (_local3 < _local5) { _local4 = (_local4 + (this.a[_local3] + _arg1.a[_local3])); var _temp1 = _local3; _local3 = (_local3 + 1); var _local6 = _temp1; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; if (_arg1.t < t){ _local4 = (_local4 + _arg1.s); while (_local3 < t) { _local4 = (_local4 + this.a[_local3]); var _temp2 = _local3; _local3 = (_local3 + 1); _local6 = _temp2; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; _local4 = (_local4 + s); } else { _local4 = (_local4 + s); while (_local3 < _arg1.t) { _local4 = (_local4 + _arg1.a[_local3]); var _temp3 = _local3; _local3 = (_local3 + 1); _local6 = _temp3; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; _local4 = (_local4 + _arg1.s); }; _arg2.s = ((_local4)<0) ? -1 : 0; if (_local4 > 0){ var _temp4 = _local3; _local3 = (_local3 + 1); _local6 = _temp4; _arg2.a[_local6] = _local4; } else { if (_local4 < -1){ var _temp5 = _local3; _local3 = (_local3 + 1); _local6 = _temp5; _arg2.a[_local6] = (DV + _local4); }; }; _arg2.t = _local3; _arg2.clamp(); } protected function bitwiseTo(_arg1:BigInteger, _arg2:Function, _arg3:BigInteger):void{ var _local4:int; var _local5:int; var _local6:int; _local6 = Math.min(_arg1.t, t); _local4 = 0; while (_local4 < _local6) { _arg3.a[_local4] = _arg2(this.a[_local4], _arg1.a[_local4]); _local4++; }; if (_arg1.t < t){ _local5 = (_arg1.s & DM); _local4 = _local6; while (_local4 < t) { _arg3.a[_local4] = _arg2(this.a[_local4], _local5); _local4++; }; _arg3.t = t; } else { _local5 = (s & DM); _local4 = _local6; while (_local4 < _arg1.t) { _arg3.a[_local4] = _arg2(_local5, _arg1.a[_local4]); _local4++; }; _arg3.t = _arg1.t; }; _arg3.s = _arg2(s, _arg1.s); _arg3.clamp(); } protected function modInt(_arg1:int):int{ var _local2:int; var _local3:int; var _local4:int; if (_arg1 <= 0){ return (0); }; _local2 = (DV % _arg1); _local3 = ((s)<0) ? (_arg1 - 1) : 0; if (t > 0){ if (_local2 == 0){ _local3 = (a[0] % _arg1); } else { _local4 = (t - 1); while (_local4 >= 0) { _local3 = (((_local2 * _local3) + a[_local4]) % _arg1); _local4--; }; }; }; return (_local3); } protected function chunkSize(_arg1:Number):int{ return (Math.floor(((Math.LN2 * DB) / Math.log(_arg1)))); } bi_internal function dAddOffset(_arg1:int, _arg2:int):void{ while (t <= _arg2) { var _local3 = t++; a[_local3] = 0; }; a[_arg2] = (a[_arg2] + _arg1); while (a[_arg2] >= DV) { a[_arg2] = (a[_arg2] - DV); ++_arg2; if (_arg2 >= t){ _local3 = t++; a[_local3] = 0; }; _local3 = a; var _local4 = _arg2; var _local5 = (_local3[_local4] + 1); _local3[_local4] = _local5; }; } bi_internal function lShiftTo(_arg1:int, _arg2:BigInteger):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; _local3 = (_arg1 % DB); _local4 = (DB - _local3); _local5 = ((1 << _local4) - 1); _local6 = (_arg1 / DB); _local7 = ((s << _local3) & DM); _local8 = (t - 1); while (_local8 >= 0) { _arg2.a[((_local8 + _local6) + 1)] = ((a[_local8] >> _local4) | _local7); _local7 = ((a[_local8] & _local5) << _local3); _local8--; }; _local8 = (_local6 - 1); while (_local8 >= 0) { _arg2.a[_local8] = 0; _local8--; }; _arg2.a[_local6] = _local7; _arg2.t = ((t + _local6) + 1); _arg2.s = s; _arg2.clamp(); } public function getLowestSetBit():int{ var _local1:int; _local1 = 0; while (_local1 < t) { if (a[_local1] != 0){ return (((_local1 * DB) + lbit(a[_local1]))); }; _local1++; }; if (s < 0){ return ((t * DB)); }; return (-1); } public function subtract(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); subTo(_arg1, _local2); return (_local2); } public function primify(_arg1:int, _arg2:int):void{ if (!testBit((_arg1 - 1))){ bitwiseTo(BigInteger.ONE.shiftLeft((_arg1 - 1)), op_or, this); }; if (isEven()){ dAddOffset(1, 0); }; while (!(isProbablePrime(_arg2))) { dAddOffset(2, 0); while (bitLength() > _arg1) { subTo(BigInteger.ONE.shiftLeft((_arg1 - 1)), this); }; }; } public function gcd(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; var _local3:BigInteger; var _local4:int; var _local5:int; var _local6:BigInteger; _local2 = ((s)<0) ? negate() : clone(); _local3 = ((_arg1.s)<0) ? _arg1.negate() : _arg1.clone(); if (_local2.compareTo(_local3) < 0){ _local6 = _local2; _local2 = _local3; _local3 = _local6; }; _local4 = _local2.getLowestSetBit(); _local5 = _local3.getLowestSetBit(); if (_local5 < 0){ return (_local2); }; if (_local4 < _local5){ _local5 = _local4; }; if (_local5 > 0){ _local2.rShiftTo(_local5, _local2); _local3.rShiftTo(_local5, _local3); }; while (_local2.sigNum() > 0) { _local4 = _local2.getLowestSetBit(); if (_local4 > 0){ _local2.rShiftTo(_local4, _local2); }; _local4 = _local3.getLowestSetBit(); if (_local4 > 0){ _local3.rShiftTo(_local4, _local3); }; if (_local2.compareTo(_local3) >= 0){ _local2.subTo(_local3, _local2); _local2.rShiftTo(1, _local2); } else { _local3.subTo(_local2, _local3); _local3.rShiftTo(1, _local3); }; }; if (_local5 > 0){ _local3.lShiftTo(_local5, _local3); }; return (_local3); } bi_internal function multiplyLowerTo(_arg1:BigInteger, _arg2:int, _arg3:BigInteger):void{ var _local4:int; var _local5:int; _local4 = Math.min((t + _arg1.t), _arg2); _arg3.s = 0; _arg3.t = _local4; while (_local4 > 0) { --_local4; var _local6 = _local4; _arg3.a[_local6] = 0; }; _local5 = (_arg3.t - t); while (_local4 < _local5) { _arg3.a[(_local4 + t)] = am(0, _arg1.a[_local4], _arg3, _local4, 0, t); _local4++; }; _local5 = Math.min(_arg1.t, _arg2); while (_local4 < _local5) { am(0, _arg1.a[_local4], _arg3, _local4, 0, (_arg2 - _local4)); _local4++; }; _arg3.clamp(); } public function modPowInt(_arg1:int, _arg2:BigInteger):BigInteger{ var _local3:IReduction; if ((((_arg1 < 0x0100)) || (_arg2.isEven()))){ _local3 = new ClassicReduction(_arg2); } else { _local3 = new MontgomeryReduction(_arg2); }; return (exp(_arg1, _local3)); } bi_internal function intAt(_arg1:String, _arg2:int):int{ return (parseInt(_arg1.charAt(_arg2), 36)); } public function testBit(_arg1:int):Boolean{ var _local2:int; _local2 = Math.floor((_arg1 / DB)); if (_local2 >= t){ return (!((s == 0))); }; return (!(((a[_local2] & (1 << (_arg1 % DB))) == 0))); } bi_internal function exp(_arg1:int, _arg2:IReduction):BigInteger{ var _local3:BigInteger; var _local4:BigInteger; var _local5:BigInteger; var _local6:int; var _local7:BigInteger; if ((((_arg1 > 4294967295)) || ((_arg1 < 1)))){ return (ONE); }; _local3 = nbi(); _local4 = nbi(); _local5 = _arg2.convert(this); _local6 = (nbits(_arg1) - 1); _local5.copyTo(_local3); while (--_local6 >= 0) { _arg2.sqrTo(_local3, _local4); if ((_arg1 & (1 << _local6)) > 0){ _arg2.mulTo(_local4, _local5, _local3); } else { _local7 = _local3; _local3 = _local4; _local4 = _local7; }; }; return (_arg2.revert(_local3)); } public function toArray(_arg1:ByteArray):uint{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:Boolean; var _local8:int; _local2 = 8; _local3 = ((1 << 8) - 1); _local4 = 0; _local5 = t; _local6 = (DB - ((_local5 * DB) % _local2)); _local7 = false; _local8 = 0; var _temp1 = _local5; _local5 = (_local5 - 1); if (_temp1 > 0){ if ((((_local6 < DB)) && (((a[_local5] >> _local6) > 0)))){ _local7 = true; _arg1.writeByte(_local4); _local8++; }; while (_local5 >= 0) { if (_local6 < _local2){ _local4 = ((a[_local5] & ((1 << _local6) - 1)) << (_local2 - _local6)); var _temp2 = _local4; _local5 = (_local5 - 1); _local6 = (_local6 + (DB - _local2)); _local4 = (_temp2 | (a[_local5] >> _local6)); } else { _local6 = (_local6 - _local2); _local4 = ((a[_local5] >> _local6) & _local3); if (_local6 <= 0){ _local6 = (_local6 + DB); _local5--; }; }; if (_local4 > 0){ _local7 = true; }; if (_local7){ _arg1.writeByte(_local4); _local8++; }; }; }; return (_local8); } public function dispose():void{ var _local1:Random; var _local2:uint; _local1 = new Random(); _local2 = 0; while (_local2 < a.length) { a[_local2] = _local1.nextByte(); delete a[_local2]; _local2++; }; a = null; t = 0; s = 0; Memory.gc(); } private function lbit(_arg1:int):int{ var _local2:int; if (_arg1 == 0){ return (-1); }; _local2 = 0; if ((_arg1 & 0xFFFF) == 0){ _arg1 = (_arg1 >> 16); _local2 = (_local2 + 16); }; if ((_arg1 & 0xFF) == 0){ _arg1 = (_arg1 >> 8); _local2 = (_local2 + 8); }; if ((_arg1 & 15) == 0){ _arg1 = (_arg1 >> 4); _local2 = (_local2 + 4); }; if ((_arg1 & 3) == 0){ _arg1 = (_arg1 >> 2); _local2 = (_local2 + 2); }; if ((_arg1 & 1) == 0){ _local2++; }; return (_local2); } bi_internal function divRemTo(_arg1:BigInteger, _arg2:BigInteger=null, _arg3:BigInteger=null):void{ var pm:BigInteger; var pt:BigInteger; var y:BigInteger; var ts:int; var ms:int; var nsh:int; var ys:int; var y0:int; var yt:Number; var d1:Number; var d2:Number; var e:Number; var i:int; var j:int; var t:BigInteger; var qd:int; var m = _arg1; var q = _arg2; var r = _arg3; pm = m.abs(); if (pm.t <= 0){ return; }; pt = abs(); if (pt.t < pm.t){ if (q != null){ q.fromInt(0); }; if (r != null){ copyTo(r); }; return; }; if (r == null){ r = nbi(); }; y = nbi(); ts = s; ms = m.s; nsh = (DB - nbits(pm.a[(pm.t - 1)])); if (nsh > 0){ pm.lShiftTo(nsh, y); pt.lShiftTo(nsh, r); } else { pm.copyTo(y); pt.copyTo(r); }; ys = y.t; y0 = y.a[(ys - 1)]; if (y0 == 0){ return; }; yt = ((y0 * (1 << F1)) + ((ys)>1) ? (y.a[(ys - 2)] >> F2) : 0); d1 = (FV / yt); d2 = ((1 << F1) / yt); e = (1 << F2); i = r.t; j = (i - ys); t = ((q)==null) ? nbi() : q; y.dlShiftTo(j, t); if (r.compareTo(t) >= 0){ var _local5 = r.t++; r.a[_local5] = 1; r.subTo(t, r); }; ONE.dlShiftTo(ys, t); t.subTo(y, y); while (y.t < ys) { y.(y.t++); //not popped }; while ((j = (j - 1)), (j - 1) >= 0) { i = (i - 1); qd = ((r.a[(i - 1)])==y0) ? DM : ((Number(r.a[i]) * d1) + ((Number(r.a[(i - 1)]) + e) * d2)); if ((r.a[i] = (r.a[i] + y.am(0, qd, r, j, 0, ys))) < qd){ y.dlShiftTo(j, t); r.subTo(t, r); while ((qd = (qd - 1)), r.a[i] < (qd - 1)) { r.subTo(t, r); }; }; }; if (q != null){ r.drShiftTo(ys, q); if (ts != ms){ ZERO.subTo(q, q); }; }; r.t = ys; r.clamp(); if (nsh > 0){ r.rShiftTo(nsh, r); }; if (ts < 0){ ZERO.subTo(r, r); }; } public function remainder(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); divRemTo(_arg1, null, _local2); return (_local2); } public function divide(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); divRemTo(_arg1, _local2, null); return (_local2); } public function divideAndRemainder(_arg1:BigInteger):Array{ var _local2:BigInteger; var _local3:BigInteger; _local2 = new BigInteger(); _local3 = new BigInteger(); divRemTo(_arg1, _local2, _local3); return ([_local2, _local3]); } public function valueOf():Number{ var _local1:Number; var _local2:Number; var _local3:uint; _local1 = 1; _local2 = 0; _local3 = 0; while (_local3 < t) { _local2 = (_local2 + (a[_local3] * _local1)); _local1 = (_local1 * DV); _local3++; }; return (_local2); } public function shiftLeft(_arg1:int):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); if (_arg1 < 0){ rShiftTo(-(_arg1), _local2); } else { lShiftTo(_arg1, _local2); }; return (_local2); } public function multiply(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); multiplyTo(_arg1, _local2); return (_local2); } bi_internal function am(_arg1:int, _arg2:int, _arg3:BigInteger, _arg4:int, _arg5:int, _arg6:int):int{ var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; _local7 = (_arg2 & 32767); _local8 = (_arg2 >> 15); while (--_arg6 >= 0) { _local9 = (a[_arg1] & 32767); var _temp1 = _arg1; _arg1 = (_arg1 + 1); _local10 = (a[_temp1] >> 15); _local11 = ((_local8 * _local9) + (_local10 * _local7)); _local9 = ((((_local7 * _local9) + ((_local11 & 32767) << 15)) + _arg3.a[_arg4]) + (_arg5 & 1073741823)); _arg5 = ((((_local9 >>> 30) + (_local11 >>> 15)) + (_local8 * _local10)) + (_arg5 >>> 30)); var _temp2 = _arg4; _arg4 = (_arg4 + 1); var _local12 = _temp2; _arg3.a[_local12] = (_local9 & 1073741823); }; return (_arg5); } bi_internal function drShiftTo(_arg1:int, _arg2:BigInteger):void{ var _local3:int; _local3 = _arg1; while (_local3 < t) { _arg2.a[(_local3 - _arg1)] = a[_local3]; _local3++; }; _arg2.t = Math.max((t - _arg1), 0); _arg2.s = s; } public function add(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); addTo(_arg1, _local2); return (_local2); } bi_internal function multiplyUpperTo(_arg1:BigInteger, _arg2:int, _arg3:BigInteger):void{ var _local4:int; _arg2--; _local4 = (_arg3.t = ((t + _arg1.t) - _arg2)); _arg3.s = 0; while (--_local4 >= 0) { _arg3.a[_local4] = 0; }; _local4 = Math.max((_arg2 - t), 0); while (_local4 < _arg1.t) { _arg3.a[((t + _local4) - _arg2)] = am((_arg2 - _local4), _arg1.a[_local4], _arg3, 0, 0, ((t + _local4) - _arg2)); _local4++; }; _arg3.clamp(); _arg3.drShiftTo(1, _arg3); } protected function nbi(){ return (new BigInteger()); } protected function millerRabin(_arg1:int):Boolean{ var _local2:BigInteger; var _local3:int; var _local4:BigInteger; var _local5:BigInteger; var _local6:int; var _local7:BigInteger; var _local8:int; _local2 = subtract(BigInteger.ONE); _local3 = _local2.getLowestSetBit(); if (_local3 <= 0){ return (false); }; _local4 = _local2.shiftRight(_local3); _arg1 = ((_arg1 + 1) >> 1); if (_arg1 > lowprimes.length){ _arg1 = lowprimes.length; }; _local5 = new BigInteger(); _local6 = 0; while (_local6 < _arg1) { _local5.fromInt(lowprimes[_local6]); _local7 = _local5.modPow(_local4, this); if (((!((_local7.compareTo(BigInteger.ONE) == 0))) && (!((_local7.compareTo(_local2) == 0))))){ _local8 = 1; while ((((_local8++ < _local3)) && (!((_local7.compareTo(_local2) == 0))))) { _local7 = _local7.modPowInt(2, this); if (_local7.compareTo(BigInteger.ONE) == 0){ return (false); }; }; if (_local7.compareTo(_local2) != 0){ return (false); }; }; _local6++; }; return (true); } bi_internal function dMultiply(_arg1:int):void{ a[t] = am(0, (_arg1 - 1), this, 0, 0, t); t++; clamp(); } private function op_andnot(_arg1:int, _arg2:int):int{ return ((_arg1 & ~(_arg2))); } bi_internal function clamp():void{ var _local1:int; _local1 = (s & DM); while ((((t > 0)) && ((a[(t - 1)] == _local1)))) { t--; }; } bi_internal function invDigit():int{ var _local1:int; var _local2:int; if (t < 1){ return (0); }; _local1 = a[0]; if ((_local1 & 1) == 0){ return (0); }; _local2 = (_local1 & 3); _local2 = ((_local2 * (2 - ((_local1 & 15) * _local2))) & 15); _local2 = ((_local2 * (2 - ((_local1 & 0xFF) * _local2))) & 0xFF); _local2 = ((_local2 * (2 - (((_local1 & 0xFFFF) * _local2) & 0xFFFF))) & 0xFFFF); _local2 = ((_local2 * (2 - ((_local1 * _local2) % DV))) % DV); return (((_local2)>0) ? (DV - _local2) : -(_local2)); } protected function changeBit(_arg1:int, _arg2:Function):BigInteger{ var _local3:BigInteger; _local3 = BigInteger.ONE.shiftLeft(_arg1); bitwiseTo(_local3, _arg2, _local3); return (_local3); } public function equals(_arg1:BigInteger):Boolean{ return ((compareTo(_arg1) == 0)); } public function compareTo(_arg1:BigInteger):int{ var _local2:int; var _local3:int; _local2 = (s - _arg1.s); if (_local2 != 0){ return (_local2); }; _local3 = t; _local2 = (_local3 - _arg1.t); if (_local2 != 0){ return (_local2); }; while (--_local3 >= 0) { _local2 = (a[_local3] - _arg1.a[_local3]); if (_local2 != 0){ return (_local2); }; }; return (0); } public function shiftRight(_arg1:int):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); if (_arg1 < 0){ lShiftTo(-(_arg1), _local2); } else { rShiftTo(_arg1, _local2); }; return (_local2); } bi_internal function multiplyTo(_arg1:BigInteger, _arg2:BigInteger):void{ var _local3:BigInteger; var _local4:BigInteger; var _local5:int; _local3 = abs(); _local4 = _arg1.abs(); _local5 = _local3.t; _arg2.t = (_local5 + _local4.t); while (--_local5 >= 0) { _arg2.a[_local5] = 0; }; _local5 = 0; while (_local5 < _local4.t) { _arg2.a[(_local5 + _local3.t)] = _local3.am(0, _local4.a[_local5], _arg2, _local5, 0, _local3.t); _local5++; }; _arg2.s = 0; _arg2.clamp(); if (s != _arg1.s){ ZERO.subTo(_arg2, _arg2); }; } public function bitCount():int{ var _local1:int; var _local2:int; var _local3:int; _local1 = 0; _local2 = (s & DM); _local3 = 0; while (_local3 < t) { _local1 = (_local1 + cbit((a[_local3] ^ _local2))); _local3++; }; return (_local1); } public function byteValue():int{ return (((t)==0) ? s : ((a[0] << 24) >> 24)); } private function cbit(_arg1:int):int{ var _local2:uint; _local2 = 0; while (_arg1 != 0) { _arg1 = (_arg1 & (_arg1 - 1)); _local2++; }; return (_local2); } bi_internal function rShiftTo(_arg1:int, _arg2:BigInteger):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; _arg2.s = s; _local3 = (_arg1 / DB); if (_local3 >= t){ _arg2.t = 0; return; }; _local4 = (_arg1 % DB); _local5 = (DB - _local4); _local6 = ((1 << _local4) - 1); _arg2.a[0] = (a[_local3] >> _local4); _local7 = (_local3 + 1); while (_local7 < t) { _arg2.a[((_local7 - _local3) - 1)] = (_arg2.a[((_local7 - _local3) - 1)] | ((a[_local7] & _local6) << _local5)); _arg2.a[(_local7 - _local3)] = (a[_local7] >> _local4); _local7++; }; if (_local4 > 0){ _arg2.a[((t - _local3) - 1)] = (_arg2.a[((t - _local3) - 1)] | ((s & _local6) << _local5)); }; _arg2.t = (t - _local3); _arg2.clamp(); } public function modInverse(_arg1:BigInteger):BigInteger{ var _local2:Boolean; var _local3:BigInteger; var _local4:BigInteger; var _local5:BigInteger; var _local6:BigInteger; var _local7:BigInteger; var _local8:BigInteger; _local2 = _arg1.isEven(); if (((((isEven()) && (_local2))) || ((_arg1.sigNum() == 0)))){ return (BigInteger.ZERO); }; _local3 = _arg1.clone(); _local4 = clone(); _local5 = nbv(1); _local6 = nbv(0); _local7 = nbv(0); _local8 = nbv(1); while (_local3.sigNum() != 0) { while (_local3.isEven()) { _local3.rShiftTo(1, _local3); if (_local2){ if (((!(_local5.isEven())) || (!(_local6.isEven())))){ _local5.addTo(this, _local5); _local6.subTo(_arg1, _local6); }; _local5.rShiftTo(1, _local5); } else { if (!_local6.isEven()){ _local6.subTo(_arg1, _local6); }; }; _local6.rShiftTo(1, _local6); }; while (_local4.isEven()) { _local4.rShiftTo(1, _local4); if (_local2){ if (((!(_local7.isEven())) || (!(_local8.isEven())))){ _local7.addTo(this, _local7); _local8.subTo(_arg1, _local8); }; _local7.rShiftTo(1, _local7); } else { if (!_local8.isEven()){ _local8.subTo(_arg1, _local8); }; }; _local8.rShiftTo(1, _local8); }; if (_local3.compareTo(_local4) >= 0){ _local3.subTo(_local4, _local3); if (_local2){ _local5.subTo(_local7, _local5); }; _local6.subTo(_local8, _local6); } else { _local4.subTo(_local3, _local4); if (_local2){ _local7.subTo(_local5, _local7); }; _local8.subTo(_local6, _local8); }; }; if (_local4.compareTo(BigInteger.ONE) != 0){ return (BigInteger.ZERO); }; if (_local8.compareTo(_arg1) >= 0){ return (_local8.subtract(_arg1)); }; if (_local8.sigNum() < 0){ _local8.addTo(_arg1, _local8); } else { return (_local8); }; if (_local8.sigNum() < 0){ return (_local8.add(_arg1)); }; return (_local8); } bi_internal function fromArray(_arg1:ByteArray, _arg2:int):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; _local3 = _arg1.position; _local4 = (_local3 + _arg2); _local5 = 0; _local6 = 8; t = 0; s = 0; while (--_local4 >= _local3) { _local7 = ((_local4 < _arg1.length)) ? _arg1[_local4] : 0; if (_local5 == 0){ var _local8 = t++; a[_local8] = _local7; } else { if ((_local5 + _local6) > DB){ a[(t - 1)] = (a[(t - 1)] | ((_local7 & ((1 << (DB - _local5)) - 1)) << _local5)); _local8 = t++; a[_local8] = (_local7 >> (DB - _local5)); } else { a[(t - 1)] = (a[(t - 1)] | (_local7 << _local5)); }; }; _local5 = (_local5 + _local6); if (_local5 >= DB){ _local5 = (_local5 - DB); }; }; clamp(); _arg1.position = Math.min((_local3 + _arg2), _arg1.length); } bi_internal function copyTo(_arg1:BigInteger):void{ var _local2:int; _local2 = (t - 1); while (_local2 >= 0) { _arg1.a[_local2] = a[_local2]; _local2--; }; _arg1.t = t; _arg1.s = s; } public function intValue():int{ if (s < 0){ if (t == 1){ return ((a[0] - DV)); }; if (t == 0){ return (-1); }; } else { if (t == 1){ return (a[0]); }; if (t == 0){ return (0); }; }; return ((((a[1] & ((1 << (32 - DB)) - 1)) << DB) | a[0])); } public function min(_arg1:BigInteger):BigInteger{ return (((compareTo(_arg1))<0) ? this : _arg1); } public function bitLength():int{ if (t <= 0){ return (0); }; return (((DB * (t - 1)) + nbits((a[(t - 1)] ^ (s & DM))))); } public function shortValue():int{ return (((t)==0) ? s : ((a[0] << 16) >> 16)); } public function and(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); bitwiseTo(_arg1, op_and, _local2); return (_local2); } protected function toRadix(_arg1:uint=10):String{ var _local2:int; var _local3:Number; var _local4:BigInteger; var _local5:BigInteger; var _local6:BigInteger; var _local7:String; if ((((((sigNum() == 0)) || ((_arg1 < 2)))) || ((_arg1 > 32)))){ return ("0"); }; _local2 = chunkSize(_arg1); _local3 = Math.pow(_arg1, _local2); _local4 = nbv(_local3); _local5 = nbi(); _local6 = nbi(); _local7 = ""; divRemTo(_local4, _local5, _local6); while (_local5.sigNum() > 0) { _local7 = ((_local3 + _local6.intValue()).toString(_arg1).substr(1) + _local7); _local5.divRemTo(_local4, _local5, _local6); }; return ((_local6.intValue().toString(_arg1) + _local7)); } public function not():BigInteger{ var _local1:BigInteger; var _local2:int; _local1 = new BigInteger(); _local2 = 0; while (_local2 < t) { _local1[_local2] = (DM & ~(a[_local2])); _local2++; }; _local1.t = t; _local1.s = ~(s); return (_local1); } bi_internal function subTo(_arg1:BigInteger, _arg2:BigInteger):void{ var _local3:int; var _local4:int; var _local5:int; _local3 = 0; _local4 = 0; _local5 = Math.min(_arg1.t, t); while (_local3 < _local5) { _local4 = (_local4 + (a[_local3] - _arg1.a[_local3])); var _temp1 = _local3; _local3 = (_local3 + 1); var _local6 = _temp1; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; if (_arg1.t < t){ _local4 = (_local4 - _arg1.s); while (_local3 < t) { _local4 = (_local4 + a[_local3]); var _temp2 = _local3; _local3 = (_local3 + 1); _local6 = _temp2; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; _local4 = (_local4 + s); } else { _local4 = (_local4 + s); while (_local3 < _arg1.t) { _local4 = (_local4 - _arg1.a[_local3]); var _temp3 = _local3; _local3 = (_local3 + 1); _local6 = _temp3; _arg2.a[_local6] = (_local4 & DM); _local4 = (_local4 >> DB); }; _local4 = (_local4 - _arg1.s); }; _arg2.s = ((_local4)<0) ? -1 : 0; if (_local4 < -1){ var _temp4 = _local3; _local3 = (_local3 + 1); _local6 = _temp4; _arg2.a[_local6] = (DV + _local4); } else { if (_local4 > 0){ var _temp5 = _local3; _local3 = (_local3 + 1); _local6 = _temp5; _arg2.a[_local6] = _local4; }; }; _arg2.t = _local3; _arg2.clamp(); } public function clone():BigInteger{ var _local1:BigInteger; _local1 = new BigInteger(); this.copyTo(_local1); return (_local1); } public function pow(_arg1:int):BigInteger{ return (exp(_arg1, new NullReduction())); } public function flipBit(_arg1:int):BigInteger{ return (changeBit(_arg1, op_xor)); } public function xor(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); bitwiseTo(_arg1, op_xor, _local2); return (_local2); } public function or(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); bitwiseTo(_arg1, op_or, _local2); return (_local2); } public function max(_arg1:BigInteger):BigInteger{ return (((compareTo(_arg1))>0) ? this : _arg1); } bi_internal function fromInt(_arg1:int):void{ t = 1; s = ((_arg1)<0) ? -1 : 0; if (_arg1 > 0){ a[0] = _arg1; } else { if (_arg1 < -1){ a[0] = (_arg1 + DV); } else { t = 0; }; }; } bi_internal function isEven():Boolean{ return ((((t)>0) ? (a[0] & 1) : s == 0)); } public function toString(_arg1:Number=16):String{ var _local2:int; var _local3:int; var _local4:int; var _local5:Boolean; var _local6:String; var _local7:int; var _local8:int; if (s < 0){ return (("-" + negate().toString(_arg1))); }; switch (_arg1){ case 2: _local2 = 1; break; case 4: _local2 = 2; break; case 8: _local2 = 3; break; case 16: _local2 = 4; break; case 32: _local2 = 5; break; }; _local3 = ((1 << _local2) - 1); _local4 = 0; _local5 = false; _local6 = ""; _local7 = t; _local8 = (DB - ((_local7 * DB) % _local2)); var _temp1 = _local7; _local7 = (_local7 - 1); if (_temp1 > 0){ if ((((_local8 < DB)) && (((a[_local7] >> _local8) > 0)))){ _local5 = true; _local6 = _local4.toString(36); }; while (_local7 >= 0) { if (_local8 < _local2){ _local4 = ((a[_local7] & ((1 << _local8) - 1)) << (_local2 - _local8)); var _temp2 = _local4; _local7 = (_local7 - 1); _local8 = (_local8 + (DB - _local2)); _local4 = (_temp2 | (a[_local7] >> _local8)); } else { _local8 = (_local8 - _local2); _local4 = ((a[_local7] >> _local8) & _local3); if (_local8 <= 0){ _local8 = (_local8 + DB); _local7--; }; }; if (_local4 > 0){ _local5 = true; }; if (_local5){ _local6 = (_local6 + _local4.toString(36)); }; }; }; return ((_local5) ? _local6 : "0"); } public function setBit(_arg1:int):BigInteger{ return (changeBit(_arg1, op_or)); } public function abs():BigInteger{ return (((s)<0) ? negate() : this); } bi_internal function nbits(_arg1:int):int{ var _local2:int; var _local3:int; _local2 = 1; _local3 = (_arg1 >>> 16); if (_local3 != 0){ _arg1 = _local3; _local2 = (_local2 + 16); }; _local3 = (_arg1 >> 8); if (_local3 != 0){ _arg1 = _local3; _local2 = (_local2 + 8); }; _local3 = (_arg1 >> 4); if (_local3 != 0){ _arg1 = _local3; _local2 = (_local2 + 4); }; _local3 = (_arg1 >> 2); if (_local3 != 0){ _arg1 = _local3; _local2 = (_local2 + 2); }; _local3 = (_arg1 >> 1); if (_local3 != 0){ _arg1 = _local3; _local2 = (_local2 + 1); }; return (_local2); } public function sigNum():int{ if (s < 0){ return (-1); }; if ((((t <= 0)) || ((((t == 1)) && ((a[0] <= 0)))))){ return (0); }; return (1); } public function toByteArray():ByteArray{ var _local1:int; var _local2:ByteArray; var _local3:int; var _local4:int; var _local5:int; _local1 = t; _local2 = new ByteArray(); _local2[0] = s; _local3 = (DB - ((_local1 * DB) % 8)); _local5 = 0; var _temp1 = _local1; _local1 = (_local1 - 1); if (_temp1 > 0){ if ((((_local3 < DB)) && (!(((a[_local1] >> _local3) == ((s & DM) >> _local3)))))){ var _temp2 = _local5; _local5 = (_local5 + 1); var _local6 = _temp2; _local2[_local6] = (_local4 | (s << (DB - _local3))); }; while (_local1 >= 0) { if (_local3 < 8){ _local4 = ((a[_local1] & ((1 << _local3) - 1)) << (8 - _local3)); var _temp3 = _local4; _local1 = (_local1 - 1); _local3 = (_local3 + (DB - 8)); _local4 = (_temp3 | (a[_local1] >> _local3)); } else { _local3 = (_local3 - 8); _local4 = ((a[_local1] >> _local3) & 0xFF); if (_local3 <= 0){ _local3 = (_local3 + DB); _local1--; }; }; if ((_local4 & 128) != 0){ _local4 = (_local4 | -256); }; if ((((_local5 == 0)) && (!(((s & 128) == (_local4 & 128)))))){ _local5++; }; if ((((_local5 > 0)) || (!((_local4 == s))))){ var _temp4 = _local5; _local5 = (_local5 + 1); _local6 = _temp4; _local2[_local6] = _local4; }; }; }; return (_local2); } bi_internal function squareTo(_arg1:BigInteger):void{ var _local2:BigInteger; var _local3:int; var _local4:int; _local2 = abs(); _local3 = (_arg1.t = (2 * _local2.t)); while (--_local3 >= 0) { _arg1.a[_local3] = 0; }; _local3 = 0; while (_local3 < (_local2.t - 1)) { _local4 = _local2.am(_local3, _local2.a[_local3], _arg1, (2 * _local3), 0, 1); if ((_arg1.a[(_local3 + _local2.t)] = (_arg1.a[(_local3 + _local2.t)] + _local2.am((_local3 + 1), (2 * _local2.a[_local3]), _arg1, ((2 * _local3) + 1), _local4, ((_local2.t - _local3) - 1)))) >= DV){ _arg1.a[(_local3 + _local2.t)] = (_arg1.a[(_local3 + _local2.t)] - DV); _arg1.a[((_local3 + _local2.t) + 1)] = 1; }; _local3++; }; if (_arg1.t > 0){ _arg1.a[(_arg1.t - 1)] = (_arg1.a[(_arg1.t - 1)] + _local2.am(_local3, _local2.a[_local3], _arg1, (2 * _local3), 0, 1)); }; _arg1.s = 0; _arg1.clamp(); } private function op_and(_arg1:int, _arg2:int):int{ return ((_arg1 & _arg2)); } protected function fromRadix(_arg1:String, _arg2:int=10):void{ var _local3:int; var _local4:Number; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:int; var _local9:int; fromInt(0); _local3 = chunkSize(_arg2); _local4 = Math.pow(_arg2, _local3); _local5 = false; _local6 = 0; _local7 = 0; _local8 = 0; while (_local8 < _arg1.length) { _local9 = intAt(_arg1, _local8); if (_local9 < 0){ if ((((_arg1.charAt(_local8) == "-")) && ((sigNum() == 0)))){ _local5 = true; }; } else { _local7 = ((_arg2 * _local7) + _local9); ++_local6; if (_local6 >= _local3){ dMultiply(_local4); dAddOffset(_local7, 0); _local6 = 0; _local7 = 0; }; }; _local8++; }; if (_local6 > 0){ dMultiply(Math.pow(_arg2, _local6)); dAddOffset(_local7, 0); }; if (_local5){ BigInteger.ZERO.subTo(this, this); }; } bi_internal function dlShiftTo(_arg1:int, _arg2:BigInteger):void{ var _local3:int; _local3 = (t - 1); while (_local3 >= 0) { _arg2.a[(_local3 + _arg1)] = a[_local3]; _local3--; }; _local3 = (_arg1 - 1); while (_local3 >= 0) { _arg2.a[_local3] = 0; _local3--; }; _arg2.t = (t + _arg1); _arg2.s = s; } private function op_xor(_arg1:int, _arg2:int):int{ return ((_arg1 ^ _arg2)); } public static function nbv(_arg1:int):BigInteger{ var _local2:BigInteger; _local2 = new (BigInteger); _local2.fromInt(_arg1); return (_local2); } } }//package com.hurlant.math
Section 248
//ClassicReduction (com.hurlant.math.ClassicReduction) package com.hurlant.math { import com.hurlant.math.*; class ClassicReduction implements IReduction { private var m:BigInteger; function ClassicReduction(_arg1:BigInteger){ this.m = _arg1; } public function revert(_arg1:BigInteger):BigInteger{ return (_arg1); } public function reduce(_arg1:BigInteger):void{ _arg1.divRemTo(m, null, _arg1); } public function convert(_arg1:BigInteger):BigInteger{ if ((((_arg1.s < 0)) || ((_arg1.compareTo(m) >= 0)))){ return (_arg1.mod(m)); }; return (_arg1); } public function sqrTo(_arg1:BigInteger, _arg2:BigInteger):void{ _arg1.squareTo(_arg2); reduce(_arg2); } public function mulTo(_arg1:BigInteger, _arg2:BigInteger, _arg3:BigInteger):void{ _arg1.multiplyTo(_arg2, _arg3); reduce(_arg3); } } }//package com.hurlant.math
Section 249
//IReduction (com.hurlant.math.IReduction) package com.hurlant.math { import com.hurlant.math.*; interface IReduction { function convert(_arg1:BigInteger):BigInteger; function revert(_arg1:BigInteger):BigInteger; function reduce(_arg1:BigInteger):void; function sqrTo(_arg1:BigInteger, _arg2:BigInteger):void; function mulTo(_arg1:BigInteger, _arg2:BigInteger, _arg3:BigInteger):void; } }//package com.hurlant.math
Section 250
//MontgomeryReduction (com.hurlant.math.MontgomeryReduction) package com.hurlant.math { import com.hurlant.math.*; class MontgomeryReduction implements IReduction { private var um:int; private var mp:int; private var mph:int; private var mpl:int; private var mt2:int; private var m:BigInteger; function MontgomeryReduction(_arg1:BigInteger){ this.m = _arg1; mp = _arg1.invDigit(); mpl = (mp & 32767); mph = (mp >> 15); um = ((1 << (BigInteger.DB - 15)) - 1); mt2 = (2 * _arg1.t); } public function mulTo(_arg1:BigInteger, _arg2:BigInteger, _arg3:BigInteger):void{ _arg1.multiplyTo(_arg2, _arg3); reduce(_arg3); } public function revert(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); _arg1.copyTo(_local2); reduce(_local2); return (_local2); } public function convert(_arg1:BigInteger):BigInteger{ var _local2:BigInteger; _local2 = new BigInteger(); _arg1.abs().dlShiftTo(m.t, _local2); _local2.divRemTo(m, null, _local2); if ((((_arg1.s < 0)) && ((_local2.compareTo(BigInteger.ZERO) > 0)))){ m.subTo(_local2, _local2); }; return (_local2); } public function reduce(_arg1:BigInteger):void{ var _local2:int; var _local3:int; var _local4:int; while (_arg1.t <= mt2) { var _local5 = _arg1.t++; _arg1.a[_local5] = 0; }; _local2 = 0; while (_local2 < m.t) { _local3 = (_arg1.a[_local2] & 32767); _local4 = (((_local3 * mpl) + ((((_local3 * mph) + ((_arg1.a[_local2] >> 15) * mpl)) & um) << 15)) & BigInteger.DM); _local3 = (_local2 + m.t); _arg1.a[_local3] = (_arg1.a[_local3] + m.am(0, _local4, _arg1, _local2, 0, m.t)); while (_arg1.a[_local3] >= BigInteger.DV) { _arg1.a[_local3] = (_arg1.a[_local3] - BigInteger.DV); _local5 = _arg1.a; ++_local3; var _local6 = _local3; var _local7 = (_local5[_local6] + 1); _local5[_local6] = _local7; }; _local2++; }; _arg1.clamp(); _arg1.drShiftTo(m.t, _arg1); if (_arg1.compareTo(m) >= 0){ _arg1.subTo(m, _arg1); }; } public function sqrTo(_arg1:BigInteger, _arg2:BigInteger):void{ _arg1.squareTo(_arg2); reduce(_arg2); } } }//package com.hurlant.math
Section 251
//NullReduction (com.hurlant.math.NullReduction) package com.hurlant.math { public class NullReduction implements IReduction { public function reduce(_arg1:BigInteger):void{ } public function revert(_arg1:BigInteger):BigInteger{ return (_arg1); } public function mulTo(_arg1:BigInteger, _arg2:BigInteger, _arg3:BigInteger):void{ _arg1.multiplyTo(_arg2, _arg3); } public function convert(_arg1:BigInteger):BigInteger{ return (_arg1); } public function sqrTo(_arg1:BigInteger, _arg2:BigInteger):void{ _arg1.squareTo(_arg2); } } }//package com.hurlant.math
Section 252
//Base64 (com.hurlant.util.Base64) package com.hurlant.util { import flash.utils.*; public class Base64 { public static const version:String = "1.0.0"; private static const BASE64_CHARS:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; public function Base64(){ throw (new Error("Base64 class is static container only")); } public static function encode(_arg1:String):String{ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeUTFBytes(_arg1); return (encodeByteArray(_local2)); } public static function encodeByteArray(_arg1:ByteArray):String{ var _local2:String; var _local3:Array; var _local4:Array; var _local5:uint; var _local6:uint; var _local7:uint; _local2 = ""; _local4 = new Array(4); _arg1.position = 0; while (_arg1.bytesAvailable > 0) { _local3 = new Array(); _local5 = 0; while ((((_local5 < 3)) && ((_arg1.bytesAvailable > 0)))) { _local3[_local5] = _arg1.readUnsignedByte(); _local5++; }; _local4[0] = ((_local3[0] & 252) >> 2); _local4[1] = (((_local3[0] & 3) << 4) | (_local3[1] >> 4)); _local4[2] = (((_local3[1] & 15) << 2) | (_local3[2] >> 6)); _local4[3] = (_local3[2] & 63); _local6 = _local3.length; while (_local6 < 3) { _local4[(_local6 + 1)] = 64; _local6++; }; _local7 = 0; while (_local7 < _local4.length) { _local2 = (_local2 + BASE64_CHARS.charAt(_local4[_local7])); _local7++; }; }; return (_local2); } public static function decode(_arg1:String):String{ var _local2:ByteArray; _local2 = decodeToByteArray(_arg1); return (_local2.readUTFBytes(_local2.length)); } public static function decodeToByteArray(_arg1:String):ByteArray{ var _local2:ByteArray; var _local3:Array; var _local4:Array; var _local5:uint; var _local6:uint; var _local7:uint; _local2 = new ByteArray(); _local3 = new Array(4); _local4 = new Array(3); _local5 = 0; while (_local5 < _arg1.length) { _local6 = 0; while ((((_local6 < 4)) && (((_local5 + _local6) < _arg1.length)))) { _local3[_local6] = BASE64_CHARS.indexOf(_arg1.charAt((_local5 + _local6))); _local6++; }; _local4[0] = ((_local3[0] << 2) + ((_local3[1] & 48) >> 4)); _local4[1] = (((_local3[1] & 15) << 4) + ((_local3[2] & 60) >> 2)); _local4[2] = (((_local3[2] & 3) << 6) + _local3[3]); _local7 = 0; while (_local7 < _local4.length) { if (_local3[(_local7 + 1)] == 64){ break; }; _local2.writeByte(_local4[_local7]); _local7++; }; _local5 = (_local5 + 4); }; _local2.position = 0; return (_local2); } } }//package com.hurlant.util
Section 253
//Hex (com.hurlant.util.Hex) package com.hurlant.util { import flash.utils.*; public class Hex { public static function fromString(_arg1:String, _arg2:Boolean=false):String{ var _local3:ByteArray; _local3 = new ByteArray(); _local3.writeUTFBytes(_arg1); return (fromArray(_local3, _arg2)); } public static function toString(_arg1:String):String{ var _local2:ByteArray; _local2 = toArray(_arg1); return (_local2.readUTFBytes(_local2.length)); } public static function toArray(_arg1:String):ByteArray{ var _local2:ByteArray; var _local3:uint; _arg1 = _arg1.replace(/\s|:/gm, ""); _local2 = new ByteArray(); if ((_arg1.length & (1 == 1))){ _arg1 = ("0" + _arg1); }; _local3 = 0; while (_local3 < _arg1.length) { _local2[(_local3 / 2)] = parseInt(_arg1.substr(_local3, 2), 16); _local3 = (_local3 + 2); }; return (_local2); } public static function fromArray(_arg1:ByteArray, _arg2:Boolean=false):String{ var _local3:String; var _local4:uint; _local3 = ""; _local4 = 0; while (_local4 < _arg1.length) { _local3 = (_local3 + ("0" + _arg1[_local4].toString(16)).substr(-2, 2)); if (_arg2){ if (_local4 < (_arg1.length - 1)){ _local3 = (_local3 + ":"); }; }; _local4++; }; return (_local3); } } }//package com.hurlant.util
Section 254
//Memory (com.hurlant.util.Memory) package com.hurlant.util { import flash.net.*; import flash.system.*; public class Memory { public static function gc():void{ try { new LocalConnection().connect("foo"); new LocalConnection().connect("foo"); } catch(e) { }; } public static function get used():uint{ return (System.totalMemory); } } }//package com.hurlant.util
Section 255
//CrossDomainRSLItem (mx.core.CrossDomainRSLItem) package mx.core { import flash.display.*; import flash.events.*; import mx.events.*; import flash.system.*; import flash.net.*; import flash.utils.*; import mx.utils.*; public class CrossDomainRSLItem extends RSLItem { private var urlIndex:int;// = 0 private var digests:Array; private var hashTypes:Array; private var isSigned:Array; private var rslUrls:Array; private var policyFileUrls:Array; mx_internal static const VERSION:String = "3.0.0.0"; public function CrossDomainRSLItem(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Array){ super(_arg1[0]); this.rslUrls = _arg1; this.policyFileUrls = _arg2; this.digests = _arg3; this.hashTypes = _arg4; this.isSigned = _arg5; } override public function itemCompleteHandler(_arg1:Event):void{ completeCdRslLoad((_arg1.target as URLLoader)); } private function loadBytesCompleteHandler(_arg1:Event):void{ super.itemCompleteHandler(_arg1); } override public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ var _local7:ErrorEvent; chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; urlRequest = new URLRequest(rslUrls[urlIndex]); var _local6:URLLoader = new URLLoader(); _local6.dataFormat = URLLoaderDataFormat.BINARY; _local6.addEventListener(ProgressEvent.PROGRESS, itemProgressHandler); _local6.addEventListener(Event.COMPLETE, itemCompleteHandler); _local6.addEventListener(IOErrorEvent.IO_ERROR, itemErrorHandler); _local6.addEventListener(SecurityErrorEvent.SECURITY_ERROR, itemErrorHandler); if ((((policyFileUrls.length > urlIndex)) && (!((policyFileUrls[urlIndex] == ""))))){ Security.loadPolicyFile(policyFileUrls[urlIndex]); }; if (isSigned[urlIndex]){ if (urlRequest.hasOwnProperty("digest")){ urlRequest.digest = digests[urlIndex]; } else { if (hasFailover()){ loadFailover(); return; }; _local7 = new ErrorEvent(RSLEvent.RSL_ERROR); _local7.text = (("Flex Error #1002: Flash Player 9.0.60 and above is required to support signed RSLs. Problem occurred when trying to load the RSL " + urlRequest.url) + ". Upgrade your Flash Player and try again."); super.itemErrorHandler(_local7); return; }; }; _local6.load(urlRequest); } private function completeCdRslLoad(_arg1:URLLoader):Boolean{ var _local4:Boolean; var _local5:String; var _local6:Boolean; var _local7:ErrorEvent; if ((((((_arg1 == null)) || ((_arg1.data == null)))) || ((ByteArray(_arg1.data).bytesAvailable == 0)))){ return (true); }; var _local2:Loader = new Loader(); var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = ApplicationDomain.currentDomain; _local3.securityDomain = null; if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; if (((!((digests[urlIndex] == null))) && ((String(digests[urlIndex]).length > 0)))){ _local4 = false; if (!isSigned[urlIndex]){ if (hashTypes[urlIndex] == SHA256.TYPE_ID){ _local5 = null; if (_arg1.data != null){ _local5 = SHA256.computeDigest(_arg1.data); }; if (_local5 == digests[urlIndex]){ _local4 = true; }; }; } else { _local4 = true; }; if (!_local4){ _local6 = hasFailover(); _local7 = new ErrorEvent(RSLEvent.RSL_ERROR); _local7.text = (("Flex Error #1001: Digest mismatch with RSL " + urlRequest.url) + ". Redeploy the matching RSL or relink your application with the matching library."); itemErrorHandler(_local7); return (!(_local6)); }; }; _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadBytesCompleteHandler); _local2.loadBytes(_arg1.data, _local3); return (true); } public function loadFailover():void{ if (urlIndex < rslUrls.length){ trace(("Failed to load RSL " + rslUrls[urlIndex])); trace(("Failing over to RSL " + rslUrls[(urlIndex + 1)])); urlIndex++; url = rslUrls[urlIndex]; load(chainedProgressHandler, chainedCompleteHandler, chainedIOErrorHandler, chainedSecurityErrorHandler, chainedRSLErrorHandler); }; } public function hasFailover():Boolean{ return ((rslUrls.length > (urlIndex + 1))); } override public function itemErrorHandler(_arg1:ErrorEvent):void{ if (hasFailover()){ trace(decodeURI(_arg1.text)); loadFailover(); } else { super.itemErrorHandler(_arg1); }; } } }//package mx.core
Section 256
//EmbeddedFont (mx.core.EmbeddedFont) package mx.core { public class EmbeddedFont { private var _fontName:String; private var _fontStyle:String; mx_internal static const VERSION:String = "3.0.0.0"; public function EmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean){ _fontName = _arg1; _fontStyle = EmbeddedFontRegistry.getFontStyle(_arg2, _arg3); } public function get fontStyle():String{ return (_fontStyle); } public function get fontName():String{ return (_fontName); } } }//package mx.core
Section 257
//EmbeddedFontRegistry (mx.core.EmbeddedFontRegistry) package mx.core { import flash.text.*; import flash.utils.*; public class EmbeddedFontRegistry implements IEmbeddedFontRegistry { mx_internal static const VERSION:String = "3.0.0.0"; private static var fonts:Object = {}; private static var instance:IEmbeddedFontRegistry; public function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory{ var _local4:int; var _local5:Object; var _local3:Dictionary = fonts[createFontKey(_arg1)]; if (_local3){ _local4 = _local3[_arg2]; if (_local4){ return (_arg2); }; for (_local5 in _local3) { return ((_local5 as IFlexModuleFactory)); }; }; return (null); } public function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{ var _local5:int; var _local6:Object; var _local3:String = createFontKey(_arg1); var _local4:Dictionary = fonts[_local3]; if (_local4 != null){ delete _local4[_arg2]; _local5 = 0; for (_local6 in _local4) { _local5++; }; if (_local5 == 0){ delete fonts[_local3]; }; }; } public function getFonts():Array{ var _local2:String; var _local1:Array = []; for (_local2 in fonts) { _local1.push(createEmbeddedFont(_local2)); }; return (_local1); } public function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{ var _local3:String = createFontKey(_arg1); var _local4:Dictionary = fonts[_local3]; if (!_local4){ _local4 = new Dictionary(true); fonts[_local3] = _local4; }; _local4[_arg2] = 1; } public static function registerFonts(_arg1:Object, _arg2:IFlexModuleFactory):void{ var _local4:Object; var _local5:Object; var _local6:String; var _local7:Boolean; var _local8:Boolean; var _local3:IEmbeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry")); for (_local4 in _arg1) { _local5 = _arg1[_local4]; for (_local6 in _local5) { if (_local5[_local6] == false){ } else { if (_local6 == "regular"){ _local7 = false; _local8 = false; } else { if (_local6 == "boldItalic"){ _local7 = true; _local8 = true; } else { if (_local6 == "bold"){ _local7 = true; _local8 = false; } else { if (_local6 == "italic"){ _local7 = false; _local8 = true; }; }; }; }; _local3.registerFont(new EmbeddedFont(String(_local4), _local7, _local8), _arg2); }; }; }; } public static function getInstance():IEmbeddedFontRegistry{ if (!instance){ instance = new (EmbeddedFontRegistry); }; return (instance); } public static function getFontStyle(_arg1:Boolean, _arg2:Boolean):String{ var _local3:String = FontStyle.REGULAR; if (((_arg1) && (_arg2))){ _local3 = FontStyle.BOLD_ITALIC; } else { if (_arg1){ _local3 = FontStyle.BOLD; } else { if (_arg2){ _local3 = FontStyle.ITALIC; }; }; }; return (_local3); } private static function createFontKey(_arg1:EmbeddedFont):String{ return ((_arg1.fontName + _arg1.fontStyle)); } private static function createEmbeddedFont(_arg1:String):EmbeddedFont{ var _local2:String; var _local3:Boolean; var _local4:Boolean; var _local5:int = endsWith(_arg1, FontStyle.REGULAR); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, false, false)); }; _local5 = endsWith(_arg1, FontStyle.BOLD); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, true, false)); }; _local5 = endsWith(_arg1, FontStyle.BOLD_ITALIC); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, true, true)); }; _local5 = endsWith(_arg1, FontStyle.ITALIC); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, false, true)); }; return (new EmbeddedFont("", false, false)); } private static function endsWith(_arg1:String, _arg2:String):int{ var _local3:int = _arg1.lastIndexOf(_arg2); if ((((_local3 > 0)) && (((_local3 + _arg2.length) == _arg1.length)))){ return (_local3); }; return (-1); } } }//package mx.core
Section 258
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 259
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 260
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.0.0.0"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 261
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 262
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 263
//IEmbeddedFontRegistry (mx.core.IEmbeddedFontRegistry) package mx.core { public interface IEmbeddedFontRegistry { function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory; function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void; function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void; function getFonts():Array; } }//package mx.core
Section 264
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.display.*; import flash.geom.*; import flash.accessibility.*; import flash.events.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 265
//IFlexModule (mx.core.IFlexModule) package mx.core { public interface IFlexModule { function set moduleFactory(_arg1:IFlexModuleFactory):void; function get moduleFactory():IFlexModuleFactory; } }//package mx.core
Section 266
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 267
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 268
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 269
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 270
//ITextFieldFactory (mx.core.ITextFieldFactory) package mx.core { import flash.text.*; public interface ITextFieldFactory { function createTextField(_arg1:IFlexModuleFactory):TextField; } }//package mx.core
Section 271
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 272
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 273
//ResourceModuleRSLItem (mx.core.ResourceModuleRSLItem) package mx.core { import flash.events.*; import mx.events.*; import mx.resources.*; public class ResourceModuleRSLItem extends RSLItem { mx_internal static const VERSION:String = "3.0.0.0"; public function ResourceModuleRSLItem(_arg1:String){ super(_arg1); } private function resourceErrorHandler(_arg1:ResourceEvent):void{ var _local2:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR); _local2.text = _arg1.errorText; super.itemErrorHandler(_local2); } override public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; var _local6:IResourceManager = ResourceManager.getInstance(); var _local7:IEventDispatcher = _local6.loadResourceModule(url); _local7.addEventListener(ResourceEvent.PROGRESS, itemProgressHandler); _local7.addEventListener(ResourceEvent.COMPLETE, itemCompleteHandler); _local7.addEventListener(ResourceEvent.ERROR, resourceErrorHandler); } } }//package mx.core
Section 274
//RSLItem (mx.core.RSLItem) package mx.core { import flash.display.*; import flash.events.*; import mx.events.*; import flash.system.*; import flash.net.*; public class RSLItem { protected var chainedSecurityErrorHandler:Function; public var total:uint;// = 0 public var loaded:uint;// = 0 private var completed:Boolean;// = false protected var chainedRSLErrorHandler:Function; protected var chainedIOErrorHandler:Function; protected var chainedCompleteHandler:Function; private var errorText:String; protected var chainedProgressHandler:Function; public var urlRequest:URLRequest; protected var url:String; mx_internal static const VERSION:String = "3.0.0.0"; public function RSLItem(_arg1:String){ this.url = _arg1; } public function itemProgressHandler(_arg1:ProgressEvent):void{ loaded = _arg1.bytesLoaded; total = _arg1.bytesTotal; if (chainedProgressHandler != null){ chainedProgressHandler(_arg1); }; } public function itemErrorHandler(_arg1:ErrorEvent):void{ errorText = decodeURI(_arg1.text); completed = true; loaded = 0; total = 0; trace(errorText); if ((((_arg1.type == IOErrorEvent.IO_ERROR)) && (!((chainedIOErrorHandler == null))))){ chainedIOErrorHandler(_arg1); } else { if ((((_arg1.type == SecurityErrorEvent.SECURITY_ERROR)) && (!((chainedSecurityErrorHandler == null))))){ chainedSecurityErrorHandler(_arg1); } else { if ((((_arg1.type == RSLEvent.RSL_ERROR)) && (!((chainedRSLErrorHandler == null))))){ chainedRSLErrorHandler(_arg1); }; }; }; } public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; var _local6:Loader = new Loader(); var _local7:LoaderContext = new LoaderContext(); urlRequest = new URLRequest(url); _local6.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, itemProgressHandler); _local6.contentLoaderInfo.addEventListener(Event.COMPLETE, itemCompleteHandler); _local6.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, itemErrorHandler); _local6.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, itemErrorHandler); _local7.applicationDomain = ApplicationDomain.currentDomain; _local6.load(urlRequest, _local7); } public function itemCompleteHandler(_arg1:Event):void{ completed = true; if (chainedCompleteHandler != null){ chainedCompleteHandler(_arg1); }; } } }//package mx.core
Section 275
//RSLListLoader (mx.core.RSLListLoader) package mx.core { import flash.events.*; public class RSLListLoader { private var chainedSecurityErrorHandler:Function; private var chainedIOErrorHandler:Function; private var rslList:Array; private var chainedRSLErrorHandler:Function; private var chainedCompleteHandler:Function; private var currentIndex:int;// = 0 private var chainedProgressHandler:Function; mx_internal static const VERSION:String = "3.0.0.0"; public function RSLListLoader(_arg1:Array){ rslList = []; super(); this.rslList = _arg1; } private function loadNext():void{ if (!isDone()){ currentIndex++; if (currentIndex < rslList.length){ rslList[currentIndex].load(chainedProgressHandler, listCompleteHandler, listIOErrorHandler, listSecurityErrorHandler, chainedRSLErrorHandler); }; }; } public function getIndex():int{ return (currentIndex); } public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; currentIndex = -1; loadNext(); } private function listCompleteHandler(_arg1:Event):void{ if (chainedCompleteHandler != null){ chainedCompleteHandler(_arg1); }; loadNext(); } public function isDone():Boolean{ return ((currentIndex >= rslList.length)); } private function listSecurityErrorHandler(_arg1:Event):void{ if (chainedSecurityErrorHandler != null){ chainedSecurityErrorHandler(_arg1); }; } public function getItemCount():int{ return (rslList.length); } public function getItem(_arg1:int):RSLItem{ if ((((_arg1 < 0)) || ((_arg1 >= rslList.length)))){ return (null); }; return (rslList[_arg1]); } private function listIOErrorHandler(_arg1:Event):void{ if (chainedIOErrorHandler != null){ chainedIOErrorHandler(_arg1); }; } } }//package mx.core
Section 276
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.0.0.0"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 277
//TextFieldFactory (mx.core.TextFieldFactory) package mx.core { import flash.text.*; import flash.utils.*; public class TextFieldFactory implements ITextFieldFactory { private var textFields:Dictionary; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:ITextFieldFactory; public function TextFieldFactory(){ textFields = new Dictionary(true); super(); } public function createTextField(_arg1:IFlexModuleFactory):TextField{ var _local4:Object; var _local2:TextField; var _local3:Dictionary = textFields[_arg1]; if (_local3){ for (_local4 in _local3) { _local2 = TextField(_local4); break; }; }; if (!_local2){ if (_arg1){ _local2 = TextField(_arg1.create("flash.text.TextField")); } else { _local2 = new TextField(); }; if (!_local3){ _local3 = new Dictionary(true); }; _local3[_local2] = 1; textFields[_arg1] = _local3; }; return (_local2); } public static function getInstance():ITextFieldFactory{ if (!instance){ instance = new (TextFieldFactory); }; return (instance); } } }//package mx.core
Section 278
//FlexEvent (mx.events.FlexEvent) package mx.events { import mx.core.*; import flash.events.*; public class FlexEvent extends Event { public static const ADD:String = "add"; public static const TRANSFORM_CHANGE:String = "transformChange"; public static const INIT_COMPLETE:String = "initComplete"; public static const REMOVE:String = "remove"; public static const BUTTON_DOWN:String = "buttonDown"; public static const EXIT_STATE:String = "exitState"; public static const CREATION_COMPLETE:String = "creationComplete"; public static const REPEAT:String = "repeat"; public static const LOADING:String = "loading"; public static const REPEAT_START:String = "repeatStart"; public static const INITIALIZE:String = "initialize"; public static const ENTER_STATE:String = "enterState"; public static const URL_CHANGED:String = "urlChanged"; public static const REPEAT_END:String = "repeatEnd"; mx_internal static const VERSION:String = "3.0.0.0"; public static const HIDE:String = "hide"; public static const ENTER:String = "enter"; public static const PRELOADER_DONE:String = "preloaderDone"; public static const CURSOR_UPDATE:String = "cursorUpdate"; public static const PREINITIALIZE:String = "preinitialize"; public static const INVALID:String = "invalid"; public static const IDLE:String = "idle"; public static const VALID:String = "valid"; public static const DATA_CHANGE:String = "dataChange"; public static const APPLICATION_COMPLETE:String = "applicationComplete"; public static const VALUE_COMMIT:String = "valueCommit"; public static const UPDATE_COMPLETE:String = "updateComplete"; public static const INIT_PROGRESS:String = "initProgress"; public static const SHOW:String = "show"; public function FlexEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new FlexEvent(type, bubbles, cancelable)); } } }//package mx.events
Section 279
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import mx.core.*; import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.0.0.0"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 280
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import mx.core.*; import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 281
//RSLEvent (mx.events.RSLEvent) package mx.events { import mx.core.*; import flash.events.*; import flash.net.*; public class RSLEvent extends ProgressEvent { public var errorText:String; public var rslIndex:int; public var rslTotal:int; public var url:URLRequest; public static const RSL_PROGRESS:String = "rslProgress"; public static const RSL_ERROR:String = "rslError"; mx_internal static const VERSION:String = "3.0.0.0"; public static const RSL_COMPLETE:String = "rslComplete"; public function RSLEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:int=-1, _arg8:URLRequest=null, _arg9:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.rslIndex = _arg6; this.rslTotal = _arg7; this.url = _arg8; this.errorText = _arg9; } override public function clone():Event{ return (new RSLEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, rslIndex, rslTotal, url, errorText)); } } }//package mx.events
Section 282
//StyleEvent (mx.events.StyleEvent) package mx.events { import mx.core.*; import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 283
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import flash.geom.*; import mx.core.*; import mx.utils.*; import flash.filters.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.0.0.0"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 284
//RoundedRectangle (mx.graphics.RoundedRectangle) package mx.graphics { import flash.geom.*; import mx.core.*; public class RoundedRectangle extends Rectangle { public var cornerRadius:Number;// = 0 mx_internal static const VERSION:String = "3.0.0.0"; public function RoundedRectangle(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ super(_arg1, _arg2, _arg3, _arg4); this.cornerRadius = _arg5; } } }//package mx.graphics
Section 285
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 286
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 287
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.display.*; import flash.events.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 288
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 289
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.display.*; import flash.geom.*; import mx.core.*; import flash.text.*; import flash.events.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function get toolTipChildren():IChildList; function set focusPane(_arg1:Sprite):void; function isTopLevel():Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function removeFocusManager(_arg1:IFocusManagerContainer):void; function get document():Object; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; } }//package mx.managers
Section 290
//SystemChildrenList (mx.managers.SystemChildrenList) package mx.managers { import flash.display.*; import flash.geom.*; import mx.core.*; public class SystemChildrenList implements IChildList { private var lowerBoundReference:QName; private var upperBoundReference:QName; private var owner:SystemManager; mx_internal static const VERSION:String = "3.0.0.0"; public function SystemChildrenList(_arg1:SystemManager, _arg2:QName, _arg3:QName){ this.owner = _arg1; this.lowerBoundReference = _arg2; this.upperBoundReference = _arg3; } public function getChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = owner.mx_internal::rawChildren_getChildAt((owner[lowerBoundReference] + _arg1)); return (_local2); } public function getChildByName(_arg1:String):DisplayObject{ return (owner.mx_internal::rawChildren_getChildByName(_arg1)); } public function removeChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = owner.mx_internal::rawChildren_removeChildAt((_arg1 + owner[lowerBoundReference])); var _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; return (_local2); } public function getChildIndex(_arg1:DisplayObject):int{ var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1); _local2 = (_local2 - owner[lowerBoundReference]); return (_local2); } public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ var _local3 = owner; _local3.mx_internal::rawChildren_addChildAt(_arg1, (owner[lowerBoundReference] + _arg2)); _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] + 1); _local3[_local4] = _local5; return (_arg1); } public function getObjectsUnderPoint(_arg1:Point):Array{ return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1)); } public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ var _local3 = owner; _local3.mx_internal::rawChildren_setChildIndex(_arg1, (owner[lowerBoundReference] + _arg2)); } public function get numChildren():int{ return ((owner[upperBoundReference] - owner[lowerBoundReference])); } public function contains(_arg1:DisplayObject):Boolean{ var _local2:int; if (owner.mx_internal::rawChildren_contains(_arg1)){ while (_arg1.parent != owner) { _arg1 = _arg1.parent; }; _local2 = owner.mx_internal::rawChildren_getChildIndex(_arg1); if ((((_local2 >= owner[lowerBoundReference])) && ((_local2 < owner[upperBoundReference])))){ return (true); }; }; return (false); } public function removeChild(_arg1:DisplayObject):DisplayObject{ var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1); if ((((owner[lowerBoundReference] <= _local2)) && ((_local2 < owner[upperBoundReference])))){ var _local3 = owner; _local3.mx_internal::rawChildren_removeChild(_arg1); _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; }; return (_arg1); } public function addChild(_arg1:DisplayObject):DisplayObject{ var _local2 = owner; _local2.mx_internal::rawChildren_addChildAt(_arg1, owner[upperBoundReference]); _local2 = owner; var _local3 = upperBoundReference; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; return (_arg1); } } }//package mx.managers
Section 291
//SystemManager (mx.managers.SystemManager) package mx.managers { import flash.display.*; import flash.geom.*; import mx.core.*; import flash.text.*; import flash.events.*; import mx.events.*; import mx.resources.*; import flash.system.*; import mx.styles.*; import flash.utils.*; import mx.preloaders.*; import mx.messaging.config.*; public class SystemManager extends MovieClip implements IChildList, IFlexDisplayObject, IFlexModuleFactory, ISystemManager { mx_internal var nestLevel:int;// = 0 private var forms:Array; private var mouseCatcher:Sprite; private var _height:Number; private var preloader:Preloader; private var _document:Object; private var _topLevelSystemManager:ISystemManager; private var _toolTipIndex:int;// = 0 private var _rawChildren:SystemRawChildrenList; private var _explicitHeight:Number; private var _toolTipChildren:SystemChildrenList; private var form:IFocusManagerContainer; private var _width:Number; private var initialized:Boolean;// = false private var _focusPane:Sprite; private var _fontList:Object;// = null private var isStageRoot:Boolean;// = true private var _popUpChildren:SystemChildrenList; private var rslSizes:Array;// = null private var _topMostIndex:int;// = 0 private var nextFrameTimer:Timer;// = null private var topLevel:Boolean;// = true private var _cursorIndex:int;// = 0 mx_internal var _mouseX; mx_internal var _mouseY; private var _numModalWindows:int;// = 0 private var _screen:Rectangle; mx_internal var idleCounter:int;// = 0 private var _cursorChildren:SystemChildrenList; private var initCallbackFunctions:Array; private var _noTopMostIndex:int;// = 0 private var _applicationIndex:int;// = 1 private var idleTimer:Timer; private var doneExecutingInitCallbacks:Boolean;// = false private var _explicitWidth:Number; mx_internal var topLevelWindow:IUIComponent; private static const IDLE_THRESHOLD:Number = 1000; private static const IDLE_INTERVAL:Number = 100; mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var lastSystemManager:SystemManager; mx_internal static var allSystemManagers:Dictionary = new Dictionary(true); public function SystemManager(){ initCallbackFunctions = []; forms = []; super(); if (stage){ stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; }; if ((((SystemManagerGlobals.topLevelSystemManagers.length > 0)) && (!(stage)))){ topLevel = false; }; if (!stage){ isStageRoot = false; }; if (topLevel){ SystemManagerGlobals.topLevelSystemManagers.push(this); }; lastSystemManager = this; var _local1:Array = info()["compiledLocales"]; ResourceBundle.locale = (((!((_local1 == null))) && ((_local1.length > 0)))) ? _local1[0] : "en_US"; executeCallbacks(); stop(); if (((topLevel) && (!((currentFrame == 1))))){ throw (new Error((("The SystemManager constructor was called when the currentFrame was at " + currentFrame) + " Please add this SWF to bug 129782."))); }; if (((root) && (root.loaderInfo))){ root.loaderInfo.addEventListener(Event.INIT, initHandler); }; } mx_internal function addingChild(_arg1:DisplayObject):void{ var _local4:DisplayObjectContainer; var _local2 = 1; if (!topLevel){ _local4 = parent.parent; while (_local4) { if ((_local4 is ILayoutManagerClient)){ _local2 = (ILayoutManagerClient(_local4).nestLevel + 1); break; }; _local4 = _local4.parent; }; }; nestLevel = _local2; if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).systemManager = this; }; var _local3:Class = Class(getDefinitionByName("mx.core.UIComponent")); if ((((_arg1 is IUIComponent)) && (!(IUIComponent(_arg1).document)))){ IUIComponent(_arg1).document = document; }; if ((_arg1 is ILayoutManagerClient)){ ILayoutManagerClient(_arg1).nestLevel = (nestLevel + 1); }; if ((_arg1 is InteractiveObject)){ if (doubleClickEnabled){ InteractiveObject(_arg1).doubleClickEnabled = true; }; }; if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).parentChanged(this); }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).regenerateStyleCache(true); }; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleChanged(null); }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).notifyStyleChangeInChildren(null, true); }; if (((_local3) && ((_arg1 is _local3)))){ _local3(_arg1).initThemeColor(); }; if (((_local3) && ((_arg1 is _local3)))){ _local3(_arg1).stylesInitialized(); }; } private function idleTimer_timerHandler(_arg1:TimerEvent):void{ idleCounter++; if ((idleCounter * IDLE_INTERVAL) > IDLE_THRESHOLD){ dispatchEvent(new FlexEvent(FlexEvent.IDLE)); }; } public function getExplicitOrMeasuredHeight():Number{ return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight); } mx_internal function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ var _local6:IStyleClient; var _local3:Boolean; var _local4:int = rawChildren.numChildren; var _local5:int; while (_local5 < _local4) { _local6 = (rawChildren.getChildAt(_local5) as IStyleClient); if (_local6){ _local6.styleChanged(_arg1); _local6.notifyStyleChangeInChildren(_arg1, _arg2); }; if (isTopLevelWindow(DisplayObject(_local6))){ _local3 = true; }; _local4 = rawChildren.numChildren; _local5++; }; if (((!(_local3)) && ((topLevelWindow is IStyleClient)))){ IStyleClient(topLevelWindow).styleChanged(_arg1); IStyleClient(topLevelWindow).notifyStyleChangeInChildren(_arg1, _arg2); }; } mx_internal function rawChildren_getObjectsUnderPoint(_arg1:Point):Array{ return (super.getObjectsUnderPoint(_arg1)); } private function initHandler(_arg1:Event):void{ allSystemManagers[this] = this.loaderInfo.url; root.loaderInfo.removeEventListener(Event.INIT, initHandler); var _local2:int = ((totalFrames)==1) ? 0 : 1; addFrameScript(_local2, docFrameHandler); var _local3:int = (_local2 + 1); while (_local3 < totalFrames) { addFrameScript(_local3, extraFrameHandler); _local3++; }; initialize(); } override public function contains(_arg1:DisplayObject):Boolean{ var _local2:int; var _local3:int; var _local4:DisplayObject; if (super.contains(_arg1)){ if (_arg1.parent == this){ _local2 = super.getChildIndex(_arg1); if (_local2 < noTopMostIndex){ return (true); }; } else { _local3 = 0; while (_local3 < noTopMostIndex) { _local4 = super.getChildAt(_local3); if ((_local4 is IRawChildrenContainer)){ if (IRawChildrenContainer(_local4).rawChildren.contains(_arg1)){ return (true); }; }; if ((_local4 is DisplayObjectContainer)){ if (DisplayObjectContainer(_local4).contains(_arg1)){ return (true); }; }; _local3++; }; }; }; return (false); } public function getDefinitionByName(_arg1:String):Object{ var _local3:Object; var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : (info()["currentDomain"] as ApplicationDomain); if (_local2.hasDefinition(_arg1)){ _local3 = _local2.getDefinition(_arg1); }; return (_local3); } public function get embeddedFontList():Object{ var _local1:Object; var _local2:String; var _local3:Object; if (_fontList == null){ _fontList = {}; _local1 = info()["fonts"]; for (_local2 in _local1) { _fontList[_local2] = _local1[_local2]; }; if (((!(topLevel)) && (_topLevelSystemManager))){ _local3 = _topLevelSystemManager.embeddedFontList; for (_local2 in _local3) { _fontList[_local2] = _local3[_local2]; }; }; }; return (_fontList); } mx_internal function set cursorIndex(_arg1:int):void{ var _local2:int = (_arg1 - _cursorIndex); _cursorIndex = _arg1; } public function set document(_arg1:Object):void{ _document = _arg1; } override public function getChildAt(_arg1:int):DisplayObject{ return (super.getChildAt((applicationIndex + _arg1))); } public function get rawChildren():IChildList{ if (!_rawChildren){ _rawChildren = new SystemRawChildrenList(this); }; return (_rawChildren); } override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if ((((_arg1 == FlexEvent.IDLE)) && (!(idleTimer)))){ idleTimer = new Timer(IDLE_INTERVAL); idleTimer.addEventListener(TimerEvent.TIMER, idleTimer_timerHandler); idleTimer.start(); addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true); addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, true); }; super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function removeFocusManager(_arg1:IFocusManagerContainer):void{ var _local2:int = forms.length; var _local3:int; while (_local3 < _local2) { if (forms[_local3] == _arg1){ if (form == _arg1){ deactivate(_arg1); }; forms.splice(_local3, 1); return; }; _local3++; }; } private function mouseMoveHandler(_arg1:MouseEvent):void{ idleCounter = 0; } public function get focusPane():Sprite{ return (_focusPane); } override public function get mouseX():Number{ if (_mouseX === undefined){ return (super.mouseX); }; return (_mouseX); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:int; var _local3:DisplayObject; var _local4:Boolean; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:IChildList; idleCounter = 0; if (numModalWindows == 0){ if (forms.length > 1){ _local2 = forms.length; _local3 = DisplayObject(_arg1.target); _local4 = document.rawChildren.contains(_local3); while (_local3) { _local5 = 0; while (_local5 < _local2) { if (forms[_local5] == _local3){ _local6 = 0; if (((!((_local3 == form))) && ((_local3 is IFocusManagerContainer)))){ activate(IFocusManagerContainer(_local3)); }; if (popUpChildren.contains(_local3)){ _local9 = popUpChildren; } else { _local9 = this; }; _local7 = _local9.getChildIndex(_local3); _local8 = _local7; _local2 = forms.length; _local6 = 0; while (_local6 < _local2) { if (_local9.contains(forms[_local6])){ if (_local9.getChildIndex(forms[_local6]) > _local7){ _local8 = Math.max(_local9.getChildIndex(forms[_local6]), _local8); }; }; _local6++; }; if ((((_local8 > _local7)) && (!(_local4)))){ _local9.setChildIndex(_local3, _local8); }; return; }; _local5++; }; _local3 = _local3.parent; }; }; }; } public function get screen():Rectangle{ if (!_screen){ Stage_resizeHandler(); }; return (_screen); } mx_internal function set topMostIndex(_arg1:int):void{ var _local2:int = (_arg1 - _topMostIndex); _topMostIndex = _arg1; toolTipIndex = (toolTipIndex + _local2); } mx_internal function docFrameHandler(_arg1:Event=null):void{ var _local2:TextFieldFactory; var _local4:int; var _local5:int; var _local6:Class; Singleton.registerClass("mx.managers::IBrowserManager", Class(getDefinitionByName("mx.managers::BrowserManagerImpl"))); Singleton.registerClass("mx.managers::ICursorManager", Class(getDefinitionByName("mx.managers::CursorManagerImpl"))); Singleton.registerClass("mx.managers::IHistoryManager", Class(getDefinitionByName("mx.managers::HistoryManagerImpl"))); Singleton.registerClass("mx.managers::ILayoutManager", Class(getDefinitionByName("mx.managers::LayoutManager"))); Singleton.registerClass("mx.managers::IPopUpManager", Class(getDefinitionByName("mx.managers::PopUpManagerImpl"))); Singleton.registerClass("mx.managers::IToolTipManager2", Class(getDefinitionByName("mx.managers::ToolTipManagerImpl"))); if (Capabilities.playerType == "Desktop"){ Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::NativeDragManagerImpl"))); if (Singleton.getClass("mx.managers::IDragManager") == null){ Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl"))); }; } else { Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl"))); }; Singleton.registerClass("mx.core::ITextFieldFactory", Class(getDefinitionByName("mx.core::TextFieldFactory"))); executeCallbacks(); doneExecutingInitCallbacks = true; var _local3:Array = info()["mixins"]; if (((_local3) && ((_local3.length > 0)))){ _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local6 = Class(getDefinitionByName(_local3[_local5])); var _local7 = _local6; _local7["init"](this); _local5++; }; }; installCompiledResourceBundles(); initializeTopLevelWindow(null); deferredNextFrame(); } private function Stage_resizeHandler(_arg1:Event=null):void{ var _local2:Number = stage.stageWidth; var _local3:Number = stage.stageHeight; var _local4:Number = loaderInfo.width; var _local5:Number = loaderInfo.height; var _local6:Number = ((_local4 - _local2) / 2); var _local7:Number = ((_local5 - _local3) / 2); var _local8:String = stage.align; if (_local8 == StageAlign.TOP){ _local7 = 0; } else { if (_local8 == StageAlign.BOTTOM){ _local7 = (_local5 - _local3); } else { if (_local8 == StageAlign.LEFT){ _local6 = 0; } else { if (_local8 == StageAlign.RIGHT){ _local6 = (_local4 - _local2); } else { if ((((_local8 == StageAlign.TOP_LEFT)) || ((_local8 == "LT")))){ _local7 = 0; _local6 = 0; } else { if (_local8 == StageAlign.TOP_RIGHT){ _local7 = 0; _local6 = (_local4 - _local2); } else { if (_local8 == StageAlign.BOTTOM_LEFT){ _local7 = (_local5 - _local3); _local6 = 0; } else { if (_local8 == StageAlign.BOTTOM_RIGHT){ _local7 = (_local5 - _local3); _local6 = (_local4 - _local2); }; }; }; }; }; }; }; }; if (!_screen){ _screen = new Rectangle(); }; _screen.x = _local6; _screen.y = _local7; _screen.width = _local2; _screen.height = _local3; if (isStageRoot){ _width = stage.stageWidth; _height = stage.stageHeight; }; if (_arg1){ resizeMouseCatcher(); dispatchEvent(_arg1); }; } public function get explicitHeight():Number{ return (_explicitHeight); } public function get preloaderBackgroundSize():String{ return (info()["backgroundSize"]); } public function isTopLevel():Boolean{ return (topLevel); } override public function get mouseY():Number{ if (_mouseY === undefined){ return (super.mouseY); }; return (_mouseY); } public function getExplicitOrMeasuredWidth():Number{ return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth); } public function deactivate(_arg1:IFocusManagerContainer):void{ var _local2:IFocusManagerContainer; var _local3:int; var _local4:int; var _local5:IFocusManagerContainer; if (form){ if ((((form == _arg1)) && ((forms.length > 1)))){ form.focusManager.deactivate(); _local3 = forms.length; _local4 = 0; while (_local4 < _local3) { _local5 = forms[_local4]; if (_local5 == _arg1){ _local4 = (_local4 + 1); while (_local4 < _local3) { _local5 = forms[_local4]; if ((((Sprite(_local5).visible == true)) && (IUIComponent(_local5).enabled))){ _local2 = _local5; }; _local4++; }; form = _local2; break; } else { if (((Sprite(_local5).visible) && (IUIComponent(_local5).enabled))){ _local2 = _local5; }; }; _local4++; }; if (form){ form.focusManager.activate(); }; }; }; } override public function getChildByName(_arg1:String):DisplayObject{ return (super.getChildByName(_arg1)); } override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ noTopMostIndex++; return (rawChildren_addChildAt(_arg1, (applicationIndex + _arg2))); } public function get measuredWidth():Number{ return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredWidth() : loaderInfo.width); } public function info():Object{ return ({}); } mx_internal function get toolTipIndex():int{ return (_toolTipIndex); } public function setActualSize(_arg1:Number, _arg2:Number):void{ if (isStageRoot){ return; }; _width = _arg1; _height = _arg2; if (mouseCatcher){ mouseCatcher.width = _arg1; mouseCatcher.height = _arg2; }; dispatchEvent(new Event(Event.RESIZE)); } public function set focusPane(_arg1:Sprite):void{ if (_arg1){ addChild(_arg1); _arg1.x = 0; _arg1.y = 0; _arg1.scrollRect = null; _focusPane = _arg1; } else { removeChild(_focusPane); _focusPane = null; }; } mx_internal function set applicationIndex(_arg1:int):void{ _applicationIndex = _arg1; } private function executeCallbacks():void{ var _local1:Function; if (!parent){ return; }; while (initCallbackFunctions.length > 0) { _local1 = initCallbackFunctions.shift(); _local1(this); }; } public function get popUpChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.popUpChildren); }; if (!_popUpChildren){ _popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex")); }; return (_popUpChildren); } public function set explicitHeight(_arg1:Number):void{ _explicitHeight = _arg1; } override public function removeChild(_arg1:DisplayObject):DisplayObject{ noTopMostIndex--; return (rawChildren_removeChild(_arg1)); } override public function addChild(_arg1:DisplayObject):DisplayObject{ noTopMostIndex++; return (rawChildren_addChildAt(_arg1, (noTopMostIndex - 1))); } public function create(... _args):Object{ var _local4:String; var _local5:int; var _local6:int; var _local2:String = info()["mainClassName"]; if (_local2 == null){ _local4 = loaderInfo.loaderURL; _local5 = _local4.lastIndexOf("."); _local6 = _local4.lastIndexOf("/"); _local2 = _local4.substring((_local6 + 1), _local5); }; var _local3:Class = Class(getDefinitionByName(_local2)); return ((_local3) ? new (_local3) : null); } override public function get stage():Stage{ var _local1:Stage = super.stage; if (_local1){ return (_local1); }; if (((!(topLevel)) && (_topLevelSystemManager))){ return (_topLevelSystemManager.stage); }; return (null); } mx_internal function rawChildren_removeChild(_arg1:DisplayObject):DisplayObject{ removingChild(_arg1); super.removeChild(_arg1); childRemoved(_arg1); return (_arg1); } final mx_internal function get $numChildren():int{ return (super.numChildren); } public function get toolTipChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.toolTipChildren); }; if (!_toolTipChildren){ _toolTipChildren = new SystemChildrenList(this, new QName(mx_internal, "topMostIndex"), new QName(mx_internal, "toolTipIndex")); }; return (_toolTipChildren); } override public function getChildIndex(_arg1:DisplayObject):int{ return ((super.getChildIndex(_arg1) - applicationIndex)); } private function mouseUpHandler(_arg1:MouseEvent):void{ idleCounter = 0; } mx_internal function rawChildren_getChildIndex(_arg1:DisplayObject):int{ return (super.getChildIndex(_arg1)); } public function activate(_arg1:IFocusManagerContainer):void{ var _local2:IFocusManagerContainer; if (form){ if (((!((form == _arg1))) && ((forms.length > 1)))){ _local2 = form; _local2.focusManager.deactivate(); }; }; form = _arg1; if (_arg1.focusManager){ _arg1.focusManager.activate(); }; } private function deferredNextFrame():void{ if ((currentFrame + 1) > totalFrames){ return; }; if ((currentFrame + 1) <= framesLoaded){ nextFrame(); } else { nextFrameTimer = new Timer(100); nextFrameTimer.addEventListener(TimerEvent.TIMER, nextFrameTimerHandler); nextFrameTimer.start(); }; } mx_internal function get cursorIndex():int{ return (_cursorIndex); } mx_internal function rawChildren_contains(_arg1:DisplayObject):Boolean{ return (super.contains(_arg1)); } override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ super.setChildIndex(_arg1, (applicationIndex + _arg2)); } public function get document():Object{ return (_document); } private function resizeMouseCatcher():void{ var _local1:Graphics; if (mouseCatcher){ _local1 = mouseCatcher.graphics; _local1.clear(); _local1.beginFill(0, 0); _local1.drawRect(0, 0, stage.stageWidth, stage.stageHeight); _local1.endFill(); }; } override public function get height():Number{ return (_height); } mx_internal function rawChildren_getChildAt(_arg1:int):DisplayObject{ return (super.getChildAt(_arg1)); } mx_internal function set noTopMostIndex(_arg1:int):void{ var _local2:int = (_arg1 - _noTopMostIndex); _noTopMostIndex = _arg1; topMostIndex = (topMostIndex + _local2); } override public function getObjectsUnderPoint(_arg1:Point):Array{ var _local5:DisplayObject; var _local6:Array; var _local2:Array = []; var _local3:int = topMostIndex; var _local4:int; while (_local4 < _local3) { _local5 = super.getChildAt(_local4); if ((_local5 is DisplayObjectContainer)){ _local6 = DisplayObjectContainer(_local5).getObjectsUnderPoint(_arg1); if (_local6){ _local2 = _local2.concat(_local6); }; }; _local4++; }; return (_local2); } mx_internal function get topMostIndex():int{ return (_topMostIndex); } mx_internal function regenerateStyleCache(_arg1:Boolean):void{ var _local5:IStyleClient; var _local2:Boolean; var _local3:int = rawChildren.numChildren; var _local4:int; while (_local4 < _local3) { _local5 = (rawChildren.getChildAt(_local4) as IStyleClient); if (_local5){ _local5.regenerateStyleCache(_arg1); }; if (isTopLevelWindow(DisplayObject(_local5))){ _local2 = true; }; _local3 = rawChildren.numChildren; _local4++; }; if (((!(_local2)) && ((topLevelWindow is IStyleClient)))){ IStyleClient(topLevelWindow).regenerateStyleCache(_arg1); }; } public function addFocusManager(_arg1:IFocusManagerContainer):void{ forms.push(_arg1); } public function isFontFaceEmbedded(_arg1:TextFormat):Boolean{ var _local6:Font; var _local7:String; var _local2:String = _arg1.font; var _local3:Array = Font.enumerateFonts(); var _local4:int; while (_local4 < _local3.length) { _local6 = Font(_local3[_local4]); if (_local6.fontName == _local2){ _local7 = "regular"; if (((_arg1.bold) && (_arg1.italic))){ _local7 = "boldItalic"; } else { if (_arg1.bold){ _local7 = "bold"; } else { if (_arg1.italic){ _local7 = "italic"; }; }; }; if (_local6.fontStyle == _local7){ return (true); }; }; _local4++; }; if (((((!(_local2)) || (!(embeddedFontList)))) || (!(embeddedFontList[_local2])))){ return (false); }; var _local5:Object = embeddedFontList[_local2]; return (!(((((((_arg1.bold) && (!(_local5.bold)))) || (((_arg1.italic) && (!(_local5.italic)))))) || (((((!(_arg1.bold)) && (!(_arg1.italic)))) && (!(_local5.regular))))))); } mx_internal function rawChildren_setChildIndex(_arg1:DisplayObject, _arg2:int):void{ super.setChildIndex(_arg1, _arg2); } mx_internal function childAdded(_arg1:DisplayObject):void{ _arg1.dispatchEvent(new FlexEvent(FlexEvent.ADD)); if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).initialize(); }; } override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_arg1 == FlexEvent.IDLE){ super.removeEventListener(_arg1, _arg2, _arg3); if (((!(hasEventListener(FlexEvent.IDLE))) && (idleTimer))){ idleTimer.stop(); idleTimer = null; removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler); removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); }; } else { super.removeEventListener(_arg1, _arg2, _arg3); }; } private function extraFrameHandler(_arg1:Event=null):void{ var _local3:Class; var _local2:Object = info()["frames"]; if (((_local2) && (_local2[currentLabel]))){ _local3 = Class(getDefinitionByName(_local2[currentLabel])); var _local4 = _local3; _local4["frame"](this); }; deferredNextFrame(); } public function get application():IUIComponent{ return (IUIComponent(_document)); } override public function removeChildAt(_arg1:int):DisplayObject{ noTopMostIndex--; return (rawChildren_removeChildAt((applicationIndex + _arg1))); } mx_internal function rawChildren_removeChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = super.getChildAt(_arg1); removingChild(_local2); super.removeChildAt(_arg1); childRemoved(_local2); return (_local2); } private function installCompiledResourceBundles():void{ var _local1:Object = this.info(); var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : _local1["currentDomain"]; var _local3:Array = _local1["compiledLocales"]; var _local4:Array = _local1["compiledResourceBundleNames"]; var _local5:IResourceManager = ResourceManager.getInstance(); _local5.installCompiledResourceBundles(_local2, _local3, _local4); if (!_local5.localeChain){ _local5.localeChain = _local3; }; } mx_internal function removingChild(_arg1:DisplayObject):void{ _arg1.dispatchEvent(new FlexEvent(FlexEvent.REMOVE)); } mx_internal function get applicationIndex():int{ return (_applicationIndex); } mx_internal function set toolTipIndex(_arg1:int):void{ var _local2:int = (_arg1 - _toolTipIndex); _toolTipIndex = _arg1; cursorIndex = (cursorIndex + _local2); } public function get cursorChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.cursorChildren); }; if (!_cursorChildren){ _cursorChildren = new SystemChildrenList(this, new QName(mx_internal, "toolTipIndex"), new QName(mx_internal, "cursorIndex")); }; return (_cursorChildren); } public function get preloaderBackgroundImage():Object{ return (info()["backgroundImage"]); } public function set numModalWindows(_arg1:int):void{ _numModalWindows = _arg1; } public function get preloaderBackgroundAlpha():Number{ return (info()["backgroundAlpha"]); } mx_internal function rawChildren_getChildByName(_arg1:String):DisplayObject{ return (super.getChildByName(_arg1)); } private function preloader_preloaderDoneHandler(_arg1:Event):void{ var _local2:IUIComponent = topLevelWindow; preloader.removeEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler); _popUpChildren.removeChild(preloader); preloader = null; mouseCatcher = new FlexSprite(); mouseCatcher.name = "mouseCatcher"; noTopMostIndex++; super.addChildAt(mouseCatcher, 0); resizeMouseCatcher(); if (!topLevel){ mouseCatcher.visible = false; mask = mouseCatcher; }; noTopMostIndex++; super.addChildAt(DisplayObject(_local2), 1); _local2.dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE)); dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE)); } public function get preloaderBackgroundColor():uint{ var _local1:* = info()["backgroundColor"]; if (_local1 == undefined){ return (StyleManager.NOT_A_COLOR); }; return (StyleManager.getColorName(_local1)); } public function get topLevelSystemManager():ISystemManager{ if (topLevel){ return (this); }; return (_topLevelSystemManager); } mx_internal function initialize():void{ var _local6:int; var _local7:int; var _local9:EmbeddedFontRegistry; var _local13:Class; var _local14:Object; var _local15:RSLItem; if (isStageRoot){ _width = stage.stageWidth; _height = stage.stageHeight; } else { _width = loaderInfo.width; _height = loaderInfo.height; }; preloader = new Preloader(); preloader.addEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler); preloader.addEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler); if (!_popUpChildren){ _popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex")); }; _popUpChildren.addChild(preloader); var _local1:Array = info()["rsls"]; var _local2:Array = info()["cdRsls"]; var _local3:Boolean; if (info()["usePreloader"] != undefined){ _local3 = info()["usePreloader"]; }; var _local4:Class = (info()["preloader"] as Class); if (((_local3) && (!(_local4)))){ _local4 = DownloadProgressBar; }; var _local5:Array = []; if (((_local2) && ((_local2.length > 0)))){ _local13 = Class(getDefinitionByName("mx.core::CrossDomainRSLItem")); _local6 = _local2.length; _local7 = 0; while (_local7 < _local6) { _local14 = new _local13(_local2[_local7]["rsls"], _local2[_local7]["policyFiles"], _local2[_local7]["digests"], _local2[_local7]["types"], _local2[_local7]["isSigned"]); _local5.push(_local14); _local7++; }; }; if (((!((_local1 == null))) && ((_local1.length > 0)))){ _local6 = _local1.length; _local7 = 0; while (_local7 < _local6) { _local15 = new RSLItem(_local1[_local7].url); _local5.push(_local15); _local7++; }; }; Singleton.registerClass("mx.resources::IResourceManager", Class(getDefinitionByName("mx.resources::ResourceManagerImpl"))); var _local8:IResourceManager = ResourceManager.getInstance(); Singleton.registerClass("mx.core::IEmbeddedFontRegistry", Class(getDefinitionByName("mx.core::EmbeddedFontRegistry"))); Singleton.registerClass("mx.styles::IStyleManager", Class(getDefinitionByName("mx.styles::StyleManagerImpl"))); Singleton.registerClass("mx.styles::IStyleManager2", Class(getDefinitionByName("mx.styles::StyleManagerImpl"))); var _local10:String = loaderInfo.parameters["localeChain"]; if (((!((_local10 == null))) && (!((_local10 == ""))))){ _local8.localeChain = _local10.split(","); }; var _local11:String = loaderInfo.parameters["resourceModuleURLs"]; var _local12:Array = (_local11) ? _local11.split(",") : null; preloader.initialize(_local3, _local4, preloaderBackgroundColor, preloaderBackgroundAlpha, preloaderBackgroundImage, preloaderBackgroundSize, (isStageRoot) ? stage.stageWidth : loaderInfo.width, (isStageRoot) ? stage.stageHeight : loaderInfo.height, null, null, _local5, _local12); } private function appCreationCompleteHandler(_arg1:FlexEvent):void{ var _local2:DisplayObjectContainer; if (((!(topLevel)) && (parent))){ _local2 = parent.parent; while (_local2) { if ((_local2 is IInvalidating)){ IInvalidating(_local2).invalidateSize(); IInvalidating(_local2).invalidateDisplayList(); return; }; _local2 = _local2.parent; }; }; } public function get measuredHeight():Number{ return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredHeight() : loaderInfo.height); } mx_internal function rawChildren_addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ addingChild(_arg1); super.addChildAt(_arg1, _arg2); childAdded(_arg1); return (_arg1); } private function nextFrameTimerHandler(_arg1:TimerEvent):void{ if ((currentFrame + 1) <= framesLoaded){ nextFrame(); nextFrameTimer.removeEventListener(TimerEvent.TIMER, nextFrameTimerHandler); nextFrameTimer.reset(); }; } mx_internal function childRemoved(_arg1:DisplayObject):void{ if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).parentChanged(null); }; } mx_internal function get noTopMostIndex():int{ return (_noTopMostIndex); } override public function get numChildren():int{ return ((noTopMostIndex - applicationIndex)); } private function initializeTopLevelWindow(_arg1:Event):void{ var _local2:IUIComponent; var _local3:DisplayObjectContainer; initialized = true; if (!parent){ return; }; if (!topLevel){ _local3 = parent.parent; if (!_local3){ return; }; while (_local3) { if ((_local3 is IUIComponent)){ _topLevelSystemManager = IUIComponent(_local3).systemManager; break; }; _local3 = _local3.parent; }; }; addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, true); if (((topLevel) && (stage))){ stage.addEventListener(Event.RESIZE, Stage_resizeHandler, false, 0, true); }; _local2 = (topLevelWindow = IUIComponent(create())); document = _local2; if (document){ IEventDispatcher(_local2).addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); if (((topLevel) && (stage))){ LoaderConfig._url = loaderInfo.url; LoaderConfig._parameters = loaderInfo.parameters; _width = stage.stageWidth; _height = stage.stageHeight; IFlexDisplayObject(_local2).setActualSize(stage.stageWidth, stage.stageHeight); } else { IFlexDisplayObject(_local2).setActualSize(loaderInfo.width, loaderInfo.height); }; if (preloader){ preloader.registerApplication(_local2); }; addingChild(DisplayObject(_local2)); childAdded(DisplayObject(_local2)); } else { document = this; }; } public function get numModalWindows():int{ return (_numModalWindows); } public function isTopLevelWindow(_arg1:DisplayObject):Boolean{ return ((((_arg1 is IUIComponent)) && ((IUIComponent(_arg1) == topLevelWindow)))); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ } public function set explicitWidth(_arg1:Number):void{ _explicitWidth = _arg1; } private function preloader_initProgressHandler(_arg1:Event):void{ preloader.removeEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler); deferredNextFrame(); } public function get explicitWidth():Number{ return (_explicitWidth); } mx_internal function rawChildren_addChild(_arg1:DisplayObject):DisplayObject{ addingChild(_arg1); super.addChild(_arg1); childAdded(_arg1); return (_arg1); } public static function getSWFRoot(_arg1:Object):DisplayObject{ var p:*; var sm:ISystemManager; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for (p in allSystemManagers) { sm = (p as ISystemManager); domain = sm.loaderInfo.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return ((sm as DisplayObject)); }; } catch(e:Error) { }; }; return (null); } mx_internal static function registerInitCallback(_arg1:Function):void{ if (((!(allSystemManagers)) || (!(lastSystemManager)))){ return; }; var _local2:SystemManager = lastSystemManager; if (_local2.doneExecutingInitCallbacks){ _arg1(_local2); } else { _local2.initCallbackFunctions.push(_arg1); }; } } }//package mx.managers
Section 292
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var bootstrapLoaderInfoURL:String; } }//package mx.managers
Section 293
//SystemRawChildrenList (mx.managers.SystemRawChildrenList) package mx.managers { import flash.display.*; import flash.geom.*; import mx.core.*; public class SystemRawChildrenList implements IChildList { private var owner:SystemManager; mx_internal static const VERSION:String = "3.0.0.0"; public function SystemRawChildrenList(_arg1:SystemManager){ this.owner = _arg1; } public function getChildAt(_arg1:int):DisplayObject{ return (owner.mx_internal::rawChildren_getChildAt(_arg1)); } public function addChild(_arg1:DisplayObject):DisplayObject{ return (owner.mx_internal::rawChildren_addChild(_arg1)); } public function getChildIndex(_arg1:DisplayObject):int{ return (owner.mx_internal::rawChildren_getChildIndex(_arg1)); } public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ var _local3 = owner; _local3.mx_internal::rawChildren_setChildIndex(_arg1, _arg2); } public function getChildByName(_arg1:String):DisplayObject{ return (owner.mx_internal::rawChildren_getChildByName(_arg1)); } public function removeChildAt(_arg1:int):DisplayObject{ return (owner.mx_internal::rawChildren_removeChildAt(_arg1)); } public function get numChildren():int{ return (owner.mx_internal::$numChildren); } public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ return (owner.mx_internal::rawChildren_addChildAt(_arg1, _arg2)); } public function getObjectsUnderPoint(_arg1:Point):Array{ return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1)); } public function contains(_arg1:DisplayObject):Boolean{ return (owner.mx_internal::rawChildren_contains(_arg1)); } public function removeChild(_arg1:DisplayObject):DisplayObject{ return (owner.mx_internal::rawChildren_removeChild(_arg1)); } } }//package mx.managers
Section 294
//LoaderConfig (mx.messaging.config.LoaderConfig) package mx.messaging.config { import mx.core.*; public class LoaderConfig { mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var _url:String = null; mx_internal static var _parameters:Object; public static function get url():String{ return (_url); } public static function get parameters():Object{ return (_parameters); } } }//package mx.messaging.config
Section 295
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import mx.core.*; import flash.events.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 296
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.display.*; import mx.core.*; import flash.events.*; import mx.events.*; import flash.system.*; import flash.net.*; import flash.utils.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ var _local3:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local3 = new ModuleEvent(ModuleEvent.PROGRESS); _local3.bytesLoaded = info.size; _local3.bytesTotal = info.size; dispatchEvent(_local3); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_url.indexOf("published://") == 0){ return; }; var _local3:URLRequest = new URLRequest(_url); var _local4:LoaderContext = new LoaderContext(); _local4.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local4.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local4.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local3, _local4); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 297
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 298
//DownloadProgressBar (mx.preloaders.DownloadProgressBar) package mx.preloaders { import flash.display.*; import flash.geom.*; import mx.core.*; import flash.text.*; import flash.events.*; import mx.events.*; import flash.system.*; import mx.graphics.*; import flash.net.*; import flash.utils.*; public class DownloadProgressBar extends Sprite implements IPreloaderDisplay { protected var MINIMUM_DISPLAY_TIME:uint;// = 0 private var _barFrameRect:RoundedRectangle; private var _stageHeight:Number;// = 375 private var _stageWidth:Number;// = 500 private var _percentRect:Rectangle; private var _percentObj:TextField; private var _downloadingLabel:String;// = "Loading" private var _showProgressBar:Boolean;// = true private var _yOffset:Number;// = 20 private var _initProgressCount:uint;// = 0 private var _barSprite:Sprite; private var _visible:Boolean;// = false private var _barRect:RoundedRectangle; private var _showingDisplay:Boolean;// = false private var _backgroundSize:String;// = "" private var _initProgressTotal:uint;// = 12 private var _startedInit:Boolean;// = false private var _showLabel:Boolean;// = true private var _value:Number;// = 0 private var _labelRect:Rectangle; private var _backgroundImage:Object; private var _backgroundAlpha:Number;// = 1 private var _backgroundColor:uint; private var _startedLoading:Boolean;// = false private var _showPercentage:Boolean;// = false private var _barFrameSprite:Sprite; protected var DOWNLOAD_PERCENTAGE:uint;// = 60 private var _displayStartCount:uint;// = 0 private var _labelObj:TextField; private var _borderRect:RoundedRectangle; private var _maximum:Number;// = 0 private var _displayTime:int; private var _label:String;// = "" private var _preloader:Sprite; private var _xOffset:Number;// = 20 private var _startTime:int; mx_internal static const VERSION:String = "3.0.0.0"; private static var _initializingLabel:String = "Initializing"; public function DownloadProgressBar(){ _labelRect = labelRect; _percentRect = percentRect; _borderRect = borderRect; _barFrameRect = barFrameRect; _barRect = barRect; super(); } protected function getPercentLoaded(_arg1:Number, _arg2:Number):Number{ var _local3:Number; if ((((((((_arg1 == 0)) || ((_arg2 == 0)))) || (isNaN(_arg2)))) || (isNaN(_arg1)))){ return (0); }; _local3 = ((100 * _arg1) / _arg2); if (((isNaN(_local3)) || ((_local3 <= 0)))){ return (0); }; if (_local3 > 99){ return (99); }; return (Math.round(_local3)); } protected function get labelFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.color = 0x333333; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } private function calcScale():void{ var _local1:Number; if ((((stageWidth < 160)) || ((stageHeight < 120)))){ scaleX = 1; scaleY = 1; } else { if ((((stageWidth < 240)) || ((stageHeight < 150)))){ createChildren(); _local1 = Math.min((stageWidth / 240), (stageHeight / 150)); scaleX = _local1; scaleY = _local1; } else { createChildren(); }; }; } protected function get percentRect():Rectangle{ return (new Rectangle(108, 4, 34, 16)); } protected function set showLabel(_arg1:Boolean):void{ _showLabel = _arg1; draw(); } private function calcBackgroundSize():Number{ var _local2:int; var _local1:Number = NaN; if (backgroundSize){ _local2 = backgroundSize.indexOf("%"); if (_local2 != -1){ _local1 = Number(backgroundSize.substr(0, _local2)); }; }; return (_local1); } private function show():void{ _showingDisplay = true; calcScale(); draw(); _displayTime = getTimer(); } private function loadBackgroundImage(_arg1:Object):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var classOrString = _arg1; if (((classOrString) && ((classOrString as Class)))){ cls = Class(classOrString); initBackgroundImage(new (cls)); } else { if (((classOrString) && ((classOrString is String)))){ try { cls = Class(getDefinitionByName(String(classOrString))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loader_ioErrorHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(classOrString)), loaderContext); }; }; }; } protected function set showPercentage(_arg1:Boolean):void{ _showPercentage = _arg1; draw(); } protected function get barFrameRect():RoundedRectangle{ return (new RoundedRectangle(14, 40, 154, 4)); } private function loader_ioErrorHandler(_arg1:IOErrorEvent):void{ } protected function rslErrorHandler(_arg1:RSLEvent):void{ _preloader.removeEventListener(ProgressEvent.PROGRESS, progressHandler); _preloader.removeEventListener(Event.COMPLETE, completeHandler); _preloader.removeEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler); _preloader.removeEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler); _preloader.removeEventListener(RSLEvent.RSL_ERROR, rslErrorHandler); _preloader.removeEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler); _preloader.removeEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler); if (!_showingDisplay){ show(); _showingDisplay = true; }; label = ((("RSL Error " + (_arg1.rslIndex + 1)) + " of ") + _arg1.rslTotal); var _local2:ErrorField = new ErrorField(this.parent); _local2.show(_arg1.errorText); } protected function rslCompleteHandler(_arg1:RSLEvent):void{ label = ((("Loaded library " + _arg1.rslIndex) + " of ") + _arg1.rslTotal); } protected function get borderRect():RoundedRectangle{ return (new RoundedRectangle(0, 0, 182, 60, 4)); } protected function showDisplayForDownloading(_arg1:int, _arg2:ProgressEvent):Boolean{ return ((((_arg1 > 700)) && ((_arg2.bytesLoaded < (_arg2.bytesTotal / 2))))); } protected function createChildren():void{ var _local2:TextField; var _local3:TextField; var _local1:Graphics = graphics; if (backgroundColor != 4294967295){ _local1.beginFill(backgroundColor, backgroundAlpha); _local1.drawRect(0, 0, stageWidth, stageHeight); }; if (backgroundImage != null){ loadBackgroundImage(backgroundImage); }; _barFrameSprite = new Sprite(); _barSprite = new Sprite(); addChild(_barFrameSprite); addChild(_barSprite); _local1.beginFill(0xCCCCCC, 0.4); _local1.drawRoundRect(calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height, (_borderRect.cornerRadius * 2), (_borderRect.cornerRadius * 2)); _local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2))); _local1.endFill(); _local1.beginFill(0xCCCCCC, 0.4); _local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2))); _local1.endFill(); var _local4:Graphics = _barFrameSprite.graphics; var _local5:Matrix = new Matrix(); _local5.createGradientBox(_barFrameRect.width, _barFrameRect.height, (Math.PI / 2), calcX(_barFrameRect.x), calcY(_barFrameRect.y)); _local4.beginGradientFill(GradientType.LINEAR, [6054502, 11909306], [1, 1], [0, 0xFF], _local5); _local4.drawRoundRect(calcX(_barFrameRect.x), calcY(_barFrameRect.y), _barFrameRect.width, _barFrameRect.height, (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2)); _local4.drawRoundRect(calcX((_barFrameRect.x + 1)), calcY((_barFrameRect.y + 1)), (_barFrameRect.width - 2), (_barFrameRect.height - 2), (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2)); _local4.endFill(); _labelObj = new TextField(); _labelObj.x = calcX(_labelRect.x); _labelObj.y = calcY(_labelRect.y); _labelObj.width = _labelRect.width; _labelObj.height = _labelRect.height; _labelObj.selectable = false; _labelObj.defaultTextFormat = labelFormat; addChild(_labelObj); _percentObj = new TextField(); _percentObj.x = calcX(_percentRect.x); _percentObj.y = calcY(_percentRect.y); _percentObj.width = _percentRect.width; _percentObj.height = _percentRect.height; _percentObj.selectable = false; _percentObj.defaultTextFormat = percentFormat; addChild(_percentObj); var _local6:RectangularDropShadow = new RectangularDropShadow(); _local6.color = 0; _local6.angle = 90; _local6.alpha = 0.6; _local6.distance = 2; _local6.tlRadius = (_local6.trRadius = (_local6.blRadius = (_local6.brRadius = _borderRect.cornerRadius))); _local6.drawShadow(_local1, calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height); _local1.lineStyle(1, 0xFFFFFF, 0.3); _local1.moveTo((calcX(_borderRect.x) + _borderRect.cornerRadius), calcY(_borderRect.y)); _local1.lineTo(((calcX(_borderRect.x) - _borderRect.cornerRadius) + _borderRect.width), calcY(_borderRect.y)); } private function draw():void{ var _local1:Number; if (_startedLoading){ if (!_startedInit){ _local1 = Math.round(((getPercentLoaded(_value, _maximum) * DOWNLOAD_PERCENTAGE) / 100)); } else { _local1 = Math.round((((getPercentLoaded(_value, _maximum) * (100 - DOWNLOAD_PERCENTAGE)) / 100) + DOWNLOAD_PERCENTAGE)); }; } else { _local1 = getPercentLoaded(_value, _maximum); }; if (_labelObj){ _labelObj.text = _label; }; if (_percentObj){ if (!_showPercentage){ _percentObj.visible = false; _percentObj.text = ""; } else { _percentObj.text = (String(_local1) + "%"); }; }; if (((_barSprite) && (_barFrameSprite))){ if (!_showProgressBar){ _barSprite.visible = false; _barFrameSprite.visible = false; } else { drawProgressBar(_local1); }; }; } private function timerHandler(_arg1:Event=null):void{ dispatchEvent(new Event(Event.COMPLETE)); } private function hide():void{ } public function get backgroundSize():String{ return (_backgroundSize); } protected function center(_arg1:Number, _arg2:Number):void{ _xOffset = Math.floor(((_arg1 - _borderRect.width) / 2)); _yOffset = Math.floor(((_arg2 - _borderRect.height) / 2)); } protected function progressHandler(_arg1:ProgressEvent):void{ var _local2:uint = _arg1.bytesLoaded; var _local3:uint = _arg1.bytesTotal; var _local4:int = (getTimer() - _startTime); if (((_showingDisplay) || (showDisplayForDownloading(_local4, _arg1)))){ if (!_startedLoading){ show(); label = downloadingLabel; _startedLoading = true; }; setProgress(_arg1.bytesLoaded, _arg1.bytesTotal); }; } protected function initProgressHandler(_arg1:Event):void{ var _local3:Number; var _local2:int = (getTimer() - _startTime); _initProgressCount++; if (((!(_showingDisplay)) && (showDisplayForInit(_local2, _initProgressCount)))){ _displayStartCount = _initProgressCount; show(); } else { if (_showingDisplay){ if (!_startedInit){ _startedInit = true; label = initializingLabel; }; _local3 = ((100 * _initProgressCount) / (_initProgressTotal - _displayStartCount)); setProgress(_local3, 100); }; }; } protected function set downloadingLabel(_arg1:String):void{ _downloadingLabel = _arg1; } public function get stageWidth():Number{ return (_stageWidth); } protected function get showPercentage():Boolean{ return (_showPercentage); } override public function get visible():Boolean{ return (_visible); } public function set stageHeight(_arg1:Number):void{ _stageHeight = _arg1; } public function initialize():void{ _startTime = getTimer(); center(stageWidth, stageHeight); } protected function rslProgressHandler(_arg1:RSLEvent):void{ } protected function get barRect():RoundedRectangle{ return (new RoundedRectangle(14, 39, 154, 6, 0)); } protected function get percentFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.align = "right"; _local1.color = 0; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } public function set backgroundImage(_arg1:Object):void{ _backgroundImage = _arg1; } private function calcX(_arg1:Number):Number{ return ((_arg1 + _xOffset)); } private function calcY(_arg1:Number):Number{ return ((_arg1 + _yOffset)); } public function set backgroundAlpha(_arg1:Number):void{ _backgroundAlpha = _arg1; } private function initCompleteHandler(_arg1:Event):void{ var _local3:Timer; var _local2:int = (getTimer() - _displayTime); if (((_showingDisplay) && ((_local2 < MINIMUM_DISPLAY_TIME)))){ _local3 = new Timer((MINIMUM_DISPLAY_TIME - _local2), 1); _local3.addEventListener(TimerEvent.TIMER, timerHandler); _local3.start(); } else { timerHandler(); }; } public function set backgroundColor(_arg1:uint):void{ _backgroundColor = _arg1; } private function initBackgroundImage(_arg1:DisplayObject):void{ var _local7:Number; var _local8:Number; var _local9:Number; addChildAt(_arg1, 0); var _local2:Number = _arg1.width; var _local3:Number = _arg1.height; var _local4:Number = calcBackgroundSize(); if (isNaN(_local4)){ _local7 = 1; _local8 = 1; } else { _local9 = (_local4 * 0.01); _local7 = ((_local9 * stageWidth) / _local2); _local8 = ((_local9 * stageHeight) / _local3); }; _arg1.scaleX = _local7; _arg1.scaleY = _local8; var _local5:Number = Math.round((0.5 * (stageWidth - (_local2 * _local7)))); var _local6:Number = Math.round((0.5 * (stageHeight - (_local3 * _local8)))); _arg1.x = _local5; _arg1.y = _local6; if (!isNaN(backgroundAlpha)){ _arg1.alpha = backgroundAlpha; }; } public function set backgroundSize(_arg1:String):void{ _backgroundSize = _arg1; } protected function showDisplayForInit(_arg1:int, _arg2:int):Boolean{ return ((((_arg1 > 300)) && ((_arg2 == 2)))); } protected function get downloadingLabel():String{ return (_downloadingLabel); } private function loader_completeHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); } protected function setProgress(_arg1:Number, _arg2:Number):void{ if (((((((!(isNaN(_arg1))) && (!(isNaN(_arg2))))) && ((_arg1 >= 0)))) && ((_arg2 > 0)))){ _value = Number(_arg1); _maximum = Number(_arg2); draw(); }; } public function get stageHeight():Number{ return (_stageHeight); } public function get backgroundImage():Object{ return (_backgroundImage); } public function get backgroundAlpha():Number{ if (!isNaN(_backgroundAlpha)){ return (_backgroundAlpha); }; return (1); } private function drawProgressBar(_arg1:Number):void{ var _local11:Number; var _local2:Graphics = _barSprite.graphics; _local2.clear(); var _local3:Array = [0xFFFFFF, 0xFFFFFF]; var _local4:Array = [0, 0xFF]; var _local5:Matrix = new Matrix(); var _local6:Number = ((_barRect.width * _arg1) / 100); var _local7:Number = (_local6 / 2); var _local8:Number = (_barRect.height - 4); var _local9:Number = calcX(_barRect.x); var _local10:Number = (calcY(_barRect.y) + 2); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.39, 0.85], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, _local8); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.85, 1], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, _local8); _local7 = (_local6 / 3); _local8 = _barRect.height; _local10 = calcY(_barRect.y); _local11 = ((_local10 + _local8) - 1); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.05, 0.15], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, 1); _local2.drawRect(_local9, _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.25], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, 1); _local2.drawRect((_local9 + _local7), _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.25, 0.1], _local4, _local5); _local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1); _local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1); _local7 = (_local6 / 3); _local8 = _barRect.height; _local10 = (calcY(_barRect.y) + 1); _local11 = ((calcY(_barRect.y) + _local8) - 2); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.3], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, 1); _local2.drawRect(_local9, _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.3, 0.4], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, 1); _local2.drawRect((_local9 + _local7), _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.4, 0.25], _local4, _local5); _local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1); _local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1); } public function get backgroundColor():uint{ return (_backgroundColor); } public function set stageWidth(_arg1:Number):void{ _stageWidth = _arg1; } protected function completeHandler(_arg1:Event):void{ } protected function set label(_arg1:String):void{ if (!(_arg1 is Function)){ _label = _arg1; }; draw(); } public function set preloader(_arg1:Sprite):void{ _preloader = _arg1; _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler); _arg1.addEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler); _arg1.addEventListener(RSLEvent.RSL_ERROR, rslErrorHandler); _arg1.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler); _arg1.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler); } protected function get label():String{ return (_label); } protected function get labelRect():Rectangle{ return (new Rectangle(14, 17, 100, 16)); } override public function set visible(_arg1:Boolean):void{ if (((!(_visible)) && (_arg1))){ show(); } else { if (((_visible) && (!(_arg1)))){ hide(); }; }; _visible = _arg1; } protected function get showLabel():Boolean{ return (_showLabel); } public static function get initializingLabel():String{ return (_initializingLabel); } public static function set initializingLabel(_arg1:String):void{ _initializingLabel = _arg1; } } }//package mx.preloaders import flash.display.*; import flash.text.*; import flash.system.*; class ErrorField extends Sprite { private const TEXT_MARGIN_PX:int = 10; private const MAX_WIDTH_INCHES:int = 6; private const MIN_WIDTH_INCHES:int = 2; private var parentContainer:DisplayObjectContainer; private function ErrorField(_arg1:DisplayObjectContainer){ this.parentContainer = _arg1; } public function show(_arg1:String):void{ if ((((_arg1 == null)) || ((_arg1.length == 0)))){ return; }; var _local2:Stage = parentContainer.stage; var _local3:TextField = new TextField(); _local3.autoSize = TextFieldAutoSize.LEFT; _local3.multiline = true; _local3.wordWrap = true; _local3.background = true; _local3.defaultTextFormat = labelFormat; _local3.text = _arg1; _local3.width = Math.max((MIN_WIDTH_INCHES * Capabilities.screenDPI), (_local2.stageWidth - (TEXT_MARGIN_PX * 2))); _local3.width = Math.min((MAX_WIDTH_INCHES * Capabilities.screenDPI), _local3.width); _local3.y = Math.max(0, ((_local2.stageHeight - TEXT_MARGIN_PX) - _local3.height)); _local3.x = ((_local2.stageWidth - _local3.width) / 2); parentContainer.addChild(this); this.addChild(_local3); } protected function get labelFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.color = 0; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } }
Section 299
//IPreloaderDisplay (mx.preloaders.IPreloaderDisplay) package mx.preloaders { import flash.display.*; import flash.events.*; public interface IPreloaderDisplay extends IEventDispatcher { function set backgroundAlpha(_arg1:Number):void; function get stageHeight():Number; function get stageWidth():Number; function set backgroundColor(_arg1:uint):void; function set preloader(_arg1:Sprite):void; function get backgroundImage():Object; function get backgroundSize():String; function get backgroundAlpha():Number; function set stageHeight(_arg1:Number):void; function get backgroundColor():uint; function set stageWidth(_arg1:Number):void; function set backgroundImage(_arg1:Object):void; function set backgroundSize(_arg1:String):void; function initialize():void; } }//package mx.preloaders
Section 300
//Preloader (mx.preloaders.Preloader) package mx.preloaders { import flash.display.*; import mx.core.*; import flash.events.*; import mx.events.*; import flash.utils.*; public class Preloader extends Sprite { private var app:IEventDispatcher;// = null private var showDisplay:Boolean; private var timer:Timer; private var rslDone:Boolean;// = false private var displayClass:IPreloaderDisplay;// = null private var rslListLoader:RSLListLoader; mx_internal static const VERSION:String = "3.0.0.0"; private function getByteValues():Object{ var _local1:LoaderInfo = root.loaderInfo; var _local2:int = _local1.bytesLoaded; var _local3:int = _local1.bytesTotal; var _local4:int = (rslListLoader) ? rslListLoader.getItemCount() : 0; var _local5:int; while (_local5 < _local4) { _local2 = (_local2 + rslListLoader.getItem(_local5).loaded); _local3 = (_local3 + rslListLoader.getItem(_local5).total); _local5++; }; return ({loaded:_local2, total:_local3}); } private function appProgressHandler(_arg1:Event):void{ dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS)); } private function dispatchAppEndEvent(_arg1:Object=null):void{ dispatchEvent(new FlexEvent(FlexEvent.INIT_COMPLETE)); if (!showDisplay){ displayClassCompleteHandler(null); }; } private function ioErrorHandler(_arg1:IOErrorEvent):void{ } private function appCreationCompleteHandler(_arg1:FlexEvent):void{ dispatchAppEndEvent(); } mx_internal function rslErrorHandler(_arg1:ErrorEvent):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR); _local4.bytesLoaded = 0; _local4.bytesTotal = 0; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; _local4.errorText = decodeURI(_arg1.text); dispatchEvent(_local4); } public function initialize(_arg1:Boolean, _arg2:Class, _arg3:uint, _arg4:Number, _arg5:Object, _arg6:String, _arg7:Number, _arg8:Number, _arg9:Array=null, _arg10:Array=null, _arg11:Array=null, _arg12:Array=null):void{ var _local13:int; var _local14:int; var _local15:RSLItem; var _local16:ResourceModuleRSLItem; if (((((!((_arg9 == null))) || (!((_arg10 == null))))) && (!((_arg11 == null))))){ throw (new Error("RSLs may only be specified by using libs and sizes or rslList, not both.")); }; root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); if (((_arg9) && ((_arg9.length > 0)))){ if (_arg11 == null){ _arg11 = []; }; _local13 = _arg9.length; _local14 = 0; while (_local14 < _local13) { _local15 = new RSLItem(_arg9[_local14]); _arg11.push(_local15); _local14++; }; }; if (((_arg12) && ((_arg12.length > 0)))){ _local13 = _arg12.length; _local14 = 0; while (_local14 < _local13) { _local16 = new ResourceModuleRSLItem(_arg12[_local14]); _arg11.push(_local16); _local14++; }; }; rslListLoader = new RSLListLoader(_arg11); this.showDisplay = _arg1; timer = new Timer(10); timer.addEventListener(TimerEvent.TIMER, timerHandler); timer.start(); if (_arg1){ displayClass = new (_arg2); displayClass.addEventListener(Event.COMPLETE, displayClassCompleteHandler); addChild(DisplayObject(displayClass)); displayClass.backgroundColor = _arg3; displayClass.backgroundAlpha = _arg4; displayClass.backgroundImage = _arg5; displayClass.backgroundSize = _arg6; displayClass.stageWidth = _arg7; displayClass.stageHeight = _arg8; displayClass.initialize(); displayClass.preloader = this; }; if (rslListLoader.getItemCount() > 0){ rslListLoader.load(mx_internal::rslProgressHandler, mx_internal::rslCompleteHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler); } else { rslDone = true; }; } mx_internal function rslProgressHandler(_arg1:ProgressEvent):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_PROGRESS); _local4.bytesLoaded = _arg1.bytesLoaded; _local4.bytesTotal = _arg1.bytesTotal; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; dispatchEvent(_local4); } public function registerApplication(_arg1:IEventDispatcher):void{ _arg1.addEventListener("validatePropertiesComplete", appProgressHandler); _arg1.addEventListener("validateSizeComplete", appProgressHandler); _arg1.addEventListener("validateDisplayListComplete", appProgressHandler); _arg1.addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); this.app = _arg1; } mx_internal function rslCompleteHandler(_arg1:Event):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_COMPLETE); _local4.bytesLoaded = _local3.total; _local4.bytesTotal = _local3.total; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; dispatchEvent(_local4); rslDone = ((_local2 + 1) == _local4.rslTotal); } private function timerHandler(_arg1:TimerEvent):void{ if (!root){ return; }; var _local2:Object = getByteValues(); var _local3:int = _local2.loaded; var _local4:int = _local2.total; dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, _local3, _local4)); if (((rslDone) && ((((((((_local3 >= _local4)) && ((_local4 > 0)))) || ((((_local4 == 0)) && ((_local3 > 0)))))) || ((((((root is MovieClip)) && ((MovieClip(root).totalFrames > 2)))) && ((MovieClip(root).framesLoaded >= 2)))))))){ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.reset(); dispatchEvent(new Event(Event.COMPLETE)); dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS)); }; } private function displayClassCompleteHandler(_arg1:Event):void{ if (displayClass){ displayClass.removeEventListener(Event.COMPLETE, displayClassCompleteHandler); }; if (root){ root.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); }; if (app){ app.removeEventListener("validatePropertiesComplete", appProgressHandler); app.removeEventListener("validateSizeComplete", appProgressHandler); app.removeEventListener("validateDisplayListComplete", appProgressHandler); app.removeEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); app = null; }; dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DONE)); } } }//package mx.preloaders
Section 301
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 302
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 303
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 304
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 305
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.0.0.0"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); }; return (instance); } } }//package mx.resources
Section 306
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import mx.core.*; import flash.events.*; import mx.events.*; import flash.system.*; import mx.modules.*; import flash.utils.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.events.*; import mx.modules.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 307
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.display.*; import mx.core.*; import mx.managers.*; import flash.events.*; import flash.utils.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.0.0.0"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 308
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 309
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 310
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 311
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 312
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 313
//StyleManager (mx.styles.StyleManager) package mx.styles { import mx.core.*; import flash.events.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 314
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import mx.core.*; import mx.managers.*; import flash.events.*; import mx.events.*; import mx.resources.*; import flash.system.*; import mx.modules.*; import flash.utils.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.0.0.0"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.events.*; import mx.modules.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 315
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; import mx.core.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 316
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 317
//SHA256 (mx.utils.SHA256) package mx.utils { import flash.utils.*; public class SHA256 { public static const TYPE_ID:String = "SHA-256"; private static var k:Array = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; public static function computeDigest(_arg1:ByteArray):String{ var _local6:int; var _local16:int; var _local17:int; var _local18:int; var _local19:int; var _local20:int; var _local21:int; var _local22:int; var _local23:int; var _local28:uint; var _local29:int; var _local30:int; var _local31:uint; var _local32:uint; var _local33:int; var _local34:int; var _local35:int; var _local2:int = (_arg1.length % 64); _local2 = (64 - _local2); if (_local2 < (1 + 8)){ _local2 = (_local2 + 64); }; var _local3:Array = new Array(_local2); var _local4:int = ((_arg1.length + _local2) / 64); var _local5:uint = (_arg1.length * 8); _local3[0] = 128; _local6 = 1; while (_local6 < (_local2 - 8)) { _local3[_local6] = 0; _local6++; }; var _local7:int = (_local3.length - 1); _local6 = 0; while (_local6 < 4) { _local3[(_local7 - _local6)] = ((_local5 >> (_local6 << 3)) & 0xFF); _local6++; }; var _local8 = 1779033703; var _local9:int = 3144134277; var _local10 = 1013904242; var _local11:int = 2773480762; var _local12 = 1359893119; var _local13:int = 2600822924; var _local14 = 528734635; var _local15 = 1541459225; var _local24:ByteArray = new ByteArray(); var _local25:Array = new Array(64); var _local26:uint; var _local27:uint; _local6 = 0; while (_local6 < _local4) { getMessageBlock(_arg1, _local24); if ((((_local6 == (_local4 - 2))) && ((_local3.length > 64)))){ _local26 = (64 - (_local3.length % 64)); _local27 = (64 - _local26); _local28 = 0; while (_local28 < _local27) { _local24[(_local28 + _local26)] = _local3[_local28]; _local28++; }; } else { if (_local6 == (_local4 - 1)){ _local35 = _local27; if (_local3.length > 64){ _local26 = 0; _local27 = 64; } else { _local26 = (64 - _local3.length); _local27 = _local3.length; }; _local28 = 0; while (_local28 < _local27) { _local24[(_local28 + _local26)] = _local3[(_local28 + _local35)]; _local28++; }; }; }; _local31 = 0; while (_local31 < 64) { if (_local31 < 16){ _local32 = (_local31 << 2); _local25[_local31] = int(((((_local24[_local32] << 24) | (_local24[(_local32 + 1)] << 16)) | (_local24[(_local32 + 2)] << 8)) | _local24[(_local32 + 3)])); } else { _local33 = _local25[(_local31 - 2)]; _local34 = _local25[(_local31 - 15)]; _local25[_local31] = int((((int(((((_local33 >>> 17) | (_local33 << 15)) ^ ((_local33 >>> 19) | (_local33 << 13))) ^ (_local33 >>> 10))) + int(_local25[(_local31 - 7)])) + int(((((_local34 >>> 7) | (_local34 << 25)) ^ ((_local34 >>> 18) | (_local34 << 14))) ^ (_local34 >>> 3)))) + int(_local25[(_local31 - 16)]))); }; _local31++; }; _local16 = _local8; _local17 = _local9; _local18 = _local10; _local19 = _local11; _local20 = _local12; _local21 = _local13; _local22 = _local14; _local23 = _local15; _local31 = 0; while (_local31 < 64) { _local29 = ((((_local23 + int(((((_local20 >>> 6) | (_local20 << 26)) ^ ((_local20 >>> 11) | (_local20 << 21))) ^ ((_local20 >>> 25) | (_local20 << 7))))) + int(((_local20 & _local21) ^ (~(_local20) & _local22)))) + int(k[_local31])) + int(_local25[_local31])); _local30 = (int(((((_local16 >>> 2) | (_local16 << 30)) ^ ((_local16 >>> 13) | (_local16 << 19))) ^ ((_local16 >>> 22) | (_local16 << 10)))) + int((((_local16 & _local17) ^ (_local16 & _local18)) ^ (_local17 & _local18)))); _local23 = _local22; _local22 = _local21; _local21 = _local20; _local20 = (_local19 + _local29); _local19 = _local18; _local18 = _local17; _local17 = _local16; _local16 = (_local29 + _local30); _local31++; }; _local8 = (_local8 + _local16); _local9 = (_local9 + _local17); _local10 = (_local10 + _local18); _local11 = (_local11 + _local19); _local12 = (_local12 + _local20); _local13 = (_local13 + _local21); _local14 = (_local14 + _local22); _local15 = (_local15 + _local23); _local6++; }; return ((((((((toHex(_local8) + toHex(_local9)) + toHex(_local10)) + toHex(_local11)) + toHex(_local12)) + toHex(_local13)) + toHex(_local14)) + toHex(_local15))); } private static function getMessageBlock(_arg1:ByteArray, _arg2:ByteArray):void{ _arg1.readBytes(_arg2, 0, Math.min(_arg1.bytesAvailable, 64)); } private static function toHex(_arg1:uint):String{ var _local3:String; var _local4:int; var _local5:int; var _local2:String = _arg1.toString(16); if (_local2.length < 8){ _local3 = "0"; _local4 = (8 - _local2.length); _local5 = 1; while (_local5 < _local4) { _local3 = _local3.concat("0"); _local5++; }; return ((_local3 + _local2)); }; return (_local2); } } }//package mx.utils
Section 318
//StringUtil (mx.utils.StringUtil) package mx.utils { import mx.core.*; public class StringUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 319
//_AccordionHeaderStyle (_AccordionHeaderStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _AccordionHeaderStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("AccordionHeader"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("AccordionHeader", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.downSkin = null; this.overSkin = null; this.paddingTop = 0; this.selectedDisabledSkin = null; this.selectedUpSkin = null; this.fontSize = "10"; this.skin = AccordionHeaderSkin; this.paddingLeft = 5; this.paddingRight = 5; this.upSkin = null; this.fontWeight = "bold"; this.selectedDownSkin = null; this.textAlign = "left"; this.disabledSkin = null; this.horizontalGap = 2; this.paddingBottom = 0; this.selectedOverSkin = null; }; }; } } }//package
Section 320
//_AccordionStyle (_AccordionStyle) package { import mx.core.*; import mx.styles.*; public class _AccordionStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Accordion"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Accordion", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "solid"; this.paddingTop = -1; this.backgroundColor = 0xFFFFFF; this.verticalGap = -1; this.paddingLeft = -1; this.paddingBottom = -1; this.paddingRight = -1; }; }; } } }//package
Section 321
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 322
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 323
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 324
//_AlertStyle (_AlertStyle) package { import mx.core.*; import mx.styles.*; public class _AlertStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Alert"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Alert", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.borderColor = 8821927; this.roundedBottomCorners = true; this.color = 0xFFFFFF; this.buttonStyleName = "alertButtonStyle"; this.backgroundColor = 8821927; this.borderAlpha = 0.9; this.paddingLeft = 10; this.paddingBottom = 2; this.backgroundAlpha = 0.9; this.paddingRight = 10; }; }; } } }//package
Section 325
//_ApplicationControlBarStyle (_ApplicationControlBarStyle) package { import mx.core.*; import mx.styles.*; public class _ApplicationControlBarStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ApplicationControlBar"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ApplicationControlBar", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "applicationControlBar"; this.paddingTop = 5; this.docked = false; this.dropShadowEnabled = true; this.shadowDistance = 5; this.cornerRadius = 5; this.fillColors = [0xFFFFFF, 0xFFFFFF]; this.fillAlphas = [0, 0]; this.paddingLeft = 8; this.paddingBottom = 4; this.paddingRight = 8; }; }; } } }//package
Section 326
//_ApplicationStyle (_ApplicationStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ApplicationStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Application"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Application", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.backgroundSize = "100%"; this.paddingTop = 24; this.backgroundColor = 8821927; this.backgroundImage = ApplicationBackground; this.horizontalAlign = "center"; this.backgroundGradientAlphas = [1, 1]; this.paddingLeft = 24; this.paddingBottom = 24; this.paddingRight = 24; }; }; } } }//package
Section 327
//_ButtonStyle (_ButtonStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ButtonStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Button"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Button", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.paddingTop = 2; this.cornerRadius = 4; this.textAlign = "center"; this.verticalGap = 2; this.horizontalGap = 2; this.skin = ButtonSkin; this.paddingLeft = 10; this.paddingBottom = 2; this.paddingRight = 10; }; }; } } }//package
Section 328
//_CheckBoxStyle (_CheckBoxStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _CheckBoxStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CheckBox"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("CheckBox", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.icon = CheckBoxIcon; this.downSkin = null; this.overSkin = null; this.selectedDisabledSkin = null; this.disabledIcon = null; this.upIcon = null; this.selectedDownIcon = null; this.iconColor = 2831164; this.selectedUpSkin = null; this.overIcon = null; this.skin = null; this.paddingLeft = 0; this.paddingRight = 0; this.upSkin = null; this.fontWeight = "normal"; this.selectedDownSkin = null; this.selectedUpIcon = null; this.selectedOverIcon = null; this.selectedDisabledIcon = null; this.textAlign = "left"; this.disabledSkin = null; this.horizontalGap = 5; this.selectedOverSkin = null; this.downIcon = null; }; }; } } }//package
Section 329
//_ColorPickerStyle (_ColorPickerStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ColorPickerStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ColorPicker"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ColorPicker", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.iconColor = 0; this.fontSize = 11; this.verticalGap = 0; this.shadowColor = 5068126; this.skin = ColorPickerSkin; this.swatchBorderSize = 0; }; }; } } }//package
Section 330
//_com_eightlabs_rambler_ramblerWatcherSetupUtil (_com_eightlabs_rambler_ramblerWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import flash.display.*; import com.eightlabs.rambler.*; public class _com_eightlabs_rambler_ramblerWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[8] = new PropertyWatcher("chatboxStack", {propertyChange:true}, [_arg3[5]], _arg2); _arg4[9] = new PropertyWatcher("width", {widthChanged:true}, [_arg3[5]], null); _arg4[4] = new PropertyWatcher("debugbox", {propertyChange:true}, [_arg3[4]], _arg2); _arg4[5] = new PropertyWatcher("height", {heightChanged:true}, [_arg3[4]], null); _arg4[3] = new PropertyWatcher("menuBarCollection", {propertyChange:true}, [_arg3[3]], _arg2); _arg4[6] = new PropertyWatcher("imgLoader", {propertyChange:true}, [_arg3[4], _arg3[5]], _arg2); _arg4[7] = new PropertyWatcher("height", {heightChanged:true}, [_arg3[4]], null); _arg4[10] = new PropertyWatcher("width", {widthChanged:true}, [_arg3[5]], null); _arg4[8].updateParent(_arg1); _arg4[8].addChild(_arg4[9]); _arg4[4].updateParent(_arg1); _arg4[4].addChild(_arg4[5]); _arg4[3].updateParent(_arg1); _arg4[6].updateParent(_arg1); _arg4[6].addChild(_arg4[7]); _arg4[6].addChild(_arg4[10]); } public static function init(_arg1:IFlexModuleFactory):void{ rambler.watcherSetupUtil = new (_com_eightlabs_rambler_ramblerWatcherSetupUtil); } } }//package
Section 331
//_com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil (_com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ AuthWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil); } } }//package
Section 332
//_com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil (_com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ ChangeNamePasswordWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil); } } }//package
Section 333
//_com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil (_com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ ChangeNameWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil); } } }//package
Section 334
//_com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil (_com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[2] = new PropertyWatcher("progressBar", {propertyChange:true}, [_arg3[0]], _arg2); _arg4[3] = new PropertyWatcher("width", {widthChanged:true}, [_arg3[0]], null); _arg4[5] = new PropertyWatcher("cancel", {propertyChange:true}, [_arg3[2]], _arg2); _arg4[6] = new PropertyWatcher("width", {widthChanged:true}, [_arg3[2]], null); _arg4[0] = new PropertyWatcher("cCanvas", {propertyChange:true}, [_arg3[0], _arg3[2]], _arg2); _arg4[1] = new PropertyWatcher("width", {widthChanged:true}, [_arg3[0], _arg3[2]], null); _arg4[2].updateParent(_arg1); _arg4[2].addChild(_arg4[3]); _arg4[5].updateParent(_arg1); _arg4[5].addChild(_arg4[6]); _arg4[0].updateParent(_arg1); _arg4[0].addChild(_arg4[1]); } public static function init(_arg1:IFlexModuleFactory):void{ IndeterminateProgressWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil); } } }//package
Section 335
//_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("data", {dataChange:true}, [_arg3[0]], _arg2); _arg4[1] = new PropertyWatcher("channel", null, [_arg3[0]], null); _arg4[0].updateParent(_arg1); _arg4[0].addChild(_arg4[1]); } public static function init(_arg1:IFlexModuleFactory):void{ ListRoomsWindow_inlineComponent1.watcherSetupUtil = new (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil); } } }//package
Section 336
//_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("data", {dataChange:true}, [_arg3[0]], _arg2); _arg4[1] = new PropertyWatcher("users", null, [_arg3[0]], null); _arg4[0].updateParent(_arg1); _arg4[0].addChild(_arg4[1]); } public static function init(_arg1:IFlexModuleFactory):void{ ListRoomsWindow_inlineComponent2.watcherSetupUtil = new (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil); } } }//package
Section 337
//_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("text", {valueCommit:true}, [_arg3[0]], _arg2); _arg4[1] = new PropertyWatcher("data", {dataChange:true}, [_arg3[1]], _arg2); _arg4[2] = new PropertyWatcher("topic", null, [_arg3[1]], null); _arg4[0].updateParent(_arg1); _arg4[1].updateParent(_arg1); _arg4[1].addChild(_arg4[2]); } public static function init(_arg1:IFlexModuleFactory):void{ ListRoomsWindow_inlineComponent3.watcherSetupUtil = new (_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil); } } }//package
Section 338
//_com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil (_com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[1] = new PropertyWatcher("listCollection", {propertyChange:true}, [_arg3[1]], _arg2); _arg4[1].updateParent(_arg1); } public static function init(_arg1:IFlexModuleFactory):void{ ListRoomsWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil); } } }//package
Section 339
//_com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil (_com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ LoginWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil); } } }//package
Section 340
//_com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil (_com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ MotdWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil); } } }//package
Section 341
//_com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil (_com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[8] = new PropertyWatcher("roomsCollection", {propertyChange:true}, [_arg3[8]], _arg2); _arg4[8].updateParent(_arg1); } public static function init(_arg1:IFlexModuleFactory):void{ ProfileWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil); } } }//package
Section 342
//_com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil (_com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RegisterNameWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil); } } }//package
Section 343
//_com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil (_com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RegisterRoomWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil); } } }//package
Section 344
//_com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil (_com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("complexDPArray", {propertyChange:true}, [_arg3[0]], _arg2); _arg4[0].updateParent(_arg1); } public static function init(_arg1:IFlexModuleFactory):void{ RichTextEditor.watcherSetupUtil = new (_com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil); } } }//package
Section 345
//_com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil (_com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RoomKeyWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil); } } }//package
Section 346
//_com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil (_com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RoomSettingsAddBan.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil); } } }//package
Section 347
//_com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil (_com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RoomSettingsAddOp.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil); } } }//package
Section 348
//_com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil (_com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[25] = new PropertyWatcher("opListCollection", {propertyChange:true}, [_arg3[25]], _arg2); _arg4[17] = new PropertyWatcher("bansCollection", {propertyChange:true}, [_arg3[17]], _arg2); _arg4[25].updateParent(_arg1); _arg4[17].updateParent(_arg1); } public static function init(_arg1:IFlexModuleFactory):void{ RoomSettingsWindow.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil); } } }//package
Section 349
//_com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil (_com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("data", {dataChange:true}, [_arg3[0]], _arg2); _arg4[1] = new PropertyWatcher("userStatus", null, [_arg3[0]], null); _arg4[0].updateParent(_arg1); _arg4[0].addChild(_arg4[1]); } public static function init(_arg1:IFlexModuleFactory):void{ RoomUserList_inlineComponent1.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil); } } }//package
Section 350
//_com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil (_com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ _arg4[0] = new PropertyWatcher("data", {dataChange:true}, [_arg3[0]], _arg2); _arg4[1] = new PropertyWatcher("formattedUserName", null, [_arg3[0]], null); _arg4[0].updateParent(_arg1); _arg4[0].addChild(_arg4[1]); } public static function init(_arg1:IFlexModuleFactory):void{ RoomUserList_inlineComponent2.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil); } } }//package
Section 351
//_com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil (_com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ RoomUserList.watcherSetupUtil = new (_com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil); } } }//package
Section 352
//_com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil (_com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ UserManagementPanel.watcherSetupUtil = new (_com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil); } } }//package
Section 353
//_com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil (_com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ UserOptionPanel.watcherSetupUtil = new (_com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil); } } }//package
Section 354
//_com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil (_com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil) package { import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import flash.display.*; public class _com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil extends Sprite implements IWatcherSetupUtil { public function setup(_arg1:Object, _arg2:Function, _arg3:Array, _arg4:Array):void{ } public static function init(_arg1:IFlexModuleFactory):void{ UserOptionRemovePanel.watcherSetupUtil = new (_com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil); } } }//package
Section 355
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 356
//_ContainerStyle (_ContainerStyle) package { import mx.core.*; import mx.styles.*; public class _ContainerStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Container"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Container", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "none"; }; }; } } }//package
Section 357
//_ControlBarStyle (_ControlBarStyle) package { import mx.core.*; import mx.styles.*; public class _ControlBarStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ControlBar"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ControlBar", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.disabledOverlayAlpha = 0; this.borderStyle = "controlBar"; this.paddingTop = 10; this.verticalAlign = "middle"; this.paddingLeft = 10; this.paddingBottom = 10; this.paddingRight = 10; }; }; } } }//package
Section 358
//_CursorManagerStyle (_CursorManagerStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _CursorManagerStyle { private static var _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859:Class = _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859; private static var _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428:Class = _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("CursorManager", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.busyCursor = BusyCursor; this.busyCursorBackground = _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428; }; }; } } }//package
Section 359
//_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428 (_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428) package { import mx.core.*; public class _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_1015641428 extends SpriteAsset { } }//package
Section 360
//_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859 (_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859) package { import mx.core.*; public class _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859 extends SpriteAsset { } }//package
Section 361
//_DataGridItemRendererStyle (_DataGridItemRendererStyle) package { import mx.core.*; import mx.styles.*; public class _DataGridItemRendererStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("DataGridItemRenderer"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("DataGridItemRenderer", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingLeft = 5; }; }; } } }//package
Section 362
//_DataGridStyle (_DataGridStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _DataGridStyle { private static var _embed_css_Assets_swf_cursorStretch_2123211183:Class = _DataGridStyle__embed_css_Assets_swf_cursorStretch_2123211183; private static var _embed_css_Assets_swf_cursorStretch_454465490:Class = _DataGridStyle__embed_css_Assets_swf_cursorStretch_454465490; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("DataGrid"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("DataGrid", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.sortArrowSkin = DataGridSortArrow; this.columnDropIndicatorSkin = DataGridColumnDropIndicator; this.columnResizeSkin = DataGridColumnResizeSkin; this.stretchCursor = _embed_css_Assets_swf_cursorStretch_2123211183; this.alternatingItemColors = [0xF7F7F7, 0xFFFFFF]; this.headerStyleName = "dataGridStyles"; this.headerSeparatorSkin = DataGridHeaderSeparator; this.headerBackgroundSkin = DataGridHeaderBackgroundSkin; this.headerColors = [0xFFFFFF, 0xE6E6E6]; this.headerDragProxyStyleName = "headerDragProxyStyle"; this.verticalGridLineColor = 0xCCCCCC; }; }; } } }//package
Section 363
//_DataGridStyle__embed_css_Assets_swf_cursorStretch_2123211183 (_DataGridStyle__embed_css_Assets_swf_cursorStretch_2123211183) package { import mx.core.*; public class _DataGridStyle__embed_css_Assets_swf_cursorStretch_2123211183 extends SpriteAsset { } }//package
Section 364
//_DataGridStyle__embed_css_Assets_swf_cursorStretch_454465490 (_DataGridStyle__embed_css_Assets_swf_cursorStretch_454465490) package { import mx.core.*; public class _DataGridStyle__embed_css_Assets_swf_cursorStretch_454465490 extends SpriteAsset { } }//package
Section 365
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 366
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 367
//_DragManagerStyle (_DragManagerStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _DragManagerStyle { private static var _embed_css_Assets_swf_mx_skins_cursor_DragCopy_1825135557:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_1825135557; private static var _embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954; private static var _embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985; private static var _embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693; private static var _embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590; private static var _embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648; private static var _embed_css_Assets_swf_mx_skins_cursor_DragLink_1825397586:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_1825397586; private static var _embed_css_Assets_swf_mx_skins_cursor_DragMove_1825425257:Class = _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_1825425257; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("DragManager"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("DragManager", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.copyCursor = _embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954; this.moveCursor = _embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590; this.rejectCursor = _embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648; this.linkCursor = _embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693; this.defaultDragImageSkin = DefaultDragImage; }; }; } } }//package
Section 368
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954 extends SpriteAsset { } }//package
Section 369
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_1825135557 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_1825135557) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_1825135557 extends SpriteAsset { } }//package
Section 370
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693 extends SpriteAsset { } }//package
Section 371
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_1825397586 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_1825397586) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_1825397586 extends SpriteAsset { } }//package
Section 372
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590 extends SpriteAsset { } }//package
Section 373
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_1825425257 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_1825425257) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_1825425257 extends SpriteAsset { } }//package
Section 374
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985 extends SpriteAsset { } }//package
Section 375
//_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648 (_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648) package { import mx.core.*; public class _DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_164095648 extends SpriteAsset { } }//package
Section 376
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 377
//_FlashIRC_FlexInit (_FlashIRC_FlexInit) package { import mx.core.*; import mx.collections.*; import flash.net.*; import mx.styles.*; import mx.effects.*; import mx.utils.*; public class _FlashIRC_FlexInit { public static function init(_arg1:IFlexModuleFactory):void{ var _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("addedEffect", "added"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("completeEffect", "complete"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("creationCompleteEffect", "creationComplete"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("focusInEffect", "focusIn"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("focusOutEffect", "focusOut"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("hideEffect", "hide"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("itemsChangeEffect", "itemsChange"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("mouseDownEffect", "mouseDown"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("mouseUpEffect", "mouseUp"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("moveEffect", "move"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("removedEffect", "removed"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("resizeEffect", "resize"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("resizeEndEffect", "resizeEnd"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("resizeStartEffect", "resizeStart"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("rollOutEffect", "rollOut"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("rollOverEffect", "rollOver"); _local4 = EffectManager; _local4.mx_internal::registerEffectTrigger("showEffect", "show"); registerClassAlias("flex.messaging.io.ArrayCollection", ArrayCollection); registerClassAlias("flex.messaging.io.ArrayList", ArrayList); registerClassAlias("flex.messaging.io.ObjectProxy", ObjectProxy); var _local2:Array = ["highlightColor", "fontAntiAliasType", "errorColor", "horizontalGridLineColor", "kerning", "backgroundDisabledColor", "iconColor", "modalTransparencyColor", "textRollOverColor", "shadowCapColor", "textIndent", "verticalGridLineColor", "themeColor", "modalTransparency", "textDecoration", "headerColors", "fontThickness", "textAlign", "fontFamily", "textSelectedColor", "selectionDisabledColor", "labelWidth", "fontGridFitType", "letterSpacing", "rollOverColor", "fontStyle", "dropShadowColor", "fontSize", "shadowColor", "selectionColor", "disabledColor", "indicatorGap", "fontWeight", "disabledIconColor", "modalTransparencyBlur", "leading", "color", "alternatingItemColors", "fontSharpness", "barColor", "modalTransparencyDuration", "footerColors"]; var _local3:int; while (_local3 < _local2.length) { StyleManager.registerInheritingStyle(_local2[_local3]); _local3++; }; } } }//package
Section 378
//_FlashIRC_mx_managers_SystemManager (_FlashIRC_mx_managers_SystemManager) package { import mx.core.*; import mx.managers.*; import flash.system.*; public class _FlashIRC_mx_managers_SystemManager extends SystemManager implements IFlexModuleFactory { override public function create(... _args):Object{ if ((((_args.length > 0)) && (!((_args[0] is String))))){ return (super.create.apply(this, _args)); }; var _local2:String = ((_args.length == 0)) ? "FlashIRC" : String(_args[0]); var _local3:Class = Class(getDefinitionByName(_local2)); if (!_local3){ return (null); }; var _local4:Object = new (_local3); if ((_local4 is IFlexModule)){ IFlexModule(_local4).moduleFactory = this; }; return (_local4); } override public function info():Object{ return ({cdRsls:[{rsls:["http://www.everywherechat.com/framework_3.0.0.477.swf"], policyFiles:[""], digests:["af07b46903a6c5d87a24725cb7d50de352a0383c2e3cd1681b72348ca68b9648"], types:["SHA-256"], isSigned:[false]}], compiledLocales:["en_US"], compiledResourceBundleNames:["collections", "containers", "controls", "core", "effects", "skins", "styles"], creationComplete:"initApp()", currentDomain:ApplicationDomain.currentDomain, enabled:"false", layout:"absolute", mainClassName:"FlashIRC", mixins:["_FlashIRC_FlexInit", "_AccordionHeaderStyle", "_alertButtonStyleStyle", "_SWFLoaderStyle", "_FormStyle", "_headerDateTextStyle", "_SwatchPanelStyle", "_TitleWindowStyle", "_todayStyleStyle", "_AccordionStyle", "_windowStylesStyle", "_FormItemLabelStyle", "_TextInputStyle", "_dateFieldPopupStyle", "_ApplicationControlBarStyle", "_FormItemStyle", "_dataGridStylesStyle", "_headerDragProxyStyleStyle", "_popUpMenuStyle", "_ProgressBarStyle", "_DragManagerStyle", "_windowStatusStyle", "_TextAreaStyle", "_ContainerStyle", "_swatchPanelTextFieldStyle", "_RadioButtonStyle", "_RichTextEditorStyle", "_textAreaHScrollBarStyleStyle", "_MenuBarStyle", "_comboDropdownStyle", "_CheckBoxStyle", "_ButtonStyle", "_PopUpButtonStyle", "_linkButtonStyleStyle", "_richTextEditorTextAreaStyleStyle", "_ControlBarStyle", "_textAreaVScrollBarStyleStyle", "_globalStyle", "_ListBaseStyle", "_AlertStyle", "_ApplicationStyle", "_ToolTipStyle", "_CursorManagerStyle", "_opaquePanelStyle", "_errorTipStyle", "_MenuStyle", "_DataGridStyle", "_activeTabStyleStyle", "_PanelStyle", "_ScrollBarStyle", "_plainStyle", "_activeButtonStyleStyle", "_PopUpMenuButtonStyle", "_DataGridItemRendererStyle", "_ColorPickerStyle", "_weekDayStyleStyle", "_com_eightlabs_rambler_views_RichTextEditorWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomUserListWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomUserList_inlineComponent1WatcherSetupUtil", "_com_eightlabs_rambler_views_RoomUserList_inlineComponent2WatcherSetupUtil", "_com_eightlabs_rambler_views_ListRoomsWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_AuthWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_ChangeNameWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_ProfileWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_ChangeNamePasswordWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_RegisterNameWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_MotdWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_RegisterRoomWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent3WatcherSetupUtil", "_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent2WatcherSetupUtil", "_com_eightlabs_rambler_views_ListRoomsWindow_inlineComponent1WatcherSetupUtil", "_com_eightlabs_rambler_views_UserOptionRemovePanelWatcherSetupUtil", "_com_eightlabs_rambler_views_UserOptionPanelWatcherSetupUtil", "_com_eightlabs_rambler_views_IndeterminateProgressWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_UserManagementPanelWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomSettingsAddOpWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomSettingsAddBanWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomSettingsWindowWatcherSetupUtil", "_com_eightlabs_rambler_views_RoomKeyWindowWatcherSetupUtil", "_com_eightlabs_rambler_ramblerWatcherSetupUtil", "_com_eightlabs_rambler_views_LoginWindowWatcherSetupUtil"], paddingBottom:"0", paddingLeft:"0"}); } } }//package
Section 379
//_FormItemLabelStyle (_FormItemLabelStyle) package { import mx.core.*; import mx.styles.*; public class _FormItemLabelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("FormItemLabel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("FormItemLabel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.textAlign = "right"; }; }; } } }//package
Section 380
//_FormItemStyle (_FormItemStyle) package { import mx.core.*; import mx.styles.*; public class _FormItemStyle { private static var _embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133:Class = _FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133; private static var _embed_css_Assets_swf_mx_containers_FormItem_Required_176362788:Class = _FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_176362788; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("FormItem"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("FormItem", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.indicatorSkin = _embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133; }; }; } } }//package
Section 381
//_FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133 (_FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133) package { import mx.core.*; public class _FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_1226843133 extends SpriteAsset { } }//package
Section 382
//_FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_176362788 (_FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_176362788) package { import mx.core.*; public class _FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_176362788 extends SpriteAsset { } }//package
Section 383
//_FormStyle (_FormStyle) package { import mx.core.*; import mx.styles.*; public class _FormStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Form"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Form", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 16; this.verticalGap = 6; this.paddingLeft = 16; this.paddingBottom = 16; this.paddingRight = 16; }; }; } } }//package
Section 384
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 385
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 386
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 387
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 388
//_ListBaseStyle (_ListBaseStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ListBaseStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ListBase"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ListBase", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "solid"; this.paddingTop = 2; this.backgroundColor = 0xFFFFFF; this.backgroundDisabledColor = 0xDDDDDD; this.dropIndicatorSkin = ListDropIndicator; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 0; }; }; } } }//package
Section 389
//_MenuBarStyle (_MenuBarStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _MenuBarStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("MenuBar"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("MenuBar", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.itemSkin = ActivatorSkin; this.backgroundSkin = MenuBarBackgroundSkin; this.translucent = false; }; }; } } }//package
Section 390
//_MenuStyle (_MenuStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _MenuStyle { private static var _embed_css_Assets_swf_MenuCheckDisabled_1782082795:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_1782082795; private static var _embed_css_Assets_swf_MenuBranchDisabled_1024945437:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1024945437; private static var _embed_css_Assets_swf_MenuRadioEnabled_772524796:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_772524796; private static var _embed_css_Assets_swf_MenuSeparator_1794835414:Class = _MenuStyle__embed_css_Assets_swf_MenuSeparator_1794835414; private static var _embed_css_Assets_swf_MenuCheckEnabled_933904376:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_933904376; private static var _embed_css_Assets_swf_MenuRadioDisabled_678365224:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_678365224; private static var _embed_css_Assets_swf_MenuCheckDisabled_806828676:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_806828676; private static var _embed_css_Assets_swf_MenuBranchEnabled_1019896559:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_1019896559; private static var _embed_css_Assets_swf_MenuCheckEnabled_1376448231:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1376448231; private static var _embed_css_Assets_swf_MenuRadioEnabled_1247320939:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_1247320939; private static var _embed_css_Assets_swf_MenuBranchDisabled_1453048452:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1453048452; private static var _embed_css_Assets_swf_MenuRadioDisabled_1944889031:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1944889031; private static var _embed_css_Assets_swf_MenuBranchEnabled_2039825424:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_2039825424; private static var _embed_css_Assets_swf_MenuSeparator_1755591995:Class = _MenuStyle__embed_css_Assets_swf_MenuSeparator_1755591995; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Menu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Menu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.radioIcon = _embed_css_Assets_swf_MenuRadioEnabled_1247320939; this.borderStyle = "menuBorder"; this.paddingTop = 1; this.rightIconGap = 15; this.branchIcon = _embed_css_Assets_swf_MenuBranchEnabled_2039825424; this.checkDisabledIcon = _embed_css_Assets_swf_MenuCheckDisabled_1782082795; this.verticalAlign = "middle"; this.paddingLeft = 1; this.paddingRight = 0; this.checkIcon = _embed_css_Assets_swf_MenuCheckEnabled_933904376; this.radioDisabledIcon = _embed_css_Assets_swf_MenuRadioDisabled_678365224; this.dropShadowEnabled = true; this.branchDisabledIcon = _embed_css_Assets_swf_MenuBranchDisabled_1024945437; this.dropIndicatorSkin = ListDropIndicator; this.separatorSkin = _embed_css_Assets_swf_MenuSeparator_1794835414; this.horizontalGap = 6; this.leftIconGap = 18; this.paddingBottom = 1; }; }; } } }//package
Section 391
//_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1024945437 (_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1024945437) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1024945437 extends SpriteAsset { } }//package
Section 392
//_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1453048452 (_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1453048452) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1453048452 extends SpriteAsset { } }//package
Section 393
//_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_1019896559 (_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_1019896559) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_1019896559 extends SpriteAsset { } }//package
Section 394
//_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_2039825424 (_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_2039825424) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_2039825424 extends SpriteAsset { } }//package
Section 395
//_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_1782082795 (_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_1782082795) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_1782082795 extends SpriteAsset { } }//package
Section 396
//_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_806828676 (_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_806828676) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_806828676 extends SpriteAsset { } }//package
Section 397
//_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1376448231 (_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1376448231) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1376448231 extends SpriteAsset { } }//package
Section 398
//_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_933904376 (_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_933904376) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_933904376 extends SpriteAsset { } }//package
Section 399
//_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1944889031 (_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1944889031) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1944889031 extends SpriteAsset { } }//package
Section 400
//_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_678365224 (_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_678365224) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_678365224 extends SpriteAsset { } }//package
Section 401
//_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_1247320939 (_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_1247320939) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_1247320939 extends SpriteAsset { } }//package
Section 402
//_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_772524796 (_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_772524796) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_772524796 extends SpriteAsset { } }//package
Section 403
//_MenuStyle__embed_css_Assets_swf_MenuSeparator_1755591995 (_MenuStyle__embed_css_Assets_swf_MenuSeparator_1755591995) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuSeparator_1755591995 extends SpriteAsset { } }//package
Section 404
//_MenuStyle__embed_css_Assets_swf_MenuSeparator_1794835414 (_MenuStyle__embed_css_Assets_swf_MenuSeparator_1794835414) package { import mx.core.*; public class _MenuStyle__embed_css_Assets_swf_MenuSeparator_1794835414 extends SpriteAsset { } }//package
Section 405
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 406
//_PanelStyle (_PanelStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _PanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var effects:Array; var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Panel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Panel", style, false); effects = style.mx_internal::effects; if (!effects){ effects = (style.mx_internal::effects = new Array()); }; effects.push("resizeEndEffect"); effects.push("resizeStartEffect"); effects.push("resizeEndEffect"); effects.push("resizeStartEffect"); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.statusStyleName = "windowStatus"; this.borderStyle = "default"; this.paddingTop = 0; this.borderColor = 0xE2E2E2; this.backgroundColor = 0xFFFFFF; this.cornerRadius = 4; this.titleBackgroundSkin = TitleBackground; this.borderAlpha = 0.4; this.borderThicknessTop = 2; this.paddingLeft = 0; this.resizeEndEffect = "Dissolve"; this.paddingRight = 0; this.titleStyleName = "windowStyles"; this.roundedBottomCorners = false; this.borderThicknessRight = 10; this.dropShadowEnabled = true; this.resizeStartEffect = "Dissolve"; this.borderSkin = PanelSkin; this.borderThickness = 0; this.borderThicknessLeft = 10; this.paddingBottom = 0; }; }; } } }//package
Section 407
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 408
//_PopUpButtonStyle (_PopUpButtonStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _PopUpButtonStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("PopUpButton"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("PopUpButton", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.popUpGap = 0; this.arrowButtonWidth = 18; this.popUpIcon = PopUpIcon; this.skin = PopUpButtonSkin; this.paddingLeft = 3; this.paddingRight = 3; }; }; } } }//package
Section 409
//_PopUpMenuButtonStyle (_PopUpMenuButtonStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _PopUpMenuButtonStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("PopUpMenuButton"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("PopUpMenuButton", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.popUpIcon = PopUpMenuIcon; this.popUpStyleName = "popUpMenu"; this.skin = PopUpButtonSkin; }; }; } } }//package
Section 410
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 411
//_ProgressBarStyle (_ProgressBarStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ProgressBarStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ProgressBar"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ProgressBar", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.trackColors = [0xE7E7E7, 0xFFFFFF]; this.leading = 0; this.barSkin = ProgressBarSkin; this.trackSkin = ProgressTrackSkin; this.indeterminateMoveInterval = 28; this.maskSkin = ProgressMaskSkin; this.indeterminateSkin = ProgressIndeterminateSkin; }; }; } } }//package
Section 412
//_RadioButtonStyle (_RadioButtonStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _RadioButtonStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("RadioButton"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("RadioButton", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.downSkin = null; this.iconColor = 2831164; this.cornerRadius = 7; this.selectedDownIcon = null; this.selectedUpSkin = null; this.overIcon = null; this.skin = null; this.upSkin = null; this.selectedDownSkin = null; this.selectedOverIcon = null; this.selectedDisabledIcon = null; this.textAlign = "left"; this.horizontalGap = 5; this.downIcon = null; this.icon = RadioButtonIcon; this.overSkin = null; this.disabledIcon = null; this.selectedDisabledSkin = null; this.upIcon = null; this.paddingLeft = 0; this.paddingRight = 0; this.fontWeight = "normal"; this.selectedUpIcon = null; this.disabledSkin = null; this.selectedOverSkin = null; }; }; } } }//package
Section 413
//_RichTextEditorStyle (_RichTextEditorStyle) package { import mx.core.*; import mx.styles.*; public class _RichTextEditorStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("RichTextEditor"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("RichTextEditor", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.textAreaStyleName = "richTextEditorTextAreaStyle"; }; }; } } }//package
Section 414
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 415
//_ScrollBarStyle (_ScrollBarStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ScrollBarStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ScrollBar"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ScrollBar", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.thumbOffset = 0; this.paddingTop = 0; this.borderColor = 12040892; this.trackColors = [9738651, 0xE7E7E7]; this.trackSkin = ScrollTrackSkin; this.downArrowSkin = ScrollArrowSkin; this.cornerRadius = 4; this.upArrowSkin = ScrollArrowSkin; this.paddingLeft = 0; this.paddingBottom = 0; this.thumbSkin = ScrollThumbSkin; this.paddingRight = 0; }; }; } } }//package
Section 416
//_SwatchPanelStyle (_SwatchPanelStyle) package { import mx.core.*; import mx.styles.*; public class _SwatchPanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("SwatchPanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("SwatchPanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.swatchGridBackgroundColor = 0; this.previewHeight = 22; this.borderColor = 10856878; this.paddingTop = 4; this.swatchWidth = 12; this.backgroundColor = 15066855; this.highlightColor = 0xFFFFFF; this.textFieldStyleName = "swatchPanelTextField"; this.swatchHighlightSize = 1; this.swatchHeight = 12; this.fontSize = 11; this.previewWidth = 45; this.verticalGap = 0; this.shadowColor = 5068126; this.paddingLeft = 5; this.swatchBorderSize = 1; this.paddingRight = 5; this.swatchBorderColor = 0; this.swatchGridBorderSize = 0; this.columnCount = 20; this.textFieldWidth = 72; this.swatchHighlightColor = 0xFFFFFF; this.horizontalGap = 0; this.paddingBottom = 5; }; }; } } }//package
Section 417
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 418
//_SWFLoaderStyle (_SWFLoaderStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _SWFLoaderStyle { private static var _embed_css_Assets_swf___brokenImage_1149841339:Class = _SWFLoaderStyle__embed_css_Assets_swf___brokenImage_1149841339; private static var _embed_css_Assets_swf___brokenImage_254150230:Class = _SWFLoaderStyle__embed_css_Assets_swf___brokenImage_254150230; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("SWFLoader"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("SWFLoader", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "none"; this.brokenImageSkin = _embed_css_Assets_swf___brokenImage_254150230; this.brokenImageBorderSkin = BrokenImageBorderSkin; }; }; } } }//package
Section 419
//_SWFLoaderStyle__embed_css_Assets_swf___brokenImage_1149841339 (_SWFLoaderStyle__embed_css_Assets_swf___brokenImage_1149841339) package { import mx.core.*; public class _SWFLoaderStyle__embed_css_Assets_swf___brokenImage_1149841339 extends SpriteAsset { } }//package
Section 420
//_SWFLoaderStyle__embed_css_Assets_swf___brokenImage_254150230 (_SWFLoaderStyle__embed_css_Assets_swf___brokenImage_254150230) package { import mx.core.*; public class _SWFLoaderStyle__embed_css_Assets_swf___brokenImage_254150230 extends SpriteAsset { } }//package
Section 421
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 422
//_TextAreaStyle (_TextAreaStyle) package { import mx.core.*; import mx.styles.*; public class _TextAreaStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("TextArea"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TextArea", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "solid"; this.verticalScrollBarStyleName = "textAreaVScrollBarStyle"; this.backgroundColor = 0xFFFFFF; this.horizontalScrollBarStyleName = "textAreaHScrollBarStyle"; this.backgroundDisabledColor = 0xDDDDDD; }; }; } } }//package
Section 423
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 424
//_TextInputStyle (_TextInputStyle) package { import mx.core.*; import mx.styles.*; public class _TextInputStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("TextInput"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TextInput", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.backgroundColor = 0xFFFFFF; this.backgroundDisabledColor = 0xDDDDDD; }; }; } } }//package
Section 425
//_TitleWindowStyle (_TitleWindowStyle) package { import mx.core.*; import mx.styles.*; public class _TitleWindowStyle { private static var _embed_css_Assets_swf_CloseButtonDisabled_523287222:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_523287222; private static var _embed_css_Assets_swf_CloseButtonDown_539708435:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_539708435; private static var _embed_css_Assets_swf_CloseButtonOver_978467837:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_978467837; private static var _embed_css_Assets_swf_CloseButtonDown_2050253428:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_2050253428; private static var _embed_css_Assets_swf_CloseButtonUp_871397867:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_871397867; private static var _embed_css_Assets_swf_CloseButtonDisabled_1953733851:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1953733851; private static var _embed_css_Assets_swf_CloseButtonUp_2054117252:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_2054117252; private static var _embed_css_Assets_swf_CloseButtonOver_1945988450:Class = _TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_1945988450; public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("TitleWindow"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("TitleWindow", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.closeButtonDisabledSkin = _embed_css_Assets_swf_CloseButtonDisabled_523287222; this.paddingTop = 4; this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.closeButtonOverSkin = _embed_css_Assets_swf_CloseButtonOver_1945988450; this.closeButtonUpSkin = _embed_css_Assets_swf_CloseButtonUp_871397867; this.closeButtonDownSkin = _embed_css_Assets_swf_CloseButtonDown_2050253428; this.cornerRadius = 8; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 426
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1953733851 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1953733851) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1953733851 extends SpriteAsset { } }//package
Section 427
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_523287222 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_523287222) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_523287222 extends SpriteAsset { } }//package
Section 428
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_2050253428 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_2050253428) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_2050253428 extends SpriteAsset { } }//package
Section 429
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_539708435 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_539708435) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_539708435 extends SpriteAsset { } }//package
Section 430
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_1945988450 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_1945988450) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_1945988450 extends SpriteAsset { } }//package
Section 431
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_978467837 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_978467837) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_978467837 extends SpriteAsset { } }//package
Section 432
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_2054117252 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_2054117252) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_2054117252 extends SpriteAsset { } }//package
Section 433
//_TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_871397867 (_TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_871397867) package { import mx.core.*; public class _TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_871397867 extends SpriteAsset { } }//package
Section 434
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 435
//_ToolTipStyle (_ToolTipStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ToolTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ToolTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("ToolTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "toolTip"; this.paddingTop = 2; this.borderColor = 9542041; this.backgroundColor = 16777164; this.borderSkin = ToolTipBorder; this.cornerRadius = 2; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 2; this.backgroundAlpha = 0.95; this.paddingRight = 4; }; }; } } }//package
Section 436
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 437
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 438
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 439
//en_US$collections_properties (en_US$collections_properties) package { import mx.resources.*; public class en_US$collections_properties extends ResourceBundle { public function en_US$collections_properties(){ super("en_US", "collections"); } override protected function getContent():Object{ var _local1:Object = {findCondition:"Find criteria must contain all sort fields leading up to '{0}'.", noComparatorSortField:"Cannot determine comparator for SortField with name '{0}'.", outOfBounds:"Index '{0}' specified is out of bounds.", nonUnique:"Non-unique values in items.", incorrectAddition:"Attempt to add an item already in the view.", findRestriction:"Find criteria must contain at least one sort field value.", invalidType:"Incorrect type. Must be of type XML or a XMLList that contains one XML object. ", unknownMode:"Unknown find mode.", invalidIndex:"Invalid index: '{0}'.", invalidRemove:"Cannot remove when current is beforeFirst or afterLast.", unknownProperty:"Unknown Property: '{0}'.", invalidInsert:"Cannot insert when current is beforeFirst.", itemNotFound:"Cannot find when view is not sorted.", bookmarkInvalid:"Bookmark no longer valid.", noComparator:"Cannot determine comparator for '{0}'.", invalidCursor:"Cursor no longer valid.", noItems:"No items to search.", bookmarkNotFound:"Bookmark is not from this view."}; return (_local1); } } }//package
Section 440
//en_US$containers_properties (en_US$containers_properties) package { import mx.resources.*; public class en_US$containers_properties extends ResourceBundle { public function en_US$containers_properties(){ super("en_US", "containers"); } override protected function getContent():Object{ var _local1:Object = {noColumnsFound:"No ConstraintColumns found.", noRowsFound:"No ConstraintRows found.", rowNotFound:"ConstraintRow '{0}' not found.", columnNotFound:"ConstraintColumn '{0}' not found."}; return (_local1); } } }//package
Section 441
//en_US$controls_properties (en_US$controls_properties) package { import mx.resources.*; public class en_US$controls_properties extends ResourceBundle { public function en_US$controls_properties(){ super("en_US", "controls"); } override protected function getContent():Object{ var _local1:Object = {undefinedParameter:"CuePoint parameter undefined.", nullURL:"Null URL sent to VideoPlayer.load.", incorrectType:"Type must be 0, 1 or 2.", okLabel:"OK", noLabel:"No", wrongNumParams:"Num params must be number.", wrongDisabled:"Disabled must be number.", wrongTime:"Time must be number.", dayNamesShortest:"S,M,T,W,T,F,S", wrongType:"Type must be number.", firstDayOfWeek:"0", rootNotSMIL:"URL: '{0}' Root node not smil: '{1}'.", errorMessages:"Unable to make connection to server or to find FLV on server.,No matching cue point found.,Illegal cue point.,Invalid seek.,Invalid contentPath.,Invalid XML.,No bitrate match; must be no default FLV.,Cannot delete default VideoPlayer.", unexpectedEnd:"Unexpected end of cuePoint param string.", rootNotFound:"URL: '{0}' No root node found; if file is an flv, it must have a .flv extension.", errWrongContainer:"ERROR: The dataProvider of '{0}' must not contain objects of type flash.display.DisplayObject.", invalidCall:"Cannot call reconnect on an http connection.", cancelLabel:"Cancel", errWrongType:"ERROR: The dataProvider of '{0}' must be String, ViewStack, Array, or IList.", badArgs:"Bad args to _play.", missingRoot:"URL: '{0}' No root node found; if URL is for an FLV, it must have a .flv extension and take no parameters.", notLoadable:"Unable to load '{0}'.", wrongName:"Name cannot be undefined or null.", wrongTimeName:"Time must be number and/or name must not be undefined or null.", yesLabel:"Yes", undefinedArray:"CuePoint.array undefined.", missingProxy:"URL: '{0}' fpad xml requires proxy tag.", unknownInput:"Unknown inputType '{0}'.", missingAttributeSrc:"URL: '{0}' Attribute src is required in '{1}' tag.", yearSymbol:"", wrongIndex:"CuePoint.index must be number between -1 and cuePoint.array.length.", notImplemented:"'{0}' not implemented yet.", label:"LOADING %3%%", wrongFormat:"Unexpected cuePoint parameter format.", tagNotFound:"URL: '{0}' At least one video of ref tag is required.", unsupportedMode:"IMEMode '{0}' not supported.", cannotDisable:"Cannot disable actionscript cue points.", missingAttributes:"URL: '{0}' Tag '{1}' requires attributes id, width, and height. Width and height must be numbers greater than or equal to 0.", notfpad:"URL: '{0}' Root node not fpad."}; return (_local1); } } }//package
Section 442
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 443
//en_US$effects_properties (en_US$effects_properties) package { import mx.resources.*; public class en_US$effects_properties extends ResourceBundle { public function en_US$effects_properties(){ super("en_US", "effects"); } override protected function getContent():Object{ var _local1:Object = {incorrectTrigger:"The Zoom effect can not be triggered by a moveEffect trigger.", incorrectSource:"Source property must be a Class or String."}; return (_local1); } } }//package
Section 444
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 445
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package
Section 446
//FlashIRC (FlashIRC) package { import com.eightlabs.IRCLib.events.*; import flash.events.*; import com.eightlabs.rambler.events.*; import mx.events.*; import mx.core.*; import mx.binding.*; import com.eightlabs.rambler.views.*; import mx.controls.*; import com.eightlabs.IRCLib.*; import com.eightlabs.rambler.controllers.*; import flash.text.*; import com.eightlabs.utilities.advertisements.*; import flash.utils.*; import flash.display.*; import com.eightlabs.rambler.core.*; import com.eightlabs.rambler.*; import flash.geom.*; import com.eightlabs.utilities.*; import com.eightlabs.utilities.text.*; import com.eightlabs.rambler.custom.kd01.views.*; import flash.net.*; import flash.accessibility.*; import flash.debugger.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.profiler.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import mx.styles.*; import com.eightlabs.xmlrpc.*; import com.eightlabs.xmlrpc.util.*; import com.eightlabs.xmlrpc.events.*; public class FlashIRC extends Application { public var userName:String; public var pendingBan:XlineEvent; public var adLoader:AdLoader; public var defaultTheme:String;// = "night" public var joinRoom:String; public var userID:String;// = "" public var reconnecting:Boolean;// = false public var defaultFont:String;// = "15" public var browserURL:String; public var timeStamps:Boolean;// = false public var roomListVisible:Boolean;// = true public var handshakeComplete:Boolean; public var unregisteredPM:Boolean;// = false public var ramblerGUI:rambler; public var cancelled:Boolean;// = false public var customId:String;// = null public var DictReady:Boolean;// = false public var authRequired:Boolean;// = false public var clientVersion:String;// = "2.1.765" public var pendingKill:KillEvent; public var resolution:String; public var airClient:Boolean;// = false public var defaultRoom:String; public var StyleSheetsReady:Boolean;// = false public var flashVersion:String; public var passWord:String; public var ircLib:IRCLib; public var operatingSystem:String; public var browserName:String; public var browserVersion:String; public var advancedView:Boolean;// = false public var RamblerGUIReady:Boolean;// = false private var _documentDescriptor_:UIComponentDescriptor; mx_internal static var _FlashIRC_StylesInit_done:Boolean = false; public function FlashIRC(){ _documentDescriptor_ = new UIComponentDescriptor({type:Application}); super(); mx_internal::_document = this; if (!this.styleDeclaration){ this.styleDeclaration = new CSSStyleDeclaration(); }; this.styleDeclaration.defaultFactory = function ():void{ this.paddingBottom = 0; this.paddingLeft = 0; }; mx_internal::_FlashIRC_StylesInit(); this.layout = "absolute"; this.enabled = false; this.addEventListener("creationComplete", ___FlashIRC_Application1_creationComplete); } private function noNickGivenEvent(_arg1:NoNickGivenEvent):void{ debug.write("noNickGivenEvent"); ramblerGUI.windowManager.ChangeName.pop(handshakeComplete); } public function actionEvent(_arg1:ActionEvent):void{ var _local2:Object = new Object(); if (_arg1.destination.substring(0, 1) == "#"){ _local2["roomname"] = _arg1.destination.substring(1); _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); _local2["userstyle"] = (ramblerGUI.roomsManager.getRoomUserStyle(_local2["roomname"], _local2["username"]) + "-RoomAction"); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomAction", _local2)); } else { _local2["recipientname"] = _arg1.destination.substring(1); _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); _local2["userstyle"] = "Other-PrivateAction"; ramblerGUI.privatesManager.addPrivate(_local2["username"]); }; } public function servicesRoomRegistrationEvent(_arg1:ServicesRoomRegistrationEvent):void{ var _local3:String; debug.write("ServicesRoomRegistrationEvent has been caught."); if (ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomReg.roomName.toLowerCase())) == null){ ramblerGUI.modalManager.addModal(("roomSettingsModal" + _arg1.roomReg.roomName.toLowerCase()), RoomSettingsWindow, true); }; var _local2:RoomSettingsWindow = RoomSettingsWindow(ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomReg.roomName.toLowerCase()))); _local2.roomName = _arg1.roomReg.roomName; _local2.txtCreator.text = _arg1.roomReg.createdBy; _local2.txtRegisterDate.text = _arg1.roomReg.createdOn; debug.write(((_arg1.roomReg.createdBy.toLowerCase() + " == ") + this.userName.toLowerCase())); if (_arg1.roomReg.createdBy.toLowerCase() == this.userName.toLowerCase()){ _local2.opPlus.enabled = true; _local2.opMinus.enabled = true; }; for (_local3 in _arg1.roomReg.sopList) { _local2.addOpData("sop", _arg1.roomReg.sopList[_local3]); if (_arg1.roomReg.sopList[_local3].toLowerCase() == this.userName.toLowerCase()){ _local2.opPlus.enabled = true; _local2.opMinus.enabled = true; }; }; for (_local3 in _arg1.roomReg.aopList) { _local2.addOpData("aop", _arg1.roomReg.aopList[_local3]); }; for (_local3 in _arg1.roomReg.hopList) { _local2.addOpData("hop", _arg1.roomReg.hopList[_local3]); }; for (_local3 in _arg1.roomReg.vopList) { _local2.addOpData("vop", _arg1.roomReg.vopList[_local3]); }; } private function roomTopicChangeRequest(_arg1:RoomTopicChangeRequest):void{ ircLib.send.topic(("#" + _arg1.roomName), TextFormatting.htmlToIRC(_arg1.topicString)); } public function servicesRoomRegSuccess(_arg1:ServicesRoomRegSuccess):void{ ramblerGUI.showRoomReg(false); ramblerGUI.roomsManager.addActiveMessage(("! You have successfully registered: " + _arg1.room)); } private function joinRoomRequestEvent(_arg1:JoinRoomRequestEvent):void{ ircLib.send.join(_arg1.roomName); } public function nickNotRegistered(_arg1:NickNotRegistered):void{ ramblerGUI.showNickReg(true); ramblerGUI.showNickChangePasswordItem(false); } private function loginCancelEvent(_arg1:Event):void{ cancelled = true; reInitApp(); } public function servicesAutoOpFailureRegNicks(_arg1:ServicesAutoOpFailureRegNicks):void{ Alert.show("You may only add registered nicknames to the auto-op list."); } private function nickChangePasswordRequestEvent(_arg1:NickChangePasswordEvent):void{ debug.write(((("Changing password for: " + this.userName) + " to: ") + _arg1.password)); ircLib.send.changePassword(this.userName, _arg1.password); } public function topicChangeEvent(_arg1:TopicChangeEvent):void{ var _local2:Object = new Object(); _local2["username"] = _arg1.prefixName; _local2["timestamp"] = _arg1.eventTimeStamp.toLocaleString(); _local2["topic"] = TextFormatting.ircToHTML(_arg1.message); _local2["roomname"] = _arg1.roomName; ramblerGUI.roomsManager.setTopic(_arg1.roomName.substring(1), TextFormatting.ircToHTML(_arg1.message)); ramblerGUI.roomsManager.setTopicAltText(_arg1.roomName.substring(1), TextFormatter.getText("RoomTopicSetBy", _local2)); ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), TextFormatter.getText("RoomTopicChangedMessage", _local2)); } private function roomModeEvent(_arg1:RoomModeEvent):void{ var _local2:Object; var _local3:RoomSettingsWindow; if (ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase())) == null){ for each (_local2 in _arg1.modes) { if (_local2.mode == "r"){ ramblerGUI.showRoomReg(false); trace(("RoomModeEvent: " + _arg1.roomName)); ramblerGUI.roomsManager.setRoomRegistered(_arg1.roomName.substring(1), true); }; }; } else { debug.write(("InputHandler received modes for: " + _arg1.roomName.substring(1).toLowerCase())); _local3 = RoomSettingsWindow(ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase()))); for each (_local2 in _arg1.modes) { _local3.setMode(_local2); }; _local3.modesLoaded = true; _local3.isLoaded(); }; } public function topicInfoEvent(_arg1:TopicInfoEvent):void{ var _local2:Object = new Object(); _local2["username"] = _arg1.nickName; _local2["timestamp"] = _arg1.timeStamp.toLocaleString(); ramblerGUI.roomsManager.setTopicAltText(_arg1.roomName.substring(1), TextFormatter.getText("RoomTopicSetBy", _local2)); } private function changeNickRequestEvent(_arg1:ChangeNickRequestEvent):void{ debug.write("changeNickRequestEvent"); ramblerGUI.windowManager.ChangeName.pop(!(authRequired)); } private function tourEvent(_arg1:TourEvent):void{ ircLib.send.join(_arg1.newRoom); } private function nickRegistrationRequestEvent(_arg1:NickRegistrationEvent):void{ debug.write(((("Registering nickname: " + this.userName) + " with password: ") + _arg1.password)); ircLib.send.registerNick(this.userName, _arg1.password, _arg1.email); } public function motdEvent(_arg1:MotdEvent):void{ ramblerGUI.windowManager.Motd.pop(); ramblerGUI.windowManager.Motd.addMotdData(_arg1.message); } private function sendPrivateActionEvent(_arg1:SendPrivateActionEvent):void{ ircLib.send.action(_arg1.recipientName, TextFormatting.htmlToIRC(_arg1.message)); var _local2:Object = new Object(); _local2["userstyle"] = "Self-PrivateAction"; _local2["username"] = userName; _local2["message"] = _arg1.message; ramblerGUI.privatesManager.addMessage(_arg1.recipientName, TextFormatter.getText("SelfPrivateAction", _local2)); } private function roomAuthenticationEvent(_arg1:RoomAuthenticationEvent):void{ ramblerGUI.modalManager.removeModal(("roomKeyModal" + _arg1.roomName.toLowerCase())); ircLib.send.join(_arg1.roomName, _arg1.passWord); } private function optionsProfileEvent(_arg1:OptionsProfileEvent):void{ ircLib.addQueuedEventListener("WhoisEvent", profileWhoisEvent, this); ircLib.send.whois(_arg1.recipientName); ramblerGUI.modalManager.removeModal("userOptionPanel"); } private function tabAllClosedEvent(_arg1:TabAllClosedEvent):void{ if (roomListVisible){ ircLib.send.list(); } else { reInitApp(); }; } private function sendRoomCommandEvent(_arg1:SendRoomCommandEvent):void{ new CommandParser(("#" + _arg1.roomName), _arg1.command, _arg1.arguments); } public function nickErrorEvent(_arg1:BadNickEvent):void{ debug.write("nickErrorEvent"); ramblerGUI.windowManager.ChangeName.pop(handshakeComplete); } private function optionsHalfopEvent(_arg1:OptionsHalfopEvent):void{ if (_arg1.status){ ircLib.send.mode("+h", ("#" + _arg1.roomName), _arg1.recipientName); } else { ircLib.send.mode("-h", ("#" + _arg1.roomName), _arg1.recipientName); }; ramblerGUI.modalManager.removeModal("userOptionPanel"); } public function servicesAutoOpDelete(_arg1:ServicesAutoOpDelete):void{ } private function modalManagerEvent(_arg1:Event):void{ ramblerGUI.roomsManager.inputFocus(); } private function saveRoomSettings(_arg1:Event):void{ } public function listEndEvent(_arg1:ListEndEvent):void{ ramblerGUI.windowManager.ListRooms.endListRoomsData(); } public function reInitApp():void{ debug.write("Reinitializing Rambler GUI."); this.passWord = null; this.userName = null; ircLib.socket.disconnect(); ircLib = new IRCLib(); ramblerGUI.modalManager.removeAllModals(); this.removeChild(ramblerGUI); ramblerGUI = new rambler(); ramblerGUI.initialize(); ramblerGUI.percentHeight = 100; ramblerGUI.percentWidth = 100; this.addChild(ramblerGUI); ramblerGUI.addEventListener("ramblerGUIReady", ramblerGUIReady); } public function addGUIEventListeners():void{ ramblerGUI.roomsManager.addEventListener("ServicesListEvent", sendServicesList); ramblerGUI.roomsManager.addEventListener("SendRoomMessageEvent", sendRoomMessageEvent); ramblerGUI.roomsManager.addEventListener("SendRoomActionEvent", sendRoomActionEvent); ramblerGUI.roomsManager.addEventListener("SendRoomCommandEvent", sendRoomCommandEvent); ramblerGUI.roomsManager.addEventListener("OptionRequestEvent", optionRequestEvent); ramblerGUI.roomsManager.addEventListener("RoomCloseEvent", roomCloseEvent); ramblerGUI.roomsManager.addEventListener("RoomUserQuitEvent", roomUserQuitEvent); ramblerGUI.roomsManager.addEventListener("RoomUserRenameEvent", roomUserRenameEvent); ramblerGUI.privatesManager.addEventListener("SendPrivateActionEvent", sendPrivateActionEvent); ramblerGUI.privatesManager.addEventListener("SendPrivateMessageEvent", sendPrivateMessageEvent); ramblerGUI.privatesManager.addEventListener("SendPrivateCommandEvent", sendPrivateCommandEvent); ramblerGUI.modalManager.addEventListener("RoomModeChangeRequest", roomModeChangeRequest); ramblerGUI.modalManager.addEventListener("RoomTopicChangeRequest", roomTopicChangeRequest); ramblerGUI.modalManager.addEventListener("RoomServicesDelOpRequest", roomServicesDelOpRequest); ramblerGUI.modalManager.addEventListener("RoomServicesAddOpRequest", roomServicesAddOpRequest); ramblerGUI.umPanel.addEventListener("TabAllClosedEvent", tabAllClosedEvent); ramblerGUI.windowManager.addEventListener("JoinRoomRequestEvent", joinRoomRequestEvent); ramblerGUI.windowManager.addEventListener("ListRoomsRequestEvent", listRoomsRequestEvent); ramblerGUI.windowManager.addEventListener("AuthenticateEvent", authenticateEvent); ramblerGUI.windowManager.addEventListener("NickChangeEvent", nickChangeEvent); ramblerGUI.windowManager.addEventListener("ChangeNickRequestEvent", changeNickRequestEvent); ramblerGUI.modalManager.addEventListener("RoomAuthenticationEvent", roomAuthenticationEvent); ramblerGUI.windowManager.addEventListener("NickRegistrationEvent", nickRegistrationRequestEvent); ramblerGUI.windowManager.addEventListener("NickChangePasswordEvent", nickChangePasswordRequestEvent); ramblerGUI.windowManager.addEventListener("RoomRegistrationEvent", roomRegistrationRequestEvent); } private function roomModeChangeRequest(_arg1:RoomModeChangeRequest):void{ ircLib.send.mode(_arg1.modeString, ("#" + _arg1.roomName)); } public function nickRegistered(_arg1:NickRegistered):void{ ramblerGUI.showNickReg(false); ramblerGUI.showNickChangePasswordItem(true); } public function pingEvent(_arg1:PingEvent):void{ } private function socketClose(_arg1:Event):void{ debug.write("Checking for pending kills/bans before reconnecting."); if (pendingBan != null){ reconnecting = false; debug.write("Holy crow! You WERE banned!"); reInitApp(); } else { reconnecting = true; ramblerGUI.roomsManager.addMessageAll("Attempting to resolve connectivity related issues..."); ramblerGUI.modalManager.removeModal("loginProgressWindow"); ramblerGUI.modalManager.addModal("loginProgressWindow", IndeterminateProgressWindow, false); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).addEventListener("cancel", loginCancelEvent); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).title = TextFormatter.getText("ConnectionProgressTitle"); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).progressBar.label = TextFormatter.getText("ConnectionProgressLabel"); }; } private function sendPrivateMessageEvent(_arg1:SendPrivateMessageEvent):void{ ircLib.send.privmsg(_arg1.recipientName, TextFormatting.htmlToIRC(_arg1.message)); var _local2:Object = new Object(); _local2["userstyle"] = "Self-PrivateMessage"; _local2["username"] = userName; _local2["message"] = _arg1.message; ramblerGUI.privatesManager.addMessage(_arg1.recipientName, TextFormatter.getText("SelfPrivateMessage", _local2)); } public function nickDoubleClickNotRegistered(_arg1:Event):void{ ircLib.removeQueuedEventListener("Event", nickDoubleClickRegistered, this); debug.write("Your nickname is not registered."); ramblerGUI.windowManager.RegisterName.pop(); } public function nameListEvent(_arg1:NameListEvent):void{ ramblerGUI.roomsManager.clearRoomUsers(_arg1.roomName.substring(1)); var _local2:int; while (_local2 < _arg1.nameList.length) { if (_arg1.nameList[_local2].name.toLowerCase() != userName.toLowerCase()){ ramblerGUI.roomsManager.addUser(_arg1.roomName.substring(1), _arg1.nameList[_local2].name, false, _arg1.nameList[_local2].voice, _arg1.nameList[_local2].op, _arg1.nameList[_local2].halfop, false); } else { ramblerGUI.roomsManager.addUser(_arg1.roomName.substring(1), _arg1.nameList[_local2].name, false, _arg1.nameList[_local2].voice, _arg1.nameList[_local2].op, _arg1.nameList[_local2].halfop, true); }; _local2++; }; } public function modeEventRoomRegistered(_arg1:ModeEventRoomRegistered):void{ ramblerGUI.showRoomReg(false); trace(("ModeEventRoomRegistered: " + _arg1.roomName)); ramblerGUI.roomsManager.setRoomRegistered(_arg1.roomName.substring(1), true); } public function welcomeEvent(_arg1:WelcomeEvent):void{ if (((reconnecting) && (handshakeComplete))){ ramblerGUI.modalManager.removeModal("loginProgressWindow"); ramblerGUI.roomsManager.reJoinAll(); } else { ramblerGUI.modalManager.removeModal("loginProgressWindow"); handshakeComplete = true; ramblerGUI.rightPanel.visible = true; if (!Application.application.unregisteredPM){ ircLib.send.raw((("MODE " + userName) + " +R")); }; ircLib.send.join(joinRoom); }; } private function nickInUseEvent(_arg1:NickInUseEvent):void{ debug.write("nickInUseEvent"); ramblerGUI.windowManager.ChangeName.pop(handshakeComplete); } public function adTimerHandler(_arg1:TimerEvent):void{ this.setAds(); } private function optionRequestEvent(_arg1:OptionRequestEvent):void{ if (this.userName.toLowerCase() == _arg1.nickName.toLowerCase()){ if (_arg1.nickName.toLowerCase().substr(0, 5) == "guest"){ debug.write("You're logged in as a guest."); ramblerGUI.windowManager.ChangeName.pop(); } else { ircLib.addQueuedEventListener("Event", nickDoubleClickRegistered, this); ircLib.addQueuedEventListener("Event", nickDoubleClickNotRegistered, this); ircLib.send.privmsg("services", ("list " + _arg1.nickName.toLowerCase())); }; } else { ramblerGUI.modalManager.addModal("userOptionPanel", UserOptionPanel, true, false, false, false); UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).enabled = false; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).title = ("Options for: " + _arg1.nickName); UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).userName = _arg1.nickName; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).roomName = ramblerGUI.roomsManager.activeRoomName; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).userIsOp = ramblerGUI.roomsManager.getRoomUser(ramblerGUI.roomsManager.activeRoomName, this.userName).op; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).userIsHalfOp = ramblerGUI.roomsManager.getRoomUser(ramblerGUI.roomsManager.activeRoomName, this.userName).halfop; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).recipientIsOp = ramblerGUI.roomsManager.getRoomUser(ramblerGUI.roomsManager.activeRoomName, _arg1.nickName).op; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).recipientIsHalfop = ramblerGUI.roomsManager.getRoomUser(ramblerGUI.roomsManager.activeRoomName, _arg1.nickName).halfop; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).recipientIsVoice = ramblerGUI.roomsManager.getRoomUser(ramblerGUI.roomsManager.activeRoomName, _arg1.nickName).voice; UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).ready(); UserOptionPanel(ramblerGUI.modalManager.getModal("userOptionPanel")).enabled = true; ramblerGUI.modalManager.addEventListener("OptionsOpEvent", optionsOpEvent); ramblerGUI.modalManager.addEventListener("OptionsVoiceEvent", optionsVoiceEvent); ramblerGUI.modalManager.addEventListener("OptionsRemoveEvent", optionsRemoveEvent); ramblerGUI.modalManager.addEventListener("OptionsHalfopEvent", optionsHalfopEvent); ramblerGUI.modalManager.addEventListener("OptionsProfileEvent", optionsProfileEvent); ramblerGUI.modalManager.addEventListener("OptionsPrivateEvent", optionsPrivateEvent); }; } public function dictLoaded(_arg1:DictLoadedEvent):void{ TextFormatter.dictionary = _arg1.dictionary; DictReady = true; textReady(); } private function listRoomsRequestEvent(_arg1:ListRoomsRequestEvent):void{ ircLib.send.list(); } private function nickChangeEvent(_arg1:NickChangeEvent):void{ if (!handshakeComplete){ this.userName = _arg1.newNickName; this.ircLib.setUsername(_arg1.newNickName); }; ircLib.send.nick(_arg1.newNickName); } public function privMsgEvent(_arg1:PrivmsgEvent):void{ var _local2:Object = new Object(); if (_arg1.destination.substring(0, 1) == "#"){ _local2["roomname"] = _arg1.destination.substring(1); _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); _local2["userstyle"] = (ramblerGUI.roomsManager.getRoomUserStyle(_local2["roomname"], _local2["username"]) + "-RoomMessage"); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomMessage", _local2)); } else { _local2["userstyle"] = "Other-PrivateMessage"; _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); ramblerGUI.privatesManager.addPrivate(_local2["username"]); ramblerGUI.privatesManager.addMessage(_local2["username"], TextFormatter.getText("OtherPrivateMessage", _local2)); }; } public function authAcceptedEvent(_arg1:AuthAcceptedEvent):void{ authRequired = true; debug.write("Auth Accepted. Sending join again."); ircLib.send.join(joinRoom); } public function partEvent(_arg1:PartEvent):void{ var _local2:Object = new Object(); _local2["roomname"] = _arg1.roomName.substring(1); _local2["username"] = _arg1.prefixName; _local2["userid"] = _arg1.prefixUser; _local2["hostname"] = _arg1.prefixHost; _local2["userstyle"] = ramblerGUI.roomsManager.getRoomUserStyle(_local2["roomname"], _local2["username"]); if (_arg1.message == null){ _local2["message"] = ""; } else { _local2["message"] = _arg1.message; }; if (_arg1.prefixName.toLowerCase() == userName.toLowerCase()){ ramblerGUI.roomsManager.removeRoom(_local2["roomname"]); } else { ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomPart", _local2)); ramblerGUI.roomsManager.removeUser(_local2["roomname"], _local2["username"]); }; } public function authUnacceptedEvent(_arg1:AuthUnacceptedEvent):void{ this.passWord = null; ramblerGUI.windowManager.Auth.pop(!(authRequired)); } public function authRequiredEvent(_arg1:AuthRequiredEvent):void{ ramblerGUI.showNickReg(false); authRequired = true; if (passWord.length > 0){ ircLib.send.privmsg("NickServ", ("IDENTIFY " + passWord)); } else { ramblerGUI.windowManager.Auth.pop(!(authRequired)); }; } private function nickDoubleClickRegistered(_arg1:Event):void{ ircLib.removeQueuedEventListener("Event", nickDoubleClickNotRegistered, this); debug.write("Your NickName is registered."); } mx_internal function _FlashIRC_StylesInit():void{ var _local1:CSSStyleDeclaration; var _local2:Array; if (mx_internal::_FlashIRC_StylesInit_done){ return; }; mx_internal::_FlashIRC_StylesInit_done = true; var _local3 = StyleManager; _local3.mx_internal::initProtoChainRoots(); } public function servicesGhostFailure(_arg1:ServicesGhostFailure):void{ debug.write("Ghosting failed. You need to change your name."); ramblerGUI.windowManager.ChangeName.pop(handshakeComplete); } private function roomKeyEvent(_arg1:RoomKeyEvent):void{ var _local2:RoomKeyWindow = RoomKeyWindow(ramblerGUI.modalManager.addModal(("roomKeyModal" + _arg1.roomName.toLowerCase()), RoomKeyWindow, true)); _local2.varRoomName = _arg1.roomName; } private function sendRoomActionEvent(_arg1:SendRoomActionEvent):void{ ircLib.send.action(("#" + _arg1.roomName), TextFormatting.htmlToIRC(_arg1.message)); var _local2:Object = new Object(); _local2["userstyle"] = "Self-RoomAction"; _local2["roomname"] = _arg1.roomName; _local2["username"] = userName; _local2["message"] = _arg1.message; ramblerGUI.roomsManager.addMessage(_arg1.roomName, TextFormatter.getText("SelfRoomAction", _local2)); } private function ioError(_arg1:IOErrorEvent):void{ } public function listEntryEvent(_arg1:ListEntryEvent):void{ ramblerGUI.windowManager.ListRooms.addListRoomsData(_arg1.roomName.substring(1), int(_arg1.roomCount), TextFormatting.ircToHTML(_arg1.roomTopic)); } private function sendPrivateCommandEvent(_arg1:SendPrivateCommandEvent):void{ new CommandParser(_arg1.recipientName, _arg1.command, _arg1.arguments); } private function quitEvent(_arg1:QuitEvent):void{ var _local2:Object = new Object(); _local2["username"] = _arg1.prefixName; _local2["userid"] = _arg1.prefixUser; _local2["hostname"] = _arg1.prefixHost; _local2["message"] = _arg1.message; ramblerGUI.roomsManager.quitUser(_arg1.prefixName, _arg1.prefixUser, _arg1.prefixHost, _arg1.message); ramblerGUI.privatesManager.addMessage(_arg1.prefixName, TextFormatter.getText("OtherPrivateQuit", _local2)); } public function styleSheetLoadedRuntime(_arg1:StyleSheetLoadedEvent):void{ var _local2:Object = new Object(); _local2 = _arg1.stylesheet.getStyle(".chatBox"); _local2.fontSize = this.defaultFont; _arg1.stylesheet.setStyle(".chatBox", _local2); TextFormatter.stylesheet = _arg1.stylesheet; TextFormatter.applyStyleSheet(); } private function xlineEvent(_arg1:XlineEvent):void{ var url:String; var dbLoader:URLLoader; var dbRequest:URLRequest; var event = _arg1; debug.write("InputHandler detected a new XlineEvent"); pendingBan = XlineEvent(event); if (event.message == "Sorry, IRC clients are not allowed."){ url = "http://www.everywherechat.com/flashlogs/detectfail.php?"; url = (url + ("nickname=" + this.userName)); url = (url + ("&pk=" + IRCLib.pk)); url = (url + ("&sk=" + this.ircLib.sk)); url = (url + ("&trailingParam=" + this.ircLib.pingParam)); url = (url + ("&username=" + this.ircLib.userName)); dbLoader = new URLLoader(); dbRequest = new URLRequest(url); try { dbLoader.load(dbRequest); } catch(error:Error) { }; }; } override public function initialize():void{ mx_internal::setDocumentDescriptor(_documentDescriptor_); super.initialize(); } public function isonEvent(_arg1:IsonEvent):void{ var _local2:Object = new Object(); _local2["username"] = _arg1.nickName; if (_arg1.isOn){ Alert.show(TextFormatter.getText("UserOnline", _local2)); } else { Alert.show(TextFormatter.getText("UserOffline", _local2)); }; } private function optionsPrivateEvent(_arg1:OptionsPrivateEvent):void{ ramblerGUI.privatesManager.addPrivate(_arg1.recipientName); ramblerGUI.privatesManager.switchToPrivate(_arg1.recipientName); ramblerGUI.modalManager.removeModal("userOptionPanel"); } public function listStartEvent(_arg1:ListStartEvent):void{ ramblerGUI.windowManager.ListRooms.pop(); } public function textReady():void{ if (((DictReady) && (StyleSheetsReady))){ ramblerGUI.initialize(); ramblerGUI.percentHeight = 100; ramblerGUI.percentWidth = 100; this.addChild(ramblerGUI); ramblerGUI.addEventListener("ramblerGUIReady", ramblerGUIReady); }; } public function profileWhoisEvent(_arg1:WhoisEvent):void{ var _local3:String; ramblerGUI.windowManager.Profile.pop(); var _local2:Date = new Date(); _local2.setTime((int(_arg1.whois.loginTime) * 1000)); ramblerGUI.windowManager.Profile.setProfile(_arg1.whois.nickName, _arg1.whois.hostName, _arg1.whois.userName, _arg1.whois.realName, _local2.toLocaleString(), _arg1.whois.idleTime, _arg1.whois.away); for (_local3 in _arg1.whois.rooms) { if (_arg1.whois.rooms[_local3].indexOf("#") > 0){ ramblerGUI.windowManager.Profile.addRoom(_arg1.whois.rooms[_local3].substring(2), _arg1.whois.rooms[_local3].substring(0, 1)); } else { if (_arg1.whois.rooms[_local3].indexOf("#") == 0){ ramblerGUI.windowManager.Profile.addRoom(_arg1.whois.rooms[_local3].substring(1), ""); }; }; }; } private function roomServicesDelOpRequest(_arg1:RoomServicesDelOpRequest):void{ debug.write("RoomServicesDelOpRequest"); ircLib.send.delAutoOp(_arg1.roomName, _arg1.opType, _arg1.nickname); } public function servicesAccessDenied(_arg1:ServicesAccessDenied):void{ ramblerGUI.roomsManager.addActiveMessage("! Access Denied ¡"); } public function servicesNickRegSuccess(_arg1:ServicesNickRegSuccess):void{ ramblerGUI.roomsManager.addActiveMessage(("! You have successfully registered: " + userName)); } private function roomBanListEntry(_arg1:RoomBanListEntry):void{ if (ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase())) == null){ debug.write(("roomBanListEntry creating new roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase())); ramblerGUI.modalManager.addModal(("roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase()), RoomSettingsWindow, true); }; var _local2:RoomSettingsWindow = RoomSettingsWindow(ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.substring(1).toLowerCase()))); _local2.addBanData(_arg1.userMask, _arg1.setter, _arg1.timeStamp.toLocaleString()); } public function noticeEvent(_arg1:NoticeEvent):void{ var _local2:Object = new Object(); if (_arg1.destination.substring(0, 1) == "#"){ _local2["roomname"] = _arg1.destination.substring(1); _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); _local2["userstyle"] = ramblerGUI.roomsManager.getRoomUserStyle(_local2["roomname"], _local2["username"]); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomMessage", _local2)); } else { _local2["msgtype"] = "NOTICE"; _local2["username"] = _arg1.prefixName; _local2["message"] = TextFormatting.ircToHTML(_arg1.message); _local2["userstyle"] = "Other-PrivateMessage"; ramblerGUI.roomsManager.addActiveMessage(TextFormatter.getText("ActiveRoomMessage", _local2)); }; } private function roomRegistrationRequestEvent(_arg1:RoomRegistrationEvent):void{ debug.write(("Registering channel: " + ramblerGUI.roomsManager.activeRoomName)); ircLib.send.registerRoom(ramblerGUI.roomsManager.activeRoomName, _arg1.password); } private function roomOptionsRemoveUserEvent(_arg1:RoomOptionsRemoveUserEvent):void{ ircLib.send.kick(("#" + _arg1.roomName), _arg1.nickName); if (_arg1.ban){ ircLib.send.ban(("#" + _arg1.roomName), _arg1.userMask, _arg1.perm); }; } public function topicEvent(_arg1:TopicEvent):void{ ramblerGUI.roomsManager.setTopic(_arg1.roomName.substring(1), TextFormatting.ircToHTML(_arg1.message)); } public function getClientParams():void{ operatingSystem = Capabilities.os; flashVersion = Capabilities.version; resolution = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); debug.write((((((("FlashIRC Starting on " + operatingSystem) + " Flash version: ") + flashVersion) + " with a screen resolution of ") + resolution) + ".")); if (ExternalInterface.available){ try { ExternalInterface.addCallback("joinRoom", jsJoinRoom); browserURL = ExternalInterface.call("function(){return window.location.href;}"); browserName = ExternalInterface.call("function(){return navigator.appName;}"); browserVersion = ExternalInterface.call("function(){return navigator.appVersion;}"); } catch(error:SecurityError) { debug.write((("A SecurityError occurred: " + error.message) + "\n")); } catch(error:Error) { debug.write((("An Error occurred: " + error.message) + "\n")); }; } else { debug.write("External interface is not available for this container."); }; if (Application.application.parameters.fontSize != null){ this.defaultFont = Application.application.parameters.fontSize; }; if (Application.application.parameters.theme != null){ this.defaultTheme = Application.application.parameters.theme; }; if (Application.application.parameters.customId != null){ this.customId = Application.application.parameters.customId; }; if (Application.application.parameters.facebook == "true"){ this.userID = "facebook"; }; if (Application.application.parameters.roomList == "false"){ roomListVisible = false; }; if (Application.application.parameters.key != null){ }; if (Application.application.parameters.defaultRoom != null){ this.defaultRoom = Application.application.parameters.defaultRoom; }; if (Application.application.parameters.userName != null){ this.userName = Application.application.parameters.userName; }; if (Application.application.parameters.passWord != null){ this.passWord = Application.application.parameters.passWord; }; } private function writeRequest(_arg1:String):void{ this.ircLib.send.join(_arg1); } public function addIRCLibEventListeners():void{ ircLib.addEventListener("SocketClose", socketClose); ircLib.addEventListener("ioError", ioError); ircLib.addEventListener("ActionEvent", actionEvent); ircLib.addEventListener("BadNickEvent", nickErrorEvent); ircLib.addEventListener("NickInUseEvent", nickInUseEvent); ircLib.addEventListener("NoNickGivenEvent", noNickGivenEvent); ircLib.addEventListener("AuthRequiredEvent", authRequiredEvent); ircLib.addEventListener("AuthAcceptedEvent", authAcceptedEvent); ircLib.addEventListener("AuthUnacceptedEvent", authUnacceptedEvent); ircLib.addEventListener("IsonEvent", isonEvent); ircLib.addEventListener("JoinEvent", joinEvent); ircLib.addEventListener("KickEvent", kickEvent); ircLib.addEventListener("ModeEvent", modeEvent); ircLib.addEventListener("MotdEvent", motdEvent); ircLib.addEventListener("NameListEvent", nameListEvent); ircLib.addEventListener("KillEvent", killEvent); ircLib.addEventListener("XlineEvent", xlineEvent); ircLib.addEventListener("NickEvent", nickEvent); ircLib.addEventListener("TourEvent", tourEvent); ircLib.addEventListener("NoticeEvent", noticeEvent); ircLib.addEventListener("PartEvent", partEvent); ircLib.addEventListener("PrivmsgEvent", privMsgEvent); ircLib.addEventListener("QuitEvent", quitEvent); ircLib.addEventListener("ListStartEvent", listStartEvent); ircLib.addEventListener("ListEntryEvent", listEntryEvent); ircLib.addEventListener("ListEndEvent", listEndEvent); ircLib.addEventListener("TopicChangeEvent", topicChangeEvent); ircLib.addEventListener("TopicEvent", topicEvent); ircLib.addEventListener("TopicInfoEvent", topicInfoEvent); ircLib.addEventListener("WelcomeEvent", welcomeEvent); ircLib.addEventListener("ModeEventOp", modeEventOp); ircLib.addEventListener("ModeEventVoice", modeEventVoice); ircLib.addEventListener("ModeEventHalfop", modeEventHalfop); ircLib.addEventListener("ModeEventBan", modeEventBan); ircLib.addEventListener("ModeEventQuiet", modeEventQuiet); ircLib.addEventListener("RoomModeEvent", roomModeEvent); ircLib.addEventListener("RoomKeyEvent", roomKeyEvent); ircLib.addEventListener("RoomBanListEntry", roomBanListEntry); ircLib.addEventListener("ModeEventRoomRegistered", modeEventRoomRegistered); ircLib.addEventListener("ServicesRoomRegistrationEvent", servicesRoomRegistrationEvent); ircLib.addEventListener("ServicesRoomRegSuccess", servicesRoomRegSuccess); ircLib.addEventListener("ServicesAutoOpAdd", servicesAutoOpAdd); ircLib.addEventListener("ServicesAutoOpDelete", servicesAutoOpDelete); ircLib.addEventListener("ServicesAccessDenied", servicesAccessDenied); ircLib.addEventListener("ServicesGhostFailure", servicesGhostFailure); ircLib.addEventListener("ServicesGhostSuccess", servicesGhostSuccess); ircLib.addEventListener("ServicesNickRegSuccess", servicesNickRegSuccess); ircLib.addEventListener("ServicesAutoOpFailureRegNicks", servicesAutoOpFailureRegNicks); ircLib.addEventListener("ServicesPasswordComplexity", servicesPasswordComplexity); ircLib.addEventListener("NickRegistered", nickRegistered); ircLib.addEventListener("NickNotRegistered", nickNotRegistered); ircLib.addEventListener("PingEvent", pingEvent); } public function joinEvent(_arg1:JoinEvent):void{ var _local2:Object = new Object(); _local2["roomname"] = _arg1.roomName.substring(1); _local2["username"] = _arg1.prefixName; _local2["userid"] = _arg1.prefixUser; _local2["hostname"] = _arg1.prefixHost; if (_arg1.prefixName.toLowerCase() == userName.toLowerCase()){ ramblerGUI.showRoomReg(true); ramblerGUI.roomsManager.addRoom(_local2["roomname"]); ramblerGUI.roomsManager.switchToRoom(_local2["roomname"]); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("SelfRoomJoin", _local2)); } else { ramblerGUI.roomsManager.addUser(_local2["roomname"], _local2["username"], false, false, false, false, false); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomJoin", _local2)); }; } private function inputStyleChanged(_arg1:InputStyleChanged):void{ ramblerGUI.roomsManager.setInputStyles(_arg1.style, _arg1.value); ramblerGUI.privatesManager.setInputStyles(_arg1.style, _arg1.value); } public function modeEvent(_arg1:ModeEvent):void{ } private function loginEvent(_arg1:LoginEvent):void{ if (_arg1.roomName.substring(0, 1) == "#"){ joinRoom = _arg1.roomName; } else { joinRoom = ("#" + _arg1.roomName); }; userName = _arg1.userName; passWord = _arg1.passWord; ramblerGUI.modalManager.removeModal("loginWindow"); ramblerGUI.modalManager.addModal("loginProgressWindow", IndeterminateProgressWindow, false); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).addEventListener("cancel", loginCancelEvent); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).title = TextFormatter.getText("ConnectionProgressTitle"); IndeterminateProgressWindow(ramblerGUI.modalManager.getModal("loginProgressWindow")).progressBar.label = TextFormatter.getText("ConnectionProgressLabel"); ircLib.connect("na.everywherechat.com", 7000, _arg1.userName, Application.application.userID); } public function loadCustomLogin():void{ ramblerGUI.modalManager.addModal("loginWindow", CustomLoginWindow, false); var _local1:CustomLoginWindow = CustomLoginWindow(ramblerGUI.modalManager.getModal("loginWindow")); _local1.addEventListener("LoginEvent", loginEvent); if (this.userName != null){ _local1.txtNick.text = userName; }; if (this.defaultRoom != null){ _local1.defaultRoom = defaultRoom; }; if (((((((!((this.userName == null))) && ((pendingKill == null)))) && ((pendingBan == null)))) && (!(cancelled)))){ if ((((_local1.txtNick.text == "")) || ((_local1.txtNick.text.toLowerCase() == "guest")))){ _local1.txtNick.text = ("Guest" + Math.floor((Math.random() * 9999))); }; _local1.dispatchEvent(new LoginEvent(_local1, _local1.txtNick.text, "", _local1.defaultRoom)); }; } private function modeEventVoice(_arg1:ModeEventVoice):void{ if (_arg1.modeToggle){ ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has made ") + _arg1.subject) + " a speaker.")); } else { ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has removed ") + _arg1.subject) + "'s speaker status.")); }; ramblerGUI.roomsManager.voiceUser(_arg1.roomName.substring(1), _arg1.setter, _arg1.subject, _arg1.modeToggle); } private function modeEventQuiet(_arg1:ModeEventQuiet):void{ if (_arg1.modeToggle){ ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (("! " + _arg1.subject) + " is the founder of this room.")); } else { ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (("! " + _arg1.subject) + " is no longer the founder of this room.")); }; ramblerGUI.roomsManager.opUser(_arg1.roomName.substring(1), _arg1.setter, _arg1.subject, _arg1.modeToggle); } private function sendRoomList(_arg1:Event):void{ ircLib.send.list(); } private function optionsOpEvent(_arg1:OptionsOpEvent):void{ if (_arg1.status){ ircLib.send.mode("+o", ("#" + _arg1.roomName), _arg1.recipientName); } else { ircLib.send.mode("-o", ("#" + _arg1.roomName), _arg1.recipientName); }; ramblerGUI.modalManager.removeModal("userOptionPanel"); } private function sendServicesList(_arg1:ServicesListEvent):void{ if (ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.toLowerCase())) == null){ debug.write(("sendServicesList creating new roomSettingsModal" + _arg1.roomName.toLowerCase())); ramblerGUI.modalManager.addModal(("roomSettingsModal" + _arg1.roomName.toLowerCase()), RoomSettingsWindow, true); }; var _local2:RoomSettingsWindow = RoomSettingsWindow(ramblerGUI.modalManager.getModal(("roomSettingsModal" + _arg1.roomName.toLowerCase()))); _local2.roomName = _arg1.roomName; _local2.enabled = false; ircLib.send.privmsg("ChanServ", ("INFO " + _arg1.roomName)); ircLib.send.privmsg("ChanServ", (("ACCESS " + _arg1.roomName) + " list")); ircLib.send.raw(("mode #" + _arg1.roomName)); ircLib.send.raw((("mode #" + _arg1.roomName) + " q")); ircLib.send.raw((("mode #" + _arg1.roomName) + " b")); } private function authenticateEvent(_arg1:AuthenticateEvent):void{ if (_arg1.passWord.length > 0){ this.passWord = _arg1.passWord; ircLib.send.privmsg("NickServ", ("IDENTIFY " + _arg1.passWord)); }; } private function roomServicesAddOpRequest(_arg1:RoomServicesAddOpRequest):void{ debug.write("RoomServicesAddOpRequest"); ircLib.send.addAutoOp(_arg1.roomName, _arg1.opType, _arg1.nickname); } public function jsJoinRoom(_arg1:String):void{ writeRequest(_arg1); } private function roomCloseEvent(_arg1:RoomCloseEvent):void{ ircLib.send.part(("#" + _arg1.roomName), "This FlashIRC user has left the room."); } private function optionsVoiceEvent(_arg1:OptionsVoiceEvent):void{ if (_arg1.status){ ircLib.send.mode("+v", ("#" + _arg1.roomName), _arg1.recipientName); } else { ircLib.send.mode("-v", ("#" + _arg1.roomName), _arg1.recipientName); }; ramblerGUI.modalManager.removeModal("userOptionPanel"); } public function servicesAutoOpAdd(_arg1:ServicesAutoOpAdd):void{ } public function roomUserRenameEvent(_arg1:RoomUserRenameEvent):void{ var _local2:Object = new Object(); _local2["roomname"] = _arg1.roomName; _local2["username"] = _arg1.oldUserName; _local2["newusername"] = _arg1.newUserName; _local2["userstyle"] = ramblerGUI.roomsManager.getRoomUserStyle(_arg1.roomName, _arg1.newUserName); ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomRename", _local2)); } private function adsLoadedHandler(_arg1:Event):void{ debug.write("ads loaded, loading random ad."); this.setAds(); } private function modeEventBan(_arg1:ModeEventBan):void{ if (_arg1.modeToggle){ ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has banned ") + _arg1.subject) + ".")); } else { ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has removed ban for ") + _arg1.subject) + ".")); }; ramblerGUI.roomsManager.opUser(_arg1.roomName.substring(1), _arg1.setter, _arg1.subject, _arg1.modeToggle); } private function killEvent(_arg1:KillEvent):void{ if (_arg1.destination.toLowerCase() == userName.toLowerCase()){ pendingKill = KillEvent(_arg1); }; } public function ramblerGUIReady(_arg1:Event):void{ RamblerGUIReady = true; ramblerGUI.listRoomsButton.visible = roomListVisible; addIRCLibEventListeners(); addGUIEventListeners(); if (this.customId == "kd01"){ loadCustomLogin(); } else { ramblerGUI.modalManager.addModal("loginWindow", LoginWindow, false); LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).addEventListener("LoginEvent", loginEvent); if (this.userName != null){ LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNick.text = userName; }; if (this.passWord != null){ LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNickPass.text = passWord; }; if (this.defaultRoom != null){ LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtRoom.text = defaultRoom; }; LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).formRoomName.visible = this.roomListVisible; if (((((((!((this.userName == null))) && ((pendingKill == null)))) && ((pendingBan == null)))) && (!(cancelled)))){ if ((((LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNick.text == "")) || ((LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNick.text.toLowerCase() == "guest")))){ LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNick.text = ("Guest" + Math.floor((Math.random() * 9999))); }; LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).dispatchEvent(new LoginEvent(LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")), LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNick.text, LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtNickPass.text, LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")).txtRoom.text)); }; }; var _local2:Object = new Object(); if (pendingBan != null){ debug.write(("kicking off a ban alert: " + pendingBan.message)); _local2["message"] = pendingBan.message; Alert.show(TextFormatter.getText("BanMessage", _local2)); pendingBan = null; }; application.enabled = true; ramblerGUI.roomsManager.addEventListener("InputStyleChanged", inputStyleChanged); ramblerGUI.privatesManager.addEventListener("InputStyleChanged", inputStyleChanged); cancelled = false; debug.write("FlashIRC.mxml loading ads."); adLoader = new AdLoader("http://www.everywherechat.com/resources/ads/adlist.xml"); debug.write("started reading ads"); adLoader.showLogin = false; adLoader.showBox = false; adLoader.addEventListener(Event.COMPLETE, adsLoadedHandler); if (adLoader.AdTimer){ adLoader.AdTimer.start(); adLoader.AdTimer.addEventListener("timer", adTimerHandler); this.adTimerHandler(null); }; } public function ___FlashIRC_Application1_creationComplete(_arg1:FlexEvent):void{ initApp(); } public function roomUserQuitEvent(_arg1:RoomUserQuitEvent):void{ var _local2:Object = new Object(); _local2["roomname"] = _arg1.roomName; _local2["username"] = _arg1.userName; _local2["userid"] = _arg1.prefixUser; _local2["hostname"] = _arg1.prefixHost; if (_arg1.message == null){ _local2["message"] = ""; } else { _local2["message"] = _arg1.message; }; ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("OtherRoomQuit", _local2)); } private function modeEventHalfop(_arg1:ModeEventHalfop):void{ if (_arg1.modeToggle){ ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has made ") + _arg1.subject) + " an assistant host.")); } else { ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has removed ") + _arg1.subject) + "'s assistant host status.")); }; ramblerGUI.roomsManager.halfopUser(_arg1.roomName.substring(1), _arg1.setter, _arg1.subject, _arg1.modeToggle); } public function setAds():void{ var _local1:LoginWindow; if (adLoader.showBox){ ramblerGUI.advertBox.setAd(adLoader.getRandomAd()); }; if (adLoader.showLogin){ _local1 = LoginWindow(ramblerGUI.modalManager.getModal("loginWindow")); if (_local1){ _local1.advertBox.setAd(adLoader.getRandomAd()); }; }; } public function initApp():void{ var so:SharedObject; var dictLoader:DictLoader; var stylesheetLoader:StyleSheetLoader; try { so = SharedObject.getLocal("ewcStorage"); debug.write((("SharedObject is " + so.size) + " bytes")); } catch(e:Error) { debug.write(("Problem getting/setting the SharedObject (flashirc): " + e.message)); }; if (Application.application.url.search(/[htp]{4,4}\:\/\/([abetw]{3,4}\.)?[8abcehlrstwvy]{5,14}\.[cmo]{3,3}\/([acht]{4,4}\/)?[8abcehlprstwvy]{3,14}\.[fsw]{3,3}/i) == -1){ Alert.show("There has been a problem loading the client. This has been recorded, and will be investigated promptly.\n\nPlease e-mail support@everywherechat.com if this is not resolved within 24 hours."); debug.write(("Unapproved swf location: " + url)); } else { if (so.data.block){ Alert.show("There has been a problem loading the client. This has been recorded, and will be investigated promptly.\n\nPlease e-mail support@everywherechat.com if this is not resolved within 24 hours."); debug.write("Generic error"); } else { timeStamps = so.data.timeStamps; advancedView = so.data.advancedView; unregisteredPM = so.data.unregisteredPM; ramblerGUI = new rambler(); ircLib = new IRCLib(); getClientParams(); dictLoader = new DictLoader(); stylesheetLoader = new StyleSheetLoader(); dictLoader.addEventListener("DictLoadedEvent", dictLoaded); stylesheetLoader.addEventListener("StyleSheetLoadedEvent", styleSheetLoaded); if (advancedView){ dictLoader.load("advanced-english"); } else { dictLoader.load("english"); }; StyleManager.loadStyleDeclarations((("http://www.everywherechat.com/" + this.defaultTheme) + ".swf")); stylesheetLoader.load(this.defaultTheme); }; }; } public function servicesGhostSuccess(_arg1:ServicesGhostSuccess):void{ ircLib.send.nick(userName); } public function kickEvent(_arg1:KickEvent):void{ var _local2:Object = new Object(); _local2["roomname"] = _arg1.roomName.substring(1); _local2["kicker"] = _arg1.prefixName; _local2["kicked"] = _arg1.nickName; _local2["userstylekicker"] = ramblerGUI.roomsManager.getRoomUserStyle(_arg1.roomName.substring(1), _arg1.prefixName); _local2["userstylekicked"] = ramblerGUI.roomsManager.getRoomUserStyle(_arg1.roomName.substring(1), _arg1.nickName); if (_arg1.message == null){ _local2["message"] = ""; } else { _local2["message"] = _arg1.message; }; if (_arg1.nickName.toLowerCase() == userName.toLowerCase()){ ramblerGUI.roomsManager.removeRoom(_local2["roomname"]); } else { ramblerGUI.roomsManager.addMessage(_local2["roomname"], TextFormatter.getText("KickMessage", _local2)); ramblerGUI.roomsManager.removeUser(_local2["roomname"], _local2["kicked"]); }; } public function styleSheetLoaded(_arg1:StyleSheetLoadedEvent):void{ StyleSheetsReady = true; var _local2:Object = new Object(); _local2 = _arg1.stylesheet.getStyle(".chatBox"); _local2.fontSize = this.defaultFont; _arg1.stylesheet.setStyle(".chatBox", _local2); TextFormatter.stylesheet = _arg1.stylesheet; textReady(); } private function sendRoomMessageEvent(_arg1:SendRoomMessageEvent):void{ ircLib.send.privmsg(("#" + _arg1.roomName), TextFormatting.htmlToIRC(_arg1.message)); var _local2:Object = new Object(); _local2["userstyle"] = "Self-RoomMessage"; _local2["roomname"] = _arg1.roomName; _local2["username"] = userName; _local2["message"] = _arg1.message; ramblerGUI.roomsManager.addMessage(_arg1.roomName, TextFormatter.getText("SelfRoomMessage", _local2)); } public function nickEvent(_arg1:NickEvent):void{ if (_arg1.prefixName.toLowerCase() == this.userName.toLowerCase()){ debug.write(("You've changed your name to: " + _arg1.nickName)); authRequired = false; this.ircLib.setUsername(_arg1.nickName); this.userName = _arg1.nickName; if (this.userName.toLowerCase().substr(0, 5) != "guest"){ ramblerGUI.showNickReg(true); }; }; var _local2:Object = new Object(); _local2["username"] = _arg1.prefixName; _local2["newusername"] = _arg1.nickName; ramblerGUI.privatesManager.renamePrivate(_arg1.prefixName, _arg1.nickName); ramblerGUI.privatesManager.addMessage(_arg1.nickName, TextFormatter.getText("PrivateNickRename", _local2)); ramblerGUI.roomsManager.renameUser(_arg1.prefixName, _arg1.nickName); } private function modeEventOp(_arg1:ModeEventOp):void{ if (_arg1.modeToggle){ ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has made ") + _arg1.subject) + " a host.")); } else { ramblerGUI.roomsManager.addMessage(_arg1.roomName.substring(1), (((("! " + _arg1.setter) + " has removed ") + _arg1.subject) + "'s host status.")); }; ramblerGUI.roomsManager.opUser(_arg1.roomName.substring(1), _arg1.setter, _arg1.subject, _arg1.modeToggle); } public function servicesPasswordComplexity(_arg1:ServicesPasswordComplexity):void{ ramblerGUI.roomsManager.addActiveMessage("! Registration Failed: Your password is just too easy to guess. You'll need at least 5 characters, and the password cannot be the same as your nickname."); } private function optionsRemoveEvent(_arg1:OptionsRemoveEvent):void{ ramblerGUI.modalManager.removeModal("userOptionPanel"); var _local2:UserOptionRemovePanel = UserOptionRemovePanel(ramblerGUI.modalManager.addModal("userOptionRemovePanel", UserOptionRemovePanel, true)); _local2.varRoomName = _arg1.roomName; _local2.varNickName = _arg1.recipientName; ircLib.addQueuedEventListener("WhoisEvent", _local2.whoisHandler, _local2); ircLib.send.whois(_arg1.recipientName); _local2.addEventListener("RoomOptionsRemoveUserEvent", roomOptionsRemoveUserEvent); } } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:3
Symbol 3 MovieClip {_SWFLoaderStyle__embed_css_Assets_swf___brokenImage_254150230} [__brokenImage]Uses:2
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:8 9
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:8 9 13
Symbol 8 MovieClip {_TitleWindowStyle__embed_css_Assets_swf_CloseButtonUp_2054117252} [CloseButtonUp]Uses:5 7
Symbol 9 MovieClip {_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDown_539708435} [CloseButtonDown]Uses:5 7
Symbol 10 MovieClip {_TitleWindowStyle__embed_css_Assets_swf_CloseButtonDisabled_1953733851} [CloseButtonDisabled]
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 MovieClip {_TitleWindowStyle__embed_css_Assets_swf_CloseButtonOver_978467837} [CloseButtonOver]Uses:12 7
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {_FormItemStyle__embed_css_Assets_swf_mx_containers_FormItem_Required_176362788} [mx.containers.FormItem.Required]Uses:14
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:19 20 22 25
Symbol 19 MovieClip {_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragLink_160320693} [mx.skins.cursor.DragLink]Uses:16 18
Symbol 20 MovieClip {_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragMove_160360590} [mx.skins.cursor.DragMove]Uses:18
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip {_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragCopy_160582954} [mx.skins.cursor.DragCopy]Uses:21 18
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip {_DragManagerStyle__embed_css_Assets_swf_mx_skins_cursor_DragReject_1273513985} [mx.skins.cursor.DragReject]Uses:23 18 24
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip {_CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_2143703859} [mx.skins.cursor.BusyCursor]Uses:26
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1453048452} [MenuBranchDisabled]Uses:28
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuSeparator_1794835414} [MenuSeparator]Uses:30
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_933904376} [MenuCheckEnabled]Uses:32
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_806828676} [MenuCheckDisabled]Uses:34
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_1247320939} [MenuRadioEnabled]Uses:36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_2039825424} [MenuBranchEnabled]Uses:38
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip {_MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_678365224} [MenuRadioDisabled]Uses:40
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip {_DataGridStyle__embed_css_Assets_swf_cursorStretch_2123211183} [cursorStretch]Uses:42
Symbol 44 Bitmap {com.eightlabs.rambler.views.RamblerPanel_increaseButtonIconWhite}
Symbol 45 Bitmap {com.eightlabs.rambler.views.RamblerPanel_increaseButtonIconBlack}
Symbol 46 Bitmap {com.eightlabs.rambler.views.RamblerPanel_decreaseButtonIconBlack}
Symbol 47 Bitmap {com.eightlabs.rambler.views.AdBox__embed_mxml__assets_img_closeButtonWhite_png_511449305}
Symbol 48 Bitmap {com.eightlabs.rambler.views.RamblerPanel_decreaseButtonIconWhite}
Symbol 49 Bitmap {com.eightlabs.rambler.views.PrivateHandle_ledoff}
Symbol 50 Bitmap {com.eightlabs.rambler.views.RamblerPanel_closeButtonIconBlack}
Symbol 51 Bitmap {com.eightlabs.rambler.views.RamblerPanel_blankButtonIcon}
Symbol 52 Bitmap {com.eightlabs.rambler.views.PrivateHandle_ledon}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 2Symbol 3 as "__brokenImage"
ExportAssets (56)Timeline Frame 2Symbol 8 as "CloseButtonUp"
ExportAssets (56)Timeline Frame 2Symbol 9 as "CloseButtonDown"
ExportAssets (56)Timeline Frame 2Symbol 10 as "CloseButtonDisabled"
ExportAssets (56)Timeline Frame 2Symbol 13 as "CloseButtonOver"
ExportAssets (56)Timeline Frame 2Symbol 15 as "mx.containers.FormItem.Required"
ExportAssets (56)Timeline Frame 2Symbol 19 as "mx.skins.cursor.DragLink"
ExportAssets (56)Timeline Frame 2Symbol 20 as "mx.skins.cursor.DragMove"
ExportAssets (56)Timeline Frame 2Symbol 22 as "mx.skins.cursor.DragCopy"
ExportAssets (56)Timeline Frame 2Symbol 25 as "mx.skins.cursor.DragReject"
ExportAssets (56)Timeline Frame 2Symbol 27 as "mx.skins.cursor.BusyCursor"
ExportAssets (56)Timeline Frame 2Symbol 29 as "MenuBranchDisabled"
ExportAssets (56)Timeline Frame 2Symbol 31 as "MenuSeparator"
ExportAssets (56)Timeline Frame 2Symbol 33 as "MenuCheckEnabled"
ExportAssets (56)Timeline Frame 2Symbol 35 as "MenuCheckDisabled"
ExportAssets (56)Timeline Frame 2Symbol 37 as "MenuRadioEnabled"
ExportAssets (56)Timeline Frame 2Symbol 39 as "MenuBranchEnabled"
ExportAssets (56)Timeline Frame 2Symbol 41 as "MenuRadioDisabled"
ExportAssets (56)Timeline Frame 2Symbol 43 as "cursorStretch"
SerialNumber (41)Timeline Frame 1

Labels

"_FlashIRC_mx_managers_SystemManager"Frame 1
"FlashIRC"Frame 2




http://swfchan.com/24/117441/info.shtml
Created: 7/3 -2019 18:45:56 Last modified: 7/3 -2019 18:45:56 Server time: 23/12 -2024 02:02:41