Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/02/2007, 07:24
X-avier
 
Fecha de Ingreso: febrero-2007
Mensajes: 3
Antigüedad: 17 años, 2 meses
Puntos: 0
Agregar botones a scrollbar

el asunto es que tengo un scroll que se mueve por un scrollbar y nesecito agregar botones en su extremos yy que agan bajar y subir el texto al igual que el scrollbar.
puesto que en estos momentos solo puedo manejarloo con el scrollbar yal momento de interactuar con esto los ussuarios teinde a confundir unos graficos con botones y de hay que quiero solucionar este problema, de ante manos gracias a todos los del foro que me an nutrido de conocimientos

les pongo el codigo para que se formen una idea

txt1.setMask1(mask1)
scrollbar1.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt1._height>mask1._height) {
this.startDrag(false, scrollbarBG1._x, scrollbarBG1._y, scrollbarBG1._x, scrollbarBG1._height-this._height)
txt1.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar1.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {

var funkyVar = -this._parent.scrollbar1._y*(((this._height-this._parent.scrollbar1._height)/(this._parent.scrollbarBG1._height-this._parent.scrollbar1._height))-1)
//cambiar .2 para aumentar velocidad
this.Y = (funkyVar-this._y)*.2;
// --
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}

}

el scrollbar esta en
on (rollOver) {

}

gracias a todos de ante mano
chau!!!!!!!!!