Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with dynamic textfield

Status
Not open for further replies.

jwoolum

Programmer
Jul 21, 2005
9
0
0
US
Hello,

I am trying to create a dynamically created and named text field using the following code(MX 6.0):
----------------------------------------------
var textformat1 = new TextFormat();
textformat1.align = "left";
textformat1.wordWrap = true;
textformat1.color="0x000000";

var manstring = new String("Man"+i);
createTextField(manstring,mc01.getDepth()+j+1,x,y,80,20);
manstring.html = true;
manstring.background = true;
manstring.backgroundColor = bg;
manstring.htmlText = "<i>"+this["pman"+i]+"</i>";
manstring.setTextFormat(textformat1);
------------------------------------------------

I can tell that it is creating the textfield and that the contents are inside of 'manstring.htmlText', but it will not display the content on the screen. Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top