# MovieClipLoader onLoadComplete problem

**URL:** <https://forum.kirupa.com/t/moviecliploader-onloadcomplete-problem/208929>\
**Category:** flash\
**Created:** [December 4, 2006, 1:27pm UTC](https://forum.kirupa.com/t/moviecliploader-onloadcomplete-problem/208929 "2006-12-04T13:27:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fshuja](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@fshuja](https://forum.kirupa.com/u/fshuja)\
**Post date:** [December 4, 2006, 1:27pm UTC](https://forum.kirupa.com/t/moviecliploader-onloadcomplete-problem/208929/1 "2006-12-04T13:27:56Z")

</div>

am dynamically creating a 2 movie clips in a class. in one movie clip i am loading the image using MovieClipLoader. everything is working fine. but the onLoadComplete method is not working properly.  
i am using onLoadComplete method to find the width of the image but in onLoadComplete event the exact width is not calculating

code is here  
\_\_imageClip = createEmptyMovieClip(“MyImage”, this.getNextHighestDepth());

```
__canvasClip = createEmptyMovieClip("MyCanvas", this.getNextHighestDepth());

    imageLoader = new MovieClipLoader();
	imageLoader.addListener(mclListner);
	mclListner.onLoadComplete = function():Void {
		__fileWidth = _root.myLoader.__ imageClip._width;
		__fileHeight = _root.myLoader.__ imageClip._height;
		trace(__fileWidth);
	};
	imageLoader.loadClip( __fileName, this.__ imageClip);

```

Faraz
