# createTextField problem

**URL:** <https://forum.kirupa.com/t/createtextfield-problem/39735>\
**Category:** flash\
**Created:** [January 10, 2004, 2:21pm UTC](https://forum.kirupa.com/t/createtextfield-problem/39735 "2004-01-10T14:21:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [January 10, 2004, 2:21pm UTC](https://forum.kirupa.com/t/createtextfield-problem/39735/1 "2004-01-10T14:21:08Z")

</div>

Hi, Heres the code i made that i THOUGHT :puzzled: would work. Basically what i’m trying to do is a line of text which look like:

image 1  
image 2  
…

like that. But if you copy and paste the code, the text gets replaced each time for some reason :-\ Can anyone help? thanks!

[AS]  
identifier = 1;  
width = 40;  
height = 17;  
this.onEnterFrame = function() {  
makeTextFields();  
};  
function makeTextFields() {  
this.createTextField(“textField”+identifier, 1, 30, identifier\*height+10, width, height);  
if (identifier\>10) {  
identifier = 10;  
}  
trace(identifier);  
//this[“textField”+identifier].embedFonts = true;  
this[“textField”+identifier].text = "Image "+identifier;  
textFormat.font = “trebuchet MS”;  
textFormat.size = 11;  
this[“textField”+identifier].setTextFormat(textFormat);  
identifier++  
}  
[/AS]  
when trying to embedFonts, nothing works thats why i’ve put it in as comments. Not sure whats wrong :puzzled:
