 			//Notice: You need to define a cross domain policy file at your remote server root document, or have a policy file server on the target. 
 			Security.allowDomain("*");
 //			Security.loadPolicyFile("http://www.lookbackon.com/crossdomain.xml");  
-			//
+			//event listeners
 			mqttSocket.addEventListener(Event.CONNECT, onConnect); //dispatched when the connection is established
 			mqttSocket.addEventListener(Event.CLOSE, onClose); //dispatched when the connection is closed
 			mqttSocket.addEventListener(IOErrorEvent.IO_ERROR, onError); //dispatched when an error occurs
 			mqttSocket.addEventListener(ProgressEvent.SOCKET_DATA, onSocketData); //dispatched when socket can be read
 			mqttSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecError); //dispatched when security gets in the way
-			//
+			//try to connect
 			mqttSocket.connect(MY_HOST, MY_PORT);
-			//MQTT byte array prepare.
-			//@see https://www.ibm.com/developerworks/mydeveloperworks/blogs/messaging/entry/write_your_own_mqtt_client_without_using_any_api_in_minutes1?lang=en
+			//for subscribe: subscribes to topics */
+
 			//for connection
 			this.connectMesage.writeByte(0x10); //Connect
 			this.connectMesage.writeByte(0x0C + 0x04); //Remaining Length

	import flash.net.Socket;
	import flash.system.Security;
	import flash.utils.ByteArray;

	/**
	 * Pure Action Script 3 that implements the MQTT (Message Queue Telemetry Transport) protocol, a lightweight protocol for publish/subscribe messaging. </br>

			this.publishMessage.writeByte(0x2F); ///
			this.publishMessage.writeByte(0x62); //b (a/b) is the topic
			this.publishMessage.writeUTFBytes("HELLO"); // (0x48, 0x45 , 0x4c , 0x4c, 0x4f); //HELLO is the message
			//will
			//payload
		}

		//--------------------------------------------------------------------------
