868
Chapter 14: Properties
Description
Sound channel and sprite property; for sound sprites, QuickTime digital video, and Xtra
extensions that support cue points, indicates the number that identifies the most recent cue point
passed in the sprite or sound. The value is the cue point’s ordinal number. If no cue points have
been passed, the value is 0.
Shockwave Audio (SWA) sounds can appear as sprites in sprite channels, but they play sound in a
sound channel. It is recommended that you refer to SWA sound sprites by their sprite channel
number rather than their sound channel number.
Example
This statement tells the Message window to display the number for the most recent cue point
passed in the sprite in sprite channel 1:
-- Lingo syntax
put sprite(1).mostRecentCuePoint
// JavaScript syntax
put(sprite(1).mostRecentCuePoint);
This statement returns the ordinal number of the most recently passed cue point in the currently
playing sound in sound channel 2:
-- Lingo syntax
put sound(2).mostRecentCuePoint
// JavaScript syntax
put(sound(2).mostRecentCuePoint);
See also
cuePointNames
,
isPastCuePoint()
,
cuePointTimes
,
on cuePassed
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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...