# Stuck with dynamic text box disappearing when masked.. pls help me.. soo urgent

**URL:** https://forum.kirupa.com/t/stuck-with-dynamic-text-box-disappearing-when-masked-pls-help-me-soo-urgent/267600
**Category:** flash
**Created:** [August 3, 2008, 7:59pm UTC](https://forum.kirupa.com/t/stuck-with-dynamic-text-box-disappearing-when-masked-pls-help-me-soo-urgent/267600 "2008-08-03T19:59:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sandin](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sandin](https://forum.kirupa.com/u/sandin)
#### Post date: [August 3, 2008, 7:59pm UTC](https://forum.kirupa.com/t/stuck-with-dynamic-text-box-disappearing-when-masked-pls-help-me-soo-urgent/267600/1 "2008-08-03T19:59:17Z")

</div>

Hi,  
I am trying to make my code work for past six hours…still cant make my code work… ☹ ☹  
i have created a text box and has given it instance name as “k1” … then i have added a mask for the layer that contains this text box… the text box comes with in the mask only… when i compile, the text box is not at all visible… if i keep it as static text box then it works fine, but when dynamic text box its not working…  
after googling i found out that i have to embed the font… hmm that is a biggggg problem… its not at all working… i have given my code here below

var font:Font = new f1(); //from library  
var format:TextFormat = new TextFormat();  
format.font = new f1().fontName;  
format.color = 0x000000;  
format.size = 12;  
format.letterSpacing = 0.8;

k1.embedFonts = true;  
k1.antiAliasType = AntiAliasType.ADVANCED;  
k1.autoSize = TextFieldAutoSize.LEFT;  
k1.selectable = false;  
k1.defaultTextFormat = format;  
k1.text = “Collections”;

this is my code… k1 is a name of a dynamic text field that i have created in screen… i hav created a mask for th layer that contains this text field…so its not visible, thats the reason i want to embed the font. but its not at all working… pls tell me what am missing…

i want “collections” should be visible on screen when compiled… plsss tell me wat to do… i need this info urgently. pls help me out frnds
