Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
oznawab
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
Accepted Solution

Make splashscreen stay bit longer

Hi Guys,

 

Is it possible to make splashscreen bit longer on startup?

 

Thanks.

Developer
studiochris
Posts: 165
Registered: ‎10-26-2010
My Device: BlackBerry® PlayBook™

Re: Make splashscreen stay bit longer

Add it to the stage in a Bitmap or Image component as a normal display object on top of your application. When the system splash disappears, yours will remain until you remove it.

Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Make splashscreen stay bit longer

Because you want to make the loading time of your appliction appear slower!


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
studiochris
Posts: 165
Registered: ‎10-26-2010
My Device: BlackBerry® PlayBook™

Re: Make splashscreen stay bit longer

[ Edited ]

The app UI isn't always initialized/built fully when the splash screen disappears. Better to appear just a little slower than completely broken and locked up (perhaps just an opinion).

 

It also allows a smooth transition to take the splash screen away instead of the jerky, instant default.

Contributor
insultcomicdog
Posts: 42
Registered: ‎01-05-2011
My Device: Not Specified

Re: Make splashscreen stay bit longer

I added a duplicate copy of my splashscreen to the display list on top of my app, and tweened it off smoothly when I wanted too.

 

You can see the end result here:

 

http://vimeo.com/20748735

 

Otherwise the splashscreen just appears and blinks off.... too clunky IMO...

Contributor
AirDev
Posts: 11
Registered: ‎04-01-2011
My Device: Curve

Re: Make splashscreen stay bit longer

In your application root node use splashScreenMinimumDisplayTime. Provide values in milliseconds.

 

splashScreenMinimumDisplayTime="4000";

This would display splash screen for at least 4 seconds.

Hope this helps.

Developer
nobleRobot
Posts: 54
Registered: ‎02-10-2011
My Device: Free Playbook!

Re: Make splashscreen stay bit longer

[ Edited ]

My splashscreen is just the first frame of a 2-second animation showing my developer logo. The program plays the rest of the animation before fading away and fading up to the main menu. My app is lightweight, so I don't really need this. Indeed, I don't even load most of the game components until after the animation is removed from the stage and from memory, but I can get away with the indulgence it because it's a game.

 

It's interesting to know that there is manual control over the splashscreen duration for cases when you want to be sure that the app finishes running through a constructor class or something, but you might want to consider an in-app animation display or loading screen instead, which runs concurrently. It solves your problem and adds a little class to the proceedings :-) But of course, I wouldn't know if that would be more or less efficient without testing multiple methods.

 

I'm curious to hear what you end up going with and why.


mark-lacroix.com | Operators: the game with two sides
Please give me Kudos if I've earned it!
Contributor
oznawab
Posts: 30
Registered: ‎02-20-2011
My Device: 9700

Re: Make splashscreen stay bit longer

Thanks a lot everyone,

 

I ended up with adding a duplicate splashscreen before building the UI and then it fades away. Now it looks much better.

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Make splashscreen stay bit longer

On the actual device, apps load very fast.  Much faster than they do in the simulator.