Adobe Extending Flash Professional CS4 Manual do Utilizador Página 204

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 203
182
EXTENDING FLASH CS4 PROFESSIONAL
Edge object
var theShape = fl.getDocumentDOM().selection[0];
var edgesArray = theShape.edges;
for(var i=0;i<edgesArray.length; i++) {
fl.trace(edgesArray[i].cubicSegmentIndex);
}
edge.getControl()
Availability
Flash MX 2004.
Usage
edge.getControl(i)
Parameters
i An integer that specifies which control point of the edge to return. Specify 0 for the first control point, 1 for the
middle control point, or 2 for the end control point. If the
edge.isLine property is true, the middle control point is set
to the midpoint of the segment joining the beginning and ending control points.
Returns
The specified control point.
Description
Method; gets a point object set to the location of the specified control point of the edge.
Example
The following example stores the first control point of the specified shape in the pt variable:
var shape = fl.getDocumentDOM().selection[0];
var pt = shape.edges[0].getControl(0);
edge.getHalfEdge()
Availability
Flash MX 2004.
Usage
edge.getHalfEdge(index)
Parameters
index An integer that specifies which half edge to return. The value of index must be either 0 for the first half edge or
1 for the second half edge.
Returns
A HalfEdge object.
Vista de página 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 559 560

Comentários a estes Manuais

Sem comentários