Skip to main content
Participant
February 23, 2009
Answered

Type not found: CharacterFormat

  • February 23, 2009
  • 1 reply
  • 540 views
I downloaded the latest release of Gumbo SDK (version 4.0.0.5032) and using that as the target SDK (and Flash Player 10.0.0 as required flash player in FlexBuilder), I get the following errors:

Type was not found or was not a compile-time constant: CharacterFormat
(similar errors for ICharacterFormat, ParagraphFormat).

I've included the above through:
import flashx.textLayout.formats.CharacterFormat;

If I download the latest text layout framework libraries from the Adobe site (zip file called textlayout_framework_p1_111808.zip) and replace the files:

textLayout_conversion.swc
textLayout_core.swc
textLayout_edit.swc

in the <sdk4.0.0.5032>/frameworks/libs folder with the newly downloaded files, I get a different set or errors:

Type was not found or was not a compile-time constant: ChangeElementIdOperation
Access of possibly undefined property id through a reference with static type flashx.textLayout.elements:FlowElement

I've included the above through:
import flashx.textLayout.operations.ChangeElementIdOperation

In my project, I do have to use both CharacterFormat as well as ChangeElementIdOperation. Is there a Gumbo build that will let me use both these classes in my code? Is there any set of swcs I need to download and place at a specific folder in my Flex installation to have code compile correctly ?
This topic has been closed for replies.
Correct answer brian_thomas2
The format classes were merged into a single TextLayoutFormat as part of a recent set of API changes. You can read about these API changes on our blog: TLF API Changes in Build 370

1 reply

brian_thomas2
Adobe Employee
brian_thomas2Correct answer
Adobe Employee
February 23, 2009
The format classes were merged into a single TextLayoutFormat as part of a recent set of API changes. You can read about these API changes on our blog: TLF API Changes in Build 370