Hi,
I just swiched from storyboard to composer and I have a question about removing scenes:
Why do I need to manually remove display objects which are inserted into the scene group?
If I don’t remove them manually and just call composer.removeScene() they stay on screen.
[lua]
– Called when scene is destroyed
function scene:destroy( event )
– Remove display objects and listeners
borders:remove()
ball:remove()
swipe:removeListener()
local sceneGroup = self.view
log:log("Scene destroyed: " … composer.getSceneName( “current” ))
end
[/lua]
Daniel