03-26-2011 04:53 AM
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>
Solved! Go to Solution.
03-26-2011 09:39 AM
Do you have these tages placed inside the correct parent tags?
03-26-2011 09:51 AM
03-26-2011 12:02 PM
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>
03-26-2011 01:30 PM
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.