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
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
property set to
, a warning dialog will allow the user to cancel the
TRUE
pasteClipBoardInto()
443
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers