EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 627

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
alignment 627
// JavaScript syntax
function prepareMovie() {
_player.alertHook = alert("Error type", "Error message");
}
// alert handler
function alert(err, msg) {
member("Output").text = err + " " + msg;
return 1;
}
See also
alertHook, Player, safePlayer
alignment
Usage
-- Lingo syntax
memberObjRef.alignment
// JavaScript syntax
memberObjRef.alignment;
Description
Cast member property; determines the alignment used to display characters within the specified
cast member. This property appears only to field and text cast members containing characters, if
only a space.
For field cast members, the value of the property is a string consisting of one of the following: left,
center, or right.
For text cast members, the value of the property is a symbol consisting of one of the following:
#left, #center, #right, or #full.
The parameter
whichCastMember can be either a cast name or a cast number.
This property can be tested and set. For text cast members, the property can be set on a
per-paragraph basis.
Example
This statement sets the variable named characterAlign to the current alignment setting for the
field cast member Rokujo Speaks:
--Lingo syntax
characterAlign = member("Rokujo Speaks").alignment
// JavaScript syntax
var characterAlign = member("Rokujo Speaks").alignment;
See also
text, font, lineHeight, fontSize, fontStyle, &, + (concatenation operator),
&&, + (concatenation operator)