March 27th, 2007
I’m working on a shopping cart where I can drag items into a List using a custom itemRenderer. Everything goes perfect until I add more items then the viewable area of the list. When I scroll vertically, both with the scrollbar and with the mousewheel, I get the #1010 ListBase:scrollVertically error and the items render above and below the list area. I’ve searched through the flexcoders mailing archive of Yahoo and on the internet but all the possible solutions I found so far don’t seem to help. I tried setting the width of the itemRenderer to a fixed width in stead of 100%, setting the rowHeight of the list component and removing the variableRowHeight=”true”. Does anyone have any idea on how to solve this error? It seems to be a Flex bug. Here is my exact error (on mouseWheel scroll): [quickcode:noclick]TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically() at mx.controls.listClasses::ListBase/set verticalScrollPosition() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseWheelHandler() at mx.controls::List/mx.controls:List::mouseWheelHandler()[/quickcode] The error I get when I scroll with the scrollbar is as follows: [quickcode:noclick]TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically() at mx.controls::List/mx.controls:List::scrollHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent() at mx.controls.scrollClasses::ScrollThumb/::mouseMoveHandler()[/quickcode] Any help would be appreciated greatly!