1 Reply Latest reply on Jan 5, 2007 5:34 PM by ntsiii

    Introspection

    Cédriic
      I have a class A such that :
      A {
      public static const test:String = "myTest";
      public function A() {}
      }

      At first, I don't know the name of the variable and once i got it I want to get the value "myTest" of this variable from class A.
      Basically, I did :
      b = "test";
      var result:String = (new A())[ b ]

      But It seems it does not work. I got an #1069 error which tells me that the test property has not been found in A. How can I deal with it please ?

      Thanks for your answers !