1 Reply Latest reply on Sep 4, 2010 11:11 AM by Arun Ganesh

    Time Slider in flex 3



      I am doing a flex application where i am connecting to a web service to get the images.

      These images will come based on the month that we are going to select from time slider value.

      if we select january by using slider value corresponding to that value then we need to get the images from january

      For this i need the time slider

      please help me..........

        • 1. Re: Time Slider in flex 3
          Arun Ganesh Level 3

          <?xml version="1.0" encoding="utf-8"?>


          <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">






                  private var monthNames:Array=["January","February","March","April","May","June","July","August","Sept ember","October","November","December"]


                  private function sliderChange():void{


                      lblMonth.text = "Current month is "+ monthNames[Math.round(Number(monthSlider.value)-1)];




                  private function onThumbDrag(event:MouseEvent):void{












              <mx:Label id="lblMonth"/>


              <mx:HSlider minimum="1" maximum="12"  allowTrackClick="true" snapInterval="1" id="monthSlider" thumbDrag="{onThumbDrag(null)}" change="{sliderChange()}"/>








          Try this