Little_prince41
%Europe/Berlin %433 %2008, 10:24
hello.....
I have a problem about movie rotation .I want movie ratation following line of graph
can you help me,please
this is code, but it dont work
this.createEmptyMovieClip("graph_mc",this.getNextHighestDepth());
graph_mc.moveTo(150,200);
graph_mc.lineStyle(2,0xFFCCFF);
var d:Number = 0;
var c:Number = 0;
this.onEnterFrame=function()
{
Go=1.5*(1.06*Math.exp(-c)*Math.cos(Math.sqrt(8)*c-19.00));
graph_mc.lineTo(198+d,124-174.5*Go/150*d);
c+=1/8;
d=d+3;
Head._rotation =20*Go*(2*graph_mc._height/graph_mc._width);
if(d>150)
{
graph_mc.clear();
graph_mc.moveTo(150,200);
graph_mc.lineStyle(2,0xFFCCFF);
c=0;
d=0;
}
}
I have a problem about movie rotation .I want movie ratation following line of graph
can you help me,please
this is code, but it dont work
this.createEmptyMovieClip("graph_mc",this.getNextHighestDepth());
graph_mc.moveTo(150,200);
graph_mc.lineStyle(2,0xFFCCFF);
var d:Number = 0;
var c:Number = 0;
this.onEnterFrame=function()
{
Go=1.5*(1.06*Math.exp(-c)*Math.cos(Math.sqrt(8)*c-19.00));
graph_mc.lineTo(198+d,124-174.5*Go/150*d);
c+=1/8;
d=d+3;
Head._rotation =20*Go*(2*graph_mc._height/graph_mc._width);
if(d>150)
{
graph_mc.clear();
graph_mc.moveTo(150,200);
graph_mc.lineStyle(2,0xFFCCFF);
c=0;
d=0;
}
}