setVariable()
539
trueOrFalse
Required. Specifies whether the track in the digital video is enabled (
TRUE
) or
not (
FALSE
).
Example
This statement enables track 3 of the digital video assigned to sprite channel 8:
-- Lingo syntax
sprite(8).setTrackEnabled(3, TRUE)
// JavaScript syntax
sprite(8).setTrackEnabled(3, 1);
See also
trackEnabled
setVariable()
Usage
-- Lingo syntax
spriteObjRef
.setVariable(
variableName
,
newValue
)
// JavaScript syntax
spriteObjRef
.setVariable(
variableName
,
newValue
);
Description
Function; sets the value of the given variable in the given Flash sprite. Flash variables were
introduced in Flash version 4.
Parameters
variableName
Required. Specifies the name of the variable.
newValue
Required. Specifies the new value of the variable.
Example
The following statement sets the value of the variable currentURL in the Flash cast member in
sprite 3. The new value of currentURL will be “http://www.macromedia.com/software/flash/”.
-- Lingo syntax
sprite(3).setVariable("currentURL", \
"http://www.macromedia.com/software/flash/")
// JavaScript syntax
sprite(3).setVariable("currentURL",
"http://www.macromedia.com/software/flash/");
See also
hitTest()
,
getVariable()
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...