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