Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Todo o Código
*************************************************************************************************************
if (contact_name.text == "" || contact_message.text == "")
{
texto_semCampos._visible = true;
}
if (contact_email.text.indexOf("@") < 2 || contact_email.text.indexOf(".") < 0)
{
Texto_sem_email._visible = true;
}
else
{
texto_semCampos._visible = false;
Texto_sem_email._visible = false;
gotoAndStop("send");
} // end else if
} // End of the function
***************************************************************************************************
Onde se encontra a dúvida
***************************************************************************************************
if (contact_name.text == "" || contact_message.text == "")
{
texto_semCampos._visible = true;
}
if (contact_name.text == "" && contact_message.text == "")
{
texto_semCampos._visible = true;
}
ou
if (contact_name.text == "" & contact_message.text == "")
{
texto_semCampos._visible = true;
}
Quero que ele interprete da seguinte forma, se contact_name for igual a vaziuuuu e/ou contact_message tambem faça texo_semCampos ficar visivel!
Carregando comentários...