PDA

View Full Version : [FMX] Preloader watching ind clips?



tgelston
April 9th, 2003, 11:36 AM
How can I get my preloader to look at the size of individual clips?

I have taken the percentage preloader code from this site and simply added the instance name of the clip I want to preload, but it doensn't work?

bytes_loaded = Math.round<b>(_root.images.</b>getBytesLoaded());
bytes_total = Math.round<b>(_root.images.</b>getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}

Do I need to load these clips from an external file? would that solve the problem?

Thanks,
Tobias

mlk
April 9th, 2003, 03:02 PM
try getBytesLoaded(_root.images)