Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/11/2014, 11:20
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: if con dos condiciones

Hola Xaora:
Como haz escrito la condicional esta mal.
Debería ser así.
Código actionscript:
Ver original
  1. if ((miTexto.text == texto1)||(miTexto.text == texto2))
Aquí un ejemplo para ir a un frame determinado.
Código actionscript:
Ver original
  1. stop();
  2. var texto1 = "Hola";
  3. var texto2 = "Peru";
  4. miBoton.addEventListener(MouseEvent. CLICK, clikeando);
  5. function clikeando(event:MouseEvent):void {
  6.     if ((miTexto.text == texto1)||(miTexto.text == texto2))
  7.     {
  8.         gotoAndStop(10);
  9.     }
  10. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/