0 Replies Latest reply on Dec 3, 2009 10:11 AM by FlexCoder2010

    e4x filtering with a variable?


      I have an XML structure that gets built dynamically.  Nodes are constructed with a number appending the node name and the number of these nodes depends on values in a database.


      The structure looks like this:  <RootNode>

                                                        <Item1 />

                                                        <Item2 />

                                                        <Item3 />      etc...


      Now I want to access a particular node using a variable.


      For example:

      var i:int = 2;



      but this is not working.  How can I create an E4x expression that appends a variable value onto a node name in the filter expression?