5 Replies Latest reply on Mar 31, 2010 3:30 PM by dan.biran

    List with TileLayout Event.SCROLL attaches to what?

    dan.biran Level 1

      I'm trying to get the value that my <s:List> is scrolling after the height of its contents exceeds the display area...

       

      I have created my own component based on the List and tried to add in the creationCompleteHandler..

       

      this.scroller.viewport.addEventListener(Event.SCROLL, listScrolled);

      }

       

       

      private function listScrolled(evt:Event):void
      {
             trace("ScrollValue:" + this.scroller.verticalScrollBar.value);
      }

       

      but my function for the scroll event isn't getting hit. Am I adding the event listener to the wrong property? I feel like I've tried a lot of different possibilities already.