# Embedding an Image and changing the Width and height?

**URL:** <https://forum.kirupa.com/t/embedding-an-image-and-changing-the-width-and-height/200236>\
**Category:** flash\
**Created:** [September 10, 2006, 1:58pm UTC](https://forum.kirupa.com/t/embedding-an-image-and-changing-the-width-and-height/200236 "2006-09-10T13:58:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atokatim](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@atokatim](https://forum.kirupa.com/u/atokatim)\
**Post date:** [September 10, 2006, 1:58pm UTC](https://forum.kirupa.com/t/embedding-an-image-and-changing-the-width-and-height/200236/1 "2006-09-10T13:58:57Z")

</div>

And yet another problem… I have created a Movie Clip and named it member\_image and have put in the actionscript to load an external Image. that works fine, but i cannot resize that image to fit in the Movie Clip area. The width and Height of “member\_image” is 215 X 160. I am trying to be able to load any image into that area and size it to the same as the movie clip.

Here is my code that i have already :

```php

onClipEvent(load){
var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("http://www.mp3profiles.com/a7xbg.jpg", container);
}

```

Thanks in advance!
