# \[MX04\] setMask + dynamic text: masking hell!

**URL:** <https://forum.kirupa.com/t/mx04-setmask-dynamic-text-masking-hell/67674>\
**Category:** Uncategorized\
**Created:** [October 18, 2004, 7:09pm UTC](https://forum.kirupa.com/t/mx04-setmask-dynamic-text-masking-hell/67674 "2004-10-18T19:09:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [October 18, 2004, 7:09pm UTC](https://forum.kirupa.com/t/mx04-setmask-dynamic-text-masking-hell/67674/1 "2004-10-18T19:09:30Z")

</div>

Hi everybody,

First time poster, after reading a lot of helpful cumments from other threads.  
But now I have a problem I can’t seem to fix, even when following the instruction of other tutorials/forums.

I’m trying to set a mask for a dynamic textfield, so I embedded the font, set it to multiline, and used setMask to set the mask … but it fails :sigh:

I attached an example of what I’m trying to do, very basic fla, only 1 line of code used to do what I want it to do:

```auto
 _root.mc_text.setMask(_root.mc_mask);

```

As you will see, the mask doesn’t work on the textfield, and even more strange: there’s only one of the two squares masked when I use the following code:

```auto
_root.mc_square1.setMask(_root.mc_mask);
_root.mc_square2.setMask(_root.mc_mask); 

```

Can anybody please help me out, I can’t figure out what I’m doing wrong. :h:
