Comunidad de diseño web y desarrollo en internet online

Rango de movimiento

Citar            
MensajeEscrito el 19 Sep 2006 04:10 pm
Hola a todos....se q debe estar por hay en algun lado....ya busque y nada...si alguien me puede guiar agradesco....

necesito hacer q un elemento (texto) se mueva en el eje y indefinidamente como si estuviera temblando o algo asi...


gracias...

pregunta..pronto habra evento de cristalab????? me trama ir asi no entienda muchas cosas..... :twisted:

Por Gerard

13 de clabLevel



Genero:Masculino  

Bogota-Col

safari
Citar            
MensajeEscrito el 20 Sep 2006 06:59 am
esto... no entendía lo de que se mueva en un eje como temblando.

Tienes la propiedad _rotation de los MC's y demás por si quieres hacerlso girar, pero no temblar.

Creo que tendrás que tirar de funcoines aleatorias, _x, _y, _rotation para hacer que tiemble

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

clabbrowser
Citar            
MensajeEscrito el 21 Sep 2006 02:20 pm
gracias.....


pude lograr un movimiento similar con este codigo

sumarX = 1;
sumarY = 1;

text_mc.onEnterFrame = function(){
this._x += sumarX;
this._y += sumarY;

if (this._x > 2){
sumarX = sumarX * -1;
}
else if (this._x < 2){
sumarX = sumarX * -1;
}

if (this._y > 2){
sumarY = sumarY * -1;
}
else if (this._y < 2){
sumarY = sumarY * -1;
}
}

Por Gerard

13 de clabLevel



Genero:Masculino  

Bogota-Col

safari

 

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