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

  • 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 411
390
EXTENDING FLASH CS4 PROFESSIONAL
Shape object
Usage
shape.members
Description
Read-only property; an array of objects in the currently selected group. This property is available only if the value of
shape.isGroup is true). Raw shapes in the group are not included in the shape.members array.
For example, if the group contains three drawing objects and three raw shapes, the shape.members array contains
three entries, one for each of the drawing objects. If the group contains only raw shapes, the array is empty.
Example
The following code displays the number of cubic segments of each drawing object in the currently selected group:
var shapesArray = fl.getDocumentDOM().selection[0].members;
for (i=0; i<shapesArray.length; i++) {
fl.trace(shapesArray[i].numCubicSegments);
}
See also
shape.isGroup
shape.numCubicSegments
Availability
Flash CS4 Professional.
Usage
shape.numCubicSegments
Description
Read-only property; the number of cubic segments in the shape.
Example
Assuming a square or rectangle shape is selected, the following code displays “4” in the Output panel:
var theShape = fl.getDocumentDOM().selection[0];
fl.trace(theShape.numCubicSegments);
shape.vertices
Availability
Flash MX 2004.
Usage
shape.vertices
Zobrazit stránku 411
1 2 ... 407 408 409 410 411 412 413 414 415 416 417 ... 559 560

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

Žádné komentáře