User Guide

836 Chapter 14: Properties
Example
This statement checks whether cast member Demo Movie is loaded in memory and if it isnt, goes
to an alternative movie:
-- Lingo syntax
if member("Demo Movie").loaded = FALSE then
_movie.go(1, "Waiting.dir")
end if
// JavaScript syntax
if (member("Demo Movie").loaded == false) {
_movie.go(1, "Waiting.dir")
}
See also
Member
loc (backdrop and overlay)
Usage
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
Usage
-- Lingo syntax
spriteObjRef.locH
// JavaScript syntax
spriteObjRef.locH;
Description
Sprite property; indicates the horizontal position of a sprites registration point. Read/write.
Sprite coordinates are relative to the upper left corner of the Stage.
To make the value last beyond the current sprite, make the sprite a scripted sprite.