Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
John Hall #1
Tree control parent node label
The following code works fine (except the part in caps, which isn't code).
Suggestions?
private function changeEvt(event:Event):void {
var theData:String = ""
if (event.currentTarget.selectedItem.@value) {
theData = " Data: " + event.currentTarget.selectedItem.@value;
}
trace(event.currentTarget.selectedItem.@label + theData);
//trace(NEED PARENT NODE LABEL HERE IF IT EXISTS);
}
John Hall Guest
-
Tree RTE when closing empty node
I'm using Flex 2. I have a tree with an XML list collection as data provider. I have used isBranch="true" in the XML to indicate empty nodes that... -
remove tree node
This sounds kind of stupid but i've trying to remove a node from a tree... and I can't lol The treeDataProvider originates in a XML feed and I try... -
Cell Renderer for Tree Node
How can I programmatically set a cell renderer for a tree node? Can anyone provide an example? -
tree node
Hi, I have a tree with say parent1 and child1 . To access the label of either child or parent I am using... -
Search non-XML tree for a node and highlight it?
(using the non-XML FTree component that came with the "Flash UI Components Set 2" component set...) Is there a way to search the (non-XML) FTree... -
John Hall #2
Tree control parent node label
The following code works fine (except the part in caps, which isn't code).
Suggestions?
private function changeEvt(event:Event):void {
var theData:String = ""
if (event.currentTarget.selectedItem.@value) {
theData = " Data: " + event.currentTarget.selectedItem.@value;
}
trace(event.currentTarget.selectedItem.@label + theData);
//trace(NEED PARENT NODE LABEL HERE IF IT EXISTS);
}
John Hall Guest
-
John Hall #3
Re: Tree control parent node label
OK. So I stopped looking too soon. In my case:
trace(browserTree.selectedItem.parent().@label);
John Hall Guest



Reply With Quote

