The following example shows how you can set the background fill color on a Spark Application container’s control bar in Flex 4 by setting the skinClass style and modifying the control bar fill:
<!-- layer 1: control bar fill -->
<s :Rect left="1" right="1" top="1" bottom="2">
</s><s :fill>
</s><s :LinearGradient rotation="90">
<s :GradientEntry color="0x333333" />
<s :GradientEntry color="0x666666" />
</s>
Full code after the jump.
[click to continue…]
Tagged as:
controlBarContent,
Gumbo,
skinClass
The following example shows how you can create a vertical application control bar on a Spark Application container in Flex 4 by creating a custom Application skin and setting the skinClass style.
Full code after the jump.
[click to continue…]
Tagged as:
Gumbo,
skinClass
The following example shows how you can add a control bar to a Spark Application container in Flex 4 by setting the controlBarContent property.
Full code after the jump.
[click to continue…]
Tagged as:
controlBarContent,
Gumbo
In a previous example, “Disabling an Application in Flex 3″, we saw how you could disable an entire Flex Application in Flex 3 by setting the Boolean enabled property on the application object.
The following example shows how you can disable an entire Spark Application in Flex 4 by setting the Boolean enabled property on the static FlexGlobals.topLevelApplication object.
Full code after the jump.
[click to continue…]
Tagged as:
enabled,
Gumbo
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.
[click to continue…]
Tagged as:
Gumbo,
skinClass