# Flash 6 " set mask"

**URL:** <https://forum.kirupa.com/t/flash-6-set-mask/1894>\
**Category:** Uncategorized\
**Created:** [May 2, 2002, 12:56pm UTC](https://forum.kirupa.com/t/flash-6-set-mask/1894 "2002-05-02T12:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 2, 2002, 12:56pm UTC](https://forum.kirupa.com/t/flash-6-set-mask/1894/1 "2002-05-02T12:56:04Z")

</div>

how do you use the “set mask” command with a movieclip on the main scene?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 3, 2002, 3:46am UTC](https://forum.kirupa.com/t/flash-6-set-mask/1894/2 "2002-05-03T03:46:03Z")

</div>

place 2 movie clips on the stage so that parts of them overlap. name them ‘mc1’ and ‘mc2’. make the root timeline 20 frames long.  
in frame 1:  
// ‘mc1’ will be masked by ‘mc2’…  
\_root.mc1.setMask(\_root.mc2);  
in frame 5:  
// unmask ‘mc1’…  
\_root.mc1.setMask(null);  
in frame 9:  
// ‘mc2’ will be masked by ‘mc1’…  
\_root.mc2.setMask(\_root.mc1);  
in frame 14:  
// unmask ‘mc2’…  
\_root.mc2.setMask(null);

you will see the movie clips mask then unmask upon testing the movie.  
🙂  
jeremy
