
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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...