Adobe Extending Flash Professional CS5 Manuale Utente Pagina 378

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 377
356
Last updated 5/2/2011
Chapter 32: Path object
Availability
Flash MX 2004.
Description
The Path object defines a sequence of line segments (straight, curved, or both), which you typically use when creating
extensible tools. The following example shows an instance of a Path object being returned from the flash object:
path = fl.drawingLayer.newPath();
See also the drawingLayer object.
Method summary
The following methods are available for the Path object:
Property summary
The following properties are available for the Path object:
path.addCubicCurve()
Availability
Flash MX 2004.
Usage
path.addCubicCurve(xAnchor, yAnchor, x2, y2, x3, y3, x4, y4)
Parameters
xAnchor A floating-point number that specifies the x position of the first control point.
Method Description
path.addCubicCurve() Appends a cubic Bézier curve segment to the path.
path.addCurve() Appends a quadratic Bézier segment to the path.
path.addPoint() Adds a point to the path.
path.clear() Removes all points from the path.
path.close() Appends a point at the location of the first point of the path and extends the path to that
point, which closes the path.
path.makeShape() Creates a shape on the Stage by using the current stroke and fill settings.
path.newContour() Starts a new contour in the path.
Property Description
path.nPts Read-only; an integer representing the number of points in the path.
Vedere la pagina 377
1 2 ... 373 374 375 376 377 378 379 380 381 382 383 ... 564 565

Commenti su questo manuale

Nessun commento