0
votes

I want to be able to resize my application (which is on by default, by dragging a corner of the app to resize the whole window). However, I'd like to lock the aspect ratio of this, so that when I resize, the main window will keep the original aspect ratio.

How do I do this?

I'm using FlashBuilder 4.6.

1

1 Answers

0
votes

As far as I know there is not an easy way to do this, as there is no simple way to determine when the resize event is done. If you try to keep the aspect ratio the same using the ResizeEvent, you get this annoying flicker and it doesn't work very well otherwise either.

My solution would be either doing a custom resize button/slider that proportionally increases both width and height according to the aspect ratio, or maybe looking into StageScaleModes, keeping the Scale as edit:SHOW_ALL while only scaling the background image for example.