I’m trying to make my own component that behaves like a list and supports infinite scrolling (in 1-dimension : vertical or horizontal) – both directions. For eg, a vertically laid out list which the user can scroll up or down forever – without ever hitting the ‘last’ or ‘first’ item. A good use for this: a calendar that displays each month as a list item.
Anyway, there are a bunch of things to overcome. The first of which, I think, is to disable the scrollbar’s bounce effects (introduced in the latest Flex 4.5 (mobile) SDK).
If I can disable the bounce effects, I’m guessing I can then add/remove items as needed to the list and it would scroll infinitely.
Any ideas?
Krishna
Personally, an infinite list would mean a lot of rework of the core List component. It’s a lot of work to reverse engineer and you’ll probably hit a wall. I think what you want to do is create a component from scratch and extends
SkinnableContainer.From here on out, you need to decide how to implement and what’s the user interaction for an infinite list, then need to implement proper practices and reuse your item renderers.