Lingo Dictionary > G-K > handlers() |  |

handlers()

Syntax

    scriptObject.handlers()

Description

This function returns a linear list of the handlers in the given `scriptObject`. Each handler name is presented as a symbol in the list. This function is useful for debugging movies.

Note that you cannot get the handlers of a script cast member directly. You have to get them via the `script` property of the member.

Example

This statement displays the list of handlers in the child object RedCar in the Message window:

    put RedCar.handlers()
    -- [#accellerate, #turn, #stop]

Example

This statement displays the list of handlers in the parent script member CarParentScript in the Message window:

    put member("CarParentScript").script.handlers()
    -- [#accellerate, #turn, #stop]
    handler(), script