The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick
property.
Full code after the jump.
Continue reading Toggling buttons in a ToggleButtonBar control in Flex
The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick
property.
Full code after the jump.
Continue reading Toggling buttons in a ToggleButtonBar control in Flex
In a previous example, “Displaying icons in a Flex PopUpButton control”, we saw how you could add icons to a PopUpButton control’s nested menu using an Array data provider.
The following example shows you how you can add icons to a pop up menu in a PopUpButton control in Flex by specifying the iconField
property in the PopUpButton control’s nested Menu control using an XML data provider.
Full code after the jump.
Continue reading Displaying icons in a Flex PopUpButton control (Redux)
The following example shows how you can set the margins on a Flex Gumbo FxTextArea control by setting the marginLeft
, marginRight
, marginTop
, and marginBottom
styles.
Full code after the jump.
Continue reading Setting margins on a FxTextArea control in Flex Gumbo
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 Flex Gumbo Spark TextInput control.
Full code after the jump.
Continue reading Displaying a Spark TextInput control’s text as a password in Flex Gumbo
The following example shows how you can export the contents of a Flex Gumbo FxTextArea control by calling the export()
method.
Full code after the jump.
Continue reading Exporting the text in a FxTextArea control in Flex Gumbo
The following example shows how you can set the miter limit on a Flex 4 Path stroke by setting the miterLimit
property on a stroke object.
Full code after the jump.
Continue reading Setting the miter limit on a Path stroke in Flex 4
The following example shows how you can set the block progression on a Flex Gumbo TextView by setting the blockProgression
style to one of the static constants in the BlockProgression class (flashx.textLayout.formats.BlockProgression).
Valid values for the blockProgression
style are:
BlockProgression.TB
): Top to bottom. Lines are laid out horizontally starting at the top of the container and progressing down to the bottom. Used for horizontal text. (Default)BlockProgression.RL
): Right to left. Lines are laid out vertically starting at the right edge of the container and progressing leftward. Used for vertical text, for instance, vertical Chinese or Japanese text.Full code after the jump.
Continue reading Setting the block progression on a TextView control in Flex Gumbo
The following example shows how you can use a TextGraphic object as a mask on a Rect object in Flex Gumbo by setting the maskType
property to “alpha”.
Full code after the jump.
Continue reading Masking a Rect object with a TextGraphic in Flex Gumbo
The following example shows how you can set the tab stops in a Flex Gumbo TextView control by setting the tabStops
property using a string-based shorthand.
Full code after the jump.
Continue reading Setting tab stops in a TextView control in Flex Gumbo
The following example shows how you can set an Line object’s stroke weight by setting the weight
property on the SolidColorStroke object.
Full code after the jump.
Continue reading Setting the thickness of a stroke on a Line object in Flex Gumbo