Diplay Progress of loading external swfs

Hi could someone help me please im having a problem i cant seem to resolve.

I am loading external SWFs into a movieclip called “content”.

Nice and simple, and i can tell when the movie clip has loaded thanks to
‘Kirupa’s Preloader and Transition for Dynamic Files.’

I need to display the external SWFs bytes loaded and bytes total.
And preferably percent loaded too.
Which I cannot seem to do for any.

Here is the code that works:

//ACTIONS FOR MC “content”

onClipEvent (enterFrame) {

if (!loaded && this._url != _root.Mymovie._url){

if (this.getBytesLoaded() == this.getBytesTotal()) {

loaded = true;
}
}
}

I have tried to place the below code in many places in my movie, on the “content” mc which the external files load into, in several places in the script and have dynamic text fields called “loadedbytes” and “totalbytes” to display the information but it just doesnt work.

loadedbytes = _root.Mymovie.content.getBytesLoaded();
totalbytes = _root.Mymovie.content.getBytesTotal();


Could someone please help and give me the extact script and where to place it exactly to do this.

Thank you very much

Angel :slight_smile:

Why don’t you put a preloader inside the loaded mc? :wink:

:link:

ofcourse I did thats simple but not what im trying to do.

The thing is I have a transition that closes when something is loading and opens once the SWF has loaded.

I just need to show on this transation how many Kbytes have been loaded or the percentage loaded…of the external swf.

Point is i cant read any of the variables of the external SWFs.

Please could anyone help me.

Thank you xxx