Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/05/2008, 14:14
Avatar de jhonnyfernando
jhonnyfernando
 
Fecha de Ingreso: abril-2006
Ubicación: Bogotá - Colombia
Mensajes: 103
Antigüedad: 18 años
Puntos: 1
Respuesta: Dibujar linea en action script

Hola crg

para hacer lo que necesitas no es necesario usar tween, este pequño codigo te explica como hacerlo:

Código:
var pos_x:Number = new Number(0);
var pos_y:Number = new Number(0);
var dibujarNo:Number = new Number(0);
this.createEmptyMovieClip("linea_mc", 1);
linea_mc.lineStyle(5, 0xFF00FF, 100);
function dibujar(){
    linea_mc.moveTo(pos_x, pos_y);
    pos_x++;
    pos_y++;
    linea_mc.lineTo(pos_x, pos_y);
    if(pos_x == 200){
        clearInterval(dibujarNo);
    }
}
dibujarNo = setInterval(dibujar, 50);

si no entiendes algo me preguntas.

suertte.