
06/12/2005, 10:29
|
 | | | Fecha de Ingreso: marzo-2005 Ubicación: Quetzaltenango, Guatemala
Mensajes: 272
Antigüedad: 19 años, 11 meses Puntos: 0 | |
aca te dejo este codigo:
Código:
var i:Number = 0;
var cx:Number = 0;
var cy:Number = 0;
var xx:Number = 0;
var yy:Number = 0;
this.createEmptyMovieClip("punto", this.getNextHighestDepth());
punto.moveTo(0, 0);
this.onEnterFrame = function() {
if (i< 100) {
punto._x = 10;
punto._y = 10;
punto.lineStyle(5, 0x003399, 100, true, "normal", "round", "round", 1);
cx = this._x;
cy = this._y;
xx += 1;
yy = cy;
punto.lineTo(xx, yy);
i++;
}
if (i>= 100 && i<200) {
cx = 100;
cy = this._y;
xx = cx;
yy += 1;
punto.lineTo(xx, yy);
i++;
}
if (i>= 200 && i<300) {
cx = this._x+100;
cy = 100;
xx -= 1;
yy = cy;
punto.lineTo(xx, yy);
i++;
}
if (i>= 300 && i<400) {
cx = this._x;
cy = 100;
xx = cx;
yy -= 1;
punto.lineTo(xx, yy);
i++;
}
trace (i);
if (i>=400){
delete this.onEnterFrame;
}
};
espero te sea de mucha ayuda...
saludos  ... |