http://www.pathf.com/blogs/2008/08/custom-flex-3-lightweight-preloader-with-source-code/
My
CustomPreloader
class is copied from the example above, and modified to be more easily customizable (I hope!). The colors and sizes are mostly defined at the top of the class.The important functions inside
CustomPreloader
are as follows (they are all near the top of the class):clear()
- draws the background color/gradientcreateAssets()
- creates the assets (logo, progress bar, loading textfield) and positions them on the stagedraw()
- draws the progress bar as the application is loadingHere is a screenshot of the preloader, click on the image to view the flex application in a new window:
** I've subsequently written a test application which is very useful when designing your custom preloader, check it out here: Showing the preloader again after loading.
Quick links:
More Custom Preloaders and Tutorials
4 comments:
Awesome, thanks!
Vielen Dank, einfach spitze!
Thanks from Bremen, Germany.
Bitte sehr, es war mir eine Freude!
And no, I don't speak German but I have a colleague who does!
A very nice page. I think the effort has passed, we have to thank you:))
aw.
Post a Comment