The following example shows how you can set the font sharpness on a Flex Label control by setting the fontSharpness and fontAntiAliasType styles.
Full code after the jump.
Continue reading ‘Setting the font sharpness for a Label control in Flex’
The following example shows how you can set the font sharpness on a Flex Label control by setting the fontSharpness and fontAntiAliasType styles.
Full code after the jump.
Continue reading ‘Setting the font sharpness for a Label control in Flex’
The following example shows how you can set the font thickness on a Flex Label control by setting the fontThickness and fontAntiAliasType styles.
Full code after the jump.
Continue reading ‘Setting the font thickness for a Label control in Flex’
The following example shows you how you create a custom Label control in Flex that masks its text as a password by setting the Label control’s nested protected UITextField control’s displayAsPassword property.
Full code after the jump.
Continue reading ‘Displaying a Label control’s text as a password’
The following example shows how you can use the truncateToFit property in the Label control in Flex to truncate strings if they exceed a specified width. The label control will terminate the string with “…” and allow you to roll over the text and read the entire (non-truncated) text in a tool tip, as seen in the following snippet:
<mx:Label text="The quick brown fox jumped over the lazy dog."
truncateToFit="true"
maxWidth="200" />
Full code after the jump.
Continue reading ‘Truncating text in the Flex Label control using the truncateToFit property’
The following example shows how you can use the link event with the Label control in Flex to handle hyperlinks embedded within a string of text. By using the “event:” prefix in the href property of an anchor (<a />) tag, you can handle links within your Flex application, use the ExternalInterface API to call JavaScript from Flex, or do pretty much whatever else you want.
Full code after the jump.
Continue reading ‘Listening for the link event in a Flex Label control’