Skip to main content
Inspiring
May 17, 2007
Answered

Scroller/Dragger - Need formula

  • May 17, 2007
  • 2 replies
  • 192 views
I seem to run into this problem a lot. I've done some searching and can't find the answer. All i need to do is translate the Y position of dragger button to the Y position of an MC. Here's my code, it's close, but not quite there. Anybody have more accurate math? Thank you!

This topic has been closed for replies.
Correct answer kglad
:

2 replies

kglad
Community Expert
Community Expert
May 17, 2007
reverse mcMin and mcMax

or

reverse dragMin and dragMax
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 17, 2007
:

Inspiring
May 17, 2007
Thanks, kglad. How do I modify it so that the MC direction is opposite?

In other words, I want the drag_MC to move the MC to the bottom-most-position when the drag_MC is at the top-most-position, and vice-versa. Just like a scroller in a browser window.

Thanks again for the quick reponse!