Tema: [AS Battle]
Ver Mensaje Individual
  #12 (permalink)  
Antiguo 15/10/2005, 15:51
Avatar de julio archila
julio archila
 
Fecha de Ingreso: marzo-2005
Ubicación: Quetzaltenango, Guatemala
Mensajes: 272
Antigüedad: 19 años, 1 mes
Puntos: 0
yo tambien quiero participar

aqui va mi respuesta al tiro, no se si sea permitido esto, pero ahi va:

Código:
 
var cont:MovieClip = this.createEmptyMovieClip("c", 10);
var x:Number = 0;
var y:Number = 0;
var a:Number = 2;
var alfa:Number = 1;
var vel:Number = 5;
var bol:Boolean = true;
this.createTextField("texto", 1, Stage.width/2-80, Stage.height/2+80, 300, 100);
var form:TextFormat = new TextFormat();
form.font = "arial";
form.size = 10;
form.color = 0x666666;
texto.text = "Presione sobre la imagen dibujada.";
texto.setTextFormat(form);
cont._x = Stage.width/2-80;
cont._y = Stage.height/2;
cont.onEnterFrame = function() {
this._rotation -= vel;
if (a++<74) {
x = 80*Math.sin(a*42);
y = 80*Math.cos(a*42);
if (a<20) {
cont.moveTo(x, y);
}
cont.lineStyle(0.5, 0x999999, 60);
cont.lineTo(x, y);
} else {
if (a++<180) {
x = 40*Math.sin(a*-10);
y = 40*Math.cos(a*-10);
if (a<2) {
cont.moveTo(x, y);
}
if (bol) {
cont.lineStyle(1, 0x999999, 40);
bol = false;
} else {
cont.lineStyle(1, 0x999999, 40);
bol = true;
}
cont.curveTo(x*0.5, y*0.5, x*0, y*0);
cont.lineTo(x, y);
}
}
};
cont.onRelease = function() {
this.duplicateMovieClip("cont2", "");
var color:Color = new Color(cont2);
color.setRGB(0x006699);
cont2._alpha = 0;
cont2._x = Stage.width/2+75;
cont2._y = Stage.height/2;
cont2.onEnterFrame = function() {
cont2._rotation += vel;
cont2._alpha += alfa;
};
};

saludos
__________________
Julio Archila

Última edición por julio archila; 15/10/2005 a las 15:59