I'm using createTextField to create several text fields
dynamically. I'm also using an external XML file and a style sheet
to populate the text fields.
My problem is that I'm trying to position the various text
fields on the page so that they are spaced evenly on the page
(regardless of how much content they might contain). I'm trying to
use _height of the prior text fields to place subsequent text
fields, but I'm getting very inconsistent results. When I trace the
value of _height, I get differing results, even if I don't actually
change any of the parameters. So, the question is...is there a way
for Flash to get the height of a dynamically created text field
that's populated via an exteral XML file and using CSS? I know
that's asking a lot, but I'm trying to avoid using scroll bars if
at all possible.
i assume you're using multiline textifields with a fixed
width and autoSize="left".
flash will report the correct _height of your textfields IF
you access the _height property after your htmlText has been
assigned to your textfield. ie, you're probably seeing inconsistant
results because you're not waiting until all data needed to
populate your textfield has loaded.