Find all of a class type (0)
May 6th, 2009 by terrypaton, under Library.
Useful, and surprisingly I haven’t used this before, I thought I better make a note of it in case I forget
var n:int = this.numChildren
while (n–) {
var _btn:BtnClass = this.getChildAt(n )) as BtnClass
if (_btn != null) {
// the object is an instance of BtnClass! Yay!
}
}





