Resize almost working

I made a movie clip that has this code in it


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


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