Can anyone find out how to avoid viewing rows when using BlendMode.ERASE in AS3?
Here is an example. I draw a black background on the scene, and then I draw 2 overlapping circles for the sprite and try to erase them from the background.
var solidBitmapData = new BitmapData(550,400,true,0x000000); var mySpriteLayer = new Sprite(); // Create black background. mySpriteLayer.graphics.beginFill(0x000000); mySpriteLayer.graphics.drawRect(0,0,550,400); mySpriteLayer.graphics.endFill(); // Draw it to bitmap data. solidBitmapData.draw(mySpriteLayer); // Clear sprite. mySpriteLayer.graphics.clear(); // Draw two circles mySpriteLayer.graphics.beginFill(0xFF0000); mySpriteLayer.graphics.drawCircle(200,200,50); mySpriteLayer.graphics.endFill(); mySpriteLayer.graphics.beginFill(0xFF0000); mySpriteLayer.graphics.drawCircle(250,200,50); mySpriteLayer.graphics.endFill(); // Draw circles to bitmap with blend mode erase. solidBitmapData.draw(mySpriteLayer,null,null,BlendMode.ERASE); // Create bitmap and add to stage. var solidBitmap = new Bitmap(solidBitmapData); addChild(solidBitmap);

I am talking about lines in the middle of circles. Something seems to be related to linestyle, but I tried setting it to zero and alpha to 0, but I can't get rid of the lines.
Any ideas?
source share