1 Reply Latest reply on Jan 29, 2008 6:24 PM by ntsiii

    enable/disable components dynamically

      hi there!
      i'm starting using flex during these days and i'm having some major fun with it!

      Now my problem is this: say that i have a list of components' id taken from a database (i.e. a list in this form ["button1", "myCoolTreeMenuItem", "...", ecc]). It can also be an xml-style list, that's not the point. I have a "generic" list of components' id.

      What i wanna do now is disabling components given that list. Is there a way to achieve this? In java i wrote a method that inspect a class' attributes and call dynamic "setEnabled()" method on the component with reflection mechanisms.

      Is it possible to do something similar in flex/actionscript?