Alright, so i’m creating a simple photo gallery with about 10 images in it. Instead of having each image load when its button is clicked, i’d like to have all of them preload all at once. I’ve been trying different code and have had no luck so far. Can anyone give me a code sample i could use? Here is a sample of what i have been trying:
numpics = 10;
for(i = 0; i <= numpics; i++){
container.loadMovie(this[“pic” + i + “.swf”);
while(container.getBytesLoaded() != container.getBytesTotal()){
loaded.text = "Loading picture " + i;
}
}
but it skips to the second frame and when i go through the gallery each picture is getting loaded individually. Any ideas? Thanks in advanced