Skip to main content
Known Participant
August 10, 2009
Question

Few doubts on TLF API

  • August 10, 2009
  • 1 reply
  • 2724 views

Hi All,
I have explored TLF API and have few doubts to implementation. Here is my list of doubts(All in context of Flex 3.2, no flex 4 as of now):
1. Can I use TLF with List Component, I want to use single TextFlow to manage all text in a single object and then have LinkedContainers kind of
functionality within itemRenderers. Is it possible ?

2. I want to use inline text change(don't know the exact term). Its like, when I type in "[smile]", I want to replace it with an image/gif, so
I want to add an InlineGraphicElement when this text gets added, but I am unable to find the text typed in before, I tried to listen to
flashx.textLayout.events.FlowOperationEvent.FLOW_OPERATION_END and FLOW_OPERATION_START, could anybody guide, which event I should be listening to,
in order to replace that text with an inline graphic element ?

3. I had a look at TLFDataGridItemRenderer.as, but I think this class is intended to be used in Flex 4, am I correct ? if yes then how I can have
something similar for List Component in Flex 3 ?

4. Is it possible to have the change log i.e. comments given during the checkin to have a better understanding, how it progressed. Possibly import
of changelog of tlf api.

Thank you

--
Best Regards;
Chetan Sachdev
http://www.riageeks.com

This topic has been closed for replies.

1 reply

Participating Frequently
August 10, 2009

1. I'm not sure whether this is possible. I doubt that anyone has tried it and it isn't clear to me what you're trying to accomplish by doing this.

2. I think you should be able to use a FLOW_OPERATION_BEGIN event to do this.

3. We are developing this class for Flex 4; since TLF 1.0 will not be ready until Flex 4 ships, we are are not supporting TLF in Flex 3 components. However, you could look to see how we are doing things and try to make them work in Flex 3.

4. The Flex 4 trunk now contains the TLF team's ReleaseNotes.txt file, in the frameworks/projects/textLayout directory.

Gordon Smith

Adobe Flex SDK Team

cksachdevAuthor
Known Participant
August 11, 2009

@Gordan

My clarification about first doubt:

1. Is it possible to use List component as the container for TextFlow and each paragraph render in an itemRenderer ?

I will look at FLOW_OPERATION_BEGIN and let you know how it worked.

Thank you

--

Chetan