O'Reilly logo

Learning ActionScript 3.0 by Zevan Rosser, Rich Shupe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Simple Site or Application Structure

As the final demo file in this chapter, we want to provide a very simple example of one of our most commonly requested uses of navigation to add visual interest. demo_site.fla shows how to design a basic site or application skeleton that gives you the freedom to combine your timeline animation skills with ActionScript coding.

This file intentionally uses detailed, and varied, timeline tweens—with inconsistent frame counts—to transition between three separate sections of this sample site or application. The idea is to take advantage of frame label navigation, but freely move from any section to any other section without concern of interrupting (or matching) the entrance or exit animations.

As you look through the sample file, you'll see that a virtual gamut of property manipulations add visual interest. Section 1 rotates in and skews out, section 2 bounces in and zooms out, and section 3 wipes in and fades out. Each section stops in the middle of the transitions to display its placeholder content. Moving unencumbered between any sections is achieved through a combination of the play() method and a variable.

Figure 5-5 shows a frame of demo_site.fla, which implements one of the most common requests for how variables can be used to create a very flexible screen-based site or application structure with animated transitions.

The file demo_site.fla implements one of the most common requests from our beginner students.

Figure 5-5. The file demo_site.fla ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required