scrollByLine()
519
Example
In Lingo only, these statements check whether a child object is an instance of the parent script
Warrior Ant:
-- Lingo syntax
if (bugObject.script = script("Warrior Ant")) then
bugObject.attack()
end if
This statement sets the variable
actionMember
to the script cast member Actions:
-- Lingo syntax
actionMember = script("Actions")
// JavaScript syntax
var actionMember = script("Actions");
scrollByLine()
Usage
-- Lingo syntax
memberObjRef
.scrollByLine(
amount
)
// JavaScript syntax
memberObjRef
.scrollByLine(
amount
);
Description
Command; scrolls the specified field or text cast member up or down by a specified number of
lines. Lines are defined as lines separated by carriage returns or by wrapping.
Parameters
amount
Required. Specifies the number of lines to scroll. When
amount
is positive, the field
scrolls down. When
amount
is negative, the field scrolls up.
Example
This statement scrolls the field cast member Today’s News down five lines:
--Lingo syntax
member("Today's News").scrollbyline(5)
// JavaScript syntax
member("Today's News").scrollbyline(5);
This statement scrolls the field cast member Today’s News up five lines:
--Lingo syntax
member("Today’s News").scrollByLine(-5)
// JavaScript syntax
member("Today’s News").scrollByLine(-5);
Summary of Contents for DIRECTOR MX 2004
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...