Swaping the volume slider to left is off and right is on

hey guys,

i’m using this code for a volume slider. ATM the moment, left it on and right is off. What do I need to change so that left is off and right is on?

thxs!

[AS]
onClipEvent (load) {
top = _y;
bottom = _y;
left = _x;
right = left+100;
}
onClipEvent (enterFrame) {
if (dragging == true) {
_root.soundObject.setVolume(100-(_x-left));
}
}
[/AS]

_root.soundObject.setVolume(_x-left);

I think that will work.

–EP

cool, big thanks!!! its works