I handle scrolling in the simplest, most straightforward way possible.
First, I get the percentage of where the scrollbar is along its track
from and have it dispatch that percentage.
var perc = (BTN_Shuttle._y - orgShuttleY) / range;
dispatchEvent({type:"change", data:perc});
The listener then moves whatever needs to scroll by its negative height
times the percentage.
var newY = -MC_Content._height * perc;
MC_Content._y = newY;
HTH,
Steven
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com