# setMask(); problem? Am i doing this right?

**URL:** <https://forum.kirupa.com/t/setmask-problem-am-i-doing-this-right/88861>\
**Category:** flash\
**Created:** [May 3, 2005, 4:19am UTC](https://forum.kirupa.com/t/setmask-problem-am-i-doing-this-right/88861 "2005-05-03T04:19:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fasterthanlight](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@fasterthanlight](https://forum.kirupa.com/u/fasterthanlight)\
**Post date:** [May 3, 2005, 4:19am UTC](https://forum.kirupa.com/t/setmask-problem-am-i-doing-this-right/88861/1 "2005-05-03T04:19:38Z")

</div>

Ok, here’s my code:

```auto
for (i=0; i<200; i++) {
    circle.duplicateMovieClip("circle"+i, this.getNextHighestDepth());
    randX = Math.floor(random(Stage.width));
    randY = Math.floor(random(Stage.height));
this.banner.setMask(this["circle"+i]);
    this["circle"+i]._x = randX;
    this["circle"+i]._y = randY;
}

```

circle is a movieclip that has a circle starting at 2px by 2px and expands to 100 by 100. Banner is just a movieclip, but I would like these expanding circles to act as a mask to reveal the banner. This should work, but isnt, I know im overlooking something, but can’t figure it out!
