Flash Pro cc why is the stage width and height on my phone, set as the one inside Flash pro?

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.


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


Try stage.scaleMode = StageScaleMode.NO_SCALE

or unchecking "full screen" checkbox in your Air settings

Need Your Help

Java reflection & isInstance on primitives

java reflection primitive-types

I must be missing something here, but I seem to be having some trouble doing some basic reflection. I thought that due to things like boxing that I would receive true for each of the two prints be...

How to encode JSON in ABAP

json sap abap

As Horst Keller mentioned in his ABAP and JSON post, "with Releases 7.02 and 7.03/7.31 (Kernelpatch 116) JSON is supported natively in ABAP".