Example
The following handler in a cast member or movie script switches the cast member assigned to the
sprite involved in the
-- Lingo syntax
on mouseDown
sprite(_player.currentSpriteNum).member = member("DownPict")
end
// JavaScript syntax
function mouseDown() {
sprite(_player.currentSpriteNum).member = member("DownPict");
}
See also
Player,
spriteNum
currentTime (3D)
Usage
member(whichCastmember).model(whichModel).keyframePlayer.\
currentTime
member(whichCastmember).model(whichModel).bonesPlayer.\
currentTime
Description
3D
keyframePlayer
being executed by the model. The
corresponds to real time when the motion is playing at its original speed.
Playback of a motion by a model is the result of either a
parameter of the
scale
property, and the resulting value is multiplied by the motion's original speed to determine how
fast the model will execute the motion and how fast the motion's local time will run. So if the
parameter has a value of 2 and the modifier's
scale
model will execute the motion six times as fast as its original speed and local time will run six
times as fast as real time.
The
currentTime
command at the beginning of each iteration of a looped motion.
queue()
Example
This statement shows the local time of the motion being executed by the model named Alien3.
put member("newalien").model("Alien3").keyframePlayer.currentTime
-- 1393.8599
See also
play()
(3D),
716
Chapter 14: Properties
event:
mouseDown
and
bonesPlayer
currentTime
or
play()
queue()
property resets to the value of the
queue()
(3D),
playlist
modifier property; indicates the local time of the motion
property is measured in milliseconds, but it only
play()
command is multiplied by the modifier's
playRate
cropStart
or
command. The
queue()
property has a value of 3, the
parameter of the
play()
playRate
or
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