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
Developer
T55555
Posts: 117
Registered: ‎12-03-2010
My Device: Not Specified
Accepted Solution

How to set orientation of screen

Hi,

 

I don't have time to support both landscape and portrait orientation for my app now...  :-(

I used the trick, like set y = 601 to hide things. ( I know visible property, but for same raison, don't like to use it )

 

But I just realize that if the playbook turns to portrait, and the device auto-size itself, my trick will not work any more... ( and it will be very funny ....   unfortunately, simulator did not support orientation for testing )

 

So, for the xml file configuration, there is a setting like:

<autoOrients>false</autoOrients> 

to avoid auto orientation.

 

But, I cannot find a config setting to "force" and frizz the screen always on landscape (1024 x 600) mode.

What is the setting to force the app always on 1024 x 600 ?

 

Thanks.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to set orientation of screen

You can do it in the root Sprite parameter, by doing

 

[

SWF(height="1024", width="600", frameRate="30", backgroundColor="#000000")]

 

Most people are locking in landscape mode until the simulator supports it or they get their PB.

Please use plain text.
Developer
T55555
Posts: 117
Registered: ‎12-03-2010
My Device: Not Specified

Re: How to set orientation of screen

Thanks jtegen.

 

(:smileyhappy: I already did that, but just want to double check to be sure that it will be locked in landscape )

Please use plain text.