Type event Dispatch chain None Revision Current Public Release (2014.2189) Keywords finalize Sample code /CoronaSDK/SampleCode/ See also
This event is delivered to a display object when an object is removed from the scene, e.g. via object:removeSelf().
This is useful if you have cleanup that needs to be performed when the associated object is removed from the scene.
local object = display.newImage( "ball.png" ) function object:finalize( event ) print( "Finalizing:", self ) end object:addEventListener( "finalize" ) object:removeSelf()