 		 * Connects to the server. Use one of the STREAM_TYPE_.. constants.
 		 * Possible options are:
 		 * <ul>
+		 * <li>standard (default)</li>
+		 * <li>standard terminated</li>
 		 * <li>flash</li>
-		 * <li>terminatedFlash</li>
-		 * <li>standard</li>
-		 * <li>terminatedStandard (default)</li>
+		 * <li>flash terminated</li>
 		 * </ul>
 		 * Some servers, like Jabber, Inc.'s XCP and Jabberd 1.4 expect &lt;flash:stream&gt; from
 		 * a Flash client instead of the standard &lt;stream:stream&gt;.
 		 *
-		 * @param	streamType (Optional) The type of initial stream negotiation,
-		 * either &lt;flash:stream&gt; or &lt;stream:stream&gt;.
+		 * @param	streamType Any of the STREAM_TYPE_.. constants.
 		 *
 		 * @return A boolean indicating whether the server was found.
 		 */
-		public function connect( streamType:uint = 1 ):Boolean
+		public function connect( streamType:uint = 0 ):Boolean
 		{
 			createSocket();
 			_streamType = streamType;

			}
			openingStreamTag += ' to="' + domain + '" version="' + XMPPStanza.CLIENT_VERSION + '"';

			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDAND_TERMINATED)
			{
				openingStreamTag += ' /';
			}

		 */
		protected var _incompleteRawXML:String = "";

		private var _streamType:uint = 0;
		private var presenceQueue:Array = [];
		private var presenceQueueTimer:Timer;

