duplicate() (Member)

Usage

-- Lingo syntax
memberObjRef.duplicate({intPosn})

// JavaScript syntax
memberObjRef.duplicate({intPosn});

Description

Member method; makes a copy of a specified cast member.

This method is best used during authoring rather than during runtime; it creates another cast member in memory, which could result in memory problems.

Use this method to permanently save cast member changes with the file.

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


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_en/07_met99.htm