I’m developing a Flex application that is designed for screen resolutions of 1280×1024 and more. In the rare case that a projector is used (which usually has a maximum of 1024×768 pixels) I’d like to scale down the application (currently I get lots of scrollbars and clipping).
I’ve already experimented with the application’s properties scaleX and scaleY as well as stage.scaleMode. However, I couldn’t quite figure out a way to
- render the application without scaling when the application’s width and height are larger than certain values
- use scaling when the width or height are smaller than certain values
How can I accomplish this?
I finally figured out a way to scale down the application. Actually, the applications children need to scale. Otherwise the
widthandheightof the application shrinks.Since I’m using states I had to add an event handler for the
currentStateChangingevent too.