In the next exercise you will build the structure of the web site that you will use in several of the upcoming Lessons. So far, our movies have been very small, focusing on small aspects of the final animation. In this section, you will see that if you make an entire web site out of Flash, the timeline will be more complicated. Instead of playing straight through the timeline, it has certain destination keyframes that hold "pages" of content. ActionScript will be used to build a navigation system to jump from page to page.
Open the following demo, saved as BasicAnimation/demos/MovieStructure.fla. Test the movie by clicking Control+Enter (Windows) or Command+Return (Mac). The project functions like many other web sites - the navigation links are used to take you to different pages (keyframes in the timeline).
Examine the timeline and you will see four small red flags on the labels layer with the names of the four pages: intro, home, contact and about. This timeline works a little differently than most we have seen so far. It does not play straight through because it has stop() actions at frames 10, 20 and 30. ActionScript is covered in the Advanced course.
Please notice that when the movie first begins, it plays the first 9 frames then stops at frame 10. Timeline animations are still used in some sections of this project. But, some frames act as static pages. Frame 10 is the "home" page. The buttons are assigned to jump to either home, contact or about. The timeline is told to stop when it gets there. This action is called gotoAndStop().