Known bug?

Code placed directly on MC:


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

Code placed in function in class:


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…