What am i doing wrong?And if i am loading wrong how should i load, when the preloader has finished playing 5 movies, with out clicking any button, like the in the file.
i think you have to put something like[AS]
onClipEvent (load) {loadMovieNum(“yourfile1.swf”, 1);
loadMovieNum(“yourfile2”, 1);
loadMovieNum(“yourfile3.swf”, 1);
}
[/AS]
You’re loading all of your movies into the same _level (you’ve specified _level1 as the second parameter of your loadMovieNum() method) so they’re displacing one another.
You need to specify different levels for each movie e.g.
Bear in mind that if you attempt to load all the movies simultaneously you will share the bandwidth between them.
all the movies have their own preloders, they are all 5 buttons very small buttons, but because they are animated in a very difficult way i need to load them piece by piece that way it wont make the main movie too big…:beam:
The principal reason for breaking a site into several swfs which are loaded as required is that users on a slow connection aren’t forced to wait until elements they may not need (or want) have downloaded before they can interact with the site. If the first action of your _level0 swf is to simultaneously attempt to load all other elements of the site at the same time - then all clips to be loaded will guzzle up all of the available bandwidth and behave as if they were elements of a single preloading movie.
A better approach might be to load movies as required with an additional background process that downloads external swfs to the browser cache when there is no other traffic.
Set a background process to execute every n seconds using setInterval(). If a movie is being loaded then wait for it to finish. If no movie is being loaded, choose the next not yet loaded clip from the list and download it to a movie instance positioned off screen. It will then download to the cache.
If a player clicks a link, interrupt the download by loading the swf they have chose in to the off-screen instance. This will break any download in progress so you’re not sharing bandwidth between two swfs. When the chosen download has been completed then you can resume the background download where you left off.