From the category archives:

VGroup (Spark)

The following example shows how you can tab through a series of Spark TextInput controls in Flex 4 and auto-scroll the VGroup container so that the currently focused text field has focus by using the fractionOfElementInView() method, getScrollPositionDeltaToElement() method, and verticalScrollPosition property.

Full code after the jump.

[click to continue…]

{ 4 comments }

In a previous example, “Determining the first and last visible item in a scrolling VGroup container in Flex 4″, we saw how you could determine the first and last item in a Spark VGroup container’s view by using the firstIndexInView and lastIndexInView properties on the VGroup container’s layout property.

The following example shows how you can determine how much of an item is visible in a scrolling VGroup container in Flex 4 by using the fractionOfElementInView() method.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can determine the first and last item in a Spark VGroup container’s view by using the firstIndexInView and lastIndexInView properties on the VGroup container’s layout property.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows how you can toggle variable item/row heights on a Spark VGroup container in Flex 4 by setting the Boolean variableRowHeight property.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can set the requested row count on a Spark VGroup container in Flex 4 by setting the requestedRowCount property.

Full code after the jump.

[click to continue…]

{ 0 comments }