Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 196

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 195
174
EXTENDING FLASH PROFESSIONAL
drawingLayer object
Last updated 5/2/2011
Usage
drawingLayer.cubicCurveTo(x1Ctrl, y1Ctrl, x2Ctl, y2Ctl, xEnd, yEnd)
Parameters
x1Ctl A floating-point value that is the x location of the first control point.
y1Ctl A floating-point value that is the y location of the first control point.
x2Ctl A floating-point value that is the x position of the middle control point.
y2Ctl A floating-point value that is the y position of the middle control point.
xEnd A floating-point value that is the x position of the end control point.
yEnd A floating-point value that is the y position of the end control point.
Returns
Nothing.
Description
Method; draws a cubic curve from the current pen location using the parameters as the coordinates of the cubic
segment. You typically use this method only when creating extensible tools.
Example
The following example draws a cubic curve using the specified control points:
fl.drawingLayer.cubicCurveTo(0, 0, 1, 1, 2, 0);
drawingLayer.curveTo()
Availability
Flash MX 2004.
Usage
drawingLayer.curveTo(xCtl, yCtl, xEnd, yEnd)
Parameters
xCtl A floating-point value that is the x position of the control point.
yCtl A floating-point value that is the y position of the control point.
xEnd A floating-point value that is the x position of the end control point.
yEnd A floating-point value that is the y position of the end control point.
Returns
Nothing.
Description
Method; draws a quadratic curve segment starting at the current drawing position and ending at a specified point. You
typically use this method only when creating extensible tools.
Zobrazit stránku 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 564 565

Komentáře k této Příručce

Žádné komentáře