Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 200

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 199
178
EXTENDING FLASH CS4 PROFESSIONAL
drawingLayer object
Example
The following example draws a line from the current drawing position to the point (20,30):
fl.drawingLayer.lineTo(20, 30);
drawingLayer.moveTo()
Availability
Flash MX 2004.
Usage
drawingLayer.moveTo(x, y)
Parameters
x A floating-point value that specifies the x coordinate of the position at which to start drawing.
y A floating-point value that specifies the y coordinate of the position at which to start drawing.
Returns
Nothing.
Description
Method; sets the current drawing position. You typically use this method only when creating extensible tools.
Example
The following example sets the current drawing position at the point (10,15):
fl.drawingLayer.moveTo(10, 15);
drawingLayer.newPath()
Availability
Flash MX 2004.
Usage
drawingLayer.newPath()
Parameters
None.
Returns
A Path object.
Description
Method; returns a new Path object. You typically use this method only when creating extensible tools. See Path object.
Zobrazit stránku 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 559 560

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

Žádné komentáře