forEach(callback, callbackContext, checkExists, args)
Call a function on each child in this group. Additional arguments for the callback can be specified after the checkExists parameter. For example, Group.forEach(awardBonusGold, this, true, 100, 500)
would invoke awardBonusGold function with the parameters (child, 100, 500). Note: This check will skip any children which are Groups themselves.
Parameters
Name Type Argument Default Description callback function The function that will be