Skip to main content
Participating Frequently
Feb 16, 2009 10:08 AM UTC
Answered

Lines Atom data

Hi,

In cases when lines are visible but have their validity as "invalid", we can't get the atom data. Is there anyway to force the lines' validity to be "valid" so that atom data can be extracted from these?

Regards,
Ahmed
This topic is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Feb 18, 2009 4:26 AM UTC
TextFlowLine.getTextLine() takes an argument which is whether you need a valid line or not. By default, it will give you whatever line it has, because that is most efficient. If you need to look at the atoms, then you need a valid line, and you pass (I think, this is from memory) true:

var textLine:TextLine = textFlowLine.getTextLine(true);

Then textLine should be valid when you get it.

Hope this helps!

3 replies

robin_briggsCorrect answer
Adobe Employee
Feb 18, 2009 4:26 AM UTC
TextFlowLine.getTextLine() takes an argument which is whether you need a valid line or not. By default, it will give you whatever line it has, because that is most efficient. If you need to look at the atoms, then you need a valid line, and you pass (I think, this is from memory) true:

var textLine:TextLine = textFlowLine.getTextLine(true);

Then textLine should be valid when you get it.

Hope this helps!
Translate
Participating Frequently
Feb 18, 2009 6:24 AM UTC
Thanks Robin, thanks Richard.
The textLine I get through textFlowLine.getTextLine(true) although is not added to the display-list but gives the required information about the atom data.
Thanks,
Ahmed
Translate
Inspiring
Feb 16, 2009 6:08 PM UTC
No. Once they are invalid it means the referenced TextBlock has been modified and atom data is no longer available.
Translate