1 Reply Latest reply on Mar 31, 2009 9:42 AM by peteandrus

    Dynamic access to properties?

    peteandrus
      suppose i have a class A with properties: "user", "group", and "siteName";
      consider the following code:

      var test:A = new A();
      var array:Array = new Array();
      array.push("siteName");
      array.push("user");
      array.push("group");

      is it possible to access the values in the object test by using the property names in array?