actually listen for a RESIZE event on the view, then check if the width of
the view is greater than the height. If it is, landscape, if not, portrait.

On Fri, Jun 22, 2012 at 2:56 PM, Jake Churchill <reyna...@gmail.com> wrote:

> **
>
>
> I got my hands on an android 3 tablet and the same thing happens there.  I
> was also able to test on an android 2.3 phone and it does not happen there.
>  So, anything in android 3 or 4 and orientation changes that I should be
> aware of?
>
> Thanks!
>
> -Jake
>
>
> On Fri, Jun 22, 2012 at 12:21 PM, Jake Churchill <reyna...@gmail.com>wrote:
>
>> One other thing I tried.  If I stop the autoOrient and manually flip my
>> orientation via code, the same thing happens.  Usually when an app stops in
>> debug mode you get the [Unload SWF] trace line but I'm not getting that so
>> it makes me think it's just suspending it?
>>
>> This is super frustrating though.
>>
>> -Jake
>>
>>
>> On Fri, Jun 22, 2012 at 11:33 AM, Jake Churchill <reyna...@gmail.com>wrote:
>>
>>> Let's compare really quick... I'm just listening for the
>>> orientationChange event and switching states in my view accordingly.  (Code
>>> below)  Is that basically how you handle it as well or are you doing
>>> something different?
>>>
>>> I'm adding this event listener:
>>>
>>> stage.addEventListener( StageOrientationEvent.ORIENTATION_CHANGE,
>>> handleOrientationChange );
>>>
>>> and here's the handler:
>>>
>>> private function handleOrientationChange(
>>> event:StageOrientationEvent=null ):void
>>> {
>>> if( stage )
>>>  {
>>> if( stage.orientation == "rotatedLeft" || stage.orientation ==
>>> "rotatedRight" )
>>>  currentState = "landscape";
>>> else
>>> currentState = "portrait";
>>>  this.invalidateDisplayList();
>>> }
>>>  }
>>>
>>>
>>> -Jake
>>>
>>>
>>> On Fri, Jun 22, 2012 at 10:06 AM, Nick Collins <ndcoll...@gmail.com>wrote:
>>>
>>>> **
>>>>
>>>>
>>>> I have been doing active development with Flex 4.6 on my HTC Inspire 4G
>>>> (running IceColdSandwich/Android 4.0.4) with no such problems. The only
>>>> problem I have had is that Flash Builder doesn't always see the device as
>>>> still being in debugging mode, even though the device indicates that it is.
>>>> Solved by simply disconnecting the USB cable, then reconnecting it.
>>>>
>>>> I have also been developing on my ASUS Transformer Prime tablet running
>>>> ICS with no orientation issues.
>>>>
>>>> Nick
>>>>
>>>>
>>>> On Thu, Jun 21, 2012 at 5:22 PM, Jake Churchill <reyna...@gmail.com>wrote:
>>>>
>>>>> **
>>>>>
>>>>>
>>>>> I'm in the middle of writing a flex mobile app and when I debug in the
>>>>> emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to
>>>>> landscape it dies.  If I start up in landscape, it's fine until I switch 
>>>>> to
>>>>> portrait, then it dies.  In either case, there is no error in the debug
>>>>> console.  I'm using <autoOrients>true</autoOrients> which.
>>>>>
>>>>> I don't have an iPhone so I haven't been able to test there yet but
>>>>> I'm curious if anyone else has seen this.  I've written other mobile apps
>>>>> when I had a Galaxy S 1 and I had no issues there.  Is there something 
>>>>> else
>>>>> I need to do for ICS or is this a bug?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -Jake
>>>>>
>>>>>
>>>>
>>>
>>
>  
>

Reply via email to