Scroller dom hakker og kører for langsomt
Er der nogle som kan hjælpe mig med at justere min scroller?Her er scriptet, som jeg har fået fra én fra eksperten.
Min tekst hakker, og kører for langsomt.
onClipEvent (load) {
y = _parent._y;
x = _parent.sbutton._y;
intArrowUnit = 2500;
function calcMCHeight() {
if (eval("_root."+_root.current)._height < _height) {
_parent.button._visible = false;
_parent.buttonUp._visible = false;
_parent.buttonDown._visible = false;
} else {
_parent.button._visible = true;
_parent.buttonUp._visible = true;
_parent.buttonDown._visible = true;
}
}
calcMCHeight();
}
onClipEvent (enterFrame) {
eval("_root."+_root.current)._y = y-((_parent.button._y-x)/_height)*(eval("_root."+_root.current)._height-_height+60);
if (_parent.scrollup) {
_parent.button._y -= _root[_root.current]._height/intArrowUnit;
if (_parent.button._y<0) {
_parent.button._y = 0;
}
}
if (_parent.scrolldown) {
_parent.button._y += _root[_root.current]._height/intArrowUnit;
if (_parent.button._y>_height-_parent.button._height) {
_parent.button._y = _height-_parent.button._height;
}
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false) && eval("_root."+_root.current)._height>_parent.bg._height) {
_parent.button._y = _root._ymouse-_parent._y-_parent.button._height/2;
}
}
Hvilke tal skal jeg justere??? Spørg løs - du kunne jo gå hen og score 30 lette point :)
