Hi,
So I’m working on a volume slider for a type of jukebox and what I’m using is an actual drawing that is on an angle, therefore the volume slider and handle aren’t in a straight horizontal line.
I’ve done the basic code to keep the handle within the distance of my slider “line” (left to right), but what I have obviously just constrains it to a rectangle.
on(press){
this.startDrag(false,0,0,32,9);
}
on(release){
this.stopDrag();
}
The slider and handle are both at actual size, that’s why it’s only 32 pixels wide that I need it to go across and 9 pixels down. I do realize that for what I want, it’s much more involved than this simple startDrag code with 4 sets of numbers in it.
Any help or direction is greatly appreciated. I’m including the source file in Flash 8/Actionscript 2.0.
Thanks.