# Resizing movieclips

**URL:** <https://forum.kirupa.com/t/resizing-movieclips/266220>\
**Category:** Uncategorized\
**Created:** [July 17, 2008, 10:29am UTC](https://forum.kirupa.com/t/resizing-movieclips/266220 "2008-07-17T10:29:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [July 17, 2008, 10:29am UTC](https://forum.kirupa.com/t/resizing-movieclips/266220/1 "2008-07-17T10:29:05Z")

</div>

Hi all,

I’m making a flash site that loads in movieclips from the library, but I have it so the stage/container resizes depending on the users resolution. However, now because of the different resolutions I need the movieclips that I am loading into my container to resize as well. (The original container is created by AS).

I have looked into \_xscale and \_width etc, but it’s not working. I am currnetly using a for loop to attach my movies

```auto

var numMcs:Number = 1;
	
	for(i=0; i<=numMcs; i++)
	
	{
	
		container.attachMovie("img"+i+"_mc", "img"+i, 1);

		var maxHeight:Number = 419;
		var maxWidth:Number = 900;
		
		if(img*._width != maxWidth)
		{
			img*._width = maxWidth;
			img*._height = maxHeight;
		}
		
	}

```

I am more than likely going about this the wrong way, but any advice would be greatly appreciated!

Thank you!
