MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 836

Director scripting reference
Table of Contents

Advertisement

Example
This statement checks whether cast member Demo Movie is loaded in memory and if it isn't, 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
or
insertOverlay
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,
locH
Usage
-- Lingo syntax
spriteObjRef.locH
// JavaScript syntax
spriteObjRef.locH;
Description
Sprite property; indicates the horizontal position of a sprite's 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.
836
Chapter 14: Properties
command which creates the backdrop or overlay.
regPoint (3D)
,
addBackdrop
addOverlay
,
,
insertBackdrop

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents