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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oldnewbie's preloader help

Status
Not open for further replies.

technoknow

Technical User
Apr 19, 2002
121
US
First, thanks oldnewbie for the preloader code!

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

My question: is there a way to have the first few frames of a movie play while the rest is still loading? This preloader seems to load the whole movie until moving to the 3rd frame.
Thanks,
technoknow
 
Don't know where you picked it up, but that's not really my code.
That said, yes under certain conditions, you can have your movie play after only some percentage has loaded, but it all depends on how your movie was constructed and what elements are first loaded in the preloading process. To some extent, the connection speed could also have a bearing on this also. Guess you'll have to provide a link or at least provide more info, and probably test all of this especially on a slow connection.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top