# Known bug?

**URL:** <https://forum.kirupa.com/t/known-bug/178369>\
**Category:** flash\
**Created:** [February 9, 2006, 10:16pm UTC](https://forum.kirupa.com/t/known-bug/178369 "2006-02-09T22:16:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [February 9, 2006, 10:16pm UTC](https://forum.kirupa.com/t/known-bug/178369/1 "2006-02-09T22:16:48Z")

</div>

Code placed directly on MC:

```auto

onClipEvent (enterFrame) {
    this._x += _root.landSpeed;
}

```

Code placed in function in class:

```auto

dynamic class enemyTurret extends MovieClip {
    function onEnterFrame() {
     this._x += _root.landSpeed;
}
}
 

```

They should both work the same, right? Kinda…

Using the class… It drifts a few pixels, when it’s off stage, really strange, and ALWAYS to the right, no matter what…
