
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Movie and Instance Stacking Order
|
345
document. For example, you can supplant the original document by loading a new
.swf file into
_level0. Loading a new .swf file into _level1 visually obscures the
movie in
_level0, but it does not remove it from the Player.
Figure 13-4 summarizes the relationships of the various stacks maintained by the
Flash Player.
Stacks and Order of Execution
The layering of movie clips and timeline layers affects code execution order. The
rules are as follows:
• Code on frames in different timeline layers always executes from top to bottom
(relative to the timeline panel).
Figure 13-4. The complete Flash Player content stack
FLASH PLAYER
Depth 2
Depth 1
Depth 0
Layer 3
Instances attached to clips on Layer 3, or
duplicates thereof
Manually created instances
Layer 2
Instances attached to clips on Layer 2, or
duplicates thereof
Manually created instances
Layer 1
Instances attached to clips on Layer 1, or
duplicates thereof
Manually created instances
Programmatically
Generated
Content Stack*
Internal Layer
Stack
Depth 2
Depth 1
Depth 0
Layer 3
Instances attached to clips on Layer 3, or
duplicates thereof
Manually created instances
Layer 2
Instances attached to clips on Layer 2, or
duplicates thereof
Manually created instances
Layer 1
Instances attached to clips on Layer 1, or
duplicates thereof ...