Skip to main content
Leafcutter
Inspiring
October 4, 2011
Question

iOS Splash screen transition flicker

  • October 4, 2011
  • 4 replies
  • 1265 views

I have been trying to get an AS3 mobile app that I built and released for Android to work on an iOS device.  I am having a problem with the splash screen on iOS, specifically when it is removed at the start of application processing.

My app needs to do some work on startup and so my intention was to continue to display the splash screen when I got control of the screen.  However, when my code starts executing I don't immediately seem to be able to determine the screen size accurately (I don't get a width of 768 pixels).  If I wait a bit (250 ms) using a timer then query the device Capabilities or stage width I get the right answer. 

What all this means is that I have to display a generic splash before I can display my platform specific splash and because it is necessarily stretched there is a bit of a jerk as the image changes from Default-portrait to generic splash to specific splash.  Is there a way to find the hardware platform and screen resolution immediately on startup ?  I am using:

screenX = stage.stageWidth;

screenY = stage.stageHeight;

var diagonal:Number = Math.sqrt((screenX*screenX)+(screenY*screenY))/dpi;

screenWidth = Math.min(screenX, screenY);

screenHeight = Math.max(screenX, screenY);

screenXMid = screenWidth*0.5;

I have also tried this with Capabilities.screenResolutionX and Y but stageWidth seemed more consistent.  Have I completely missed something here?

This topic has been closed for replies.

4 replies

Colin Holgate
Inspiring
October 4, 2011

I am working through the same issues, and have had better luck either listening for the resize event, or using stage.fullScreenWidth

Leafcutter
Inspiring
October 5, 2011

stage.fullScreenWidth does seem to be correct earlier on in the startup.  Still not perfect but I have submitted the app so we will see if it is a big enough issue to get it rejected.

October 11, 2011

@Leafcutter,

Can you please update on the status of your app you sumitted?