Hello, I want to remove the OK button from the Alert box.
In fact, I dont want any buttons.
What would the best way be to do this ?
thanks for any advice
You can specify the buttons the Alert should use once it's shown: http://livedocs.adobe.com/flex/3/langref/mx/controls/Alert.html#show%28%29 Even more information on the same page. Regarding the "in fact I want no buttons": well, then maybe you don't need an Alert window... Since and Alert should have some buttons so that the user can close the window ( maybe choose between options ).
If you only want a pop-up, then use whatever component you want ( for example: the Panel component ) and display it as a pop-up with the help of the PopUpManager ( http://www.igorcosta.com/flex3/doc/mx/managers/PopUpManager.html ). Good luck.
Rather than overriding alert it is better to create a mxml component in the way you want your alert and use it as a popup using PopUpManager class