EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 157

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...
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)

Related product manuals