349
loc (backdrop and overlay)
Syntax
sprite(
whichSprite
).camera{(
index
)}.backdrop[
index
].loc
member(
whichCastmember
).camera(
whichCamera
).backdrop[
index
].loc
sprite(
whichSprite
).camera{(
index
)}.overlay[
index
].loc
member(
whichCastmember
).camera(
whichCamera
).overlay[
index
].loc
Description
3D backdrop and overlay property; indicates the 2D location of the backdrop or overlay, as
measured from the upper left corner of the sprite.
This property is initially set as a parameter of the
addBackdrop
,
addOverlay
,
insertBackdrop
,
or
insertOverlay
command which creates the backdrop or overlay.
Example
This statement positions the first backdrop of the camera of sprite 2:
sprite(2).camera.backdrop[1].loc = point(120, 120)
See also
bevelDepth
,
overlay
,
regPoint (3D)
locH
Syntax
sprite(
whichSprite
).locH
the locH of sprite
whichSprite
Description
Sprite property; indicates the horizontal position of the specified sprite’s registration point. Sprite
coordinates are relative to the upper left corner of the Stage.
This property can be tested and set. To make the value last beyond the current sprite, make the
sprite a puppet.
Examples
This statement checks whether the horizontal position of sprite 9’s registration point is to the
right of the right edge of the Stage and moves the sprite to the left edge of the Stage if it is:
if sprite(9).locH > (the stageRight - the stageLeft) then
sprite(9).locH = 0
end if
This statement puts sprite 15 at the same horizontal location as the mouse click:
sprite(15).locH = the mouseH
See also
bottom
,
height
,
left
,
loc
,
locV
,
point()
,
right
,
top
,
updateStage
,
width
locToCharPos()
Syntax
member(
whichCastMember
). locToCharPos(
location
)
locToCharPos(member
whichCastMember
,
location
)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...