I have a Flex Spark List (well it's a Tree to开发者_StackOverflow be precise but it renders as a list) and as I'm scrolling through it I want to provide information about the item that is currently at the top of the list in context to the viewport. So this could be the 100th item in the list depending on how far you've scrolled down.
This should do the trick
listProvider.getItemAt(list.scrollPositionToIndex(list.horizontalScrollPosition,
list.verticalScrollPosition));
精彩评论