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

Seminar 7. Site Interactivity and Button... > Loading Other Movies into the Main M...

Loading Other Movies into the Main Movie

Both HTML code and Flash movies are viewed in a browser. But unlike HTML code—which must be refreshed to show new content—a Flash movie can stay loaded in the browser and be continuously updated without having to be refreshed. This enables the switching of content on the Stage as the movie plays.

A very useful command for switching Stage content or loading new movies into the main movie is the loadMovie action. The loadMovie action enables you to play or switch out other SWF files or JPEG images without having to close the Flash Player. For instance, if you wanted to show a news clip movie when a button is pressed, you could use the loadMovie action to load the news clip SWF file into the main movie. Because the news clip movie really isn’t part of the main movie Timeline, you would have cut down the movie file size because the news clip movie is loaded only when called and exists as its own file. Figure 7.17 shows a sample script for loading a movie into a movie.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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