Comunidad de diseño web y desarrollo en internet online

inconveniente con scroll

Citar            
MensajeEscrito el 08 Jul 2007 05:11 pm
Hola!
He realizado el scroll (sin easing) de la pagina de ejemplos,

http://www.cristalab.com/files/ejemplos/scrollbar/scrollbar.html

sale bien, pero hay un pequeño error en la barra que se nota mucho cuando la barra es dibujada mas ancha, como este ejemplo:

http://www.fivesolucionesmultimedia.com/comunidadfive/vista.php?nombre=7

si lo ven el slide baja bien, pero si lo arrastras a la derecha (horizontalmente) se mueve, se desplaza.. no tengo idea como corregirlo.

el archivo de ejemplo es este:
http://www.fivesolucionesmultimedia.com/comunidadfive/descarga.php?nombre=6


y el codigo que uso en el mc del slide es:

Código :

onClipEvent(load){
   var objetivo:String = _parent.mi_objetivo
   var sostenido:Boolean = false;
   var razon:Number = this._parent._parent[objetivo]._height / this._height;
   var deslizar:Number;
   razon = int(razon);
}

on(press){
   startDrag(this, false, this._parent.barra._x, this._parent.barra._y, this._parent.barra._x + this._parent.barra._width, this._parent.barra._y + this._parent.barra._height - this._height);
   this.sostenido = true;
}

on(release){
   stopDrag();
   this.sostenido = false;
}

onClipEvent(mouseMove){
   if(this.sostenido){
      deslizar = (this._y - this._parent.barra._y);
      deslizar = int(deslizar);
      this._parent._parent[objetivo]._y = -(razon * deslizar) / 2;
   }
}


Donde miro para corregirlo?

gracias!

Por Maia

32 de clabLevel



Genero:Femenino  

msie7
Citar            
MensajeEscrito el 08 Jul 2007 05:35 pm

Por Papoflex

63 de clabLevel



Genero:Masculino  

Diseñador Web

msie
Citar            
MensajeEscrito el 08 Jul 2007 07:10 pm
Gracias Papoflex!! Muy útil el link!
tenia que ajustar de esta manera:

on (press) {
startDrag(this, false, 0, 0, 0, 60);
this.sostenido = true;

Por Maia

32 de clabLevel



Genero:Femenino  

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.