Skip to main content
Participant
January 10, 2010
Question

Is there an Object Model documented somewhere?

  • January 10, 2010
  • 1 reply
  • 432 views

I'm trying to fit this all together, and the various pieces seem to be described either in highly fragmented text, or the overwhelming LiveDocs. And I don't typically find the fragments in LiveDocs.

Right now I'm trying to figure out how to get from a Spark TextArea to a collection of TextLines. I imagine there are a bunch of abstraction layers between. How best do I figure out what they are?

This topic has been closed for replies.

1 reply

Adobe Employee
January 11, 2010

A Spark TextArea has a content, which is (or can be) a TextFlow. You can get this from the TextArea.textFlow property as a TextFlow. A TextFlow has a IFlowComposer, and the flow composer has a controller. The controller has the container, and the container is the parent of the TextLines.Alternatively, if you want access to lines that may be scrolled off. you can get to a TextFlowLines in the flow composer (see for instance IFlowComposer.getLineAt). If the line is not visible, there may not be a corresponding TextLine in the TextFlowLine, but you can get one by calling getTextLine(true) on the TextFlowLine.

The class headers in the API docs have overview descriptions of some of this, and there is also "Overview of the Text Layout Framework" in the API docs that has a description of the various packages. I hope this gets you started!

- robin