# Simple Sliders and Math

**URL:** <https://forum.kirupa.com/t/simple-sliders-and-math/296880>\
**Category:** flash\
**Created:** [September 22, 2009, 8:40am UTC](https://forum.kirupa.com/t/simple-sliders-and-math/296880 "2009-09-22T08:40:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daaan](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@daaan](https://forum.kirupa.com/u/daaan)\
**Post date:** [September 22, 2009, 8:40am UTC](https://forum.kirupa.com/t/simple-sliders-and-math/296880/1 "2009-09-22T08:40:49Z")

</div>

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](http://graphicalstatus.com/slider/sliders.zip)

Please help! I’m so confused!

Many thanks,

Daaan
