please help me my client is killing me!
here is a link: http://aradon.co.il/test/circles.html
now you see how the circle are shaking!!! my client wont approve it like this.
what can cause that?
it builded like this
one class call Path that have an EnterFrame Event
and 6 Circles that every circle have that:
private var _aPosition:Number = 0;
public function get aPosition():Number
{
return _aPosition;
}
public function get aRadians():Number
{
return 180 / Math.PI * _aPosition;
}
public function set aPosition(value:Number):void
{
_aPosition = value % 360;
if(parentPath)
{
x = Math.cos(aRadians) * (parentPath.width / 2);
y = Math.sin(aRadians) * (parentPath.height / 2);
}
}
that how i can rotate a circle around the path.
now the path class have this code on enterframe:
private function this_enterframe(e:Event=null):void
{
for(var i:int = 0; i < numCircles; i++)
{
getCircleAt(i).aPosition += direction == RIGHT ? -speed : speed;
}
}
the images on the circles are dynamics and also the text but it was shaking before i added them.
the framerate is 30 i tried also 25 20 40 and it alwas shaking??
please give me a clue.
UPDATE:
i added in the circle class constructor:
z = 1
like @Sean Fujiwara advised in there is a big improvement
here is a link: http://aradon.co.il/test2/circle.htm
but steel the client said to me that it steel not good.
Since it sounds like you’re in a hurry, try putting this in the
Pathconstructor:You can see it’s now doing sub-pixel rendering if you set the
speed = 0.00001.Also, I see you’re setting
cacheAsBitmap = truein the path object. That is only bad for performance.