[Resolved] Storyboard: What to remove?

Prior to calling storyboard.removeScene() on a scene what must I manually remove, stop, etc. ?

(Assume everything is local to said scene.)

(e.g. Must I unload audio manually?)

My structure is such that I aim to (almost) always completely unload the previous scene. I’ve read that unloading a module removes a vast majority of things, I just would like to clarify what I must manage myself.

How about in the case of only purging, but not completely removing a scene? [import]uid: 73951 topic_id: 28421 reply_id: 328421[/import]

You have to manually remove audios. listeners and timers. Also you have to remove global variables. When a scene is purged, it’s “view” display group is removed automatically and everything else have to be removed manually.

Same thing in the case of purging. RemoveScene will do the same thing as purgeScene and then proceed to unload the module from memory. [import]uid: 65687 topic_id: 28421 reply_id: 114697[/import]

Storyboard will remove anything inserted into the scene’s view (the display group called “group” in the handler functions)

You are responsible for any timers, transitions, audio or anything with a call back function, like an incomplete network.request() call that could fire after the scene has been removed. You also have to remove any display objects that you do not put into “group” that you do not want to exist after the scene exits. [import]uid: 19626 topic_id: 28421 reply_id: 114698[/import]

Thank you both for you prompt response(s).

@robmiracle

That’s what I thought, but I had been used to managing everything manually (prior to storyboard) that I wanted to ensure I wasn’t needlessly replicating any “built-in” functionality.
PS: Thanks for your contributions here. I’ve noticed that you’re always concise, ask relevant questions (especially when it comes to discovering and solving bugs and other issues), and are very helpful. [import]uid: 73951 topic_id: 28421 reply_id: 114703[/import]

–Moved to a separate thread.-- [import]uid: 73951 topic_id: 28421 reply_id: 114808[/import]