---------- Forwarded message ----------
From: Matyas Forian Szabo <[EMAIL PROTECTED]>
Date: 2008/12/2
Subject: getting what fired a "change" sliderEvent -- is it possible?
To: [email protected]


Hi

im in a making of a flex application that will display a zoomed in part of
an image.

Above the image is a scrollbar (a HSlider) which has 2 thumbs.

If i drag the image, the scrollbar moves according to the x coordinate of
the image im viewing.

If i drag the thumbs on the scrollbar flex should display that part of the
image which im

setting with the slider tumbs.

My problem is:

If i drag the image i can alter the slider's thumb positions with
setThumbValueAt().

Then i add a change event to the HSlider to be able to pan the image with
the

slider's thumbs.

BUT this change event gets fired if im dragging the image too.

(So it modifies the image position, altough i want to only modify the thumb
position)

So what i'd need (i guess) is a way to determine what fired the change
event:

the clicking/dragging of my slider object of the dragging of my image.

Any ideas?

thank in advance!

Reply via email to