Re: [flexcoders] Removing Slider Thumb

2007-01-28 Thread Benjamin Schwehn
Daniel Freiman wrote:
 Does anyone know how to remove a single thumb from a slider without losing
 the values of the other thumbs?

Looking at the source code for the Slider component (the 2.0 version, 
not 2.01) (Slider.as) I'd say you'd have to implement your own Slider 
Class. Whenever you change the thumbsCount, the component will delete 
all thumbs and recreate them. It should be quite trivial to do so: Just 
copy and paste all the slider code into your new class and implement 
your changes. Impelementing the change in the createThumbs function 
would be my first idea, but I haven't tried.

Alternatively perhaps you could just remember the values, reset the 
thumbscount and then set the values to the remaining thumb. Don't know 
if that would be possible without the remaining thumb flickering/moving 
though.

HTH
Ben



[flexcoders] Removing Slider Thumb

2007-01-26 Thread Daniel Freiman

Does anyone know how to remove a single thumb from a slider without losing
the values of the other thumbs?

thanks,

- Dan