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.

Edit:

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

Answers


Try stage.scaleMode = StageScaleMode.NO_SCALE

or unchecking "full screen" checkbox in your Air settings


Need Your Help

Is there anything like ServerSpec for Azure

node.js powershell azure windows-azure-storage azure-mobile-services

I've been bitten by the test-driven infrastructure bug. My current project is using Azure, including SQL Azure, Azure tables, cloud services, and mobile services. Configuring an entire environmen...

Chrome bug - border radius not clipping contents when combined with css transition

google-chrome css-transitions css3 css-transforms

My issue is that during CSS transition border-radius temporarily stops clipping elements inside if transition of overlapping element involves transform. In my case I have two divs absolutely positi...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.