Look, Ma!   Real Scroll Bars in Flash!

I couldn't find any examples of fully-matured scrollbars in Flash which accurately mirror the functionality of standard Windows and Mac OS scrollbars, so I made my own.

The scrollbar thumb's _yscale property is adjusted at load time. This allows its size — relative to the entire scrollbar size — to accurately reflect the percentage of total content currently viewable in the visible area.

If you're not comfortable with masks and actionscript you may have a tough time incorporating this into your own movies.

Also available: a find and replace function for ActionScript. Not sure why this isn't just a method of the String object (hint hint Macromedia).

Feel free to examine/steal the source scroller.fla!


All Articles:
  • Java meets Flash (server/client)
  • Freedom of Position (dhtml)
  • Freedom of Position II: Date Picker (dhtml)
  • Video Poker Obsession (optimization)
  • Tag, You're It! Chunk, the All-Purpose Template Engine (java)
  • Look, Ma! Real Scroll Bars! (flash 5)
  • Perl, curl, and HTTPS Post for XML