Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2008, 02:53
Avatar de andrewp
andrewp
 
Fecha de Ingreso: agosto-2003
Ubicación: Barcelona
Mensajes: 1.160
Antigüedad: 20 años, 8 meses
Puntos: 5
Controlar dos MC...

Saludos...

Tengo el siguiente código en un boton que tiene como función principal controlar una MC:

on (rollOver) {
mundo_mc.onEnterFrame = function() {
if (this.currentframe != 10) {
this.nextFrame();
} else {
this.stop();
delete this["onEnterFrame"];
}
};
}
on (rollOut) {
mundo_mc.onEnterFrame = function() {
if (this._currentframe != 1) {
this.prevFrame();
} else {
this.stop();
delete this["onEnterFrame"];
}
};
}

La pregunta es: ¿Si tengo en dos MC's cómo las podría controlar con el mismo botón?... Además la otra MC no tiene 20 frames, solo tiene dos.

Gracias por vuestra ayuda.
__________________
Andrew :P