# How to check the % loaded from another flash file?

**URL:** https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/118916
**Category:** Uncategorized
**Created:** [August 10, 2004, 5:29am UTC](https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/118916 "2004-08-10T05:29:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Silent\_Voice](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Silent\_Voice](https://forum.kirupa.com/u/Silent_Voice)
#### Post date: [August 10, 2004, 5:29am UTC](https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/118916/1 "2004-08-10T05:29:27Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![kode](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kode](https://forum.kirupa.com/u/kode)
#### Post date: [August 10, 2004, 9:22am UTC](https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/118916/2 "2004-08-10T09:22:29Z")

</div>

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.

```auto
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. 😛
