User Guide

Chapter 3206
duration (3D)
Syntax
member(whichCastmember).motion(whichMotion).duration
motionObjectReference.duration
Description
3D property; lets you get the time in millisecond that it takes the motion specified in the
whichMotion parameter to play to completion. This property is always greater than or equal to 0.
Example
This statement shows the length in milliseconds of the motion Kick.
put member("GbMember").motion("Kick").duration
-- 5100.0000
See also
motion, currentTime (3D), play() (3D), queue() (3D)
duration (RealMedia)
Syntax
sprite(whichSprite).duration
member(whichCastmember).duration
Description
RealMedia sprite or cast member property; returns the duration of the RealMedia stream, in
milliseconds. The duration of the RealMedia stream is not known until the cast member starts to
play. If the stream is from a live feed or has not been played, the value of this property is 0. This
property can be tested but not set.
Examples
The following examples show that the duration of the RealMedia stream in sprite 2 and the cast
member Real is 100,500 milliseconds (100.500 seconds).
put sprite(2).duration
-- 100500
put member("Real").duration
-- 100500
See also
play (RealMedia), seek, currentTime (RealMedia)