contents
 

project: Slide Show Controls

 
   
 

description: In this tutorial you will learn how to create controls for your slide show using buttons and ActionScript.

Files: The slide_show.fla and slide_show_controls.fla files are in the fla_files folder.

   
 
   
  step 1: Modify > Document (Command-J) and add 40 pixels to the height. (Figure A)
   
  A
   
  step 2: Insert two layers and name them. (Figure B)
   
  •Note: Actions always occupy the uppermost layer!
   
  B
   
  step 3: Window > Common Libraries > Buttons.fla and repeat as shown. (Figure C)
   
  C
   
  step 4: Lock the Images layer, reposition, align (Command-K), and nudge into place. (Figure D)
   
  D
   
  step 5: Command-Return. (Figure E)
   
  E
   
  step 6: First task is to stop the animation from playing as soon as it loads. Click on the first keyframe in the Actions layer, Window > Actions (F9), and follow the steps. (Figure F) (The stop action does exactly what you'd think it'd do.)
   
  F
   
  step 7: Command-Return. (Figure G)
   
  G
   
  step 8: Next we need ActionScript for the buttons. Watch the movie and when you repeat the steps, spend a few moments reading the info that pops up in the Actions Panel. Some of it is pretty straight forward. (Figure H)
   
  H
   
  step 9: Command-Return to see your first functioning buttons. (Figure I)
   
  I
   
  step 10: Now for a more in-depth look at Buttons and ActionScript. When you're ready for more, take the Slideshow Challenge.
   
   
   
   
 
contents