I'm trying to use EX4 built in looping to find the length of a list of items.
here is the xml:
Code:
<display name="image1" type="image">
<src>dev/img/homeGroup1.jpg</src>
</display>
<display name="image2" type="image">
<src>dev/img/homeGroup2.jpg</src>
</display>
<display name="image3" type="image">
<src>dev/img/homeGroup3.jpg</src>
</display>
<display name="image4" type="image">
<src>dev/img/homeGroup4.jpg</src>
</display>
Actionscript Code:
var max:Number = config..*.( attribute( "type" ) == "image")[0].length();
Why would the above not work.