Tema: [AS Battle]
Ver Mensaje Individual
  #14 (permalink)  
Antiguo 23/10/2005, 12:51
Avatar de julio archila
julio archila
 
Fecha de Ingreso: marzo-2005
Ubicación: Quetzaltenango, Guatemala
Mensajes: 272
Antigüedad: 19 años, 2 meses
Puntos: 0
Aqui va el contraataque !!! jejeje

100 fotogramas por segundo :


Código:
var cont:MovieClip = this.createEmptyMovieClip("c", 0);
var dirx:Number = 1;
var diry:Number = 1;
var x:Number = 0;
var y:Number = 0;
var a:Number = 2;
var n:Number = 5;
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 = 0x006699;
texto.text = "Formando imagen, espera...";
texto.setTextFormat(form);
cont._x = Stage.width/2;
cont._y = Stage.height/2;
cont.onEnterFrame = function():Void  {
 this._rotation -= 5;
 if (a<74) {
  a++;
  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++<200) {
   a++;
   x = 40*Math.sin(a*-15);
   y = 40*Math.cos(a*-15);
   if (bol) {
    cont.lineStyle(1, 0x999999, 40);
   } else {
    cont.lineStyle(1, 0x999999, 40);
   }
   cont.curveTo(x*0.5, y*0.5, 0, 0);
   cont.lineTo(x, y);
  } else if (a<275) {
   texto.text = "Imagen Completa...";
   texto.setTextFormat(form);
  }
 }
 if (a>=275) {
  Mouse.hide();
  texto.text = "???.....!!!";
  texto.setTextFormat(form);
  this._xscale -= 1;
  this._yscale = this._xscale;
  if (this._xscale<=30) {
   cont.onEnterFrame = function() {
    cont._rotation -= 5;
    if (dirx == 1) {
     cont._x += 5;
    } else {
     cont._x -= 15;
    }
    if (diry == 1) {
     cont._y += 10;
    } else {
     cont._y -= 10;
    }
    if (cont._x>=Stage.width-25) {
     disparar(cont.duplicateMovieClip("disparo"+n, n));
     n++;
     dirx = 0;
    }
    if (cont._y>=Stage.height-25) {
     disparar(cont.duplicateMovieClip("disparo"+n, n));
     n++;
     diry = 0;
    }
    if (cont._x<=25) {
     disparar(cont.duplicateMovieClip("disparo"+n, n));
     n++;
     dirx = 1;
    }
    if (cont._y<=25) {
     disparar(cont.duplicateMovieClip("disparo"+n, n));
     n++;
     diry = 1;
    }
   };
  }
 }
};
function disparar(mc:MovieClip):Void {
 var color:Color = new Color("disparo"+n);
 mc.onEnterFrame = function():Void  {
  this._rotation -= 5;
  this._xscale += 20;
  this._yscale = this._xscale;
  this._alpha -= 10;
  color.setRGB(random(0xfff63));
  if (this._alpha<0) {
   this.removeMovieClip();
  }
 };
}
saludos
__________________
Julio Archila

Última edición por julio archila; 27/10/2005 a las 10:12