Comunidad de diseño web y desarrollo en internet online

COMO RETROCEDER Y AVANZAR DE MAS DE 1 FRAME...

Citar            
MensajeEscrito el 28 Sep 2009 06:20 pm
HOLA NECESITO SABER CUAL ES EL CODIGO PARA HACER UN BOTON CON EL CUAL PUEDA RETROCEDER DE A VARIOS FRAMES NOSE...DE A 10 FRAMES POR CLICK...

OJALA ME PUEDAN AYUDAR

SALUDOS

Por AlvaRoAzUl

7 de clabLevel



 

firefox
Citar            
MensajeEscrito el 29 Sep 2009 02:06 am
hola, si lo haces en as2, seria saltar al fotograma
por ejemplo, suponemos estas parado en el fotograma 1 y ahi tienes un boton y quieres ir al fotograma 10 y que ahi se pare.
entonces al boton debes ponerle:

Código ActionScript :

on(release)
{
gotoAndStop(10);
}

si quieres que ahi reproduzca o siga avanzando hasta encontrar un stop();

Código ActionScript :

on(release)
{
gotoAndPlay(10); //Cambie esta linea
}


Saludos

Por bubudrc

Claber

591 de clabLevel

1 tutorial

 

mayo 2006

firefox
Citar            
MensajeEscrito el 29 Sep 2009 10:39 am
Este código te permite hacer lo que quieres sin necesidad de conocer en que fotograma estás:

Código :

avat_btn.onRelease = function () {
   if (this._parent._currentFrame < this._parent._totalframes) {
      gotoAndStop (this._parent._currentFrame + 10);
   }
};
//
retro_btn.onRelease = function () {
   if (this._parent._currentFrame >= 1) {
      gotoAndStop (this._parent._currentFrame - 10);
   }
};

Por antonio_L

161 de clabLevel



Genero:Masculino  

de Linares

firefox

 

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