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!
}
}