# Percentage loading bar but for a movieclip

**URL:** <https://forum.kirupa.com/t/percentage-loading-bar-but-for-a-movieclip/82501>\
**Category:** Uncategorized\
**Created:** [March 10, 2005, 8:29pm UTC](https://forum.kirupa.com/t/percentage-loading-bar-but-for-a-movieclip/82501 "2005-03-10T20:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagnetikDude](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@MagnetikDude](https://forum.kirupa.com/u/MagnetikDude)\
**Post date:** [March 10, 2005, 8:29pm UTC](https://forum.kirupa.com/t/percentage-loading-bar-but-for-a-movieclip/82501/1 "2005-03-10T20:29:49Z")

</div>

Hi!

i need to do a loading bar for a specific movieclip, not the whole file.

i have 9 clips to load, and i dont load them all at once.

on my main timeline i have 9 movieclips and 9 labels to jump to them  
but i need to have a loading bar for each…

here is an excerpt of what i used to have the whole movie to load, but it does not work if i use a movieclip in the timeline…

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadingclip.loadBar.\_width = getPercent\*100;  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

followed by the next frame with…

gotoAndPlay(1);

my movieclip is at frame 3 and has a video inside

any ideas?? thanks

M :crazy:
