Creative Flash Scroller Forum


box Creative Flash Scroller
With Creative Flash Scroller you can scroll any kind of Flash Content: static text, dynamic text, pictures, animations, movies. It comes with multiple scroll behaviors: touch scroll, mouse gesture scroll, scrollbar scroll and even supports mouse wheel behavior. You can add smooth scrolling or motion blur effects and customize it to suit your design, from an easy to use interface.

Find out more about Creative Flash Scroller

Thread: Button within the scroller

title left
User Details
message
title right
David Horn

post date:
2011-08-17 15:57:54
Hello
I have several buttons within the scroller.

Is there any way (without hand coding some kind of on mouse move trigger) to not register a "click" when the user is dragging the scroller?

I currently have the scroll set to "Touch Scroll" and the button is listening for a mouse_click event.

Please let me know if my question was clear enough

Thank you.
Andrei Rinciog [Extend Studio]

post date:
2011-08-18 06:18:20
Hello David,

I think you can get the result you want by removing the event listener during drag and drop.

The component dispatches events when scrolling occurs. So, when scrolling starts the "onHScroll" and/or "onVScroll" events are dispatched. When scrolling stops you the "onHScrollStop" and "onVScrollStop" events are dispatched.

You can use those events to add and remove the click event listener from your buttons. A click event is dispatched after the mouse is pressed and released on the same button. So, when the mouse is pressed and scrolling starts, remove the click event handler. Scrolling stops after the mouse is released. So by adding the event listener then it won't trigger as the release event had already been dispatched.

Tell me if you need more help.

Regards,
Andrei Rinciog
David Horn

post date:
2011-08-18 10:07:41
Excellent suggestion, Andrei. Thank you.