0
votes

I am having problem setting the stage height and width for the app i am developing.

I need to set the height and width as for the screen of the device it is on. So i do stage.fullScreenHeight and stage.fullScreenWidth.

But i just realized that the fullScreenHeight and width it is setting is the size for the stage inside flash pro cc under properties(the stage size).

And i am not able to make the stage width and height according to the phone's. Even if i do Capabilities.screenResolutionX; or stage.stageHeight. All of them set to either the size of the image, or the stage inside flash pro, but none is according to the device.

Edit:

E.g. var button = Button = new Button(); 
button.width = stage.stageWidth;
button.height = Button.width/stage.stageWidth * Button.height;
1

1 Answers

1
votes

Try stage.scaleMode = StageScaleMode.NO_SCALE

or unchecking "full screen" checkbox in your Air settings