Adobe Extending Flash Professional CS5 Bedienungsanleitung Seite 380

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 565
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 379
358
EXTENDING FLASH PROFESSIONAL
Path object
Last updated 5/2/2011
Example
The following example creates a new path, stores it in the myPath variable, and assigns the curve to the path:
var myPath = fl.drawingLayer.newPath();
myPath.addCurve(0, 0, 10, 20, 20, 0);
path.addPoint()
Availability
Flash MX 2004.
Usage
path.addPoint(x, y)
Parameters
x A floating-point number that specifies the x position of the point.
y A floating-point number that specifies the y position of the point.
Returns
Nothing.
Description
Method; adds a point to the path.
Example
The following example creates a new path, stores it in the myPath variable, and assigns the new point to the path:
var myPath = fl.drawingLayer.newPath();
myPath.addPoint(10, 100);
path.clear()
Availability
Flash MX 2004.
Usage
path.clear()
Parameters
None.
Returns
Nothing.
Seitenansicht 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 564 565

Kommentare zu diesen Handbüchern

Keine Kommentare