User Guide
Lingo Dictionary 67
The fourth argument can have 1 of these 4 values:
• #alert - causes the handler to be triggered by the alert command.
• #movie - causes the handler to be triggered by a file not found error while perforoming a go to
movie
command.
• #script - causes the handler to be triggered by a script error.
• #safeplayer - causes the handler to be triggered by a check of the safePlayer property.
Depending on the Lingo within it, the
on alertHook handler can ignore the error or report it in
another way.
Example
The following statement specifies that the parent script Alert is the script that determines whether
to display alerts when an error occurs. If an error occurs, Lingo assigns the error and message
strings to the field cast member Output and returns the value 1.
on prepareMovie
the alertHook = script "Alert"
end
-- parent script "Alert"
on alertHook me, err, msg
member("Output").text = err && msg
return 1
end
See also
safePlayer
alignment
Syntax
member(whichCastMember).alignment
the alignment of member whichCastMember
Description
Cast member property; determines the alignment used to display characters within the specified
cast member. This property appears only to field and text cast members containing characters, if
only a space.
For field cast members, the value of the property is a string consisting of one of the following: left,
center, or right.
For text cast members, the value of the property is a symbol consisting of one of the following:
#left, #center, #right, or #full.
The parameter
whichCastMember can be either a cast name or a cast number.
This property can be tested and set. For text cast members, the property can be set on a per-
paragraph basis.
Examples
This statement sets the variable named characterAlign to the current alignment setting for the
field cast member Rokujo Speaks: