com.theoworlds.TheoChat |
TheoChatUI class - TheoChat application main class
1.0
© TheoWorlds.com, 2007-2008.
| com. | TheoChatUI class - TheoChat application main class |
| Variables | |
| _ui | |
| _iCharacterSettings | saves the settings on the main character (“I”) when the chat is launched or when switching maps |
| _teleport | saves the settings of the teleport location (“door” to another map) destRoom:Number; destTile:Point; destDir:Number; |
| _socketName | “SF”,”ES” |
| _socket | |
| _login | |
| _roomList | |
| _charactersLibraries | |
| Functions | |
| TheoChat | Constructor. |
| onMouseDown | |
| init | |
| initUI | |
| initSocket | |
| onParsedMapXMLLibrary | |
| characterSelectionMode | this function is used just when joining initially the chat and defining the main character settings (look) |
| connect | |
| uiHandler | |
| updateUserList | <{data:String, label:String}>Array - data for component List data - user.netID label - user.name |
| getRoomListForUI | <{data:String, label:String}>Array - data for component List data - room name label - room name + users current number |
| socketHandler | |
| worldHandler | |
| getNewChatColorForCharater |
private function characterSelectionMode( mc: MovieClip ):Void
this function is used just when joining initially the chat and defining the main character settings (look)
| mc | - the UI window in which the character will be selected TheoChat manages it directly can be re-coded to use the events, but this way is easier and faster |
private var _ui: TheoChatUI
saves the settings on the main character (“I”) when the chat is launched or when switching maps
private var _iCharacterSettings: CharacterSettings
saves the settings of the teleport location (“door” to another map) destRoom:Number; destTile:Point; destDir:Number;
private var _teleport: FurnitureSettings
“SF”,”ES”
private var _socketName: String
private var _socket: IServer
private var _login: String
private var _roomList: Array
private var _charactersLibraries: Array
Constructor.
public function TheoChat( gui: TheoChatUI )
function onMouseDown():Void
private function init():Void
private function initUI():Void
private function initSocket():Void
private function onParsedMapXMLLibrary():Void
this function is used just when joining initially the chat and defining the main character settings (look)
private function characterSelectionMode( mc: MovieClip ):Void
private function connect():Void
private function uiHandler( o: Object ):Void
<{data:String, label:String}>Array - data for component List data - user.netID label - user.name
private function updateUserList():Array
<{data:String, label:String}>Array - data for component List data - room name label - room name + users current number
private function getRoomListForUI():Array
private function socketHandler( o: Object ):Void
private function worldHandler( o: Object ):Void
private function getNewChatColorForCharater():Number