# Confused about createTextField problem

**URL:** <https://forum.kirupa.com/t/confused-about-createtextfield-problem/71782>\
**Category:** Uncategorized\
**Created:** [November 29, 2004, 4:48pm UTC](https://forum.kirupa.com/t/confused-about-createtextfield-problem/71782 "2004-11-29T16:48:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![H4T](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/h4t/32/329_2.png) [@H4T](https://forum.kirupa.com/u/H4T)\
**Post date:** [November 29, 2004, 4:48pm UTC](https://forum.kirupa.com/t/confused-about-createtextfield-problem/71782/1 "2004-11-29T16:48:01Z")

</div>

I’ve got a situation where several sprites are created, a random amount of sprites, and they each need to have a text field floating around them; so when something happens to them, I can make them say something (each individually). But, I can’t get the text field to even show up. Here is the code for creating the sprites and a text field with them.

```auto
for(i=0; i<carnNum+1; i++) {
 _root.carn.duplicateMovieClip("carn"+i,i);
 mcCarn = _root["carn"+i];
 
 mcCarn._x = Math.round(Math.random()*(395)+mcCarn._width/2);
 mcCarn._y = Math.round(Math.random()*(295)+mcCarn._width/2);
 
 mcCarn.createTextField("carnBox"+i,i+20,5,5,200,100);
 carnBox.border = true;
 
 carnFormat = new TextFormat();
 carnFormat.font = "Verdana";
 carnFormat.size = 9;
 carnFormat.textColor = 0x000000;
 carnBox.text = "Hi";
 carnBox.setTextFormat(carnFormat);
 
 
 mcCarn.moveSprite(35);
 var time = Math.round(Math.random()*3000)+1600;
 carnInt = setInterval(mcCarn, "moveSprite", time, "35");
}

```

Nothing shows up, however my cursor does turn into a text selection cursor mysteriously over invisible parts…any help appreciated 🙂
