 			
 			// Cancel everything by closing connection
 			try {
-				socket.close();
+				_socket.close();
 			}
 			catch (error:Error){
 				

		{
			ignoreWhitespace = val;
		}
	}
}

		 */
		public function connect( streamType:String = "terminatedStandard" ):Boolean
		{
			
			// Create the socket
			_socket = _createXmlSocket(); 
			
			active = false;
			loggedIn = false;
			
