# Controling the Slider one way

**URL:** <https://forum.kirupa.com/t/controling-the-slider-one-way/218524>\
**Category:** flash\
**Created:** [March 8, 2007, 2:05pm UTC](https://forum.kirupa.com/t/controling-the-slider-one-way/218524 "2007-03-08T14:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thanigaivel](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Thanigaivel](https://forum.kirupa.com/u/Thanigaivel)\
**Post date:** [March 8, 2007, 2:05pm UTC](https://forum.kirupa.com/t/controling-the-slider-one-way/218524/1 "2007-03-08T14:05:03Z")

</div>

Hi Every one

I developed a slider, Which can slide in both directions.

I have a requirement to restrict slider to move in one direction. Let say towards right only.

Who do we do this…

I have use the following code to develop the slider

on (press) {  
this.startDrag(false, 6, 0, 105, 0);

}  
on (release, releaseOutside) {  
this.stopDrag();  
}

Can any one help me on this development

Thanks

Thanigaivel.
