902
Chapter 14: Properties
In Windows,
optionDown
does not work in projectors if Alt is pressed without another
nonmodifier key. Avoid using
optionDown
if you intend to distribute a movie as a Windows
projector and need to detect only the modifier key press; use
controlDown
or
shiftDown
instead.
On the Macintosh, pressing the Option key changes the
key
value, so use
keyCode
instead.
Example
This handler checks whether the user is pressing the Alt or the Option key and, if so, calls the
handler named
doOptionKey
:
-- Lingo syntax
on keyDown
if (_key.optionDown) then
doOptionKey(_key.key)
end if
end
// JavaScript syntax
function keyDown() {
if (_key.optionDown) {
doOptionKey(_key.key);
}
}
See also
controlDown
,
Key
,
key
,
keyCode
,
shiftDown
organizationName
Usage
-- Lingo syntax
_player.organizationName
// JavaScript syntax
_player.organizationName;
Description
Player property; contains the company name entered during installation of Director. Read-only.
This property is available in the authoring environment only. It can be used in a movie in a
window tool that is personalized to show the user’s information.
Example
The following handler would be located in a movie script of a movie in a window (MIAW). It
places the user’s name and serial number into a display field when the window is opened:
-- Lingo syntax
on prepareMovie
displayString = _player.userName & RETURN & _player.organizationName \
& RETURN & _player.serialNumber
member("User Info").text = displayString
end
// JavaScript syntax
function prepareMovie() {
var displayString = _player.us "\n" + _player.organizationName
+ "\n" + _player.serialNumber;
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...