Panoramic horizontal scrolling "saccading / bad scroll" problems

Hello everyone,

You helped me a lot these days and I’m grateful, here s my question :
I’m creating a horizontal looping scroll, and when i’m running it it’s saccading , I mean the scroll is not perfectly smooth, I already saw that problem here and there, but I’m wondering if it’s a screen refresh problem, a flash player bug or what ?

Here is the part of the enterframe function I’m running :


public function scrolling(ev:Event):void {
     ldr1.x -= Math.round((this.mouseX-panoramask.width/2)/speed);
               trace(ldr1.x);
       if (ldr1.x > panoramask.x) {
           ldr2.x = ldr1.x-ldr2.width;
       } 
      else {
            ldr2.x = ldr1.x+ldr2.width;
       }

       if (ldr1.x  < panoramask.x-ldr1.width) {
           ldr1.x = ldr2.x+ldr1.width;
       }

       if (ldr1.x > panoramask.width) {
           ldr1.x = ldr2.x-ldr1.width;
       }
    }

Many many thanks !