Hi Charlie,
I don’t think it is to do with the code either, we have about 200 people on at the same time sometimes and only have this problem reported about once every couple of days. I think there may be something underlying in the way that the swf is loaded that effects some browsers and it has only become apparent since adding this code as it is skipping to frame 2 and the only point in the code that there is a goToAndStop(2) is here
function tryConnect()
{
clearConnectTimer();
switch(ncTryIndex)
{
case 0:
ncConnectTimeout= 8000
url = ncProtocol + “://”+ncDomain+":"+ncPort+"/"+ncApplication;
trace("tried " + url)
break;
case 1:
ncConnectTimeout= 15000
ncPort = ncPort2;
ncProtocol = ncProtocol2;
url = ncProtocol + “://”+ncDomain+":"+ncPort+"/"+ncApplication;
trace("tried " + url)
break;
default:
{trace(“Failed to connect after “+ncTryIndex+” tries”);
url = “”;
statusBox.text=“failed to connect”;
nc.close();
nc=null;
gotoAndStop(2);
}
break;
}
if (url.length > 0)
{
nc.connect(url);
ncConnectTimer = setInterval(_root, “tryReconnect”, ncConnectTimeout);
}
}
It is definitely starting to play before it moves on to frame 2, as this happened the only time that I managed to recreate it.
I am loading the simple player swf in using the loader component and do it in a few different places in my main swf, but they all use the same simple function and add the video file name as a parameter to url e.g simplePlayer.swf?fileName=
function loadExternalMovie(url:String) {
videoBgLoader._visible = true;
_root.externalMovieLoaded = false;
movieHolder.unloadMovie();
movieHolder._lockroot = true;
var listener:Object = new Object();
listener.onLoadInit = movieLoaded;
movieHolderLoader.addListener(listener);
movieHolderLoader.loadClip(url,movieHolder);
}
Is there any way you can think of that in certain browsers the loader component is caching any information from the last time it loaded that player swf , which would confuse it into thinking it was at a different stage in switch statement or confusing the net connection status’?
I was just wondering if there was anything off the top of your heads you could think of, as I’m finding it very hard to diagnose.
Thanks again,
Joe