Mira este c�digo:
/*
ellipse() motion path
moves an object on an ellipse motion path
if xAmp and yAmp are equal the path
will be circular.
*/
Movieclip.prototype.ellipse=function(speed,xAmp,yAmp,centreX,centreY){
        i<360?(i++):(i=0);
        _x = Math.sin(i*speed*Math.PI/180)*xAmp+centreX;
        _y = Math.cos(i*speed*Math.PI/180)*yAmp+centreY;
}
//test stuff
onClipEvent(enterFrame){
        ellipse(5,20,40,200,150);
}

Se encuentra en esta direcci�n:
http://www.layer51.com/proto/index.asp?p=1
----- Original Message -----
From: "Antonio Olias" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 9:54 AM
Subject: Re: [flashmaestro] Trayectoria


> Hola.
>
> Necesito conseguir que un movieclip describa una trayectoria
> el�ptica exclusivamente con programaci�n (sin interpolaciones)
> alguien me puede orientar de alg�n ejemplo?
>
> Gracias y salu2 a to2
> --
> [EMAIL PROTECTED]
>
>
>

Responder a