# Image Resize

**URL:** <https://forum.kirupa.com/t/image-resize/271022>\
**Category:** Uncategorized\
**Created:** [September 17, 2008, 2:19pm UTC](https://forum.kirupa.com/t/image-resize/271022 "2008-09-17T14:19:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SopaSeco](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@SopaSeco](https://forum.kirupa.com/u/SopaSeco)\
**Post date:** [September 17, 2008, 2:19pm UTC](https://forum.kirupa.com/t/image-resize/271022/1 "2008-09-17T14:19:20Z")

</div>

Hi, I have a trouble with a fluid layout. I have a movie clip in this one i charge some external images with a xml but this movie clip it’s smaller than the images and when i make preview the images go bigger than my movie clip :crying:

I use this code for fluid layouts but when i make preview doesn’t works only when i change my movie size.

```auto
var stageListener:Object = new Object();
stageListener.onResize = function() {
	MC._x = Math.round((Stage.width/2)-(MC._width/2));
	MC._y = 154;
	MC._height = Math.round(Stage.height-184);
	MC._xscale = MC._yscale;
};

Stage.addListener(stageListener);

beginScale.onLoadInit = function () {
	MC._x = ((Stage.width/2)-(MC._width/2));
	MC._y = 154;
	MC._height = (Stage.height-184);
	MC._xscale = MC._yscale;
};

beginScale();

```

I need when my movie begin my images take the size of my MovieClip.

Sorry for my bad english :stare:
