It’s more a general question and less about a single actual issue. It’s a problem I, more or less, stumble over in almost every project I work on as, in the end, it’s primarily about missing functionality to modify the children of a group.
One actual situation is that I work on a game that’s kind of a long list of “blocks” containing mostly text but also buttons, images, small subhierarchies (which then are actually using a parent group of course) and the contents may change based on the players actions.
Another one is, that I’m working on a text rendering plugin and I’d like to offer a kind of wrapper object users of the plugin can use instead of Coronas text objects. But depending on the usage (f.i. if the users changes the text contents) I have to destroy the display object I internally use and create a new one and I’d love to have this just added to the very same childindex of the same parent object of the previously destroyed one.
Of course I can handle this manually by just reorganizing all children of my parent group but it’s simply not how it should be done. It’s like solving a problem that needs random access with a linked list.