Thanks for your reply.
I'm not sure if that will help.
It's pretty hard to explain what I am trying to accomplish. Maybe some code will clear things up.
I have 8 movieClips (_family) containing 4 elements (m). Those 4 elements have to rotate at the same speed, independent of the distance they have to take.
The elements rotate to a random position, and when the position is reached the "countMovements" function will be called. This function checks if all the elements are at their final distention.
When that happens, the process starts all over again, with new positions to rotate to. This is done by recalling the randomMemberRotation function.
private function randomMemberRotation():void
{
for (var i:uint = 1; i<=8; i++)
{
var f:MovieClip = this["_family" + i];
// randomDir gives a number between 0 and 360
var randomRot1 = randomDir();
var randomRot2 = randomDir();
var randomRot3 = randomDir();
var randomRot4 = randomDir();
// rotSpeed is a number, lets say 5
// countMovements checks if the 32 elements are at their final distination
twM1 = new TweenMax(f.m1,rotSpeed,{rotation:randomRot1,repeat:0,ease:Linear.easeNone,onComplete:countMovements});
twM2 = new TweenMax(f.m2,rotSpeed,{rotation:randomRot2,repeat:0,ease:Linear.easeNone,onComplete:countMovements});
twM3 = new TweenMax(f.m3,rotSpeed,{rotation:randomRot3,repeat:0,ease:Linear.easeNone,onComplete:countMovements});
twM4 = new TweenMax(f.m4,rotSpeed,{rotation:randomRot4,repeat:0,ease:Linear.easeNone,onComplete:countMovements});
}
}
}
}
So, how can I realize a "fixed" speed for the elements - no matter how far the distance is?
Thank so much trying to help!