From the category archives:

TextInput

The following example shows how you can get the Flex TextInput control to display the currently selected text regardless of whether it has focus by using the mx_internal namespace, the getTextField() method and the Boolean alwaysShowSelection property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can progammatically scroll the Flex TextInput control by setting the horizontalScrollPosition property.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can toggle which sides of a Flex TextInput control display the borderSides and borderStyle styles.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can detect when a user double clicks a Flex TextInput control using the doubleClick event.

Full code after the jump.

[click to continue…]

{ 8 comments }

The following example shows how you can apply a corner radius to specific corners of a Flex TextInput control’s focus rectangle by setting the focusRoundedCorners style.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows how you can restrict which characters a user can enter into a Flex TextInput control by setting the restrict property.

Full code after the jump.

[click to continue…]

{ 11 comments }

The following example shows how you can change the focus rectangle color for a Flex TextInput control by setting the themeColor style.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows how you can prevent a user from pressing Enter in a Flex TextArea control by listening for the textInput event and checking the TextEvent object’s text property for a newline character (“\n”).

[click to continue…]

{ 16 comments }

Creating a tool tip on a Flex TextInput control with password masked text

by Peter deHaan January 28, 2008

The following example shows you how you can use a tool tip on a Flex TextInput control with its displayAsPassword property set to true. By mousing over the credit card number field in the form below, you can see your credit card number in a readable tool tip.
Want the short version? Use a simple binding [...]

Read the full article →

Displaying a TextInput control’s text as a password in Flex (redux)

by Peter deHaan January 27, 2008

We’ve already seen how to get a TextInput control to display its text as a masked password field before in an earlier example, “Displaying a TextInput control’s text as a password in Flex” by setting the displayAsPassword property to true.
The following example will show you how you can listen for the focusIn and focusOut events [...]

Read the full article →

Displaying a TextInput control’s text as a password in Flex

by Peter deHaan January 5, 2008

The following example shows you how you can toggle between plain text and text masked as a password by setting the displayAsPassword property on a TextInput control in Flex.
Full code after the jump.

Read the full article →

Changing the background color of a disabled Flex TextInput control

by Peter deHaan October 10, 2007

The following example shows how you can use the backgroundDisabledColor style to customize the overlay color on a Flex TextInput control when the control’s enabled property is set to false.
Full code after the jump.

Read the full article →