Hi,
How do I remove all scenes, or get a list of scenes so I can remove them.
I am using composer.
Thanks
Hi,
How do I remove all scenes, or get a list of scenes so I can remove them.
I am using composer.
Thanks
Hey,
Use composer.removeHidden() to remove all hidden scenes and then composer.removeScene( composer.getSceneName( "current” ) ) to remove the current scene.
More info under: http://docs.coronalabs.com/api/library/composer/removeHidden.html and http://docs.coronalabs.com/api/library/composer/removeScene.html / http://docs.coronalabs.com/api/library/composer/getSceneName.html
Of course, it’s bad practice to remove the current scene ( since you’ll have no scene left, thus a blank screen ). So removeHidden() suffices for any purpose. May i ask why you would want to remove *ALL* scenes?
Thanks,
alex
Hey,
Use composer.removeHidden() to remove all hidden scenes and then composer.removeScene( composer.getSceneName( "current” ) ) to remove the current scene.
More info under: http://docs.coronalabs.com/api/library/composer/removeHidden.html and http://docs.coronalabs.com/api/library/composer/removeScene.html / http://docs.coronalabs.com/api/library/composer/getSceneName.html
Of course, it’s bad practice to remove the current scene ( since you’ll have no scene left, thus a blank screen ). So removeHidden() suffices for any purpose. May i ask why you would want to remove *ALL* scenes?
Thanks,
alex