event.name

Type String
Event enterFrame
Revision Release 2024.3703
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 )