Skip to main content
Participant
July 21, 2013
Question

Accessing iOS launch images

  • July 21, 2013
  • 2 replies
  • 714 views

Good day! I'm working on AIR mobile application for iOS. This is a great feature on iOS which can show the static image before the AIR is initialized. But my app has a really lot of content. When the AIR is initialized user can see the black screen for a few seconds. So, i've made some kind of a preloader to handle this situation. But now I have all launch images embedded in my preloader. I've made this to show the same image which was shown by iOS so user even doesn't see that something changes in my app. This is the question: maybe there is a way to get a path to the launch image, which was shown by iOS? On example by this.loaderInfo.something (but i can't find there something like this). This feature will be really helpfull, and I will no longer need to embed all of launch images, so the app size will be smaller.

This topic has been closed for replies.

2 replies

Undaraa
Participant
July 30, 2013

hi someone can help me, I want optimize my app for iphone 5. I uploaded  Default-568h@2x.png but how can i change other content , image for iphone 5.

Colin Holgate
Inspiring
July 21, 2013

You have a couple of choices, but first, what stage scale mode do you use?

If you’re using no_scale you will have to continue to have every size of splash screen embedded, or, you could have a secondary splash screen. So for example, the external splash screens could be just the company logo, and then the internal splash screen would be something like “Loading...”, and could be a smaller graphic centered against a background texture.

If you are using scale modes such as show_all or no_border, you can have a duplicate of one of the external splash screen images on your stage, and that one image will do for all size screens. You would want to make that embedded version be the one that is used for iPad Retina, it will look exactly right on iPad 3, and will scale well enough for other devices.

Participant
July 22, 2013

I'm using NO_SCALE mode. Yep, i'm already using something like a two preloader images (one is the Application Logo, second is 'Loading...') but i didn't like this sharp switch between them, so, i trying to find way to use one image..

Colin Holgate
Inspiring
July 22, 2013

You will need to do all the scaling and centering that Flash does for you in the other scale modes. The easier one would be to emulate show_all. Suppose you take your Retina iPad splash screen, you would make its scaleX and scaleY be equal to the device screen width divided by 2048. Then you would center it vertically, and set its x to zero. That should work for all screens.

To make some of that slightly easier you could set the registration point to be 0,768 (half way down the left side of the Retina splash screen). That way the x ends up still as zero and the y as half the device screen height. Or have the registration point in the center, and set the x to half the device screen width.