I have 3 sprites: img1spr, img2spr, and img3spr. Inside every sprite I have some bitmaps. Every sprite has a name:
img1spr.name=name1;
img2spr.name=name2;
img3spr.name=name3;
Now the names are changing every time a function executes and what I want to know if there is a way to do something like:
getChildByName("name1").getChildAt(0)
That means that I want to find the sprite named name1, and then to find the first child inside it, or otherwise, to count the number of elements inside name1 with numChildren.
Is there a way to do this?