6 Replies Latest reply on Feb 20, 2010 12:01 AM by JennySF

    Can't scroll an mx:List??

    JennySF Level 1

      I have an mx:List containing images with a custom itemRenderer, and if I try to scroll through the list I get this error:

       

      TypeError: Error #1010: A term is undefined and has no properties.

      at mx.controls.listClasses::ListBase/shiftRow()[C:\autobuild\galaga\frameworks\projects\fram ework\src\mx\controls\listClasses\ListBase.as:7072]

      at mx.controls.listClasses::ListBase/scrollVertically()[C:\autobuild\galaga\frameworks\proje cts\framework\src\mx\controls\listClasses\ListBase.as:6774]

      at mx.controls.listClasses::ListBase/set verticalScrollPosition()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\control s\listClasses\ListBase.as:1334]

      at mx.controls.listClasses::ListBase/mouseWheelHandler()[C:\autobuild\galaga\frameworks\proj ects\framework\src\mx\controls\listClasses\ListBase.as:8076]

      at mx.controls::List/mouseWheelHandler()[C:\autobuild\galaga\frameworks\projects\framework\s rc\mx\controls\List.as:2749]

       

       

      Here is the code for the list:

       

          <mx:List id="horizontalList" verticalScrollPolicy="on"

              dataProvider="{bannerList}"

              itemRenderer="BannerThumbnailRenderer"

              rowCount="{bannerList.length}"

              columnCount="1"

              rowHeight="180"

              horizontalScrollPolicy="off" width="100%"/>

       

       

      This seems like a very basic thing I'm trying to do, why am I getting this error?? How do I get around this? (I need the custom itemRenderer)