Clear all objects from screen

Hello,

I’m trying to create a clear button to remove all objects on the screen. I have created a group and inserted all the objects I wanted to be removed into it. Using Jon Beebe’s cleanGroup class, I remove the whole group and it works fine. However when I lose the level, any leftover objects from the previous show up on the next level, as if they are not inserted into a group. How do I fix this? Do I need to recreate the group I removed after it is removed and if so, how do I do this? Does anyone have a better way to remove all objects from the screen? [import]uid: 47722 topic_id: 13977 reply_id: 313977[/import]

remove all object and nil them [import]uid: 16142 topic_id: 13977 reply_id: 51440[/import]

remove all items from the display.getCurrentStage() which is the main group holding all display objects and groups.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13977 reply_id: 51467[/import]