R – Flex: List with VBOX-type (smooth) scrolling

actionscript-3apache-flexlistmxmlvbox

I have a list control that uses a custom itemRenderer and custom itemEditor. The itemRenderer/Editor are textarea controls with at least 3 lines of text each.

The default scrolling nature of a list control is by Item, rather than by some number of pixels, the way a VBOX scrolls.

I want my list control to have more of a word-processor look, where scrolling down will scroll one line of text at a time. Because each list item holds at least 3 lines of text, scrolling down skips all three and positions the next list item at the top of the list control.

Any suggesitons?

I was trying to figure out how to write a custom VBOX that could act like a list, but I'm new to flex — and I've only been programming for a year. ….Not really sure where to start.

Thanks!

Best Answer

Use the Spark List control from Flex 4 (the beta is available). Its "Scroller" interface is much more flexible.

Related Topic