Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Interactivity

Categories Creating a Text that uses Scrollbuttons and a Scrollbar
Author: Patrick Jansen | Website: http://orbita.starmedia.com/~pjv |

 
Page 17
«prev ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next»

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.

«prev ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next»

» Level Advanced

Added: : 2000-12-27
Rating: 7.56 Votes: 188
Hits: 4020
» Author
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).
» Download
Download the files used in this tutorial.
Download (109 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers