Hi. I wrote little code to send command to external aplication (DMXCreator to controll lighting system):

import flash.display.Sprite;
import flash.net.Socket;
import flash.utils.*;
import flash.events.*;
var xmlsock:XMLSocket = new XMLSocket();
xmlsock.connect("", 843);
var message = new XML('OPENSHOW Show1.d1k');
button.addEventListener(MouseEvent.MOUSE_DOWN, sendData);
function sendData(event:MouseEvent):void
Everything seems to be all right, but when I send command, DMX aplication shows no reaction, but when I send another command by dedicated client or by Hercules aplication, DMX app shows my previosus command sended by Flash and append to it this second command. Seems like DMX app keep my Flash command and waiting for some "end of transmision" mark. Is any way to send that "end command/transmission" mark?

PS. Sorry for my english