2 Replies Latest reply on Mar 26, 2009 9:44 AM by ramace

    How to eval() in Flex

    ramace
      I have a requirement like this ...

      Lets say we have

      var abc:String = "name";

      Also I have a object from which I can fetch the name like this ..

      var xyz:String = event.currentTarget.something.name;

      Now, my requirement is that, I want to achieve the same thing using something like this...

      var xyz:String = event.currentTarget.something.abc ---- I know this doesn't make sense, but just to explain my requirement.

      Something similar to what we achieve using eval() in javascript.

      Any help is appreciated ...

      Thanks in advance....