beautypg.com

Document.timelines – Adobe Extending Flash Professional CS4 User Manual

Page 188

background image

166

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Usage

document.testScene()

Parameters
None.

Returns
Nothing.

Description
Method; executes a Test Scene operation on the current scene of the document.

Example
The following example tests the current scene in the document:

fl.getDocumentDOM().testScene();

See also

document.canTestScene()

,

document.testMovie()

document.timelines

Availability
Flash MX 2004.

Usage

document.timelines

Description
Read-only property; an array of Timeline objects (see

Timeline object

).

Example
The following example gets the array of current timelines in the active document and displays their names in the
Output panel:

var i = 0;

var curTimelines = fl.getDocumentDOM().timelines;

while(i < fl.getDocumentDOM().timelines.length){

alert(curTimelines[i].name);

++i;

}

See also

document.currentTimeline

,

document.getTimeline()