The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static TextFlowUtil.importFromXML() method.
Full code after the jump.
Continue reading ‘Importing a text flow from an XML object in Flex 4′
The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static TextFlowUtil.importFromXML() method.
Full code after the jump.
Continue reading ‘Importing a text flow from an XML object in Flex 4′
The following example shows how you can display icons in a Spark List control in Flex 4 by creating a custom item renderer.
Full code after the jump.
Continue reading ‘Displaying icons in a Spark List control in Flex 4′
The following example shows how you can set the base theme color on a Spark DropDownList control in Flex 4 by setting the baseColor style.
Full code after the jump.
Continue reading ‘Setting the base theme color on the Spark DropDownList control in Flex 4′
The following example shows how you can set the symbol color on a Spark DropDownList control in Flex 4 by setting the symbolColor style.
Full code after the jump.
Continue reading ‘Setting the symbol color on the Spark DropDownList control in Flex 4′
The following example shows how you can style the Halo Accordion header (with default Spark skin) in Flex 4 by creating a new skin based on the default Spark skin and modifying the various skin parts.
The default Halo Accordion header Spark skin can be found at \frameworks\projects\sparkskins\src\mx\skins\spark\AccordionHeaderSkin.mxml.
Full code after the jump.
Continue reading ‘Creating a custom Halo Accordion header skin in Flex 4′
The following example shows how you can set the corner radius on the Halo TextArea control (with default Spark skin) in Flex 4 by creating a custom skin and setting the radiusX and radiusY properties on the Rect objects (in Flex 3 and earlier this was done by setting the cornerRadius style directly).
Full code after the jump.
Continue reading ‘Setting the corner radius on the Halo Alert control in Flex 4′
The following example shows how you can set the viewport inset on a Spark Scroller control in Flex 4 by setting the minViewportInset property.
Full code after the jump.
Continue reading ‘Setting the viewport inset on a Spark Scroller control in Flex 4′
The following example shows how you can reorder a stack of Spark Bitmap controls in Flex 4 by setting the depth property (formerly the layer property).
Full code after the jump.
Continue reading ‘Setting the depth on a Spark BitmapImage control in Flex 4′
The following example shows how you can set the background fill color on the Halo TextArea control (with default Spark skin) in Flex 4 by setting the backgroundContentColor style (in Flex 3 and earlier this was done by setting the backgroundColor style).
Full code after the jump.
Continue reading ‘Setting the background fill color on a Halo TextArea control in Flex 4′
The following example shows how you can set the selected indices on a Spark List control in Flex 4 by setting the selectedIndices property to a Vector object.
For more information on MXML Vector support in Flex 4, see the MXML Vector Support spec on the Adobe Open Source Flex SDK site.
Full code after the jump.
Continue reading ‘Setting the selected indices on a Spark List control in Flex 4′
The following example shows how you can determine if a Spark SimpleText control is truncated in Flex 4 by using the isTruncated() method.
Full code after the jump.
Continue reading ‘Determining if a Spark SimpleText control is truncated in Flex 4′
The following example shows how you can use a CFF embedded font with a Halo Label control and Spark SimpleText control by setting the textFieldClass style on the Halo Label control to the mx.core.UITLFTextField class.
Full code after the jump.
Continue reading ‘Using a CFF embedded font with a Halo Label control in Flex 4′
The following example shows how you can create a “fancy” fading bitmap fill background on a Spark Panel container in Flex 4 by using a combination BitmapFill and LinearGradient fill.
Full code after the jump.
Continue reading ‘Creating a fading bitmap fill background on a Spark Panel container in Flex 4′
The following example shows how you can create a non-editable Spark NumericStepper control in Flex 4 by setting the Boolean editable property on the NumericStepper control’s internal TextInput control.
Full code after the jump.
Continue reading ‘Creating a non-editable Spark NumericStepper control in Flex 4′
The following example shows how you can determine when the volume has changed on a Spark VideoPlayer control in Flex 4 by listening for the internal volumeChanged event.
Full code after the jump.
Continue reading ‘Detecting when the volume changes on a Spark VideoPlayer control in Flex 4′
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||