Skip to main content
Inspiring
October 22, 2011
Question

Urgent interface problem with Default.png

  • October 22, 2011
  • 1 reply
  • 2700 views

I included Default.png in with my files, but when you start up the app, it displays the Default.png image for about 1/2 a second and then the screen goes black for about 10 seconds. With any other app the default.png stays up until the app is done loading, but not with mine - and not with ANY of mine, from the simple to the complex.

Obviously I'm either doing something wrong or there is a bug. Other apps have been written in Flash that don't have this problem so I don't know what the deal is.

Can someone help me? I've asked this before but couldn't get an answer so I ignored it because it doesn't affect game play, but now people are starting to notice and leave negative notes in their otherwise positive reviews and I really need to get this fixed.

tl;dr: Does anyone know why a Default.png file would only display for 1/2 a second before showing a blank screen for several seconds?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
October 22, 2011

What you say isn't exactly true. The Default.png goes away as soon as the app has been opened, it doesn't stick around until the app is fully loaded. You would want to have a matching image on the stage that shows while the Flash file finishes loading, or use the Default.png as a splash screen, then have a loading screen that looks different inside your Flash app.

Look carefully at most iOS app, Flash or otherwise, they do one of the above two techniques.

AmbariAuthor
Inspiring
October 22, 2011

Okay, awesome! So how do I do that? Make the image stay up until the file is fully loaded? (I'm coming from AS 1.0, so sorry if that's a dumb question, but it's a completely different world now!)

Colin Holgate
Inspiring
October 22, 2011

Place a copy of the same image on the stage, in frame 1 and 2, and use the same kind of loop you would have done in AS1. Something like:

if (framesLoaded<totalFrames) {

gotoAndPlay(1);