Skip to main content
July 25, 2009
Question

where's is the source code for text layout framework?

  • July 25, 2009
  • 2 replies
  • 1263 views

I download flex sdk 4 but seems no source code for text layout framework, textLayout.swc. all flashx.textLayout is not pubished.?? how to find the source code?

And there's another lib, framework_textLayout.swc. What's the difference of framework_textLayout.swc and textLayout.swc.

This topic has been closed for replies.

2 replies

Participating Frequently
July 25, 2009

TLF source code is in current daily builds, such as today's, 4.0.0.8811. It is not in the Beta 1 build (4.0.0.7219) because TLF was opensourced after Beta 1.

textLayout.swc contains the TLF classes.

framework_textLayout.swc contains two classes -- UITLFTextField and TLFDataGridItemRenderer -- which provide glue between TLF and Halo components (i.e., the older "mx" components in framework.swc). For example, if you set <mx:Button textFieldClass="mx.core.UITLFTextField"> then the Halo button will use TLF to render its label.

Gordon Smith

Adobe Flex SDK Team

Known Participant
July 25, 2009

Lets assume you have checked out flex sdk in "flexsource" folder, you can find text layout source code in "flexsource\frameworks\projects\textLayout". There are four folders, and to build it you need to run the ant task with the build file in that folder.

framework_textLayout in my opinion is a wrapper on top of TLF, to use FTE capabilities in Halo components.

Hope this helps.

--

Best Regards;

Chetan Sachdev

http://www.riageeks.com

Message was edited by: Chetan Sachdev, framework_textLayout is used by Halo instead of Gumbo components.