motion()
Usage
member(whichCastmember).motion(whichMotion)
member(whichCastmember).motion[index]
member(whichCastmember).motion.count
Description
3D command; returns the motion found within the referenced cast member that has the name
specified by
whichMotion
, this property returns the total number of motions found within the cast member.
motion.count
Object name string comparisons are not case-sensitive. The index position of a particular motion
may change when objects at lower index positions are deleted.
If no motion is found that uses the specified name or no motion is found at the specified index
position then this command returns void.
Example
thisMotion = member("3D World").motion("Wing Flap")
thisMotion = member("3D World").motion[7]
put member("scene").motion.count
-- 2
See also
duration
(3D),
move()
Usage
-- Lingo syntax
memberObjRef.move({intPosn, castLibName})
// JavaScript syntax
memberObjRef.move({intPosn, castLibName});
Description
Member method; moves a specified cast member to either the first empty location in its
containing cast, or to a specified location in a given cast.
For best results, use this method during authoring, not at runtime, because the move is typically
saved with the file. The actual location of a cast member does not affect most presentations
during playback for an end user. To switch the content of a sprite or change the display during
runtime, set the member of the sprite.
Parameters
Optional. An integer that specifies the position in the cast library
intPosn
which the member is moved.
Optional. A string that specifies the name of the cast library to which the member
castLibName
is moved.
, or is found at the index position specified by the
map (3D)
. As
index
to
castLibName
move()
405
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