Increasing the width

Hey,
I am trying to copy the box resizing effect on this web site. I have come up with this so far:


on(release) {
	if(_root.box._width != 200) {
		var nm = _root.box._width
		while(nm < 200) {
			_root.box._width += 2
			nm +=2
				}
	}

}

There is alot of problems though. It does the resizing of the box instantly, not over x amount of seconds. Is there any way to get a similair effect like the one on that website?