I'm currently working on a snake clone and I create body parts each time it eats food. So, I create a new Bitmap for each new body part. However, when I lose, I need to erase every parts I created except the head and tail of the snake.
I use stage:removeChildAt method to remove everything from the scene. Does it frees memory of those objects or do I have to do something special with them ?