Ver Mensaje Individual
  #11 (permalink)  
Antiguo 18/10/2010, 23:56
Avatar de mortiprogramador
mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 7 meses
Puntos: 214
Respuesta: ¡Ayuda urgente!

Cita:
Iniciado por mortiprogramador Ver Mensaje
Uhm
sera algo así?

Código actionscript:
Ver original
  1. btn1.onPress = function(){
  2. _root.btn = 'btn1';
  3. mc.gotoAndPlay(1);
  4. }
  5.  
  6. //luego, en el mc
  7. if(currentFrame == 20)
  8. {
  9. if(btn=='btn1')
  10. _root.gotoAndPlay(1);
  11. else
  12. _root.gotoAndPlay(2);
  13. }
saludos
Hola
como yo te estoy proponiendo el asunto,
el código de los botones iria en la línea de tiempo principal,
si quieres ponerla en cada botón, entonces sería

Código actionscript:
Ver original
  1. (on Press){
  2. _root.btn = 'btn1';
  3. mc.gotoAndPlay(1);
  4. }
esto por cada botón,
e internamente en el movieclip iria esto

Código actionscript:
Ver original
  1. //luego, en el mc
  2. if(currentFrame == 20)
  3. {
  4. if(btn=='btn1')
  5. _root.gotoAndPlay(1);
  6. else
  7. _root.gotoAndPlay(2);
  8. }

donde currentFrame es el frame actual (variable nativa de actionscript)
espero te sirva
saludos
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com