MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 498

Director scripting reference
Table of Contents

Advertisement

Optional. Specifies a list of symbols indicating the face of the original font. Possible values
face
are
,
#plain
#bold
Optional. Specifies a list of integers specifying the sizes for which bitmaps are to be
bitmapSizes
recorded. This parameter can be empty. If you omit this parameter, no bitmaps are generated.
These bitmaps typically look better at smaller point sizes (below 14 points) but take up
more memory.
characterSubset
characters will be available in the font. If this parameter is omitted, all characters are encoded. If
only certain characters are encoded but an unencoded character is used, that character is displayed
as an empty box.
Optional. Specifies a string to use as the name of the newly recorded font
userFontName
cast member.
Example
This statement creates a simple Shock Font using only the two arguments for the cast member
and the font to record:
myNewFontMember = new(#font)
recordFont(myNewFontMember, "Lunar Lander")
This statement specifies the bitmap sizes to be generated and the characters for which the font
data should be created:
myNewFontMember = new(#font)
recordfont(mynewmember,"lunar lander",
High \ Score First Last Name")
Note: Since
recordFont
restrictions on Shock Font distribution.
See also
newMember()
rect()
Usage
-- Lingo syntax
rect(intLeft, intTop, intRight, intBottom)
// JavaScript syntax
rect(intLeft, intTop, intRight, intBottom);
Description
Top level function; defines a rectangle.
You can perform arithmetic operations on rectangles using both Lingo and JavaScript syntax.
If you add a single value to a rectangle, Lingo and JavaScript syntax adds it to each element in
the rectangle.
You can refer to rectangle components by list syntax or property syntax. For example, the
following assignments set both
// JavaScript syntax
var myRect = rect(40,30,90,70);
498
Chapter 12: Methods
,
. If you do not provide a value for this parameter,
#italic
Optional. Specifies a string of characters to be encoded. Only the specified
resynthesizes the font data rather than using it directly, there are no legal
myRectWidth1
[],
[14, 18, 45], "Lunar Lander Game
and
to 50:
myRectWidth2
is used.
#plain

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