Anyone have any idea to this problem?
Anyone else know how to loop this XML?
Just off the top of my head...
Use E4X syntax in your loop to filter what you need to process.
var lengths:uint = line.geom.inner.length();
var innerXml:XML = line..inner; //the two dots mean to filter for ALL nodes named "inner" within this "row" ONLY.
Now within "innerXml" you have just the nodes named "inner", and you can loop that to get the values you need.
How do you actually use E4X instead of the current XML? Does that means I need to change something else?
So I don't need this var lengths:uint = line.geom.inner.length(); anymore?
And how do I loop the innerXml?
Does anyone know about that?
Does any has any ideas pertaining to this?
E4X is simple to use on any XML you have. Look in the help docs and you will find looping examples. You basically use a for..each loop, just like an ArrayCollection.