Posts tagged as:

source

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.

[click to continue…]

{ 2 comments }

The following example shows how you can use an XML document as a data provider for a Spark List control in Flex 4 by using an XMLListCollection.

Full code after the jump.

[click to continue…]

{ 11 comments }

The following example shows how you can set a bitmap fill on an Flex Gumbo Ellipse object by setting the source property on the BitmapFill object.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can prevent the Flex Image control to automatically loading an image when setting the Image control’s source property by setting the autoLoad property to false and then explicitly loading the image using the load() method.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can detect when the source property has changed on a Flex Image control using the sourceChanged event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can filter items in a Flex DataGrid using a CheckBox control, and the ArrayCollection class’s filterFunction property.

Full code after the jump.

[click to continue…]

{ 21 comments }

Here was a neat trick I learnt today. You can set a ProgressBar control’s labelPlacement property to “center” and have it appear within the progress bar itseslf. Pretty handy!

And just because that alone wasn’t really an interesting entry, I created a second progress bar which uses “polled” mode to determine how much of an FLV has loaded (it monitors the bytesLoaded and bytesTotal properties of the UI object specified in the source parameter, which in this case is the VideoDisplay control). Finally I tweaked the label property to add the units (kilobytes) and set the conversion property to 1024 to convert from bytes to kilobytes. Whew!

Full code after the jump.

[click to continue…]

{ 0 comments }