salve devo creare un messaggio di Alert in seguito ad un apressione su un bottone(cancella)scrivo l'esempio che c'è sulla guida
import mx.controls.Alert
myClickHandler = function (evt){
if (evt.detail == Alert.OK){
// startStockApplication();
}
}
Alert.show("VUOI CANCELLARE", "ATTEZIONE?", Alert.OK | Alert.CANCEL, this, myClickHandler, "stockIcon", Alert.OK);
ma mi ipmorta tutte le librerie ,e poi il messaggio appare ma l'oggetto mi viene cancellato prima che io dia l'ok o meno
grazie