Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetBytes for External Movie

Status
Not open for further replies.

simon315

Programmer
Dec 29, 2003
2
0
0
US
I'm desparate with this one. I have a preloader that calculates the bytesloaded and totalbytes and then when they're the same moves on to frame 2. In frame 2 a blank movie clip that loads an external swf file. My problem is that the preloader only calculates the bytes for the first movie, not the external one as well. How can I get the proloader to calculate the bytes for both itself and the external movie? Here is the script I'm using for the proloader:

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}

The frame 2 movie clip actionscript is as follows:

loadMovie("mymovie.swf", 0);

Can someone please help me??? I'm desparate!!! Thanks!

Simon315
 
Too late to answer you tonight... But you have all this very wrong. Catch you in the morning!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top