getCharBoundaries()

How to get all of the first character boudaries in each paragraph? To my knowledge, this code shoud work …


tf.multiline = true;
tf.wordWrap = true;
tf.autoSize = TextFieldAutoSize.LEFT;

var data:Array = ["a", "bb", "ccc", "dddd"];
tf.htmlText = "";
for (var i:uint = 0; i < data.length; i++) {
	if (i < data.length-1) {
		tf.appendText(data*+"
");
	} else {
		tf.appendText(data*);
	};
	trace(tf.getCharBoundaries(tf.getLineOffset(i)));
};

But I only get:
(x=2, y=2, w=6, h=16)
(x=2, y=20, w=7, h=16)
null
null
Although tf.numLines throws me (3), and just tf.getLineOffset(i) gives:
(0, 2, 5, 7), so the loop should work …