parametre i scroll
Jeg sidder med en scroll, som virker fint nok. Bare ikke hvis jeg prøver at ændre størelse på tekstboxen + scrollbaren.Og det er jo nok fordi jeg ikke lissom har forstået pametrene ..
Hvad skal jeg ændre til hvad hvis jeg gør tekstboxen længere ? Den er nu 243, lad os sige den skal være 343 ..
checkScroll Movieclip har action:
onClipEvent(enterFrame){
if(_root.upHold){
_root.article.scroll -= 1;
_root.scrollBar.scroller._y = ((_root.article.scroll-1)/_root.article.maxscroll) * 243;
}
if(_root.downHold){
_root.article.scroll += 1;
trace(".scroll = " + _root.article.scroll);
_root.scrollBar.scroller._y = ((_root.article.scroll-1)/_root.article.maxscroll) * 243;
}
if(_root.scrollerHold){
_root.article.scroll = _root.article.maxscroll *(_root.scrollBar.scroller._y/243) + 1;
}
}
Scrolldims mellem de to pile har action:
on(press){
this.startDrag(FALSE,0,0,0,233);
_root.scrollerHold = true;
}
on(release){
this.stopDrag();
_root.scrollerHold = false;
}
og pilene har:
on(press){
_root.upHold = true;
}
on(release){
_root.upHold = false;
}
