Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/02/2008, 13:54
mikarts
 
Fecha de Ingreso: diciembre-2007
Mensajes: 60
Antigüedad: 16 años, 4 meses
Puntos: 1
Re: establecer frameRate distinto para un MC

Muchas gracias, me ha servido mucho.
Exactamente necesitaba que se ejecutara automáticamente y que continuase al finalizar tanto en un sentido como en el otro así que lo he modificado un poco:

Es un MC de 200 frames.
Los botones están dentro del MC.

Código del MC (en el raíz):
onClipEvent (enterFrame) {
if (_root.retroceda == true) {
if (_currentframe == 1) {
this.gotoAndPlay("200");
} else {
prevFrame();
}
}
if (_root.retroceda == false) {
if (_currentframe == 200) {
this.gotoAndPlay("1");
} else {
nextFrame();
}
}
}

En el MC:
En el primer frame:
if (_root.retroceda == false) {
nextFrame();
}

En el último frame:
if (_root.retroceda == true) {
prevFrame();
}

Esto es porque si no lo pongo se queda parado al intentar reiniciar o hace una parada de un frame.

Botón AVANZAR:
on (release) {
_root.retroceda = false;
}

Botón RETROCEDER:
on (release) {
_root.retroceda = true;
}

Eso es todo.

Muchas gracias.

Sois geniales.

Última edición por mikarts; 04/02/2008 a las 15:03