Adobe Extending Flash Professional CS5 Manual de usuario Pagina 500

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 499
478
EXTENDING FLASH PROFESSIONAL
Timeline object
Last updated 5/2/2011
Description
Method; finds an array of indexes for the layers with the given name. The layer index is flat, so folders are considered
part of the main index.
Example
The following example shows the index values of all layers named Layer 7 in the Output panel:
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("Layer 7");
fl.trace(layerIndex);
The following example illustrates how to pass the values returned from this method back to
timeline.setSelectedLayers():
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("Layer 1");
fl.getDocumentDOM().getTimeline().setSelectedLayers(layerIndex[0], true);
timeline.frameCount
Availability
Flash MX 2004.
Usage
timeline.frameCount
Description
Read-only property; an integer that represents the number of frames in this timeline’s longest layer.
Example
The following example uses a countNum variable to store the number of frames in the current document’s longest layer:
var countNum = fl.getDocumentDOM().getTimeline().frameCount;
timeline.getFrameProperty()
Availability
Flash MX 2004.
Usage
timeline.getFrameProperty(property [, startframeIndex [, endFrameIndex]])
Parameters
property A string that specifies the name of the property for which to get the value. See the Property summary for
the
Frame object for a complete list of properties.
startFrameIndex A zero-based index that specifies the starting frame number for which to get the value. If you omit
startFrameIndex, the method uses the current selection. This parameter is optional.
Vista de pagina 499
1 2 ... 495 496 497 498 499 500 501 502 503 504 505 ... 564 565

Comentarios a estos manuales

Sin comentarios