User Guide
334
When the instructions you’ve specified for the keyUpScript property are no longer appropriate,
turn them off by using the statement
set the keyUpScript to empty.
Examples
The following statement sets keyUpScript to if the key = RETURN then go the frame + 1.
When this statement is in effect, the movie always goes to the next frame whenever the user
presses the Return key.
the keyUpScript = "if the key = RETURN then go to the frame + 1"
The following statement sets keyUpScript to the custom handler myCustomHandler. A Lingo
custom handler must be enclosed in quotation marks when used with the
keyUpScript property.
the keyUpScript = "myCustomHandler"
See also
on keyUp
label()
Syntax
label(expression)
Description
Function; indicates the frame associated with the marker label specified by expression. The
term
expression should be a label in the current movie; if it’s not, this function returns 0.
Examples
This statement sends the playhead to the tenth frame after the frame labeled Start:
go to label("Start") + 10
This statement assigns the frame number of the fourth item in the label list to the variable
whichFrame:
whichFrame = label(the labelList.line[4])
See also
go, frameLabel, labelList, marker(), play
labelList
Syntax
the labelList
Description
System property; lists the frame labels in the current movie as a Return-delimited string (not a
list) containing one label per line. Labels are listed according to their order in the Score. (Because
the entries are Return-delimited, the end of the string is an empty line after the last Return. Be
sure to remove this empty line if necessary.)
Examples
This statement makes a list of frame labels in the content of the field cast member Key Frames:
member("Key Frames").text = the labelList