Thanks in advance to anyone with ideas!! I’m quite confused.
Using the tutorial here as a base, I have buttons which load different swf files into a container MC. Using the trace function I’ve narrowed down exactly where it gets “stuck” once in a while (and for no apparent reason). Most of the time it works fine! Then every 5 or so loads, it gets stuck.
Where it gets stuck is when the container MC is waiting for the new SWF to be loaded:
Inside container:
onClipEvent (enterFrame) {
if (!loaded && (this._url != _root._url)) { //gets stuck HERE on second part
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
}
}
}
I set up two methods to test where the problem is. First, a dynamic textbox where I pass this._url from inside the container (which is updated every enterFrame), and a test button which traces the container._url when pressed.
Sure enough, when the movie gets stuck, the button returns the container._url as having the new movie loaded (new path), while the dynamic text box still retains the path of the old movie.
Image here:
http://img337.imageshack.us/img337/1272/testgl0.jpg
Any idea why this happens? Is there a better way to test for the new movie loaded?