un modo può essere questo

in un frame della timeline principale (sulla root) scrivi:
codice:
for (var a in _root) {
    if (typeof (_root[a]) == "object" && typeof(_root[a].text) !="string") {
        b++;
    }
}
trace("ci sono n°:"+b +" pulsanti");


tiger