somebutton_bnt.onRelease = function(){
if(Nombres == “”){
trace(“please give your name”);
}elseif(Apellidos == “”){
trace(“please give your ??? last name?”);
//repeat the elseif for every field
} else {
trace(“the form was OK, submit”);
}
}
thanks a lot, based in your example, I’m doing this:
envio_btn.onRelease = function() {
if(Nombres == “”){
alert_txt=“please give your name”;
} else {
gotoAndPlay(“accion”);
}
}
but in the Output panel I’m with this message:
Error Scene=main, layer=Layer 1, frame=1:Line 5: Statement must appear within on handler
envio_btn.onRelease = function() {
Total ActionScript Errors: 1 Reported Errors: 1