Percentage loading bar but for a movieclip

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: