event.name

Type String
Event enterFrame
Revision 2017.3179
Keywords enterFrame, name

Overview

The value of event.name is "enterFrame" when used with the Runtime:addEventListener() method to call the event listener function every frame.

Example

local function myListener( event )
    print( "Listener called with event of type " .. event.name )
end
Runtime:addEventListener( "enterFrame", myListener )