Same old question..how can i got preloading before i load movie

i try do a preloading in my external movie, let say aboutus.swf
then i wanna puch a button to load aboutus.swf movie into my main movie called Index.
but before it load i wanna see a loading so that my client won’t have to wandering if the button is functioning or not…
please someone tell me what should i do

anybody wanna help me with this?

start a new movie, create 3 buttons instance names btn1,btn2,btn3.
create a textfield with instance name percent_txt
you need to store 3 movies, movie1.swf,movie2.swf,movie3.swf in the same folder.
type this on the frame.

assessLoad = function (clip) {
var kbLoaded = Math.floor(clip.getBytesLoaded()/1024);
var kbTotal = Math.floor(clip.getBytesTotal()/1024);
percent = kbLoaded/kbTotal;
percent_txt.text = Math.floor(percent*100)+“%”;
//any animation you can script here.
if ((kbLoaded == kbTotal) && kbTotal>1) {
endPreload(clip);
}
};
endPreload = function (clip) {
clearInterval(preload);
//maybe make animation._visible = false etc
};
createEmptyMovieClip(“paper”, 1);
for (i=1; i<4; i++) {
_root[“btn”+i].ivar = i;
_root[“btn”+i].onPress = function() {
loadMovie(“movie”+this.ivar+“.swf”, paper);
preload = setInterval(assessload, 50, paper);
};
}

you will need to upload to the web to test.

yup…it works already…thanks stringy

welcome