1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 9: Adding Interactivity with Buttons

By Adrien-Luc Sanders, About.com

9 of 10

Completing Your Buttons and Inserting an Actions Layer

You should now have a set of two buttons that rollover to change states; by default you'll see your mouse cursor change to the hyperlink cursor when it rolls over, but for the moment we haven't assigned any actions to the buttons so they won't do anything other than sit there and look pretty.

We are going to assign one action to your overall scene, though, so if you have more than two options for your user choice, go ahead and create all of the buttons for those before we move on.

When you're finished, create a new layer and label it "Actions". We're going to insert our first ActionScript command; while many times when working with ActionScripting you're going to have to assign actions that affect a particular frame on a particular layer for a particular object, for actions that affect our overall movie/scene I prefer to keep a separate layer. It makes things cleaner.

Insert a keyframe on your very last frame, because that's where we want our action to take place.

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 9: Adding Interactivity with Buttons

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

All rights reserved.