move()
405
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
, or is found at the index position specified by the
index
. As
motion.count
, this property returns the total number of motions found within the cast member.
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)
,
map (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
intPosn
Optional. An integer that specifies the position in the cast library
castLibName
to
which the member is moved.
castLibName
Optional. A string that specifies the name of the cast library to which the member
is moved.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...