Spinner
The Spinner is a Flex component similar to the many “spinner.gif”s that
are used on Web 2.0 pages. It is a sort of indeterminate progress
indicator that can be used to demonstrate to the user that something is
happening.
Go get Flash Player!
Sweet component. I was getting an exception when I tried to set speed via mxml. It tried to stop the fadeTimer, but the timer hadn’t been created yet. Added an if check and it works great:
if (fadeTimer) {
fadeTimer.stop();
fadeTimer.delay = value / _numTicks;
fadeTimer.start();
}
Sorry, should have mentioned that’s at line 228 in Spinner.as.
Hey Dennis, thanks for pointing that out. I’ve fixed it and provided the “new and improved version” at the same link.
Thanks for the component Jake! Exactly what I needed for my project at exactly the right time. Sweet. I love the net, you find cool sites all the time with cool developers helping you out.
[...] Le Loading Spinner sur la page de l'auteur [...]
What open source license are you using, Jake? I’d like to use the spinner component (as is, or maybe with some change) in a product for my company, and I need to know a bit more about the open source license…
Hey Bruce, I’m glad you found this useful.
This component is under the DWTFYW license, which, when paraphrased and censored, means, “Do whatever you want”. You can use this code in whatever way you want to. You can use it without restrictions, you can change it as much as you want, you can even leave it exactly the same and try to sell it (though I doubt you’d have much success).
However, if you want to add a link to my blog in the comments at the top of Spinner.as, I’d appreciate it. That way if I ever quit playing Team Fortress 2 and write another useful component people will be able to find it more easily.
[...] The component also uses a spinner class which came from here. [...]
Excellent work…saved me hours of work. Having source code made it super-easy to include in my Flex app. Thanks!
Very nice Flex component.
Thank you !
Hi Jake,
Excellent component! But I want to show some text like ‘loading’ next to the spinner always. Can you please guide what should I change in Spinner class?
Thanks and Regards,
Lana