# Slider problem

**URL:** https://forum.kirupa.com/t/slider-problem/39399
**Category:** flash
**Created:** [January 7, 2004, 12:10am UTC](https://forum.kirupa.com/t/slider-problem/39399 "2004-01-07T00:10:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iceman](https://avatars.discourse-cdn.com/v4/letter/i/46a35a/32.png) [@iceman](https://forum.kirupa.com/u/iceman)
#### Post date: [January 7, 2004, 12:10am UTC](https://forum.kirupa.com/t/slider-problem/39399/1 "2004-01-07T00:10:50Z")

</div>

Hey everyone,

I’m making a slider which will eventually control the alpha levels of a movieclip of mine but I’m having trouble controlling the parameters in the startDrag() function. Here is the code:  
[AS]borderBottom = 0;  
borderSide = 0;  
sliderMC.onPress = function(){  
this.startDrag(true,borderSide,borderMC.\_height, borderMC.\_width, borderBottom);  
}  
sliderMC.onRelease = function(){  
this.stopDrag();  
}[/AS]  
This seems to work ok, however, the problem is encountered when I go to drag the MC…for some unknown reason it ventures off its slider bar and goes to the left. I will attach the .fla and if anyone could help me it would be great!

Thanks A Lot

Kyle:p:
