pasteClipBoardInto()
443
end
// JavaScript syntax
function keyDown() {
legalCharacters = "1234567890";
if (legalCharacters.indexOf(_key.key) >= 0) {
pass();
} else {
_sound.beep();
}
}
See also
stopEvent()
pasteClipBoardInto()
Usage
-- Lingo syntax
memberObjRef
.pasteClipBoardInto()
// JavaScript syntax
memberObjRef
.pasteClipBoardInto();
Description
Member method; pastes the contents of the Clipboard into a specified cast member, and erases
the existing cast member.
Any item that is in a format that Director can use as a cast member can be pasted.
When copying a string from another application, the string’s formatting is not retained.
This method provides a convenient way to copy objects from other movies and from other
applications into the Cast window. Because copied cast members must be stored in RAM, avoid
using this command during playback in low memory situations.
When using this method in Shockwave Player, or in the authoring environment and projectors
with the
safePlayer
property set to
TRUE
, a warning dialog will allow the user to cancel the
paste operation.
Parameters
None.
Example
This statement pastes the Clipboard contents into the bitmap cast member Shrine:
-- Lingo syntax
member("shrine").pasteClipBoardInto()
// JavaScript syntax
member("shrine").pasteClipBoardInto();
See also
Member
,
safePlayer
Summary of Contents for DIRECTOR MX 2004
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...