How to check the % loaded from another flash file?

i have two different flash files (both of them are located in two html frames) is there a way that i can check from one file whether the other swf file has been loaded completely.

what i want to do is, there is a banner in my site and the body section which are two different swf files. so i want the body swf file to display after the banner swf file has been loaded.

You could use the [font=courier new]LocalConnection[/font] object to send a notification once that the SWF has been loaded to the other SWF.

var incoming_lc = new LocalConnection();
incoming_lc.onMovieLoaded = function(args) {
	trace(args);
};
incoming_lc.connect("my_lc");
//
this.onEnterFrame = function() {
	if (this.getBytesLoaded()>0 && this.getBytesLoaded()>=this.getBytesTotal()) {
		var outgoing_lc = new LocalConnection();
		outgoing_lc.send("my_lc", "onMovieLoaded", "The movie has been loaded!");
		delete this.onEnterFrame;
	}
};

You could also use JavaScript, but that would be a little more complicated. :stuck_out_tongue: