Matt,

 

            We purposely limited the Slider to only support 2 thumbs. Can you describe the use case for supporting more than two thumbs?

 

In any case, you can create a subclassof Slider that overrides the set thumbCount setter function. I’ve included an example below. Note that when you override a setter function, you must also override the getter.

 

class MySlider extends mx.controls.HSlider

{

            function MySlider()

            {

            }

           

            function set thumbCount(val:Number)

            {

                        super.thumbCount = val;

                        __thumbCount = val;

            }

           

            function get thumbCount():Number

            {

                        return super.thumbCount;

            }

}

 

 

Jason


From: Matthew Pflueger [mailto:[EMAIL PROTECTED]
Sent: Monday, March 14, 20058:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Slider extension

 

Has anybody extended the Slider component to use more than two thumbs?  Also, does anybody have the source to the Flex Slider components?  The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package…

 

Thanks,

 

Matt

 

 



Reply via email to