User Guide

351
locV
Syntax
sprite(whichSprite).locV
the locV of sprite whichSprite
Description
Sprite property; indicates the vertical position of the specified sprites 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.
Example
This statement checks whether the vertical position of sprite 9's registration point is below the
bottom of the Stage and moves the sprite to the top of the Stage if it is:
if sprite(9).locV > (the stageBottom - the stageTop) then
sprite(9).locV = 0
end if
Example
This statement puts sprite 15 at the same vertical location as the mouse click:
sprite(15).locV = the mouseV
See also
bottom, height, left, loc, locH, point(), right, top, updateStage, width
locVToLinePos()
Syntax
member(whichCastMember). locVToLinePos(locV )
locVToLinePos(member whichCastMember, locV)
Description
Function; returns the number of the line of characters that appears at the vertical position
specified by locV. The locV value is the number of pixels from the top of the field cast member,
not the part of the field cast member that currently appears on the Stage.
Example
This statement determines which line of characters appears 150 pixels from the top of the field
cast member Todays News and assigns the result to the variable
pageBreak:
pageBreak = member("Today’s News").locVToLinePos(150)
locZ of sprite
Syntax
sprite(whichSprite).locZ
Description
Sprite property; specifies the dynamic Z-order of a sprite, to control layering without having to
manipulate sprite channels and properties.
This property can be tested and set.