This content has been marked as final. Show 5 replies
Probably has to do with caching. What code are you using to check that something is loaded? (I won't be downloading any FLAs from strangers.)
Here is the code that I am using in my preloader.
BTW, thank you for your interest in my problem.
I figured out what the problem was. For some weird reason the total bytes was getting set to -1. So, when I tried to check to see if bytes loaded was greater than or equal to bytes total, my loader would hang. Moral of the story, when in doubt, trace() it out.
Here is the very simple code that I changed. This updated code is all of the actionscript to the loader.
Right you can't count on bytesLoaded or bytesTotal to have sensible values during the initial part of the loading.
Another thing that will probably get you sooner or later (especially with caching issues in IE) is that sometimes even bl >= bt won't really be ready to play either. You should probably change that to something like:
if(bl >= bt && _level2._width > 0)
That of course assumes the first frame of what you are loading has any width at all.
Finally, if you are using Flash 7 or higher you might want to look into the MovieClipLoader class. It is pretty sweet.