Comunidad de diseño web y desarrollo en internet online

Scroll Horrizontal

Citar            
MensajeEscrito el 26 Feb 2007 06:03 pm
Necesito hacer un Scroll Horizontal, pero con los tipicos botones que tiene el Scroll además de la Barra desplazadora...

Alguna idea o tutorial para poder hacerlo?

Nota: que no sea un ScrollPane...

De ante mano Gracias!!!

Por crew

168 de clabLevel



 

Desde el Pais + Largo del Mundo...CHILITO Lindo

firefox
Citar            
MensajeEscrito el 01 Mar 2007 01:51 am
No se si pueda ayudarte:

http://www.cristalab.com/foros/viewtopic.php?p=244691&highlight=#244691

Por bryanisimo

664 de clabLevel



Genero:Masculino  

Geek

firefox
Citar            
MensajeEscrito el 01 Mar 2007 02:57 am
hola crew, te mando un AS que me ayudo mucho y me sirvió, una barbaridad! podes meter texto imagenes y movieClips. Haces una mascara movie clip con nom de instancia: "movMask" con el espacio donde se moverá el "movIn" que es donde pondras lo que quieras mover. Luego crearas un boton dezlizador con nomb de inst : "movScroller"
y este es el codigo:

Código :

// Define the Scroll Area
top = _root.movMask._y;
bottom = _root.movMask._y+_root.movMask._height-_root.movScroller._height;
left = _root.movMask._x;
right = _root.movMask._x+_root.movMask._width;
// Bring all objects to the Scroll Area
_root.movIn._y = top;
_root.movIn._x = left;
_root.movScroller._y = top;
_root.movScroller._x = right;
// When the Scroller is Dragged
_root.movScroller.onMouseDown = function() {
   if (hitTest(_root._xmouse, _root._ymouse)) {
      startDrag("_root.movScroller", false, right, top, right, bottom);
   }
};
// when the Scroller is Released
_root.movScroller.onMouseUp = function() {
   stopDrag();
};
// Update Position every 10 milliseconds
setInterval(Update, 10);
function Update() {
   var ratio = (_root.movIn._height-_root.movMask._height)/(_root.movMask._height-_root.movScroller._height);
   _root.movIn._y = ((_root.movMask._y-_root.movScroller._y)*ratio)+_root.movMask._y;
}

Por GA

26 de clabLevel



Genero:Femenino  

msie

 

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