firefrank
09-25-2008, 04:30 PM
:confused:
I need for the Tree Component to expand when the text, the icon, or the disclosure triangle is clicked on.
Right now, only the disclosure triangle opens up a branch.
I have tried looking for the Tree.class or looking in the component, but I cannot find where the code is.
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
theTree.dataProvider = this.firstChild;
}
//LOAD XML
xml.load("tree.xml"); //loading
var treeL:Object = new Object();
treeL.change = function() {
var item = theTree.selectedItem;
var earl = item.attributes.url;
if(earl) {
loadMovie(earl, _root.conteudo); //Load content
}
}
theTree.addEventListener("change",treeL); //
// PERSONALIZAÇÃO DO MENU TREE
theTree.vScrollPolicy = "auto"; // Auto scroll if necessary
theTree.setStyle("fontSize", "14"); // font size
theTree.setStyle("fontFamily", "Arial"); // Font type
theTree.setStyle("backgroundColor", "0xE4E2E3"); // Bg color
theTree.setStyle("borderStyle", "none"); //Border
theTree.setStyle("color", "0×E3E3E3"); // color
theTree.setStyle("rollOverColor", "0xCAC6C9"); //mouseover color
theTree.setStyle("selectionColor", "0xBBBBBB"); //selected color
please help me if you have the knowledge, im on a deadline and i dont think the final users will adapt to the disclosure triangle.
I need for the Tree Component to expand when the text, the icon, or the disclosure triangle is clicked on.
Right now, only the disclosure triangle opens up a branch.
I have tried looking for the Tree.class or looking in the component, but I cannot find where the code is.
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
theTree.dataProvider = this.firstChild;
}
//LOAD XML
xml.load("tree.xml"); //loading
var treeL:Object = new Object();
treeL.change = function() {
var item = theTree.selectedItem;
var earl = item.attributes.url;
if(earl) {
loadMovie(earl, _root.conteudo); //Load content
}
}
theTree.addEventListener("change",treeL); //
// PERSONALIZAÇÃO DO MENU TREE
theTree.vScrollPolicy = "auto"; // Auto scroll if necessary
theTree.setStyle("fontSize", "14"); // font size
theTree.setStyle("fontFamily", "Arial"); // Font type
theTree.setStyle("backgroundColor", "0xE4E2E3"); // Bg color
theTree.setStyle("borderStyle", "none"); //Border
theTree.setStyle("color", "0×E3E3E3"); // color
theTree.setStyle("rollOverColor", "0xCAC6C9"); //mouseover color
theTree.setStyle("selectionColor", "0xBBBBBB"); //selected color
please help me if you have the knowledge, im on a deadline and i dont think the final users will adapt to the disclosure triangle.