RE: [Flashcoders] Scroll bar math question

2006-11-28 Thread Steven Sacks | BLITZ
Sometimes, people make scrollbars more complicated than they need to be. The easiest scrollbar to write and use is one that returns a percentage 0-100 based on its position in the well. Here is a quick example. I used onEnterFrame for the update because in my experience, it's smoother than a

[Flashcoders] Scroll bar math question

2006-11-27 Thread Carl Welch
Hello All, I have a movieclip that I attach a varying number of other movieclip that are stacked vertically. I am trying to figure out some math that accounts for the varying height of the scrolled movieclip. I am having a problem with the math though. I am using something that looks like:

Re: [Flashcoders] Scroll bar math question

2006-11-27 Thread Charles Parcell
Can I assume that you are offsetting your scroll dragger by 30 because you have arrow buttons at the top and bottom of the scrollbar? If so you need to change the +30 to -30. Otherwise you are just shifting the scroll area down rather than removing 30 from both ends. That might account for your