I have a heterogeneous FlxGroup contains: 10 FlxSprite and 4 FlxText. I add all objects with add(obj) function and their z-indexes determined by add function.
I want to change z-index values of objects in my FlxGroup dynamically while program is running (ex: With mouse click).
I tried things like:
- this.setChildIndex(object, i) but there is no function like this
- this.add(object) tried to add object which is already added