flash document_class_maintimeline

The MainTimeline class

As we saw in the chapter entitled “The Display List” the Flash player is made up of a Stage object situated at the top of the display list. When a SWF is read in the player it adds the main timeline of the loaded SWF as a child of the Stage object:

11.2.1.jpg

By default the timeline of a SWF is represented by the MainTimeline class. Let’s test it by creating a new Flash CS3 document and placing the following code on the main timeline:

// displays : [object MainTimeline]
trace( this );

We will now see that we aren’t limited to this class.

Worth remembering

  • By default the main timeline is represented by the MainTimeline class.







Adobe Training center


Mediabox Training Centre © 2000 - 2008 All rights reserved.
Adobe Authorized Training Centre. State convention under number 25 14 02167 14.
Mediabox : SARL au capital de 62.000€ - Activity number: 25 14 02167 14 - SIRET : 493 716 468 00027
MEDIABOX, 102 Avenue des Champs Elysées, 75008 PARIS - Tel. +33(0)2.31.91.96.89 - Fax. +33(0)2.72.68.56.42