Simple Sliders and Math

Hi!

I am producing an interesting interactive project. I have 9 sliders that will adjust a figure each and should add up to 100.

If they add up to 100, it should stopDrag();

Now this works, however if you move the slider faster than the frame rate, it doesn’t stop at 100. I have tried updateAfterEvent(); but not sure of any other options.

Also, I need to be able to drag any sliders back down but not up once it has reached 100.

Here is a link to the file if you want a look…

graphicalstatus.com/slider/sliders.zip

Please help! I’m so confused!

Many thanks,

Daaan