MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 118

Extending flash
Table of Contents

Advertisement

Returns
The current Timeline object.
Description
Method; retrieves the current
the current scene, the current symbol being edited, or the current screen.
Example
The following example gets the Timeline object and returns the number of frames in the
longest layer:
var longestLayer = fl.getDocumentDOM().getTimeline().frameCount;
fl.trace("The longest layer has" + longestLayer + "frames");
The following example enters edit-in-place mode for the selected symbol on the Stage and
inserts a frame on the symbol's timeline.
fl.getDocumentDOM().enterEditMode("inPlace");
fl.getDocumentDOM().getTimeline().insertFrames();
The following example gets the Timeline object and displays its name:
var timeline = fl.getDocumentDOM().getTimeline();
alert(timeline.name);
See also
document.currentTimeline
document.getTransformationPoint()
Availability
Flash MX 2004.
Usage
document.getTransformationPoint()
Parameters
None.
Returns
The location of the transformation point.
Description
Method; gets the location of the transformation point of the current selection. You can use the
transformation point for commutations such as rotate and skew.
118
Objects
Timeline object
in the document. The current timeline can be
,
document.timelines
,
symbolItem.timeline

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents