MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 73

Extending flash
Table of Contents

Advertisement

document.addNewLine()
Availability
Flash MX 2004.
Usage
,
document.addNewLine( startPoint
endpoint )
Parameters
A pair of floating-point numbers that specify the x and y coordinates where the
startpoint
line starts.
A pair of floating-point numbers that specify the x and y coordinates where the
endpoint
line ends.
Returns
Nothing.
Description
Method; adds a new path between two points. The method uses the document's current
stroke attributes and adds the path on the current frame and current layer. This method works
in the same way as clicking on the line tool and drawing a line.
Example
The following example adds a line between the specified starting point and ending point:
fl.getDocumentDOM().addNewLine({x:216.7, y:122.3}, {x:366.8, y:165.8});
document.addNewOval()
Availability
Flash MX 2004.
Usage
document.addNewOval( boundingRectangle [, bSuppressFill [, bSuppressStroke
]] )
Document object
73

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents