Endless repeating scrolling background
I got a problem with AS3 and AIR. I'm working on a side-scrolling game for smartphones with a plane and I use different backgrounds as layers. Before all other: I use GPU and only bitmaps, quality is set to low. So Performance settings are all set for smartphone use. I putted them into a rectangle using the drawing API and move the background with a matrix: protected var scrollingBitmap:BitmapData; protected var canvas:Graphics; protected var matrix:Matrix; public function move(dx:Number, dy:Number):void { matrix.translate(dx, dy); if(dx != 0) matrix.tx %= scrollingBitmap.width; if(dy != 0)