Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/12/2008, 05:47
Avatar de sirguy
sirguy
 
Fecha de Ingreso: septiembre-2006
Ubicación: Mallorca
Mensajes: 959
Antigüedad: 17 años, 7 meses
Puntos: 12
Respuesta: Formulario en flash - Boton Borrar

Supongo que será que has puesto el código dentro del if y mientras no se cumpla la condición no funcionará, así creo que no habrá problemas:

var enviar_lv:LoadVars = new LoadVars();
var recibir_lv:LoadVars = new LoadVars();
borrar_btn.onPress = function(event) {
coms_ta.text=" ";
nom_ti.text=" ";
email_ti.text=" ";
}

enviar_btn.onPress = function(event) {
if (!nom_ti.length) {
info_txt.text = "Debe ingresar Nombre";
} else if (!email_ti.length) {
info_txt.text = "Debe ingresar EMAIL";
} else if (!coms_ta.length) {
info_txt.text = "Debe ingresar Comentarios";
} else {
enviar_lv.nom_flash = nom_ti.text;
enviar_lv.email_flash = email_ti.text;
enviar_lv.coms_flash = coms_ta.text;
enviar_lv.sendAndLoad("email.php",recibir_lv,"POST ");
info_txt.text = "Correo Enviado";
}

};

Un saludo
__________________
Chanante!