How to dynamically change comboboxes value based on other combobox in AS3 flash
Posted
by Mirage
on Stack Overflow
See other posts from Stack Overflow
or by Mirage
Published on 2010-06-01T05:50:14Z
Indexed on
2010/06/01
5:53 UTC
Read the original article
Hit count: 171
actionscript-3
|combobox
I have one xml file like below
<tree>
<branch1><node1/><node2/><node3/><branch1>
<brach2><node1/><node2/><node3/><branch1>
<branch3><node1/><node2/><node3/><branch1>
<branch4><node1/><node2/><node3/><branch1>
</tree>
I have one combobox which is populated with
branch1
branch2
branch3
Now i want that when branch 1 is selected then combobox2 should automatically loads with
node1
node2
node3
My CUrrent code is
for each(var element:XML in testXML.elements()) {
comboFar.addItem({label:element.name(),label:element.name()});
}
© Stack Overflow or respective owner