This was originally posted in the Flash Pro CC forum, and it was recommended that I post it here, instead.
Using: Flash CS6 12.0.2.529 and AIR 3.7.0.1860 SDK
Background: I first built an app using Flash CS6 and AIR 3.4, including the requiredDefault-568h@2x.png image, and it worked on all iPhones and all iPads. I submitted it to Apple. They rejected it, stating that that Default image was NOT present (in fact, it was). The solution (from another forum) was to compile to AIR 3.7 SDK, so I did. Apple's system then accepted the app. But now, Apple stated that there were orientation and display problems: my app was crashing for them and not filling the entire screen. This new problem occurred only with my AIR 3.7-compiled app.
Problem 1 (kinda' resolved): After a ton of troubleshooting, I realized that stage.orientation (in my first frame) was always resulting in null. This was causing my app to crash upon launch. I moved stage.orientation to frame #2, and it worked. Therefore, for some reason, with AIR 3.7, stage.orientation CANNOT be in the first frame (again, this worked with AIR 3.4 and became "broken" with AIR 3.7).
Problem 2 (not resolved): When running an app in the background, stage.orientation does not process. Example: I use a stageWebView window to display an MP4 video. When the user 1) stretch-swipes the video to make it full-screen, 2) then changes the device orientation, and 3) shrinks the full-screen video back down again, the app remains in the previous orientation (not the new orientation). Stated differently: 1) view the app in landscape, 2) swipe the video to full screen, 3) change device orientation to portrait, 4) close/shrink the video, and 5) the app appears again but in landscape (not portrait, as it should). It appears that stage.orientation, thus, does not process when the app is in the background -- but, it should! Again, this worked properly with AIR 3.4 and became "broken" with AIR 3.7.
Can anyone please provide some guidance on how/if I can make this work? I'm just frustrated that this worked with AIR 3.4 and not with AIR 3.7. Thank you for your help.