Monthly Archives: April 2010

Determining if the scroll bars are visible in a Spark Scroller container in Flex 4

The following example shows how you can determine if the vertical and/or horizontal scroll bars are visible on a Spark Scroller container in Flex 4 by checking the verticalScrollBar or horizontalScrollBar skin part’s Boolean visible property.

Continue reading Determining if the scroll bars are visible in a Spark Scroller container in Flex 4

Rewinding a video when changing the selected item in the MX Accordion container in Flex 4

The following example shows how you can rewind a Spark VideoPlayer control in Flex 4 when the selected MX Accordion container changes its selected item by listening for the hide event on the Spark NavigatorContent container and calling the seek() method on the VideoPlayer instance.

Continue reading Rewinding a video when changing the selected item in the MX Accordion container in Flex 4

Setting a bitmap fill on a Spark Button control in Flex 4 (redux)

In a previous example, “Setting a bitmap fill on a Spark Button control in Flex 4”, we saw how you could apply a background bitmap fill on a Spark Button control in Flex 4 by creating a custom skin, using the BitmapFill class, and setting the skinClass style.

The following example shows how you can extend the Spark Button class and add a custom style for the background image fill instead of creating several different skins for each bitmap fill.

Continue reading Setting a bitmap fill on a Spark Button control in Flex 4 (redux)

Setting the background color of a Spark Panel container in Flex 4

In a previous example, “Setting the content background color of a Spark Panel container in Flex 4”, we saw how you could set the content background color on a Spark Panel container’s children in Flex 4 by setting the contentBackgroundColor style.

The following example shows how you can set the background color on a Spark Panel container in Flex 4 by setting the backgroundColor style.

Continue reading Setting the background color of a Spark Panel container in Flex 4