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.

inside custom component

Adobe AIR Development

Reply
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
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
Developer
Deepu_George_Jacob
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380

Re: Get Device Screen Size?

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

Developer
UberschallSamsara
Posts: 1,029
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C
Developer
Deepu_George_Jacob
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380

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 ?

Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10

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