Skip to main content
August 17, 2009
Question

Data Binding in TLF

  • August 17, 2009
  • 1 reply
  • 913 views

Hi,

How we can achieve Two way binding between TLF and TextArea text, Keeping in mind that there may be multiple spans or multiple paragraphs.

Please let me know this is very urgent for me.

Rajesh

This topic has been closed for replies.

1 reply

Adobe Employee
August 17, 2009

Hi,

TLF doesn't have much support for data binding.  I think the best you can do is listen for "damage" events on the TextFlow and then attempt to synchronize the changes.  Alternatively you can listen for flowOperationBegin/flowOperationEnd events which will give more information about what is changing.

Hope that helps,

Richard

August 18, 2009

Hi Richard,

I am doing it from TextArea to TLF, still I would like to know if I could use any other control than TextArea from which I can get more control on which span or which paragraph is being edited or I can link it with the TLF easily than textarea.

Regards,

Rajesh

Adobe Employee
August 19, 2009

Hi,

I don't think so - that may be a flex question.  More reliable than saving actual object pointers maybe remembering positions and then finding those locations again in the TextFlow.  Data binding is not supported as a first class mechanism so any solution is going to be ad hoc.

Hope that helps,

Richard