510
Chapter 12: Methods
Example
This statement resumes playback after a menu has been displayed:
-- Lingo syntax
member(1).returnToTitle()
// JavaScript syntax
member(1).returnToTitle();
See also
DVD
revertToWorldDefaults
Usage
member(
whichCastmember
).revertToWorldDefaults()
Description
3D command; reverts the properties of the specified 3D cast member to the values stored when
the member was first created. The member’s
state
property must be 4 (loaded) or -1 (error)
before this command can be used, otherwise a script error will occur.
This command differs from
resetWorld
in that the values used are taken from the state of the
member when it was first created rather than from the state of the member when it was first
loaded into memory.
Parameters
None.
Example
This statement reverts the properties of the cast member named Scene to the values stored when
the member was first created:
member("Scene").revertToWorldDefaults()
See also
resetWorld
rewind() (Sound Channel)
Usage
-- Lingo syntax
soundChannelObjRef
.rewind()
// JavaScript syntax
soundChannelObjRef
.rewind();
Description
Sound Channel method; interrupts the playback of the current sound in a sound channel and
restarts it at its
startTime
.
If the sound is paused, it remains paused, with the
currentTime
set to the
startTime
.
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...