1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 11: ActionScripting to Link Your Buttons And Scenes

By , About.com Guide

3 of 6

Accessing the "On" Commands

You'll notice in the top of your Actions panel, there'll be a dropdown that displays "Actions for [insance name] (button name)", letting you know that everything you're doing right now operates on that specific object and nothing else. You can pull down the dropdown to select other objects in your scene to assign actions to. For now, though, stick with your first button.

In the left-hand window, with your hierarchy of commands, you'll expand the first group (Actions) and then below that, expand Movie Controls. The main command that we're interested in here is the on command; this command, combined with parameters, defines the behavior of an object in response to mouse actions. Double-click the on command to insert it in the actions for this button.

You'll see the information above the actionscripting display window change to reflect the options for the on command, defining which mouse action will cause the button to respond. By default it inserts an on (release); this is the most common, because it mimics the typical mouse action of web browsing where a link is activated not when we click on it, but when we relax our fingers to release that click. If you used press instead of release, then action would take place the moment you clicked, without waiting for release.

We'll leave it on release, because that's all we need now. You can find the others here.

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 Animation 11: ActionScripting to Link Your Buttons And Scenes

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

All rights reserved.