Adobe Extending Flash Professional CS5 Manual de usuario Pagina 205

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 204
183
EXTENDING FLASH PROFESSIONAL
Edge object
Last updated 5/2/2011
edge.setControl()
Availability
Flash MX 2004.
Usage
edge.setControl(index, x, y)
Parameters
index An integer that specifies which control point to set. Use values 0, 1, or 2 to specify the beginning, middle, and
end control points, respectively.
x A floating-point value that specifies the horizontal location of the control point. If the Stage is in edit or edit-in-place
mode, the point coordinate is relative to the edited object. Otherwise, the point coordinate is relative to the Stage.
y A floating-point value that specifies the vertical location of the control point. If the Stage is in edit or edit-in-place
mode, the point coordinate is relative to the edited object. Otherwise, the point coordinate is relative to the Stage.
Returns
Nothing.
Description
Method; sets the position of the control point of the edge. You must call shape.beginEdit() before using this
method. See
shape.beginEdit().
Example
The following example sets the beginning control point of the specified edge to the (0, 1) coordinates:
x = 0; y = 1;
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.edges[0].setControl(0, x, y);
shape.endEdit();
edge.splitEdge()
Availability
Flash MX 2004.
Usage
edge.splitEdge(t)
Parameters
t A floating-point value between 0 and 1 that specifies where to split the edge. A value of 0 represents one end point
and a value of 1represents the other. For example, passing a value of 0.5 splits the edge in the middle, which, for a line
is exactly in the center. If the edge represents a curve, 0.5 represents the parametric middle of the curve.
Vista de pagina 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 564 565

Comentarios a estos manuales

Sin comentarios