TAB
157
TAB
Usage
-- Lingo syntax
TAB
// JavaScript syntax
48 // value of _key.keyCode
Description
Constant; represents the Tab key.
Example
This statement checks whether the character typed is the tab character and calls the handler
doNextField
if it is:
-- Lingo syntax
if (_key.key = TAB) then doNextField
// JavaScript syntax
if (_key.keyCode == 48) {
doNextField();
}
These statements move the playhead forward or backward, depending on whether the user presses
Tab or Shift+Tab:
-- Lingo syntax
if (_key.key = TAB) then
if (_key.shiftDown) then
_movie.go(_movie.frame - 1)
else
_movie.go(_movie.frame + 1)
end if
end if
// JavaScript syntax
if (_key.keyCode == 48) {
if (_key.shiftDown) {
_movie.go(_movie.frame - 1);
} else {
_movie.go(_movie.frame + 1);
}
}
See also
BACKSPACE
,
EMPTY
,
RETURN (constant)
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...