1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 26: Flash for Web Design: Video Playback

By Adrien-Luc Sanders, About.com

7 of 8

Rewind Button

We've dashed through everything pretty quickly so far, demonstrating the way to use previous lessons as part of the current exercise. Now, however, we're going to learn a new ActionScripting command: the prevFrame command, which when used will skip the animation to the frame previous to the current one. You can find this command by drilling down in the Actions panel, in Actions->Movie Control->prevFrame.

We're going to use this command for our Rewind button; just like for the other buttons, right-click the Rewind button and select Actions before inserting the prevFrame command inside an on (release):

on (release) {
doorknobpage.prevFrame () ;
}

When used this way, the prevFrame command is relative; it doesn't require an absolute definition of frame numbers to reference in order to define the playback position, but instead uses the current frame position as its reference and skips back one from there. With this action assigned to our Rewind button, the user can take the video backwards frame-by-frame with each click.

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 Animation 26: Flash for Web Design: Video Playback

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

All rights reserved.