Applying dynamically selection to Spark RichText component

Flex 4 documentation article named “Selecting and modifying text” lists an finite final list of components that supports the selection: RichEditableText Label (Spark only) TextInput (both MX and Spark) TextArea (both MX and Spark) RichTextEditor and all controls that have a TextArea as a subcomponent    This list does not include RichText component, luckily with a new Text Layout Framework (TLF) available [...]

You Might Also Like...

  • Flex 4 and the Text Layout Framework

    1193 readersOne of my favorite things about Flex 4 is that it now includes the Text Layout Framework as the basis of many Spark text components such as RichText, RichEditableText, TextArea, and TextInput as well as any other components that utilize any of these as part of another component, such as the ComboBox, which includes a

  • Removing controls from the MX RichTextEditor control in Flex

    585 readersThe following example shows how you can remove controls from the MX RichTextEditor control by removing the controls from the display list and resizing the linkTextInput TextInput control. <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/02/17/removing-controls-from-the-mx-richtexteditor-control-in-flex/ --> <mx:Application name="RichTextEditor_linkTextInput_test" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*" [...]

  • Download Source

    Web browser in Air with flex

    4287 readers

  • Tip: calculate properties such as position and measurements for Flex Spark Label component

    968 readersThere are cases where you need to find out position and measurements for Flex Spark Label component. There are many cases where you will find the code useful, such in case you need to calculate the width of a text string in pixels during runtime. Take a look at the following code snippet: var label:Label

  • F3 v. F4: Boxes v Groups

    478 readersLayouts are something that has changed a lot with Flex 4. There are several ways to accomplish your layout. Here is a simple Flex 3 example where we wanted to horizontally layout two vertical groupings of Label and TextInput components. 12345678910<mx:HBox horizontalCenter="0" verticalCenter="0">     <mx:VBox>         <mx:Label text="First name:"/>    

  • Two-way Data Binding in Flex 4

    486 readersIn Flex 3 we created a data binding expression using curly braces, like so (brackets left off intentionally): TextInput label="textInput1" TextInput label="textInput2" text="{textInput1.text}" In Flex 3 if you wanted to make the binding two-way, you had to make a second binding expression. However, in Flex 4 you can just add an @ sign to the

  • screen-shot-2010-05-21-at-83336-pm

    Format TLF to accept HTML tags

    1568 readersAfter struggling with TLF today trying to format different HTML tags. There are all kind of great experiments out there such as TLFX, which try to address some of these concerns. However, since the project is still in the works I rather not use it on production code. I end up using what’s

  • Tip: calculate properties such as position and measurements for Flex Spark Label component

    678 readersThere are cases where you need to find out position and measurements for Flex Spark Label component. There are many cases where you will find the code useful, such in case you need to calculate the width of a text string in pixels for Flex Spark label component during runtime. Take a look at [...]

  • Setting a text indent on the Spark List control in Flex 4

    697 readersThe following example shows how you can set the text indent on a Spark List control in Flex 4 by creating a custom item renderer using the RichText control and setting the textIndent style. <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/02/19/setting-a-text-indent-on-the-spark-list-control-in-flex-4/ --> <s:Application name="Spark_List_itemRenderer_textIndent_test" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" [...]

  • AS3 Currency Converter

    5653 readersIn this tutorial I will show you how to create a Currency Converter using ActionScript 3 and Flash Components. The calculations are made in runtime, no button clicks needed! 1. Open a new Flash document and save it under “CurrencyConverter.fla”. Set the document size to 400 x 250 pixels and for color choose #CCCCCC. 2. Open the