If anyone has had a problem with externally loading content into a flash movie... it's because someone at macromedia was drinking when they wrote the code for the mx.core.ExternalContent class. I say this because the code states that if the external content does not start after 3 tries the complete command gets sent even though the content hasn't started to download. Here is the offending code....
// sometimes you get a -1 before it starts loading
if (x.failedOnce != undefined)
{
x.failedOnce++;
if (x.failedOnce > 3)
{
dispatchEvent({type: "complete", target: x.obj, current: x.loaded, total: x.total});
//trace("total == -1 loaded = " + x.loaded);
delete loadList[i];
delete x;
}
}
- // sometimes you get a -1 before it starts loading
- if (x.failedOnce != undefined)
- {
- x.failedOnce++;
- if (x.failedOnce > 3)
- {
- dispatchEvent({type: "complete", target: x.obj, current: x.loaded, total: x.total});
- //trace("total == -1 loaded = " + x.loaded);
- delete loadList[i];
- delete x;
- }
- }
I know it's complete garbage. I'm a little pissed because it took 1 month of disecting my own code to find that it was clean and macromedia was to blame. Two days ago I was searching on google for the umpteenth time trying to find anyone who was having the same problems and I stumbled upon this link explaning the problem and solution.
http://jeff.mxdj.com/loader_component_a ... plorer.htm