EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 443

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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