# Simple ball game - sprite flicker

**URL:** <https://forum.kirupa.com/t/simple-ball-game-sprite-flicker/253349>\
**Category:** flash\
**Created:** [February 29, 2008, 11:36am UTC](https://forum.kirupa.com/t/simple-ball-game-sprite-flicker/253349 "2008-02-29T11:36:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urban\_Vikdahl](https://avatars.discourse-cdn.com/v4/letter/u/a698b9/32.png) [@Urban\_Vikdahl](https://forum.kirupa.com/u/Urban_Vikdahl)\
**Post date:** [February 29, 2008, 11:36am UTC](https://forum.kirupa.com/t/simple-ball-game-sprite-flicker/253349/1 "2008-02-29T11:36:51Z")

</div>

ActionScript2 in CS3.

On the stage i hawe a red circle movieClip (instanceName: ball).  
In frame 1 (stage timeline) i the code:[INDENT][COLOR=Blue]//ball speed  
ball.dy = 10;

ball.onEnterFrame = function()  
{  
//move ball  
ball.\_y += ball.dy;

```
//bounce
if(ball._y &lt; 0 || ball._y &gt; 380)
    ball.dy *= -1;

```

}[/COLOR]  
[/INDENT]When I play/publish the movie - the ball flickers!  
How do I fix it?

/Urban
