Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Trusted Contributor
itcraps
Posts: 229
Registered: ‎12-26-2010
My Carrier: Telus
Accepted Solution

Get Device Screen Size?

Hi, how do we get device screen size? stage.width and stage.height doesnt work...

 

Any thoughts? thanks

www.jackdevora.com
Please use plain text.
Trusted Contributor
Deepu_George_Jacob
Posts: 190
Registered: ‎12-13-2011
My Carrier: Vodafone-IN

Re: Get Device Screen Size?

stage.stageWidth and stage.stageHeight is workable.. are you added ANE files ?

Please use plain text.
Please use plain text.
Trusted Contributor
Deepu_George_Jacob
Posts: 190
Registered: ‎12-13-2011
My Carrier: Vodafone-IN

Re: Get Device Screen Size?

Hi,

Not this man, stage.Width and stage.Height is workable ?? How you create your project ? Are you include Native Extentions ?

Please use plain text.
Trusted Contributor
itcraps
Posts: 229
Registered: ‎12-26-2010
My Carrier: Telus

Re: Get Device Screen Size?

Thnks for the answer actually both of the codes work, stage.stageWidth didnt work before cause silly me, I called it from my view.

 

Display.display.getDisplayWidth(int) is more sturdy to be used..

 

thanks again

www.jackdevora.com
Please use plain text.