hello

i have found the problem of bitmapdata draw a bitmapdata with blendmode erase

here is code

PHP Code:
import flash.display.Bitmap;  
import flash.display.BitmapData;  
import flash.display.Shape;  
import flash.display.BlendMode;  
  
var 
dst1:BitmapData = new BitmapData(100,100true0xFF000000);  
var 
dst2:BitmapData dst1.clone();  
  
var 
src:BitmapData = new BitmapData(100,100true0);  
var 
shape:Shape = new Shape();  
shape.graphics.beginFill(0xcc);  
shape.graphics.drawCircle(50,50,50);  
shape.graphics.endFill();  
  
src.drawshape );  
  
dst1.drawshapenullnullBlendMode.ERASE );  // erase
dst2.drawsrcnullnullBlendMode.ERASE );   // NO erase
  
var bmp1:Bitmap = new Bitmap(dst1);  
var 
bmp2:Bitmap = new Bitmap(dst2);  
bmp2.100;  
  
addChild(bmp1);
addChild(bmp2); 
you can copy it directly in flashcs3 and test movie.

i don't know why it is happend. is that a bug?

i looking for the document of BlendMode.ERASE.
i don't understand what is the relation with BlendMode.LAYER if used ERASE or ALPHA, but others not.