
293
Example
This frame script holds the Flash movie sprites playing in channels 5 through 10 while allowing
the audio for these channels to continue playing:
on enterFrame
repeat with i = 5 to 10
sprite(i).hold()
end repeat
end
See also
movieRate
,
pause (movie playback)
hotSpot
Syntax
member(
whichCursorCastMember
)
.
hotspot
the hotspot of member
whichCursorCastMember
Description
Cursor cast member property; specifies the horizontal and vertical point location of the pixel that
represents the hotspot within the animated color cursor cast member
whichCursorCastMember
.
Director uses this point to track the cursor’s position on the screen (for example, when it returns
the values for the Lingo functions
mouseH
and
mouseV
) and to determine where a rollover
(signaled by the Lingo message
mouseEnter
) occurs.
The upper left corner of a cursor is point(0,0), which is the default
hotSpot
value. Trying to set a
point outside the bounds of the cursor produces an error. For example, setting the hotspot of a
16-by-16-pixel cursor to point(16,16) produces an error (because the starting point is 0,0, not 1,1).
This property can be tested and set.
Example
This handler sets the hotspot of a 32-by-32-pixel cursor (whose cast member number is stored in
the variable
cursorNum
) to the middle of the cursor:
on startMovie
member(cursorNum).hotSpot = point(16,16)
end
hotSpotEnterCallback
Syntax
sprite(
whichQTVRSprite
).hotSpotEnterCallback
the hotSpotEnterCallback of sprite
whichQTVRSprite
Description
QuickTime VR sprite property; contains the name of the handler that runs when the cursor
enters a QuickTime VR hot spot that is visible on the Stage. The QuickTime VR sprite receives
the message first. The message has two arguments: the
me
parameter and the ID of the hot spot
that the cursor entered.
To clear the callback, set this property to 0.
To avoid a performance penalty, set a callback property only when necessary.
This property can be tested and set.
See also
hotSpotExitCallback
,
nodeEnterCallback
,
nodeExitCallback
,
triggerCallback
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...