Chapter 15. Time- and Frame-Based Dynamism


Your Macromedia Flash movie need not always depend on user actions (such as moving the mouse or pressing a button) to trigger a response; it can also respond to the passage of time and frames elements that can be set in motion independently of the user. And by combining these elements with user interaction, you can create even more powerful and interactive projects. In this lesson, we'll show you how time and frames work in Flash, and then demonstrate ways you can use them to enhance your projects.

Part of the Make My Day project that we'll build in this lesson.

graphics/15fig01.gif

WHAT YOU WILL LEARN

In this lesson, you will:

  • Learn how to use the element of time in Flash projects

  • Create and use a Date object to display the current date

  • Use the getTimer() function to create a Flash-based timer and alarm so that you can accurately track the progression of time in your Flash project

  • Control a timeline dynamically using play, stop, fast-forward, and rewind controls

  • Create a percentage-based preloader

APPROXIMATE TIME

This lesson takes approximately 1 hour to complete.

LESSON FILES

Media Files:

None

Starting Files:

Lesson15/Assets/makeMyDay1.fla

Lesson15/Assets/preloader1.fla

Completed Projects:

makeMyDay4.fla

preloader2.fla

Bonus Files:

preloaderBytes.fla



Macromedia Flash MX ActionScripting Advanced. Training from the Source
Macromedia Flash MX ActionScripting: Advanced Training from the Source
ISBN: 0201770229
EAN: 2147483647
Year: 2002
Pages: 161

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net