// Event handler function for displaying the selected Alert
button.
private function alertClickHandler(evt:CloseEvent):void {
if (evt.detail == Alert.YES) {
status.text = "You answered Yes";
} else {
status.text = "You answered No";
}
}
// Event handler function changes the default Button labels and
sets the
// Button widths. If you later use an Alert with the default
Buttons,
// you must reset these values.
private function secondClickHandler(evt:Event):void {
Alert.buttonWidth = 100;
Alert.yesLabel = "Magenta";
Alert.noLabel = "Blue";
Alert.cancelLabel = "Green";
Alert.show("Select a color:", "Color Selection",
Alert.YES|Alert.NO|Alert.CANCEL, this);
// Set the labels back to normal:
Alert.yesLabel = "Yes";
Alert.noLabel = "No";
}
Em 13 de janeiro de 2011 15:53, Samuel Benevides <
[email protected]> escreveu:
> Alert.show
--
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para
[email protected]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev