Comunidad de diseño web y desarrollo en internet online

ACCION QUE DEPENDA DEL Nro DEL FRAME

Citar            
MensajeEscrito el 27 May 2005 05:22 pm
QUICIERA SABER COMO HAGO LO SIGUIENTE:

TENGO UN MOVIECLIP, Y UN BOTÓN CON DOS ACCIONES, PERO NECESITO UN CONDICIONAL "if" QUE HAGA QUE EL BOTON EJECUTE UNA ACCION SI EL MOVIECLIP ESTÁ EN EL FOTOGRAMA 1 Y LA OTRA ACCIÓN SI ESTÁ EN UN FOTOGRAMA DIFERENTE AL 1.

LA LÓGICA SERÍA MAS O MENOS ASÍ:

UN "if" QUE DIGA: SI MC ESTÁ EN FOTOGRAMA 1 ENTONCES BOTON1 EJECUTA ACCIÓN1.
Y UN "else" QUE DIGA: SINO BOTON1 EJECUTA ACCIÓN2

GRACIAS DE ANTEMANO. 8)

Por dacal

9 de clabLevel



Genero:Masculino  

...MEDELLÍN...

firefox
Citar            
MensajeEscrito el 27 May 2005 06:34 pm
Se hace asi:

Código :

btn.onRelease=function(){
   if(MC._currentframe==5){
      trace("esta en el frame 5. Se ejecuta una accion cualquiera")
   }else{
      trace("esta en otro fotograma");
   }
}


Saludos ^^

Por dave73

985 de clabLevel

5 tutoriales

 

Argentina, Córdoba

firefox
Citar            
MensajeEscrito el 28 May 2005 03:12 am
POR DIOS

Lee las reglas del foro que estan en mi firma

No vuelvas a postear con TODO en mayusculas

Por Freddie

BOFH

53 tutoriales
597 articulos
43 ejemplos

Genero:Masculino   Admin

Conserje de Cristalab

clabbofh
Citar            
MensajeEscrito el 28 May 2005 03:44 pm
Pero claro!! Doble igual... con razón no me daba. :crap:

Esto me recuerda a un profesor de programación de John. :lol:

Y... Disculpa Freddie no sucederá de nuevo lo de las MAYÚSCULAS... es que estoy acostumbrado a escribir así, supongo que lo abrás notado en el CC05 Episodio 3.

PD: Gracias dave73.

Por dacal

9 de clabLevel



Genero:Masculino  

...MEDELLÍN...

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.