Browser resizing (keeping elements equal)

Earlier yesterday I was showing a friend of mine an approach I use with full browser flash sites to keep content resized to fit the browser if the browser goes small it goes small, wide it goes wide. After I showed him all this fun stuff (which you can see what I showed him in the .swf file included in this post) he asked me “What if I want the content resizing to resize to fit the browser but keep equal height and width” meaning if he has a square that is staying centered in the flash movie and wants it to resize to fit in the browser how would one go about keeping the height and width equal to one another? Any thoughts on the subject.