All pastes #616998 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-12 23:35 UTC
rendered paste body
		public function onCreationComplete():void
		{			
			connection.useAnonymousLogin = false;
			//I'm running openFire on my localhost so that's what I've set my server to
			connection.server = "";
			connection.addEventListener(ConnectionSuccessEvent.CONNECT_SUCCESS, handleConnectSuccess);
			connection.addEventListener(IncomingDataEvent.INCOMING_DATA, handleIncomingData);
			connection.addEventListener(XIFFErrorEvent.XIFF_ERROR, errorHandler);
			connection.addEventListener(OutgoingDataEvent.OUTGOING_DATA, handleOutgoingData);
			connection.addEventListener(LoginEvent.LOGIN, handleServerLogin);
			room = new Room(connection);
			room.setRoomJID("test@@conference.daniels-comp");
			room.roomName = "test";
			room.conferenceServer = "conference.daniels-comp";
			room.addEventListener(RoomEvent.ROOM_JOIN, handleRoomJoin);
			roster = new Roster(connection);
		}