|
Mouse or Drag Handlers
I'm trying to make a volume slider component.
i have 2 images, a background, and the tip of the slider that moves.
i can't seem to get the handler, or combination of handlers right to accurately represent a volume slider.
the logic would be something like this:
on mouse down, link the current Y Mouse value to the current volume value
on mouse move while the mouse is down, if the value is >= minimum and <= maximum, then set the volume value to the adjusted movement.
i guess i'm not sure how to get a combination of mouse down and mouse move, .. i don't think the drag handlers really apply since they seem to trigger when objects interact with other objects.
__________________
Mike
|