One recommended way to store information that is common to multiple scenes is to place it in the storyboard table itself.
Here is an example:
For my navigation elements (which are pretty much common to all scenes) I would like to use the new image sheet capabilities that were recently introduced. Something like…
[blockcode]storyboard.navigationImageSheet = graphics.newImageSheet( filename, [baseDir,] options )[/blockcode]
… called once at startup. I would then be able to reference storyboard.navigationImageSheet from all the scenes. Keeping in mind that I am only using this as an example, I now want to clean up references prior to exiting (or pausing) the application. How can this be done?
I would like to be able to add an event listener for “exitStoryboard” so that I can set storyboard.navigationImageSheet to nil prior to the storyboard being disposed.
Does it make sense to add some additional events for the storyboard lifecycle? Or, since the app is closing anyway, should I not worry about properly releasing everything since the memory should be freed anyway?
I tried accessing storyboard from the system applicationExit event but, by that time, the storyboard has already been disposed of… [import]uid: 96955 topic_id: 23306 reply_id: 323306[/import]