This content has been marked as final. Show 4 replies
why not do the work before you ever call Alert.show()? Is there something crucial about doing the work while this is showing? If so, then maybe you need to look at other popup windows (eg see Help on TitleWindow and PopupManager)
I use the Alert to block the user until my work (data base treatment) is not finish. So if I use an TitleWindow with PopUpManager I will obliged to catch All Mouse Event and KeyEvent to make It enable while the PopUp is open I think.
I'm sure you are already aware that although the Flex interface is disabled (and hence the user cannot fiddle with inputs, buttons etc), other processing continues to happen. However, I do have a better idea what you are wanting to do with it now for which thanks.
I think though you will have to create your own control. If you look at the Flex help on Alert you find that the show() method is static. So it is a class method rather than a method attached to a specific alert instance - ie you just say Alert.show() rather than var alert: Alert; alert.show();
I suspect that what you are wanting to do requires having an alert object for which you can then change the text property. Things like the yesLabel property and so forth are again static properties, so they affect every instance of the Alert box _after_ they have been set, not pre-existing ones.
Thanks for all, I will try to create my own control.