# Preloading content

**URL:** https://forum.kirupa.com/t/preloading-content/39553
**Category:** Uncategorized
**Created:** [January 8, 2004, 4:56pm UTC](https://forum.kirupa.com/t/preloading-content/39553 "2004-01-08T16:56:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cartoonfox](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@cartoonfox](https://forum.kirupa.com/u/cartoonfox)
#### Post date: [January 8, 2004, 4:56pm UTC](https://forum.kirupa.com/t/preloading-content/39553/1 "2004-01-08T16:56:59Z")

</div>

hi.

i have this code on an empty movieclip that loads the external swf.

```auto

onClipEvent (enterFrame) {
	if (!loaded && this._url != _root._url) {
		if (this.getBytesLoaded() == this.getBytesTotal()) {
			loaded = true;
			gotoAndStop(39);
		}
	}
}

```

frame 38 has the empty movieclip hidden by another movieclip saying loading.  
frame 39 is where the loading movieclip disapeers.

but its not working.

any help would be breat

thanks.
