Check if movieclip is finished

I have main flash file (main.swf) that will load movie clips dynamically one after the other from a source xml file.
I need to check if the movie clip currently loaded is finished so that the main.swf will trigger the code to load the other movie clip.
I can use both emptyMovieClip or loader component with contentPath to load the external swf files.