# \_rotation causes gfx problems

**URL:** <https://forum.kirupa.com/t/-rotation-causes-gfx-problems/115647>\
**Category:** Uncategorized\
**Created:** [July 10, 2004, 11:46am UTC](https://forum.kirupa.com/t/-rotation-causes-gfx-problems/115647 "2004-07-10T11:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musashi9](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@musashi9](https://forum.kirupa.com/u/musashi9)\
**Post date:** [July 10, 2004, 11:46am UTC](https://forum.kirupa.com/t/-rotation-causes-gfx-problems/115647/1 "2004-07-10T11:46:13Z")

</div>

Hi im tryin to rotate this movieclip of a starfield but when i use \_rotation i get this flickering effect every second or two of rotation  
see  
[http://www.mn001c7645.pwp.blueyonder.co.uk/lightforcerotate.html](http://www.mn001c7645.pwp.blueyonder.co.uk/lightforcerotate.html)  
left and right keys change rotation  
hold down a key and you will see what i mean ,is there a way to prevent this flickering  
here is the code i used

```auto
 onClipEvent(load)
{
 speed = 0.001;
 angle ++;
}
 
onClipEvent(enterFrame)
{
 if (Key.isDown(Key.UP))
 {
  xx = math.cos(_rotation*Math.PI/180)*speed;
  yy = math.sin(_rotation*Math.PI/180)*speed;
  this._x += xx;
  this._y += yy;
 }
 if (Key.isDown(Key.LEFT))
 {
  this._rotation -= angle;
  key_down = 1;
 }
 else if (Key.isDown(Key.RIGHT))
 {
  key_down = 1;
  this._rotation += angle;
 }
}
 

```
