Just looked at my code and it *appears* that I was using AIR 3.1 when I
originally built this code.  Also, my <autoOrient> is set to true, so it
should be re-orienting itself, but apparently something broke that part of
it.  Still haven't tried a rebuild and resubmit yet though.


On Mon, Sep 23, 2013 at 11:29 AM, Jeffry Houser [via Apache Flex Users] <
[email protected]> wrote:

>
>   For my mobile game; this is how I fixed orientation issues.  This
> predates iOS 7 and I was using Flex 4.6 w/ AIR 3.4 superimposed on top
> of it; but perhaps the same approach can help
>
>
> 1) In the app descriptor file I set these values:
>          <aspectRatio>landscape</aspectRatio>
>          <autoOrients>false</autoOrients>
>
>
> 2) In the main application file; I Set an applicationComplete handler:
>
> Setting up the listener:
> applicationComplete="viewnavigatorapplication1_applicationCompleteHandler(event)"
>
>
> The handler method:
> protected function
> viewnavigatorapplication1_applicationCompleteHandler(event:FlexEvent):void
> {
>   this.stage.setAspectRatio( StageAspectRatio.LANDSCAPE );
> }
>
> 3) In the main application file; I set up a viewactivated handler:
>
> Setting up the listener:
> activate="viewnavigatorapplication1_activateHandler(event)"
>
> The Handler method:
> protected function
> viewnavigatorapplication1_activateHandler(event:Event):void
> {
>   if(this.stage){
>    this.stage.setAspectRatio( StageAspectRatio.LANDSCAPE );
>   }
> }
>
> This solved the issues.  But, I honestly don't remember if I had issues
> on iOS or on some Android devices.
>
>
> On 9/23/2013 9:21 AM, lampei wrote:
>
> > Tried this again last night and it looks like I don't have the auto
> > orientation on for the one app the user says is failing.  I may try
> turning
> > that on (as I'm already accounting for that in the app) and see if that
> > fixes the issue
> >
> >
> > On Sun, Sep 22, 2013 at 11:52 PM, Gareth Arch <[hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=2815&i=0>>
> wrote:
> >
> >> Wow, that's very weird then. I am using currentState and handling
> >> orientation changes, but nothing to force the orientation to one way
> vs.
> >> the other. Just using certain views when oriented a certain way.
> >>
> >>
> >> On Sunday, September 22, 2013, boulevardr [via Apache Flex Users]
> wrote:
> >>
> >>> So I did some testing myself on and iPad2 upgraded to iOS7 and one app
> >>> works just fine, while other, which shares a very similar code base,
> starts
> >>> off in portrait (it's designed for landscape only) and then all the
> screens
> >>> are basically inaccessible.
> >>>
> >>> One works as expected, the other is totally wrong.  My guess is that
> it
> >>> has something to do with how the apps were programmed to orient.
> >>>
> >>> ------------------------------
> >>>   If you reply to this email, your message will be added to the
> >>> discussion below:
> >>>
> >>>
>
> >>> .
> >>> NAML<
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>>
> >
> >
> >
> > --
> > View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/iOS7-broke-Flex-tp2797p2814.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
> --
> Jeffry Houser
> Technical Entrepreneur
> http://www.jeffryhouser.com
> 203-379-0773
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/iOS7-broke-Flex-tp2797p2815.html
>  To unsubscribe from iOS7 broke Flex?, click 
> here<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2797&code=bGFtcGVpQGdtYWlsLmNvbXwyNzk3fDE4NjM3MDk0MjM=>
> .
> NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/iOS7-broke-Flex-tp2797p2816.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to