# Resize almost working

**URL:** <https://forum.kirupa.com/t/resize-almost-working/49982>\
**Category:** flash\
**Created:** [April 28, 2004, 3:03pm UTC](https://forum.kirupa.com/t/resize-almost-working/49982 "2004-04-28T15:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)\
**Post date:** [April 28, 2004, 3:03pm UTC](https://forum.kirupa.com/t/resize-almost-working/49982/1 "2004-04-28T15:03:32Z")

</div>

I made a movie clip that has this code in it

```auto

onClipEvent(load){
	_root.boxW = _width
	_root.boxH = _height
	_root.boxX = _x
	_root.boxY = _y
	spacing = 10
}
onClipEvent(enterFrame){
	_width = _root.boxW-(_root.boxW-_width)/1.2
	_height = _root.boxH-(_root.boxH-_height)/1.2
}

```

and my button has this code in it

```auto

on (release) {
	_root.boxH = 0;
	_root.boxW = 0;
	_root.boxX = 500;
}

```

The resize works fine but the x and y dont work. The box just stays in its place and does not move.

If you have any ideas that would be awsome.

rL
