The Timeline
Flash’s timeline controls both animation and the order in which events occur in the movie. Flash MX and Flash 2004 use the timeline metaphor, although the latter offers timeline effects to simplify common interactions with the timeline for repetitive tasks. Furthermore, Flash Pro offers a screen-based metaphor that helps disguise the underlying timeline for programmers coming from Visual Basic and similar environments. If you are a programmer unfamiliar with the timeline, you can imagine it as a piece of audio tape. When a musician records a song, the various instruments are recorded on different tracks. The guitar might be on one track, the drums on another, the lead vocals on another, and backing vocals on yet another. There might be many separate tracks of music, but as the tape head glides across the final tape, all tracks are played together, making one cohesive collage of sound.
This is similar to how the Flash timeline works, only the tracks are called layers, and each layer can contain audio, video, animation, or ActionScript code. Also, playback is not continuous like an audio tape, but more like a motion picture, with individual frames that the playback head displays at a typical rate of 10 to 30 frames per second.
That said, a Flash application that acts as an interface to a dynamic web application might not follow these general principles. The movie might have a static interface with several screens that can be displayed. In these cases, the timeline can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access