I made an app that when you touch the screen it adds a sprite that is an instances of a class that extends rotateScalable (so each one is draggle).
after 5 have been added, I set it so it wont add anymore when you touch, and you can just move them around.
I do this by adding 1 to an array, and then say if array.length > 5 add one if not.... There is a reason for it being an array, and not a variable.
If you double tap one of them, I remove them, so then there is less than 5 on the table. I want to be able to tap again and add another, but, when I remove them, Im not able to remove it from the array and so it still thinks there are 5.
This is because the remove is done by the rotateScalable extended class, and not the document class where the array is.
Is there any way to fix that? Or get around it.
And again, I do need that array in the document class, it does a lot of other stuff.
