PDA

View Full Version : tracing bytes loaded across levels


Taldos
02-24-2002, 10:34 PM
hey what's up.

here's my problem

loading different coponents of a awbe site into a master swf, which regulates hwich swf are being loaded at what time. now my problem is i need to put in a sord of brief preloader for the swf's.

had a little animation created to run while an swf is loading on a different level. however i can't seem to target the getBytesLoaded() function across levels.

if(eval("_level" + newArray[1]).getBytesLoaded() == eval("_level" + newArray[1]).getBytesTotal())
{
for(i=1; i<30; i++)
_parent["circles" + i].removeMovieClip();
}

newArray[] is an array containing the specific levels of swf's being loaded. however

eval("_level" + newArray[]).getBytesLoaded

does not seem to funcition even when i use trace();
am wondering if i should even continue in this effort, of simply put a preloader scene inside each swf essentially doing the same thing.

let me know if this makes any sense, thanks