Thanks Daniel

But mouseEnabled = false doens't work.

I hope the value of hslide can be changed with code and do not allow
people to change it with draging the slide thumb in visual interface.

Thanks .please help me

Mark

--- In [email protected], "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> Will mouseEnabled = false; work?
> 
> On Wed, Jun 4, 2008 at 3:23 PM, markflex2007 <[EMAIL PROTECTED]> wrote:
> 
> >   Hi
> >
> > I did this but it just move back and I need set the hslide value from
> > code and do not allow it draggable.I need the hslide just show the
result.
> >
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > <mx:HSlider id="h1" x="89" y="173" minimum="0" maximum="10"
> > value="4" width="260"
> > thumbPress="getvalue()" allowTrackClick="false"
> > liveDragging="false" change ="keepvalue()"/>
> > <mx:Script>
> > <![CDATA[
> > import mx.controls.Alert;
> >
> > private var temp:Number;
> >
> >
> > private function keepvalue():void{
> >
> >
> > h1.value = temp;
> > }
> >
> > private function getvalue():void{
> >
> > temp = h1.value;
> >
> > }
> > ]]>
> > </mx:Script>
> > </mx:Application>
> >
> > Please give me a idea
> >
> > Thanks
> >
> > Mark
> >
> >  
> >
>


Reply via email to