1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
_global.angle=0;
_global.Rayon=40;
_global.Longueur_X = 300;
function traceligne(clip,x_org,y_org,x_dest,y_dest,couleur,epaisseur)
{
clip.moveTo (x_org, y_org) ;
clip.lineStyle(epaisseur, couleur);
clip.lineTo (x_dest,y_dest);
}
this.createEmptyMovieClip("Clip",0);
//traceligne(Clip,10,10,100,100,0x000000,1);
_root.Clip.onEnterFrame = function (){
angle =angle+1;
if (angle==360)
{
angle=0;
}
traceligne (Clip,10,10,Longueur_X,Math.sin(Math.PI * angle/180)*Rayon+(Rayon/2),0x000000,1);
Clip._alpha = ((Math.cos(Math.PI * angle/180)+1)*40)+20;
} |
Partager