flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Flex Application Stage Size and Scaling
Date Tue, 31 Dec 2013 04:20:29 GMT
There is no API to set the stage size for browser/web apps via
ActionScript.  The stage is sized by the HTML wrapper.  In theory, you
could write JavaScript code in the HTML wrapper and call it via

Note that Flash has some built in pan/zoom capabilities on the right-click
menu.  OTOH, I don't remember if Flex turns off these options by default
or not.  You may also need to follow the rules explained here:


On 12/29/13 8:42 PM, "Tom Berry" <tomberry@yopmail.com> wrote:

>I am trying to create a Web and Desktop flex application for people who
>have less than perfect vision. I would like to allow the users to magnify
>everything on the screen (including text, buttons, images, etc.) if
>necessary. I have gotten the magnification step down using the following
>code in the main Application
>var matrix:Matrix = this.transform.matrix;
>var scale:Number = 2;
>matrix.scale(scale, scale);
>this.transform.matrix = matrix; // this refers to the main Application
>Of course, by doing so, the Flex Application will be too big for the Flash
>Player window and only the top left quarter of the application is
>visible. I
>figure the next step is to decrease the Flex Application stage size by 50%
>to compensate. For some reasons, I can't figure out how to change the
>size of the Flex Application so that it only occupies the top left quarter
>of the Flash Player window.
>Any thoughts? Thanks a lot!
>View this message in context:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message