![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 483](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049483.webp)
Timeline object
483
Example
The following example retrieves the name of the first frame in the current document’s top
layer and displays the name in the Output panel:
fl.getDocumentDOM().getTimeline().currentLayer = 0;
fl.getDocumentDOM().getTimeline().setSelectedFrames(0, 0, true);
var frameName = fl.getDocumentDOM().getTimeline().getFrameProperty("name");
fl.trace(frameName);
timeline.getLayerProperty()
Availability
Flash MX 2004.
Usage
timeline.getLayerProperty(
property
)
Parameters
property
A string that specifies the name of the property whose value you want to retrieve.
For a list of properties, see
“Property summary for the Layer object” on page 305
.
Returns
The value of the specified property. Flash looks at the layer’s properties to determine the type.
If all the specified layers don’t have the same property value, Flash returns
undefined
.
Description
Method; retrieves the specified property’s value for the selected layers.
Example
The following example retrieves the name of the top layer in the current document and
displays it in the Output panel:
fl.getDocumentDOM().getTimeline().currentLayer = 0;
var layerName = fl.getDocumentDOM().getTimeline().getLayerProperty("name");
fl.trace(layerName);
timeline.getSelectedFrames()
Availability
Flash MX 2004.
Parameters
None.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...