1. Home
  2. Computing & Technology
  3. Animation

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

By , About.com Guide

5 of 7

Now for the actual script to do that:

if (_root.menu._currentframe>1) {
_root.menu.prevFrame( ) ;
this.gotoAndPlay (2) ;
}

if (_root.menu._currentframe<=1) {
this.gotoAndStop(1) ;
}

You’ll notice we used something we haven’t explored before: _currentframe, which is one of many movie clip properties that Flash can use in various functions. _currentframe represents the numeric value of currently-playing frame in the specified movie clip’s timeline.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.