Timeline.getlayerproperty() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

startFrameIndex
the value. If you omit
is optional.
endFrameIndex
range goes up to, but does not include,
endFrameIndex
Returns
A value for the specified property, or
property value.
Description
Method; retrieves the specified property's value for the selected frames.
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
A string that specifies the name of the property whose value you want to retrieve. For
property
a list of properties, see
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
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);
336
Chapter 3: Objects
A zero-based index that specifies the starting frame number for which to get
startFrameIndex
A zero-based index that specifies the end of the range of frames to select. The
defaults to the value of
undefined
"Property summary for the Layer object" on page
, the method uses the current selection. This parameter
. If you specify only
endFrameIndex
. This parameter is optional.
startFrameIndex
if all the selected frames do not have the same
startFrameIndex
208.
.
undefined
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents