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

Lesson 8. Flash Site Architecture > Building a Container Movie Clip to Hold Loa...

Building a Container Movie Clip to Hold Loaded Movies

Flash has two flavors of the loadMovie() action. One loads the movie into the current SWF's timeline, replacing the content of the existing movie. The other loads the new movie into a movie clip instance. Which one you choose depends on your needs. In this lesson, you will load the movie into a movie clip, because the navigation (the green buttons) are all in the original movie, and these buttons need to be visible at all times. Also, loading movies into movie clips leaves the loaded movies open to external manipulation, via script.

One advantage to loading SWFs into movie clips is that the movie practically becomes the movie clip. Whatever contents were inside the movie clip are cleared and replaced by the external SWF, but attributes outside the movie clip, such as its instance name and any actions added to the clip, remain. In practical terms, this means you can manipulate an external SWF just as if it were a movie clip residing in the movie. For example, you could change the visibility of a loaded movie, or make it respond to user events, such as clicking or dragging. Since you can load and unload any number of movies into the same movie clip, it means that any actions that manipulate this movie clip end up manipulating the loaded SWFs, which is quite powerful indeed.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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