Some of you may wonder how to activate my as2 scrollbar class to navigate the dynamic list i posted yesterday.
It is quite simple. Download the package here, unpack it and put the scrollbar.as file in the project folder.
Now just paste the scrollbar movieclip in the dynamic xml list fla, take a few minutes to change it to fit the design, and the change the buildList function as below.
function buildList() {
[...]
downBtn.onRelease = function () {
offset += 1;
adjustList();
}
upBtn.onRelease = function () {
offset -= 1;
adjustList();
}
scrollbar.setDragged(this.container); // the dragged object
scrollbar.setRuler(scrollbar.ruler); // the ruler
scrollbar.setBackground(scrollbar.sfondo); // the scrollbar background
scrollbar.setMaschera(this.maschera); // the mask used in the fla
scrollbar.setTweenSpeed(25); // Tween velocity for dragging
scrollbar.setMouseWheelAdd(10); // Mouse wheel increment
scrollbar.init(); // start!
}
Now test the swf and be amazed!
Hope this will help some of you! Enjoy!
