Actionscript 2.0 scrollbar

Bu konuyu okuyanlar

teknoplus

Öğrenci
Katılım
14 Ağustos 2012
Mesajlar
11
Reaksiyon puanı
0
Puanları
0
arkadaşlar merhaba bi konuda yardımınıza ihtiyacım var.
kendi tasarladığım bi scrollbar yaptım actionscript 2 ile yazdım.
fakat bar çizgisinin üstünde giden yuvarlak metnin en üst kısmını göstermiyor neden olabilir acaba ekran görüntüsü ve kodlar aşağıda
şimdiden teşekkür ederim



txt.setMask(mask)
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {

var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}

}
 
Üst