composer, scene, destroy, event
For the destroy event, event.name is the string value "destroy". It can be accessed from the event listener for destroy events that are dispatched to scene objects.
local composer = require( "composer" )
local scene = composer.newScene()
function scene:destroy( event )
print( event.name )
scene:addEventListener( "destroy" )
© 2017 Corona Labs Inc. All Rights Reserved. (Last updated: 17-Jul-2018)
Help us help you! If you notice a problem with this page, please report it.
Report an Issue