Category Archives: Application (Spark)

Adding a control bar to a custom Spark Application component in Flex 4

The following example shows how you can extend the default Spark Application container in Flex 4 and add an ApplicationControlBar by setting the skinClass style. The custom Spark Application skin also adds some default padding, support for horizontal and vertical scroll bars, sets the default layout to a VerticalLayout object, and adds some default padding.

Full code after the jump.

Continue reading Adding a control bar to a custom Spark Application component in Flex 4

Setting a repeating background image on a Spark Application in Flex 4

In a previous example, “Setting a background image on an Spark Application in Flex 4”, we saw how you can add a scaled background image to a Flex 4 Spark Application by creating a custom skin with a BitmapGraphic and setting the skinClass style in MXML, CSS, or ActionScript.

The following example shows how you can create a tiled background image by creating a custom skin, creating a repeating bitmap fill, and setting the skinClass style.

Continue reading Setting a repeating background image on a Spark Application in Flex 4

Setting a linear gradient background on a Spark Application container in Flex 4

The following example shows how you can create a linear gradient background on a Flex 4 Spark Application container by setting the skinClass style to a custom Application skin class which has a LinearGradient fill.

Full code after the jump.

Continue reading Setting a linear gradient background on a Spark Application container in Flex 4

Compiling a simple Flex application using the Flex 4 SDK

The following example shows you how you can create and compile a simple Flex application using the latest version (build 4.0.0.3584) of the beta Flex 4 SDK.

If you haven’t downloaded and installed a Flex 4 SDK into Flex Builder 3 before, check out the following entries: “Downloading and installing Flex SDK builds from opensource.adobe.com” and “Using the beta Flex 4 SDK in Flex Builder 3”. For other Flex 4 entries, see http://blog.flexexamples.com/tag/gumbo/.

Full code after the jump.

Continue reading Compiling a simple Flex application using the Flex 4 SDK