Anybody having flushing problems?

I find that calling 3 send three times in the same function (sometimes twice
in the same function) results in the XML being queued up and not being sent.

Is there some way to flush this?

I know it is being queued because if I press button 1 and this button sends
3 messages, the last one being the equivalent of "popup a message box saying
#3 has been received", I only see the message box when I click a button
which calls XMLSocket.send() again, thereby flushing the queue.

I tried getting around it by sending a dummy command after #3's command in
the same function, but that just queued them both.

Help!

WTH:)