922
Chapter 14: Properties
Setting this property to
TRUE
allows a timeout object to continue generating timeout events in
other movies. This is useful when one movie branches to another with the
go to movie
command.
Example
This
prepareMovie
handler creates a timeout object that will remain active after the declaring
movie stops playing:
on prepareMovie
-- Make a timeout object that sends an event every 60 minutes.
timeout("reminder").new(1000 * 60 * 60, #handleReminder)
timeout("reminder").persistent = TRUE
end
See also
name (timeout)
,
period
,
target
,
time (timeout object)
,
timeout()
,
timeoutHandler
,
timeoutList
picture (Member)
Usage
-- Lingo syntax
memberObjRef
.picture
// JavaScript syntax
memberObjRef
.picture;
Description
Cast member property; determines which image is associated with a bitmap, text, or PICT cast
member. To update changes to a cast member’s registration point or update changes to an image
after relinking it using the
fileName
property, use the following statement:
member(
whichCastMember
).picture = member(
whichCastMember
).picture
where you replace
whichCastMember
with the name or number of the affected cast member.
Because changes to cast members are stored in RAM, this property is best used during authoring.
Avoid setting it in projectors.
The property can be tested and set.
Example
This statement sets the variable named
pictHolder
to the image in the cast member
named Sunset:
-- Lingo syntax
pictHolder = member("Sunset").picture
// JavaScript syntax
var pictHolder = member("Sunset").picture;
See also
type (sprite)
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...