• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Breaking Up a Project > Loading an SWF into Levels

Loading an SWF into Levels

The Flash Player is broken up into levels, each of which can contain and play an SWF. This gives you another way to organize your application into content modules. When an instance of the Flash Player is created inside of an HTML page, you can stack movies up on top of each other from zero to 16,382. The first SWF to load into the Flash Player (the first one called by the EMBED tag, that is) occupies level zero, and sets the size of the Flash Player, and the background color as well. What that ultimately means is if you play movies one on top of the other in an HTML page in levels, any movie loaded above level zero will inherit the Flash Player size and the background color determined by whatever's in level zero.

Levels always remind me of the Mylar sheets you see in encyclopedias for human anatomy. Each sheet contains something different (skin, muscle, bones, and so forth), and when you remove one sheet you see the different content. However, in order for things to look right, each sheet has to be the same size, and positioned the same way. Also, their upper left corners have to match, as well as the size of the sheet.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint