![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 1040](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_33217201040.webp)
1040
Chapter 14: Properties
Example
The following statement shows how to use a placeholder cast member to display another
thumbnail on the Stage. The placeholder cast member is placed on the Stage, then the picture of
that member is set to the thumbnail of member 10. This makes it possible to show a reduced
image without having to scale or otherwise manipulate a graphic:
-- Lingo syntax
member("Placeholder").picture = member(10).thumbNail
// JavaScript syntax
member("Placeholder").picture = member(10).thumbNail;
See also
Member
tilt
Usage
-- Lingo syntax
spriteObjRef
.tilt
// JavaScript syntax
spriteObjRef
.tilt;
Description
QuickTime VR sprite property; the current tilt, in degrees, of the QuickTime VR movie.
This property can be tested and set.
time (timeout object)
Usage
timeoutObject
.time
Description
Timeout object property; the system time, in milliseconds, when the next timeout event will be
sent by the given
timeoutObject
.
This is not the time until the next event, but the absolute time of the next timeout event.
Example
This handler determines the time remaining until the next timeout event will be sent by the
timeout object
Update
by calculating the difference between its
time
property and the current
value of the milliseconds and displaying the result in the field Time Until:
on prepareFrame
msBeforeUpdate = timeout("Update").time - the milliseconds
secondsBeforeUpdate = msBeforeUpdate / 1000
minutesBeforeUpdate = secondsBeforeUpdate / 60
member("Time Until").text = string(minutesBeforeUpdate) && "minutes before
next \
timeout”
end
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...