2 Replies Latest reply on Jul 17, 2007 5:08 PM by unix0405

    Using proxy methods

    unix0405
      I am trying to dynamically create/modify properties of a object, who's properties i will not know until runtime. i'd like to be able to use the getProperty/setProperty methods as public methods of the dynamic object. however, i cant seem to find a way to do this.

      i'd like to be able to write:

      var myProperty:String = "someDynamicallyGeneratedString";
      myObj.getProperty(myProperty);

      instead of:

      myObj.myProperty;

      in the former, i am able to call any property i want given the proper context. in the latter, i am stuck with having to code the name of the property in the code. i dont know if this is possible, but thought i'd ask here in case there is a solution. any help is appreciated.