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
VansFannel
Posts: 166
Registered: ‎03-04-2011
My Device: Playbook
Accepted Solution

Not allowing orientation changes.

I'm developing an ActionScript 3.0 app for PlayBook.

 

I've found this Blackberry Playbook Simulator Tips and I was testing orientation changes.

 

I thought I'm only supporting Landscape orientation, but when I've changed to portrait, I've seen that my app changes its orientation.

 

How can I avoid this? I want a full screen app with landscape orientation only.

 

I have this on -app.xml

 

<autoOrients>false</autoOrients>
<aspectRatio>landscape</aspectRatio>
<fullScreen>true</fullScreen>
<visible>true</visible>

 

 

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

Re: Not allowing orientation changes.

Do you have these tages placed inside the correct parent tags?

Please use plain text.
Developer
ahazdesigns
Posts: 152
Registered: ‎08-25-2010
My Device: 9530, 9550, 9630

Re: Not allowing orientation changes.

Please use plain text.
Developer
VansFannel
Posts: 166
Registered: ‎03-04-2011
My Device: Playbook

Re: Not allowing orientation changes.

Now, with simulator 0.9.4 I can't chage my app to Portrait orientation. But, if I change to Portrait orientation with Browser, and I turn back to my app I get the same problem.

 

 

<initialWindow>
		<!-- The main SWF or HTML file of the application. Required. -->
		<!-- Note: In Flash Builder, the SWF reference is set automatically. -->
		<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
		
		<!-- The title of the main window. Optional. -->
		<!-- <title></title> -->

		<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
		<!-- <systemChrome></systemChrome> -->

		<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
		<!-- <transparent></transparent> -->

		<!-- Whether the window is initially visible. Optional. Default false. -->
		<!-- <visible></visible> -->

		<!-- Whether the user can minimize the window. Optional. Default true. -->
		<!-- <minimizable></minimizable> -->

		<!-- Whether the user can maximize the window. Optional. Default true. -->
		<!-- <maximizable></maximizable> -->

		<!-- Whether the user can resize the window. Optional. Default true. -->
		<!-- <resizable></resizable> -->

		<!-- The window's initial width in pixels. Optional. -->
		<!-- <width></width> -->

		<!-- The window's initial height in pixels. Optional. -->
		<!-- <height></height> -->

		<!-- The window's initial x position. Optional. -->
		<!-- <x></x> -->

		<!-- The window's initial y position. Optional. -->
		<!-- <y></y> -->

		<!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
		<!-- <minSize></minSize> -->

		<!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
		<!-- <maxSize></maxSize> -->
	<autoOrients>false</autoOrients>
	<aspectRatio>landscape</aspectRatio>
    <fullScreen>true</fullScreen>
    <visible>true</visible>
  </initialWindow>

 

 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Not allowing orientation changes.

We think that's a simulator bug, though obviously no one can say for sure until we have hardware.

 

If you minimize your app and rotate, the simulator does the rotation and your app basically gets dragged along for the ride in some fashion.

 

For now, assume that if you can't rotate your app while it's filling the screen, all is well.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.