First of all let me apologize for not blogging in a while but I’ve been working on couple of interesting projects after which it was time for deserved vacation on the BlackSea’s beaches.
Anyway I needed a better looking horizontal slider for one of the projects and all of my googling got me nothing reasonable (most of the tutorials were for changing the Thumb and leaving the default TrackHighlight) so I had to figure out something. Here is my horizontal slider, it is pretty basic but you can use it as a base for your needs. Corner Radius and Background Gradients are set via CSS, width and height are flexible too. Check the example and get the source code
Comments
Comment by Marcio on 2009-08-19 22:11:50 +0300
Hi Peter,
I really appreciated your custom HSlider, but I’d like to know how can I add another trackHighlight so I intend to create a movie control and this additional trackHighlight will serve like loading indicator.
I’m starting studing Flex 3 and I’ve not enough experience to do by myself.
Could you help me with that?
Thanks in advance,
Marcio
Comment by Peter on 2009-08-19 23:17:06 +0300
@Marcio – what comes in mind is to add another HSlider and hide the thumb and the track
Comment by iamcoder on 2009-09-01 12:57:21 +0300
nice post. your custom component HSlider is really good.. keep posting
Comment by Prashant on 2009-10-23 09:36:03 +0300
Thank you Peter. Great work. Really helpful for me.
Comment by lei on 2010-03-05 05:07:35 +0300
cool! I didn’t see so nice custom compnent. It is the same as my 想法。
sorry,my English no good.haha!
Comment by sam on 2010-03-08 10:24:51 +0300
Thank you Peter,it’s very nice!!!!!
Comment by Ram on 2010-04-28 22:04:45 +0300
Thanks Peter,
Very useful Component and good starting point for custom Sliders
Comment by Bruno Natal on 2010-05-24 17:38:44 +0300
Tks!
Comment by Juan Ticona on 2010-08-01 07:16:25 +0300
Hey man, I wonderring, if you maybe, know how to make a component like the control of youtube player, that the you use for view the load of video and seek of video to.
sorry for my bad english i’m spanich speeker.
Comment by Vinesh on 2010-08-19 14:15:52 +0300
Hi Peter,
Pls Help me out
You are too good sir, can you pls help me out in making Custom Slider Component for Adobe Flex 3 where in you have did in circle how do I make it in rectangle with transparent and number appearing as i move the slider with the colors. I mean if a am moving the slider it the TrackHighlight should be true with the color I want and with the transparent number appearing on same.
Thank you very much!!!!!!!!!
Regards,
Vinesh Menon
Comment by sanky on 2010-09-15 04:47:50 +0300
Thank you for your source code Peter. And all here, could anyone pls tell me how to hide the slider’s thumb and the track. I thought it would be very simple, but I don’t know how to do this. Thank you!
Comment by eity0323 on 2011-04-06 09:37:20 +0300
Thanks for sharing.It’s help me.
Comment by Mathan on 2011-06-21 12:03:49 +0300
is this possible in flex4?
Comment by Peter on 2011-07-06 02:20:49 +0300
@Mathan – yes a lot easier just create custom skin.
Comment by huang on 2011-11-10 09:11:28 +0300
thank you peter,your Component is excellent