0 Replies Latest reply on Nov 6, 2007 9:52 AM by kedward

    Can AS do reflection and method invocation?

    kedward
      Hello,

      Can actionscript do reflection, instantiation, and subsequent invocation of a method, as in java ?

      this.incidentVO=incident;
      Class c = IncidentRules.class;
      Class[] parameterTypes = null;
      Method methodName;

      methodName = c.getMethod("validate"+commandName,parameterTypes);
      methodName.setAccessible(true);
      methodName.invoke(this,null);