1. Home
  2. Computing & Technology
  3. Animation

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

By Adrien-Luc Sanders, About.com

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

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.