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

  • 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 536
515
EXTENDING FLASH PROFESSIONAL
Vertex object
Last updated 5/2/2011
Description
Read-only property; the x location of the vertex, in pixels.
Example
The following example displays the location of the x and y values of the vertex in the Output panel:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge(0);
var vertex = hEdge.getVertex();
fl.trace('x location of vertex is: ' + vertex.x);
fl.trace('y location of vertex is: ' + vertex.y);
vertex.y
Availability
Flash MX 2004.
Usage
vertex.y
Description
Read-only property; the y location of the vertex, in pixels.
Example
See vertex.x.
Zobrazit stránku 536
1 2 ... 532 533 534 535 536 537 538 539 540 541 542 ... 564 565

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

Žádné komentáře