User Guide

698
Example
When used in the following handler, the updateFrame command enters the changes that have
been made to the current frame and moves to the next frame each time Lingo reaches the end of
the repeat loop. The number of frames is determined by the argument
numberOfFrames.
on animBall numberOfFrames
beginRecording
horizontal = 0
vertical = 300
repeat with i = 1 to numberOfFrames
go to frame i
sprite(20).memberNum = member("Ball").number
sprite(20).locH = horizontal
sprite(20).locV = vertical
sprite(20).type = 1
sprite(20).foreColor = 255
horizontal = horizontal + 3
vertical = vertical + 2
updateFrame
end repeat
endRecording
end
See also
beginRecording, endRecording, scriptNum, tweened
updateLock
Syntax
the updateLock
Description
Movie property; determines whether the Stage is updated during Score recording (FALSE) or
not (
TRUE).
You can keep the Stage display constant during a Score recording session by setting updateLock
to
TRUE before Lingo updates the Score. If updateLock is FALSE, the Stage updates to show a new
frame each time the frame is entered.
You can also use
updateLock to prevent unintentional Score updating when leaving a frame, such
as when you temporarily leave a frame to examine properties in another frame.
Although this property can be used to mask changes to a frame during run time, be aware that
changes to field cast members appear immediately when the content is modified, unlike changes
to location or members with other sprites, which are not updated until this property is turned off.
updateMovieEnabled
Syntax
the updateMovieEnabled
Description
System property; specifies whether changes made to the current movie are automatically saved
(
TRUE) or not saved (FALSE, default) when the movie branches to another movie.
This property can be tested and set.