1 Reply Latest reply on Aug 18, 2007 12:45 AM by Hasenstein

    Iteration - how to find out if an object is a button?

      Using "for (var i in _parent) {}" I'd like to find out all button objects and call "i.disable()". However, I have the problem to be unable to tell if any "i" is a button, because instanceof does not work, and all other methods I tried, including simply adding "if (i.enabled != undefined)" only resulted in compile errors.

      Help appreciated...