User Guide

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 users 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.userName + "\n" + _player.organizationName
+ "\n" + _player.serialNumber;