MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 298

Director scripting reference
Table of Contents

Advertisement

Required if drawing a line using
x2
of the end of the line.
Required if drawing a line using
y2
of the end of the line.
colorObjOrParamList
line or shape's border. The parameter list can be used instead of a simple color object to specify
the following properties.
Property
#shapeType
#lineSize
#color
point(x, y), point(x, y)
start and end points of the line.
Required if drawing a shape. A rectangle that specifies the rectangular region in which a
rect
shape is drawn.
Example
This statement draws a 1-pixel, dark red, diagonal line from point (0, 0) to point (128, 86) within
the image of member Happy.
The following statement draws a dark red, 3-pixel unfilled oval within the image of member
Happy. The oval is drawn within the rectangle (0, 0, 128, 86).
See also
color(), copyPixels(), fill(), image(),
duplicate() (Image)
Usage
-- Lingo syntax
imageObjRef.duplicate()
// JavaScript syntax
imageObjRef.duplicate();
Description
Image method. Creates and returns a copy of a given image.
The new image is completely independent of the original, and is not linked to any cast member.
If planning to make a lot of changes to an image, it is better to make a copy that is independent of
a cast member.
Parameters
None.
298
Chapter 12: Methods
and
coordinates. An integer that specifies the
x
y
and
coordinates. An integer that specifies the
x
y
Required. A color object or parameter list that specifies the color of the
Description
A symbol value of
#oval
The width of the line to use in drawing the shape.
A color object, which determines the color of the shape's border.
Required if drawing a line using points. Two points that specify the
,
,
, or
#rect
#roundRect
setPixel()
coordinate
x
coordinate
y
The default is #line.
#line.

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