Comunidad de diseño web y desarrollo en internet online

Ayuda con scroll de carga XML en FLash

Citar            
MensajeEscrito el 17 Sep 2008 10:20 pm
:shock:
Buenas tardes:

Necesito urgente y desesperadamente ayuda con este tema. Alguien puede darme solución?

Baje un archivo de internet que carga a través de xml imágenes y les asigna un código, y permite desplazarse a través de los contenidos por medio de una barra deslizadora y funciona perfectamente. Necesito que además de esa barra deslizadora existan dos botoncitos a cada lado que sirvan para mover las imágenes tmabién y que la barra se mueva automaticamente... por favor su ayuda Urgente. Muuchas gracias.. Este es el código que carga la información y que hace que el scroll funcione:

meinXML = new XML();
meinXML.ignoreWhite = true;
meinXML.load("xml/elizabeth_wall.xml");
meinXML.onLoad = function(_status) {
if (_status) {
tempxml = meinXML.firstChild.childNodes;
anzahl = tempxml.length;
//
var space = 3;
for (var i = 0; i<tempxml.length; i++) {
//trace(tempxml[i].attributes.url);
//trace(tempxml[i].attributes.titel);
//trace(tempxml[i].attributes.clave);
//trace(tempxml[i].firstChild);
//trace("-----------\n")

var item = liste_mc.attachMovie("meinClp", "meinClp"+i, i);

item._x = (item._width+space)*i;
item.clave_txt.text = tempxml[i].attributes.clave;
item.thumbHolder.loadMovie(tempxml[i].firstChild);

item.btn.ID = i;
item.btn.onRollOver = function() {
this.gotoAndStop(2);
};
item.btn.onRollOut = function() {
this.gotoAndStop(1);
};
item.btn.onPress = function() {
trace(this.ID);
};

}

delete meinXML;
}
};

targX = 0;
abstandDragger = -07
dragger._y = masken_mc._height+abstandDragger;


dragger.onPress = function() {
startDrag(this, false, 0, this._y, masken_mc._width-this._width, this._y);
}

dragger.onRelease = dragger.onReleaseOutside=function () {
stopDrag();
};


liste_mc.setMask(masken_mc);
liste_mc.onEnterFrame = function() {
scrollAmount = (this._width-(masken_mc._width/1.3))/(masken_mc._width-dragger._width);
targX = -dragger._x*scrollAmount;
this._x -= (this._x-targX)/4;
// 8 = Geschwindigkeit
};

Por julian.angel

0 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Sep 2008 09:18 pm
queres utilizar los botoncitos en vez del scroll?

Por ironeric23

Claber

407 de clabLevel



Genero:Femenino  

mozilla
Citar            
MensajeEscrito el 22 Sep 2008 08:30 am
Debes poner el código entra tags de Action Script, sino no hay forma de leerlo:

Código :

[as]
//---Pon los códigos aquí
[/as]

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox

 

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