# Another masking problem

**URL:** <https://forum.kirupa.com/t/another-masking-problem/306183>\
**Category:** Uncategorized\
**Created:** [March 10, 2010, 10:39pm UTC](https://forum.kirupa.com/t/another-masking-problem/306183 "2010-03-10T22:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![espmilosj](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@espmilosj](https://forum.kirupa.com/u/espmilosj)\
**Post date:** [March 10, 2010, 10:39pm UTC](https://forum.kirupa.com/t/another-masking-problem/306183/1 "2010-03-10T22:39:53Z")

</div>

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…

```php

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…
