title: How to make an infinite SMOOTH scrolling background in Flash?
body: <p>This is what I have done using AS3:</p>
  
  <pre><code>var BGround1:Background=new Background();
  var BGround2:Background= Background();
  stage.addChild(BGround1);
  stage.addChild(BGround2);
  addEventListener(Event.ENTER_FRAME, moveScroll, false, 0, true);
  
  function moveScroll(e:Event): void
  {
  
       BGround1.x -= scrollSpeed; 
       BGround2.x -= scrollSpeed; 
       if(BGround1.x &lt;= -BGround1.width)
       {
             BGround1.x =BGround2.x + BGround2.width;
       }
       else if(BGround2.x &lt;= -BGround2.width)
       {
             BGround2.x = BGround1.x + BGround1.width;
       }
  
  }
  </code></pre>
  
  <p>However, If I set <code>scrollSpeed</code> too high, the movement is not smooth. Is there any way to make a smooth animation?
  Thanks in advance.</p>