I am having a problem that doesn't seem too difficult but is proving to be the bane of my existence. I have an XML file being imported and being used to populate a number of comboBoxes. Basically, here is my xml:
PHP Code:
<xml>
<firstNode id = "Text">
<secondNode id = "More Text">
<thirdNode id = "Even More Text">
<fourthNode = "111">
<stuff1></stuff1>
<stuff2></stuff2>
<stuff3></stuff3>
<stuff4></stuff4>
</fourthNode>
</thirdNode>
</secondNode>
</firstNode>
</xml>
The whole process is working fine until I get to the fourthNode. I am using the @id for each node as the labels for each comboBox. The fourthNode, no matter what I do, populates in the comboBox as [object Object]. Here is how they are being added to the comboBoxes:
PHP Code:
for each(var fourth:XML in myXML..thirdNode.(@id == my_cb3.selectedLabel).fourthNode){
var obj:Object = new Object;
obj.label = fourth.@id;
myArray.push(obj);
}
my_cb4.dataProvider = new DataProvider(myArray);
This process works fine for every instance before the fourthNode. I have tried "fourth.@id.toString();", I have tried creating a new string variable and using that as the obj.label, ect. If anyone has any ideas I would really appreciate it. Thanks.