# Dynamic MCs and Masks

**URL:** <https://forum.kirupa.com/t/dynamic-mcs-and-masks/325250>\
**Category:** flash\
**Created:** [October 4, 2011, 3:19pm UTC](https://forum.kirupa.com/t/dynamic-mcs-and-masks/325250 "2011-10-04T15:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heero\_Yuy](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@Heero\_Yuy](https://forum.kirupa.com/u/Heero_Yuy)\
**Post date:** [October 4, 2011, 3:19pm UTC](https://forum.kirupa.com/t/dynamic-mcs-and-masks/325250/1 "2011-10-04T15:19:56Z")

</div>

I’m creating a starry sky for a header and there are mountains in the image which obviously I want the randomly generated stars to appear behind it.

I’ve tried setMask() but I don’t see it doing anything. The generated stars still appear on top of everything regardless of layer order and such.

Thanks for any help you can give. I’m an artist, not a programmer.
