MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 781

Director scripting reference
Table of Contents

Advertisement

fontSize
Usage
-- Lingo syntax
memberObjRef.fontSize
// JavaScript syntax
memberObjRef.fontSize;
Description
Field cast member property; determines the size of the font used to display the specified field cast
member and requires that the cast member contain characters, if only a space. The parameter
whichCastMember
This property can be tested and set. When tested, it returns the height of the first line in the field.
When set, it affects every line in the field.
To see an example of
Lingo Examples folder inside the Director application folder.
Example
This statement sets the variable named
the field cast member Rokujo Speaks:
--Lingo syntax
oldSize = member("Rokujo Speaks").fontSize
// JavaScript syntax
var oldSize = member("Rokujo Speaks").fontSize;
This statement sets the third line of the text cast member myMenu to 24 points:
member("myMenu").fontSize = 12
// JavaScript syntax
member("myMenu").fontSize = 12;
See also
text, alignment, font, fontStyle,
fontStyle
Usage
-- Lingo syntax
memberObjRef.fontStyle
memberObjRef.char[whichChar].fontStyle
memberObjRef.line[whichLine].fontStyle
memberObjRef.word[whichWord].fontStyle
// JavaScript syntax
memberObjRef.fontStyle;
memberObjRef.getPropRef("char", whichChar).fontStyle
memberObjRef.getPropRef("line", whichLine).fontStyle;
memberObjRef.getPropRef("word", whichWord).fontStyle;
can be either a cast member name or number.
used in a completed movie, see the Text movie in the Learning/
fontSize
oldSize
to the current
fontSize of member
lineHeight
setting for
fontStyle
781

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

This manual is also suitable for:

Director mx 2004

Table of Contents