PDA

View Full Version : adressing dynamicly created TextField


fightex
01-11-2003, 03:16 PM
hi!

i am creating a textfield in actionscript:
createTextField ("datum_zeit_" + i, 1, 5, y, 81, 40);

and then i want to assign a TextFormat to the Textfield with
???.setTextFormat (textFormat):

in the place of the "???" should for example go datum_zeit_2.setTextForm.....

how is this done?

thanx

CyanBlue
01-11-2003, 04:04 PM
Howdy... Welcome to the club... :)

Try this...

this["datum_zeit_" + i].setTextFormat (textFormat):

fightex
01-11-2003, 04:09 PM
works...