About requiring modules in storyboard

hello hello,

I dont really understand what happens to a module i required when i destroy the scene to go to another scene.

Lets say i call “myScene” using the storyboard and in “myScene” i require a module with the name “myData”.

The module myData contains…

  • Variables with information about the actual scene (like… sceneWitdh = 200, or sceneTime = 500)

  • 1 Function to count score.

  • 1 Listener that changes the score every x time.

What happens to this module when i use the destroyScene on myScene? is the myData module getting unloaded? or do i have to unload the myData modules manually? or if i have to unload it manually, how do i unload it?..

i hope someone can help :=)

myData is still loaded. Read this tutorial on how to unload them:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Rob

myData is still loaded. Read this tutorial on how to unload them:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Rob