Getting the bytestotal

Hi everyone I was making a preloader which will dynamically load an external .swf but how can I get the total bytes from something that is loaded dynamically? I am so confused. Any help would be very much appreciated. I know that there are other tutorials and they say to make the preloader in the first swf movie. But I used the flix program and got the cheap one so there is no preloader and I can’t edit the first swf.
thanks,
Marc

Hi,

Check the bytesLoaded and BytesTotal of the movieClip or level you are loading the external swf onto.

Note that when checking you should make sure the swf as started to load and you are not checking an empty container (where getBytesLoaded and getBytesTotal would be the same)so you should do something like this:

[AS]
if(container.getBytesLoaded > 40 && container.getBytesLoaded == container.getBytesTotal){
doYourThing();
}

[/AS]

Hope it helps

SHO