286
halt
Syntax
halt
Description
Command; exits the current handler and any handler that called it and stops the movie during
authoring or quits the projector during run time from a projector.
Example
This statement checks whether the amount of free memory is less than 50K and, if it is, exits all
handlers that called it and then stops the movie:
if the freeBytes < 50*1024 then halt
See also
abort
,
exit
,
pass
,
quit
handler()
Syntax
scriptObject
.handler(#
handlerSymbol
)
Description
This function returns
TRUE
if the given
scriptObject
contains a handler whose name is
#
handlerSymbol
, and
FALSE
if it does not. The script object must be a parent script, a child
object, or a behavior.
Example
This Lingo code invokes a handler on an object only if that handler exists:
if spiderObject.handler(#pounce) = TRUE then
spiderObject.pounce()
end if
See also
handlers(), new(), rawNew(), script
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.
Examples
This statement displays the list of handlers in the child object RedCar in the Message window:
put RedCar.handlers()
-- [#accelerate, #turn, #stop]
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...