Another masking problem

Hi!! I’ve got some strange thing… When I draw line with API and use that line as a mask on picture it suddenly disappear…



var image:Picture=new Picture();
//Picture is used bitmap in library converted to symbol
image.x=stage.stageWidth/2;
image.y=stage.stageHeight/2;
addChild(image);


//MC that is used like a mask
var lineDrawing:MovieClip = new MovieClip();

lineDrawing.graphics.lineStyle(30);
lineDrawing.graphics.moveTo(100,100);
lineDrawing.graphics.lineTo(200,200);
addChild(lineDrawing);

//Masking
image.mask=lineDrawing;

I can’t figure out what is the problem…