I am getting a strange case I can't debug successfully. This is in code I have used in previous projects successfully.
I am loading various SWF resources for the game. A bunch of resources (SWF's) are downloaded using a LoaderMax. This load without problem.
_gameLoader = new LoaderMax({onFail:errorHandler,maxConnections:6,auditSize:false})
public function requestGameSWF(rname:String,n:String):void {
var swfl:SWFLoader = new SWFLoader(n,{name:rname,autoPlay:false,onFail:gameSwfErrorHandler,onComplete:gameSwfLoadComplete});
_gameLoader.append(swfl);
_gameLoader.load();
}
Then as the users takes actions, additional swf's are requested and loaded. However, these were not being downloaded.
From what I can tell the _gameLoader is still in state 1 (LOADING) according to its internal state but should, if fact, be in READY state since nothing is actually in the queue after the first set of files are laoded. When load() is called, it basically does nothing because it appears to be LOADING. If I use the debugger to change the state to READY before load is called, it picks up and loads fine.
Also, if I cause pause() then load() it will start working again.
I ran with this code in a different project for months now without a problem and this class was copied over without changes so I can't figure out what is broken. The problem remains both accessing files locally and downloading over http.
Thanks,
Preston
ps. For all that this is two posts in one day, I have been using Loader for months now without a problem