Hi Subeesh,
with your tips, i have done that. i have done the following way .
This will be helpful when we pass minimum and maximum value dynamically.
public function showLabels(hs:HSlider):void {
var min:int = int(hs.minimum);
var max:int = int(hs.maximum);
var inter:int = int(hs.snapInterval);
var labelArray:Array = new Array();
for(var i:int = min; i <= max; i += inter){
labelArray.push(i);
}
slider1.labels = labelArray;
}
<mx:HSlider id="slider1" tickInterval="10" width="400"
minimum="0" maximum="100" snapInterval="10" showDataTip="true"
creationComplete="showLabels(slider1)"
/>
Thank You.
On Fri, Sep 25, 2009 at 10:13 AM, Subeesh Arakkan <[email protected]>wrote:
> You can set it dynamically like this
>
>
>
> mySlider.labels=[0,100];
>
>
>
> Subeesh
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Gerald Anto Fernando
> *Sent:* 25 September 2009 10:07
> *To:* [email protected]
> *Subject:* [flex_india:25476] Re: How can i see the labels for slider
> control
>
>
>
> I want to display the label in run time.i dont want to declare in <mxml>
> tag.
>
>
>
> Thanks&Regards,
>
> Gerald A
>
> On Fri, Sep 25, 2009 at 9:33 AM, Sumant <[email protected]> wrote:
>
>
> Hi,
>
> add minimum value. I think that will work.
>
>
> regards,
> Sumant
>
>
> --
> Thanks & Regards,
> A Gerald
>
>
>
> >
>
--
Thanks & Regards,
A Gerald
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---