can u upload the fla… it might help…
if i can geta visual of what i need done it would be easier
can u upload the fla… it might help…
if i can geta visual of what i need done it would be easier
its too large to upload with all the swfs but the main thing is all made on one frame with nothing on the stage and here is the code on the timeline
//“btn” is a button
mA = ;
mcopyA = ;
myText.swapDepths(1000);
myText_mc.swapDepths(1009);
movieNum = 6;
j = 0;
for (var i = 0; i<movieNum; i++) {
clip = [createEmptyMovieClip(“paper”+i, 20-i), “movie”+i+“.swf”];
mA.push(clip);
mcopyA.push(clip);
but = attachMovie(“btn”, “btn”+i, i+100);
but._x = but._width+but._widthi;
but._y = 300;
but.myText.text = i;
but.ivar = i;
but.onPress = godknows;
}
function loader(mc, gw) {
myText_mc.mytext.text = mA+" "+mA.length;
var loading = Math.floor(mc.getBytesLoaded()/1024);
var total = Math.floor(mc.getBytesTotal()/1024);
percent = loading/total;
myText.loading_txt = Math.floor(percent100)+" % loaded "+mc._name;
if (loading>=total && loading>1) {
showUp(gw);
mc.isLoaded = true;
endLoading(mc);
}
}
function endloading(k) {
mA.splice(0, 1);
clearinterval(myInterval);
if (mA.length>0) {
loadMovie(mA[j][1], mA[j][0]);
myInterval = setInterval(loader, 20, mA[j][0]);
} else {
myText.loading_txt = “DONE”;
trace(“finished”);
trace(mA.length);
finished = true;
}
}
function showUp(Klip) {
//for (var i = 0; i<mcopyA.length; i++) {
//mcopyA*[0]._visible = false;
//}
mcopyA[Klip][0]._visible = true;
mcopyA[Klip][0].swapDepths(90);
mcopyA[Klip][0].play();
}
function godknows() {
clearInterval(myinterval);
p = this.ivar;
if (mA.length>0 && mA.length<=mcopyA.length && mcopyA[p][0].isLoaded != true) {
for (var k = 0; k<mA.length; k++) {
if (mA[k] == mcopyA[p]) {
myvar = mA.splice(k, 1);
mA = myvar.concat(mA);
mytext.isloaded = mA[0];
}
}
loadMovie(mA[0][1], mA[0][0]);
myInterval = setInterval(loader, 20, mA[0][0], p);
delete myvar
} else if (mA.length>0 && mA.length<=mcopyA.length && mcopyA[p][0].isLoaded != false) {
showup(p);
trace(mcopyA[p][0].isLoaded);
myInterval = setInterval(loader, 20, mcopyA[p][0], p);
} else {
trace(mcopyA[p][0].isLoaded != false);
showup(this.ivar);
}
}
loadMovie(mA[j][1], mA[j][0]);
myInterval = setInterval(loader, 20, mA[j][0]);
wow confusing but ill give it a try
hi stringy, what if you want to load certain swfs into the main swf. say you want A.swf to load first before B.swf and than once B.swf loaded to load C.swf etc. I be using variables.
you can just do it on different frames if you want
egfirstframe
stop();
createEmptyMovieClip(“paper”, 1);
paper._x = 50;
paper._y = 50;
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)+“%”;
if ((kbLoaded == kbTotal) && kbTotal>1) {
percent_txt.text = “”;
// do whatever
clearInterval(myInterval);
_root.play();
}
};
loadMovie(“movie1.swf”, paper);
myInterval = setInterval(assessload, 50, paper);
second frame
stop();
createEmptyMovieClip(“paper1”, 2);
paper1._x = 250;
paper1._y = 250;
loadMovie(“movie2.swf”, paper1);
myInterval = setInterval(assessload, 50, paper1);
third frame
stop();
createEmptyMovieClip(“paper2”, 3);
paper2._x = 450;
paper2._y = 150;
loadMovie(“movie3.swf”, paper2);
myInterval = setInterval(assessload, 50, paper2);
just made it for you
http://www.gifsrus.com/testfile/fadeinout/multiloader.swf
you`ll have to upload to the web to see with movie1.swf etc in the same folder
k
thanks for all ur help… u truly helped me here and i appreciate it
:: Copyright KIRUPA 2024 //--