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
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
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
1040
Chapter 14: Properties
.
timeoutObject
by calculating the difference between its
property and the current
time
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers