Hey! First Time on this forum, however I’ve used this site for reference many times, very helpful…Anyhoo, I’ve looked all over the internet for a simple scrollbar code but all that I found were countless post of long painful code…I was sure there had to be something more simple with the same effect and I’ll share what I came up with myself!
onEnterFrame = function(){
position1 = scrollFace_btn._y;
book_mc._y = -position1;
scrollFace_btn.onPress = function(){startDrag(scrollFace_btn,true,831.0,39.0,831.0,361.3)}
scrollFace_btn.onRelease = function(){stopDrag();}
scrollFace_btn.onReleaseOutside = function(){stopDrag();}
}
Its really simple! position1 keeps record of the scrollFace
book_mc is what was being scrolled(object set to 0,0 in movieclip)
So its as simple as subtracting scrollface._y(position1) from book_mc!
EASY!
Has the same effect as all the other code found! :azn: