2 Replies Latest reply on Jul 21, 2008 10:15 AM by pranay.kuru

    Help with ynamic variable evaluation

      Hi guys,

      If someone can point me out to how to evaluate variables as part of an expression.

      for ex:


      basically how do i write the equivalent of eval in flex/actionscript

      Thanks a ton,

        • 1. Re: Help with ynamic variable evaluation
          Gregory Lafrance Level 6
          It might be this:

          • 2. Re: Help with ynamic variable evaluation
            pranay.kuru Level 1
            Thanks Greg, saved my day................
            1 more question

            My flex httpservice returns an xml file in the "object" resultFormat.
            How could I get the count of all childNodes of an object in that returned object tree.

            For example, in the xml file below:

            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
            <title>Edge Page Views, in Page Views per Second</title>
            <xLabel>startdatetime</xLabel> <y1Label>sum(pageviews)</y1Label>
            <title>Total Bandwidth, in Mbits per Second</title>

            The first series element has 4 children
            I am able to get the number of data elements as: "resultObj.reporting.series[0].data.length"
            How do I effectively retreive: "resultObj.reporting.series[0].childNodes().length"
            Apparently this does'nt work, I also tried Nodes, children().

            Any documentation or help with this would be awesome

            Thanks a ton