Comunidad de diseño web y desarrollo en internet online

play frames backwards

Citar            
MensajeEscrito el 04 Oct 2007 02:10 pm
buenas

poes eso algun modo de decir a flash que aga el goto and play backwards???

ex: ( de frame 10 a 5)

muchas gracias

Por tportela

11 de clabLevel



Genero:Masculino  

portugal

firefox
Citar            
MensajeEscrito el 04 Oct 2007 03:16 pm
Prueba con esto:

Código :

algunmc.onRelease = function()
{
    this.onEnterFrame = function()
   {
      if(_currentframe > 5)
      {
        gotoAndStop(_currentframe - 1);
      }
      else
      {
         delete this.onEnterFrame;
      }
   }
}

en donde algunmc es el nombre de instancia de algun movieclip que tengas en la escena.
Espero que te sirva.

Por P4r4

21 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 04 Oct 2007 04:50 pm
Te recomiendo que en el código de P4r4, cambies la línea:

Código :

gotoAndStop(_currentframe - 1);

por

Código :

prevFrame();

prevFrame() va directamente al fotograma anterior, sin tener que hacer cálculos, por tanto, es más eficiente.

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox
Citar            
MensajeEscrito el 05 Oct 2007 09:45 pm
Es cierto... habia olvidado la funcion prevFrame();
keep it simple!

Por P4r4

21 de clabLevel



Genero:Masculino  

firefox

 

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