Document.gettimeline(); Document.gettransformationpoint() - 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

document.getTimeline()

Availability
Flash MX 2004.
Usage
document.getTimeline()
Parameters
None.
Returns
The current Timeline object.
Description
Method; retrieves the current
current scene, the current symbol being edited, or the current screen. See
document.currentTimeline
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);

document.getTransformationPoint()

Availability
Flash MX 2004.
Usage
document.getTransformationPoint()
Parameters
None.
Returns
The location of the transformation point.
96
Chapter 3: Objects
Timeline object
in the document. The current Timeline can be the
,
document.timelines
, and
symbolItem.timeline
.

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