# Why does loaded movie's width return 0?

**URL:** <https://forum.kirupa.com/t/why-does-loaded-movies-width-return-0/223022>\
**Category:** flash\
**Created:** [April 18, 2007, 7:51pm UTC](https://forum.kirupa.com/t/why-does-loaded-movies-width-return-0/223022 "2007-04-18T19:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [April 18, 2007, 7:51pm UTC](https://forum.kirupa.com/t/why-does-loaded-movies-width-return-0/223022/1 "2007-04-18T19:51:57Z")

</div>

```auto
swfLoader = new MovieClipLoader();
swfListener = new Object();
swfLoader.addListener(swfListener);
swfLoader.onLoadInit = function(targetMC:MovieClip) {
	trace(targetMC._width); // returns 0
};
swfLoader.loadClip("http://url.com/1.swf", this.containerBox);

```

Any ideas? I need to resize the loaded swf into the width of containerBox, and add some sort of detection to figure out when the loaded swf is finished (maybe using \_current & \_totalframes) to load the next swf (where process repeats).

Thanks
