There is no API for forcing the user to watch a preloader animation.  You might 
be able to do it by blocking certain events and dispatching them later, but 
IMHO, a good preloader doesn't need to be watched to completion.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of adam.duro
Sent: Monday, April 20, 2009 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why is my preloader slow and jumpy?





So I'm trying to do a simple preloader for my application. I'm going the 
implements IPreloaderDisplay route.

I have an intro animation for my preloader (it simply tweens onto the stage 
usinging TweenLite). After the intro animation completes, the progress bar does 
it's job and then shows the app.

The problem I run into is when the intro animation is playing it is real jumpy. 
Sometimes all I end up seeing is two key frames of the animation. It is 
supposed to play for 1 sec.

Here is my base preloader class:

http://pastie.org/453038

And here is the main preloader class that handles the animation and such:

http://pastie.org/453041

I'm assuming that the memory Flash/Flex is using is bogging down the machine, 
so the tween does not render smoothly. Is there a way to delay the start of the 
rest of the application loading until the intro animation has finished?

Best,

Adam Duro

Reply via email to