for (var i:int=0; i < rgbBMD.length; i++) { var bmp:Bitmap = new Bitmap(rgbBMD[i]); bmp.smoothing = true; var container:Sprite = new Sprite(); // container sprite container.addChild(bmp); // add the Bitmap to the Sprite's display list // find the center _centerX = bmp.width/2; _centerY = bmp.height/2; // center the image bmp.x = 0 - _centerX; bmp.y = 0 - _centerY; container.x = _centerX; container.y = _centerY; addChild(container); // add the Sprite to the display list }