# Resize movieclip

**URL:** <https://forum.kirupa.com/t/resize-movieclip/103749>\
**Category:** Uncategorized\
**Created:** [March 8, 2004, 10:26pm UTC](https://forum.kirupa.com/t/resize-movieclip/103749 "2004-03-08T22:26:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 8, 2004, 10:26pm UTC](https://forum.kirupa.com/t/resize-movieclip/103749/1 "2004-03-08T22:26:12Z")

</div>

Ok I can’t belive that this can’t be done, but I’ve been stuck on this for 2 days now  
and the forums have nothing on this. :puzzle:

I believe a Prototype can handle this, but I know nothing about protoypes.

Here’s my problem. I have an intro to my main site that basically reveals elements through masking. So what happens is a have some movieclips that I am using for masks. On the correct interval the mask mc resizes revealing elements(i.e. content window, newsletter, etc) using actionscript.

A sample of the code is something like this

```auto

// content mask function
function contentMaskDelay(){
	contentMask.onEnterFrame = function(){
		contentBox._visible = true;
		var heightChange = Math.round(290-this._height)
		var widthChange = Math.round(340-this._width)
    	this._height += heightChange/3
		this._width += widthChange/3
	}
	clearInterval(contentBoxDelay);
}
contentBoxDelay = setInterval(contentMaskDelay, 4000);

```

Ok so that work’s fine, no problems and it does exactly what I want. I have a number of mask effects going on just like this, but that is not important.

**My problem**  
I need an outro script. Meaning when a user click let’s say the “about” button, I want the content mask to reduce size, thus causing the opposite effect as the intro.

So… In other words I want to change the size of the content movieclip mask as I did in the intro, only on button event.  
i.e.

```auto

about.onRelease = function(){
// make mask mc smaller
}

```

For the life of me i can’t figure it out. it seems I can’t resize this mask movieclip on button event but I can without a button event as I have done for the intro.

Note: I am not using tweens for several reasons, tweens is not an option.

Please someone lead me in the right direction here.

Thanks,  
Digital
