I searched for this information before posting so forgive me if this is addressed somewhere.
I used the great code for the preloader found here on the site. My question is when I add a loadMovie command at the end (3rd frame) in place of the image is the preloader taking into account the movie that is on that 3rd frame?
It doesn’t seem that it is. Can someone please answer this question and let me know how to preload the loadMovie?
The preloader is only preloading the contents of that main movie where the preloader sits so it doesn’t account for the external movie that’s loaded at frame three because it doesn’t execute the loadmovie action until the main movie fully loaded.
If you want to preload the external movie then you should place a preloader on the external movie as well.
You could do that – but it will take longer to load. Just build a preloader into the movie that you’re loading. when you’re bulding the external movie. just tell your variables to look at level
frames = _level0.getBytesLoaded();
total = _level0.getBytesTotal();
if (frames == total){
_root.gotoAndPlay(“play”);
}
but i got a little ghetto with mine… I made a movie clip in the main movie, and had a button from a movie loaded in just send the jpg to that mc… when they are done viewing, they close my transition element, but im sure you could create a button with the same function. the code the way that i did it (which is probably wrong) is
[AS]_root.container1.loadMovie(“myPic.jpg”);[/AS]
Creating engaging and entertaining content for designers and developers since 1998.