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
};
