This content has been marked as final.
Show 6 replies
-
-
2. Re: XML text import problem
d0brin Jan 28, 2010 11:24 AM (in response to kglad)from where from code or form option?
-
3. Re: XML text import problem
kglad Jan 28, 2010 11:39 AM (in response to d0brin)either in the authoring environment or with code:
tf.wordWrap=true;
-
4. Re: XML text import problem
d0brin Jan 29, 2010 12:57 AM (in response to kglad)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:
tl["tf"+(i+1)].text
how to add to this, the wordWrap = true function?
-
5. Re: XML text import problem
Harry Kunz Jan 29, 2010 4:40 AM (in response to d0brin)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"
-




