package { import flash.display.*; public class FlashTest extends Sprite { public function FlashTest() { // Peter says G2D renders 265000 sprites at 60fps // here is what 265000 sprites would look like :) stage.scaleMode="noScale"; stage.align = "TL"; var b:BitmapData = new BitmapData(515*2,515*2, false, 0xFFFFFF); addChild(new Bitmap(b)); b.lock(); for (var i:int = 0; i < 515; i++) for (var j:int = 0; j < 514; j++) b.setPixel(i<<1, j<<1, 0); b.unlock(); } } }