# createTextField with Mask Layer

**URL:** <https://forum.kirupa.com/t/createtextfield-with-mask-layer/150346>\
**Category:** flash\
**Created:** [June 6, 2005, 10:54pm UTC](https://forum.kirupa.com/t/createtextfield-with-mask-layer/150346 "2005-06-06T22:54:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jankratochvil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jankratochvil/32/566_2.png) [@jankratochvil](https://forum.kirupa.com/u/jankratochvil)\
**Post date:** [June 6, 2005, 10:54pm UTC](https://forum.kirupa.com/t/createtextfield-with-mask-layer/150346/1 "2005-06-06T22:54:05Z")

</div>

I create on the 1. frame text field:

```auto
default_mc.createTextField ("main_text_txt", 1000, -220, -280, 470, 180);
			default_mc.main_text_txt.html = true;
			default_mc.main_text_txt.multiline = true;
			default_mc.main_text_txt.wordWrap = true;
			//default_mc.main_text_txt.border = true;
			default_mc.main_text_txt.background = false;
			default_mc.main_text_txt.htmlText = this.var_main_txt;
			default_mc.main_text_txt._visible = 1;

```

Problem is if I place Layer as Mask on the Stage, than the default\_mc.main\_text\_txt is not visible.

Without Mask Layer yes.  
How can I make this text visible with the mask?

thanks
