Transforming circle shape into a square


I have a created a shape object circle that I want to transform into a square on mouseover (all should be handled with code - no timeline anims). I know how to do this in the timeline (using shape hints) but how on earth do I do it with AS 3?

Thanks in advance,