Adobe Extending Flash Professional CS5 Manual de usuario Pagina 406

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 405
384
EXTENDING FLASH PROFESSIONAL
Shape object
Last updated 5/2/2011
shape.isDrawingObject
Availability
Flash 8.
Usage
shape.isDrawingObject
Description
Read-only property; if true, the shape is a drawing object.
Example
The following example stores the first selected object in the sel variable and then uses the element.elementType and
shape.isDrawingObject properties to determine if the selected item is a drawing object:
var sel = fl.getDocumentDOM().selection[0];
var shapeDrawingObject = (sel.elementType == "shape") && sel.isDrawingObject;
fl.trace(shapeDrawingObject);
See also
document.crop(), document.deleteEnvelope(), document.intersect(), document.punch(),
document.union(), shape.isGroup
shape.isGroup
Availability
Flash MX 2004.
Usage
shape.isGroup
Description
Read-only property; if true, the shape is a group. A group can contain different types of elements, such as text
elements and symbols. However, the group itself is considered a shape, and you can use the
shape.isGroup property
no matter what types of elements the group contains.
Example
The following example stores the first selected object in the sel variable and then uses the element.elementType and
shape.isGroup properties to determine if the selected item is a group:
var sel = fl.getDocumentDOM().selection[0];
var shapeGroup = (sel.elementType == "shape") && sel.isGroup;
fl.trace(shapeGroup);
See also
shape.isDrawingObject
Vista de pagina 405
1 2 ... 401 402 403 404 405 406 407 408 409 410 411 ... 564 565

Comentarios a estos manuales

Sin comentarios