Image Resize

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.

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: