|
|
document.addNewLine()
AvailabilityFlash
MX 2004.
Usagedocument.addNewLine(startPoint, endpoint)
Parameters- startpoint
- A pair of floating-point numbers that specify the x and y coordinates where
the line starts.
- endpoint
- A pair of floating-point numbers that specify the x and y coordinates where
the line ends.
DescriptionMethod;
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.
ExampleThe
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});
|