Lingo Dictionary > A-C > beginRecording |
![]() ![]() ![]() |
beginRecording
Syntax
beginRecording
Description
Keyword; starts a Score generation session. Only one update session in a movie can be active at a time.
Every beginRecording
keyword must be matched by an endRecording
keyword that ends the Score generation session.
Example
When used in the following handler, the beginRecording
keyword begins a Score generation session that animates the cast member Ball by assigning the cast member to sprite channel 20 and then moving the sprite horizontally and vertically over a series of frames. The number of frames is determined by the argument numberOfFrames
.
on animBall numberOfFrames beginRecording horizontal = 0 vertical = 100 repeat with i = 1 to numberOfFrames go to frame i sprite(20).member = member "Ball" 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
endRecording
, updateFrame, scriptNum, tweened
![]() ![]() ![]() |