# Resize loadClip image

**URL:** https://forum.kirupa.com/t/resize-loadclip-image/246748
**Category:** Uncategorized
**Created:** [December 14, 2007, 3:38am UTC](https://forum.kirupa.com/t/resize-loadclip-image/246748 "2007-12-14T03:38:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![giloosh](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@giloosh](https://forum.kirupa.com/u/giloosh)
#### Post date: [December 14, 2007, 3:38am UTC](https://forum.kirupa.com/t/resize-loadclip-image/246748/1 "2007-12-14T03:38:04Z")

</div>

Some images I load dynamically are too big so I would like to scale them to fit the stage.

```auto

var imgCont:MovieClip = _root.mcHolder;

var mcLoader:MovieClipLoader = new MovieClipLoader();

var mcListener:Object = new Object;

mcLoader.addListener(mcListener);

mcLoader.loadClip("test.jpg",imgCont);

mcListener.onLoadComplete = function(){
    trace(imgCont._width);
}

```

this returns 0.  
Why does it return 0 when the image loaded is obviously much larger then 0 pixels.

How do I change the width and height of imgCont to a specified dimension.
