tags:

views:

30

answers:

3

How do I change the icons to Alert buttons like OK, CANCEL etc?

A: 

Just specify the iconClass paremeter of the Alert class. A detailed example can be found here.

Raul Agrait
Cool, but is there a way to do it without using *mx_internal* ?
Yeti
+2  A: 

If you look at the source code for Alert there really isn't a lot there once you get past the comments and properties. What I've done in the past is to just copy the Alert class and modify my custom version however I see fit. That way you don't have to deal with the mx_internal stuff. If you are using Flex 4, there is no spark version of Alert, so another thing you can do is create your own spark version, which will give you even more control over skinning your alerts using skins etc. Sounds like a big deal, but it's actually much easier than you'd think (speaking from experience here.)

Wade Mueller
A: 

You can find a complete source code and application example here

Geirr Winnem