[FMX]Animation with actionscript

The following animation is made with a simple motion tween in wich the square first change in width before it change in height.
How do I accomplish the same effect with actionscript?

http://www.testfolder.com/property.htm

I mean that first the width change and when that is finished that the height change.