Lingo Dictionary > D-F > duplicateFrame |
![]() ![]() ![]() |
duplicateFrame
Syntax
duplicateFrame
Description
Command; duplicates the current frame and its content, inserts the duplicate frame after the current frame, and then makes the duplicate frame the current frame. This command can be used during Score generation only.
The duplicateFrame
command performs the same function as the insertFrame
command.
Example
When used in the following handler, the duplicateFrame
command creates a series of frames that have cast member Ball in the external cast Toys assigned to sprite channel 20. The number of frames is determined by the argument numberOfFrames
.
on animBall numberOfFrames beginRecording sprite(20).member = member("Ball", "Toys") repeat with i = 0 to numberOfFrames duplicateFrame end repeat endRecording end
![]() ![]() ![]() |