3 Replies Latest reply: Sep 18, 2013 5:21 AM by sinious RSS

    Flash CC optimizing for iphone 5: How to remove black bars

    ea2th Community Member

      iOS test app i created in Flash CC is installed and functioning fine on my iPhone 5.

      However, the app is optimized for the 640x960 screen and not the 640x1136 iPhone 5 sceen.

       

      I'm only testing on the device, not uploading to the app store.

       

      Can someone please point me in the direction of the correct code to optimze for iPhone 5 for device testing only?

       

      THX!

        • 1. Re: Flash CC optimizing for iphone 5: How to remove black bars
          sinious CommunityMVP

          This is really a loaded question. There's no simple answer and multiple strategies.

           

          One strategy is the bleeding edge method. In that, you set the stage to scale NO_BORDER and exceed the stage in all directions with your artwork. That way it scales in aspect ratio to the device size but the images that bleed outside the edges of the stage will fill the black bar area. You then focus all your controls towards a designated 'safe area' for the device and assume the extra space may or may not be seen.

           

          The harder but better method is NO_SCALE where you program like an Android device. You program your app so it detects the devices resolution and position all elements based on the available area. That means everything is constantly calculated based on available space, so it's a ton of extra coding, but it puts you in a very good port position for Android.

           

          Bottom line, there is no magic bullet or Staples "Easy Button" to make your app work perfectly on all the (now) fragmented resolutions of iPhones/iPads.

          • 2. Re: Flash CC optimizing for iphone 5: How to remove black bars
            ea2th Community Member

            Thanks for the response but I figured it out.

             

            It's really simple, no scripts needed.

            Just needed to add the image in the General Tab in the Air for iOS Settings and it's optimized for iPhone 5. 

             

            I only need to it work on one device to demonstrate gesture concepts.

            • 3. Re: Flash CC optimizing for iphone 5: How to remove black bars
              sinious CommunityMVP

              The splash screen? I thought you were referring to a strategy to resize an entire finished app to adapt to the new resolution.

               

              Glad you got what you needed, good luck!