hi, everybody. Need help in preloading multiple swf into a main swf. The catch is to have for example Apple.swf to finish preloading first before banana.swf and than orange.swf to load once both apple and banana swf is loaded.
Hope this make sense.
hi, everybody. Need help in preloading multiple swf into a main swf. The catch is to have for example Apple.swf to finish preloading first before banana.swf and than orange.swf to load once both apple and banana swf is loaded.
Hope this make sense.
at the beginning of each movie you are loading you could use:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
if (loadedbytes == totalbytes) {
_root.gotoAndPlay(_currentFrame+1);
//where _root is your parent movie doing the loading
} else {
_root.gotoAndPlay(_currentFrame-1);
//where _root is your parent movie doing the loading
}
//example loading code//
then in frame 2:
loadMovieNum(“apple.swf”, _level);
then in frame 4:
loadMovieNum(“banana.swf”, _level);
then in frame 6:
loadMovieNum(“orange.swf”, _level);
I am using similar code to loading an infinite number of movies after eachother, but I’m using arrays and junk to work all that out. The loadedbytes code works a treat if you put it at the beginning of each movie loading.
thanks newflavour. I’ll try that out. but i was hoping that there was another way to do it.
:: Copyright KIRUPA 2024 //--