[AS-SO] runtime SharedObject error

SharedObjects are nice, certainly if one tries to limit his server-traffic…
… But it also provides me an ugly headache.

Setting:
I’m building an image uploader in flash (AS-JS-PHP), wich works fine. Now I want my mc to tell the user realtime that the file is uploaded. (the upload form is nested in a popup)

First attempt:
Checking the status every second is easily done trough php, but is ugly for my server (3mb on a 56k connection= prox 540 calls). But it works.

Second attempt:
When the upload succeeds, php loads an swf, wich sends the succes data to a SharedObject. In the meanwile my head mc (the website) checks the SharedObject every second to ‘realtime’ tell the user that his upload nicely and safely reached the server. A bit more complex, but the communication runs client-side (my_server == happy).

Error:
The receiving mc (website) doesn’t manage to receive the data every second. Silly but true. It only manages to receive the data the first time it makes connection to the SharedObject, and doesn’t seem to empty its ‘cache’.
(php and both swf’s are in the same subfolder)

Sending swf (in upload popup):

if(cm=='up'){ //cm is defined by the php
lcal = SharedObject.getLocal("upStat","/");
lcal.data.upStatSlct = true;
lcal.flush();
_root.onEnterFrame = function(){
if(lcal.data.upStatSlct){ //just to make sure the swf isn't deleted before it sends the data
getURL("javascript:closeWin();");
delete _root.onEnterFrame;
}
}
}

Receiving swf (parent site):

_root.createEmptyMovieClip('ComListn',50);
ComUp = function(){
ComListn.lcall = SharedObject.getLocal("upStat","/");
ComListn.onEnterFrame = function(){
if(ComListn.lcall.data.upStatSlct){
UploadOK();
delete ComListn.onEnterFrame;
}
}
}

Receiving swf second try:

_root.createEmptyMovieClip('ComListn',50);
ComUp = function(){
ComListn.lcall = SharedObject.getLocal("upStat","/");
ComListn.onEnterFrame = function(){
ComListn.lcall = SharedObject.getLocal("upStat","/");
if(ComListn.lcall.data.upStatSlct){
UploadOK();
delete ComListn.onEnterFrame;
}
}
}

I really don’t see any bugs in the code, and it works when I first execute the sending mc, and after that the receiving mc, but NOT simultaniously

May I gently ask: …[color=red]* HELP??! *[/color]