tlf

Mixing alignment on a single line in Flex TLF

Hi I want to mix alignments in a single line in flex using TLF. Ie., on each given line, I'd like something like this: the quick brown fox|1 jumps over the|2 lazy dog|3 In essence there's simply 2 columns there - the left column is right aligned, and the right column is left aligned. The docs on this are pretty scar...

Getting rendered font dimensions in Adobe Text Layout Framework

I'm currently struggling with implementing text floating in TLF. It does not support it natively, and the only solution I've found so far is to use linked containers and then combine controllers using flowComposer for single textFlow. However, I need to implement Dropped Initial letter feature in my column layout. Initial is just a firs...

How to display only one letter in Flex Text Layout Framework ContainerController?

I'm trying to implement dropped initials feature into my Flex application. Since Text Layout Framework does not support floating, the only known solution is to create additional containers that will be linked together, displaying the same textflow. Width and positioning of these containers has to be set in such a way that it will pretend...

How to convert string with TLF format into TextFlow in Flex

I used TextConverter to convert a TextFlow in Flex to String to store it in my Database. How to convert that string back to TextFlow in order to display in Rich Text format ...

Embedd fonts in a TextArea in Flex4

Hi, I'm trying to embedd fonts to use with a TextArea that I have extended using the code below, but it doesn't work. I have used this code before with a TextFlow object and then set the containers with the flowComposer, but I can't get it to work with the TextArea. When using the code below and set the text with setText, all I get is ...

RichText controls for TextFlow in Flex 4

Is there a way to connect the RichText controls (without the textbox) to a TextFlow in Flex 4 and to be able to add the controls seperate from the TextFlow? ...

Flex 4 - Highlight keywords in a block of text using TextLine

I have a search and results page that I would like to highlight the keywords that were searched for, in the text of the results. It was suggested that I use TextLine for this, but I am having trouble figuring out how to make it work. I started a simple, compilable dummy application and was hoping someone could give me some tips on how to...

Set firstBaselineOffset on many containers

When I try to set the firstBaselineOffset property on many controllers (added them using textFlow.flowComposer.addController(controller)) it only has a effect on the first container in the flow. All the other containers get the "AUTO" property and not "LINE_HEIGHT". ...

Change style on selected text in TextFlow

Hi, I try to figure this example out, but it only assume that a TextArea is used. I only got the TextFlow to work with. I've tried to translate it to only use functions from TextFlow, but with no success. http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/ - (its the second example) Thanks! ...

Events dispatched by setFormatofRange

I have a text area on which I would like to listen to change events when I change the text formatting using setFormatOfRange(). So far all other events I have tried, such as Event.CHANGE or TextOperationEvent.CHANGE are only dispatched when the actual text is changed. Anyone know what I should be listening for ? ...

flex TextLayoutFramework TextScrap how to access the textFlow of a PasteOperation

after reading http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/edit/TextScrap.html flashx.textLayout.edit.TextScrap should have a public [read-only] property textFlow but it is protected in flex_sdk_4.1.0.16076... does anybody know how to access a pasted TextFlow? Clipboard.generalClipboard.getData("TEXT_LAYOUT_MARKUP")...

drag drop of UIComponent in TextFlow of Sparks TextArea

I would like to add a UIComponent of variable width and height into the textFlow of a Sparks TextArea. I managed to get the drag and drop working via InlineGraphicElement, but I have to add the UIComponent to some invisible Group first, where its size is calculated. protected function test_dragDropHandler(event:DragEvent):void ...

How do i remove anti-alias (bitmap font) in cs5 TLF text

How can i use a bitmap text (no anti-alias at all), i can't find that option , the same option that exists in the classic text field. ...

Autoscaling TLF Text in AS3

I'm needing an actionscript solution that will allow dynamic text to drop into a text box with pre-determined dimensions (x, y, width, height), and then will scale the text up or down so that it is as large as it can be within those dimensions without scrolling. Wordwrap would be automatic, and there would not be any paragraph breaks. I...

Adobe TLF and HTML

Hi, What is the best way to convert a tlf markup to HTML? I want only standar HTML without the old font tag. I think I saw a utility created by someone for this, but I can remember where it is. any ideas? Tks. ...

what's the difference between classic text and TLF text

what's the difference between classic text and TLF text ...

Flash dynamic TLF text mixes fonts together- very weird

I'm using Flash CS5's new Text Layout Framework (TLF) for the first time. Whenever I set the TLF text dynamically through actionscript, the resulting text renders with multiple fonts! (The same text set statically doesn't have any issues) Example: I can understand if, when a client machine lacks a given font, Flash would choose a ...

How I can access in Actionscript the "text" property of a TLF text created in the Flash IDE

I created a TLF Text with the Flash IDE in the main document. I've assigned it an instance name with the IDE When I try to access the text with Actionscript I cannot access the text field. Of course if I transform in the IDE the text in classic dynamic text it works as expected I feel very stupid and I suspect it has an obvious solutio...

Insert text at cursor in a TLF-based Flex Spark RichEditableText?

I want to programmatically insert formatted text at the current cursor position in a Flex 4 (Spark) RichEditableText control. I could just modify the .text property.... But that doesn't allow me to insert formatted text. So I believe I need to interact with either .textFlow or .textFlow.interactionManager somehow? However, TLF is quite c...

TLFX, has anybody used it yet?

Has anybody use TLFX yet? The repository is here: http://code.google.com/p/tlfx/ but I'm not sure it's completed. I tried to compile it but look like some classes are missing. ...