How to get the number of children in a displayGroup in corona?

By | January 24, 2012

Here is a way to get the number of children in a displayGroup in corona.
[java]
local value = mygroup.numChildren
print ("number of children in mygroup : "..value);
[/java]
Each children ca be accessed via the child index.

Leave a Reply

Your email address will not be published. Required fields are marked *