# Dynamically resizing/limiting width of a movieclip

**URL:** <https://forum.kirupa.com/t/dynamically-resizing-limiting-width-of-a-movieclip/271446>\
**Category:** Uncategorized\
**Created:** [September 23, 2008, 8:35am UTC](https://forum.kirupa.com/t/dynamically-resizing-limiting-width-of-a-movieclip/271446 "2008-09-23T08:35:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikekl](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@nikekl](https://forum.kirupa.com/u/nikekl)\
**Post date:** [September 23, 2008, 8:35am UTC](https://forum.kirupa.com/t/dynamically-resizing-limiting-width-of-a-movieclip/271446/1 "2008-09-23T08:35:16Z")

</div>

I have some rectangles inside a movieclip. All movieclips are created by actionscript. I want to limit the size of the movieclip on top right corner when user starts drag.

```auto
this.holder_mc.onEnterFrame = function() {
	this.holder_mc.rectangle_6._xscale = this.holder_mc._xscale-260;
	trace(holder_mc.rectangle_6._xscale);
};

```

This code doesn’t work (xscale is constant). I will also need to resize the movieclip on the top left corner.
