Bueno, aqui va mi tiro
(Para distraerme un poco de los examenes)
100 fps Código PHP:
comenzar(1);
function comenzar(n:Number):Void{
var cont:MovieClip = this.createEmptyMovieClip("c", n);
var x:Number = 0;
var y:Number = 0;
var a:Number = 0;
cont._x = Stage.width/2;
cont._y = Stage.height/2;
cont.onEnterFrame = function() {
this._rotation += 15;
if (a<80) {
a+=1.5;
x = 40*Math.sin(a*3.5);
y = 40*Math.cos(a*3.5);
if (a<2) {
cont.moveTo(x, y);
}
cont.lineStyle(1, 0x0066cc, 20);
cont.lineTo(x, y);
}else{
if(a<151){
a++;
x = 60*Math.sin(a*2.5);
y = 60*Math.cos(a*2.5);
if(a%2==0)
cont.lineStyle(3, 0xFDCA02, 20);
else
cont.lineStyle(3, 0xFF00FF, 20);
cont.lineTo(x, y);
}else{
this._xscale +=10;
this._yscale +=10;
this._alpha--;
if(this._alpha<10){
n++;
delete this.onEnterFrame;
this.removeMovieClip();
comenzar(n);
}
}
}
}
}