update slider handle position without triggering callback

update slider handle position without triggering callback


I've got two situations where I need to update a slider handle
position without firing the callback.
In one instance I have a slider and button as volume controls. In my
GUI either can exist exclusively or simultaneously and both have
callbacks that call into an SWF. The trouble starts when I want to
update the slider to reflect a change in volume initiated by the
button because changing the slider triggers it's callbacks to fire
updating the volume again. This is a problem because in the SWF they
call into setting the value twice causes it to flip back to the
previous value. I can't make the button just update the slider because
the button can exist without the slider and when the moveTo method is
used it causes stop, slide and change events to fire. I've worked
around this by destroying and recreating the slider on button click
but this seems cumbersome.
The other situation is a progress bar that can seek. The SWF calls
back to javascript to update the GUI with current time so every second
it calls an update. If I put a callback on the slider to seek on
change/stop/slide it creates in infinite loop. Having the SWF's
callback destroy and recreate the slider would mean that the user has
less than 1 second to move the slider before it's destroyed.
So, is there a way to update the slider handle position without
triggering it's callbacks?