Mi problema es el siguiente:
He realizado el Tutorial Tree, en lazandolo con su archivos XML y todo funciona perfectamente e incluso he logrado ponerlo transparente con mi poca experiencia, el problema viene a la hora de configurar la barra de desplazamiento no se como hacerlo este es el código que tengo:
stop();
//Cargamos el archiov Categoria.xml
xmlTree = new XML();
xmlTree.ignoreWhite = true;
xmlTree.onLoad = function(success) {
if (success) {
llenarTree();
} else {
trace("No se pudo cargar el XML");
}
};
xmlTree.load("http://Animaciones/Categorias.xml");
VerCategoria.setStyle("borderStyle", "none");
VerCategoria.setStyle("scrollColor","0xFF0000");
VerCategoria.setStyle("fontFamily","Comic Sans MS");
VerCategoria.setStyle("color","0xFFFFFF");
function llenarTree() {
VerCategoria.setStyle("openEasing", mx.transitions.easing.Back.easeOut);
VerCategoria.dataProvider = xmlTree;
VerCategoria.addEventListener("change", alSeleccionar);
//ACCIONES QUE CREAN LA TRANSPARENCIA DEL ARBOL SIN AFECTAR SUS PROPIEDADES DE SELECCION
_global.styles.ScrollSelectList.backgroundColor = undefined;
mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function (VerCategoria:MovieClip, newClr:Number): Void {
VerCategoria.clear();
if (newClr == undefined)
VerCategoria.beginFill(0xABCDEF, 0);
else
VerCategoria.beginFill(newClr);
VerCategoria.vScrollPolicy
VerCategoria.drawRect(1, 0, this.__width, this.__height);
VerCategoria.endFill();
VerCategoria._width = this.__width;
VerCategoria._height = this.__height;
}
//FIN ACCIONES
}
Saludos...
