findEmpty()
313
point
(x, y),
point
(x, y)
Required if filling a region using points. Two points that specify the
upper-left and lower-right corners of region to fill, relative to the upper-left corner of the given
image object.
rect
Required if filling a region using a rectangle. A rectangle that specifies the rectangular region
to fill.
Example
This statement renders the image object in the variable
myImage
completely black:
The following statement draws a filled oval in the image object TestImage. The oval has a green
fill and a 5-pixel-wide red border.
See also
color()
,
draw()
,
image()
findLabel()
Usage
-- Lingo syntax
spriteObjRef
.findLabel(
whichLabelName
)
// JavaScript syntax
spriteObjRef
.findLabel(
whichLabelName
);
Description
Function: this function returns the frame number (within the Flash movie) that is associated with
the label name requested.
A 0 is returned if the label doesn’t exist, or if that portion of the Flash movie has not yet been
streamed in.
Parameters
whichLabelName
Required. Specifies the frame label to find.
findEmpty()
Usage
-- Lingo syntax
castObjRef
.findEmpty({
memberObjRef
})
// JavaScript syntax
castObjRef
.findEmpty({
memberObjRef
});
Description
Cast library method; displays the next empty cast member position or the position after a
specified cast member.
This method is available only on the current cast library.
Parameters
memberObjRef
Optional. A reference to the cast member after which the next empty cast member
position is displayed. If omitted, the next empty cast member position is displayed.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...