copyToClipBoard()
273
The following statement copies part of the image of member Happy into part of member flower.
The part of the image copied from Happy is within rectangle(0, 0, 200, 90). It is pasted into
rectangle(20, 20, 100, 40) within the image of member flower. The copied portion of Happy is
resized to fit the rectangle into which it is pasted.
The following statement copies the entire image of member Happy into a rectangle within the
image of member flower. The rectangle into which the copied image of member Happy is pasted
is the same size as the rectangle of member Happy, so the copied image is not resized. The blend
level of the copied image is 50, so it is semi-transparent, revealing the part of member flower it is
pasted over.
See also
color()
,
image()
copyToClipBoard()
Usage
-- Lingo syntax
memberObjRef
.copyToClipBoard()
// JavaScript syntax
memberObjRef
.copyToClipBoard();
Description
Member method; copies a specified cast member to the Clipboard.
Calling this method does not require the Cast window to be active.
This method is useful when copying cast members between movies or applications.
Parameters
None.
Example
This statement copies the cast member named
chair
to the Clipboard:
-- Lingo syntax
member("chair").copyToClipBoard()
// JavaScript syntax
member("chair").copyToClipBoard();
This statement copies cast member number 5 to the Clipboard:
-- Lingo syntax
member(5).copyToClipBoard()
// JavaScript syntax
member(5).copyToClipBoard();
See also
Member
,
pasteClipBoardInto()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...