From the monthly archives:

November 2009

The following example shows how you can set the Y-axis transform position on a Spark BitmapImage control in Flex 4 by seting the rotationY, transformX, and transformY properties.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can add a Sprite to the display object by using the Spark SpriteVisualElement object in Flex 4 and calling the addChild() method.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can use a CFF/DefineFont4 embedded font with a Halo/MX List control in Flex 4 by setting the textFieldClass style to the new mx.core.UIFTETextField class.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “Setting a background image fill on a Spark Border container in Flex 4″, we saw how you could set a background image fill on a Spark Border container in Flex 4 by setting the backgroundImage style to an embedded image.

The following example shows how you can use a dynamically loaded image as a Spark Border container background by using an MX SWFLoader control and setting the backgroundImage style to the SWFLoader control’s content property.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can set a background image fill on a Spark Border container in Flex 4 by setting the backgroundImage style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following examples show how you can clip the overflowing content in a Spark Panel container in Flex 4 by setting the Boolean clipAndEnableScrolling property or using a Spark Scroller container.

Full code after the jump.

[click to continue…]

{ 2 comments }

In a previous example, “Styling the selected button on a Spark ButtonBar control in Flex 4″, we saw how you could style the currently selected button on a Flex 4 Spark ButtonBar control by styling the various states on the Spark ButtonBarButton selector.

The following example shows how you can style the currently selected tab on a Flex 4 Spark TabBar control by styling the various states on the Spark ButtonBarButton selector.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can set the accent color on the MX Alert control’s default button in Flex 4 by setting the new accentColor style.

Full code after the jump.

[click to continue…]

{ 2 comments }

Creating an animated transition when scrolling through items in a Spark HGroup container in Flex 4

by Peter deHaan November 11, 2009

The following example shows how you can create a simple horizontal list using a HGroup container and do an animated scroll using the Animate and SimpleMotionPath classes and the getHorizontalScrollPositionDelta() method
Full code after the jump.

Read the full article →

Setting the selection highlight color on a Spark RichEditableText control in Flex 4

by Peter deHaan November 7, 2009

The following example shows how you can set the text selection highlight color on a Spark RichEditableText control in Flex 4 by setting the focusedTextSelectionColor style.
Full code after the jump.

Read the full article →

Creating a custom component using the Definition tag in Flex 4

by Peter deHaan November 6, 2009

In a previous example, “Creating a custom component using the Component tag in Flex 4″, we saw how you could create a simple, inline custom component in Flex 4 using the Component tag and className property and then instantiating new instances using ActionScript and MXML.
The following example shows how you can create a new custom [...]

Read the full article →

Applying styles to specific Spark List controls in Flex 4

by Peter deHaan November 5, 2009

The following example shows how you can selectively style Spark List controls in Flex 4 using Advanced CSS and the styleName property or the id property.
Full code after the jump.

Read the full article →