This content has been marked as final. Show 6 replies
use the createEmptyMovieClip() method to create a movieclip using actionscript.
I'm having real problems. I'm looping through my movieclips, as I'd like to load content into them one by one..proceeding to the next after the first has been loaded.
At the moment I have...
for (var i=1; i<totalImages +1; i++)
this["image" +i].loadMovie("image" +i +".jpg");
This preloader isn't working..as the other images start loading before the first has completed..bTotal always seems to be 4 which is the number of bytes of an empty movie clip.
you can [ edit: that should be "cannot" ] use a while-loop or a for-loop for a preloader because they execute from beginning to end before anything else is updated (including any downloads).
use an onEnterFrame loop or setInterval() loop or a frame loop.
I strongly suggest to use a queueLoader class. Basically, queueLoader use the MovieClipLoader (built-in) class. You can google to find some. The one i use and scripted, highly use delegation ... so maybe you should take a look a this one (never use it thought) ...it is the first that come out on google.
Has anyone tried to use the queueloader for mp3 files? I know it involves creating a sound object, but how do you target that?
Thank you fo rany help you can offer.
how do you target what?