public void updateChat (String x)
    {
	for (int i = 0 ; i < flexclients.size() ; i++)
	{
	    //System.out.println("Sending to client " + i);
	    try
	    {
                System.out.println("Sending to client: " + i);
		((TcpThread) flexclients.get (i)).Soutput.writeObject (x);
		((TcpThread) flexclients.get (i)).Soutput.flush ();
                
		//System.out.println("Sent \"" + x + "\" back to Client");
	    }
	    catch (IOException e)
	    {
		System.out.println ("Exception reading/writing  Streams: " + e);
		continue;
	    }
	}
    }