Skip to main content
February 12, 2010
Question

CharacterFormat and ParagraphFormat classes Missing.

  • February 12, 2010
  • 1 reply
  • 540 views

Following classes are missing from TextLayout Library. I am using Flash Builder 4 Beta using SDK 4 linked with textlayout.swc

import flashx.textLayout.formats.CharacterFormat;

import flashx.textLayout.formats.ParagraphFormat;

along with several other classes like

import flashx.textLayout.container.DisplayObjectContainerController;
import flashx.textLayout.container.IContainerController;

All above errors are from several downloaded examples.

Please advise

This topic has been closed for replies.

1 reply

February 12, 2010

There are other older samples and blog writeups that use older prerelease versions of TLF that are outdated. Please take a look at our latest sample code:

http://blogs.adobe.com/tlf/2009/12/new-and-updated-tlf-samples.html

Some APIs have shifted during development.

In reply to your specific questions, CharacterFormat and ParagraphFormat have been replaced with TextLayoutFormat, and there is now a single ContainerController class.

February 12, 2010

thanks for the help, figured it out now, spent so many hours trying to work it out with old examples, sadly all those blogs used to be helpful but now misleading. (including adobe documentation http://livedocs.adobe.com/labs/textlayout/)