Foros del Web » Creando para Internet » Flash y Actionscript »

cambiar scroll de vertical a horizontal

Estas en el tema de cambiar scroll de vertical a horizontal en el foro de Flash y Actionscript en Foros del Web. Hola a t2, baje una galeria muy interesate, pero mi diseño requiere que el scroll sea vertical y no horizontal como lo tengo actualemte en ...
  #1 (permalink)  
Antiguo 14/08/2008, 16:49
Avatar de Alvariux
Usuario no validado
 
Fecha de Ingreso: noviembre-2001
Ubicación: Yucatán México
Mensajes: 499
Antigüedad: 22 años, 5 meses
Puntos: 0
cambiar scroll de vertical a horizontal

Hola a t2, baje una galeria muy interesate, pero mi diseño requiere que el scroll sea vertical y no horizontal como lo tengo actualemte en mi .fla, alquien me puede ayudar a cambiar la orientacion de mi scroll?

Dejo el link del FLA saludos y gracias


Aqui esta mi FLA
  #2 (permalink)  
Antiguo 14/08/2008, 16:59
Avatar de Alvariux
Usuario no validado
 
Fecha de Ingreso: noviembre-2001
Ubicación: Yucatán México
Mensajes: 499
Antigüedad: 22 años, 5 meses
Puntos: 0
Respuesta: cambiar scroll de vertical a horizontal

Por si no quieren bajar el fla:



// imposta a false se non vuoi la descrizione
descriptions = true;
// box descrizione invisibile
alert._visible = false;
// effetto ease
var ease = 5;
//imposto la scala della foto grande
_root.scala_x = 90;
_root.scala_y = 110;
//imposto la barra visibile
_root.barra_stato = "true";
_root.box.useHandCursor = true;
//leggo i dati XML
thumbs = new XML();
thumbs.ignoreWhite = true;
thumbs.load("dati.xml");
// qui inserire il percorso al file .XML
thumbs.onLoad = function() {
root = this.firstChild;
total = root.childNodes.length;
displayNum = Number(root.childNodes[0].attributes.displayNum);
separation = Number(root.childNodes[0].attributes.separation);
//settings
w = 60;
h = 55;
mask._width = displayNum*(w+separation);
mask._height = h+30;
forward._x = mask._width+20;
forward._y = back._y=h/2;
mcs = [];
for (i=0; i<total; i++) {
mcs.push(i);
newThumb = thumbnailer.container.duplicateMovieClip("containe r"+i, i);
with (newThumb) {
_x = (w+separation)*i;
preloader._x = w/2;
preloader._y = h/2;
shape._width = w;
shape._height = h;
}
var image = root.childNodes[i].childNodes[0].firstChild.nodeValue;
var image1 = root.childNodes[0].childNodes[0].firstChild.nodeValue;
newThumb.image = root.childNodes[i].childNodes[0].firstChild.nodeValue;
newThumb.desc = root.childNodes[i].childNodes[1].firstChild.nodeValue;
newThumb.link = root.childNodes[i].childNodes[2].firstChild.nodeValue;
loadMovie(image1, _root.box.foto_effetto);
_root.box._xscale = _root.scala_x;
// scalo la larghezza
_root.box._yscale = _root.scala_y;
// scalo l'altezza
newThumb.onRelease();
newThumb.cont.loadMovie(image);
//carico le thumbs
newThumb.cont2.loadMovie(image);
//carico le thumbs e le scalo
newThumb.cont._xscale = 8.2;
// scalo la larghezza
newThumb.cont._yscale = 12.2;
// scalo l'altezza delle ombre associate alle immagini
newThumb.cont2._xscale = newThumb.cont._xscale;
newThumb.cont2._yscale = newThumb.cont._yscale;
newThumb.onRelease = function() {
loadMovie(this.image, _root.box.foto_effetto);
// carico l'immagine nel clip effetto
_root.box.play();
// avvio il box
_root.box._xscale = _root.scala_x;
// scalo la larghezza
_root.box._yscale = _root.scala_y;
// scalo l'altezza
};
if (descriptions) {
newThumb.onRollOver = function() {
alert.desc = this.desc;
alert._visible = true;
this._xscale = 120;
this._yscale = 120;
this._y = this._y-10;
this._x = this._x-5;
this.swapDepths(9);
};
newThumb.onRollOut = function() {
alert._visible = false;
this._xscale = 100;
this._yscale = 100;
this._y = this._y+10;
this._x = this._x+5;
};
}
}
//
var offset = total-1;
var dest = 0;
var increment = w+separation;
var ending = (total-displayNum)*(w+separation);
var lastmc = total-1;
var firstmc = 0;
back.onRelease = function() {
if (dest<0) {
dest += increment;
} else {
first = mcs[0];
for (k=0; k<total; k++) {
mcs[k] = mcs[k+1];
}
mcs[total-1] = first;
thumbnailer["container"+lastmc]._x = -(w+separation);
firstmc = lastmc;
//check whos new lastmc
for (k=0; k<total; k++) {
if (mcs[k] == (total-1)) {
lastmc = k;
}
}
}
};
forward.onRelease = function() {
if (dest>-ending) {
dest -= increment;
} else {
last = mcs[total-1];
for (k=1; k<total; k++) {
mcs[total-k] = mcs[total-k-1];
}
mcs[0] = last;
thumbnailer["container"+firstmc]._x = (displayNum)*(w+separation);
lastmc = firstmc;
//check whos new firstmc
for (k=0; k<total; k++) {
if (mcs[k] == 0) {
firstmc = k;
}
}
}
};
//movement
onEnterFrame = function () {
for (j=0; j<total; j++) {
thumbnailer["container"+j]._x += (dest+(mcs[j])*(w+separation)-thumbnailer["container"+j]._x)/ease;
}
alert._x = _xmouse;
alert._y = _ymouse;
};
};
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:24.