I am developing an AS3 application (not a Flex one) using Flash Builder 4.5. My application can set its graphical components automatically according to stageWidth/stageHeight. M
If you want the dimensions of your app to change according to the browser's size, you need to do a number of things:
Set the width and height of the SWF to 100% in the HTML embed code
Since you are going to handle the layout of the app yourself, you also need to set the scale
property to noscale
(still in the embed code)
In Flash set stage.scaleMode = "noScale"
then use stage.stageWidth
and stage.stageHeight
to get the size of the browser's window, and to layout your application.
Finally, consider listening to Stage.RESIZE to update the layout when the browser's window changes.
All this would apply to a regular browser as well as a Flash app running in a mobile phone.