# \[MX2\]Change the size in action script

**URL:** <https://forum.kirupa.com/t/mx2-change-the-size-in-action-script/33330>\
**Category:** flash\
**Created:** [October 18, 2003, 1:07am UTC](https://forum.kirupa.com/t/mx2-change-the-size-in-action-script/33330 "2003-10-18T01:07:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scdlt](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@scdlt](https://forum.kirupa.com/u/scdlt)\
**Post date:** [October 18, 2003, 1:07am UTC](https://forum.kirupa.com/t/mx2-change-the-size-in-action-script/33330/1 "2003-10-18T01:07:52Z")

</div>

Here is what I have. I made a box that is 3x3px and it fades in, now I want it to change size from 3x3 to 300x300px. Now how would this be done? here is my code so far:

```auto

// create the box
	_root.createEmptyMovieClip("Box", 100);
	//starting alpha
	Box._alpha = 0;
//box
	_root["Box"].lineStyle(2, 0x2D3E34, 100);
	_root["Box"].beginFill(0xA2BBAD, 100);			
		_root["Box"]._x=5;
		_root["Box"]._y=5;
		_root["Box"].moveTo(0, 0);
		_root["Box"].lineTo(3, 0);
		_root["Box"].lineTo(3, 3);
		_root["Box"].lineTo(0, 3);
		_root["Box"].endFill(0, 0);

//change alpha
	speed = 5
	Box.onEnterFrame = function ()
	{
		if (this._alpha < 100){
			this._alpha += speed;}
		else{
			delete this.onEnterFrame;}
	}

```

I want the box to change size while it is fading in.  
So fare I’ve tried scale and width but those change the border size too, which is really annoying because I end up with a 100px border and a 100px box, not exactly what I was going for.
