# Problems with dynamic textfields

**URL:** <https://forum.kirupa.com/t/problems-with-dynamic-textfields/56025>\
**Category:** Uncategorized\
**Created:** [June 29, 2004, 10:57pm UTC](https://forum.kirupa.com/t/problems-with-dynamic-textfields/56025 "2004-06-29T22:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firstSteps](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@firstSteps](https://forum.kirupa.com/u/firstSteps)\
**Post date:** [June 29, 2004, 10:57pm UTC](https://forum.kirupa.com/t/problems-with-dynamic-textfields/56025/1 "2004-06-29T22:57:49Z")

</div>

Hi can any one explain to me how to embed fonts as for some reason i can get the font im using to show up ☹  
Here is the script i used to create the textfields:

//--------------------------------------------- textfields------------------  
var sGreenFormat:TextFormat = new TextFormat(“kroeger 06\_56”, 8, 0x7FDC09);  
var sWhiteFormat:TextFormat = new TextFormat(“kroeger 06\_56”, 8, 0xFFFFFF);  
var sGreyFormat:TextFormat = new TextFormat(“kroeger 06\_56”, 8, 0x9A9A9A);

MovieClip.prototype.create\_text = function(sTextName, newDepth,TFormat, SizeMC, nX, nY, nWidth, nHeight) {  
TFormat = (TFormat == undefined) ? tfFormatter : TFormat;  
SizeMC = (SizeMC == undefined) ? mcDisplayBackground : SizeMC;  
newDepth = (newDepth == undefined) ? 0 : newDepth;  
nX = (nX == undefined) ? 3 : nX;  
nY = (nY == undefined) ? -1.5 : nY;  
nWidth = (nWidth == undefined) ? SizeMC.\_width: nWidth;  
nHeight = (nHeight == undefined) ? SizeMC.\_height+1 : nHeight;  
trace(“Creating new text: tData”+newDepth+", “+nX+”, “+nY+”, “+nWidth+”, "+nHeight);  
this.createTextField(“tData”+newDepth, newDepth, nX, nY, nWidth, nHeight);  
this[“tData”+newDepth].text = sTextName;  
this[“tData”+newDepth].selectable = false;  
this[“tData”+newDepth].multiline = false;  
this[“tData”+newDepth].wordWrap = false;  
this[“tData”+newDepth].setTextFormat(TFormat);  
};  
this.create\_text(“Interactive Portfolio”, 0, sGreenFormat ,mcDisplayBackground, mcDisplayBackground.\_x+3, mcDisplayBackground.\_y-1);  
mcMenu.create\_text(“Menu”, 1, sGreenFormat, mytest, undefined, -2);  
stop();

//------------------------------------------------------------------  
as you can see from the 2 images i have put up with the fonts active on my system e.g font\_on the text is ok but with the fonts turned of e.g fonts\_off i get a different text even thou the fonts are done addressed in my script.

any help would be welcome on this

firstSteps
