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

**URL:** https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/60479
**Category:** Uncategorized
**Created:** [August 10, 2004, 5:29am UTC](https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/60479 "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/60479/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 10, 2004, 9:22am UTC](https://forum.kirupa.com/t/how-to-check-the-loaded-from-another-flash-file/60479/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. 😛
