Forum Moderators: open
Alert ('message here')
I just want to make a popup message appear, but the site im going through doesnt allow javascript to be put directly into the site, but if I put in a flash, it can make the popup window that I want (a guy i saw did it, but from his source i saw that the popup is from a .swf file)
Im not 100% its javascript that he used, but if its not, could anyone tell me the code to put in the actionscript to make a popup window come up?
I can get an alert in the library, and then drag it onto the stage, but I dont know how to specify exactly what it will say when it pops up. In the help, it says you can put in the action script:
Alert ('message')
Alert.okLabel
Alert.yesLabel
Alert.noLabel
but when I put that in, it says that the syntax is wrong?
mx.accessibility.AlertAccImpl.enableAccessibility();
Alert.show();
Alert('HEY');
Alert.okLabel('Sure, why not?');
and heres the output when i click "check syntax"...
mx.accessibility.AlertAccImpl.enableAccessibility();
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler
Alert.show();
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on/onClipEvent handler
Alert('HEY');
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: Statement must appear within on/onClipEvent handler
Alert.okLabel('Sure, why not?');
Total ActionScript Errors: 4 Reported Errors: 4