my "Default.png" show only for a half second.
how increase launch image time ?
Increase launch image time.
(8 posts) (5 voices)-
Posted 1 year ago #
-
You are talking about the iOS support for showing a native launch image right?
Check out the latest Starling sample code and the Startup_iOS class. Daniel shows how to also use a startup splash screen that you add to the flash stage and then remove only when you are ready with other loading.
You should be able to combine both the use of iOS Default.png launch image along with an AIR stage startup screen to 'extend' the loading image look of your app.
Posted 1 year ago # -
I see that the solution is to listen for
Event.CONTEXT3D_CREATEbefore removing the extra splash screen. Let's say that I'm going to create a 2048x2048 texture atlas on startup. Does anyone know, will this texture upload have a long enough delay to result in a blank screen? Or is the vast majority of the startup delay due to waiting for the Context3D creation? Basically, I want to be sure that the startup graphic smoothly transitions into the title screen.Posted 1 year ago # -
I would think you could also just change from using Event.CONTEXT3D_CREATE to remove the startup image and .start() Starling's eventing and instead just delay even further into your custom app code and trigger them only after you ask for that texture atlas to load?
Posted 1 year ago # -
I've tried just about everything, and I cannot get rid of a slight flicker (about 1/4 second) on an iPhone 3GS. On every other device, there is no flicker. I'm using a UILaunchImageFile to get the initial image loading right when the app is started, which works fine. And then immediately after my code starts executing, just like in the StartUp_iOS.as class mentioned, I'm creating an instance of an embedded image and adding it to the stage, then initializing Starling. Yet I still have a noticeable gap on iPhone 3GS, which I can only assume is because it's a fairly slow device.
Any thoughts on how to fix this? Has anyone else been able to get rid of this flicker/gap on this device?
Posted 11 months ago # -
Does the example keep the launch image visible until
Event.ROOT_CREATEDis dispatched by theStarlinginstance? I've been able to use that event to show a splash image successfully... including on devices that are slower than an iPhone 3GS.Even if you're listening to
Event.ROOT_CREATED, you can still get a flicker/gap if you don't show some Starling content right away in your root class. It's important that you display something no later than when your root class dispatchesEvent.ADDED_TO_STAGE.Posted 11 months ago # -
Hm, I think there might be a bit of miscommunication here. There is no ADDED_TO_STAGE in my root class, since this is an Air app and the main file that kicks everything off doesn't get that event, it is instead the very first thing that's called once the app starts up.
Here's what I've got:
1. I've specified a UILaunchImageFile in my .xml app descriptor file. That works correctly, and shows a splash image immediately, like it's supposed to.
2. In my main app class, the one that is the absolute first bit of code that is executed by the app, I set my stage scale mode and alignment, then create an instance of an embedded image, and add it to the stage.
3. Then I initialize Starling, and once everything has been loaded, and I'm ready to show my title screen, I hide the splash image that was created from the embedded asset.Where I'm seeing the flicker is between steps 1 and 2, when I switch from showing the built-in, Apple-handled splash image (which unfortunately can't have its duration increased/modified) to the splash image that I'm creating before I initialize Starling.
Again, on iPod Touches, iPhone 4, iPad 1, iPad 2, etc. everything works as expected, but on a 3GS, there's a noticeable gap (at least 1/4 second, at best), I'm guessing due to the lower performance of the device, since that is the only difference - all code that is being run is identical on all devices.
So I'm not sure that listeneing to the ROOT_CREATED event would change anything for me, since I'm seeing this gap before I've even attempted to initialize Starling. Does that make sense?
Posted 11 months ago #
Reply
You must log in to post.