Lingo Dictionary > D-F > duplicate member |  |

duplicate member

Syntax

    member(originalMember).duplicate()
    member(originalMember).duplicate({new})
    duplicate member original {, new}

Description

Command; makes a copy of the cast member specified by `original`. The optional `new` parameter specifies a specific Cast window location for the duplicate cast member. If the `new` parameter isn't included, the duplicate cast member is placed in the first open Cast window position.

This command is best used during authoring rather than run time because it creates another cast member in memory, which could result in memory problems. Use the command during authoring if you want the changes to the cast to be permanently saved with the file.

Example

This statement makes a copy of cast member Desk and places it in the first empty Cast window position:

    member("Desk").duplicate()

Example

This statement makes a copy of cast member Desk and places it in the Cast window at position 125:

    member("Desk").duplicate(125)