# createEmptyMovieClip / MovieClipLoader

**URL:** https://forum.kirupa.com/t/createemptymovieclip-moviecliploader/154025
**Category:** flash
**Created:** [July 6, 2005, 2:43pm UTC](https://forum.kirupa.com/t/createemptymovieclip-moviecliploader/154025 "2005-07-06T14:43:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crunchysocks](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@crunchysocks](https://forum.kirupa.com/u/crunchysocks)
#### Post date: [July 6, 2005, 2:43pm UTC](https://forum.kirupa.com/t/createemptymovieclip-moviecliploader/154025/1 "2005-07-06T14:43:43Z")

</div>

Hey, i have a website i’m building, and when the user clicks a button, it goes to a certain point in the timeline, which then initiates some code to load a movie clip onto a certain part of the screen.

I made a sample swf to be loaded(home.swf), but the thing is, I dont want the user to see the things that are off the page of home.swf, that the user couldn’t normally see… i was wondering the best way to solve this.

As you can see, i already tried sizing the clip, but that only made it extremely small and didn’t solve the problem. 😛

Here is the code on the main timeline :

```auto

this.createEmptyMovieClip("content_mc", this.getNextHighestDepth());
var mclLoader:MovieClipLoader = new MovieClipLoader();
var oListener:Object = new Object();
oListener.onLoadInit = function (mcContent:MovieClip) {
	//mcContent._width = 850;
	//mcContent._height = 367;
	mcContent._x = 96.0;
	mcContent._y = 157.0;
};
mclLoader.addListener(oListener);
mclLoader.loadClip("home.swf", content_mc);

```

Appreciate any help given. 😃
