Skip to main content
Participant
February 12, 2010
Answered

TLF's and FLEX's packages

  • February 12, 2010
  • 1 reply
  • 1162 views

Hello all,

I'm started to use Flex and ActionScript recently, and am looking into the UndoManager class.

However, I got confused by FLEX 4 and TLF.

For example,

In FLEX’s documentation, class UndoManager exists in flashx.undo package

http://help.adobe.com/en_US/Flex/4.0/langref/flashx/undo/UndoManager.html

, while in TLF’s documentation, it exists in package flashx.textLayout.edit

http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/edit/UndoManager.html

For interface IFlowComposer, it exists in package flashx.textLayout.compose, for both FLEX’s and TLF’s documentation.

However, the members listed in these two documentations are not exactly the same.

In TLF’s doc

http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/compose/IFlowComposer.html

IFlowComposer has a method named updateAllContainers(),

while I couldn’t find it in FLEX’s doc

http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/flashx/textLayout/compose/IFlowComposer.html?filter_flex=4

I thought it might be caused by the compatibility of FLEX 4 and FLEX 3, and also, TLF should've been included in FLEX 4.

I therefore created a project using FLEX 3.4 or even 3.2.

But still, I couldn't find a proper TLF lib with a package structure consistent with adobe's documentation I found.

Could anybody give me a hand about this ...

Thanks

This topic has been closed for replies.
Correct answer robin_briggs

The TLF docs that you found are describing a much older version of TLF (see the date below at the bottom of the doc page). The TLF that is integrated into Flex 4 is more up to date and contains many performance improvements and bug fixes, as well as some API changes. TLF is included as part of Flex 4, so if are using Flex 4, the docs that come with it include TLF docs. You should use the TLF in Flex4 in preference to the much older one posted to Labs in Nov. 2008.

Hope this helps,

- robin

1 reply

robin_briggsCorrect answer
Adobe Employee
February 12, 2010

The TLF docs that you found are describing a much older version of TLF (see the date below at the bottom of the doc page). The TLF that is integrated into Flex 4 is more up to date and contains many performance improvements and bug fixes, as well as some API changes. TLF is included as part of Flex 4, so if are using Flex 4, the docs that come with it include TLF docs. You should use the TLF in Flex4 in preference to the much older one posted to Labs in Nov. 2008.

Hope this helps,

- robin

Participant
February 12, 2010

Thank you very much, robin!

I think I am now starting to understand their relationship.

However, adobe's documentation is not very well formed.

As for class EditManager, the following documentation is for FLEX 4.

http://help.adobe.com/en_US/Flex/4.0/langref/flashx/textLayout/edit/EditManager.html

The example given in the doc at the bottom is still using an UndoManager from package flashx.textLayout.edit.

February 12, 2010

That's been fixed in the most current builds of Flex (you can check with the nightly Language Reference zip download here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4).