Adobe Extending Flash Professional CS5 Manual de usuario Pagina 403

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 402
381
EXTENDING FLASH PROFESSIONAL
Shape object
Last updated 5/2/2011
shape.beginEdit()
Availability
Flash MX 2004.
Usage
shape.beginEdit()
Parameters
None.
Returns
Nothing.
Description
Method; defines the start of an edit session. You must use this method before issuing any commands that change the
Shape object or any of its subordinate parts.
Example
The following example takes the currently selected shape and removes the first edge in the edge array from it:
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.deleteEdge(0);
shape.endEdit();
shape.contours
Availability
Flash MX 2004.
Usage
shape.contours
Description
Read-only property; an array of Contour objects for the shape (see Contour object).
Example
The following example stores the first contour in the contours array in the c variable and then stores the HalfEdge
object of that contour in the he variable:
var c = fl.getDocumentDOM().selection[0].contours[0];
var he = c.getHalfEdge();
Vista de pagina 402
1 2 ... 398 399 400 401 402 403 404 405 406 407 408 ... 564 565

Comentarios a estos manuales

Sin comentarios