How can I replace the HSlider/VSlider thumb programmatically? I have created a new slider track, and that seems to have moved the thumb to be below it. I need to replace it, and hide the default thumb.
package com.customUIComponent.slider
{
import mx.core.UIComponent;
public class SliderTrack extends UIComponent
{
override public function get height():Number{
return 20;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth, unscaledHeight);
this.graphics.beginFill(0xa0a0a0,1);
this.graphics.drawCircle(0,0,5);
this.graphics.drawCircle(unscaledWidth,0,5);
this.graphics.endFill();
this.graphics.moveTo(0,0);
this.graphics.lineStyle(10,0xa0a0a0);
this.graphics.lineTo(unscaledWidth,0);
}
}
}