from where from code or form option?
either in the authoring environment or with code:
yeah thx that works but a small problem this way i need to add every text field's instance name into the code can i just use a global name, Now in my code all the text fields that need wrap are defined this way:
how to add to this, the wordWrap = true function?
tl["tf"+(i+1)].wordWrap = true;
So that you don't always have to rewrite the whole thing tl["tf"+(i+1)] everytime you want to access one of its properties or methods, you can simply store it into a text field variable then use that reference for setting.
var txtField:TextField = tl["tf"+(i+1)];
txtField.wordWrap = true;
txtField.text = "Your Text"