Extending Flash |
|
|
|
| Objects > Timeline object > timeline.getLayerProperty() | |||
Flash MX 2004.
timeline.getLayerProperty(property)
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.
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.
Method; retrieves the specified property's value for the selected layers.
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);
|
|
|
|