How to PAUSE main movie, until target movie is 100% loaded?

This is probably easy for you flash guru’s, but it’s driving me nuts…

I have a flash file that loads external jpeg’s into a movie inside my main movie. But here’s the dilema… the jpegs might take a few seconds, and I want it to run clean, is there a way I can have it display the % loaded of an external jpeg? then once 100% is loaded it continues to another frame?

something like this? but where am I going wrong? I get no errors but I cannot get the varaible to display for % loaded, even as a dynamic text box…

if (_root.MOVIETARGET.percentLoaded=100) {
gotoAndPlay(“loaded”);

??

thanks!