I have a ball moving around the screen, position updated on ENTER_FRAME. My problem is that there is a considerable amount of flicker going on. I have thought about using something like TweenLite to move the ball but as the position is being updated frame-to-frame I don’t think that will work. I have increased the frame rate and reduced the speed the ball is travelling (and vice-versa) but that didn’t help.
What can I do to reduce (preferably stop) the flickering?
[edit]
Here is the update function. Ball is a MovieClip.
public function update(e:Event):void {
this.x += moveX;
this.y += moveY;
}
The ‘flickering’ was being caused by my high frame-rate and moving the ‘ball’ several pixels at once. The result is that parts of the ball were being rendered in a different location to other parts of the ball per frame. To fix this I am now moving the ball only one pixel at a time and adjusting the frame-rate to control the speed of the ball.