User Guide
300 Chapter 12: Methods
Parameters
intPosn
Optional. An integer that specifies the Cast window for the duplicate cast member. If
omitted, the duplicate cast member is placed in the first open Cast window position.
Example
This statement makes a copy of cast member Desk and places it in the first empty Cast
window position:
-- Lingo syntax
member("Desk").duplicate()
// JavaScript syntax
member("Desk").duplicate();
This statement makes a copy of cast member Desk and places it in the Cast window at
position 125:
-- Lingo syntax
member("Desk").duplicate(125)
// JavaScript syntax
member("Desk").duplicate(125);
See also
Member
duplicateFrame()
Usage
-- Lingo syntax
_movie.duplicateFrame()
// JavaScript syntax
_movie.duplicateFrame();
Description
Movie method; 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 method can be used
during Score generation only.
This method performs the same function as the
insertFrame() method.
Parameters
None.
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.
-- Lingo syntax
on animBall(numberOfFrames)
_movie.beginRecording()
sprite(20).member = member("Ball", "Toys")
repeat with i = 0 to numberOfFrames