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.
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