Comunidad de diseño web y desarrollo en internet online

cambiar scroll de vertical a horizonal

Citar            
MensajeEscrito el 08 Oct 2007 08:44 pm
hola gente...
tengo un codigo y quiero pasar el scroll de vertical a horizontal...pero no encuentro la forma...
alguien sabe o tiene una idea como hacerlo?

Código :

th_nav.setMask(theMask);
csillapitas = 14;
pos = 0;
dragger._x = theMask._width;
dragger.onPress = function() {
   startDrag(this, false, this._x, 0, this._x, theMask._height-this._height);
   mehet();
};
dragger.onRelease = dragger.onReleaseOutside=function () {
   stopDrag();
};
function mehet() {
   th_nav.onEnterFrame = function() {
      tavolsag = (this._height-(theMask._height/1.3))/(theMask._height-dragger._height);
      pos = -dragger._y*tavolsag;
      this._y -= (this._y-pos)/csillapitas;
   };
}


gracias[/code]

Por pelao

18 de clabLevel



 

msie
Citar            
MensajeEscrito el 09 Oct 2007 02:18 pm

Código :

th_nav.setMask(theMask);
csillapitas = 14;
pos = 0;
dragger._y = theMask._height;
dragger.onPress = function() {
   startDrag(this, false, this._y, 0, this._y, theMask._width-this._width);
   mehet();
};
dragger.onRelease = dragger.onReleaseOutside=function () {
   stopDrag();
};
function mehet() {
   th_nav.onEnterFrame = function() {
      tavolsag = (this._width-(theMask._width/1.3))/(theMask._width-dragger._width);
      pos = -dragger._x*tavolsag;
      this._x -= (this._x-pos)/csillapitas;
   };
}

Por Teseo

SWAT Team

1780 de clabLevel

14 tutoriales

Genero:Masculino   SWAT

firefox
Citar            
MensajeEscrito el 09 Oct 2007 11:03 pm
teseo gracias por responder,
probe eso y no me funciono aqui te dejo la galeria completa asi lo puedes revisar y depaso por ahi te sirve para algun proyecto futuro tuyo.

www.sip.com.ar/galeria.rar

Saludos y muchas gracias.-
Pela

Por pelao

18 de clabLevel



 

msie
Citar            
MensajeEscrito el 11 Oct 2007 08:29 am
Este es el fla corregido.
Creí que ese script estaba en el raiz pues no especificabas otra cosa.

En tu fla, había que cambiar la forma de la máscara y esto:

Código :

thb._y = i%1*50;
thb._x = Math.floor(i/1)*50;

en la function makeButtons()
Lo demás queda como estaba al principio.

Por Teseo

SWAT Team

1780 de clabLevel

14 tutoriales

Genero:Masculino   SWAT

firefox

 

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