# Mask not working

**URL:** <https://forum.kirupa.com/t/mask-not-working/220975>\
**Category:** Uncategorized\
**Created:** [March 30, 2007, 11:17pm UTC](https://forum.kirupa.com/t/mask-not-working/220975 "2007-03-30T23:17:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin416](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@kevin416](https://forum.kirupa.com/u/kevin416)\
**Post date:** [March 30, 2007, 11:17pm UTC](https://forum.kirupa.com/t/mask-not-working/220975/1 "2007-03-30T23:17:06Z")

</div>

I am making a mask following the tutorial on this website, but there must be something I’m not getting. Basically, the scrollmask mc is supposed to be masking the flashscroll mc but it is still visible and not acting as a mask.

```auto
this.createEmptyMovieClip("scrollmask", 6);
scrollmask.lineStyle(1, 0x666666);
scrollmask.beginFill(0x666666, 100);
scrollmask.moveTo(460, 0);
scrollmask.lineTo(640, 0);
scrollmask.lineTo(640, 300);
scrollmask.lineTo(460, 300);
scrollmask.lineTo(460, 0);
scrollmask.endFill();
attachMovie("flashscroll", "flashscroll", 5, {_x:480, _y:20});
flashscroll.setMask(scrollmask)

```

Thanks for any help.
