Path.newcontour() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Method; creates a shape on the Stage by using the current stroke and fill settings. The path is
cleared after the shape is created. This method has two optional parameters for suppressing the fill
and stroke of the resulting shape object. If you omit these parameters or set them to
current values for fill and stroke are used.
Example
The following example creates a shape with the current fill and no stroke:
var myPath = fl.drawingLayer.newPath();
myPath.makeShape(false, true);

path.newContour()

Availability
Flash MX 2004.
Usage
path.newContour()
Parameters
None.
Returns
Nothing.
Description
Method; starts a new contour in the path.
Example
The following example creates a hollow square:
var myPath = fl.drawingLayer.newPath();
myPath.addPoint( 0,
myPath.addPoint( 0, 30);
myPath.addPoint(30, 30);
myPath.addPoint(30,
myPath.addPoint( 0,
myPath.newContour();
myPath.addPoint(10, 10);
myPath.addPoint(10, 20);
myPath.addPoint(20, 20);
myPath.addPoint(20, 10);
myPath.addPoint(10, 10);
myPath.makeShape();
246
Chapter 3: Objects
0);
0);
0);
, the
false

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents