I made shared object air application which contain drag and drop pictures from os and web browser to the application. When the picture is dropped in to the application it's also stored on the server and another users should see this picture in their application. The problem is in another running applications picture is not shown. When I restart the application then is shown.
This is function to send data:

public function sendRawData(data:ByteArray, scriptName:String, scriptArgs:Object) {
var sock = new Socket(serverHost, serverPort);
var queryString = [];
for (var arg in scriptArgs) {
queryString.push(arg + "=" + scriptArgs[arg]);
queryString = queryString.join("&");
sock.writeUTFBytes("POST "+serverPath+"/"+scriptName + "?" + queryString + " HTTP/1.0\r\n");
sock.writeUTFBytes("Content-type: application/octet-stream\r\n");
sock.writeUTFBytes("Cookie: $Version=1; "+args.session_name+"="+args.session_id+"; $Path=/\r\n"); // Fix PATH!
sock.writeUTFBytes("Content-Length: "+data.length+"\r\n");
sock.writeUTFBytes("Host: "+serverHost+"\r\n");

if (scriptName == "upload.php"){
preloader.visible = true;
var bufferlen = Math.ceil(data.length / 100.0);
var remainingbytes = data.length;
var offset = 0;
for (var i = 0; remainingbytes > 0; ++i) {
var amount = Math.min(bufferlen, remainingbytes);
sock.writeBytes(data, offset, amount);
offset += amount;
remainingbytes -= amount;
sock.readBytes(new ByteArray());
In root server directory I have a crossdomain.xml file :
<?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="*" to-ports="80" />

Can anyone help me with that ???