# Class problems with LoadMovie

**URL:** <https://forum.kirupa.com/t/class-problems-with-loadmovie/65906>\
**Category:** flash\
**Created:** [September 30, 2004, 2:50pm UTC](https://forum.kirupa.com/t/class-problems-with-loadmovie/65906 "2004-09-30T14:50:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojave3](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mojave3](https://forum.kirupa.com/u/mojave3)\
**Post date:** [September 30, 2004, 2:50pm UTC](https://forum.kirupa.com/t/class-problems-with-loadmovie/65906/1 "2004-09-30T14:50:16Z")

</div>

hi,  
the only thing that this thing should do is to load a movie into a holder\_mc and place it somewhere on the stage.  
without a class it works.  
within a class it does not.  
why!? can anybody tell me please!

```auto

class Main extends MovieClip {
	var menuListener:Object;
	var menuLoader:MovieClipLoader;
	var menu_mc:MovieClip;
	var mcContent:MovieClip;
	//
	public function Main() {
		
		this.createEmptyMovieClip("menu_mc", getNextHighestDepth());
		menuListener = new Object();	
		menuListener.onLoadInit = function(mcContent:MovieClip) {
			trace("hello world");
			mcContent._y = 515;
		};
		menuLoader = new MovieClipLoader();
		menuLoader.loadClip("ButtonMenu.swf", menu_mc);
		menuLoader.addListener(menuListener);

	}
}

```
