Category Archives: TextInput (Spark)

Using the new Fx prefix-less Flex Gumbo builds

The following example shows how you can use styles in a <Style/> block to style a Spark Button and TextInput control as well as a Halo Button and TextInput control.

To compile this example, you’ll need to download the nightly beta Flex Gumbo build 5873 (4.0.0.5873) or newer. The latest Gumbo SDK builds can be downloaded from the opensource.adobe.com site at http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.
For more information on the “Fx” prefix removal and API changes, see the “Dropping the Fx Prefix” page on the Flex Gumbo opensource.adobe.com site.
For more information on the new CSS namespaces and styling in Flex Gumbo, see the “Styling Component Parts” page on the Flex Gumbo opensource.adobe.com site.

Full code after the jump.

Continue reading Using the new Fx prefix-less Flex Gumbo builds

Setting the ligature level on a Spark TextInput control in Flex Gumbo

In earlier examples, “Embedding fonts in Flex Gumbo” and “Setting the typographic case on a Spark TextArea control in Flex Gumbo”, we’ve seen how to embed fonts in Flex Gumbo.

The following example shows how you can set the ligature level on a Spark TextInput control in Flex 4/Gumbo by setting the ligatureLevel style to one of the static constants in the flash.text.engine.LigatureLevel class.

Full code after the jump.

Continue reading Setting the ligature level on a Spark TextInput control in Flex Gumbo