PDA

View Full Version : Alert.show() not working in one particular instance


bigadjaye
09-01-2006, 11:00 AM
Hi all,

I want an alert to pop up on the screen when the condition of an if statement is satisfied as follows:


if(ID < newestID){
trace("New log received!");
newmail.attachSound("mailsound");
newmail.start(0,3);
Alert.show("New log received!","New log",Alert.OK, this, Alert.OK);
}


The Alert however, is not displaying. The sound clip plays no problem and the trace displays the text no problem. It's just the alert.

On the same frame I am using the Alert with no problem on two buttons. It is just this alert which wont display. Please tell me what I am doing wrong!

Thanks in advance:)

bigadjaye
09-01-2006, 11:20 AM
Problem solved, silly me!! my import statement for the alert class was below my alert.show code!!