Ok, So I've made some headway, but am slightly confused on one thing:
XML:
<treeMenu>
<item txt="1">
<item txt="a">
<item txt="a1">
<item txt="a1-1"/>
<item txt="a1-2"/>
</item>
<item txt="a2">
<item txt="a2-1">
<item txt="a2-a1">
<item txt="a2-a2"/>
</item>
</item>
</item>
</item>
</item>
</treeMenu>
With the above xml file, I'm able to decipher which nodes contain Complex Content, which in-turn gives me every parent node in the file. However, for some reason when I trace those Booleans i receive "false" for any parent node that contains only one child. Here's my code:
AS3:
var btnXML:XML = new XML(e.target.myXML);
var btnList:XMLList = btnXML..button;
for each(btnXML in btnList){
trace(btnXML.@id + " - " + btnXML.button.hasComplexContent());
}
trace output:
1 - true
a - true
a1 - true
a1-1 - false
a1-2 - false
a2 - true
a2-1 - true
a2-a1 - false : should be true
a2-a2 - false