1. Home
  2. Computing & Technology
  3. Animation

Flash Halloween Costume Dress-Up Doll II: Controls & Scripting pt. 2

By Adrien-Luc Sanders, About.com

4 of 7

Now insert two more blank keyframes after the first; leave the second alone, but right-click the third to open the Actions panel. This keyframe is where we’re going to create the loop that controls the rewind playback for the menu movie clip. Before we write the code, let’s discuss a basic overview of what’s going to happen.

When Flash enters frame 3 of the controller movie clip (when it’s told to by our back button, which we’ll do later), we’re going to have it check to see what frame the menu movie clip is on in its timeline. If it’s on any frame greater than frame one, we’re going to tell it to rewind the menu by one frame, then go back to frame 2 of the controller clip’s timeline and do it all over again. That way it will continue rewinding one frame after another, over and over again, for as long as the loop continues - creating a smooth simulation of a rewind rather than a click-for-click jump one frame at a time.

When or if the menu movie clip is on frame 1 of its timeline, then the controller movie clip will jump to its first frame, where we inserted the stop – which will break the loop and place it on hold so that the playback pauses.

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Halloween Costume Dress-Up Doll II: Controls & Scripting pt. 2

©2009 About.com, a part of The New York Times Company.

All rights reserved.