Skip to main content
Participant
June 23, 2010
Question

No callback when using AddEventListener for "Scroll" on a HScrollBar

  • June 23, 2010
  • 1 reply
  • 527 views

Hi All,

I have a HScrollbar defined in mxml

<s:HScrollBar

width="75%" id="indexSlider" stepSize="1" buttonMode="true" skinClass="com.ln.skins.HScrollBarSkin" />

Later in my as file I attach an eventListener

indexSlider.addEventListener("scroll", myCallbackFunction, false, 0, true);

When I use the mouse to scroll the scrollbar I do not get any calls to myCallbackFunction. I do get mouse up and mouse down callbacks when I do   addEventListener for  mouse up and down.   I do get a true response for willTrigger("scroll')  for this component. Not sure what I am missing.

Thanks

Jerry

This topic has been closed for replies.

1 reply

Inspiring
June 24, 2010

Leave off the last 3 arguments, and try using the constant rather than a bare string for the event name.