A Simple Flex Loading/Mask Component
For ages I searched for a Flex class that would let me blur the screen and show the user a modal message telling them to wait while something happened. In the end I gave up looking and wrote a little ActionScript class that's much like the Alert class. Here's a demo:
To use it is as simple as this:
Mask.show("Please wait...");
When you're done you do this:
Mask.close();
Nice and simple. Here's the code. You can see it in use in the Workspace demo too.
Nice - I will be using this.
Thanks
Reply
Nice, thanks for sharing
Reply
Do you have a timeframe as to when you will share the 'Workspace' app?
Reply
Some time between now and never. Who knows. Three kids don't leave me much time for stuff like that.
Reply
Show the rest of this thread
Slick. Going straight into the toolbox!
Reply
Hi Jake,
Good code!
And as always, thanks for sharing !
;)
Reply
Hi Jake,
Being a bit new to flex, can you use your loading mask when an app first loads itself in a web page?
If so, would you put the Mask.Show("Please wait...") code in the pre-initialiser and the Mask.close() in the creationcompleted events?
Reply
Hi Xander,
Do you mean you want to replace the standard Flex "loading" interface? You can do that but I'm not sure how.
Reply
Show the rest of this thread
thanks for your code,nice work
Reply
tiny and very useful, thanks a lot
Reply
Just the trick, cheers!
Reply