# setMask targets doesnt work

**URL:** <https://forum.kirupa.com/t/setmask-targets-doesnt-work/242079>\
**Category:** Uncategorized\
**Created:** [October 22, 2007, 6:43am UTC](https://forum.kirupa.com/t/setmask-targets-doesnt-work/242079 "2007-10-22T06:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutcase88](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nutcase88](https://forum.kirupa.com/u/nutcase88)\
**Post date:** [October 22, 2007, 6:43am UTC](https://forum.kirupa.com/t/setmask-targets-doesnt-work/242079/1 "2007-10-22T06:43:50Z")

</div>

Hi before i go onto the problem here is the code of what im trying to do.

```auto
on (release) {
    _root.playBox._rotation = this._rotation-90;
    if (_root.playBox._rotation>0) {
        _root.playBox._rotation -= 180;
    }
    this.duplicateMovieClip("mLine"+_root.mLineInt, _root.mLineInt);
    name = "mLine"+_root.mLineInt;
    mc = _root[name];
    mc._alpha = 50;
    mc._x = this._x;
    mc._y = this._y;
    _root.mLineInt++;
    mc.setMask(_root.mA);
    _root.playBox.movie.play();
}

```

This code is set in a movie clip. When i release it, a duplicate of the clip is made and i want to set the mask of the clip to mA. When i do it the first time the mask works however when i click it subsequently, the first duplicate clip will no longer be masked and the whole movie clip will be shown.

Any ideas why?

Thanks in adv!
