Loader not working

Hey guys, I have a question. I have a main presentation flash file that loads a bunch of external movies. Does this prevent a percentage loader from working? I used the same script as I have always used in the first frame of the main file, but for some reason the only thing that plays is the “LOADING” alpha tween. No numbers appear in the dynamic text box I created. Is there a reason it isn’t displaying what percentage of the file is loaded? Here is the code…

[AS]
var TotalSize = Number(getBytesTotal());
var BytesLoaded = Number(getBytesLoaded());
var Percent = Math.ceil((BytesLoaded/TotalSize)*100);
if (BytesLoaded == TotalSize) {
gotoAndPlay(3);
}

[/AS]

And on the second frame here is the code…

[AS]
gotoAndPlay(1);

[/AS]

Thanks for any help you can give me!

Sincerely,
Greg