Hi.
I’ve been reading up on Corona and testing my first app. It seems the best thing to do when changing a scene using director is to first delete the images loaded into the current scene.
However, I create the groups and images on the current scene with a Function. To keep down memory I make them local to the function. When the player clicks a button to change scenes, I cannot delete the group images because they cannot be accessed outside the function which created them.
Is the only answer to make all images global?
I was referring to the example code from Ghosts and Monsters and there’s a function at the bottom for adding code to delete audio, but no example code for removing images are in any of Beebe’s example code. So does that mean it does not matter?
Thanks. [import]uid: 10389 topic_id: 4849 reply_id: 304849[/import]
Add the images to the localGroup and the director will remove then for you! [import]uid: 9371 topic_id: 4849 reply_id: 15624[/import]
Awesome thanks! [import]uid: 10389 topic_id: 4849 reply_id: 15890[/import]