Monthly Archives: December 2009

Removing the thumb from an MX HSlider control in Flex

In a previous example, “Changing a slider control’s thumb skin”, we saw how you could specify a custom embedded image instead of the default HSlider/VSlider thumb skin by setting the thumbSkin style.

In the following example shows how you can remove the thumb altogether by setting the thumbSkin style to null.

Full code after the jump.

Continue reading Removing the thumb from an MX HSlider control in Flex

Detecting when a video cannot be loaded by the Spark VideoPlayer control in Flex 4

The following example shows how you can detect when an error was encountered while trying to play media using the Spark VideoPlayer control in Flex 4 by listening for the mediaPlayerStateChange event and checking for the playbackError state.

Full code after the jump.

Continue reading Detecting when a video cannot be loaded by the Spark VideoPlayer control in Flex 4

Playing a video from an RTMP server using the Spark VideoPlayer control in Flex 4

The following example shows how you can load a recorded F4V video from an RTMP server in a Spark VideoPlayer control in Flex 4 by setting the source property to a DynamicStreamingVideoSource object.

Full code after the jump.

Continue reading Playing a video from an RTMP server using the Spark VideoPlayer control in Flex 4

Disabling the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4

The following example shows how you can disable the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4 by setting the Boolean mouseFocusEnabled property on the VideoPlayer control’s scrubBar skin part.

Full code after the jump.

Continue reading Disabling the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4

Disabling the scrub bar on the Spark VideoPlayer control in Flex 4

In a previous example, “Disabling the mouse on the Spark VideoPlayer control scrub bar in Flex 4”, we saw how to disable the mouse on the Spark VideoPlayer control scrub bar in Flex 4 by setting the Boolean mouseEnabled and mouseChildren properties.

The following example shows how you can disable the scrub bar on the Spark VideoPlayer control in Flex 4 by setting the Boolean enabled property on the scrubBar skin part.

Full code after the jump.

Continue reading Disabling the scrub bar on the Spark VideoPlayer control in Flex 4

Pausing a video in the Spark VideoPlayer control when it is removed from the display list in Flex 4

The following example shows how you can pause a Spark VideoPlayer control when it is hidden or removed from the display list in Flex 4 by setting the Boolean pauseWhenHidden property.

Full code after the jump.

Continue reading Pausing a video in the Spark VideoPlayer control when it is removed from the display list in Flex 4