Click to See Complete Forum and Search --> : Scroll formula

09-26-2002, 12:18 AM
I have dynamic mcs im trying to scroll. Im scrolling by moving the _y axis.

I currently have it set as

mc._y = -scroller._y;

It works but my mcs will vary in height and my scroller only moves 333 pixels. What formula would I use
to make sure I can scroll that mc within that 333 pixels?

Ed Mack
09-26-2002, 12:15 PM
Ok, I'm not sure what you mean, so this is a wild guess:

mc._y = (-scroller._y)/333*mc._height;

09-26-2002, 08:52 PM
Thanks. that does the job