Skip to main content
Participant
Jun 23, 2010 8:44 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Jun 24, 2010 8:30 AM UTC

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

Translate