public class Main extends Sprite{ public function Main(){ var squareData:BitmapData = new BitmapData(200, 200, false, 0xFFCC00CC); var bitmap:Bitmap = new Bitmap(bitmapData, PixelSnapping.AUTO, false);
bitmap.smoothing = false; addChild(bitmap); } } }
Related Scripts with Example Source Code in same category :