User Guide
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()