vote up 0 vote down
star

Hi I was trying some Textlayout stuff with flex 3.2.0 by downloading the flex 4 sdk and extracting the textlayout.swc and putting in my projects Lib folder.

But it seems that some of the classes are missing in that swc. I could not fin d the class CharacterFormat in the swc. Complaier throws an error saying "Type was not found or was not a compile-time constant: CharacterFormat." Also there are lot of errors I'm facing related to something is not found or not a compile time constant.

Does anyone have any idea about the integration of Textlayout with Flex 3.2? Any working examples would be great.

PS - Basically I'm trying to get an idea of how subscript/superscript works using textlayout.

Thanks

--

Mahesh Kokadwar

flag

3 Answers

vote up 0 vote down

I'm not totally clear on what you're trying to do, but the only characterFormat I'm aware of is the property on InsertTextOperation.

Also, have you set up the namespaces to Flex 4 correctly?

link|flag
vote up 0 vote down

Did you set up your project correctly for use with flash player 10?

Here's a step-by-step guide how to go about that: http://blog.everythingflex.com/2008/05/20/using-flash-player-10-within-flex-builder/

(The Text Layout Framework makes use of the new Flash Text Engine which is only available in Flash Player 10)

link|flag
vote up 0 vote down

It seems that your forgot to copy some other swc

Flex 3.2 users — Download the Flex 3.2 milestone build. Download the Text Layout Framework, unzip the contents, and copy textLayout_core.swc, textLayout_edit.swc, and textLayout_conversion.swc from the /libs folder into the Flex SDK frameworks/libs folder.

I recommand to read Mihai CORLAN blog post on TLF too: http://corlan.org/2009/01/19/how-to-use-text-layout-framework-in-flex-32-or-air-15/

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.