Comunidad de diseño web y desarrollo en internet online

giro de 360 grados con AS

Citar            
MensajeEscrito el 17 Ago 2007 06:44 pm
hola, quiero girar en forma de 360 un grafico en forma de neumatico con AS

alguien me da un tips?

Saludos

Por Asinox

43 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 17 Ago 2007 07:07 pm
ok, ya lo tengo, gracias

onClipEvent(enterFrame){
_rotation +=5;
}

Por Asinox

43 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 18 Ago 2007 12:33 am
la manera mas adecuada seria creo asi:

Código :

mi_pelicula.onEnterFrame = function() {
   this._rotation += 5;
   if (this._rotation == -0) {
      delete this.onEnterFrame;
   }
};

este ejemplo incluye que si giro los 360º se detenga

Por leobaraldi

351 de clabLevel

3 tutoriales

 

firefox
Citar            
MensajeEscrito el 21 Ago 2007 05:24 pm
ok, gracias man :)

Por Asinox

43 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 21 Ago 2007 06:41 pm
Tambien podes probar con la clase transition manager.

Código :

import mx.transitions.*;
import mx.transitions.easing.*;
TransitionManager.start(movie, {type:Rotate, direction:Transition.IN, duration:3, easing:Strong.easeInOut, ccw:false, degrees:360});

Por thacon

53 de clabLevel



Genero:Masculino  

firefox

 

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