 		private var connectedToServer:Boolean = false;
 		private var stateSet:Boolean  		  = false;
 		private var stateLog:SessionStateLog  = null;
+		private var mess:Boolean              = false;
 		
 		public var userList:ArrayCollection  = new ArrayCollection();
 		public var username:String;

		//Handles sending session state changes
		public function sendSessionStateDiff( diffID:int, diff:Object, target:String=null ):void
		{
			var message:SessionStateMessage = new SessionStateMessage(diffID, diff);
			sendEncodedObject( message, target );
		}
		
		//When a message is recieved pass it on to the user

						else
						{
							// rewind local changes
/*							for (i = stateLog.undoHistory.length - 1; i >= 0; i--)
								setSessionState(root, stateLog.undoHistory[i].backward, false);*/
							
							// apply remote change
							mess = true;
							setSessionState(root, ssm.diff, false);
							
							// replay local changes
/*							for (i = 0; i < stateLog.undoHistory.length; i++)
								setSessionState(root, stateLog.undoHistory[i].forward, false);*/
						}
					}
				}
