Adding the Drag-Scrollbar and Necessary Trigger (cont.)
Step 5 :
Almost finished. Open Movie Clip scrollDown and open the actions
in frame 2. Add on the bottom the following actions:
Begin Tell Target ("../scroll")
Set Property ("slider", Y Position) = (../:scrolltext.scroll - 1) / (../:scrolltext.maxscroll - 1) * ../:balkheight
End Tell Target
so it will look like this:
Open Movie Clip scrollup and add the same actions in frame 2. Like
i explained before, i added the -1 to both variables to ensure that possition
0 of the slider instance would correspond to the scrollvalue scrolltext.scroll
of 1
We're done! Click Control - Test Movie to test if it's working
correctly.
Patrick Jansen is a freelance flash-, graphic- and webdesigner. Born in Holland, currently residential in Brazil. Worked for the compagnies Lectric b.v. (www.lectric.nl) and NIC b.v. (www.notenbomer.nl).