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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
oznawab
Posts: 30
Registered: ‎02-20-2011
My Carrier: 3 Australia
Accepted Solution

Make splashscreen stay bit longer

Hi Guys,

 

Is it possible to make splashscreen bit longer on startup?

 

Thanks.

Please use plain text.
Developer
studiochris
Posts: 165
Registered: ‎10-26-2010
My Carrier: .

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.

Please use plain text.
Developer
Ebscer
Posts: 734
Registered: ‎08-31-2009
My Carrier: Verizon

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
Please use plain text.
Developer
studiochris
Posts: 165
Registered: ‎10-26-2010
My Carrier: .

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.

Please use plain text.
Contributor
insultcomicdog
Posts: 42
Registered: ‎01-05-2011

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...

Please use plain text.
Contributor
AirDev
Posts: 11
Registered: ‎04-01-2011
My Carrier: Airtel

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.

Please use plain text.
Developer
nobleRobot
Posts: 54
Registered: ‎02-10-2011
My Carrier: n/a

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!
Please use plain text.
Contributor
oznawab
Posts: 30
Registered: ‎02-20-2011
My Carrier: 3 Australia

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.

Please use plain text.
Developer
jtegen
Posts: 6,156
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Make splashscreen stay bit longer

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

Please use plain text.