
485
EXTENDING FLASH PROFESSIONAL
Timeline object
Last updated 5/2/2011
Usage
timeline.layers
Description
Read-only property; an array of layer objects.
Example
The following example uses the currentLayers variable to store the array of layer objects in the current document:
var currentLayers = fl.getDocumentDOM().getTimeline().layers;
timeline.libraryItem
Availability
Flash Professional CS5.
Usage
timeline.libraryItem
Description
Read-only property; If the timeline's libraryItem property is null, the timeline belongs to a scene. If it's not null, you
can treat it like a LibraryItem object.
Example
The following example outputs the name of the libraryItem if the value of libraryItem is not null, and the name
of the scene if
librayItem is null:
var item = fl.getDocumentDOM().getTimeline().libraryItem;
if (item)
fl.trace("libraryItem name: " + item.name);
else
fl.trace("scene name: " + fl.getDocumentDOM().getTimeline().name);
timeline.name
Availability
Flash MX 2004.
Usage
timeline.name
Description
Property; a string that specifies the name of the current timeline. This name is the name of the current scene, screen
(slide or form), or symbol that is being edited.
Commenti su questo manuale