0 Replies Latest reply on Dec 31, 2007 7:49 AM by bsr328

    Slider loses value when using trackSkin

    bsr328
      I have a VSlider with a default value. When I load the slider, the pointer is pointing to my default value of 1.0. When I add a trackSkin, the slider loses its' deafult value, and the thumb goes to the bottom of the slider when loaded.

      This is my trackSkin:

      public class CustomTrackSkin extends UIComponent
      {
      override public function get height():Number
      {
      return 16;
      }

      override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
      {
      var gr:Graphics = this.graphics;
      gr.clear();
      gr.lineStyle(2,0x666666,1.0);
      gr.beginFill(0x666666,1.0);
      gr.drawRect(0,0,unscaledWidth,unscaledHeight);
      gr.endFill();
      }
      }

      And this is where the Slider exists:

      <mx:VSlider id="vsZoom" value="1.0" minimum="0.1" maximum="1.7"
      trackSkin="com.docfinity.designer.classes.DocfinityTrackSkin"
      allowTrackClick="true" change="moveZoomSlider(event);"
      />

      Any ideas?? Thanks...