View comments | RSS feed

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


Comments


Juise said on Apr 29, 2005 at 3:14 AM :
Clipboard can include many types from same data, pasting excel data for example creates image member.

Method returns nothing. Returning reference to the sprite would be good.

 

RSS feed | 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_met61.htm