Skip to main content
Inspiring
September 3, 2009
Answered

How to do some very simple things?...

  • September 3, 2009
  • 1 reply
  • 626 views

I'm still familiarising myself with the Classes and methods of the Text Layout Framework.  I've been looking for how to achieve two very simple things.

Can someone more familiar with this framework give me a lead?...

1. How do I get at the Markup Text for a TextFlow?  I know how to import markup text - but where is it accessible after that?

2. I can see how to set selection focus - but how do I lose it?  Unfocus?

This topic has been closed for replies.
Correct answer rdermer

The TextConverter class has an export function.  It converts a TextFlow to a either an XML or a string object.

TLF containers lose focus when the focus goes somewhere else - generally that happens automatically.

Check out the most recent example code posted here:

http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework

Hpe that helps,

Richard

1 reply

rdermerCorrect answer
Adobe Employee
September 4, 2009

The TextConverter class has an export function.  It converts a TextFlow to a either an XML or a string object.

TLF containers lose focus when the focus goes somewhere else - generally that happens automatically.

Check out the most recent example code posted here:

http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework

Hpe that helps,

Richard