# \_rotation causes gfx problems

**URL:** https://forum.kirupa.com/t/-rotation-causes-gfx-problems/57113
**Category:** flash
**Created:** [July 10, 2004, 11:46am UTC](https://forum.kirupa.com/t/-rotation-causes-gfx-problems/57113 "2004-07-10T11:46:13Z")
**Posts on this page:** 2
**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/57113/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;
 }
}
 

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 10, 2004, 7:39pm UTC](https://forum.kirupa.com/t/-rotation-causes-gfx-problems/57113/2 "2004-07-10T19:39:35Z")

</div>

what is the particle emission code ?

Bill
