# Movieclip: Ajustable Width & Height

**URL:** https://forum.kirupa.com/t/movieclip-ajustable-width-height/303849
**Category:** flash
**Created:** [January 28, 2010, 12:45am UTC](https://forum.kirupa.com/t/movieclip-ajustable-width-height/303849 "2010-01-28T00:45:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![juliantgh](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@juliantgh](https://forum.kirupa.com/u/juliantgh)
#### Post date: [January 28, 2010, 12:45am UTC](https://forum.kirupa.com/t/movieclip-ajustable-width-height/303849/1 "2010-01-28T00:45:54Z")

</div>

hi,

how can i make a movieclip resize itslef in relation to the width and height of an external image?

i tried loading the external image and then assigning the w/h of the movie clip to the loader but doesn’t work.

Thanks in advance

```auto

var req:URLRequest=new URLRequest("img.jpg");
var loader:Loader=new Loader ;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
loader.load(req);

function loaded(event:Event):void {
    mc_.addChild(loader);
    mc_.height=loader.height;
    mc_.width=loader.width;

}

```
