OK, nobody is following but, anyway...
I figured out how to do all this with the HSlider, but it involves
some dirty hacking at runtime.
slider.__thumbs[0].enabled = false;
slider.__thumbs[2].enabled = false;
I can also draw the colors on the track with the drawing API, on top
of the component.
Well, this is just for a PoC so I don't really mind the hacking.
Good bye nobody ;)
Aldo
On 9/15/05, Aldo Bucchi <[EMAIL PROTECTED]> wrote:
> One more problem...
>
> When a thumb is dragged over another, it stops before the real point (
> thumb MCs collide ). This makes setting the limits a little harder.
> Too bad.
>
> I am still working on my own component.
> Any hints on how to reuse some of the existing Slider's functionality
> is more than welcome.
>
>
>
> On 9/15/05, Aldo Bucchi <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> >
> > The HSlider allows me to drag the thumb freely along the track,
> > between points A and B ( minimum and maximum attributes):
> >
> > A-------------V---------------------------------------B
> >
> > I now need a slider that allows me to set limits, so that the thumb is
> > now restricted to the range between C and D.
> >
> > A-------C----------V------------------D-------------B
> >
> > I also need to be able to paint each segment of the track with a
> > different color. For instance:
> >
> > AC = red
> > CV = blue
> > VD = light blue
> > DB = yellow
> >
> > Finally, I need to be able to set the limits [A,B] dynamically at runtime.
> >
> > Now, there are two options. Create a component from scratch ( not
> > trivial, I am already into and ticks, drags, snapping are quite
> > complex ) or extend the HSlider, which is hard since I can't find the
> > source code.
> >
> > I managed to have it accept 3 thumbs by overriding the thumbCount
> > setter/getter ( which I use for points C, V, D ). However, I still
> > need the component to:
> > - accept different track colors for each segment
> > - accept different thumbClasses for each individual class ( I dont
> > want the limits to be thumbs )
> > - be able to fix a thumb so it cannot be dragged ( limits should not
> > be dragged )
> >
> > any ideas??
> >
> > Thanks,
> > Aldo
> >
> > --
> > ::::: Aldo Bucchi :::::
> > mobile (56) 8 429 8300
> >
>
>
> --
> ::::: Aldo Bucchi :::::
> mobile (56) 8 429 8300
>
--
::::: Aldo Bucchi :::::
mobile (56) 8 429 8300
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/